PageSourceSearch

https://blacksheepbi.com/assets/charts-DCB9_QAo.js

js blacksheepbi.com collected 2026-09-30 08:26:08 UTC 1,098,466 bytes, 382 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-BM42HDAG-D0OrG__j.js","assets/graph-BlwPajkw.js","assets/layout-Boy8vhSP.js","assets/ui-CPW3-RCR.js","assets/supabase-B2z4OhLQ.js","assets/cose-bilkent-S5V4N54A-dn-W3CBj.js","assets/cytoscape.esm-CUqq0XTU.js","assets/c4Diagram-AAUBKEIU-FCpHECPi.js","assets/chunk-ND2GUHAM-B49s7ZqZ.js","assets/flowDiagram-I6XJVG4X-DZFGIzBY.js","assets/chunk-FMBD7UC4-B4usl_1g.js","assets/chunk-55IACEB6-Cyt_qR_4.js","assets/chunk-2J33WTMH-B69uybR4.js","assets/erDiagram-TEJ5UH35-xSFukGVw.js","assets/gitGraphDiagram-PVQCEYII-DBSBpxJ8.js","assets/chunk-4BX2VUAB-C1hYmz5d.js","assets/chunk-QZHKN3VN-DXpiDZgG.js","assets/wardley-L42UT6IY-DrbxI0EM.js","assets/ganttDiagram-6RSMTGT7-PoYeC8G4.js","assets/infoDiagram-5YYISTIA-IXGtMvne.js","assets/pieDiagram-4H26LBE5-BT-eYsLA.js","assets/quadrantDiagram-W4KKPZXB-CIsqsQt-.js","assets/xychartDiagram-2RQKCTM6-BB1wQ-0w.js","assets/requirementDiagram-4Y6WPE33-fyrdu8e7.js","assets/sequenceDiagram-3UESZ5HK-uBThH_F1.js","assets/classDiagram-4FO5ZUOK-Ccq4jSyC.js","assets/chunk-727SXJPM-DNG3ZvS3.js","assets/classDiagram-v2-Q7XG4LA2-Ccq4jSyC.js","assets/stateDiagram-AJRCARHV-C3jlmYFt.js","assets/chunk-AQP2D5EJ-BERc5rIe.js","assets/stateDiagram-v2-BHNVJYJU-UVf7Ebqo.js","assets/journeyDiagram-JHISSGLW-DPqYgCYC.js","assets/timeline-definition-PNZ67QCA-BRoshcLw.js","assets/mindmap-definition-RKZ34NQL-BGL-TCsk.js","assets/kanban-definition-UN3LZRKU-sNHinQbo.js","assets/sankeyDiagram-5OEKKPKP-CYlu_Uh_.js","assets/diagram-LMA3HP47-Dp6b5Mm2.js","assets/diagram-2AECGRRQ-CUic2hVB.js","assets/blockDiagram-GPEHLZMM-BeHz0slE.js","assets/diagram-5GNKFQAL-BYchDJeD.js","assets/architectureDiagram-3BPJPVTR-C0JVXd_1.js","assets/diagram-KO2AKTUF-DyorT4tV.js","assets/ishikawaDiagram-YF4QCWOH-DV3LF1ml.js","assets/vennDiagram-CIIHVFJN-BKNdgaWe.js","assets/diagram-OG6HWLK6-DtxrN-fk.js","assets/wardleyDiagram-YWT4CUSO-YORco5wD.js"])))=>i.map(i=>d[i]);
2var KL=Object.defineProperty;var ZL=(e,t,r)=>t in e?KL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Vt=(e,t,r)=>ZL(e,typeof t!="symbol"?t+"":t,r);import{c as Xs,g as Ut,r as J,a as R}from"./ui-CPW3-RCR.js";const QL="modulepreload",JL=function(e){return"/"+e},p0={},Dt=function(t,r,i){let n=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));n=Promise.allSettled(r.map(l=>{if(l=JL(l),l in p0)return;p0[l]=!0;const c=l.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${h}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":QL,c||(u.as="script"),u.crossOrigin="",u.href=l,s&&u.setAttribute("nonce",s),document.head.appendChild(u),c)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return n.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};function rk(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=rk(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Ot(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=rk(e))&&(i&&(i+=" "),i+=t);return i}const{getOwnPropertyNames:tM,getOwnPropertySymbols:eM}=Object,{hasOwnProperty:rM}=Object.prototype;function Vd(e,t){return function(i,n,a){return e(i,n,a)&&t(i,n,a)}}function Nc(e){return function(r,i,n){if(!r||!i||typeof r!="object"||typeof i!="object")return e(r,i,n);const{cache:a}=n,o=a.get(r),s=a.get(i);if(o&&s)return o===i&&s===r;a.set(r,i),a.set(i,r);const l=e(r,i,n);return a.delete(r),a.delete(i),l}}function iM(e){return e!=null?e[Symbol.toStringTag]:void 0}function g0(e){return tM(e).concat(eM(e))}const nM=Object.hasOwn||((e,t)=>rM.call(e,t));function ma(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const aM="__v",oM="__o",sM="_owner",{getOwnPropertyDescriptor:y0,keys:m0}=Object;function lM(e,t){return e.byteLength===t.byteLength&&$h(new Uint8Array(e),new Uint8Array(t))}function cM(e,t,r){let i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!r.equals(e[i],t[i],i,i,e,t,r))return!1;return!0}function hM(e,t){return e.byteLength===t.byteLength&&$h(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function uM(e,t){return ma(e.getTime(),t.getTime())}function fM(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function dM(e,t){return e===t}function v0(e,t,r){const i=e.size;if(i!==t.size)return!1;if(!i)return!0;const n=new Array(i),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let h=!1,u=0;for(;(s=c.next())&&!s.done;){if(n[u]){u++;continue}const d=o.value,f=s.value;if(r.equals(d[0],f[0],l,u,e,t,r)&&r.equals(d[1],f[1],d[0],f[0],e,t,r)){h=n[u]=!0;break}u++}if(!h)return!1;l++}return!0}const pM=ma;function gM(e,t,r){const i=m0(e);let n=i.length;if(m0(t).length!==n)return!1;for(;n-- >0;)if(!ik(e,t,r,i[n]))return!1;return!0}function Os(e,t,r){const i=g0(e);let n=i.length;if(g0(t).length!==n)return!1;let a,o,s;for(;n-- >0;)if(a=i[n],!ik(e,t,r,a)||(o=y0(e,a),s=y0(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function yM(e,t){return ma(e.valueOf(),t.valueOf())}function mM(e,t){return e.source===t.source&&e.flags===t.flags}function b0(e,t,r){const i=e.size;if(i!==t.size)return!1;if(!i)return!0;const n=new Array(i),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let c=!1,h=0;for(;(s=l.next())&&!s.done;){if(!n[h]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){c=n[h]=!0;break}h++}if(!c)return!1}return!0}function $h(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function vM(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}
vendor: 4,084 bytes, line 2
2function ik(e,t,r,i){return(i===sM||i===oM||i===aM)&&(e.$$typeof||t.$$typeof)?!0:nM(t,i)&&r.equals(e[i],t[i],i,i,e,t,r)}const bM="[object ArrayBuffer]",xM="[object Arguments]",CM="[object Boolean]",wM="[object DataView]",SM="[object Date]",kM="[object Error]",TM="[object Map]",_M="[object Number]",AM="[object Object]",OM="[object RegExp]",BM="[object Set]",$M="[object String]",EM={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},PM="[object URL]",LM=Object.prototype.toString;function MM({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:i,areErrorsEqual:n,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:h,areSetsEqual:u,areTypedArraysEqual:d,areUrlsEqual:f,unknownTagComparators:y}){return function(g,m,v){if(g===m)return!0;if(g==null||m==null)return!1;const x=typeof g;if(x!==typeof m)return!1;if(x!=="object")return x==="number"?s(g,m,v):x==="function"?a(g,m,v):!1;const w=g.constructor;if(w!==m.constructor)return!1;if(w===Object)return l(g,m,v);if(Array.isArray(g))return t(g,m,v);if(w===Date)return i(g,m,v);if(w===RegExp)return h(g,m,v);if(w===Map)return o(g,m,v);if(w===Set)return u(g,m,v);const b=LM.call(g);if(b===SM)return i(g,m,v);if(b===OM)return h(g,m,v);if(b===TM)return o(g,m,v);if(b===BM)return u(g,m,v);if(b===AM)return typeof g.then!="function"&&typeof m.then!="function"&&l(g,m,v);if(b===PM)return f(g,m,v);if(b===kM)return n(g,m,v);if(b===xM)return l(g,m,v);if(EM[b])return d(g,m,v);if(b===bM)return e(g,m,v);if(b===wM)return r(g,m,v);if(b===CM||b===_M||b===$M)return c(g,m,v);if(y){let C=y[b];if(!C){const k=iM(g);k&&(C=y[k])}if(C)return C(g,m,v)}return!1}}function FM({circular:e,createCustomConfig:t,strict:r}){let i={areArrayBuffersEqual:lM,areArraysEqual:r?Os:cM,areDataViewsEqual:hM,areDatesEqual:uM,areErrorsEqual:fM,areFunctionsEqual:dM,areMapsEqual:r?Vd(v0,Os):v0,areNumbersEqual:pM,areObjectsEqual:r?Os:gM,arePrimitiveWrappersEqual:yM,areRegExpsEqual:mM,areSetsEqual:r?Vd(b0,Os):b0,areTypedArraysEqual:r?Vd($h,Os):$h,areUrlsEqual:vM,unknownTagComparators:void 0};if(t&&(i=Object.assign({},i,t(i))),e){const n=Nc(i.areArraysEqual),a=Nc(i.areMapsEqual),o=Nc(i.areObjectsEqual),s=Nc(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:n,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return i}function IM(e){return function(t,r,i,n,a,o,s){return e(t,r,s)}}function DM({circular:e,comparator:t,createState:r,equals:i,strict:n}){if(r)return function(s,l){const{cache:c=e?new WeakMap:void 0,meta:h}=r();return t(s,l,{cache:c,equals:i,meta:h,strict:n})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:i,meta:void 0,strict:n})};const a={cache:void 0,equals:i,meta:void 0,strict:n};return function(s,l){return t(s,l,a)}}const RM=On();On({strict:!0});On({circular:!0});On({circular:!0,strict:!0});On({createInternalComparator:()=>ma});On({strict:!0,createInternalComparator:()=>ma});On({circular:!0,createInternalComparator:()=>ma});On({circular:!0,createInternalComparator:()=>ma,strict:!0});function On(e={}){const{circular:t=!1,createInternalComparator:r,createState:i,strict:n=!1}=e,a=FM(e),o=MM(a),s=r?r(o):IM(o);return DM({circular:t,comparator:o,createState:i,equals:s,strict:n})}/*! @license DOMPurify 3.4.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.9/LICENSE */function x0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function jM(e){if(Array.isArray(e))return e}function NM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}
vendor: 6,671 bytes, lines 2-3
2finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function zM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WM(e,t){return jM(e)||NM(e,t)||qM(e,t)||zM()}function qM(e,t){if(e){if(typeof e=="string")return x0(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x0(e,t):void 0}}const nk=Object.entries,C0=Object.setPrototypeOf,HM=Object.isFrozen,UM=Object.getPrototypeOf,YM=Object.getOwnPropertyDescriptor;let nr=Object.freeze,Br=Object.seal,za=Object.create,ak=typeof Reflect<"u"&&Reflect,Qp=ak.apply,Jp=ak.construct;nr||(nr=function(t){return t});Br||(Br=function(t){return t});Qp||(Qp=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return t.apply(r,n)});Jp||(Jp=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new t(...i)});const ki=ve(Array.prototype.forEach),GM=ve(Array.prototype.lastIndexOf),w0=ve(Array.prototype.pop),La=ve(Array.prototype.push),VM=ve(Array.prototype.splice),Qe=Array.isArray,Ks=ve(String.prototype.toLowerCase),Xd=ve(String.prototype.toString),S0=ve(String.prototype.match),Ma=ve(String.prototype.replace),k0=ve(String.prototype.indexOf),XM=ve(String.prototype.trim),KM=ve(Number.prototype.toString),ZM=ve(Boolean.prototype.toString),T0=typeof BigInt>"u"?null:ve(BigInt.prototype.toString),_0=typeof Symbol>"u"?null:ve(Symbol.prototype.toString),ce=ve(Object.prototype.hasOwnProperty),Bs=ve(Object.prototype.toString),Le=ve(RegExp.prototype.test),In=QM(TypeError);function ve(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return Qp(e,t,i)}}function QM(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Jp(e,r)}}function Lt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ks;if(C0&&C0(e,null),!Qe(t))return e;let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(HM(t)||(t[i]=a),n=a)}e[n]=!0}return e}function JM(e){for(let t=0;t<e.length;t++)ce(e,t)||(e[t]=null);return e}function je(e){const t=za(null);for(const i of nk(e)){var r=WM(i,2);const n=r[0],a=r[1];ce(e,n)&&(Qe(a)?t[n]=JM(a):a&&typeof a=="object"&&a.constructor===Object?t[n]=je(a):t[n]=a)}return t}function tF(e){switch(typeof e){case"string":return e;case"number":return KM(e);case"boolean":return ZM(e);case"bigint":return T0?T0(e):"0";case"symbol":return _0?_0(e):"Symbol()";case"undefined":return Bs(e);case"function":case"object":{if(e===null)return Bs(e);const t=e,r=si(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:Bs(i)}return Bs(e)}default:return Bs(e)}}function si(e,t){for(;e!==null;){const i=YM(e,t);if(i){if(i.get)return ve(i.get);if(typeof i.value=="function")return ve(i.value)}e=UM(e)}function r(){return null}return r}function eF(e){try{return Le(e,""),!0}catch{return!1}}const A0=nr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Kd=nr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Zd=nr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rF=nr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Qd=nr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),iF=nr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O0=nr(["#text"]),B0=nr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
3spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Jd=nr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$0=nr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zc=nr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nF=Br(/{{[\w\W]*|^[\w\W]*}}/g),aF=Br(/<%[\w\W]*|^[\w\W]*%>/g),oF=Br(/\${[\w\W]*/g),sF=Br(/^data-[\-\w.\u00B7-\uFFFF]+$/),lF=Br(/^aria-[\-\w]+$/),E0=Br(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),cF=Br(/^(?:\w+script|data):/i),hF=Br(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),uF=Br(/^html$/i),fF=Br(/^[a-z][.\w]*(-[.\w]+)+$/i),oi={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},dF=function(){return typeof window>"u"?null:window},pF=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;
3const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},P0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ok(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dF();const t=ot=>ok(ot);if(t.version="3.4.9",t.removed=[],!e||!e.document||e.document.nodeType!==oi.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const i=r,n=i.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=si(d,"cloneNode"),y=si(d,"remove"),p=si(d,"nextSibling"),g=si(d,"childNodes"),m=si(d,"parentNode"),v=si(d,"shadowRoot"),x=si(d,"attributes"),w=o&&o.prototype?si(o.prototype,"nodeType"):null,b=o&&o.prototype?si(o.prototype,"nodeName"):null;if(typeof a=="function"){const ot=r.createElement("template");ot.content&&ot.content.ownerDocument&&(r=ot.content.ownerDocument)}let C,k="",T,E=!1,L=0;const P=function(){if(L>0)throw In('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},I=function(j){P(),L++;try{return C.createHTML(j)}finally{L--}},D=function(j){P(),L++;try{return C.createScriptURL(j)}finally{L--}},_=function(){return E||(T=pF(u,n),E=!0),T},B=r,O=B.implementation,M=B.createNodeIterator,F=B.createDocumentFragment,$=B.getElementsByTagName,N=i.importNode;let W=P0();t.isSupported=typeof nk=="function"&&typeof m=="function"&&O&&O.createHTMLDocument!==void 0;const U=nF,Q=aF,it=oF,nt=sF,vt=lF,Pt=cF,Et=hF,et=fF;let Z=E0,K=null;const G=Lt({},[...A0,...Kd,...Zd,...Qd,...O0]);let ht=null;const Bt=Lt({},[...B0,...Jd,...$0,...zc]);let bt=Object.seal(za(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Gt=null,pe=null;const ue=Object.seal(za(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let wi=!0,nn=!0,ei=!1,ri=!0,br=!1,an=!0,ii=!1,Fd=!1,Id=!1,Oa=!1,Mc=!1,Fc=!1,Kb=!0,Zb=!1;const Qb="user-content-";let Dd=!0,Rd=!1,Ba={},ni=null;const jd=Lt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Jb=null;const t0=Lt({},["audio","video","img","source","image","track"]);let Nd=null;const e0=Lt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ic="http://www.w3.org/1998/Math/MathML",Dc="http://www.w3.org/2000/svg",ai="http://www.w3.org/1999/xhtml";let $a=ai,zd=!1,Wd=null;const zL=Lt({},[Ic,Dc,ai],Xd);let qd=Lt({},["mi","mo","mn","ms","mtext"]),Hd=Lt({},["annotation-xml"]);const WL=Lt({},["title","style","font","a","script"]);let _s=null;const qL=["application/xhtml+xml","text/html"],HL="text/html";let se=null,Ea=null;const UL=r.createElement("form"),r0=function(j){return j instanceof RegExp||j instanceof Function},Ud=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ea&&Ea===j)return;(!j||typeof j!="object")&&(j={}),j=je(j),_s=qL.indexOf(j.PARSER_MEDIA_TYPE)===-1?HL:j.PARSER_MEDIA_TYPE,se=_s==="application/xhtml+xml"?Xd:Ks,K=ce(j,"ALLOWED_TAGS")&&Qe(j.ALLOWED_TAGS)?Lt({},j.ALLOWED_TAGS,se):G,ht=ce(j,"ALLOWED_ATTR")&&Qe(j.ALLOWED_ATTR)?Lt({},j.ALLOWED_ATTR,se):Bt,Wd=ce(j,"ALLOWED_NAMESPACES")&&Qe(j.ALLOWED_NAMESPACES)?Lt({},j.ALLOWED_NAMESPACES,Xd):zL,Nd=ce(j,"ADD_URI_SAFE_ATTR")&&Qe(j.ADD_URI_SAFE_ATTR)?Lt(je(e0),j.ADD_URI_SAFE_ATTR,se):e0,Jb=ce(j,"ADD_DATA_URI_TAGS")&&Qe(j.ADD_DATA_URI_TAGS)?Lt(je(t0),j.ADD_DATA_URI_TAGS,se):t0,ni=ce(j,"FORBID_CONTENTS")&&Qe(j.FORB
3ID_CONTENTS)?Lt({},j.FORBID_CONTENTS,se):jd,Gt=ce(j,"FORBID_TAGS")&&Qe(j.FORBID_TAGS)?Lt({},j.FORBID_TAGS,se):je({}),pe=ce(j,"FORBID_ATTR")&&Qe(j.FORBID_ATTR)?Lt({},j.FORBID_ATTR,se):je({}),Ba=ce(j,"USE_PROFILES")?j.USE_PROFILES&&typeof j.USE_PROFILES=="object"?je(j.USE_PROFILES):j.USE_PROFILES:!1,wi=j.ALLOW_ARIA_ATTR!==!1,nn=j.ALLOW_DATA_ATTR!==!1,ei=j.ALLOW_UNKNOWN_PROTOCOLS||!1,ri=j.ALLOW_SELF_CLOSE_IN_ATTR!==!1,br=j.SAFE_FOR_TEMPLATES||!1,an=j.SAFE_FOR_XML!==!1,ii=j.WHOLE_DOCUMENT||!1,Oa=j.RETURN_DOM||!1,Mc=j.RETURN_DOM_FRAGMENT||!1,Fc=j.RETURN_TRUSTED_TYPE||!1,Id=j.FORCE_BODY||!1,Kb=j.SANITIZE_DOM!==!1,Zb=j.SANITIZE_NAMED_PROPS||!1,Dd=j.KEEP_CONTENT!==!1,Rd=j.IN_PLACE||!1,Z=eF(j.ALLOWED_URI_REGEXP)?j.ALLOWED_URI_REGEXP:E0,$a=typeof j.NAMESPACE=="string"?j.NAMESPACE:ai,qd=ce(j,"MATHML_TEXT_INTEGRATION_POINTS")&&j.MATHML_TEXT_INTEGRATION_POINTS&&typeof j.MATHML_TEXT_INTEGRATION_POINTS=="object"?je(j.MATHML_TEXT_INTEGRATION_POINTS):Lt({},["mi","mo","mn","ms","mtext"]),Hd=ce(j,"HTML_INTEGRATION_POINTS")&&j.HTML_INTEGRATION_POINTS&&typeof j.HTML_INTEGRATION_POINTS=="object"?je(j.HTML_INTEGRATION_POINTS):Lt({},["annotation-xml"]);const Y=ce(j,"CUSTOM_ELEMENT_HANDLING")&&j.CUSTOM_ELEMENT_HANDLING&&typeof j.CUSTOM_ELEMENT_HANDLING=="object"?je(j.CUSTOM_ELEMENT_HANDLING):za(null);if(bt=za(null),ce(Y,"tagNameCheck")&&r0(Y.tagNameCheck)&&(bt.tagNameCheck=Y.tagNameCheck),ce(Y,"attributeNameCheck")&&r0(Y.attributeNameCheck)&&(bt.attributeNameCheck=Y.attributeNameCheck),ce(Y,"allowCustomizedBuiltInElements")&&typeof Y.allowCustomizedBuiltInElements=="boolean"&&(bt.allowCustomizedBuiltInElements=Y.allowCustomizedBuiltInElements),br&&(nn=!1),Mc&&(Oa=!0),Ba&&(K=Lt({},O0),ht=za(null),Ba.html===!0&&(Lt(K,A0),Lt(ht,B0)),Ba.svg===!0&&(Lt(K,Kd),Lt(ht,Jd),Lt(ht,zc)),Ba.svgFilters===!0&&(Lt(K,Zd),Lt(ht,Jd),Lt(ht,zc)),Ba.mathMl===!0&&(Lt(K,Qd),Lt(ht,$0),Lt(ht,zc))),ue.tagCheck=null,ue.attributeCheck=null,ce(j,"ADD_TAGS")&&(typeof j.ADD_TAGS=="function"?ue.tagCheck=j.ADD_TAGS:Qe(j.ADD_TAGS)&&(K===G&&(K=je(K)),Lt(K,j.ADD_TAGS,se))),ce(j,"ADD_ATTR")&&(typeof j.ADD_ATTR=="function"?ue.attributeCheck=j.ADD_ATTR:Qe(j.ADD_ATTR)&&(ht===Bt&&(ht=je(ht)),Lt(ht,j.ADD_ATTR,se))),ce(j,"ADD_URI_SAFE_ATTR")&&Qe(j.ADD_URI_SAFE_ATTR)&&Lt(Nd,j.ADD_URI_SAFE_ATTR,se),ce(j,"FORBID_CONTENTS")&&Qe(j.FORBID_CONTENTS)&&(ni===jd&&(ni=je(ni)),Lt(ni,j.FORBID_CONTENTS,se)),ce(j,"ADD_FORBID_CONTENTS")&&Qe(j.ADD_FORBID_CONTENTS)&&(ni===jd&&(ni=je(ni)),Lt(ni,j.ADD_FORBID_CONTENTS,se)),Dd&&(K["#text"]=!0),ii&&Lt(K,["html","head","body"]),K.table&&(Lt(K,["tbody"]),delete Gt.tbody),j.TRUSTED_TYPES_POLICY){if(typeof j.TRUSTED_TYPES_POLICY.createHTML!="function")throw In('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof j.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw In('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const rt=C;C=j.TRUSTED_TYPES_POLICY;try{k=I("")}catch(Tt){throw C=rt,Tt}}else j.TRUSTED_TYPES_POLICY===null?(C=void 0,k=""):(C===void 0&&(C=_()),C&&typeof k=="string"&&(k=I("")));(W.uponSanitizeElement.length>0||W.uponSanitizeAttribute.length>0)&&K===G&&(K=je(K)),W.uponSanitizeAttribute.length>0&&ht===Bt&&(ht=je(ht)),nr&&nr(j),Ea=j},i0=Lt({},[...Kd,...Zd,...rF]),n0=Lt({},[...Qd,...iF]),YL=function(j){let Y=m(j);(!Y||!Y.tagName)&&(Y={namespaceURI:$a,tagName:"template"});const rt=Ks(j.tagName),Tt=Ks(Y.tagName);return Wd[j.namespaceURI]?j.namespaceURI===Dc?Y.namespaceURI===ai?rt==="svg":Y.namespaceURI===Ic?rt==="svg"&&(Tt==="annotation-xml"||qd[Tt]):!!i0[rt]:j.namespaceURI===Ic?Y.namespaceURI===ai?rt==="math":Y.namespaceURI===Dc?rt==="math"&&Hd[Tt]:!!n0[rt]:j.namespaceURI===ai?Y.namespaceURI===Dc&&!Hd[Tt]||Y.namespaceURI===Ic&&!qd[Tt]?!1:!n0[rt]&&(WL[rt]||!i0[rt]):!!(_s==="application/xhtml+xml"&&Wd[j.namespaceURI]):!1},Fr=function(j){La(t.removed,{element:j});try{m(j).removeChild(j)}catch{if(y(j),!m(j))throw In("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},a0=function(j){const Y=g?g(j):j.childNodes;if(Y){const Tt=[];ki(Y,$t=>{La(Tt,$t)}),ki(Tt,$t=>{try{y($t)}catch{}})}const rt=x?x(j):null;if(rt)for(let Tt=rt.length-1;Tt>=0;--Tt){const $t=rt[Tt],Ft=$t&&$t.name;if(typeof Ft=="string")try{j.removeAttribute(Ft)}catch{}}},Fn=function(j,Y){try{La(t.removed,{attribute:Y.getAttributeNode(j),from:Y})}catch{La(t.removed,{attribute:null,from:Y})}if(Y.removeAttribute(j),j==="is")if(Oa||Mc)try{Fr(Y)}catch{}else try{Y.setAttribute(j,"")}catch{}},GL=function(j){const Y=x?x(j):j.attributes;if(Y)for(let rt=Y.length-1;rt>=0;--rt){const Tt=Y[rt],$t=Tt&&Tt.name;if(!(typeof $t!="string"||ht[se($t)]))try{j.removeAttribute($t)}catch{}}},VL=function(j){const Y=[j];for(;Y.length>0;){const rt=Y.pop();(w?w(rt):rt.nodeType)===oi.element&&GL(rt);const $t=g?g(rt):rt.childNodes;if($t)for(let Ft=$t.length-1;Ft>=0;--Ft)Y.push($t[Ft])}},o0=function(j){let Y=null,rt=null;if(Id)j="<remove></remove>"+j;else{const Ft=S0(j,/^[\r\n\t ]+/);rt=Ft&&Ft[0]}_s==="application/xhtml+xml"&&$a===ai&&(j='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+j+"</body></html>");const Tt=C?I(j):j;
3if($a===ai)try{Y=new h().parseFromString(Tt,_s)}catch{}if(!Y||!Y.documentElement){Y=O.createDocument($a,"template",null);try{Y.documentElement.innerHTML=zd?k:Tt}catch{}}const $t=Y.body||Y.documentElement;return j&&rt&&$t.insertBefore(r.createTextNode(rt),$t.childNodes[0]||null),$a===ai?$.call(Y,ii?"html":"body")[0]:ii?Y.documentElement:$t},s0=function(j){return M.call(j.ownerDocument||j,j,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Yd=function(j){var Y,rt;j.normalize();const Tt=M.call(j.ownerDocument||j,j,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let $t=Tt.nextNode();for(;$t;){let be=$t.data;ki([U,Q,it],Zt=>{be=Ma(be,Zt," ")}),$t.data=be,$t=Tt.nextNode()}const Ft=(Y=(rt=j.querySelectorAll)===null||rt===void 0?void 0:rt.call(j,"template"))!==null&&Y!==void 0?Y:[];ki(Array.from(Ft),be=>{Pa(be.content)&&Yd(be.content)})},Rc=function(j){const Y=b?b(j):null;return typeof Y!="string"||se(Y)!=="form"?!1:typeof j.nodeName!="string"||typeof j.textContent!="string"||typeof j.removeChild!="function"||j.attributes!==x(j)||typeof j.removeAttribute!="function"||typeof j.setAttribute!="function"||typeof j.namespaceURI!="string"||typeof j.insertBefore!="function"||typeof j.hasChildNodes!="function"||j.nodeType!==w(j)||j.childNodes!==g(j)},Pa=function(j){if(!w||typeof j!="object"||j===null)return!1;try{return w(j)===oi.documentFragment}catch{return!1}},As=function(j){if(!w||typeof j!="object"||j===null)return!1;try{return typeof w(j)=="number"}catch{return!1}};function Si(ot,j,Y){ki(ot,rt=>{rt.call(t,j,Y,Ea)})}const l0=function(j){let Y=null;if(Si(W.beforeSanitizeElements,j,null),Rc(j))return Fr(j),!0;const rt=se(b?b(j):j.nodeName);if(Si(W.uponSanitizeElement,j,{tagName:rt,allowedTags:K}),an&&j.hasChildNodes()&&!As(j.firstElementChild)&&Le(/<[/\w!]/g,j.innerHTML)&&Le(/<[/\w!]/g,j.textContent)||an&&j.namespaceURI===ai&&rt==="style"&&As(j.firstElementChild)||j.nodeType===oi.progressingInstruction||an&&j.nodeType===oi.comment&&Le(/<[/\w]/g,j.data))return Fr(j),!0;if(Gt[rt]||!(ue.tagCheck instanceof Function&&ue.tagCheck(rt))&&!K[rt]){if(!Gt[rt]&&h0(rt)&&(bt.tagNameCheck instanceof RegExp&&Le(bt.tagNameCheck,rt)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(rt)))return!1;if(Dd&&!ni[rt]){const $t=m(j),Ft=g(j);if(Ft&&$t){const be=Ft.length;for(let Zt=be-1;Zt>=0;--Zt){const fe=Rd?Ft[Zt]:f(Ft[Zt],!0);$t.insertBefore(fe,p(j))}}}return Fr(j),!0}return(w?w(j):j.nodeType)===oi.element&&!YL(j)||(rt==="noscript"||rt==="noembed"||rt==="noframes")&&Le(/<\/no(script|embed|frames)/i,j.innerHTML)?(Fr(j),!0):(br&&j.nodeType===oi.text&&(Y=j.textContent,ki([U,Q,it],$t=>{Y=Ma(Y,$t," ")}),j.textContent!==Y&&(La(t.removed,{element:j.cloneNode()}),j.textContent=Y)),Si(W.afterSanitizeElements,j,null),!1)},c0=function(j,Y,rt){if(pe[Y]||Kb&&(Y==="id"||Y==="name")&&(rt in r||rt in UL))return!1;const Tt=ht[Y]||ue.attributeCheck instanceof Function&&ue.attributeCheck(Y,j);if(!(nn&&!pe[Y]&&Le(nt,Y))){if(!(wi&&Le(vt,Y))){if(!Tt||pe[Y]){if(!(h0(j)&&(bt.tagNameCheck instanceof RegExp&&Le(bt.tagNameCheck,j)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(j))&&(bt.attributeNameCheck instanceof RegExp&&Le(bt.attributeNameCheck,Y)||bt.attributeNameCheck instanceof Function&&bt.attributeNameCheck(Y,j))||Y==="is"&&bt.allowCustomizedBuiltInElements&&(bt.tagNameCheck instanceof RegExp&&Le(bt.tagNameCheck,rt)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(rt))))return!1}else if(!Nd[Y]){if(!Le(Z,Ma(rt,Et,""))){if(!((Y==="src"||Y==="xlink:href"||Y==="href")&&j!=="script"&&k0(rt,"data:")===0&&Jb[j])){if(!(ei&&!Le(Pt,Ma(rt,Et,"")))){if(rt)return!1}}}}}}return!0},XL=Lt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),h0=function(j){return!XL[Ks(j)]&&Le(et,j)},u0=function(j){Si(W.beforeSanitizeAttributes,j,null);const Y=j.attributes;if(!Y||Rc(j))return;const rt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ht,forceKeepAttr:void 0};let Tt=Y.length;for(;Tt--;
3){const $t=Y[Tt],Ft=$t.name,be=$t.namespaceURI,Zt=$t.value,fe=se(Ft),on=Zt;let Ae=Ft==="value"?on:XM(on);if(rt.attrName=fe,rt.attrValue=Ae,rt.keepAttr=!0,rt.forceKeepAttr=void 0,Si(W.uponSanitizeAttribute,j,rt),Ae=rt.attrValue,Zb&&(fe==="id"||fe==="name")&&k0(Ae,Qb)!==0&&(Fn(Ft,j),Ae=Qb+Ae),an&&Le(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ae)){Fn(Ft,j);continue}if(fe==="attributename"&&S0(Ae,"href")){Fn(Ft,j);continue}if(rt.forceKeepAttr)continue;if(!rt.keepAttr){Fn(Ft,j);continue}if(!ri&&Le(/\/>/i,Ae)){Fn(Ft,j);continue}br&&ki([U,Q,it],d0=>{Ae=Ma(Ae,d0," ")});const f0=se(j.nodeName);if(!c0(f0,fe,Ae)){Fn(Ft,j);continue}if(C&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!be)switch(u.getAttributeType(f0,fe)){case"TrustedHTML":{Ae=I(Ae);break}case"TrustedScriptURL":{Ae=D(Ae);break}}if(Ae!==on)try{be?j.setAttributeNS(be,Ft,Ae):j.setAttribute(Ft,Ae),Rc(j)?Fr(j):w0(t.removed)}catch{Fn(Ft,j)}}Si(W.afterSanitizeAttributes,j,null)},jc=function(j){let Y=null;const rt=s0(j);for(Si(W.beforeSanitizeShadowDOM,j,null);Y=rt.nextNode();)if(Si(W.uponSanitizeShadowNode,Y,null),l0(Y),u0(Y),Pa(Y.content)&&jc(Y.content),(w?w(Y):Y.nodeType)===oi.element){const $t=v?v(Y):Y.shadowRoot;Pa($t)&&(Gd($t),jc($t))}Si(W.afterSanitizeShadowDOM,j,null)},Gd=function(j){const Y=[{node:j,shadow:null}];for(;Y.length>0;){const rt=Y.pop();if(rt.shadow){jc(rt.shadow);continue}const Tt=rt.node,Ft=(w?w(Tt):Tt.nodeType)===oi.element,be=g?g(Tt):Tt.childNodes;if(be)for(let Zt=be.length-1;Zt>=0;--Zt)Y.push({node:be[Zt],shadow:null});if(Ft){const Zt=b?b(Tt):null;if(typeof Zt=="string"&&se(Zt)==="template"){const fe=Tt.content;Pa(fe)&&Y.push({node:fe,shadow:null})}}if(Ft){const Zt=v?v(Tt):Tt.shadowRoot;Pa(Zt)&&Y.push({node:null,shadow:Zt},{node:Zt,shadow:null})}}};return t.sanitize=function(ot){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,rt=null,Tt=null,$t=null;if(zd=!ot,zd&&(ot="<!-->"),typeof ot!="string"&&!As(ot)&&(ot=tF(ot),typeof ot!="string"))throw In("dirty is not a string, aborting");if(!t.isSupported)return ot;Fd||Ud(j),t.removed=[];const Ft=Rd&&typeof ot!="string"&&As(ot);if(Ft){const fe=b?b(ot):ot.nodeName;if(typeof fe=="string"){const on=se(fe);if(!K[on]||Gt[on])throw In("root node is forbidden and cannot be sanitized in-place")}if(Rc(ot))throw In("root node is clobbered and cannot be sanitized in-place");try{Gd(ot)}catch(on){throw a0(ot),on}}else if(As(ot))Y=o0("<!---->"),rt=Y.ownerDocument.importNode(ot,!0),rt.nodeType===oi.element&&rt.nodeName==="BODY"||rt.nodeName==="HTML"?Y=rt:Y.appendChild(rt),Gd(rt);else{if(!Oa&&!br&&!ii&&ot.indexOf("<")===-1)return C&&Fc?I(ot):ot;if(Y=o0(ot),!Y)return Oa?null:Fc?k:""}Y&&Id&&Fr(Y.firstChild);const be=s0(Ft?ot:Y);try{for(;Tt=be.nextNode();)l0(Tt),u0(Tt),Pa(Tt.content)&&jc(Tt.content)}catch(fe){throw Ft&&a0(ot),fe}if(Ft)return ki(t.removed,fe=>{fe.element&&VL(fe.element)}),br&&Yd(ot),ot;if(Oa){if(br&&Yd(Y),Mc)for($t=F.call(Y.ownerDocument);Y.firstChild;)$t.appendChild(Y.firstChild);else $t=Y;return(ht.shadowroot||ht.shadowrootmode)&&($t=N.call(i,$t,!0)),$t}let Zt=ii?Y.outerHTML:Y.innerHTML;return ii&&K["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&Le(uF,Y.ownerDocument.doctype.name)&&(Zt="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
4`+Zt),br&&ki([U,Q,it],fe=>{Zt=Ma(Zt,fe," ")}),C&&Fc?I(Zt):Zt},t.setConfig=function(){let ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ud(ot),Fd=!0},t.clearConfig=function(){Ea=null,Fd=!1,C=T,k=""},t.isValidAttribute=function(ot,j,Y){Ea||Ud({});const rt=se(ot),Tt=se(j);return c0(rt,Tt,Y)},t.addHook=function(ot,j){typeof j=="function"&&La(W[ot],j)},t.removeHook=function(ot,j){if(j!==void 0){const Y=GM(W[ot],j);return Y===-1?void 0:VM(W[ot],Y,1)[0]}return w0(W[ot])},t.removeHooks=function(ot){W[ot]=[]},t.removeAllHooks=function(){W=P0()},t}var na=ok();const n0t=Object.freeze(Object.defineProperty({__proto__:null,default:na},Symbol.toStringTag,{value:"Module"}));var gF=Array.isArray,sr=gF,yF=typeof Xs=="object"&&Xs&&Xs.Object===Object&&Xs,sk=yF,mF=sk,vF=typeof self=="object"&&self&&self.Object===Object&&self,bF=mF||vF||Function("return this")(),Kr=bF,xF=Kr,CF=xF.Symbol,os=CF,L0=os,lk=Object.prototype,wF=lk.hasOwnProperty,SF=lk.toString,$s=L0?L0.toStringTag:void 0;
vendor: 5,323 bytes, line 4
4function kF(e){var t=wF.call(e,$s),r=e[$s];try{e[$s]=void 0;var i=!0}catch{}var n=SF.call(e);return i&&(t?e[$s]=r:delete e[$s]),n}var TF=kF,_F=Object.prototype,AF=_F.toString;function OF(e){return AF.call(e)}var BF=OF,M0=os,$F=TF,EF=BF,PF="[object Null]",LF="[object Undefined]",F0=M0?M0.toStringTag:void 0;function MF(e){return e==null?e===void 0?LF:PF:F0&&F0 in Object(e)?$F(e):EF(e)}var Zi=MF;function FF(e){return e!=null&&typeof e=="object"}var Zr=FF,IF=Zi,DF=Zr,RF="[object Symbol]";function jF(e){return typeof e=="symbol"||DF(e)&&IF(e)==RF}var ss=jF,NF=sr,zF=ss,WF=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qF=/^\w*$/;function HF(e,t){if(NF(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||zF(e)?!0:qF.test(e)||!WF.test(e)||t!=null&&e in Object(t)}var Em=HF;function UF(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qr=UF;const ls=Ut(Qr);var YF=Zi,GF=Qr,VF="[object AsyncFunction]",XF="[object Function]",KF="[object GeneratorFunction]",ZF="[object Proxy]";function QF(e){if(!GF(e))return!1;var t=YF(e);return t==XF||t==KF||t==VF||t==ZF}var Pm=QF;const pt=Ut(Pm);var JF=Kr,tI=JF["__core-js_shared__"],eI=tI,tp=eI,I0=function(){var e=/[^.]+$/.exec(tp&&tp.keys&&tp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function rI(e){return!!I0&&I0 in e}var iI=rI,nI=Function.prototype,aI=nI.toString;function oI(e){if(e!=null){try{return aI.call(e)}catch{}try{return e+""}catch{}}return""}var ck=oI,sI=Pm,lI=iI,cI=Qr,hI=ck,uI=/[\\^$.*+?()[\]{}|]/g,fI=/^\[object .+?Constructor\]$/,dI=Function.prototype,pI=Object.prototype,gI=dI.toString,yI=pI.hasOwnProperty,mI=RegExp("^"+gI.call(yI).replace(uI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vI(e){if(!cI(e)||lI(e))return!1;var t=sI(e)?mI:fI;return t.test(hI(e))}var bI=vI;function xI(e,t){return e==null?void 0:e[t]}var CI=xI,wI=bI,SI=CI;function kI(e,t){var r=SI(e,t);return wI(r)?r:void 0}var va=kI,TI=va,_I=TI(Object,"create"),yf=_I,D0=yf;function AI(){this.__data__=D0?D0(null):{},this.size=0}var OI=AI;function BI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $I=BI,EI=yf,PI="__lodash_hash_undefined__",LI=Object.prototype,MI=LI.hasOwnProperty;function FI(e){var t=this.__data__;if(EI){var r=t[e];return r===PI?void 0:r}return MI.call(t,e)?t[e]:void 0}var II=FI,DI=yf,RI=Object.prototype,jI=RI.hasOwnProperty;function NI(e){var t=this.__data__;return DI?t[e]!==void 0:jI.call(t,e)}var zI=NI,WI=yf,qI="__lodash_hash_undefined__";function HI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=WI&&t===void 0?qI:t,this}var UI=HI,YI=OI,GI=$I,VI=II,XI=zI,KI=UI;function cs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}cs.prototype.clear=YI;cs.prototype.delete=GI;cs.prototype.get=VI;cs.prototype.has=XI;cs.prototype.set=KI;var ZI=cs;function QI(){this.__data__=[],this.size=0}var JI=QI;function tD(e,t){return e===t||e!==e&&t!==t}var mf=tD,eD=mf;function rD(e,t){for(var r=e.length;r--;)if(eD(e[r][0],t))return r;return-1}var vf=rD,iD=vf,nD=Array.prototype,aD=nD.splice;function oD(e){var t=this.__data__,r=iD(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():aD.call(t,r,1),--this.size,!0}var sD=oD,lD=vf;function cD(e){var t=this.__data__,r=lD(t,e);return r<0?void 0:t[r][1]}var hD=cD,uD=vf;function fD(e){return uD(this.__data__,e)>-1}var dD=fD,pD=vf;function gD(e,t){var r=this.__data__,i=pD(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var yD=gD,mD=JI,vD=sD,bD=hD,xD=dD,CD=yD;function hs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}hs.prototype.clear=mD;hs.prototype.delete=vD;hs.prototype.get=bD;hs.prototype.has=xD;hs.prototype.set=CD;var bf=hs,wD=va,SD=Kr,kD=wD(SD,"Map"),Lm=kD,R0=ZI,TD=bf,_D=Lm;function AD(){this.size=0,this.__data__={hash:new R0,map:new(_D||TD),string:new R0}}var OD=AD;function BD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var $D=BD,ED=$D;function PD(e,t){var r=e.__data__;return ED(t)?r[typeof t=="string"?"string":"hash"]:r.map}var xf=PD,LD=xf;function MD(e){var t=LD(this,e).delete(e);return this.size-=t?1:0,t}var FD=MD,ID=xf;function DD(e){return ID(this,e).get(e)}var RD=DD,jD=xf;function ND(e){return jD(this,e).has(e)}var zD=ND,WD=xf;function qD(e,t){var r=WD(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}var HD=qD,UD=OD,YD=FD,GD=RD,VD=zD,XD=HD;function us(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}us.prototype.clear=UD;us.prototype.delete=YD;us.prototype.get=GD;us.prototype.has=VD;us.prototype.set=XD;var Mm=us,hk=Mm,KD="Expected a function";function Fm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(KD);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var o=e.apply(this,i);return r.cache=a.set(n,o)||a,o};return r.cache=new(Fm.Cache||hk),r}Fm.Cache=hk;var uk=Fm;const ZD=Ut(uk);var QD=uk,JD=500;function t5(e){var t=QD(e,function(i){return r.size===JD&&r.clear(),i}),r=t.cache;return t}var e5=t5,r5=e5,i5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n5=/\\(\\)?/g,a5=r5(function(e){var t=[];
vendor: 9,630 bytes, lines 4-12
4return e.charCodeAt(0)===46&&t.push(""),e.replace(i5,function(r,i,n,a){t.push(n?a.replace(n5,"$1"):i||r)}),t}),o5=a5;function s5(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}var Cf=s5,j0=os,l5=Cf,c5=sr,h5=ss,N0=j0?j0.prototype:void 0,z0=N0?N0.toString:void 0;function fk(e){if(typeof e=="string")return e;if(c5(e))return l5(e,fk)+"";if(h5(e))return z0?z0.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var u5=fk,f5=u5;function d5(e){return e==null?"":f5(e)}var dk=d5,p5=sr,g5=Em,y5=o5,m5=dk;function v5(e,t){return p5(e)?e:g5(e,t)?[e]:y5(m5(e))}var wf=v5,b5=ss;function x5(e){if(typeof e=="string"||b5(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var dc=x5,C5=wf,w5=dc;function S5(e,t){t=C5(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[w5(t[r++])];return r&&r==i?e:void 0}var Sf=S5,k5=Sf;function T5(e,t,r){var i=e==null?void 0:k5(e,t);return i===void 0?r:i}var pk=T5;const fr=Ut(pk);function _5(e){return e==null}var A5=_5;const yt=Ut(A5);var O5=Zi,B5=sr,$5=Zr,E5="[object String]";function P5(e){return typeof e=="string"||!B5(e)&&$5(e)&&O5(e)==E5}var L5=P5;const wn=Ut(L5);var gk={exports:{}},Yt={};/**
5 * @license React
6 * react-is.production.min.js
7 *
8 * Copyright (c) Facebook, Inc. and its affiliates.
9 *
10 * This source code is licensed under the MIT license found in the
11 * LICENSE file in the root directory of this source tree.
12 */var Im=Symbol.for("react.element"),Dm=Symbol.for("react.portal"),kf=Symbol.for("react.fragment"),Tf=Symbol.for("react.strict_mode"),_f=Symbol.for("react.profiler"),Af=Symbol.for("react.provider"),Of=Symbol.for("react.context"),M5=Symbol.for("react.server_context"),Bf=Symbol.for("react.forward_ref"),$f=Symbol.for("react.suspense"),Ef=Symbol.for("react.suspense_list"),Pf=Symbol.for("react.memo"),Lf=Symbol.for("react.lazy"),F5=Symbol.for("react.offscreen"),yk;yk=Symbol.for("react.module.reference");function Lr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Im:switch(e=e.type,e){case kf:case _f:case Tf:case $f:case Ef:return e;default:switch(e=e&&e.$$typeof,e){case M5:case Of:case Bf:case Lf:case Pf:case Af:return e;default:return t}}case Dm:return t}}}Yt.ContextConsumer=Of;Yt.ContextProvider=Af;Yt.Element=Im;Yt.ForwardRef=Bf;Yt.Fragment=kf;Yt.Lazy=Lf;Yt.Memo=Pf;Yt.Portal=Dm;Yt.Profiler=_f;Yt.StrictMode=Tf;Yt.Suspense=$f;Yt.SuspenseList=Ef;Yt.isAsyncMode=function(){return!1};Yt.isConcurrentMode=function(){return!1};Yt.isContextConsumer=function(e){return Lr(e)===Of};Yt.isContextProvider=function(e){return Lr(e)===Af};Yt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Im};Yt.isForwardRef=function(e){return Lr(e)===Bf};Yt.isFragment=function(e){return Lr(e)===kf};Yt.isLazy=function(e){return Lr(e)===Lf};Yt.isMemo=function(e){return Lr(e)===Pf};Yt.isPortal=function(e){return Lr(e)===Dm};Yt.isProfiler=function(e){return Lr(e)===_f};Yt.isStrictMode=function(e){return Lr(e)===Tf};Yt.isSuspense=function(e){return Lr(e)===$f};Yt.isSuspenseList=function(e){return Lr(e)===Ef};Yt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===kf||e===_f||e===Tf||e===$f||e===Ef||e===F5||typeof e=="object"&&e!==null&&(e.$$typeof===Lf||e.$$typeof===Pf||e.$$typeof===Af||e.$$typeof===Of||e.$$typeof===Bf||e.$$typeof===yk||e.getModuleId!==void 0)};Yt.typeOf=Lr;gk.exports=Yt;var I5=gk.exports,D5=Zi,R5=Zr,j5="[object Number]";function N5(e){return typeof e=="number"||R5(e)&&D5(e)==j5}var mk=N5;const vk=Ut(mk);var z5=mk;function W5(e){return z5(e)&&e!=+e}var q5=W5;const Bn=Ut(q5);var Je=function(t){return t===0?0:t>0?1:-1},Gn=function(t){return wn(t)&&t.indexOf("%")===t.length-1},tt=function(t){return vk(t)&&!Bn(t)},H5=function(t){return yt(t)},Te=function(t){return tt(t)||wn(t)},U5=0,Qi=function(t){var r=++U5;return"".concat(t||"").concat(r)},tr=function(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!tt(t)&&!wn(t))return i;var a;if(Gn(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Bn(a)&&(a=i),n&&a>r&&(a=r),a},hn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Y5=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,i={},n=0;n<r;n++)if(!i[t[n]])i[t[n]]=!0;else return!0;return!1},Rt=function(t,r){return tt(t)&&tt(r)?function(i){return t+i*(r-t)}:function(){return r}};function Eh(e,t,r){return!e||!e.length?null:e.find(function(i){return i&&(typeof t=="function"?t(i):fr(i,t))===r})}var G5=function(t){if(!t||!t.length)return null;for(var r=t.length,i=0,n=0,a=0,o=0,s=1/0,l=-1/0,c=0,h=0,u=0;u<r;u++)c=t[u].cx||0,h=t[u].cy||0,i+=c,n+=h,a+=c*h,o+=c*c,s=Math.min(s,c),l=Math.max(l,c);var d=r*o!==i*i?(r*a-i*n)/(r*o-i*i):0;return{xmin:s,xmax:l,a:d,b:(n-d*i)/r}},V5=function(t,r){return tt(t)&&tt(r)?t-r:wn(t)&&wn(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Qa(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var i in t)if({}.hasOwnProperty.call(t,i)&&!{}.hasOwnProperty.call(e,i))return!1;return!0}function tg(e){"@babel/helpers - typeof";return tg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tg(e)}var X5=["viewBox","children"],K5=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],W0=["points","pathLength"],ep={svg:X5,polygon:W0,polyline:W0},Rm=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
12ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Ph=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(J.isValidElement(t)&&(i=t.props),!ls(i))return null;var n={};
vendor: 5,108 bytes, line 12
12return Object.keys(i).forEach(function(a){Rm.includes(a)&&(n[a]=r||function(o){return i[a](i,o)})}),n},Z5=function(t,r,i){return function(n){return t(r,i,n),null}},Hi=function(t,r,i){if(!ls(t)||tg(t)!=="object")return null;var n=null;return Object.keys(t).forEach(function(a){var o=t[a];Rm.includes(a)&&typeof o=="function"&&(n||(n={}),n[a]=Z5(o,r,i))}),n},Q5=["children"],J5=["children"];function q0(e,t){if(e==null)return{};var r=t3(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function t3(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function eg(e){"@babel/helpers - typeof";return eg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eg(e)}var H0={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ri=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},U0=null,rp=null,Mf=function e(t){if(t===U0&&Array.isArray(rp))return rp;var r=[];return J.Children.forEach(t,function(i){yt(i)||(I5.isFragment(i)?r=r.concat(e(i.props.children)):r.push(i))}),rp=r,U0=t,r};function Ve(e,t){var r=[],i=[];return Array.isArray(t)?i=t.map(function(n){return Ri(n)}):i=[Ri(t)],Mf(e).forEach(function(n){var a=fr(n,"type.displayName")||fr(n,"type.name");i.indexOf(a)!==-1&&r.push(n)}),r}function Ue(e,t){var r=Ve(e,t);return r&&r[0]}var rg=function(t){if(!t||!t.props)return!1;var r=t.props,i=r.width,n=r.height;return!(!tt(i)||i<=0||!tt(n)||n<=0)},e3=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],bk=function(t){return t&&t.type&&wn(t.type)&&e3.indexOf(t.type)>=0},xk=function(t){return t&&eg(t)==="object"&&"clipDot"in t},r3=function(t,r,i,n){var a,o=(a=ep==null?void 0:ep[n])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!pt(t)&&(n&&o.includes(r)||K5.includes(r))||i&&Rm.includes(r)},i3=function(t){var r=[];return Mf(t).forEach(function(i){bk(i)&&r.push(i)}),r},lt=function(t,r,i){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(J.isValidElement(t)&&(n=t.props),!ls(n))return null;var a={};return Object.keys(n).forEach(function(o){var s;r3((s=n)===null||s===void 0?void 0:s[o],o,r,i)&&(a[o]=n[o])}),a},ig=function e(t,r){if(t===r)return!0;var i=J.Children.count(t);if(i!==J.Children.count(r))return!1;if(i===0)return!0;if(i===1)return Y0(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var n=0;n<i;n++){var a=t[n],o=r[n];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Y0(a,o))return!1}return!0},Y0=function(t,r){if(yt(t)&&yt(r))return!0;if(!yt(t)&&!yt(r)){var i=t.props||{},n=i.children,a=q0(i,Q5),o=r.props||{},s=o.children,l=q0(o,J5);return n&&s?Qa(a,l)&&ig(n,s):!n&&!s?Qa(a,l):!1}return!1},G0=function(t,r){var i=[],n={};return Mf(t).forEach(function(a,o){if(bk(a))i.push(a);else if(a){var s=Ri(a.type),l=r[s]||{},c=l.handler,h=l.once;if(c&&(!h||!n[s])){var u=c(a,s,o);i.push(u),n[s]=!0}}}),i},n3=function(t){var r=t&&t.type;return r&&H0[r]?H0[r]:null},a3=function(t,r){return Mf(r).indexOf(t)},o3=["children","width","height","viewBox","className","style","title","desc"];function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ng.apply(this,arguments)}function s3(e,t){if(e==null)return{};var r=l3(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function l3(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;
12r[i]=e[i]}return r}function Lh(e){var t=e.children,r=e.width,i=e.height,n=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,c=s3(e,o3),h=n||{width:r,height:i,x:0,y:0},u=Ot("recharts-surface",a);return R.createElement("svg",ng({},lt(c,!0,"svg"),{className:u,width:r,height:i,style:o,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),R.createElement("title",null,s),R.createElement("desc",null,l),t)}var c3=["children","className"];function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ag.apply(this,arguments)}function h3(e,t){if(e==null)return{};var r=u3(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function u3(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}var At=R.forwardRef(function(e,t){var r=e.children,i=e.className,n=h3(e,c3),a=Ot("recharts-layer",i);return R.createElement("g",ag({className:a},lt(n,!0),{ref:t}),r)}),Ur=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a]};function f3(e,t,r){var i=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(n);++i<n;)a[i]=e[i+t];return a}var Ck=f3,d3=Ck;function p3(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:d3(e,t,r)}var g3=p3,y3="\\ud800-\\udfff",m3="\\u0300-\\u036f",v3="\\ufe20-\\ufe2f",b3="\\u20d0-\\u20ff",x3=m3+v3+b3,C3="\\ufe0e\\ufe0f",w3="\\u200d",S3=RegExp("["+w3+y3+x3+C3+"]");function k3(e){return S3.test(e)}var wk=k3;function T3(e){return e.split("")}var _3=T3,Sk="\\ud800-\\udfff",A3="\\u0300-\\u036f",O3="\\ufe20-\\ufe2f",B3="\\u20d0-\\u20ff",$3=A3+O3+B3,E3="\\ufe0e\\ufe0f",P3="["+Sk+"]",og="["+$3+"]",sg="\\ud83c[\\udffb-\\udfff]",L3="(?:"+og+"|"+sg+")",kk="[^"+Sk+"]",Tk="(?:\\ud83c[\\udde6-\\uddff]){2}",_k="[\\ud800-\\udbff][\\udc00-\\udfff]",M3="\\u200d",Ak=L3+"?",Ok="["+E3+"]?",F3="(?:"+M3+"(?:"+[kk,Tk,_k].join("|")+")"+Ok+Ak+")*",I3=Ok+Ak+F3,D3="(?:"+[kk+og+"?",og,Tk,_k,P3].join("|")+")",R3=RegExp(sg+"(?="+sg+")|"+D3+I3,"g");function j3(e){return e.match(R3)||[]}var N3=j3,z3=_3,W3=wk,q3=N3;function H3(e){return W3(e)?q3(e):z3(e)}var U3=H3,Y3=g3,G3=wk,V3=U3,X3=dk;function K3(e){return function(t){t=X3(t);var r=G3(t)?V3(t):void 0,i=r?r[0]:t.charAt(0),n=r?Y3(r,1).join(""):t.slice(1);return i[e]()+n}}var Z3=K3,Q3=Z3,J3=Q3("toUpperCase"),tR=J3;const Ff=Ut(tR);function Mt(e){return function(){return e}}const V0=Math.abs,Re=Math.atan2,$i=Math.cos,eR=Math.max,ip=Math.min,cr=Math.sin,De=Math.sqrt,Ne=1e-12,Sn=Math.PI,Mh=Sn/2,yn=2*Sn;function rR(e){return e>1?0:e<-1?Sn:Math.acos(e)}function X0(e){return e>=1?Mh:e<=-1?-Mh:Math.asin(e)}const lg=Math.PI,cg=2*lg,Wn=1e-6,iR=cg-Wn;function Bk(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function nR(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Bk;const r=10**t;return function(i){this._+=i[0];for(let n=1,a=i.length;n<a;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class aR{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Bk:nR(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,n){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,r,i,n,a,o){this._append`C${+t},${+r},${+i},${+n},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,i,n,a){if(t=+t,r=+r,i=+i,n=+n,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=i-t,c=n-r,h=o-t,u=s-r,d=h*h+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Wn)if(!(Math.abs(u*l-c*h)>Wn)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let f=i-o,y=n-s,p=l*l+c*c,g=f*f+y*y,m=Math.sqrt(p),v=Math.sqrt(d),x=a*Math.tan((lg-Math.acos((p+d-g)/(2*m*v)))/2),w=x/v,b=x/m;Math.abs(w-1)>Wn&&this._append`L${t+w*h},${r+w*u}`,this._append`A${a},${a},0,0,${+(u*f>h*y)},${this._x1=t+b*l},${this._y1=r+b*c}
12`}}arc(t,r,i,n,a,o){if(t=+t,r=+r,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let s=i*Math.cos(n),l=i*Math.sin(n),c=t+s,h=r+l,u=1^o,d=o?n-a:a-n;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>Wn||Math.abs(this._y1-h)>Wn)&&this._append`L${c},${h}`,i&&(d<0&&(d=d%cg+cg),d>iR?this._append`A${i},${i},0,1,${u},${t-s},${r-l}A${i},${i},0,1,${u},${this._x1=c},${this._y1=h}`:d>Wn&&this._append`A${i},${i},0,${+(d>=lg)},${u},${this._x1=t+i*Math.cos(a)},${this._y1=r+i*Math.sin(a)}`)}rect(t,r,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function If(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new aR(t)}function oR(e){return e.innerRadius}function sR(e){return e.outerRadius}function lR(e){return e.startAngle}function cR(e){return e.endAngle}function hR(e){return e&&e.padAngle}function uR(e,t,r,i,n,a,o,s){var l=r-e,c=i-t,h=o-n,u=s-a,d=u*l-h*c;if(!(d*d<Ne))return d=(h*(t-a)-u*(e-n))/d,[e+d*l,t+d*c]}function Wc(e,t,r,i,n,a,o){var s=e-r,l=t-i,c=(o?a:-a)/De(s*s+l*l),h=c*l,u=-c*s,d=e+h,f=t+u,y=r+h,p=i+u,g=(d+y)/2,m=(f+p)/2,v=y-d,x=p-f,w=v*v+x*x,b=n-a,C=d*p-y*f,k=(x<0?-1:1)*De(eR(0,b*b*w-C*C)),T=(C*x-v*k)/w,E=(-C*v-x*k)/w,L=(C*x+v*k)/w,P=(-C*v+x*k)/w,I=T-g,D=E-m,_=L-g,B=P-m;return I*I+D*D>_*_+B*B&&(T=L,E=P),{cx:T,cy:E,x01:-h,y01:-u,x11:T*(n/b-1),y11:E*(n/b-1)}}function a0t(){var e=oR,t=sR,r=Mt(0),i=null,n=lR,a=cR,o=hR,s=null,l=If(c);function c(){var h,u,d=+e.apply(this,arguments),f=+t.apply(this,arguments),y=n.apply(this,arguments)-Mh,p=a.apply(this,arguments)-Mh,g=V0(p-y),m=p>y;if(s||(s=h=l()),f<d&&(u=f,f=d,d=u),!(f>Ne))s.moveTo(0,0);else if(g>yn-Ne)s.moveTo(f*$i(y),f*cr(y)),s.arc(0,0,f,y,p,!m),d>Ne&&(s.moveTo(d*$i(p),d*cr(p)),s.arc(0,0,d,p,y,m));else{var v=y,x=p,w=y,b=p,C=g,k=g,T=o.apply(this,arguments)/2,E=T>Ne&&(i?+i.apply(this,arguments):De(d*d+f*f)),L=ip(V0(f-d)/2,+r.apply(this,arguments)),P=L,I=L,D,_;if(E>Ne){var B=X0(E/d*cr(T)),O=X0(E/f*cr(T));(C-=B*2)>Ne?(B*=m?1:-1,w+=B,b-=B):(C=0,w=b=(y+p)/2),(k-=O*2)>Ne?(O*=m?1:-1,v+=O,x-=O):(k=0,v=x=(y+p)/2)}var M=f*$i(v),F=f*cr(v),$=d*$i(b),N=d*cr(b);if(L>Ne){var W=f*$i(x),U=f*cr(x),Q=d*$i(w),it=d*cr(w),nt;if(g<Sn)if(nt=uR(M,F,Q,it,W,U,$,N)){var vt=M-nt[0],Pt=F-nt[1],Et=W-nt[0],et=U-nt[1],Z=1/cr(rR((vt*Et+Pt*et)/(De(vt*vt+Pt*Pt)*De(Et*Et+et*et)))/2),K=De(nt[0]*nt[0]+nt[1]*nt[1]);P=ip(L,(d-K)/(Z-1)),I=ip(L,(f-K)/(Z+1))}else P=I=0}k>Ne?I>Ne?(D=Wc(Q,it,M,F,f,I,m),_=Wc(W,U,$,N,f,I,m),s.moveTo(D.cx+D.x01,D.cy+D.y01),I<L?s.arc(D.cx,D.cy,I,Re(D.y01,D.x01),Re(_.y01,_.x01),!m):(s.arc(D.cx,D.cy,I,Re(D.y01,D.x01),Re(D.y11,D.x11),!m),s.arc(0,0,f,Re(D.cy+D.y11,D.cx+D.x11),Re(_.cy+_.y11,_.cx+_.x11),!m),s.arc(_.cx,_.cy,I,Re(_.y11,_.x11),Re(_.y01,_.x01),!m))):(s.moveTo(M,F),s.arc(0,0,f,v,x,!m)):s.moveTo(M,F),!(d>Ne)||!(C>Ne)?s.lineTo($,N):P>Ne?(D=Wc($,N,W,U,d,-P,m),_=Wc(M,F,Q,it,d,-P,m),s.lineTo(D.cx+D.x01,D.cy+D.y01),P<L?s.arc(D.cx,D.cy,P,Re(D.y01,D.x01),Re(_.y01,_.x01),!m):(s.arc(D.cx,D.cy,P,Re(D.y01,D.x01),Re(D.y11,D.x11),!m),s.arc(0,0,d,Re(D.cy+D.y11,D.cx+D.x11),Re(_.cy+_.y11,_.cx+_.x11),m),s.arc(_.cx,_.cy,P,Re(_.y11,_.x11),Re(_.y01,_.x01),!m))):s.arc(0,0,d,b,w,m)}if(s.closePath(),h)return s=null,h+""||null}return c.centroid=function(){var h=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,u=(+n.apply(this,arguments)+ +a.apply(this,arguments))/2-Sn/2;return[$i(u)*h,cr(u)*h]},c.innerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:Mt(+h),c):e},c.outerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:Mt(+h),c):t},c.cornerRadius=function(h){return arguments.length?(r=typeof h=="function"?h:Mt(+h),c):r},c.padRadius=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:Mt(+h),c):i},c.startAngle=function(h){return arguments.length?(n=typeof h=="function"?h:Mt(+h),c):n},c.endAngle=function(h){return arguments.length?(a=typeof h=="function"?h:Mt(+h),c):a},c.padAngle=function(h){return arguments.length?(o=typeof h=="function"?h:Mt(+h),c):o},c.context=function(h){return arguments.length?(s=h??null,c):s},c}function Df(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $k(e){this._context=e}$k.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function mn(e){return new $k(e)}function Ek(e){return e[0]}function Pk(e){return e[1]}function jm(e,t){var r=Mt(!0),i=null,n=mn,a=null,o=If(s);e=typeof e=="function"?e:e===void 0?Ek:Mt(e),t=typeof t=="function"?t:t===void 0?Pk:Mt(t);function s(l){var c,h=(l=Df(l)).length,u,d=!1,f;for(i==null&&(a=n(f=o())),c=0;c<=h;++c)!(c<h&&r(u=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,l),+t(u,c,l));if(f)return a=null,f+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Mt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Mt(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Mt(!!l),s):r},s.curve=function(l){return arguments.length?(n=l,i!=null&&(a=n(i)),s):n},s.context=function(l){return arguments.length?(l==null?i=a=null:a=n(i=l),s):i},s}
12function qc(e,t,r){var i=null,n=Mt(!0),a=null,o=mn,s=null,l=If(c);e=typeof e=="function"?e:e===void 0?Ek:Mt(+e),t=typeof t=="function"?t:Mt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Pk:Mt(+r);function c(u){var d,f,y,p=(u=Df(u)).length,g,m=!1,v,x=new Array(p),w=new Array(p);for(a==null&&(s=o(v=l())),d=0;d<=p;++d){if(!(d<p&&n(g=u[d],d,u))===m)if(m=!m)f=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=d-1;y>=f;--y)s.point(x[y],w[y]);s.lineEnd(),s.areaEnd()}m&&(x[d]=+e(g,d,u),w[d]=+t(g,d,u),s.point(i?+i(g,d,u):x[d],r?+r(g,d,u):w[d]))}if(v)return s=null,v+""||null}function h(){return jm().defined(n).curve(o).context(a)}return c.x=function(u){return arguments.length?(e=typeof u=="function"?u:Mt(+u),i=null,c):e},c.x0=function(u){return arguments.length?(e=typeof u=="function"?u:Mt(+u),c):e},c.x1=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:Mt(+u),c):i},c.y=function(u){return arguments.length?(t=typeof u=="function"?u:Mt(+u),r=null,c):t},c.y0=function(u){return arguments.length?(t=typeof u=="function"?u:Mt(+u),c):t},c.y1=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:Mt(+u),c):r},c.lineX0=c.lineY0=function(){return h().x(e).y(t)},c.lineY1=function(){return h().x(e).y(r)},c.lineX1=function(){return h().x(i).y(t)},c.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Mt(!!u),c):n},c.curve=function(u){return arguments.length?(o=u,a!=null&&(s=o(a)),c):o},c.context=function(u){return arguments.length?(u==null?a=s=null:s=o(a=u),c):a},c}function fR(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function dR(e){return e}function o0t(){var e=dR,t=fR,r=null,i=Mt(0),n=Mt(yn),a=Mt(0);function o(s){var l,c=(s=Df(s)).length,h,u,d=0,f=new Array(c),y=new Array(c),p=+i.apply(this,arguments),g=Math.min(yn,Math.max(-yn,n.apply(this,arguments)-p)),m,v=Math.min(Math.abs(g)/c,a.apply(this,arguments)),x=v*(g<0?-1:1),w;for(l=0;l<c;++l)(w=y[f[l]=l]=+e(s[l],l,s))>0&&(d+=w);for(t!=null?f.sort(function(b,C){return t(y[b],y[C])}):r!=null&&f.sort(function(b,C){return r(s[b],s[C])}),l=0,u=d?(g-c*x)/d:0;l<c;++l,p=m)h=f[l],w=y[h],m=p+(w>0?w*u:0)+x,y[h]={data:s[h],index:l,value:w,startAngle:p,endAngle:m,padAngle:v};return y}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:Mt(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,r=null,o):t},o.sort=function(s){return arguments.length?(r=s,t=null,o):r},o.startAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Mt(+s),o):i},o.endAngle=function(s){return arguments.length?(n=typeof s=="function"?s:Mt(+s),o):n},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:Mt(+s),o):a},o}class Lk{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Nm(e){return new Lk(e,!0)}function zm(e){return new Lk(e,!1)}const Wm={draw(e,t){const r=De(t/Sn);e.moveTo(r,0),e.arc(0,0,r,0,yn)}},pR={draw(e,t){const r=De(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Mk=De(1/3),gR=Mk*2,yR={draw(e,t){const r=De(t/gR),i=r*Mk;e.moveTo(0,-r),e.lineTo(i,0),e.lineTo(0,r),e.lineTo(-i,0),e.closePath()}},mR={draw(e,t){const r=De(t),i=-r/2;e.rect(i,i,r,r)}},vR=.8908130915292852,Fk=cr(Sn/10)/cr(7*Sn/10),bR=cr(yn/10)*Fk,xR=-$i(yn/10)*Fk,CR={draw(e,t){const r=De(t*vR),i=bR*r,n=xR*r;e.moveTo(0,-r),e.lineTo(i,n);for(let a=1;a<5;++a){const o=yn*a/5,s=$i(o),l=cr(o);e.lineTo(l*r,-s*r),e.lineTo(s*i-l*n,l*i+s*n)}e.closePath()}},np=De(3),wR={draw(e,t){const r=-De(t/(np*3));e.moveTo(0,r*2),e.lineTo(-np*r,-r),e.lineTo(np*r,-r),e.closePath()}},xr=-.5,Cr=De(3)/2,hg=1/De(12),SR=(hg/2+1)*3,kR={draw(e,t){const r=De(t/SR),i=r/2,n=r*hg,a=i,o=r*hg+r,s=-a,l=o;e.moveTo(i,n),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(xr*i-Cr*n,Cr*i+xr*n),e.lineTo(xr*a-Cr*o,Cr*a+xr*o),e.lineTo(xr*s-Cr*l,Cr*s+xr*l),e.lineTo(xr*i+Cr*n,xr*n-Cr*i),e.lineTo(xr*a+Cr*o,xr*o-Cr*a),e.lineTo(xr*s+Cr*l,xr*l-Cr*s),e.closePath()}};function TR(e,t){let r=null,i=If(n);e=typeof e=="function"?e:Mt(e||Wm),t=typeof t=="function"?t:Mt(t===void 0?64:+t);function n(){let a;if(r||(r=a=i()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return n.type=function(a){return arguments.length?(e=typeof a=="function"?a:Mt(a),n):e},n.size=function(a){return arguments.length?(t=typeof a=="function"?a:Mt(+a),n):t}
vendor: 13,811 bytes, line 12
12,n.context=function(a){return arguments.length?(r=a??null,n):r},n}function kn(){}function Fh(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Rf(e){this._context=e}Rf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Fh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Fh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ih(e){return new Rf(e)}function Ik(e){this._context=e}Ik.prototype={areaStart:kn,areaEnd:kn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Fh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dk(e){return new Ik(e)}function Rk(e){this._context=e}Rk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Fh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jk(e){return new Rk(e)}function Nk(e,t){this._basis=new Rf(e),this._beta=t}Nk.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],n=t[0],a=e[r]-i,o=t[r]-n,s=-1,l;++s<=r;)l=s/r,this._basis.point(this._beta*e[s]+(1-this._beta)*(i+l*a),this._beta*t[s]+(1-this._beta)*(n+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const _R=function e(t){function r(i){return t===1?new Rf(i):new Nk(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function Dh(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function qm(e,t){this._context=e,this._k=(1-t)/6}qm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Dh(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Dh(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const zk=function e(t){function r(i){return new qm(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Hm(e,t){this._context=e,this._k=(1-t)/6}Hm.prototype={areaStart:kn,areaEnd:kn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Dh(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const AR=function e(t){function r(i){return new Hm(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Um(e,t){this._context=e,this._k=(1-t)/6}Um.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Dh(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const OR=function e(t){function r(i){return new Um(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Ym(e,t,r){var i=e._x1,n=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Ne){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,n=(n*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Ne){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/h,o=(o*c+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(i,n,a,o,e._x2,e._y2)}function Wk(e,t){this._context=e,this._alpha=t}Wk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ym(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const qk=function e(t){function r(i){return t?new Wk(i,t):new qm(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function Hk(e,t){this._context=e,this._alpha=t}Hk.prototype={areaStart:kn,areaEnd:kn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ym(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const BR=function e(t){function r(i){return t?new Hk(i,t):new Hm(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function Uk(e,t){this._context=e,this._alpha=t}Uk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ym(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $R=function e(t){function r(i){return t?new Uk(i,t):new Um(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function Yk(e){this._context=e}Yk.prototype={areaStart:kn,areaEnd:kn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Gk(e){return new Yk(e)}function K0(e){return e<0?-1:1}function Z0(e,t,r){var i=e._x1-e._x0,n=t-e._x1,a=(e._y1-e._y0)/(i||n<0&&-0),o=(r-e._y1)/(n||i<0&&-0),s=(a*n+o*i)/(i+n);return(K0(a)+K0(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Q0(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ap(e,t,r){var i=e._x0,n=e._y0,a=e._x1,o=e._y1,s=(a-i)/3;e._context.bezierCurveTo(i+s,n+s*t,a-s,o-s*r,a,o)}function Rh(e){this._context=e}Rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ap(this,this._t0,Q0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ap(this,Q0(this,r=Z0(this,e,t)),r);break;default:ap(this,this._t0,r=Z0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Vk(e){this._context=new Xk(e)}(Vk.prototype=Object.create(Rh.prototype)).point=function(e,t){Rh.prototype.point.call(this,t,e)};function Xk(e){this._context=e}Xk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,n,a){this._context.bezierCurveTo(t,e,i,r,a,n)}};function Gm(e){return new Rh(e)}function Vm(e){return new Vk(e)}function Kk(e){this._context=e}Kk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=J0(e),n=J0(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function J0(e){var t,r=e.length-1,i,n=new Array(r),a=new Array(r),o=new Array(r);for(n[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/a[t-1],a[t]-=i,o[t]-=i*o[t-1];for(n[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)n[t]=(o[t]-n[t+1])/a[t];for(a[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-n[t+1];return[n,a]}function Xm(e){return new Kk(e)}function jf(e,t){this._context=e,this._t=t}jf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 9,391 bytes, lines 12-15
12default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Km(e){return new jf(e,.5)}function Zm(e){return new jf(e,0)}function Qm(e){return new jf(e,1)}function wo(e,t){if((o=e.length)>1)for(var r=1,i,n,a=e[t[0]],o,s=a.length;r<o;++r)for(n=a,a=e[t[r]],i=0;i<s;++i)a[i][1]+=a[i][0]=isNaN(n[i][1])?n[i][0]:n[i][1]}function ug(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function ER(e,t){return e[t]}function PR(e){const t=[];return t.key=e,t}function LR(){var e=Mt([]),t=ug,r=wo,i=ER;function n(a){var o=Array.from(e.apply(this,arguments),PR),s,l=o.length,c=-1,h;for(const u of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+i(u,o[s].key,c,a)]).data=u;for(s=0,h=Df(t(o));s<l;++s)o[h[s]].index=s;return r(o,h),o}return n.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Mt(Array.from(a)),n):e},n.value=function(a){return arguments.length?(i=typeof a=="function"?a:Mt(+a),n):i},n.order=function(a){return arguments.length?(t=a==null?ug:typeof a=="function"?a:Mt(Array.from(a)),n):t},n.offset=function(a){return arguments.length?(r=a??wo,n):r},n}function MR(e,t){if((i=e.length)>0){for(var r,i,n=0,a=e[0].length,o;n<a;++n){for(o=r=0;r<i;++r)o+=e[r][n][1]||0;if(o)for(r=0;r<i;++r)e[r][n][1]/=o}wo(e,t)}}function FR(e,t){if((n=e.length)>0){for(var r=0,i=e[t[0]],n,a=i.length;r<a;++r){for(var o=0,s=0;o<n;++o)s+=e[o][r][1]||0;i[r][1]+=i[r][0]=-s/2}wo(e,t)}}function IR(e,t){if(!(!((o=e.length)>0)||!((a=(n=e[t[0]]).length)>0))){for(var r=0,i=1,n,a,o;i<a;++i){for(var s=0,l=0,c=0;s<o;++s){for(var h=e[t[s]],u=h[i][1]||0,d=h[i-1][1]||0,f=(u-d)/2,y=0;y<s;++y){var p=e[t[y]],g=p[i][1]||0,m=p[i-1][1]||0;f+=g-m}l+=u,c+=f*u}n[i-1][1]+=n[i-1][0]=r,l&&(r-=c/l)}n[i-1][1]+=n[i-1][0]=r,wo(e,t)}}function xl(e){"@babel/helpers - typeof";return xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xl(e)}var DR=["type","size","sizeType"];function fg(){return fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},fg.apply(this,arguments)}function tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ex(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tx(Object(r),!0).forEach(function(i){RR(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tx(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function RR(e,t,r){return t=jR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jR(e){var t=NR(e,"string");return xl(t)=="symbol"?t:t+""}function NR(e,t){if(xl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(xl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zR(e,t){if(e==null)return{};var r=WR(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function WR(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}var Zk={symbolCircle:Wm,symbolCross:pR,symbolDiamond:yR,symbolSquare:mR,symbolStar:CR,symbolTriangle:wR,symbolWye:kR},qR=Math.PI/180,HR=function(t){var r="symbol".concat(Ff(t));return Zk[r]||Wm},UR=function(t,r,i){if(r==="area")return t;switch(i){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var n=18*qR;return 1.25*t*t*(Math.tan(n)-Math.tan(n*2)*Math.pow(Math.tan(n),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},YR=function(t,r){Zk["symbol".concat(Ff(t))]=r},Nf=function(t){var r=t.type,i=r===void 0?"circle":r,n=t.size,a=n===void 0?64:n,o=t.sizeType,s=o===void 0?"area":o,l=zR(t,DR),c=ex(ex({},l),{},{type:i,size:a,sizeType:s}),h=function(){var g=HR(i),m=TR().type(g).size(UR(a,s,i));return m()},u=c.className,d=c.cx,f=c.cy,y=lt(c,!0);return d===+d&&f===+f&&a===+a?R.createElement("path",fg({},y,{className:Ot("recharts-symbols",u),transform:"translate(".concat(d,", ").concat(f,")"),d:h()})):null};Nf.registerSymbol=YR;function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function dg(){return dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},dg.apply(this,arguments)}function rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function GR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rx(Object(r),!0).forEach(function(i){Cl(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rx(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function VR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XR(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Jk(i.key),i)}}function KR(e,t,r){return t&&XR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZR(e,t,r){return t=jh(t),QR(e,Qk()?Reflect.construct(t,r||[],jh(e).constructor):t.apply(e,r))}function QR(e,t){if(t&&(So(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JR(e)}function JR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qk=function(){return!!e})()}function jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jh(e)}function tj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pg(e,t)}function pg(e,t){return pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},pg(e,t)}function Cl(e,t,r){return t=Jk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jk(e){var t=ej(e,"string");return So(t)=="symbol"?t:t+""}function ej(e,t){if(So(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(So(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wr=32,Jm=function(e){function t(){return VR(this,t),ZR(this,t,arguments)}return tj(t,e),KR(t,[{key:"renderIcon",value:function(i){var n=this.props.inactiveColor,a=wr/2,o=wr/6,s=wr/3,l=i.inactive?n:i.color;if(i.type==="plainline")return R.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:i.payload.strokeDasharray,x1:0,y1:a,x2:wr,y2:a,className:"recharts-legend-icon"});if(i.type==="line")return R.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
13            A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
14            H`).concat(wr,"M").concat(2*s,",").concat(a,`
15            A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(i.type==="rect")return R.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(wr/8,"h").concat(wr,"v").concat(wr*3/4,"h").concat(-wr,"z"),className:"recharts-legend-icon"});if(R.isValidElement(i.legendIcon)){var c=GR({},i);return delete c.legendIcon,R.cloneElement(i.legendIcon,c)}return R.createElement(Nf,{fill:l,cx:a,cy:a,size:wr,sizeType:"diameter",type:i.type})}},{key:"renderItems",value:function(){var i=this,n=this.props,a=n.payload,o=n.iconSize,s=n.layout,l=n.formatter,c=n.inactiveColor,h={x:0,y:0,width:wr,height:wr},u={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(f,y){var p=f.formatter||l,g=Ot(Cl(Cl({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",f.inactive));if(f.type==="none")return null;
15var m=pt(f.value)?null:f.value;Ur(!pt(f.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var v=f.inactive?c:f.color;return R.createElement("li",dg({className:g,style:u,key:"legend-item-".concat(y)},Hi(i.props,f,y)),R.createElement(Lh,{width:o,height:o,viewBox:h,style:d},i.renderIcon(f)),R.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},p?p(m,f,y):m))})}},{key:"render",value:function(){var i=this.props,n=i.payload,a=i.layout,o=i.align;if(!n||!n.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return R.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(J.PureComponent);Cl(Jm,"displayName","Legend");Cl(Jm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var rj=bf;function ij(){this.__data__=new rj,this.size=0}var nj=ij;function aj(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var oj=aj;function sj(e){return this.__data__.get(e)}var lj=sj;function cj(e){return this.__data__.has(e)}var hj=cj,uj=bf,fj=Lm,dj=Mm,pj=200;function gj(e,t){var r=this.__data__;if(r instanceof uj){var i=r.__data__;if(!fj||i.length<pj-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new dj(i)}return r.set(e,t),this.size=r.size,this}var yj=gj,mj=bf,vj=nj,bj=oj,xj=lj,Cj=hj,wj=yj;function fs(e){var t=this.__data__=new mj(e);this.size=t.size}fs.prototype.clear=vj;fs.prototype.delete=bj;fs.prototype.get=xj;fs.prototype.has=Cj;fs.prototype.set=wj;var tv=fs,Sj="__lodash_hash_undefined__";function kj(e){return this.__data__.set(e,Sj),this}var Tj=kj;function _j(e){return this.__data__.has(e)}var Aj=_j,Oj=Mm,Bj=Tj,$j=Aj;function Nh(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Oj;++t<r;)this.add(e[t])}Nh.prototype.add=Nh.prototype.push=Bj;Nh.prototype.has=$j;var tT=Nh;function Ej(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}var eT=Ej;function Pj(e,t){return e.has(t)}var rT=Pj,Lj=tT,Mj=eT,Fj=rT,Ij=1,Dj=2;function Rj(e,t,r,i,n,a){var o=r&Ij,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),h=a.get(t);if(c&&h)return c==t&&h==e;var u=-1,d=!0,f=r&Dj?new Lj:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var y=e[u],p=t[u];if(i)var g=o?i(p,y,u,t,e,a):i(y,p,u,e,t,a);if(g!==void 0){if(g)continue;d=!1;break}if(f){if(!Mj(t,function(m,v){if(!Fj(f,v)&&(y===m||n(y,m,r,i,a)))return f.push(v)})){d=!1;break}}else if(!(y===p||n(y,p,r,i,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var iT=Rj,jj=Kr,Nj=jj.Uint8Array,nT=Nj;function zj(e){var t=-1,r=Array(e.size);return e.forEach(function(i,n){r[++t]=[n,i]}),r}var Wj=zj;function qj(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var ev=qj,ix=os,nx=nT,Hj=mf,Uj=iT,Yj=Wj,Gj=ev,Vj=1,Xj=2,Kj="[object Boolean]",Zj="[object Date]",Qj="[object Error]",Jj="[object Map]",tN="[object Number]",eN="[object RegExp]",rN="[object Set]",iN="[object String]",nN="[object Symbol]",aN="[object ArrayBuffer]",oN="[object DataView]",ax=ix?ix.prototype:void 0,op=ax?ax.valueOf:void 0;function sN(e,t,r,i,n,a,o){switch(r){case oN:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case aN:return!(e.byteLength!=t.byteLength||!a(new nx(e),new nx(t)));case Kj:case Zj:case tN:return Hj(+e,+t);case Qj:return e.name==t.name&&e.message==t.message;case eN:case iN:return e==t+"";case Jj:var s=Yj;case rN:var l=i&Vj;if(s||(s=Gj),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;i|=Xj,o.set(e,t);var h=Uj(s(e),s(t),i,n,a,o);return o.delete(e),h;case nN:if(op)return op.call(e)==op.call(t)}return!1}var lN=sN;function cN(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}var rv=cN,hN=rv,uN=sr;function fN(e,t,r){var i=t(e);return uN(e)?i:hN(i,r(e))}var aT=fN;function dN(e,t){for(var r=-1,i=e==null?0:e.length,n=0,a=[];++r<i;){var o=e[r];t(o,r,e)&&(a[n++]=o)}return a}var pN=dN;function gN(){return[]}var oT=gN,yN=pN,mN=oT,vN=Object.prototype,bN=vN.propertyIsEnumerable,ox=Object.getOwnPropertySymbols,xN=ox?function(e){return e==null?[]:(e=Object(e),yN(ox(e),function(t){return bN.call(e,t)}))}:mN,iv=xN;function CN(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var wN=CN,SN=Zi,kN=Zr,TN="[object Arguments]";function _N(e){return kN(e)&&SN(e)==TN}var AN=_N,sx=AN,ON=Zr,sT=Object.prototype,BN=sT.hasOwnProperty,$N=sT.propertyIsEnumerable,EN=sx(function(){return arguments}())?sx:function(e){return ON(e)&&BN.call(e,"callee")&&!$N.call(e,"callee")},nv=EN,zh={exports:{}};function PN(){return!1}var LN=PN;zh.exports;(function(e,t){var r=Kr,i=LN,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||i;e.exports=c}
vendor: 4,358 bytes, line 15
15)(zh,zh.exports);var av=zh.exports,MN=9007199254740991,FN=/^(?:0|[1-9]\d*)$/;function IN(e,t){var r=typeof e;return t=t??MN,!!t&&(r=="number"||r!="symbol"&&FN.test(e))&&e>-1&&e%1==0&&e<t}var ov=IN,DN=9007199254740991;function RN(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=DN}var sv=RN,jN=Zi,NN=sv,zN=Zr,WN="[object Arguments]",qN="[object Array]",HN="[object Boolean]",UN="[object Date]",YN="[object Error]",GN="[object Function]",VN="[object Map]",XN="[object Number]",KN="[object Object]",ZN="[object RegExp]",QN="[object Set]",JN="[object String]",t4="[object WeakMap]",e4="[object ArrayBuffer]",r4="[object DataView]",i4="[object Float32Array]",n4="[object Float64Array]",a4="[object Int8Array]",o4="[object Int16Array]",s4="[object Int32Array]",l4="[object Uint8Array]",c4="[object Uint8ClampedArray]",h4="[object Uint16Array]",u4="[object Uint32Array]",re={};re[i4]=re[n4]=re[a4]=re[o4]=re[s4]=re[l4]=re[c4]=re[h4]=re[u4]=!0;re[WN]=re[qN]=re[e4]=re[HN]=re[r4]=re[UN]=re[YN]=re[GN]=re[VN]=re[XN]=re[KN]=re[ZN]=re[QN]=re[JN]=re[t4]=!1;function f4(e){return zN(e)&&NN(e.length)&&!!re[jN(e)]}var d4=f4;function p4(e){return function(t){return e(t)}}var zf=p4,Wh={exports:{}};Wh.exports;(function(e,t){var r=sk,i=t&&!t.nodeType&&t,n=i&&!0&&e&&!e.nodeType&&e,a=n&&n.exports===i,o=a&&r.process,s=function(){try{var l=n&&n.require&&n.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Wh,Wh.exports);var lv=Wh.exports,g4=d4,y4=zf,lx=lv,cx=lx&&lx.isTypedArray,m4=cx?y4(cx):g4,lT=m4,v4=wN,b4=nv,x4=sr,C4=av,w4=ov,S4=lT,k4=Object.prototype,T4=k4.hasOwnProperty;function _4(e,t){var r=x4(e),i=!r&&b4(e),n=!r&&!i&&C4(e),a=!r&&!i&&!n&&S4(e),o=r||i||n||a,s=o?v4(e.length,String):[],l=s.length;for(var c in e)(t||T4.call(e,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||w4(c,l)))&&s.push(c);return s}var cT=_4,A4=Object.prototype;function O4(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||A4;return e===r}var cv=O4;function B4(e,t){return function(r){return e(t(r))}}var hT=B4,$4=hT,E4=$4(Object.keys,Object),P4=E4,L4=cv,M4=P4,F4=Object.prototype,I4=F4.hasOwnProperty;function D4(e){if(!L4(e))return M4(e);var t=[];for(var r in Object(e))I4.call(e,r)&&r!="constructor"&&t.push(r);return t}var R4=D4,j4=Pm,N4=sv;function z4(e){return e!=null&&N4(e.length)&&!j4(e)}var ds=z4,W4=cT,q4=R4,H4=ds;function U4(e){return H4(e)?W4(e):q4(e)}var ps=U4,Y4=aT,G4=iv,V4=ps;function X4(e){return Y4(e,V4,G4)}var uT=X4,hx=uT,K4=1,Z4=Object.prototype,Q4=Z4.hasOwnProperty;function J4(e,t,r,i,n,a){var o=r&K4,s=hx(e),l=s.length,c=hx(t),h=c.length;if(l!=h&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:Q4.call(t,d)))return!1}var f=a.get(e),y=a.get(t);if(f&&y)return f==t&&y==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=o;++u<l;){d=s[u];var m=e[d],v=t[d];if(i)var x=o?i(v,m,d,t,e,a):i(m,v,d,e,t,a);if(!(x===void 0?m===v||n(m,v,r,i,a):x)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var w=e.constructor,b=t.constructor;w!=b&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof b=="function"&&b instanceof b)&&(p=!1)}return a.delete(e),a.delete(t),p}var t6=J4,e6=va,r6=Kr,i6=e6(r6,"DataView"),n6=i6,a6=va,o6=Kr,s6=a6(o6,"Promise"),l6=s6,c6=va,h6=Kr,u6=c6(h6,"Set"),fT=u6,f6=va,d6=Kr,p6=f6(d6,"WeakMap"),g6=p6,gg=n6,yg=Lm,mg=l6,vg=fT,bg=g6,dT=Zi,gs=ck,ux="[object Map]",y6="[object Object]",fx="[object Promise]",dx="[object Set]",px="[object WeakMap]",gx="[object DataView]",m6=gs(gg),v6=gs(yg),b6=gs(mg),x6=gs(vg),C6=gs(bg),qn=dT;(gg&&qn(new gg(new ArrayBuffer(1)))!=gx||yg&&qn(new yg)!=ux||mg&&qn(mg.resolve())!=fx||vg&&qn(new vg)!=dx||bg&&qn(new bg)!=px)&&(qn=function(e){var t=dT(e),r=t==y6?e.constructor:void 0,i=r?gs(r):"";if(i)switch(i){case m6:return gx;case v6:return ux;case b6:return fx;case x6:return dx;case C6:return px}return t});var Wf=qn,sp=tv,w6=iT,S6=lN,k6=t6,yx=Wf,mx=sr,vx=av,T6=lT,_6=1,bx="[object Arguments]",xx="[object Array]",Hc="[object Object]",A6=Object.prototype,Cx=A6.hasOwnProperty;function O6(e,t,r,i,n,a){var o=mx(e),s=mx(t),l=o?xx:yx(e),c=s?xx:yx(t);l=l==bx?Hc:l,c=c==bx?Hc:c;var h=l==Hc,u=c==Hc,d=l==c;if(d&&vx(e)){if(!vx(t))return!1;o=!0,h=!1}if(d&&!h)return a||(a=new sp),o||T6(e)?w6(e,t,r,i,n,a):S6(e,t,l,r,i,n,a);if(!(r&_6)){var f=h&&Cx.call(e,"__wrapped__"),y=u&&Cx.call(t,"__wrapped__");
vendor: 4,153 bytes, line 15
15if(f||y){var p=f?e.value():e,g=y?t.value():t;return a||(a=new sp),n(p,g,r,i,a)}}return d?(a||(a=new sp),k6(e,t,r,i,n,a)):!1}var B6=O6,$6=B6,wx=Zr;function pT(e,t,r,i,n){return e===t?!0:e==null||t==null||!wx(e)&&!wx(t)?e!==e&&t!==t:$6(e,t,r,i,pT,n)}var hv=pT,E6=tv,P6=hv,L6=1,M6=2;function F6(e,t,r,i){var n=r.length,a=n,o=!i;if(e==null)return!a;for(e=Object(e);n--;){var s=r[n];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++n<a;){s=r[n];var l=s[0],c=e[l],h=s[1];if(o&&s[2]){if(c===void 0&&!(l in e))return!1}else{var u=new E6;if(i)var d=i(c,h,l,e,t,u);if(!(d===void 0?P6(h,c,L6|M6,i,u):d))return!1}}return!0}var I6=F6,D6=Qr;function R6(e){return e===e&&!D6(e)}var gT=R6,j6=gT,N6=ps;function z6(e){for(var t=N6(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,j6(n)]}return t}var W6=z6;function q6(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var yT=q6,H6=I6,U6=W6,Y6=yT;function G6(e){var t=U6(e);return t.length==1&&t[0][2]?Y6(t[0][0],t[0][1]):function(r){return r===e||H6(r,e,t)}}var V6=G6;function X6(e,t){return e!=null&&t in Object(e)}var K6=X6,Z6=wf,Q6=nv,J6=sr,t8=ov,e8=sv,r8=dc;function i8(e,t,r){t=Z6(t,e);for(var i=-1,n=t.length,a=!1;++i<n;){var o=r8(t[i]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++i!=n?a:(n=e==null?0:e.length,!!n&&e8(n)&&t8(o,n)&&(J6(e)||Q6(e)))}var n8=i8,a8=K6,o8=n8;function s8(e,t){return e!=null&&o8(e,t,a8)}var l8=s8,c8=hv,h8=pk,u8=l8,f8=Em,d8=gT,p8=yT,g8=dc,y8=1,m8=2;function v8(e,t){return f8(e)&&d8(t)?p8(g8(e),t):function(r){var i=h8(r,e);return i===void 0&&i===t?u8(r,e):c8(t,i,y8|m8)}}var b8=v8;function x8(e){return e}var ys=x8;function C8(e){return function(t){return t==null?void 0:t[e]}}var w8=C8,S8=Sf;function k8(e){return function(t){return S8(t,e)}}var T8=k8,_8=w8,A8=T8,O8=Em,B8=dc;function $8(e){return O8(e)?_8(B8(e)):A8(e)}var E8=$8,P8=V6,L8=b8,M8=ys,F8=sr,I8=E8;function D8(e){return typeof e=="function"?e:e==null?M8:typeof e=="object"?F8(e)?L8(e[0],e[1]):P8(e):I8(e)}var vi=D8;function R8(e,t,r,i){for(var n=e.length,a=r+(i?1:-1);i?a--:++a<n;)if(t(e[a],a,e))return a;return-1}var mT=R8;function j8(e){return e!==e}var N8=j8;function z8(e,t,r){for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}var W8=z8,q8=mT,H8=N8,U8=W8;function Y8(e,t,r){return t===t?U8(e,t,r):q8(e,H8,r)}var G8=Y8,V8=G8;function X8(e,t){var r=e==null?0:e.length;return!!r&&V8(e,t,0)>-1}var K8=X8;function Z8(e,t,r){for(var i=-1,n=e==null?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}var Q8=Z8;function J8(){}var tz=J8,lp=fT,ez=tz,rz=ev,iz=1/0,nz=lp&&1/rz(new lp([,-0]))[1]==iz?function(e){return new lp(e)}:ez,az=nz,oz=tT,sz=K8,lz=Q8,cz=rT,hz=az,uz=ev,fz=200;function dz(e,t,r){var i=-1,n=sz,a=e.length,o=!0,s=[],l=s;if(r)o=!1,n=lz;else if(a>=fz){var c=t?null:hz(e);if(c)return uz(c);o=!1,n=cz,l=new oz}else l=t?[]:s;t:for(;++i<a;){var h=e[i],u=t?t(h):h;if(h=r||h!==0?h:0,o&&u===u){for(var d=l.length;d--;)if(l[d]===u)continue t;t&&l.push(u),s.push(h)}else n(l,u,r)||(l!==s&&l.push(u),s.push(h))}return s}var pz=dz,gz=vi,yz=pz;function mz(e,t){return e&&e.length?yz(e,gz(t)):[]}var vz=mz;const Sx=Ut(vz);function vT(e,t,r){return t===!0?Sx(e,r):pt(t)?Sx(e,t):e}function ko(e){"@babel/helpers - typeof";return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(e)}var bz=["ref"];function kx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Ti(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kx(Object(r),!0).forEach(function(i){qf(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kx(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function xz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tx(e,t){for(var r=0;r<t.length;r++){var i=t[r];
vendor: 4,732 bytes, line 15
15i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,xT(i.key),i)}}function Cz(e,t,r){return t&&Tx(e.prototype,t),r&&Tx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wz(e,t,r){return t=qh(t),Sz(e,bT()?Reflect.construct(t,r||[],qh(e).constructor):t.apply(e,r))}function Sz(e,t){if(t&&(ko(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kz(e)}function kz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bT=function(){return!!e})()}function qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qh(e)}function Tz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xg(e,t)}function xg(e,t){return xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},xg(e,t)}function qf(e,t,r){return t=xT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xT(e){var t=_z(e,"string");return ko(t)=="symbol"?t:t+""}function _z(e,t){if(ko(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(ko(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Az(e,t){if(e==null)return{};var r=Oz(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Oz(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function Bz(e){return e.value}function $z(e,t){if(R.isValidElement(e))return R.cloneElement(e,t);if(typeof e=="function")return R.createElement(e,t);t.ref;var r=Az(t,bz);return R.createElement(Jm,r)}var _x=1,Ja=function(e){function t(){var r;xz(this,t);for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return r=wz(this,t,[].concat(n)),qf(r,"lastBoundingBox",{width:-1,height:-1}),r}return Tz(t,e),Cz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();return i.height=this.wrapperNode.offsetHeight,i.width=this.wrapperNode.offsetWidth,i}return null}},{key:"updateBBox",value:function(){var i=this.props.onBBoxUpdate,n=this.getBBox();n?(Math.abs(n.width-this.lastBoundingBox.width)>_x||Math.abs(n.height-this.lastBoundingBox.height)>_x)&&(this.lastBoundingBox.width=n.width,this.lastBoundingBox.height=n.height,i&&i(n)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,i&&i(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ti({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(i){var n=this.props,a=n.layout,o=n.align,s=n.verticalAlign,l=n.margin,c=n.chartWidth,h=n.chartHeight,u,d;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(o==="center"&&a==="vertical"){var f=this.getBBoxSnapshot();u={left:((c||0)-f.width)/2}}else u=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();d={top:((h||0)-y.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Ti(Ti({},u),d)}},{key:"render",value:function(){var i=this,n=this.props,a=n.content,o=n.width,s=n.height,l=n.wrapperStyle,c=n.payloadUniqBy,h=n.payload,u=Ti(Ti({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return R.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(f){i.wrapperNode=f}},$z(a,Ti(Ti({},this.props),{},{payload:vT(h,c,Bz)})))}}],[{key:"getWithHeight",value:function(i,n){var a=Ti(Ti({},this.defaultProps),i.props),o=a.layout;return o==="vertical"&&tt(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||n}:null}}])}(J.PureComponent);
15qf(Ja,"displayName","Legend");qf(Ja,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ax=os,Ez=nv,Pz=sr,Ox=Ax?Ax.isConcatSpreadable:void 0;function Lz(e){return Pz(e)||Ez(e)||!!(Ox&&e&&e[Ox])}var Mz=Lz,Fz=rv,Iz=Mz;function CT(e,t,r,i,n){var a=-1,o=e.length;for(r||(r=Iz),n||(n=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?CT(s,t-1,r,i,n):Fz(n,s):i||(n[n.length]=s)}return n}var uv=CT;function Dz(e){return function(t,r,i){for(var n=-1,a=Object(t),o=i(t),s=o.length;s--;){var l=o[e?s:++n];if(r(a[l],l,a)===!1)break}return t}}var Rz=Dz,jz=Rz,Nz=jz(),zz=Nz,Wz=zz,qz=ps;function Hz(e,t){return e&&Wz(e,t,qz)}var wT=Hz,Uz=ds;function Yz(e,t){return function(r,i){if(r==null)return r;if(!Uz(r))return e(r,i);for(var n=r.length,a=t?n:-1,o=Object(r);(t?a--:++a<n)&&i(o[a],a,o)!==!1;);return r}}var Gz=Yz,Vz=wT,Xz=Gz,Kz=Xz(Vz),fv=Kz,Zz=fv,Qz=ds;function Jz(e,t){var r=-1,i=Qz(e)?Array(e.length):[];return Zz(e,function(n,a,o){i[++r]=t(n,a,o)}),i}var ST=Jz;function tW(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var eW=tW,Bx=ss;function rW(e,t){if(e!==t){var r=e!==void 0,i=e===null,n=e===e,a=Bx(e),o=t!==void 0,s=t===null,l=t===t,c=Bx(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||i&&o&&l||!r&&l||!n)return 1;if(!i&&!a&&!c&&e<t||c&&r&&n&&!i&&!a||s&&r&&n||!o&&n||!l)return-1}return 0}var iW=rW,nW=iW;function aW(e,t,r){for(var i=-1,n=e.criteria,a=t.criteria,o=n.length,s=r.length;++i<o;){var l=nW(n[i],a[i]);if(l){if(i>=s)return l;var c=r[i];return l*(c=="desc"?-1:1)}}return e.index-t.index}var oW=aW,cp=Cf,sW=Sf,lW=vi,cW=ST,hW=eW,uW=zf,fW=oW,dW=ys,pW=sr;function gW(e,t,r){t.length?t=cp(t,function(a){return pW(a)?function(o){return sW(o,a.length===1?a[0]:a)}:a}):t=[dW];var i=-1;t=cp(t,uW(lW));var n=cW(e,function(a,o,s){var l=cp(t,function(c){return c(a)});return{criteria:l,index:++i,value:a}});return hW(n,function(a,o){return fW(a,o,r)})}var yW=gW;function mW(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var vW=mW,bW=vW,$x=Math.max;function xW(e,t,r){return t=$x(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=$x(i.length-t,0),o=Array(a);++n<a;)o[n]=i[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=i[n];return s[t]=r(o),bW(e,this,s)}}var kT=xW;function CW(e){return function(){return e}}var wW=CW,SW=va,kW=function(){try{var e=SW(Object,"defineProperty");return e({},"",{}),e}catch{}}(),TT=kW,TW=wW,Ex=TT,_W=ys,AW=Ex?function(e,t){return Ex(e,"toString",{configurable:!0,enumerable:!1,value:TW(t),writable:!0})}:_W,OW=AW,BW=800,$W=16,EW=Date.now;function PW(e){var t=0,r=0;return function(){var i=EW(),n=$W-(i-r);if(r=i,n>0){if(++t>=BW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var LW=PW,MW=OW,FW=LW,IW=FW(MW),_T=IW,DW=ys,RW=kT,jW=_T;function NW(e,t){return jW(RW(e,t,DW),e+"")}var zW=NW,WW=mf,qW=ds,HW=ov,UW=Qr;function YW(e,t,r){if(!UW(r))return!1;var i=typeof t;return(i=="number"?qW(r)&&HW(t,r.length):i=="string"&&t in r)?WW(r[t],e):!1}var Hf=YW,GW=uv,VW=yW,XW=zW,Px=Hf,KW=XW(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Px(e,t[0],t[1])?t=[]:r>2&&Px(t[0],t[1],t[2])&&(t=[t[0]]),VW(e,GW(t,1),[])}),ZW=KW;const dv=Ut(ZW);function wl(e){"@babel/helpers - typeof";return wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wl(e)}function Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Cg.apply(this,arguments)}function QW(e,t){return rq(e)||eq(e,t)||tq(e,t)||JW()}function JW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tq(e,t){if(e){if(typeof e=="string")return Lx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lx(e,t)}}function Lx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function eq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}
vendor: 28,201 bytes, lines 16-22
16finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function rq(e){if(Array.isArray(e))return e}function Mx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function hp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mx(Object(r),!0).forEach(function(i){iq(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mx(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function iq(e,t,r){return t=nq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nq(e){var t=aq(e,"string");return wl(t)=="symbol"?t:t+""}function aq(e,t){if(wl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(wl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oq(e){return Array.isArray(e)&&Te(e[0])&&Te(e[1])?e.join(" ~ "):e}var sq=function(t){var r=t.separator,i=r===void 0?" : ":r,n=t.contentStyle,a=n===void 0?{}:n,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,c=l===void 0?{}:l,h=t.payload,u=t.formatter,d=t.itemSorter,f=t.wrapperClassName,y=t.labelClassName,p=t.label,g=t.labelFormatter,m=t.accessibilityLayer,v=m===void 0?!1:m,x=function(){if(h&&h.length){var I={padding:0,margin:0},D=(d?dv(h,d):h).map(function(_,B){if(_.type==="none")return null;var O=hp({display:"block",paddingTop:4,paddingBottom:4,color:_.color||"#000"},s),M=_.formatter||u||oq,F=_.value,$=_.name,N=F,W=$;if(M&&N!=null&&W!=null){var U=M(F,$,_,B,h);if(Array.isArray(U)){var Q=QW(U,2);N=Q[0],W=Q[1]}else N=U}return R.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(B),style:O},Te(W)?R.createElement("span",{className:"recharts-tooltip-item-name"},W):null,Te(W)?R.createElement("span",{className:"recharts-tooltip-item-separator"},i):null,R.createElement("span",{className:"recharts-tooltip-item-value"},N),R.createElement("span",{className:"recharts-tooltip-item-unit"},_.unit||""))});return R.createElement("ul",{className:"recharts-tooltip-item-list",style:I},D)}return null},w=hp({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),b=hp({margin:0},c),C=!yt(p),k=C?p:"",T=Ot("recharts-default-tooltip",f),E=Ot("recharts-tooltip-label",y);C&&g&&h!==void 0&&h!==null&&(k=g(p,h));var L=v?{role:"status","aria-live":"assertive"}:{};return R.createElement("div",Cg({className:T,style:w},L),R.createElement("p",{className:E,style:b},R.isValidElement(k)?k:"".concat(k)),x())};function Sl(e){"@babel/helpers - typeof";return Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(e)}function Uc(e,t,r){return t=lq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lq(e){var t=cq(e,"string");return Sl(t)=="symbol"?t:t+""}function cq(e,t){if(Sl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Sl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Es="recharts-tooltip-wrapper",hq={visibility:"hidden"};function uq(e){var t=e.coordinate,r=e.translateX,i=e.translateY;return Ot(Es,Uc(Uc(Uc(Uc({},"".concat(Es,"-right"),tt(r)&&t&&tt(t.x)&&r>=t.x),"".concat(Es,"-left"),tt(r)&&t&&tt(t.x)&&r<t.x),"".concat(Es,"-bottom"),tt(i)&&t&&tt(t.y)&&i>=t.y),"".concat(Es,"-top"),tt(i)&&t&&tt(t.y)&&i<t.y))}function Fx(e){var t=e.allowEscapeViewBox,r=e.coordinate,i=e.key,n=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(a&&tt(a[i]))return a[i];var h=r[i]-s-n,u=r[i]+n;if(t[i])return o[i]?h:u;if(o[i]){var d=h,f=l[i];return d<f?Math.max(u,l[i]):Math.max(h,l[i])}var y=u+s,p=l[i]+c;return y>p?Math.max(h,l[i]):Math.max(u,l[i])}function fq(e){var t=e.translateX,r=e.translateY,i=e.useTranslate3d;return{transform:i?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function dq(e){var t=e.allowEscapeViewBox,r=e.coordinate,i=e.offsetTopLeft,n=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,h,u;return o.height>0&&o.width>0&&r?(h=Fx({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:i,position:n,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),u=Fx({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:i,position:n,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=fq({translateX:h,translateY:u,useTranslate3d:s})):c=hq,{cssProperties:c,cssClasses:uq({translateX:h,translateY:u,coordinate:r})}}function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(e)}function Ix(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Dx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ix(Object(r),!0).forEach(function(i){Sg(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ix(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function pq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gq(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,OT(i.key),i)}}function yq(e,t,r){return t&&gq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mq(e,t,r){return t=Hh(t),vq(e,AT()?Reflect.construct(t,r||[],Hh(e).constructor):t.apply(e,r))}function vq(e,t){if(t&&(To(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bq(e)}function bq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AT=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hh(e)}function xq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wg(e,t)}function wg(e,t){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},wg(e,t)}function Sg(e,t,r){return t=OT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OT(e){var t=Cq(e,"string");return To(t)=="symbol"?t:t+""}function Cq(e,t){if(To(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(To(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rx=1,wq=function(e){function t(){var r;pq(this,t);for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return r=mq(this,t,[].concat(n)),Sg(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Sg(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,c,h;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(h=r.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&c!==void 0?c:0}})}}),r}return xq(t,e),yq(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-this.state.lastBoundingBox.width)>Rx||Math.abs(i.height-this.state.lastBoundingBox.height)>Rx)&&this.setState({lastBoundingBox:{width:i.width,height:i.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var i,n;this.props.active&&this.updateBBox(),this.state.dismissed&&(((i=this.props.coordinate)===null||i===void 0?void 0:i.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var i=this,n=this.props,a=n.active,o=n.allowEscapeViewBox,s=n.animationDuration,l=n.animationEasing,c=n.children,h=n.coordinate,u=n.hasPayload,d=n.isAnimationActive,f=n.offset,y=n.position,p=n.reverseDirection,g=n.useTranslate3d,m=n.viewBox,v=n.wrapperStyle,x=dq({allowEscapeViewBox:o,coordinate:h,offsetTopLeft:f,position:y,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:m}),w=x.cssClasses,b=x.cssProperties,C=Dx(Dx({transition:d&&a?"transform ".concat(s,"ms ").concat(l):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&u?"visible":"hidden",position:"absolute",top:0,left:0},v);return R.createElement("div",{tabIndex:-1,className:w,style:C,ref:function(T){i.wrapperNode=T}},c)}}])}(J.PureComponent),Sq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},$r={isSsr:Sq()};function _o(e){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_o(e)}function jx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jx(Object(r),!0).forEach(function(i){pv(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jx(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function kq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tq(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,$T(i.key),i)}}function _q(e,t,r){return t&&Tq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aq(e,t,r){return t=Uh(t),Oq(e,BT()?Reflect.construct(t,r||[],Uh(e).constructor):t.apply(e,r))}function Oq(e,t){if(t&&(_o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bq(e)}function Bq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BT=function(){return!!e})()}function Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uh(e)}function $q(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kg(e,t)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},kg(e,t)}function pv(e,t,r){return t=$T(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $T(e){var t=Eq(e,"string");return _o(t)=="symbol"?t:t+""}function Eq(e,t){if(_o(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(_o(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Pq(e){return e.dataKey}function Lq(e,t){return R.isValidElement(e)?R.cloneElement(e,t):typeof e=="function"?R.createElement(e,t):R.createElement(sq,t)}var Tr=function(e){function t(){return kq(this,t),Aq(this,t,arguments)}return $q(t,e),_q(t,[{key:"render",value:function(){var i=this,n=this.props,a=n.active,o=n.allowEscapeViewBox,s=n.animationDuration,l=n.animationEasing,c=n.content,h=n.coordinate,u=n.filterNull,d=n.isAnimationActive,f=n.offset,y=n.payload,p=n.payloadUniqBy,g=n.position,m=n.reverseDirection,v=n.useTranslate3d,x=n.viewBox,w=n.wrapperStyle,b=y??[];u&&b.length&&(b=vT(y.filter(function(k){return k.value!=null&&(k.hide!==!0||i.props.includeHidden)}),p,Pq));var C=b.length>0;return R.createElement(wq,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:h,hasPayload:C,offset:f,position:g,reverseDirection:m,useTranslate3d:v,viewBox:x,wrapperStyle:w},Lq(c,Nx(Nx({},this.props),{},{payload:b})))}}])}(J.PureComponent);pv(Tr,"displayName","Tooltip");pv(Tr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!$r.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Mq=Kr,Fq=function(){return Mq.Date.now()},Iq=Fq,Dq=/\s/;function Rq(e){for(var t=e.length;t--&&Dq.test(e.charAt(t)););return t}var jq=Rq,Nq=jq,zq=/^\s+/;function Wq(e){return e&&e.slice(0,Nq(e)+1).replace(zq,"")}var qq=Wq,Hq=qq,zx=Qr,Uq=ss,Wx=NaN,Yq=/^[-+]0x[0-9a-f]+$/i,Gq=/^0b[01]+$/i,Vq=/^0o[0-7]+$/i,Xq=parseInt;function Kq(e){if(typeof e=="number")return e;if(Uq(e))return Wx;if(zx(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zx(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Hq(e);var r=Gq.test(e);return r||Vq.test(e)?Xq(e.slice(2),r?2:8):Yq.test(e)?Wx:+e}var ET=Kq,Zq=Qr,up=Iq,qx=ET,Qq="Expected a function",Jq=Math.max,t7=Math.min;function e7(e,t,r){var i,n,a,o,s,l,c=0,h=!1,u=!1,d=!0;if(typeof e!="function")throw new TypeError(Qq);t=qx(t)||0,Zq(r)&&(h=!!r.leading,u="maxWait"in r,a=u?Jq(qx(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function f(C){var k=i,T=n;return i=n=void 0,c=C,o=e.apply(T,k),o}function y(C){return c=C,s=setTimeout(m,t),h?f(C):o}function p(C){var k=C-l,T=C-c,E=t-k;return u?t7(E,a-T):E}function g(C){var k=C-l,T=C-c;return l===void 0||k>=t||k<0||u&&T>=a}function m(){var C=up();if(g(C))return v(C);s=setTimeout(m,p(C))}function v(C){return s=void 0,d&&i?f(C):(i=n=void 0,o)}function x(){s!==void 0&&clearTimeout(s),c=0,i=l=n=s=void 0}function w(){return s===void 0?o:v(up())}function b(){var C=up(),k=g(C);if(i=arguments,n=this,l=C,k){if(s===void 0)return y(l);if(u)return clearTimeout(s),s=setTimeout(m,t),f(l)}return s===void 0&&(s=setTimeout(m,t)),o}return b.cancel=x,b.flush=w,b}var r7=e7,i7=r7,n7=Qr,a7="Expected a function";function o7(e,t,r){var i=!0,n=!0;if(typeof e!="function")throw new TypeError(a7);return n7(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),i7(e,t,{leading:i,maxWait:t,trailing:n})}var s7=o7;const PT=Ut(s7);function kl(e){"@babel/helpers - typeof";return kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kl(e)}function Hx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Yc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hx(Object(r),!0).forEach(function(i){l7(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hx(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function l7(e,t,r){return t=c7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c7(e){var t=h7(e,"string");return kl(t)=="symbol"?t:t+""}function h7(e,t){if(kl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(kl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u7(e,t){return g7(e)||p7(e,t)||d7(e,t)||f7()}function f7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d7(e,t){if(e){if(typeof e=="string")return Ux(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ux(e,t)}}function Ux(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function p7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function g7(e){if(Array.isArray(e))return e}var s0t=J.forwardRef(function(e,t){var r=e.aspect,i=e.initialDimension,n=i===void 0?{width:-1,height:-1}:i,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,h=c===void 0?0:c,u=e.minHeight,d=e.maxHeight,f=e.children,y=e.debounce,p=y===void 0?0:y,g=e.id,m=e.className,v=e.onResize,x=e.style,w=x===void 0?{}:x,b=J.useRef(null),C=J.useRef();C.current=v,J.useImperativeHandle(t,function(){return Object.defineProperty(b.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),b.current},configurable:!0})});var k=J.useState({containerWidth:n.width,containerHeight:n.height}),T=u7(k,2),E=T[0],L=T[1],P=J.useCallback(function(D,_){L(function(B){var O=Math.round(D),M=Math.round(_);return B.containerWidth===O&&B.containerHeight===M?B:{containerWidth:O,containerHeight:M}})},[]);J.useEffect(function(){var D=function($){var N,W=$[0].contentRect,U=W.width,Q=W.height;P(U,Q),(N=C.current)===null||N===void 0||N.call(C,U,Q)};p>0&&(D=PT(D,p,{trailing:!0,leading:!1}));var _=new ResizeObserver(D),B=b.current.getBoundingClientRect(),O=B.width,M=B.height;return P(O,M),_.observe(b.current),function(){_.disconnect()}},[P,p]);var I=J.useMemo(function(){var D=E.containerWidth,_=E.containerHeight;if(D<0||_<0)return null;Ur(Gn(o)||Gn(l),`The width(%s) and height(%s) are both fixed numbers,
18       maybe you don't need to use a ResponsiveContainer.`,o,l),Ur(!r||r>0,"The aspect(%s) must be greater than zero.",r);var B=Gn(o)?D:o,O=Gn(l)?_:l;r&&r>0&&(B?O=B/r:O&&(B=O*r),d&&O>d&&(O=d)),Ur(B>0||O>0,`The width(%s) and height(%s) of chart should be greater than 0,
19       please check the style of container, or the props width(%s) and height(%s),
20       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
21       height and width.`,B,O,o,l,h,u,r);var M=!Array.isArray(f)&&Ri(f.type).endsWith("Chart");return R.Children.map(f,function(F){return R.isValidElement(F)?J.cloneElement(F,Yc({width:B,height:O},M?{style:Yc({height:"100%",width:"100%",maxHeight:O,maxWidth:B},F.props.style)}:{})):F})},[r,f,l,d,u,h,E,o]);return R.createElement("div",{id:g?"".concat(g):void 0,className:Ot("recharts-responsive-container",m),style:Yc(Yc({},w),{},{width:o,height:l,minWidth:h,minHeight:u,maxHeight:d}),ref:b},I)}),pc=function(t){return null};pc.displayName="Cell";function Tl(e){"@babel/helpers - typeof";return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function Yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Tg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yx(Object(r),!0).forEach(function(i){y7(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yx(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function y7(e,t,r){return t=m7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m7(e){var t=v7(e,"string");return Tl(t)=="symbol"?t:t+""}function v7(e,t){if(Tl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Tl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fa={widthCache:{},cacheCount:0},b7=2e3,x7={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Gx="recharts_measurement_span";function C7(e){var t=Tg({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var to=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||$r.isSsr)return{width:0,height:0};var i=C7(r),n=JSON.stringify({text:t,copyStyle:i});if(Fa.widthCache[n])return Fa.widthCache[n];try{var a=document.getElementById(Gx);a||(a=document.createElement("span"),a.setAttribute("id",Gx),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Tg(Tg({},x7),i);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Fa.widthCache[n]=l,++Fa.cacheCount>b7&&(Fa.cacheCount=0,Fa.widthCache={}),l}catch{return{width:0,height:0}}},w7=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function _l(e){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(e)}function Yh(e,t){return _7(e)||T7(e,t)||k7(e,t)||S7()}function S7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k7(e,t){if(e){if(typeof e=="string")return Vx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vx(e,t)}}function Vx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function T7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function _7(e){if(Array.isArray(e))return e}function A7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xx(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,B7(i.key),i)}}function O7(e,t,r){return t&&Xx(e.prototype,t),r&&Xx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function B7(e){var t=$7(e,"string");return _l(t)=="symbol"?t:t+""}function $7(e,t){if(_l(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(_l(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Zx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,E7=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,P7=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,LT={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},L7=Object.keys(LT),Ua="NaN";function M7(e,t){return e*LT[t]}var Gc=function(){function e(t,r){A7(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!E7.test(r)&&(this.num=NaN,this.unit=""),L7.includes(r)&&(this.num=M7(t,r),this.unit="px")}return O7(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var i,n=(i=P7.exec(r))!==null&&i!==void 0?i:[],a=Yh(n,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function MT(e){if(e.includes(Ua))return Ua;for(var t=e;t.includes("*")||t.includes("/");){var r,i=(r=Kx.exec(t))!==null&&r!==void 0?r:[],n=Yh(i,4),a=n[1],o=n[2],s=n[3],l=Gc.parse(a??""),c=Gc.parse(s??""),h=o==="*"?l.multiply(c):l.divide(c);if(h.isNaN())return Ua;t=t.replace(Kx,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,d=(u=Zx.exec(t))!==null&&u!==void 0?u:[],f=Yh(d,4),y=f[1],p=f[2],g=f[3],m=Gc.parse(y??""),v=Gc.parse(g??""),x=p==="+"?m.add(v):m.subtract(v);if(x.isNaN())return Ua;t=t.replace(Zx,x.toString())}return t}var Qx=/\(([^()]*)\)/;function F7(e){for(var t=e;t.includes("(");){var r=Qx.exec(t),i=Yh(r,2),n=i[1];t=t.replace(Qx,MT(n))}return t}function I7(e){var t=e.replace(/\s+/g,"");return t=F7(t),t=MT(t),t}function D7(e){try{return I7(e)}catch{return Ua}}function fp(e){var t=D7(e.slice(5,-1));return t===Ua?"":t}var R7=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],j7=["dx","dy","angle","className","breakAll"];function _g(){return _g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},_g.apply(this,arguments)}function Jx(e,t){if(e==null)return{};var r=N7(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function N7(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;
22r[i]=e[i]}return r}function t1(e,t){return H7(e)||q7(e,t)||W7(e,t)||z7()}function z7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W7(e,t){if(e){if(typeof e=="string")return e1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e1(e,t)}}function e1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function q7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function H7(e){if(Array.isArray(e))return e}var FT=/[ \f\n\r\t\v\u2028\u2029]+/,IT=function(t){var r=t.children,i=t.breakAll,n=t.style;try{var a=[];yt(r)||(i?a=r.toString().split(""):a=r.toString().split(FT));var o=a.map(function(l){return{word:l,width:to(l,n).width}}),s=i?0:to(" ",n).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},U7=function(t,r,i,n,a){var o=t.maxLines,s=t.children,l=t.style,c=t.breakAll,h=tt(o),u=s,d=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return B.reduce(function(O,M){var F=M.word,$=M.width,N=O[O.length-1];if(N&&(n==null||a||N.width+$+i<Number(n)))N.words.push(F),N.width+=$+i;else{var W={words:[F],width:$};O.push(W)}return O},[])},f=d(r),y=function(B){return B.reduce(function(O,M){return O.width>M.width?O:M})};if(!h)return f;for(var p="…",g=function(B){var O=u.slice(0,B),M=IT({breakAll:c,style:l,children:O+p}).wordsWithComputedWidth,F=d(M),$=F.length>o||y(F).width>Number(n);return[$,F]},m=0,v=u.length-1,x=0,w;m<=v&&x<=u.length-1;){var b=Math.floor((m+v)/2),C=b-1,k=g(C),T=t1(k,2),E=T[0],L=T[1],P=g(b),I=t1(P,1),D=I[0];if(!E&&!D&&(m=b+1),E&&D&&(v=b-1),!E&&D){w=L;break}x++}return w||f},r1=function(t){var r=yt(t)?[]:t.toString().split(FT);return[{words:r}]},Y7=function(t){var r=t.width,i=t.scaleToFit,n=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||i)&&!$r.isSsr){var l,c,h=IT({breakAll:o,children:n,style:a});if(h){var u=h.wordsWithComputedWidth,d=h.spaceWidth;l=u,c=d}else return r1(n);return U7({breakAll:o,children:n,maxLines:s,style:a},l,c,r,i)}return r1(n)},i1="#808080",aa=function(t){var r=t.x,i=r===void 0?0:r,n=t.y,a=n===void 0?0:n,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,h=t.scaleToFit,u=h===void 0?!1:h,d=t.textAnchor,f=d===void 0?"start":d,y=t.verticalAnchor,p=y===void 0?"end":y,g=t.fill,m=g===void 0?i1:g,v=Jx(t,R7),x=J.useMemo(function(){return Y7({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:u,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,u,v.style,v.width]),w=v.dx,b=v.dy,C=v.angle,k=v.className,T=v.breakAll,E=Jx(v,j7);if(!Te(i)||!Te(a))return null;var L=i+(tt(w)?w:0),P=a+(tt(b)?b:0),I;switch(p){case"start":I=fp("calc(".concat(c,")"));break;case"middle":I=fp("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:I=fp("calc(".concat(x.length-1," * -").concat(s,")"));break}var D=[];if(u){var _=x[0].width,B=v.width;D.push("scale(".concat((tt(B)?B/_:1)/_,")"))}return C&&D.push("rotate(".concat(C,", ").concat(L,", ").concat(P,")")),D.length&&(E.transform=D.join(" ")),R.createElement("text",_g({},lt(E,!0),{x:L,y:P,className:Ot("recharts-text",k),textAnchor:f,fill:m.includes("url")?i1:m}),x.map(function(O,M){var F=O.words.join(T?"":" ");return R.createElement("tspan",{x:L,dy:M===0?I:s,key:"".concat(F,"-").concat(M)},F)}))};function vn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function G7(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gv(e){let t,r,i;e.length!==2?(t=vn,r=(s,l)=>vn(e(s),l),i=(s,l)=>e(s)-l):(t=e===vn||e===G7?e:V7,r=e,i=e);function n(s,l,c=0,h=s.length){if(c<h){if(t(l,l)!==0)return h;do{const u=c+h>>>1;r(s[u],l)<0?c=u+1:h=u}while(c<h)}return c}function a(s,l,c=0,h=s.length){if(c<h){if(t(l,l)!==0)return h;do{const u=c+h>>>1;r(s[u],l)<=0?c=u+1:h=u}while(c<h)}return c}function o(s,l,c=0,h=s.length){const u=n(s,l,c,h-1);return u>c&&i(s[u-1],l)>-i(s[u],l)?u-1:u}return{left:n,center:o,right:a}}function V7(){return 0}function DT(e){return e===null?NaN:+e}function*X7(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}
23const K7=gv(vn),gc=K7.right;gv(DT).center;class n1 extends Map{constructor(t,r=J7){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[i,n]of t)this.set(i,n)}get(t){return super.get(a1(this,t))}has(t){return super.has(a1(this,t))}set(t,r){return super.set(Z7(this,t),r)}delete(t){return super.delete(Q7(this,t))}}function a1({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):r}function Z7({_intern:e,_key:t},r){const i=t(r);return e.has(i)?e.get(i):(e.set(i,r),r)}function Q7({_intern:e,_key:t},r){const i=t(r);return e.has(i)&&(r=e.get(r),e.delete(i)),r}function J7(e){return e!==null&&typeof e=="object"?e.valueOf():e}function t9(e=vn){if(e===vn)return RT;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const i=e(t,r);return i||i===0?i:(e(r,r)===0)-(e(t,t)===0)}}function RT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const e9=Math.sqrt(50),r9=Math.sqrt(10),i9=Math.sqrt(2);function Gh(e,t,r){const i=(t-e)/Math.max(0,r),n=Math.floor(Math.log10(i)),a=i/Math.pow(10,n),o=a>=e9?10:a>=r9?5:a>=i9?2:1;let s,l,c;return n<0?(c=Math.pow(10,-n)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,n)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?Gh(e,t,r*2):[s,l,c]}function Ag(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const i=t<e,[n,a,o]=i?Gh(t,e,r):Gh(e,t,r);if(!(a>=n))return[];const s=a-n+1,l=new Array(s);if(i)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(n+c)/-o;else for(let c=0;c<s;++c)l[c]=(n+c)*o;return l}function Og(e,t,r){return t=+t,e=+e,r=+r,Gh(e,t,r)[2]}function Bg(e,t,r){t=+t,e=+e,r=+r;const i=t<e,n=i?Og(t,e,r):Og(e,t,r);return(i?-1:1)*(n<0?1/-n:n)}function o1(e,t){let r;if(t===void 0)for(const i of e)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}function s1(e,t){let r;if(t===void 0)for(const i of e)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}function jT(e,t,r=0,i=1/0,n){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),i=Math.floor(Math.min(e.length-1,i)),!(r<=t&&t<=i))return e;for(n=n===void 0?RT:t9(n);i>r;){if(i-r>600){const l=i-r+1,c=t-r+1,h=Math.log(l),u=.5*Math.exp(2*h/3),d=.5*Math.sqrt(h*u*(l-u)/l)*(c-l/2<0?-1:1),f=Math.max(r,Math.floor(t-c*u/l+d)),y=Math.min(i,Math.floor(t+(l-c)*u/l+d));jT(e,t,f,y,n)}const a=e[t];let o=r,s=i;for(Ps(e,r,t),n(e[i],a)>0&&Ps(e,r,i);o<s;){for(Ps(e,o,s),++o,--s;n(e[o],a)<0;)++o;for(;n(e[s],a)>0;)--s}n(e[r],a)===0?Ps(e,r,s):(++s,Ps(e,s,i)),s<=t&&(r=s+1),t<=s&&(i=s-1)}return e}function Ps(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function n9(e,t,r){if(e=Float64Array.from(X7(e)),!(!(i=e.length)||isNaN(t=+t))){if(t<=0||i<2)return s1(e);if(t>=1)return o1(e);var i,n=(i-1)*t,a=Math.floor(n),o=o1(jT(e,a).subarray(0,a+1)),s=s1(e.subarray(a+1));return o+(s-o)*(n-a)}}function a9(e,t,r=DT){if(!(!(i=e.length)||isNaN(t=+t))){if(t<=0||i<2)return+r(e[0],0,e);if(t>=1)return+r(e[i-1],i-1,e);var i,n=(i-1)*t,a=Math.floor(n),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(n-a)}}function o9(e,t,r){e=+e,t=+t,r=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+r;for(var i=-1,n=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(n);++i<n;)a[i]=e+i*r;return a}function Mr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ji(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const $g=Symbol("implicit");function yv(){var e=new n1,t=[],r=[],i=$g;function n(a){let o=e.get(a);if(o===void 0){if(i!==$g)return i;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return n.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new n1;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return n},n.range=function(a){return arguments.length?(r=Array.from(a),n):r.slice()},n.unknown=function(a){return arguments.length?(i=a,n):i},n.copy=function(){return yv(t,r).unknown(i)},Mr.apply(n,arguments),n}function Al(){var e=yv().unknown(void 0),t=e.domain,r=e.range,i=0,n=1,a,o,s=!1,l=0,c=0,h=.5;delete e.unknown;
vendor: 5,625 bytes, line 23
23function u(){var d=t().length,f=n<i,y=f?n:i,p=f?i:n;a=(p-y)/Math.max(1,d-l+c*2),s&&(a=Math.floor(a)),y+=(p-y-a*(d-l))*h,o=a*(1-l),s&&(y=Math.round(y),o=Math.round(o));var g=o9(d).map(function(m){return y+a*m});return r(f?g.reverse():g)}return e.domain=function(d){return arguments.length?(t(d),u()):t()},e.range=function(d){return arguments.length?([i,n]=d,i=+i,n=+n,u()):[i,n]},e.rangeRound=function(d){return[i,n]=d,i=+i,n=+n,s=!0,u()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,u()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,c=+d),u()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),u()):l},e.paddingOuter=function(d){return arguments.length?(c=+d,u()):c},e.align=function(d){return arguments.length?(h=Math.max(0,Math.min(1,d)),u()):h},e.copy=function(){return Al(t(),[i,n]).round(s).paddingInner(l).paddingOuter(c).align(h)},Mr.apply(u(),arguments)}function NT(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return NT(t())},e}function al(){return NT(Al.apply(null,arguments).paddingInner(1))}function yc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Uf(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function ba(){}var Ol=.7,Vh=1/Ol,eo="\\s*([+-]?\\d+)\\s*",Bl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s9=/^#([0-9a-f]{3,8})$/,l9=new RegExp(`^rgb\\(${eo},${eo},${eo}\\)$`),c9=new RegExp(`^rgb\\(${di},${di},${di}\\)$`),h9=new RegExp(`^rgba\\(${eo},${eo},${eo},${Bl}\\)$`),u9=new RegExp(`^rgba\\(${di},${di},${di},${Bl}\\)$`),f9=new RegExp(`^hsl\\(${Bl},${di},${di}\\)$`),d9=new RegExp(`^hsla\\(${Bl},${di},${di},${Bl}\\)$`),l1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};yc(ba,oa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:c1,formatHex:c1,formatHex8:p9,formatHsl:g9,formatRgb:h1,toString:h1});function c1(){return this.rgb().formatHex()}function p9(){return this.rgb().formatHex8()}function g9(){return WT(this).formatHsl()}function h1(){return this.rgb().formatRgb()}function oa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=s9.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?u1(t):r===3?new Ge(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Vc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Vc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=l9.exec(e))?new Ge(t[1],t[2],t[3],1):(t=c9.exec(e))?new Ge(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=h9.exec(e))?Vc(t[1],t[2],t[3],t[4]):(t=u9.exec(e))?Vc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=f9.exec(e))?p1(t[1],t[2]/100,t[3]/100,1):(t=d9.exec(e))?p1(t[1],t[2]/100,t[3]/100,t[4]):l1.hasOwnProperty(e)?u1(l1[e]):e==="transparent"?new Ge(NaN,NaN,NaN,0):null}function u1(e){return new Ge(e>>16&255,e>>8&255,e&255,1)}
vendor: 1,759 bytes, line 23
23function Vc(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ge(e,t,r,i)}function zT(e){return e instanceof ba||(e=oa(e)),e?(e=e.rgb(),new Ge(e.r,e.g,e.b,e.opacity)):new Ge}function Eg(e,t,r,i){return arguments.length===1?zT(e):new Ge(e,t,r,i??1)}function Ge(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}yc(Ge,Eg,Uf(ba,{brighter(e){return e=e==null?Vh:Math.pow(Vh,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ge(ea(this.r),ea(this.g),ea(this.b),Xh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:f1,formatHex:f1,formatHex8:y9,formatRgb:d1,toString:d1}));function f1(){return`#${Vn(this.r)}${Vn(this.g)}${Vn(this.b)}`}function y9(){return`#${Vn(this.r)}${Vn(this.g)}${Vn(this.b)}${Vn((isNaN(this.opacity)?1:this.opacity)*255)}`}function d1(){const e=Xh(this.opacity);return`${e===1?"rgb(":"rgba("}${ea(this.r)}, ${ea(this.g)}, ${ea(this.b)}${e===1?")":`, ${e})`}`}function Xh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ea(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vn(e){return e=ea(e),(e<16?"0":"")+e.toString(16)}function p1(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new qr(e,t,r,i)}function WT(e){if(e instanceof qr)return new qr(e.h,e.s,e.l,e.opacity);if(e instanceof ba||(e=oa(e)),!e)return new qr;if(e instanceof qr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=NaN,s=a-n,l=(a+n)/2;return s?(t===a?o=(r-i)/s+(r<i)*6:r===a?o=(i-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+n:2-a-n,o*=60):s=l>0&&l<1?0:o,new qr(o,s,l,e.opacity)}
vendor: 6,235 bytes, line 23
23function m9(e,t,r,i){return arguments.length===1?WT(e):new qr(e,t,r,i??1)}function qr(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}yc(qr,m9,Uf(ba,{brighter(e){return e=e==null?Vh:Math.pow(Vh,e),new qr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new qr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new Ge(dp(e>=240?e-240:e+120,n,i),dp(e,n,i),dp(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new qr(g1(this.h),Xc(this.s),Xc(this.l),Xh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Xh(this.opacity);return`${e===1?"hsl(":"hsla("}${g1(this.h)}, ${Xc(this.s)*100}%, ${Xc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function g1(e){return e=(e||0)%360,e<0?e+360:e}function Xc(e){return Math.max(0,Math.min(1,e||0))}function dp(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const v9=Math.PI/180,b9=180/Math.PI,Kh=18,qT=.96422,HT=1,UT=.82521,YT=4/29,ro=6/29,GT=3*ro*ro,x9=ro*ro*ro;function VT(e){if(e instanceof pi)return new pi(e.l,e.a,e.b,e.opacity);if(e instanceof Li)return XT(e);e instanceof Ge||(e=zT(e));var t=mp(e.r),r=mp(e.g),i=mp(e.b),n=pp((.2225045*t+.7168786*r+.0606169*i)/HT),a,o;return t===r&&r===i?a=o=n:(a=pp((.4360747*t+.3850649*r+.1430804*i)/qT),o=pp((.0139322*t+.0971045*r+.7141733*i)/UT)),new pi(116*n-16,500*(a-n),200*(n-o),e.opacity)}function C9(e,t,r,i){return arguments.length===1?VT(e):new pi(e,t,r,i??1)}function pi(e,t,r,i){this.l=+e,this.a=+t,this.b=+r,this.opacity=+i}yc(pi,C9,Uf(ba,{brighter(e){return new pi(this.l+Kh*(e??1),this.a,this.b,this.opacity)},darker(e){return new pi(this.l-Kh*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=qT*gp(t),e=HT*gp(e),r=UT*gp(r),new Ge(yp(3.1338561*t-1.6168667*e-.4906146*r),yp(-.9787684*t+1.9161415*e+.033454*r),yp(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function pp(e){return e>x9?Math.pow(e,1/3):e/GT+YT}function gp(e){return e>ro?e*e*e:GT*(e-YT)}function yp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function w9(e){if(e instanceof Li)return new Li(e.h,e.c,e.l,e.opacity);if(e instanceof pi||(e=VT(e)),e.a===0&&e.b===0)return new Li(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*b9;return new Li(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Pg(e,t,r,i){return arguments.length===1?w9(e):new Li(e,t,r,i??1)}function Li(e,t,r,i){this.h=+e,this.c=+t,this.l=+r,this.opacity=+i}function XT(e){if(isNaN(e.h))return new pi(e.l,0,0,e.opacity);var t=e.h*v9;return new pi(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}yc(Li,Pg,Uf(ba,{brighter(e){return new Li(this.h,this.c,this.l+Kh*(e??1),this.opacity)},darker(e){return new Li(this.h,this.c,this.l-Kh*(e??1),this.opacity)},rgb(){return XT(this).rgb()}}));const Yf=e=>()=>e;function KT(e,t){return function(r){return e+r*t}}function S9(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function k9(e,t){var r=t-e;return r?KT(e,r>180||r<-180?r-360*Math.round(r/360):r):Yf(isNaN(e)?t:e)}function T9(e){return(e=+e)==1?ol:function(t,r){return r-t?S9(t,r,e):Yf(isNaN(t)?r:t)}}function ol(e,t){var r=t-e;return r?KT(e,r):Yf(isNaN(e)?t:e)}const Zh=function e(t){var r=T9(t);function i(n,a){var o=r((n=Eg(n)).r,(a=Eg(a)).r),s=r(n.g,a.g),l=r(n.b,a.b),c=ol(n.opacity,a.opacity);return function(h){return n.r=o(h),n.g=s(h),n.b=l(h),n.opacity=c(h),n+""}}return i.gamma=e,i}(1);function _9(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),n;return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}}function A9(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function O9(e,t){var r=t?t.length:0,i=e?Math.min(r,e.length):0,n=new Array(i),a=new Array(r),o;for(o=0;o<i;++o)n[o]=ms(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<i;++o)a[o]=n[o](s);return a}}function B9(e,t){var r=new Date;return e=+e,t=+t,function(i){return r.setTime(e*(1-i)+t*i),r}}function Nr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function $9(e,t){var r={},i={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=ms(e[n],t[n]):i[n]=t[n];return function(a){for(n in r)i[n]=r[n](a);return i}}var Lg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vp=new RegExp(Lg.source,"g");function E9(e){return function(){return e}}function P9(e){return function(t){return e(t)+""}}function ZT(e,t){var r=Lg.lastIndex=vp.lastIndex=0,i,n,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(i=Lg.exec(e))&&(n=vp.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Nr(i,n)})),r=vp.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?P9(l[0].x):E9(t):(t=l.length,function(c){for(var h=0,u;h<t;++h)s[(u=l[h]).i]=u.x(c);return s.join("")})}function ms(e,t){var r=typeof t,i;return t==null||r==="boolean"?Yf(t):(r==="number"?Nr:r==="string"?(i=oa(t))?(t=i,Zh):ZT:t instanceof oa?Zh:t instanceof Date?B9:A9(t)?_9:Array.isArray(t)?O9:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?$9:Nr)(e,t)}function mv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var y1=180/Math.PI,Mg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function QT(e,t,r,i,n,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),e*i<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:n,translateY:a,rotate:Math.atan2(t,e)*y1,skewX:Math.atan(l)*y1,scaleX:o,scaleY:s}}var Kc;function L9(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Mg:QT(t.a,t.b,t.c,t.d,t.e,t.f)}function M9(e){return e==null||(Kc||(Kc=document.createElementNS("http://www.w3.org/2000/svg","g")),Kc.setAttribute("transform",e),!(e=Kc.transform.baseVal.consolidate()))?Mg:(e=e.matrix,QT(e.a,e.b,e.c,e.d,e.e,e.f))}
23function JT(e,t,r,i){function n(c){return c.length?c.pop()+" ":""}function a(c,h,u,d,f,y){if(c!==u||h!==d){var p=f.push("translate(",null,t,null,r);y.push({i:p-4,x:Nr(c,u)},{i:p-2,x:Nr(h,d)})}else(u||d)&&f.push("translate("+u+t+d+r)}function o(c,h,u,d){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),d.push({i:u.push(n(u)+"rotate(",null,i)-2,x:Nr(c,h)})):h&&u.push(n(u)+"rotate("+h+i)}function s(c,h,u,d){c!==h?d.push({i:u.push(n(u)+"skewX(",null,i)-2,x:Nr(c,h)}):h&&u.push(n(u)+"skewX("+h+i)}function l(c,h,u,d,f,y){if(c!==u||h!==d){var p=f.push(n(f)+"scale(",null,",",null,")");y.push({i:p-4,x:Nr(c,u)},{i:p-2,x:Nr(h,d)})}else(u!==1||d!==1)&&f.push(n(f)+"scale("+u+","+d+")")}return function(c,h){var u=[],d=[];return c=e(c),h=e(h),a(c.translateX,c.translateY,h.translateX,h.translateY,u,d),o(c.rotate,h.rotate,u,d),s(c.skewX,h.skewX,u,d),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,d),c=h=null,function(f){for(var y=-1,p=d.length,g;++y<p;)u[(g=d[y]).i]=g.x(f);return u.join("")}}}var F9=JT(L9,"px, ","px)","deg)"),I9=JT(M9,", ",")",")"),D9=1e-12;function m1(e){return((e=Math.exp(e))+1/e)/2}function R9(e){return((e=Math.exp(e))-1/e)/2}function j9(e){return((e=Math.exp(2*e))-1)/(e+1)}const N9=function e(t,r,i){function n(a,o){var s=a[0],l=a[1],c=a[2],h=o[0],u=o[1],d=o[2],f=h-s,y=u-l,p=f*f+y*y,g,m;if(p<D9)m=Math.log(d/c)/t,g=function(k){return[s+k*f,l+k*y,c*Math.exp(t*k*m)]};else{var v=Math.sqrt(p),x=(d*d-c*c+i*p)/(2*c*r*v),w=(d*d-c*c-i*p)/(2*d*r*v),b=Math.log(Math.sqrt(x*x+1)-x),C=Math.log(Math.sqrt(w*w+1)-w);m=(C-b)/t,g=function(k){var T=k*m,E=m1(b),L=c/(r*v)*(E*j9(t*T+b)-R9(b));return[s+L*f,l+L*y,c*E/m1(t*T+b)]}}return g.duration=m*1e3*t/Math.SQRT2,g}return n.rho=function(a){var o=Math.max(.001,+a),s=o*o,l=s*s;return e(o,s,l)},n}(Math.SQRT2,2,4);function z9(e){return function(t,r){var i=e((t=Pg(t)).h,(r=Pg(r)).h),n=ol(t.c,r.c),a=ol(t.l,r.l),o=ol(t.opacity,r.opacity);return function(s){return t.h=i(s),t.c=n(s),t.l=a(s),t.opacity=o(s),t+""}}}const l0t=z9(k9);function W9(e,t){t===void 0&&(t=e,e=ms);for(var r=0,i=t.length-1,n=t[0],a=new Array(i<0?0:i);r<i;)a[r]=e(n,n=t[++r]);return function(o){var s=Math.max(0,Math.min(i-1,Math.floor(o*=i)));return a[s](o-s)}}function q9(e){return function(){return e}}function Qh(e){return+e}var v1=[0,1];function er(e){return e}function Fg(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:q9(isNaN(t)?NaN:.5)}function H9(e,t){var r;return e>t&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function U9(e,t,r){var i=e[0],n=e[1],a=t[0],o=t[1];return n<i?(i=Fg(n,i),a=r(o,a)):(i=Fg(i,n),a=r(a,o)),function(s){return a(i(s))}}function Y9(e,t,r){var i=Math.min(e.length,t.length)-1,n=new Array(i),a=new Array(i),o=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<i;)n[o]=Fg(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=gc(e,s,1,i)-1;return a[l](n[l](s))}}function mc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Gf(){var e=v1,t=v1,r=ms,i,n,a,o=er,s,l,c;function h(){var d=Math.min(e.length,t.length);return o!==er&&(o=H9(e[0],e[d-1])),s=d>2?Y9:U9,l=c=null,u}function u(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(i),t,r)))(i(o(d)))}return u.invert=function(d){return o(n((c||(c=s(t,e.map(i),Nr)))(d)))},u.domain=function(d){return arguments.length?(e=Array.from(d,Qh),h()):e.slice()},u.range=function(d){return arguments.length?(t=Array.from(d),h()):t.slice()},u.rangeRound=function(d){return t=Array.from(d),r=mv,h()},u.clamp=function(d){return arguments.length?(o=d?!0:er,h()):o!==er},u.interpolate=function(d){return arguments.length?(r=d,h()):r},u.unknown=function(d){return arguments.length?(a=d,u):a},function(d,f){return i=d,n=f,h()}}function vv(){return Gf()(er,er)}function G9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Jh(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),i=e.slice(0,r);return[i.length>
vendor: 4,675 bytes, line 23
231?i[0]+i.slice(2):i,+e.slice(r+1)]}function Ao(e){return e=Jh(Math.abs(e)),e?e[1]:NaN}function V9(e,t){return function(r,i){for(var n=r.length,a=[],o=0,s=e[0],l=0;n>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),a.push(r.substring(n-=s,n+s)),!((l+=s+1)>i));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function X9(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var K9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $l(e){if(!(t=K9.exec(e)))throw new Error("invalid format: "+e);var t;return new bv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}$l.prototype=bv.prototype;function bv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}bv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Z9(e){t:for(var t=e.length,r=1,i=-1,n;r<t;++r)switch(e[r]){case".":i=n=r;break;case"0":i===0&&(i=r),n=r;break;default:if(!+e[r])break t;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(n+1):e}var tu;function Q9(e,t){var r=Jh(e,t);if(!r)return tu=void 0,e.toPrecision(t);var i=r[0],n=r[1],a=n-(tu=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Jh(e,Math.max(0,t+a-1))[0]}function b1(e,t){var r=Jh(e,t);if(!r)return e+"";var i=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}const x1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:G9,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>b1(e*100,t),r:b1,s:Q9,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function C1(e){return e}var w1=Array.prototype.map,S1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function J9(e){var t=e.grouping===void 0||e.thousands===void 0?C1:V9(w1.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",n=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?C1:X9(w1.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(u,d){u=$l(u);var f=u.fill,y=u.align,p=u.sign,g=u.symbol,m=u.zero,v=u.width,x=u.comma,w=u.precision,b=u.trim,C=u.type;C==="n"?(x=!0,C="g"):x1[C]||(w===void 0&&(w=12),b=!0,C="g"),(m||f==="0"&&y==="=")&&(m=!0,f="0",y="=");var k=(d&&d.prefix!==void 0?d.prefix:"")+(g==="$"?r:g==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),T=(g==="$"?i:/[%p]/.test(C)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),E=x1[C],L=/[defgprs%]/.test(C);w=w===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function P(I){var D=k,_=T,B,O,M;if(C==="c")_=E(I)+_,I="";else{I=+I;var F=I<0||1/I<0;if(I=isNaN(I)?l:E(Math.abs(I),w),b&&(I=Z9(I)),F&&+I==0&&p!=="+"&&(F=!1),D=(F?p==="("?p:s:p==="-"||p==="("?"":p)+D,_=(C==="s"&&!isNaN(I)&&tu!==void 0?S1[8+tu/3]:"")+_+(F&&p==="("?")":""),L){for(B=-1,O=I.length;++B<O;)if(M=I.charCodeAt(B),48>M||M>57){_=(M===46?n+I.slice(B+1):I.slice(B))+_,I=I.slice(0,B);break}}}x&&!m&&(I=t(I,1/0));var $=D.length+I.length+_.length,N=$<v?new Array(v-$+1).join(f):"";switch(x&&m&&(I=t(N+I,N.length?v-_.length:1/0),N=""),y){case"<":I=D+I+_+N;break;case"=":I=D+N+I+_;break;case"^":I=N.slice(0,$=N.length>>1)+D+I+_+N.slice($);break;default:I=N+D+I+_;break}return a(I)}return P.toString=function(){return u+""},P}function h(u,d){var f=Math.max(-8,Math.min(8,Math.floor(Ao(d)/3)))*3,y=Math.pow(10,-f),p=c((u=$l(u),u.type="f",u),{suffix:S1[8+f/3]});return function(g){return p(y*g)}}return{format:c,formatPrefix:h}}var Zc,xv,t2;tH({thousands:",",grouping:[3],currency:["$",""]});function tH(e){return Zc=J9(e),xv=Zc.format,t2=Zc.formatPrefix,Zc}function eH(e){return Math.max(0,-Ao(Math.abs(e)))}function rH(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ao(t)/3)))*3-Ao(Math.abs(e)))}function iH(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ao(t)-Ao(e))+1}
23function e2(e,t,r,i){var n=Bg(e,t,r),a;switch(i=$l(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(a=rH(n,o))&&(i.precision=a),t2(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=iH(n,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=eH(n))&&(i.precision=a-(i.type==="%")*2);break}}return xv(i)}function $n(e){var t=e.domain;return e.ticks=function(r){var i=t();return Ag(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var n=t();return e2(n[0],n[n.length-1],r??10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),n=0,a=i.length-1,o=i[n],s=i[a],l,c,h=10;for(s<o&&(c=o,o=s,s=c,c=n,n=a,a=c);h-- >0;){if(c=Og(o,s,r),c===l)return i[n]=o,i[a]=s,t(i);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function eu(){var e=vv();return e.copy=function(){return mc(e,eu())},Mr.apply(e,arguments),$n(e)}function r2(e){var t;function r(i){return i==null||isNaN(i=+i)?t:i}return r.invert=r,r.domain=r.range=function(i){return arguments.length?(e=Array.from(i,Qh),r):e.slice()},r.unknown=function(i){return arguments.length?(t=i,r):t},r.copy=function(){return r2(e).unknown(t)},e=arguments.length?Array.from(e,Qh):[0,1],$n(r)}function i2(e,t){e=e.slice();var r=0,i=e.length-1,n=e[r],a=e[i],o;return a<n&&(o=r,r=i,i=o,o=n,n=a,a=o),e[r]=t.floor(n),e[i]=t.ceil(a),e}function k1(e){return Math.log(e)}function T1(e){return Math.exp(e)}function nH(e){return-Math.log(-e)}function aH(e){return-Math.exp(-e)}function oH(e){return isFinite(e)?+("1e"+e):e<0?0:e}function sH(e){return e===10?oH:e===Math.E?Math.exp:t=>Math.pow(e,t)}function lH(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function _1(e){return(t,r)=>-e(-t,r)}function Cv(e){const t=e(k1,T1),r=t.domain;let i=10,n,a;function o(){return n=lH(i),a=sH(i),r()[0]<0?(n=_1(n),a=_1(a),e(nH,aH)):e(k1,T1),t}return t.base=function(s){return arguments.length?(i=+s,o()):i},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],h=l[l.length-1];const u=h<c;u&&([c,h]=[h,c]);let d=n(c),f=n(h),y,p;const g=s==null?10:+s;let m=[];if(!(i%1)&&f-d<g){if(d=Math.floor(d),f=Math.ceil(f),c>0){for(;d<=f;++d)for(y=1;y<i;++y)if(p=d<0?y/a(-d):y*a(d),!(p<c)){if(p>h)break;m.push(p)}}else for(;d<=f;++d)for(y=i-1;y>=1;--y)if(p=d>0?y/a(-d):y*a(d),!(p<c)){if(p>h)break;m.push(p)}m.length*2<g&&(m=Ag(c,h,g))}else m=Ag(d,f,Math.min(f-d,g)).map(a);return u?m.reverse():m},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=i===10?"s":","),typeof l!="function"&&(!(i%1)&&(l=$l(l)).precision==null&&(l.trim=!0),l=xv(l)),s===1/0)return l;const c=Math.max(1,i*s/t.ticks().length);return h=>{let u=h/a(Math.round(n(h)));return u*i<i-.5&&(u*=i),u<=c?l(h):""}},t.nice=()=>r(i2(r(),{floor:s=>a(Math.floor(n(s))),ceil:s=>a(Math.ceil(n(s)))})),t}function n2(){const e=Cv(Gf()).domain([1,10]);return e.copy=()=>mc(e,n2()).base(e.base()),Mr.apply(e,arguments),e}function A1(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function O1(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function wv(e){var t=1,r=e(A1(t),O1(t));return r.constant=function(i){return arguments.length?e(A1(t=+i),O1(t)):t},$n(r)}function a2(){var e=wv(Gf());return e.copy=function(){return mc(e,a2()).constant(e.constant())},Mr.apply(e,arguments)}function B1(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function cH(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function hH(e){return e<0?-e*e:e*e}function Sv(e){var t=e(er,er),r=1;function i(){return r===1?e(er,er):r===.5?e(cH,hH):e(B1(r),B1(1/r))}return t.exponent=function(n){return arguments.length?(r=+n,i()):r},$n(t)}function kv(){var e=Sv(Gf());return e.copy=function(){return mc(e,kv()).exponent(e.exponent())},Mr.apply(e,arguments),e}function uH(){return kv.apply(null,arguments).exponent(.5)}function $1(e){return Math.sign(e)*e*e}function fH(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function o2(){var e=vv(),t=[0,1],r=!1,i;function n(a){var o=fH(e(a));return isNaN(o)?i:r?Math.round(o):o}return n.invert=function(a){return e.invert($1(a))},n.domain=function(a){return arguments.length?(e.domain(a),n):e.domain()},n.range=function(a){return arguments.length?(e.range((t=Array.from(a,Qh)).map($1)),n):t.slice()},n.rangeRound=function(a){return n.range(a).round(!0)},n.round=function(a){return arguments.length?(r=!!a,n):r},n.clamp=function(a){return arguments.length?(e.clamp(a),n):e.clamp()},n.unknown=function(a){return arguments.length?(i=a,n):i},n.copy=function(){return o2(e.domain(),t).round(r).clamp(e.clamp()).unknown(i)},Mr.apply(n,arguments),$n(n)}function s2(){var e=[],t=[],r=[],i;function n(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=a9(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?i:t[gc(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>
230?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(vn),n()},a.range=function(o){return arguments.length?(t=Array.from(o),n()):t.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.quantiles=function(){return r.slice()},a.copy=function(){return s2().domain(e).range(t).unknown(i)},Mr.apply(a,arguments)}function l2(){var e=0,t=1,r=1,i=[.5],n=[0,1],a;function o(l){return l!=null&&l<=l?n[gc(i,l,0,r)]:a}function s(){var l=-1;for(i=new Array(r);++l<r;)i[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(n=Array.from(l)).length-1,s()):n.slice()},o.invertExtent=function(l){var c=n.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,i[0]]:c>=r?[i[r-1],t]:[i[c-1],i[c]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return i.slice()},o.copy=function(){return l2().domain([e,t]).range(n).unknown(a)},Mr.apply($n(o),arguments)}function c2(){var e=[.5],t=[0,1],r,i=1;function n(a){return a!=null&&a<=a?t[gc(e,a,0,i)]:r}return n.domain=function(a){return arguments.length?(e=Array.from(a),i=Math.min(e.length,t.length-1),n):e.slice()},n.range=function(a){return arguments.length?(t=Array.from(a),i=Math.min(e.length,t.length-1),n):t.slice()},n.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},n.unknown=function(a){return arguments.length?(r=a,n):r},n.copy=function(){return c2().domain(e).range(t).unknown(r)},Mr.apply(n,arguments)}const bp=new Date,xp=new Date;function _e(e,t,r,i){function n(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return n.floor=a=>(e(a=new Date(+a)),a),n.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),n.round=a=>{const o=n(a),s=n.ceil(a);return a-o<s-a?o:s},n.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),n.range=(a,o,s)=>{const l=[];
vendor: 6,550 bytes, line 23
23if(a=n.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},n.filter=a=>_e(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(n.count=(a,o)=>(bp.setTime(+a),xp.setTime(+o),e(bp),e(xp),Math.floor(r(bp,xp))),n.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?n.filter(i?o=>i(o)%a===0:o=>n.count(0,o)%a===0):n)),n}const ru=_e(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ru.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_e(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ru);ru.range;const Mi=1e3,Ar=Mi*60,Fi=Ar*60,Ui=Fi*24,Tv=Ui*7,E1=Ui*30,Cp=Ui*365,Xn=_e(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Mi)},(e,t)=>(t-e)/Mi,e=>e.getUTCSeconds());Xn.range;const _v=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mi)},(e,t)=>{e.setTime(+e+t*Ar)},(e,t)=>(t-e)/Ar,e=>e.getMinutes());_v.range;const Av=_e(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ar)},(e,t)=>(t-e)/Ar,e=>e.getUTCMinutes());Av.range;const Ov=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mi-e.getMinutes()*Ar)},(e,t)=>{e.setTime(+e+t*Fi)},(e,t)=>(t-e)/Fi,e=>e.getHours());Ov.range;const Bv=_e(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Fi)},(e,t)=>(t-e)/Fi,e=>e.getUTCHours());Bv.range;const vc=_e(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ar)/Ui,e=>e.getDate()-1);vc.range;const Vf=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ui,e=>e.getUTCDate()-1);Vf.range;const h2=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ui,e=>Math.floor(e/Ui));h2.range;function xa(e){return _e(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ar)/Tv)}const Xf=xa(0),iu=xa(1),dH=xa(2),pH=xa(3),Oo=xa(4),gH=xa(5),yH=xa(6);Xf.range;iu.range;dH.range;pH.range;Oo.range;gH.range;yH.range;function Ca(e){return _e(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Tv)}const Kf=Ca(0),nu=Ca(1),mH=Ca(2),vH=Ca(3),Bo=Ca(4),bH=Ca(5),xH=Ca(6);Kf.range;nu.range;mH.range;vH.range;Bo.range;bH.range;xH.range;const $v=_e(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());$v.range;const Ev=_e(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ev.range;const Yi=_e(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Yi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Yi.range;const Gi=_e(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Gi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Gi.range;function u2(e,t,r,i,n,a){const o=[[Xn,1,Mi],[Xn,5,5*Mi],[Xn,15,15*Mi],[Xn,30,30*Mi],[a,1,Ar],[a,5,5*Ar],[a,15,15*Ar],[a,30,30*Ar],[n,1,Fi],[n,3,3*Fi],[n,6,6*Fi],[n,12,12*Fi],[i,1,Ui],[i,2,2*Ui],[r,1,Tv],[t,1,E1],[t,3,3*E1],[e,1,Cp]];function s(c,h,u){const d=h<c;d&&([c,h]=[h,c]);const f=u&&typeof u.range=="function"?u:l(c,h,u),y=f?f.range(c,+h+1):[];return d?y.reverse():y}function l(c,h,u){const d=Math.abs(h-c)/u,f=gv(([,,g])=>g).right(o,d);if(f===o.length)return e.every(Bg(c/Cp,h/Cp,u));if(f===0)return ru.every(Math.max(Bg(c,h,u),1));const[y,p]=o[d/o[f-1][2]<o[f][2]/d?f-1:f];return y.every(p)}return[s,l]}const[CH,wH]=u2(Gi,Ev,Kf,h2,Bv,Av),[SH,kH]=u2(Yi,$v,Xf,vc,Ov,_v);function wp(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Sp(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ls(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function TH(e){var t=e.dateTime,r=e.date,i=e.time,n=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Ms(n),h=Fs(n),u=Ms(a),d=Fs(a),f=Ms(o),y=Fs(o),p=Ms(s),g=Fs(s),m=Ms(l),v=Fs(l),x={a:M,A:F,b:$,B:N,c:null,d:D1,e:D1,f:VH,g:nU,G:oU,H:UH,I:YH,j:GH,L:f2,m:XH,M:KH,p:W,q:U,Q:N1,s:z1,S:ZH,u:QH,U:JH,V:tU,w:eU,W:rU,x:null,X:null,y:iU,Y:aU,Z:sU,"%":j1},w={a:Q,A:it,b:nt,B:vt,c:null,d:R1,e:R1,f:uU,g:CU,G:SU,H:lU,I:cU,j:hU,L:p2,m:fU,M:dU,p:Pt,q:Et,Q:N1,s:z1,S:pU,u:gU,U:yU,V:mU,w:vU,W:bU,x:null,X:null,y:xU,Y:wU,Z:kU,"%":j1},b={a:L,A:P,b:I,B:D,c:_,d:F1,e:F1,f:zH,g:M1,G:L1,H:I1,I:I1,j:DH,L:NH,m:IH,M:RH,p:E,q:FH,Q:qH,s:HH,S:jH,u:$H,U:EH,V:PH,w:BH,W:LH,x:B,X:O,y:M1,Y:L1,Z:MH,"%":WH};x.x=C(r,x),x.X=C(i,x),x.c=C(t,x),w.x=C(r,w),w.X=C(i,w),w.c=C(t,w);function C(et,Z){return function(K){var G=[],ht=-1,Bt=0,bt=et.length,Gt,pe,ue;for(K instanceof Date||(K=new Date(+K));++ht<bt;)et.charCodeAt(ht)===37&&(G.push(et.slice(Bt,ht)),(pe=P1[Gt=et.charAt(++ht)])!=null?Gt=et.charAt(++ht):pe=Gt==="e"?" ":"0",(ue=Z[Gt])&&(Gt=ue(K,pe)),G.push(Gt),Bt=ht+1);return G.push(et.slice(Bt,ht)),G.join("")}}function k(et,Z){return function(K){var G=Ls(1900,void 0,1),ht=T(G,et,K+="",0),Bt,bt;if(ht!=K.length)return null;if("Q"in G)return new Date(G.Q);if("s"in G)return new Date(G.s*1e3+("L"in G?G.L:0));if(Z&&!("Z"in G)&&(G.Z=0),"p"in G&&(G.H=G.H%12+G.p*12),G.m===void 0&&(G.m="q"in G?G.q:0),"V"in G){if(G.V<1||G.V>53)return null;"w"in G||(G.w=1),"Z"in G?(Bt=Sp(Ls(G.y,0,1)),bt=Bt.getUTCDay(),Bt=bt>4||bt===0?nu.ceil(Bt):nu(Bt),Bt=Vf.offset(Bt,(G.V-1)*7),G.y=Bt.getUTCFullYear(),G.m=Bt.getUTCMonth(),G.d=Bt.getUTCDate()+(G.w+6)%7):(Bt=wp(Ls(G.y,0,1)),bt=Bt.getDay(),Bt=bt>4||bt===0?iu.ceil(Bt):iu(Bt),Bt=vc.offset(Bt,(G.V-1)*7),G.y=Bt.getFullYear(),G.m=Bt.getMonth(),G.d=Bt.getDate()+(G.w+6)%7)}else("W"in G||"U"in G)&&("w"in G||(G.w="u"in G?G.u%7:"W"in G?1:0),bt="Z"in G?Sp(Ls(G.y,0,1)).getUTCDay():wp(Ls(G.y,0,1)).getDay(),G.m=0,G.d="W"
vendor: 4,602 bytes, line 23
23in G?(G.w+6)%7+G.W*7-(bt+5)%7:G.w+G.U*7-(bt+6)%7);return"Z"in G?(G.H+=G.Z/100|0,G.M+=G.Z%100,Sp(G)):wp(G)}}function T(et,Z,K,G){for(var ht=0,Bt=Z.length,bt=K.length,Gt,pe;ht<Bt;){if(G>=bt)return-1;if(Gt=Z.charCodeAt(ht++),Gt===37){if(Gt=Z.charAt(ht++),pe=b[Gt in P1?Z.charAt(ht++):Gt],!pe||(G=pe(et,K,G))<0)return-1}else if(Gt!=K.charCodeAt(G++))return-1}return G}function E(et,Z,K){var G=c.exec(Z.slice(K));return G?(et.p=h.get(G[0].toLowerCase()),K+G[0].length):-1}function L(et,Z,K){var G=f.exec(Z.slice(K));return G?(et.w=y.get(G[0].toLowerCase()),K+G[0].length):-1}function P(et,Z,K){var G=u.exec(Z.slice(K));return G?(et.w=d.get(G[0].toLowerCase()),K+G[0].length):-1}function I(et,Z,K){var G=m.exec(Z.slice(K));return G?(et.m=v.get(G[0].toLowerCase()),K+G[0].length):-1}function D(et,Z,K){var G=p.exec(Z.slice(K));return G?(et.m=g.get(G[0].toLowerCase()),K+G[0].length):-1}function _(et,Z,K){return T(et,t,Z,K)}function B(et,Z,K){return T(et,r,Z,K)}function O(et,Z,K){return T(et,i,Z,K)}function M(et){return o[et.getDay()]}function F(et){return a[et.getDay()]}function $(et){return l[et.getMonth()]}function N(et){return s[et.getMonth()]}function W(et){return n[+(et.getHours()>=12)]}function U(et){return 1+~~(et.getMonth()/3)}function Q(et){return o[et.getUTCDay()]}function it(et){return a[et.getUTCDay()]}function nt(et){return l[et.getUTCMonth()]}function vt(et){return s[et.getUTCMonth()]}function Pt(et){return n[+(et.getUTCHours()>=12)]}function Et(et){return 1+~~(et.getUTCMonth()/3)}return{format:function(et){var Z=C(et+="",x);return Z.toString=function(){return et},Z},parse:function(et){var Z=k(et+="",!1);return Z.toString=function(){return et},Z},utcFormat:function(et){var Z=C(et+="",w);return Z.toString=function(){return et},Z},utcParse:function(et){var Z=k(et+="",!0);return Z.toString=function(){return et},Z}}}var P1={"-":"",_:" ",0:"0"},Pe=/^\s*\d+/,_H=/^%/,AH=/[\\^$*+?|[\]().{}]/g;function Nt(e,t,r){var i=e<0?"-":"",n=(i?-e:e)+"",a=n.length;return i+(a<r?new Array(r-a+1).join(t)+n:n)}function OH(e){return e.replace(AH,"\\$&")}function Ms(e){return new RegExp("^(?:"+e.map(OH).join("|")+")","i")}function Fs(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function BH(e,t,r){var i=Pe.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function $H(e,t,r){var i=Pe.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function EH(e,t,r){var i=Pe.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function PH(e,t,r){var i=Pe.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function LH(e,t,r){var i=Pe.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function L1(e,t,r){var i=Pe.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function M1(e,t,r){var i=Pe.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function MH(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function FH(e,t,r){var i=Pe.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function IH(e,t,r){var i=Pe.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function F1(e,t,r){var i=Pe.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function DH(e,t,r){var i=Pe.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function I1(e,t,r){var i=Pe.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function RH(e,t,r){var i=Pe.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function jH(e,t,r){var i=Pe.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function NH(e,t,r){var i=Pe.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function zH(e,t,r){var i=Pe.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function WH(e,t,r){var i=_H.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function qH(e,t,r){var i=Pe.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function HH(e,t,r){var i=Pe.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function D1(e,t){return Nt(e.getDate(),t,2)}function UH(e,t){return Nt(e.getHours(),t,2)}function YH(e,t){return Nt(e.getHours()%12||12,t,2)}function GH(e,t){return Nt(1+vc.count(Yi(e),e),t,3)}function f2(e,t){return Nt(e.getMilliseconds(),t,3)}function VH(e,t){return f2(e,t)+"000"}function XH(e,t){return Nt(e.getMonth()+1,t,2)}function KH(e,t){return Nt(e.getMinutes(),t,2)}function ZH(e,t){return Nt(e.getSeconds(),t,2)}function QH(e){var t=e.getDay();return t===0?7:t}function JH(e,t){return Nt(Xf.count(Yi(e)-1,e),t,2)}function d2(e){var t=e.getDay();return t>=4||t===0?Oo(e):Oo.ceil(e)}
23function tU(e,t){return e=d2(e),Nt(Oo.count(Yi(e),e)+(Yi(e).getDay()===4),t,2)}function eU(e){return e.getDay()}function rU(e,t){return Nt(iu.count(Yi(e)-1,e),t,2)}function iU(e,t){return Nt(e.getFullYear()%100,t,2)}function nU(e,t){return e=d2(e),Nt(e.getFullYear()%100,t,2)}function aU(e,t){return Nt(e.getFullYear()%1e4,t,4)}function oU(e,t){var r=e.getDay();return e=r>=4||r===0?Oo(e):Oo.ceil(e),Nt(e.getFullYear()%1e4,t,4)}function sU(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Nt(t/60|0,"0",2)+Nt(t%60,"0",2)}function R1(e,t){return Nt(e.getUTCDate(),t,2)}function lU(e,t){return Nt(e.getUTCHours(),t,2)}function cU(e,t){return Nt(e.getUTCHours()%12||12,t,2)}function hU(e,t){return Nt(1+Vf.count(Gi(e),e),t,3)}function p2(e,t){return Nt(e.getUTCMilliseconds(),t,3)}function uU(e,t){return p2(e,t)+"000"}function fU(e,t){return Nt(e.getUTCMonth()+1,t,2)}function dU(e,t){return Nt(e.getUTCMinutes(),t,2)}function pU(e,t){return Nt(e.getUTCSeconds(),t,2)}function gU(e){var t=e.getUTCDay();return t===0?7:t}function yU(e,t){return Nt(Kf.count(Gi(e)-1,e),t,2)}function g2(e){var t=e.getUTCDay();return t>=4||t===0?Bo(e):Bo.ceil(e)}function mU(e,t){return e=g2(e),Nt(Bo.count(Gi(e),e)+(Gi(e).getUTCDay()===4),t,2)}function vU(e){return e.getUTCDay()}function bU(e,t){return Nt(nu.count(Gi(e)-1,e),t,2)}function xU(e,t){return Nt(e.getUTCFullYear()%100,t,2)}function CU(e,t){return e=g2(e),Nt(e.getUTCFullYear()%100,t,2)}function wU(e,t){return Nt(e.getUTCFullYear()%1e4,t,4)}function SU(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Bo(e):Bo.ceil(e),Nt(e.getUTCFullYear()%1e4,t,4)}function kU(){return"+0000"}function j1(){return"%"}function N1(e){return+e}function z1(e){return Math.floor(+e/1e3)}var Ia,y2,m2;TU({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function TU(e){return Ia=TH(e),y2=Ia.format,Ia.parse,m2=Ia.utcFormat,Ia.utcParse,Ia}function _U(e){return new Date(e)}function AU(e){return e instanceof Date?+e:+new Date(+e)}function Pv(e,t,r,i,n,a,o,s,l,c){var h=vv(),u=h.invert,d=h.domain,f=c(".%L"),y=c(":%S"),p=c("%I:%M"),g=c("%I %p"),m=c("%a %d"),v=c("%b %d"),x=c("%B"),w=c("%Y");function b(C){return(l(C)<C?f:s(C)<C?y:o(C)<C?p:a(C)<C?g:i(C)<C?n(C)<C?m:v:r(C)<C?x:w)(C)}return h.invert=function(C){return new Date(u(C))},h.domain=function(C){return arguments.length?d(Array.from(C,AU)):d().map(_U)},h.ticks=function(C){var k=d();return e(k[0],k[k.length-1],C??10)},h.tickFormat=function(C,k){return k==null?b:c(k)},h.nice=function(C){var k=d();return(!C||typeof C.range!="function")&&(C=t(k[0],k[k.length-1],C??10)),C?d(i2(k,C)):h},h.copy=function(){return mc(h,Pv(e,t,r,i,n,a,o,s,l,c))},h}function OU(){return Mr.apply(Pv(SH,kH,Yi,$v,Xf,vc,Ov,_v,Xn,y2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function BU(){return Mr.apply(Pv(CH,wH,Gi,Ev,Kf,Vf,Bv,Av,Xn,m2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Zf(){var e=0,t=1,r,i,n,a,o=er,s=!1,l;function c(u){return u==null||isNaN(u=+u)?l:o(n===0?.5:(u=(a(u)-r)*n,s?Math.max(0,Math.min(1,u)):u))}c.domain=function(u){return arguments.length?([e,t]=u,r=a(e=+e),i=a(t=+t),n=r===i?0:1/(i-r),c):[e,t]},c.clamp=function(u){return arguments.length?(s=!!u,c):s},c.interpolator=function(u){return arguments.length?(o=u,c):o};function h(u){return function(d){var f,y;return arguments.length?([f,y]=d,o=u(f,y),c):[o(0),o(1)]}}return c.range=h(ms),c.rangeRound=h(mv),c.unknown=function(u){return arguments.length?(l=u,c):l},function(u){return a=u,r=u(e),i=u(t),n=r===i?0:1/(i-r),c}}function En(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function v2(){var e=$n(Zf()(er));return e.copy=function(){return En(e,v2())},Ji.apply(e,arguments)}function b2(){var e=Cv(Zf()).domain([1,10]);return e.copy=function(){return En(e,b2()).base(e.base())},Ji.apply(e,arguments)}function x2(){var e=wv(Zf());return e.copy=function(){return En(e,x2()).constant(e.constant())},Ji.apply(e,arguments)}function Lv(){var e=Sv(Zf());return e.copy=function(){return En(e,Lv()).exponent(e.exponent())},Ji.apply(e,arguments)}function $U(){return Lv.apply(null,arguments).exponent(.5)}function C2(){var e=[],t=er;function r(i){if(i!=null&&!isNaN(i=+i))return t((gc(e,i,1)-1)/(e.length-1))}return r.domain=function(i){if(!arguments.length)return e.slice();e=[];for(let n of i)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(vn),r},r.interpolator=function(i){return arguments.length?(t=i,r):t},r.range=function(){return e.map((i,n)=>t(n/(e.length-1)))},r.quantiles=function(i){return Array.from({length:i+1},(n,a)=>n9(e,a/i))},r.copy=function(){return C2(t).domain(e)},Ji.apply(r,arguments)}function Qf(){var e=0,t=.5,r=1,i=1,n,a,o,s,l,c=er,h,u=!1,d;function f(p){return isNaN(p=+p)?d:(p=.5+((p=+h(p))-a)*(i*p<i*a?s:l),c(u?Math.max(0,Math.min(1,p)):p))}f.domain=function(p){return arguments.length?([e,t,r]=p,n=h(e=+e),a=h(t=+t),o=h(r=+r),s=n===a?0:.5/(a-n),l=a===o?0:.5/(o-a),i=a<n?-1:1,f):[e,t,r]},f.clamp=function(p){return arguments.length?(u=!!p,f):u},f.interpolator=function(p){return arguments.length?(c=p,f):c};function y(p){return function(g){var m,v,x;return arguments.length?([m,v,x]=g,c=W9(p,[m,v,x]),f):[c(0),c(.5),c(1)]}}return f.range=y(ms),f.rangeRound=y(mv),f.unknown=function(p){return arguments.length?(d=p,f):d},function(p){return h=p,n=p(e),a=p(t),o=p(r),s=n===a?0:.5/(a-n),l=a===o?0:.5/(o-a),i=a<n?-1:1,f}}function w2(){var e=$n(Qf()(er));return e.copy=function(){return En(e,w2())},Ji.apply(e,arguments)}function S2(){var e=Cv(Qf()).domain([.1,1,10]);return e.copy=function(){return En(e,S2()).base(e.base())},Ji.apply(e,arguments)}function k2(){var e=wv(Qf());return e.copy=function(){return En(e,k2()).constant(e.constant())},Ji.apply(e,arguments)}function Mv(){var e=Sv(Qf());return e.copy=function(){return En(e,Mv()).exponent(e.exponent())},Ji.apply(e,arguments)}function EU(){return Mv.apply(null,arguments).exponent(.5)}const W1=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Al,scaleDiverging:w2,scaleDivergingLog:S2,scaleDivergingPow:Mv,scaleDivergingSqrt:EU,scaleDivergingSymlog:k2,scaleIdentity:r2,scaleImplicit:$g,scaleLinear:eu,scaleLog:n2,scaleOrdinal:yv,scalePoint:al,scalePow:kv,scaleQuantile:s2,scaleQuantize:l2,scaleRadial:o2,scaleSequential:v2,scaleSequentialLog:b2,scaleSequentialPow:Lv,scaleSequentialQuantile:C2,scaleSequentialSqrt:$U,scaleSequentialSymlog:x2,scaleSqrt:uH,scaleSymlog:a2,scaleThreshold:c2,scaleTime:OU,scaleUtc:BU,tickFormat:e2},Symbol.toStringTag,{value:"Module"}));var PU=ss;function LU(e,t,r){for(var i=-1,n=e.length;++i<n;){var a=e[i],o=t(a);if(o!=null&&(s===void 0?o===o&&!PU(o):r(o,s)))var s=o,l=a}return l}var Jf=LU;function MU(e,t){return e>t}var T2=MU,FU=Jf,IU=T2,DU=ys;function RU(e){return e&&e.length?FU(e,DU,IU):void 0}var jU=RU;const un=Ut(jU);function NU(e,t){return e<t}var _2=NU,zU=Jf,WU=_2,qU=ys;function HU(e){return e&&e.length?zU(e,qU,WU):void 0}var UU=HU;const td=Ut(UU);var YU=Cf,GU=vi,VU=ST,XU=sr;function KU(e,t){var r=XU(e)?YU:VU;return r(e,GU(t))}var ZU=KU,QU=uv,JU=ZU;function tY(e,t){return QU(JU(e,t),1)}var eY=tY;const rY=Ut(eY);var iY=hv;function nY(e,t){return iY(e,t)}var aY=nY;const Vi=Ut(aY);
vendor: 77,585 bytes, lines 23-56
23var vs=1e9,oY={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Iv,ae=!0,Er="[DecimalError] ",ra=Er+"Invalid argument: ",Fv=Er+"Exponent out of range: ",bs=Math.floor,Hn=Math.pow,sY=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,yr,Oe=1e7,ie=7,A2=9007199254740991,au=bs(A2/ie),st={};st.absoluteValue=st.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};st.comparedTo=st.cmp=function(e){var t,r,i,n,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(i=a.d.length,n=e.d.length,t=0,r=i<n?i:n;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return i===n?0:i>n^a.s<0?1:-1};st.decimalPlaces=st.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ie;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};st.dividedBy=st.div=function(e){return ji(this,new this.constructor(e))};st.dividedToIntegerBy=st.idiv=function(e){var t=this,r=t.constructor;return Kt(ji(t,new r(e),0,1),r.precision)};st.equals=st.eq=function(e){return!this.cmp(e)};st.exponent=function(){return me(this)};st.greaterThan=st.gt=function(e){return this.cmp(e)>0};st.greaterThanOrEqualTo=st.gte=function(e){return this.cmp(e)>=0};st.isInteger=st.isint=function(){return this.e>this.d.length-2};st.isNegative=st.isneg=function(){return this.s<0};st.isPositive=st.ispos=function(){return this.s>0};st.isZero=function(){return this.s===0};st.lessThan=st.lt=function(e){return this.cmp(e)<0};st.lessThanOrEqualTo=st.lte=function(e){return this.cmp(e)<1};st.logarithm=st.log=function(e){var t,r=this,i=r.constructor,n=i.precision,a=n+5;if(e===void 0)e=new i(10);else if(e=new i(e),e.s<1||e.eq(yr))throw Error(Er+"NaN");if(r.s<1)throw Error(Er+(r.s?"NaN":"-Infinity"));return r.eq(yr)?new i(0):(ae=!1,t=ji(El(r,a),El(e,a),a),ae=!0,Kt(t,n))};st.minus=st.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$2(t,e):O2(t,(e.s=-e.s,e))};st.modulo=st.mod=function(e){var t,r=this,i=r.constructor,n=i.precision;if(e=new i(e),!e.s)throw Error(Er+"NaN");return r.s?(ae=!1,t=ji(r,e,0,1).times(e),ae=!0,r.minus(t)):Kt(new i(r),n)};st.naturalExponential=st.exp=function(){return B2(this)};st.naturalLogarithm=st.ln=function(){return El(this)};st.negated=st.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};st.plus=st.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O2(t,e):$2(t,(e.s=-e.s,e))};st.precision=st.sd=function(e){var t,r,i,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ra+e);if(t=me(n)+1,i=n.d.length-1,r=i*ie+1,i=n.d[i],i){for(;i%10==0;i/=10)r--;for(i=n.d[0];i>=10;i/=10)r++}return e&&t>r?t:r};st.squareRoot=st.sqrt=function(){var e,t,r,i,n,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Er+"NaN")}for(e=me(s),ae=!1,n=Math.sqrt(+s),n==0||n==1/0?(t=ui(s.d),(t.length+e)%2==0&&(t+="0"),n=Math.sqrt(t),e=bs((e+1)/2)-(e<0||e%2),n==1/0?t="5e"+e:(t=n.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),i=new l(t)):i=new l(n.toString()),r=l.precision,n=o=r+3;;)if(a=i,i=a.plus(ji(s,a,o+2)).times(.5),ui(a.d).slice(0,o)===(t=ui(i.d)).slice(0,o)){if(t=t.slice(o-3,o+1),n==o&&t=="4999"){if(Kt(a,r+1,0),a.times(a).eq(s)){i=a;break}}else if(t!="9999")break;o+=4}return ae=!0,Kt(i,r)};st.times=st.mul=function(e){var t,r,i,n,a,o,s,l,c,h=this,u=h.constructor,d=h.d,f=(e=new u(e)).d;if(!h.s||!e.s)return new u(0);for(e.s*=h.s,r=h.e+e.e,l=d.length,c=f.length,l<c&&(a=d,d=f,f=a,o=l,l=c,c=o),a=[],o=l+c,i=o;i--;)a.push(0);for(i=c;--i>=0;){for(t=0,n=l+i;n>i;)s=a[n]+f[i]*d[n-i-1]+t,a[n--]=s%Oe|0,t=s/Oe|0;a[n]=(a[n]+t)%Oe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ae?Kt(e,u.precision):e};st.toDecimalPlaces=st.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(yi(e,0,vs),t===void 0?t=i.rounding:yi(t,0,8),Kt(r,e+me(r)+1,t))};st.toExponential=function(e,t){var r,i=this,n=i.constructor;return e===void 0?r=sa(i,!0):(yi(e,0,vs),t===void 0?t=n.rounding:yi(t,0,8),i=Kt(new n(i),e+1,t),r=sa(i,!0,e+1)),r};st.toFixed=function(e,t){var r,i,n=this,a=n.constructor;return e===void 0?sa(n):(yi(e,0,vs),t===void 0?t=a.rounding:yi(t,0,8),i=Kt(new a(n),e+me(n)+1,t),r=sa(i.abs(),!1,e+me(i)+1),n.isneg()&&!n.isZero()?"-"+r:r)};st.toInteger=st.toint=function(){var e=this,t=e.constructor;return Kt(new t(e),me(e)+1,t.rounding)};st.toNumber=function(){return+this};st.toPower=st.pow=function(e){var t,r,i,n,a,o,s=this,l=s.constructor,c=12,h=+(e=new l(e));if(!e.s)return new l(yr);if(s=new l(s),!s.s){if(e.s<1)throw Error(Er+"Infinity");return s}if(s.eq(yr))return s;if(i=l.precision,e.eq(yr))return Kt(s,i);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=h<0?-h:h)<=A2){for(n=new l(yr),t=Math.ceil(i/ie+4),ae=!1;r%2&&(n=n.times(s),H1(n.d,t)),r=bs(r/2),r!==0;)s=s.times(s),H1(s.d,t);return ae=!0,e.s<0?new l(yr).div(n):Kt(n,i)}}else if(a<0)throw Error(Er+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ae=!1,n=e.times(El(s,i+c)),ae=!0,n=B2(n),n.s=a,n};st.toPrecision=function(e,t){var r,i,n=this,a=n.constructor;return e===void 0?(r=me(n),i=sa(n,r<=a.toExpNeg||r>=a.toExpPos)):(yi(e,1,vs),t===void 0?t=a.rounding:yi(t,0,8),n=Kt(new a(n),e,t),r=me(n),i=sa(n,e<=r||r<=a.toExpNeg,e)),i};st.toSignificantDigits=st.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(yi(e,1,vs),t===void 0?t=i.rounding:yi(t,0,8)),Kt(new i(r),e,t)};st.toString=st.valueOf=st.val=st.toJSON=st[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=me(e),r=e.constructor;return sa(e,t<=r.toExpNeg||t>=r.toExpPos)};function O2(e,t){var r,i,n,a,o,s,l,c,h=e.constructor,u=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),ae?Kt(t,u):t;if(l=e.d,c=t.d,o=e.e,n=t.e,l=l.slice(),a=o-n,a){for(a<0?(i=l,a=-a,s=c.length):(i=c,n=o,s=l.length),o=Math.ceil(u/ie),s=o>s?o+1:s+1,a>s&&(a=s,i.length=1),i.reverse();a--;)i.push(0);i.reverse()}for(s=l.length,a=c.length,s-a<0&&(a=s,i=c,c=l,l=i),r=0;a;)r=(l[--a]=l[a]+c[a]+r)/Oe|0,l[a]%=Oe;for(r&&(l.unshift(r),++n),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=n,ae?Kt(t,u):t}function yi(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ra+e)}function ui(e){var t,r,i,n=e.length-1,a="",o=e[0];if(n>0){for(a+=o,t=1;t<n;t++)i=e[t]+"",r=ie-i.length,r&&(a+=cn(r)),a+=i;o=e[t],i=o+"",r=ie-i.length,r&&(a+=cn(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ji=function(){function e(i,n){var a,o=0,s=i.length;for(i=i.slice();s--;)a=i[s]*n+o,i[s]=a%Oe|0,o=a/Oe|0;return o&&i.unshift(o),i}function t(i,n,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(i[s]!=n[s]){l=i[s]>n[s]?1:-1;break}return l}function r(i,n,a){for(var o=0;a--;)i[a]-=o,o=i[a]<n[a]?1:0,i[a]=o*Oe+i[a]-n[a];for(;!i[0]&&i.length>1;)i.shift()}return function(i,n,a,o){var s,l,c,h,u,d,f,y,p,g,m,v,x,w,b,C,k,T,E=i.constructor,L=i.s==n.s?1:-1,P=i.d,I=n.d;if(!i.s)return new E(i);if(!n.s)throw Error(Er+"Division by zero");for(l=i.e-n.e,k=I.length,b=P.length,f=new E(L),y=f.d=[],c=0;I[c]==(P[c]||0);)++c;if(I[c]>(P[c]||0)&&--l,a==null?v=a=E.precision:o?v=a+(me(i)-me(n))+1:v=a,v<0)return new E(0);if(v=v/ie+2|0,c=0,k==1)for(h=0,I=I[0],v++;(c<b||h)&&v--;c++)x=h*Oe+(P[c]||0),y[c]=x/I|0,h=x%I|0;else{for(h=Oe/(I[0]+1)|0,h>1&&(I=e(I,h),P=e(P,h),k=I.length,b=P.length),w=k,p=P.slice(0,k),g=p.length;g<k;)p[g++]=0;T=I.slice(),T.unshift(0),C=I[0],I[1]>=Oe/2&&++C;do h=0,s=t(I,p,k,g),s<0?(m=p[0],k!=g&&(m=m*Oe+(p[1]||0)),h=m/C|0,h>1?(h>=Oe&&(h=Oe-1),u=e(I,h),d=u.length,g=p.length,s=t(u,p,d,g),s==1&&(h--,r(u,k<d?T:I,d))):(h==0&&(s=h=1),u=I.slice()),d=u.length,d<g&&u.unshift(0),r(p,u,g),s==-1&&(g=p.length,s=t(I,p,k,g),s<1&&(h++,r(p,k<g?T:I,g))),g=p.length):s===0&&(h++,p=[0]),y[c++]=h,s&&p[0]?p[g++]=P[w]||0:(p=[P[w]],g=1);while((w++<b||p[0]!==void 0)&&v--)}return y[0]||y.shift(),f.e=l,Kt(f,o?a+me(f)+1:a)}}();function B2(e,t){var r,i,n,a,o,s,l=0,c=0,h=e.constructor,u=h.precision;if(me(e)>16)throw Error(Fv+me(e));if(!e.s)return new h(yr);for(ae=!1,s=u,o=new h(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(i=Math.log(Hn(2,c))/Math.LN10*2+5|0,s+=i,r=n=a=new h(yr),h.precision=s;;){if(n=Kt(n.times(e),s),r=r.times(++l),o=a.plus(ji(n,r,s)),ui(o.d).slice(0,s)===ui(a.d).slice(0,s)){for(;c--;)a=Kt(a.times(a),s);return h.precision=u,t==null?(ae=!0,Kt(a,u)):a}a=o}}function me(e){for(var t=e.e*ie,r=e.d[0];r>=10;r/=10)t++;return t}function kp(e,t,r){if(t>e.LN10.sd())throw ae=!0,r&&(e.precision=r),Error(Er+"LN10 precision limit exceeded");return Kt(new e(e.LN10),t)}function cn(e){for(var t="";e--;)t+="0";return t}function El(e,t){var r,i,n,a,o,s,l,c,h,u=1,d=10,f=e,y=f.d,p=f.constructor,g=p.precision;if(f.s<1)throw Error(Er+(f.s?"NaN":"-Infinity"));if(f.eq(yr))return new p(0);if(t==null?(ae=!1,c=g):c=t,f.eq(10))return t==null&&(ae=!0),kp(p,c);if(c+=d,p.precision=c,r=ui(y),i=r.charAt(0),a=me(f),Math.abs(a)<15e14){for(;i<7&&i!=1||i==1&&r.charAt(1)>3;)f=f.times(e),r=ui(f.d),i=r.charAt(0),u++;a=me(f),i>1?(f=new p("0."+r),a++):f=new p(i+"."+r.slice(1))}else return l=kp(p,c+2,g).times(a+""),f=El(new p(i+"."+r.slice(1)),c-d).plus(l),p.precision=g,t==null?(ae=!0,Kt(f,g)):f;for(s=o=f=ji(f.minus(yr),f.plus(yr),c),h=Kt(f.times(f),c),n=3;;){if(o=Kt(o.times(h),c),l=s.plus(ji(o,new p(n),c)),ui(l.d).slice(0,c)===ui(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(kp(p,c+2,g).times(a+""))),s=ji(s,new p(u),c),p.precision=g,t==null?(ae=!0,Kt(s,g)):s;s=l,n+=2}}function q1(e,t){var r,i,n;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(r<0&&(r=i),r+=+t.slice(i+1),t=t.substring(0,i)):r<0&&(r=t.length),i=0;t.charCodeAt(i)===48;)++i;for(n=t.length;t.charCodeAt(n-1)===48;)--n;if(t=t.slice(i,n),t){if(n-=i,r=r-i-1,e.e=bs(r/ie),e.d=[],i=(r+1)%ie,r<0&&(i+=ie),i<n){for(i&&e.d.push(+t.slice(0,i)),n-=ie;i<n;)e.d.push(+t.slice(i,i+=ie));t=t.slice(i),i=ie-t.length}else i-=n;for(;i--;)t+="0";if(e.d.push(+t),ae&&(e.e>au||e.e<-au))throw Error(Fv+r)}else e.s=0,e.e=0,e.d=[0];return e}function Kt(e,t,r){var i,n,a,o,s,l,c,h,u=e.d;for(o=1,a=u[0];a>=10;a/=10)o++;if(i=t-o,i<0)i+=ie,n=t,c=u[h=0];else{if(h=Math.ceil((i+1)/ie),a=u.length,h>=a)return e;for(c=a=u[h],o=1;a>=10;a/=10)o++;i%=ie,n=i-ie+o}if(r!==void 0&&(a=Hn(10,o-n-1),s=c/a%10|0,l=t<0||u[h+1]!==void 0||c%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(i>0?n>0?c/Hn(10,o-n):0:u[h-1])%10&1||r==(e.s<0?8:7))),t<1||!u[0])return l?(a=me(e),u.length=1,t=t-a-1,u[0]=Hn(10,(ie-t%ie)%ie),e.e=bs(-t/ie)||0):(u.length=1,u[0]=e.e=e.s=0),e;if(i==0?(u.length=h,a=1,h--):(u.length=h+1,a=Hn(10,ie-i),u[h]=n>0?(c/Hn(10,o-n)%Hn(10,n)|0)*a:0),l)for(;;)if(h==0){(u[0]+=a)==Oe&&(u[0]=1,++e.e);break}else{if(u[h]+=a,u[h]!=Oe)break;u[h--]=0,a=1}for(i=u.length;u[--i]===0;)u.pop();if(ae&&(e.e>au||e.e<-au))throw Error(Fv+me(e));return e}function $2(e,t){var r,i,n,a,o,s,l,c,h,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ae?Kt(t,f):t;if(l=e.d,u=t.d,i=t.e,c=e.e,l=l.slice(),o=c-i,o){for(h=o<0,h?(r=l,o=-o,s=u.length):(r=u,i=c,s=l.length),n=Math.max(Math.ceil(f/ie),s)+2,o>n&&(o=n,r.length=1),r.reverse(),n=o;n--;)r.push(0);r.reverse()}else{for(n=l.length,s=u.length,h=n<s,h&&(s=n),n=0;n<s;n++)if(l[n]!=u[n]){h=l[n]<u[n];break}o=0}for(h&&(r=l,l=u,u=r,t.s=-t.s),s=l.length,n=u.length-s;n>0;--n)l[s++]=0;for(n=u.length;n>o;){if(l[--n]<u[n]){for(a=n;a&&l[--a]===0;)l[a]=Oe-1;--l[a],l[n]+=Oe}l[n]-=u[n]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--i;return l[0]?(t.d=l,t.e=i,ae?Kt(t,f):t):new d(0)}function sa(e,t,r){var i,n=me(e),a=ui(e.d),o=a.length;return t?(r&&(i=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+cn(i):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(n<0?"e":"e+")+n):n<0?(a="0."+cn(-n-1)+a,r&&(i=r-o)>0&&(a+=cn(i))):n>=o?(a+=cn(n+1-o),r&&(i=r-n-1)>0&&(a=a+"."+cn(i))):((i=n+1)<o&&(a=a.slice(0,i)+"."+a.slice(i)),r&&(i=r-o)>0&&(n+1===o&&(a+="."),a+=cn(i))),e.s<0?"-"+a:a}function H1(e,t){if(e.length>t)return e.length=t,!0}function E2(e){var t,r,i;function n(a){var o=this;if(!(o instanceof n))return new n(a);if(o.constructor=n,a instanceof n){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(ra+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return q1(o,a.toString())}else if(typeof a!="string")throw Error(ra+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,sY.test(a))q1(o,a);else throw Error(ra+a)}if(n.prototype=st,n.ROUND_UP=0,n.ROUND_DOWN=1,n.ROUND_CEIL=2,n.ROUND_FLOOR=3,n.ROUND_HALF_UP=4,n.ROUND_HALF_DOWN=5,n.ROUND_HALF_EVEN=6,n.ROUND_HALF_CEIL=7,n.ROUND_HALF_FLOOR=8,n.clone=E2,n.config=n.set=lY,e===void 0&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<i.length;)e.hasOwnProperty(r=i[t++])||(e[r]=this[r]);return n.config(e),n}function lY(e){if(!e||typeof e!="object")throw Error(Er+"Object expected");var t,r,i,n=["precision",1,vs,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<n.length;t+=3)if((i=e[r=n[t]])!==void 0)if(bs(i)===i&&i>=n[t+1]&&i<=n[t+2])this[r]=i;else throw Error(ra+r+": "+i);if((i=e[r="LN10"])!==void 0)if(i==Math.LN10)this[r]=new this(i);else throw Error(ra+r+": "+i);return this}var Iv=E2(oY);yr=new Iv(1);const Xt=Iv;function cY(e){return dY(e)||fY(e)||uY(e)||hY()}function hY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uY(e,t){if(e){if(typeof e=="string")return Ig(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ig(e,t)}}function fY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function dY(e){if(Array.isArray(e))return Ig(e)}function Ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}var pY=function(t){return t},P2={},L2=function(t){return t===P2},U1=function(t){return function r(){return arguments.length===0||arguments.length===1&&L2(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},gY=function e(t,r){return t===1?r:U1(function(){for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];var o=n.filter(function(s){return s!==P2}).length;return o>=t?r.apply(void 0,n):e(t-o,U1(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var h=n.map(function(u){return L2(u)?l.shift():u});return r.apply(void 0,cY(h).concat(l))}))})},ed=function(t){return gY(t.length,t)},Dg=function(t,r){for(var i=[],n=t;n<r;++n)i[n-t]=n;return i},yY=ed(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),mY=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];if(!r.length)return pY;var n=r.reverse(),a=n[0],o=n.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},Rg=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},M2=function(t){var r=null,i=null;return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,i=t.apply(void 0,a)),i}};function vY(e){var t;return e===0?t=1:t=Math.floor(new Xt(e).abs().log(10).toNumber())+1,t}function bY(e,t,r){for(var i=new Xt(e),n=0,a=[];i.lt(t)&&n<1e5;)a.push(i.toNumber()),i=i.add(r),n++;return a}var xY=ed(function(e,t,r){var i=+e,n=+t;return i+r*(n-i)}),CY=ed(function(e,t,r){var i=t-+e;return i=i||1/0,(r-e)/i}),wY=ed(function(e,t,r){var i=t-+e;return i=i||1/0,Math.max(0,Math.min(1,(r-e)/i))});const rd={rangeStep:bY,getDigitCount:vY,interpolateNumber:xY,uninterpolateNumber:CY,uninterpolateTruncation:wY};function jg(e){return TY(e)||kY(e)||F2(e)||SY()}function SY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function TY(e){if(Array.isArray(e))return Ng(e)}function Pl(e,t){return OY(e)||AY(e,t)||F2(e,t)||_Y()}function _Y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
26In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F2(e,t){if(e){if(typeof e=="string")return Ng(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ng(e,t)}}function Ng(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function AY(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],i=!0,n=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){n=!0,a=l}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw a}}return r}}function OY(e){if(Array.isArray(e))return e}function I2(e){var t=Pl(e,2),r=t[0],i=t[1],n=r,a=i;return r>i&&(n=i,a=r),[n,a]}function D2(e,t,r){if(e.lte(0))return new Xt(0);var i=rd.getDigitCount(e.toNumber()),n=new Xt(10).pow(i),a=e.div(n),o=i!==1?.05:.1,s=new Xt(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(n);return t?l:new Xt(Math.ceil(l))}function BY(e,t,r){var i=1,n=new Xt(e);if(!n.isint()&&r){var a=Math.abs(e);a<1?(i=new Xt(10).pow(rd.getDigitCount(e)-1),n=new Xt(Math.floor(n.div(i).toNumber())).mul(i)):a>1&&(n=new Xt(Math.floor(e)))}else e===0?n=new Xt(Math.floor((t-1)/2)):r||(n=new Xt(Math.floor(e)));var o=Math.floor((t-1)/2),s=mY(yY(function(l){return n.add(new Xt(l-o).mul(i)).toNumber()}),Dg);return s(0,t)}function R2(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Xt(0),tickMin:new Xt(0),tickMax:new Xt(0)};var a=D2(new Xt(t).sub(e).div(r-1),i,n),o;e<=0&&t>=0?o=new Xt(0):(o=new Xt(e).add(t).div(2),o=o.sub(new Xt(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Xt(t).sub(o).div(a).toNumber()),c=s+l+1;return c>r?R2(e,t,r,i,n+1):(c<r&&(l=t>0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:a,tickMin:o.sub(new Xt(s).mul(a)),tickMax:o.add(new Xt(l).mul(a))})}function $Y(e){var t=Pl(e,2),r=t[0],i=t[1],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(n,2),s=I2([r,i]),l=Pl(s,2),c=l[0],h=l[1];if(c===-1/0||h===1/0){var u=h===1/0?[c].concat(jg(Dg(0,n-1).map(function(){return 1/0}))):[].concat(jg(Dg(0,n-1).map(function(){return-1/0})),[h]);return r>i?Rg(u):u}if(c===h)return BY(c,n,a);var d=R2(c,h,o,a),f=d.step,y=d.tickMin,p=d.tickMax,g=rd.rangeStep(y,p.add(new Xt(.1).mul(f)),f);return r>i?Rg(g):g}function EY(e,t){var r=Pl(e,2),i=r[0],n=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=I2([i,n]),s=Pl(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[i,n];if(l===c)return[l];var h=Math.max(t,2),u=D2(new Xt(c).sub(l).div(h-1),a,0),d=[].concat(jg(rd.rangeStep(new Xt(l),new Xt(c).sub(new Xt(.99).mul(u)),u)),[c]);return i>n?Rg(d):d}var PY=M2($Y),LY=M2(EY),MY="Invariant failed";function la(e,t){throw new Error(MY)}var FY=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function $o(e){"@babel/helpers - typeof";return $o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$o(e)}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ou.apply(this,arguments)}function IY(e,t){return NY(e)||jY(e,t)||RY(e,t)||DY()}function DY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RY(e,t){if(e){if(typeof e=="string")return Y1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y1(e,t)}}function Y1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function jY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function NY(e){if(Array.isArray(e))return e}function zY(e,t){if(e==null)return{};var r=WY(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function WY(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function qY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HY(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,z2(i.key),i)}}function UY(e,t,r){return t&&HY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YY(e,t,r){return t=su(t),GY(e,j2()?Reflect.construct(t,r||[],su(e).constructor):t.apply(e,r))}function GY(e,t){if(t&&($o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VY(e)}function VY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j2=function(){return!!e})()}function su(e){return su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},su(e)}function XY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zg(e,t)}function zg(e,t){return zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},zg(e,t)}function N2(e,t,r){return t=z2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z2(e){var t=KY(e,"string");return $o(t)=="symbol"?t:t+""}function KY(e,t){if($o(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if($o(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xs=function(e){function t(){return qY(this,t),YY(this,t,arguments)}return XY(t,e),UY(t,[{key:"render",value:function(){var i=this.props,n=i.offset,a=i.layout,o=i.width,s=i.dataKey,l=i.data,c=i.dataPointFormatter,h=i.xAxis,u=i.yAxis,d=zY(i,FY),f=lt(d,!1);this.props.direction==="x"&&h.type!=="number"&&la();var y=l.map(function(p){var g=c(p,s),m=g.x,v=g.y,x=g.value,w=g.errorVal;if(!w)return null;var b=[],C,k;if(Array.isArray(w)){var T=IY(w,2);C=T[0],k=T[1]}else C=k=w;if(a==="vertical"){var E=h.scale,L=v+n,P=L+o,I=L-o,D=E(x-C),_=E(x+k);b.push({x1:_,y1:P,x2:_,y2:I}),b.push({x1:D,y1:L,x2:_,y2:L}),b.push({x1:D,y1:P,x2:D,y2:I})}else if(a==="horizontal"){var B=u.scale,O=m+n,M=O-o,F=O+o,$=B(x-C),N=B(x+k);b.push({x1:M,y1:N,x2:F,y2:N}),b.push({x1:O,y1:$,x2:O,y2:N}),b.push({x1:M,y1:$,x2:F,y2:$})}return R.createElement(At,ou({className:"recharts-errorBar",key:"bar-".concat(b.map(function(W){return"".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))},f),b.map(function(W){return R.createElement("line",ou({},W,{key:"line-".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))}))});return R.createElement(At,{className:"recharts-errorBars"},y)}}])}(R.Component);N2(xs,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});N2(xs,"displayName","ErrorBar");function Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}function G1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G1(Object(r),!0).forEach(function(i){ZY(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G1(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function ZY(e,t,r){return t=QY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QY(e){var t=JY(e,"string");return Ll(t)=="symbol"?t:t+""}function JY(e,t){if(Ll(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Ll(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var W2=function(t){var r=t.children,i=t.formattedGraphicalItems,n=t.legendWidth,a=t.legendContent,o=Ue(r,Ja);if(!o)return null;var s=Ja.defaultProps,l=s!==void 0?Dn(Dn({},s),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(i||[]).reduce(function(h,u){var d=u.item,f=u.props,y=f.sectors||f.data||[];return h.concat(y.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):c=(i||[]).map(function(h){var u=h.item,d=u.type.defaultProps,f=d!==void 0?Dn(Dn({},d),u.props):{},y=f.dataKey,p=f.name,g=f.legendType,m=f.hide;return{inactive:m,dataKey:y,type:l.iconType||g||"square",color:Dv(u),value:p||y,payload:f}}),Dn(Dn(Dn({},l),Ja.getWithHeight(o,n)),{},{payload:c,item:o})};function Ml(e){"@babel/helpers - typeof";return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ml(e)}function V1(e){return iG(e)||rG(e)||eG(e)||tG()}function tG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
28In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eG(e,t){if(e){if(typeof e=="string")return Wg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wg(e,t)}}function rG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iG(e){if(Array.isArray(e))return Wg(e)}function Wg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function X1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X1(Object(r),!0).forEach(function(i){io(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X1(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function io(e,t,r){return t=nG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nG(e){var t=aG(e,"string");return Ml(t)=="symbol"?t:t+""}function aG(e,t){if(Ml(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Ml(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wt(e,t,r){return yt(e)||yt(t)?r:Te(t)?fr(e,t,r):pt(t)?t(e):r}function sl(e,t,r,i){var n=rY(e,function(s){return Wt(s,t)});if(r==="number"){var a=n.filter(function(s){return tt(s)||parseFloat(s)});return a.length?[td(a),un(a)]:[1/0,-1/0]}var o=i?n.filter(function(s){return!yt(s)}):n;return o.map(function(s){return Te(s)||s instanceof Date?s:""})}var oG=function(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=i==null?void 0:i.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,c=0;c<s;c++){var h=c>0?n[c-1].coordinate:n[s-1].coordinate,u=n[c].coordinate,d=c>=s-1?n[0].coordinate:n[c+1].coordinate,f=void 0;if(Je(u-h)!==Je(d-u)){var y=[];if(Je(d-u)===Je(l[1]-l[0])){f=d;var p=u+l[1]-l[0];y[0]=Math.min(p,(p+h)/2),y[1]=Math.max(p,(p+h)/2)}else{f=h;var g=d+l[1]-l[0];y[0]=Math.min(u,(g+u)/2),y[1]=Math.max(u,(g+u)/2)}var m=[Math.min(u,(f+u)/2),Math.max(u,(f+u)/2)];if(t>m[0]&&t<=m[1]||t>=y[0]&&t<=y[1]){o=n[c].index;break}}else{var v=Math.min(h,d),x=Math.max(h,d);if(t>(v+u)/2&&t<=(x+u)/2){o=n[c].index;break}}}else for(var w=0;w<s;w++)if(w===0&&t<=(i[w].coordinate+i[w+1].coordinate)/2||w>0&&w<s-1&&t>(i[w].coordinate+i[w-1].coordinate)/2&&t<=(i[w].coordinate+i[w+1].coordinate)/2||w===s-1&&t>(i[w].coordinate+i[w-1].coordinate)/2){o=i[w].index;break}return o},Dv=function(t){var r,i=t,n=i.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(n){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},sG=function(t){var r=t.barSize,i=t.totalSize,n=t.stackGroups,a=n===void 0?{}:n;if(!a)return{};for(var o={},s=Object.keys(a),l=0,c=s.length;l<c;l++)for(var h=a[s[l]].stackGroups,u=Object.keys(h),d=0,f=u.length;d<f;d++){var y=h[u[d]],p=y.items,g=y.cateAxisId,m=p.filter(function(k){return Ri(k.type).indexOf("Bar")>=0});if(m&&m.length){var v=m[0].type.defaultProps,x=v!==void 0?he(he({},v),m[0].props):m[0].props,w=x.barSize,b=x[g];o[b]||(o[b]=[]);var C=yt(w)?r:w;o[b].push({item:m[0],stackList:m.slice(1),barSize:yt(C)?void 0:tr(C,i,0)})}}return o},lG=function(t){var r=t.barGap,i=t.barCategoryGap,n=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var c=tr(r,n,0,!0),h,u=[];if(o[0].barSize===+o[0].barSize){var d=!1,f=n/l,y=o.reduce(function(w,b){return w+b.barSize||0},0);y+=(l-1)*c,y>=n&&(y-=(l-1)*c,c=0),y>=n&&f>0&&(d=!0,f*=.9,y=l*f);var p=(n-y)/2>>0,g={offset:p-c,size:0};h=o.reduce(function(w,b){var C={item:b.item,position:{offset:g.offset+g.size+c,size:d?f:b.barSize}},k=[].concat(V1(w),[C]);return g=k[k.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(T){k.push({item:T,position:g})}),k},u)}else{var m=tr(i,n,0,!0);n-2*m-(l-1)*c<=0&&(c=0);var v=(n-2*m-(l-1)*c)/l;v>1&&(v>>=0);var x=s===+s?Math.min(v,s):v;h=o.reduce(function(w,b,C){var k=[].concat(V1(w),[{item:b.item,position:{offset:m+(v+c)*C+(v-x)/2,size:x}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(T){k.push({item:T,position:k[k.length-1].position})}),k},u)}return h},cG=function(t,r,i,n){var a=i.children,o=i.width,s=i.margin,l=o-(s.left||0)-(s.right||0),c=W2({children:a,legendWidth:l});if(c){var h=n||{},u=h.width,d=h.height,f=c.align,y=c.verticalAlign,p=c.layout;if((p==="vertical"||p==="horizontal"&&y==="middle")&&f!=="center"&&tt(t[f]))return he(he({},t),{},io({},f,t[f]+(u||0)));if((p==="horizontal"||p==="vertical"&&f==="center")&&y!=="middle"&&tt(t[y]))return he(he({},t),{},io({},y,t[y]+(d||0)))}return t},hG=function(t,r,i){return yt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||i==="x"?r==="xAxis":i==="y"?r==="yAxis":!0},q2=function(t,r,i,n,a){var o=r.props.children,s=Ve(o,xs).filter(function(c){return hG(n,a,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,h){var u=Wt(h,i);if(yt(u))return c;var d=Array.isArray(u)?[td(u),un(u)]:[u,u],f=l.reduce(function(y,p){var g=Wt(h,p,0),m=d[0]-Math.abs(Array.isArray(g)?g[0]:g),v=d[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(m,y[0]),Math.max(v,y[1])]},[1/0,-1/0]);return[Math.min(f[0],c[0]),Math.max(f[1],c[1])]},[1/0,-1/0])}return null},uG=function(t,r,i,n,a){var o=r.map(function(s){return q2(t,s,i,a,n)}).filter(function(s){return!yt(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},H2=function(t,r,i,n,a){var o=r.map(function(l){var c=l.props.dataKey;return i==="number"&&c&&q2(t,l,c,n)||sl(t,c,i,a)});if(i==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var h=0,u=c.length;h<u;h++)s[c[h]]||(s[c[h]]=!0,l.push(c[h]));return l},[])},U2=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Y2=function(t,r,i,n){if(n)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===i&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(i),s},Ii=function(t,r,i){if(!t)return null;var n=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?n.bandwidth()/2:2,c=(r||i)&&o==="category"&&n.bandwidth?n.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Je(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(u){var d=a?a.indexOf(u):u;return{coordinate:n(d)+c,value:u,offset:c}});return h.filter(function(u){return!Bn(u.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(u,d){return{coordinate:n(u)+c,value:u,index:d,offset:c}}):n.ticks&&!i?n.ticks(t.tickCount).map(function(u){return{coordinate:n(u)+c,value:u,offset:c}}):n.domain().map(function(u,d){return{coordinate:n(u)+c,value:a?a[u]:u,index:d,offset:c}})},Tp=new WeakMap,Qc=function(t,r){if(typeof r!="function")return t;Tp.has(t)||Tp.set(t,new WeakMap);var i=Tp.get(t);if(i.has(r))return i.get(r);var n=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return i.set(r,n),n},G2=function(t,r,i){var n=t.scale,a=t.type,o=t.layout,s=t.axisType;if(n==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Al(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:eu(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!i)?{scale:al(),realScaleType:"point"}:a==="category"?{scale:Al(),realScaleType:"band"}:{scale:eu(),realScaleType:"linear"};if(wn(n)){var l="scale".concat(Ff(n));return{scale:(W1[l]||al)(),realScaleType:W1[l]?l:"point"}}return pt(n)?{scale:n}:{scale:al(),realScaleType:"point"}},K1=1e-4,V2=function(t){var r=t.domain();if(!(!r||r.length<=2)){var i=r.length,n=t.range(),a=Math.min(n[0],n[1])-K1,o=Math.max(n[0],n[1])+K1,s=t(r[0]),l=t(r[i-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[i-1]])}},fG=function(t,r){if(!t)return null;for(var i=0,n=t.length;i<n;i++)if(t[i].item===r)return t[i].position;return null},dG=function(t,r){if(!r||r.length!==2||!tt(r[0])||!tt(r[1]))return t;var i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!tt(t[0])||t[0]<i)&&(a[0]=i),(!tt(t[1])||t[1]>n)&&(a[1]=n),a[0]>n&&(a[0]=n),a[1]<i&&(a[1]=i),a},pG=function(t){var r=t.length;if(!(r<=0))for(var i=0,n=t[0].length;i<n;++i)for(var a=0,o=0,s=0;s<r;++s){var l=Bn(t[s][i][1])?t[s][i][0]:t[s][i][1];l>=0?(t[s][i][0]=a,t[s][i][1]=a+l,a=t[s][i][1]):(t[s][i][0]=o,t[s][i][1]=o+l,o=t[s][i][1])}},gG=function(t){var r=t.length;if(!(r<=0))for(var i=0,n=t[0].length;i<n;++i)for(var a=0,o=0;o<r;++o){var s=Bn(t[o][i][1])?t[o][i][0]:t[o][i][1];s>=0?(t[o][i][0]=a,t[o][i][1]=a+s,a=t[o][i][1]):(t[o][i][0]=0,t[o][i][1]=0)}},yG={sign:pG,expand:MR,none:wo,silhouette:FR,wiggle:IR,positive:gG},mG=function(t,r,i){var n=r.map(function(s){return s.props.dataKey}),a=yG[i],o=LR().keys(n).value(function(s,l){return+Wt(s,l,0)}).order(ug).offset(a);return o(t)},vG=function(t,r,i,n,a,o){if(!t)return null;var s=o?r.reverse():r,l={},c=s.reduce(function(u,d){var f,y=(f=d.type)!==null&&f!==void 0&&f.defaultProps?he(he({},d.type.defaultProps),d.props):d.props,p=y.stackId,g=y.hide;if(g)return u;var m=y[i],v=u[m]||{hasStack:!1,stackGroups:{}};if(Te(p)){var x=v.stackGroups[p]||{numericAxisId:i,cateAxisId:n,items:[]};x.items.push(d),v.hasStack=!0,v.stackGroups[p]=x}else v.stackGroups[Qi("_stackId_")]={numericAxisId:i,cateAxisId:n,items:[d]};return he(he({},u),{},io({},m,v))},l),h={};return Object.keys(c).reduce(function(u,d){var f=c[d];if(f.hasStack){var y={};f.stackGroups=Object.keys(f.stackGroups).reduce(function(p,g){var m=f.stackGroups[g];return he(he({},p),{},io({},g,{numericAxisId:i,cateAxisId:n,items:m.items,stackedData:mG(t,m.items,a)}))},y)}return he(he({},u),{},io({},d,f))},h)},X2=function(t,r){var i=r.realScaleType,n=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=i||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&n==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var h=PY(c,a,s);return t.domain([td(h),un(h)]),{niceTicks:h}}if(a&&n==="number"){var u=t.domain(),d=LY(u,a,s);return{niceTicks:d}}return null};function Eo(e){var t=e.axis,r=e.ticks,i=e.bandSize,n=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!yt(n[t.dataKey])){var s=Eh(r,"value",n[t.dataKey]);if(s)return s.coordinate+i/2}return r[a]?r[a].coordinate+i/2:null}var l=Wt(n,yt(o)?t.dataKey:o);return yt(l)?null:t.scale(l)}var Z1=function(t){var r=t.axis,i=t.ticks,n=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return i[s]?i[s].coordinate+n:null;var l=Wt(o,r.dataKey,r.domain[s]);return yt(l)?null:r.scale(l)-a/2+n},bG=function(t){var r=t.numericAxis,i=r.scale.domain();if(r.type==="number"){var n=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);return n<=0&&a>=0?0:a<0?a:n}return i[0]},xG=function(t,r){var i,n=(i=t.type)!==null&&i!==void 0&&i.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,a=n.stackId;if(Te(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},CG=function(t){return t.reduce(function(r,i){return[td(i.concat([r[0]]).filter(tt)),un(i.concat([r[1]]).filter(tt))]},[1/0,-1/0])},K2=function(t,r,i){return Object.keys(t).reduce(function(n,a){var o=t[a],s=o.stackedData,l=s.reduce(function(c,h){var u=CG(h.slice(r,i+1));return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]).map(function(n){return n===1/0||n===-1/0?0:n})},Q1=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,J1=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qg=function(t,r,i){if(pt(t))return t(r,i);if(!Array.isArray(t))return r;var n=[];if(tt(t[0]))n[0]=i?t[0]:Math.min(t[0],r[0]);else if(Q1.test(t[0])){var a=+Q1.exec(t[0])[1];n[0]=r[0]-a}else pt(t[0])?n[0]=t[0](r[0]):n[0]=r[0];if(tt(t[1]))n[1]=i?t[1]:Math.max(t[1],r[1]);else if(J1.test(t[1])){var o=+J1.exec(t[1])[1];n[1]=r[1]+o}else pt(t[1])?n[1]=t[1](r[1]):n[1]=r[1];return n},lu=function(t,r,i){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!i||n>0)return n}if(t&&r&&r.length>=2){for(var a=dv(r,function(u){return u.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var c=a[s],h=a[s-1];o=Math.min((c.coordinate||0)-(h.coordinate||0),o)}return o===1/0?0:o}return i?void 0:0},tC=function(t,r,i){return!t||!t.length||Vi(t,fr(i,"type.defaultProps.domain"))?r:t},Z2=function(t,r){var i=t.type.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,n=i.dataKey,a=i.name,o=i.unit,s=i.formatter,l=i.tooltipType,c=i.chartType,h=i.hide;return he(he({},lt(t,!1)),{},{dataKey:n,unit:o,formatter:s,name:a||n,color:Dv(t),value:Wt(r,n),type:l,payload:r,chartType:c,hide:h})};function Fl(e){"@babel/helpers - typeof";return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fl(e)}function eC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Ei(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eC(Object(r),!0).forEach(function(i){Q2(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Q2(e,t,r){return t=wG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wG(e){var t=SG(e,"string");return Fl(t)=="symbol"?t:t+""}function SG(e,t){if(Fl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Fl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kG(e,t){return OG(e)||AG(e,t)||_G(e,t)||TG()}function TG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _G(e,t){if(e){if(typeof e=="string")return rC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rC(e,t)}}function rC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function AG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function OG(e){if(Array.isArray(e))return e}var cu=Math.PI/180,BG=function(t){return t*180/Math.PI},ee=function(t,r,i,n){return{x:t+Math.cos(-cu*n)*i,y:r+Math.sin(-cu*n)*i}},J2=function(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(i.left||0)-(i.right||0)),Math.abs(r-(i.top||0)-(i.bottom||0)))/2},$G=function(t,r,i,n,a){var o=t.width,s=t.height,l=t.startAngle,c=t.endAngle,h=tr(t.cx,o,o/2),u=tr(t.cy,s,s/2),d=J2(o,s,i),f=tr(t.innerRadius,d,0),y=tr(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(g,m){var v=r[m],x=v.domain,w=v.reversed,b;if(yt(v.range))n==="angleAxis"?b=[l,c]:n==="radiusAxis"&&(b=[f,y]),w&&(b=[b[1],b[0]]);else{b=v.range;var C=b,k=kG(C,2);l=k[0],c=k[1]}var T=G2(v,a),E=T.realScaleType,L=T.scale;L.domain(x).range(b),V2(L);var P=X2(L,Ei(Ei({},v),{},{realScaleType:E})),I=Ei(Ei(Ei({},v),P),{},{range:b,radius:y,realScaleType:E,scale:L,cx:h,cy:u,innerRadius:f,outerRadius:y,startAngle:l,endAngle:c});return Ei(Ei({},g),{},Q2({},m,I))},{})},EG=function(t,r){var i=t.x,n=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(i-a,2)+Math.pow(n-o,2))},PG=function(t,r){var i=t.x,n=t.y,a=r.cx,o=r.cy,s=EG({x:i,y:n},{x:a,y:o});if(s<=0)return{radius:s};var l=(i-a)/s,c=Math.acos(l);return n>o&&(c=2*Math.PI-c),{radius:s,angle:BG(c),angleInRadian:c}},LG=function(t){var r=t.startAngle,i=t.endAngle,n=Math.floor(r/360),a=Math.floor(i/360),o=Math.min(n,a);return{startAngle:r-o*360,endAngle:i-o*360}},MG=function(t,r){var i=r.startAngle,n=r.endAngle,a=Math.floor(i/360),o=Math.floor(n/360),s=Math.min(a,o);return t+s*360},iC=function(t,r){var i=t.x,n=t.y,a=PG({x:i,y:n},r),o=a.radius,s=a.angle,l=r.innerRadius,c=r.outerRadius;if(o<l||o>c)return!1;if(o===0)return!0;var h=LG(r),u=h.startAngle,d=h.endAngle,f=s,y;if(u<=d){for(;f>d;)f-=360;for(;f<u;)f+=360;y=f>=u&&f<=d}else{for(;f>u;)f-=360;for(;f<d;)f+=360;y=f>=d&&f<=u}return y?Ei(Ei({},r),{},{radius:o,angle:MG(f,r)}):null},t_=function(t){return!J.isValidElement(t)&&!pt(t)&&typeof t!="boolean"?t.className:""};function Il(e){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}var FG=["offset"];function IG(e){return NG(e)||jG(e)||RG(e)||DG()}function DG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
30In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RG(e,t){if(e){if(typeof e=="string")return Hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hg(e,t)}}function jG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NG(e){if(Array.isArray(e))return Hg(e)}function Hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function zG(e,t){if(e==null)return{};var r=WG(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function WG(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function nC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nC(Object(r),!0).forEach(function(i){qG(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function qG(e,t,r){return t=HG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HG(e){var t=UG(e,"string");return Il(t)=="symbol"?t:t+""}function UG(e,t){if(Il(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Il(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Dl.apply(this,arguments)}var YG=function(t){var r=t.value,i=t.formatter,n=yt(t.children)?r:t.children;return pt(i)?i(n):n},GG=function(t,r){var i=Je(r-t),n=Math.min(Math.abs(r-t),360);return i*n},VG=function(t,r,i){var n=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,c=l.cx,h=l.cy,u=l.innerRadius,d=l.outerRadius,f=l.startAngle,y=l.endAngle,p=l.clockWise,g=(u+d)/2,m=GG(f,y),v=m>=0?1:-1,x,w;n==="insideStart"?(x=f+v*o,w=p):n==="insideEnd"?(x=y-v*o,w=!p):n==="end"&&(x=y+v*o,w=p),w=m<=0?w:!w;var b=ee(c,h,g,x),C=ee(c,h,g,x+(w?1:-1)*359),k="M".concat(b.x,",").concat(b.y,`
31    A`).concat(g,",").concat(g,",0,1,").concat(w?0:1,`,
32    `).concat(C.x,",").concat(C.y),T=yt(t.id)?Qi("recharts-radial-line-"):t.id;return R.createElement("text",Dl({},i,{dominantBaseline:"central",className:Ot("recharts-radial-bar-label",s)}),R.createElement("defs",null,R.createElement("path",{id:T,d:k})),R.createElement("textPath",{xlinkHref:"#".concat(T)},r))},XG=function(t){var r=t.viewBox,i=t.offset,n=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,c=a.outerRadius,h=a.startAngle,u=a.endAngle,d=(h+u)/2;if(n==="outside"){var f=ee(o,s,c+i,d),y=f.x,p=f.y;return{x:y,y:p,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var g=(l+c)/2,m=ee(o,s,g,d),v=m.x,x=m.y;return{x:v,y:x,textAnchor:"middle",verticalAnchor:"middle"}},KG=function(t){var r=t.viewBox,i=t.parentViewBox,n=t.offset,a=t.position,o=r,s=o.x,l=o.y,c=o.width,h=o.height,u=h>=0?1:-1,d=u*n,f=u>0?"end":"start",y=u>0?"start":"end",p=c>=0?1:-1,g=p*n,m=p>0?"end":"start",v=p>0?"start":"end";if(a==="top"){var x={x:s+c/2,y:l-u*n,textAnchor:"middle",verticalAnchor:f};return Ce(Ce({},x),i?{height:Math.max(l-i.y,0),width:c}:{})}if(a==="bottom"){var w={x:s+c/2,y:l+h+d,textAnchor:"middle",verticalAnchor:y};return Ce(Ce({},w),i?{height:Math.max(i.y+i.height-(l+h),0),width:c}:{})}if(a==="left"){var b={x:s-g,y:l+h/2,textAnchor:m,verticalAnchor:"middle"};return Ce(Ce({},b),i?{width:Math.max(b.x-i.x,0),height:h}:{})}if(a==="right"){var C={x:s+c+g,y:l+h/2,textAnchor:v,verticalAnchor:"middle"};return Ce(Ce({},C),i?{width:Math.max(i.x+i.width-C.x,0),height:h}:{})}var k=i?{width:c,height:h}:{};return a==="insideLeft"?Ce({x:s+g,y:l+h/2,textAnchor:v,verticalAnchor:"middle"},k):a==="insideRight"?Ce({x:s+c-g,y:l+h/2,textAnchor:m,verticalAnchor:"middle"},k):a==="insideTop"?Ce({x:s+c/2,y:l+d,textAnchor:"middle",verticalAnchor:y},k):a==="insideBottom"?Ce({x:s+c/2,y:l+h-d,textAnchor:"middle",verticalAnchor:f},k):a==="insideTopLeft"?Ce({x:s+g,y:l+d,textAnchor:v,verticalAnchor:y},k):a==="insideTopRight"?Ce({x:s+c-g,y:l+d,textAnchor:m,verticalAnchor:y},k):a==="insideBottomLeft"?Ce({x:s+g,y:l+h-d,textAnchor:v,verticalAnchor:f},k):a==="insideBottomRight"?Ce({x:s+c-g,y:l+h-d,textAnchor:m,verticalAnchor:f},k):ls(a)&&(tt(a.x)||Gn(a.x))&&(tt(a.y)||Gn(a.y))?Ce({x:s+tr(a.x,c),y:l+tr(a.y,h),textAnchor:"end",verticalAnchor:"end"},k):Ce({x:s+c/2,y:l+h/2,textAnchor:"middle",verticalAnchor:"middle"},k)},ZG=function(t){return"cx"in t&&tt(t.cx)};function $e(e){var t=e.offset,r=t===void 0?5:t,i=zG(e,FG),n=Ce({offset:r},i),a=n.viewBox,o=n.position,s=n.value,l=n.children,c=n.content,h=n.className,u=h===void 0?"":h,d=n.textBreakAll;if(!a||yt(s)&&yt(l)&&!J.isValidElement(c)&&!pt(c))return null;if(J.isValidElement(c))return J.cloneElement(c,n);var f;if(pt(c)){if(f=J.createElement(c,n),J.isValidElement(f))return f}else f=YG(n);var y=ZG(a),p=lt(n,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return VG(n,f,p);var g=y?XG(n):KG(n);return R.createElement(aa,Dl({className:Ot("recharts-label",u)},p,g,{breakAll:d}),f)}$e.displayName="Label";var e_=function(t){var r=t.cx,i=t.cy,n=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,h=t.outerRadius,u=t.x,d=t.y,f=t.top,y=t.left,p=t.width,g=t.height,m=t.clockWise,v=t.labelViewBox;if(v)return v;if(tt(p)&&tt(g)){if(tt(u)&&tt(d))return{x:u,y:d,width:p,height:g};if(tt(f)&&tt(y))return{x:f,y,width:p,height:g}}return tt(u)&&tt(d)?{x:u,y:d,width:0,height:0}:tt(r)&&tt(i)?{cx:r,cy:i,startAngle:a||n||0,endAngle:o||n||0,innerRadius:c||0,outerRadius:h||l||s||0,clockWise:m}:t.viewBox?t.viewBox:{}},QG=function(t,r){return t?t===!0?R.createElement($e,{key:"label-implicit",viewBox:r}):Te(t)?R.createElement($e,{key:"label-implicit",viewBox:r,value:t}):J.isValidElement(t)?t.type===$e?J.cloneElement(t,{key:"label-implicit",viewBox:r}):R.createElement($e,{key:"label-implicit",content:t,viewBox:r}):pt(t)?R.createElement($e,{key:"label-implicit",content:t,viewBox:r}):ls(t)?R.createElement($e,Dl({viewBox:r},t,{key:"label-implicit"})):null:null},JG=function(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&i&&!t.label)return null;var n=t.children,a=e_(t),o=Ve(n,$e).map(function(l,c){return J.cloneElement(l,{viewBox:r||a,key:"label-".concat(c)})});if(!i)return o;var s=QG(t.label,r||a);return[s].concat(IG(o))};$e.parseViewBox=e_;$e.renderCallByParent=JG;function tV(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var r_=tV;const eV=Ut(r_);function Rl(e){"@babel/helpers - typeof";return Rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rl(e)}var rV=["valueAccessor"],iV=["data","dataKey","clockWise","id","textBreakAll"];function nV(e){return lV(e)||sV(e)||oV(e)||aV()}function aV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
33In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oV(e,t){if(e){if(typeof e=="string")return Ug(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ug(e,t)}}function sV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lV(e){if(Array.isArray(e))return Ug(e)}function Ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},hu.apply(this,arguments)}function aC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function oC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aC(Object(r),!0).forEach(function(i){cV(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function cV(e,t,r){return t=hV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hV(e){var t=uV(e,"string");return Rl(t)=="symbol"?t:t+""}function uV(e,t){if(Rl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Rl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sC(e,t){if(e==null)return{};var r=fV(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function fV(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}var dV=function(t){return Array.isArray(t.value)?eV(t.value):t.value};function Or(e){var t=e.valueAccessor,r=t===void 0?dV:t,i=sC(e,rV),n=i.data,a=i.dataKey,o=i.clockWise,s=i.id,l=i.textBreakAll,c=sC(i,iV);return!n||!n.length?null:R.createElement(At,{className:"recharts-label-list"},n.map(function(h,u){var d=yt(a)?r(h,u):Wt(h&&h.payload,a),f=yt(s)?{}:{id:"".concat(s,"-").concat(u)};return R.createElement($e,hu({},lt(h,!0),c,f,{parentViewBox:h.parentViewBox,value:d,textBreakAll:l,viewBox:$e.parseViewBox(yt(o)?h:oC(oC({},h),{},{clockWise:o})),key:"label-".concat(u),index:u}))}))}Or.displayName="LabelList";function pV(e,t){return e?e===!0?R.createElement(Or,{key:"labelList-implicit",data:t}):R.isValidElement(e)||pt(e)?R.createElement(Or,{key:"labelList-implicit",data:t,content:e}):ls(e)?R.createElement(Or,hu({data:t},e,{key:"labelList-implicit"})):null:null}function gV(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var i=e.children,n=Ve(i,Or).map(function(o,s){return J.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return n;var a=pV(e.label,t);return[a].concat(nV(n))}Or.renderCallByParent=gV;function jl(e){"@babel/helpers - typeof";return jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jl(e)}function Yg(){return Yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Yg.apply(this,arguments)}function lC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function cC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lC(Object(r),!0).forEach(function(i){yV(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function yV(e,t,r){return t=mV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mV(e){var t=vV(e,"string");return jl(t)=="symbol"?t:t+""}function vV(e,t){if(jl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(jl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bV=function(t,r){var i=Je(r-t),n=Math.min(Math.abs(r-t),359.999);return i*n},Jc=function(t){var r=t.cx,i=t.cy,n=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,h=l*(s?1:-1)+n,u=Math.asin(l/h)/cu,d=c?a:a+o*u,f=ee(r,i,h,d),y=ee(r,i,n,d),p=c?a-o*u:a,g=ee(r,i,h*Math.cos(u*cu),p);return{center:f,circleTangency:y,lineTangency:g,theta:u}},i_=function(t){var r=t.cx,i=t.cy,n=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=bV(o,s),c=o+l,h=ee(r,i,a,o),u=ee(r,i,a,c),d="M ".concat(h.x,",").concat(h.y,`
34    A `).concat(a,",").concat(a,`,0,
35    `).concat(+(Math.abs(l)>180),",").concat(+(o>c),`,
36    `).concat(u.x,",").concat(u.y,`
37  `);if(n>0){var f=ee(r,i,n,o),y=ee(r,i,n,c);d+="L ".concat(y.x,",").concat(y.y,`
38            A `).concat(n,",").concat(n,`,0,
39            `).concat(+(Math.abs(l)>180),",").concat(+(o<=c),`,
40            `).concat(f.x,",").concat(f.y," Z")}else d+="L ".concat(r,",").concat(i," Z");return d},xV=function(t){var r=t.cx,i=t.cy,n=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,h=t.endAngle,u=Je(h-c),d=Jc({cx:r,cy:i,radius:a,angle:c,sign:u,cornerRadius:o,cornerIsExternal:l}),f=d.circleTangency,y=d.lineTangency,p=d.theta,g=Jc({cx:r,cy:i,radius:a,angle:h,sign:-u,cornerRadius:o,cornerIsExternal:l}),m=g.circleTangency,v=g.lineTangency,x=g.theta,w=l?Math.abs(c-h):Math.abs(c-h)-p-x;if(w<0)return s?"M ".concat(y.x,",").concat(y.y,`
41        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
42        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
43      `):i_({cx:r,cy:i,innerRadius:n,outerRadius:a,startAngle:c,endAngle:h});var b="M ".concat(y.x,",").concat(y.y,`
44    A`).concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(f.x,",").concat(f.y,`
45    A`).concat(a,",").concat(a,",0,").concat(+(w>180),",").concat(+(u<0),",").concat(m.x,",").concat(m.y,`
46    A`).concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(v.x,",").concat(v.y,`
47  `);if(n>0){var C=Jc({cx:r,cy:i,radius:n,angle:c,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),k=C.circleTangency,T=C.lineTangency,E=C.theta,L=Jc({cx:r,cy:i,radius:n,angle:h,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=L.circleTangency,I=L.lineTangency,D=L.theta,_=l?Math.abs(c-h):Math.abs(c-h)-E-D;if(_<0&&o===0)return"".concat(b,"L").concat(r,",").concat(i,"Z");b+="L".concat(I.x,",").concat(I.y,`
48      A`).concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(P.x,",").concat(P.y,`
49      A`).concat(n,",").concat(n,",0,").concat(+(_>180),",").concat(+(u>0),",").concat(k.x,",").concat(k.y,`
50      A`).concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(T.x,",").concat(T.y,"Z")}else b+="L".concat(r,",").concat(i,"Z");return b},CV={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},n_=function(t){var r=cC(cC({},CV),t),i=r.cx,n=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,h=r.startAngle,u=r.endAngle,d=r.className;if(o<a||h===u)return null;var f=Ot("recharts-sector",d),y=o-a,p=tr(s,y,0,!0),g;return p>0&&Math.abs(h-u)<360?g=xV({cx:i,cy:n,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,y/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:h,endAngle:u}):g=i_({cx:i,cy:n,innerRadius:a,outerRadius:o,startAngle:h,endAngle:u}),R.createElement("path",Yg({},lt(r,!0),{className:f,d:g,role:"img"}))};function Nl(e){"@babel/helpers - typeof";return Nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nl(e)}function Gg(){return Gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Gg.apply(this,arguments)}function hC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function uC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hC(Object(r),!0).forEach(function(i){wV(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function wV(e,t,r){return t=SV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SV(e){var t=kV(e,"string");return Nl(t)=="symbol"?t:t+""}function kV(e,t){if(Nl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Nl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fC={curveBasisClosed:Dk,curveBasisOpen:jk,curveBasis:Ih,curveBumpX:Nm,curveBumpY:zm,curveLinearClosed:Gk,curveLinear:mn,curveMonotoneX:Gm,curveMonotoneY:Vm,curveNatural:Xm,curveStep:Km,curveStepAfter:Qm,curveStepBefore:Zm},th=function(t){return t.x===+t.x&&t.y===+t.y},Is=function(t){return t.x},Ds=function(t){return t.y},TV=function(t,r){if(pt(t))return t;var i="curve".concat(Ff(t));return(i==="curveMonotone"||i==="curveBump")&&r?fC["".concat(i).concat(r==="vertical"?"Y":"X")]:fC[i]||mn},_V=function(t){var r=t.type,i=r===void 0?"linear":r,n=t.points,a=n===void 0?[]:n,o=t.baseLine,s=t.layout,l=t.connectNulls,c=l===void 0?!1:l,h=TV(i,s),u=c?a.filter(function(p){return th(p)}):a,d;if(Array.isArray(o)){var f=c?o.filter(function(p){return th(p)}):o,y=u.map(function(p,g){return uC(uC({},p),{},{base:f[g]})});return s==="vertical"?d=qc().y(Ds).x1(Is).x0(function(p){return p.base.x}):d=qc().x(Is).y1(Ds).y0(function(p){return p.base.y}),d.defined(th).curve(h),d(y)}return s==="vertical"&&tt(o)?d=qc().y(Ds).x1(Is).x0(o):tt(o)?d=qc().x(Is).y1(Ds).y0(o):d=jm().x(Is).y(Ds),d.defined(th).curve(h),d(u)},bn=function(t){var r=t.className,i=t.points,n=t.path,a=t.pathRef;if((!i||!i.length)&&!n)return null;var o=i&&i.length?_V(t):n;return J.createElement("path",Gg({},lt(t,!1),Ph(t),{className:Ot("recharts-curve",r),d:o,ref:a}))},a_={exports:{}},AV="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",OV=AV,BV=OV;function o_(){}function s_(){}s_.resetWarningCache=o_;var $V=function(){function e(i,n,a,o,s,l){if(l!==BV){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s_,resetWarningCache:o_};return r.PropTypes=r,r};a_.exports=$V();var EV=a_.exports;const qt=Ut(EV);function PV(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function dC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,i=function n(a){r<0&&(r=a),a-r>t?(e(a),r=-1):PV(n)};requestAnimationFrame(i)}function Vg(e){"@babel/helpers - typeof";return Vg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vg(e)}function LV(e){return DV(e)||IV(e)||FV(e)||MV()}function MV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
51In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FV(e,t){if(e){if(typeof e=="string")return pC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pC(e,t)}}function pC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function IV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DV(e){if(Array.isArray(e))return e}function RV(){var e={},t=function(){return null},r=!1,i=function n(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=LV(o),l=s[0],c=s.slice(1);if(typeof l=="number"){dC(n.bind(null,c),l);return}n(l),dC(n.bind(null,c));return}Vg(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,i(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function zl(e){"@babel/helpers - typeof";return zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zl(e)}function gC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function yC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gC(Object(r),!0).forEach(function(i){l_(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function l_(e,t,r){return t=jV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jV(e){var t=NV(e,"string");return zl(t)==="symbol"?t:String(t)}function NV(e,t){if(zl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(zl(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zV=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(i,n){return i.filter(function(a){return n.includes(a)})})},WV=function(t){return t},qV=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},ll=function(t,r){return Object.keys(r).reduce(function(i,n){return yC(yC({},i),{},l_({},n,t(n,r[n])))},{})},mC=function(t,r,i){return t.map(function(n){return"".concat(qV(n)," ").concat(r,"ms ").concat(i)}).join(",")};function HV(e,t){return GV(e)||YV(e,t)||c_(e,t)||UV()}function UV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
52In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function GV(e){if(Array.isArray(e))return e}function VV(e){return ZV(e)||KV(e)||c_(e)||XV()}function XV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c_(e,t){if(e){if(typeof e=="string")return Xg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xg(e,t)}}function KV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZV(e){if(Array.isArray(e))return Xg(e)}function Xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}var uu=1e-4,h_=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},u_=function(t,r){return t.map(function(i,n){return i*Math.pow(r,n)}).reduce(function(i,n){return i+n})},vC=function(t,r){return function(i){var n=h_(t,r);return u_(n,i)}},QV=function(t,r){return function(i){var n=h_(t,r),a=[].concat(VV(n.map(function(o,s){return o*s}).slice(1)),[0]);return u_(a,i)}},bC=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":n=0,a=0,o=1,s=1;break;case"ease":n=.25,a=.1,o=.25,s=1;break;case"ease-in":n=.42,a=0,o=1,s=1;break;case"ease-out":n=.42,a=0,o=.58,s=1;break;case"ease-in-out":n=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),h=HV(c,4);n=h[0],a=h[1],o=h[2],s=h[3]}}}var u=vC(n,o),d=vC(a,s),f=QV(n,o),y=function(m){return m>1?1:m<0?0:m},p=function(m){for(var v=m>1?1:m,x=v,w=0;w<8;++w){var b=u(x)-v,C=f(x);if(Math.abs(b-v)<uu||C<uu)return d(x);x=y(x-b/C)}return d(x)};return p.isStepper=!1,p},JV=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,i=r===void 0?100:r,n=t.damping,a=n===void 0?8:n,o=t.dt,s=o===void 0?17:o,l=function(h,u,d){var f=-(h-u)*i,y=d*a,p=d+(f-y)*s/1e3,g=d*s/1e3+h;return Math.abs(g-u)<uu&&Math.abs(p)<uu?[u,0]:[g,p]};return l.isStepper=!0,l.dt=s,l},tX=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r[0];if(typeof n=="string")switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return bC(n);case"spring":return JV();default:if(n.split("(")[0]==="cubic-bezier")return bC(n)}return typeof n=="function"?n:null};function Wl(e){"@babel/helpers - typeof";return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wl(e)}function xC(e){return iX(e)||rX(e)||f_(e)||eX()}function eX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
54In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iX(e){if(Array.isArray(e))return Zg(e)}function CC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CC(Object(r),!0).forEach(function(i){Kg(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Kg(e,t,r){return t=nX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nX(e){var t=aX(e,"string");return Wl(t)==="symbol"?t:String(t)}function aX(e,t){if(Wl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Wl(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oX(e,t){return cX(e)||lX(e,t)||f_(e,t)||sX()}function sX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f_(e,t){if(e){if(typeof e=="string")return Zg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zg(e,t)}}function Zg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function lX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function cX(e){if(Array.isArray(e))return e}var fu=function(t,r,i){return t+(r-t)*i},Qg=function(t){var r=t.from,i=t.to;return r!==i},hX=function e(t,r,i){var n=ll(function(a,o){if(Qg(o)){var s=t(o.from,o.to,o.velocity),l=oX(s,2),c=l[0],h=l[1];return Fe(Fe({},o),{},{from:c,velocity:h})}return o},r);return i<1?ll(function(a,o){return Qg(o)?Fe(Fe({},o),{},{velocity:fu(o.velocity,n[a].velocity,i),from:fu(o.from,n[a].from,i)}):o},r):e(t,n,i-1)};const uX=function(e,t,r,i,n){var a=zV(e,t),o=a.reduce(function(g,m){return Fe(Fe({},g),{},Kg({},m,[e[m],t[m]]))},{}),s=a.reduce(function(g,m){return Fe(Fe({},g),{},Kg({},m,{from:e[m],velocity:0,to:t[m]}))},{}),l=-1,c,h,u=function(){return null},d=function(){return ll(function(m,v){return v.from},s)},f=function(){return!Object.values(s).filter(Qg).length},y=function(m){c||(c=m);var v=m-c,x=v/r.dt;s=hX(r,s,x),n(Fe(Fe(Fe({},e),t),d())),c=m,f()||(l=requestAnimationFrame(u))},p=function(m){h||(h=m);var v=(m-h)/i,x=ll(function(b,C){return fu.apply(void 0,xC(C).concat([r(v)]))},o);if(n(Fe(Fe(Fe({},e),t),x)),v<1)l=requestAnimationFrame(u);else{var w=ll(function(b,C){return fu.apply(void 0,xC(C).concat([r(1)]))},o);n(Fe(Fe(Fe({},e),t),w))}};return u=r.isStepper?y:p,function(){return requestAnimationFrame(u),function(){cancelAnimationFrame(l)}}};function Po(e){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Po(e)}var fX=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function dX(e,t){if(e==null)return{};var r=pX(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function pX(e,t){if(e==null)return{};var r={},i=Object.keys(e),n,a;for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function _p(e){return vX(e)||mX(e)||yX(e)||gX()}function gX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
56In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yX(e,t){if(e){if(typeof e=="string")return Jg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jg(e,t)}}function mX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vX(e){if(Array.isArray(e))return Jg(e)}function Jg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function wC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
56t%2?wC(Object(r),!0).forEach(function(i){Zs(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Zs(e,t,r){return t=d_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xX(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,d_(i.key),i)}}function CX(e,t,r){return t&&xX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d_(e){var t=wX(e,"string");return Po(t)==="symbol"?t:String(t)}function wX(e,t){if(Po(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Po(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ty(e,t)}
vendor: 59,442 bytes, lines 56-71
56function ty(e,t){return ty=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},ty(e,t)}function kX(e){var t=TX();return function(){var i=du(e),n;if(t){var a=du(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return ey(this,n)}}function ey(e,t){if(t&&(Po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ry(e)}function ry(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function du(e){return du=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},du(e)}var ar=function(e){SX(r,e);var t=kX(r);function r(i,n){var a;bX(this,r),a=t.call(this,i,n);var o=a.props,s=o.isActive,l=o.attributeName,c=o.from,h=o.to,u=o.steps,d=o.children,f=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(ry(a)),a.changeStyle=a.changeStyle.bind(ry(a)),!s||f<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:h}),ey(a);if(u&&u.length)a.state={style:u[0].style};else if(c){if(typeof d=="function")return a.state={style:c},ey(a);a.state={style:l?Zs({},l,c):c}}else a.state={style:{}};return a}return CX(r,[{key:"componentDidMount",value:function(){var n=this.props,a=n.isActive,o=n.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(n){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,c=a.shouldReAnimate,h=a.to,u=a.from,d=this.state.style;if(s){if(!o){var f={style:l?Zs({},l,h):h};this.state&&d&&(l&&d[l]!==h||!l&&d!==h)&&this.setState(f);return}if(!(RM(n.to,h)&&n.canBegin&&n.isActive)){var y=!n.canBegin||!n.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=y||c?u:n.to;if(this.state&&d){var g={style:l?Zs({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(g)}this.runAnimation(Ir(Ir({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var n=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),n&&n()}},{key:"handleStyleChange",value:function(n){this.changeStyle(n)}},{key:"changeStyle",value:function(n){this.mounted&&this.setState({style:n})}},{key:"runJSAnimation",value:function(n){var a=this,o=n.from,s=n.to,l=n.duration,c=n.easing,h=n.begin,u=n.onAnimationEnd,d=n.onAnimationStart,f=uX(o,s,tX(c),l,this.changeStyle),y=function(){a.stopJSAnimation=f()};this.manager.start([d,h,y,l,u])}},{key:"runStepAnimation",value:function(n){var a=this,o=n.steps,s=n.begin,l=n.onAnimationStart,c=o[0],h=c.style,u=c.duration,d=u===void 0?0:u,f=function(p,g,m){if(m===0)return p;var v=g.duration,x=g.easing,w=x===void 0?"ease":x,b=g.style,C=g.properties,k=g.onAnimationEnd,T=m>0?o[m-1]:g,E=C||Object.keys(b);if(typeof w=="function"||w==="spring")return[].concat(_p(p),[a.runJSAnimation.bind(a,{from:T.style,to:b,duration:v,easing:w}),v]);var L=mC(E,v,w),P=Ir(Ir(Ir({},T.style),b),{},{transition:L});return[].concat(_p(p),[P,v,k]).filter(WV)};return this.manager.start([l].concat(_p(o.reduce(f,[h,Math.max(d,s)])),[n.onAnimationEnd]))}},{key:"runAnimation",value:function(n){this.manager||(this.manager=RV());var a=n.begin,o=n.duration,s=n.attributeName,l=n.to,c=n.easing,h=n.onAnimationStart,u=n.onAnimationEnd,d=n.steps,f=n.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof f=="function"||c==="spring"){this.runJSAnimation(n);return}if(d.length>1){this.runStepAnimation(n);return}var p=s?Zs({},s,l):l,g=mC(Object.keys(p),o,c);y.start([h,a,Ir(Ir({},p),{},{transition:g}),o,u])}},{key:"render",value:function(){var n=this.props,a=n.children;n.begin;var o=n.duration;n.attributeName,n.easing;var s=n.isActive;n.steps,n.from,n.to,n.canBegin,n.onAnimationEnd,n.shouldReAnimate,n.onAnimationReStart;var l=dX(n,fX),c=J.Children.count(a),h=this.state.style;if(typeof a=="function")return a(h);if(!s||c===0||o<=0)return a;var u=function(f){var y=f.props,p=y.style,g=p===void 0?{}:p,m=y.className,v=J.cloneElement(f,Ir(Ir({},l),{},{style:Ir(Ir({},g),h),className:m}));return v};return c===1?u(J.Children.only(a)):R.createElement("div",null,J.Children.map(a,function(d){return u(d)}))}}]),r}(J.PureComponent);ar.displayName="Animate";ar.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ar.propTypes={from:qt.oneOfType([qt.object,qt.string]),to:qt.oneOfType([qt.object,qt.string]),attributeName:qt.string,duration:qt.number,begin:qt.number,easing:qt.oneOfType([qt.string,qt.func]),steps:qt.arrayOf(qt.shape({duration:qt.number.isRequired,style:qt.object.isRequired,easing:qt.oneOfType([qt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),qt.func]),properties:qt.arrayOf("string"),onAnimationEnd:qt.func})),children:qt.oneOfType([qt.node,qt.func]),isActive:qt.bool,canBegin:qt.bool,onAnimationEnd:qt.func,shouldReAnimate:qt.bool,onAnimationStart:qt.func,onAnimationReStart:qt.func};function ql(e){"@babel/helpers - typeof";return ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ql(e)}function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},pu.apply(this,arguments)}function _X(e,t){return $X(e)||BX(e,t)||OX(e,t)||AX()}function AX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OX(e,t){if(e){if(typeof e=="string")return SC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SC(e,t)}}function SC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function BX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function $X(e){if(Array.isArray(e))return e}function kC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function TC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kC(Object(r),!0).forEach(function(i){EX(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function EX(e,t,r){return t=PX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PX(e){var t=LX(e,"string");return ql(t)=="symbol"?t:t+""}function LX(e,t){if(ql(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(ql(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _C=function(t,r,i,n,a){var o=Math.min(Math.abs(i)/2,Math.abs(n)/2),s=n>=0?1:-1,l=i>=0?1:-1,c=n>=0&&i>=0||n<0&&i<0?1:0,h;if(o>0&&a instanceof Array){for(var u=[0,0,0,0],d=0,f=4;d<f;d++)u[d]=a[d]>o?o:a[d];h="M".concat(t,",").concat(r+s*u[0]),u[0]>0&&(h+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(t+l*u[0],",").concat(r)),h+="L ".concat(t+i-l*u[1],",").concat(r),u[1]>0&&(h+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,`,
58        `).concat(t+i,",").concat(r+s*u[1])),h+="L ".concat(t+i,",").concat(r+n-s*u[2]),u[2]>0&&(h+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,`,
59        `).concat(t+i-l*u[2],",").concat(r+n)),h+="L ".concat(t+l*u[3],",").concat(r+n),u[3]>0&&(h+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,`,
60        `).concat(t,",").concat(r+n-s*u[3])),h+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);h="M ".concat(t,",").concat(r+s*y,`
61            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+l*y,",").concat(r,`
62            L `).concat(t+i-l*y,",").concat(r,`
63            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+i,",").concat(r+s*y,`
64            L `).concat(t+i,",").concat(r+n-s*y,`
65            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+i-l*y,",").concat(r+n,`
66            L `).concat(t+l*y,",").concat(r+n,`
67            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+n-s*y," Z")}else h="M ".concat(t,",").concat(r," h ").concat(i," v ").concat(n," h ").concat(-i," Z");return h},MX=function(t,r){if(!t||!r)return!1;var i=t.x,n=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(a,a+s),h=Math.max(a,a+s),u=Math.min(o,o+l),d=Math.max(o,o+l);return i>=c&&i<=h&&n>=u&&n<=d}return!1},FX={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},id=function(t){var r=TC(TC({},FX),t),i=J.useRef(),n=J.useState(-1),a=_X(n,2),o=a[0],s=a[1];J.useEffect(function(){if(i.current&&i.current.getTotalLength)try{var w=i.current.getTotalLength();w&&s(w)}catch{}},[]);var l=r.x,c=r.y,h=r.width,u=r.height,d=r.radius,f=r.className,y=r.animationEasing,p=r.animationDuration,g=r.animationBegin,m=r.isAnimationActive,v=r.isUpdateAnimationActive;if(l!==+l||c!==+c||h!==+h||u!==+u||h===0||u===0)return null;var x=Ot("recharts-rectangle",f);return v?R.createElement(ar,{canBegin:o>0,from:{width:h,height:u,x:l,y:c},to:{width:h,height:u,x:l,y:c},duration:p,animationEasing:y,isActive:v},function(w){var b=w.width,C=w.height,k=w.x,T=w.y;return R.createElement(ar,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:p,isActive:m,easing:y},R.createElement("path",pu({},lt(r,!0),{className:x,d:_C(k,T,b,C,d),ref:i})))}):R.createElement("path",pu({},lt(r,!0),{className:x,d:_C(l,c,h,u,d)}))},IX=["points","className","baseLinePoints","connectNulls"];function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ya.apply(this,arguments)}function DX(e,t){if(e==null)return{};var r=RX(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function RX(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function AC(e){return WX(e)||zX(e)||NX(e)||jX()}function jX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
68In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NX(e,t){if(e){if(typeof e=="string")return iy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iy(e,t)}}function zX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WX(e){if(Array.isArray(e))return iy(e)}function iy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}var OC=function(t){return t&&t.x===+t.x&&t.y===+t.y},qX=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(i){OC(i)?r[r.length-1].push(i):r[r.length-1].length>0&&r.push([])}),OC(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},cl=function(t,r){var i=qX(t);r&&(i=[i.reduce(function(a,o){return[].concat(AC(a),AC(o))},[])]);var n=i.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return i.length===1?"".concat(n,"Z"):n},HX=function(t,r,i){var n=cl(t,i);return"".concat(n.slice(-1)==="Z"?n.slice(0,-1):n,"L").concat(cl(r.reverse(),i).slice(1))},p_=function(t){var r=t.points,i=t.className,n=t.baseLinePoints,a=t.connectNulls,o=DX(t,IX);if(!r||!r.length)return null;var s=Ot("recharts-polygon",i);if(n&&n.length){var l=o.stroke&&o.stroke!=="none",c=HX(r,n,a);return R.createElement("g",{className:s},R.createElement("path",Ya({},lt(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),l?R.createElement("path",Ya({},lt(o,!0),{fill:"none",d:cl(r,a)})):null,l?R.createElement("path",Ya({},lt(o,!0),{fill:"none",d:cl(n,a)})):null)}var h=cl(r,a);return R.createElement("path",Ya({},lt(o,!0),{fill:h.slice(-1)==="Z"?o.fill:"none",className:s,d:h}))};function ny(){return ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ny.apply(this,arguments)}var bc=function(t){var r=t.cx,i=t.cy,n=t.r,a=t.className,o=Ot("recharts-dot",a);return r===+r&&i===+i&&n===+n?J.createElement("circle",ny({},lt(t,!1),Ph(t),{className:o,cx:r,cy:i,r:n})):null};function Hl(e){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hl(e)}var UX=["x","y","top","left","width","height","className"];function ay(){return ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ay.apply(this,arguments)}function BC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function YX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BC(Object(r),!0).forEach(function(i){GX(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function GX(e,t,r){return t=VX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VX(e){var t=XX(e,"string");return Hl(t)=="symbol"?t:t+""}function XX(e,t){if(Hl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Hl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KX(e,t){if(e==null)return{};var r=ZX(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function ZX(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}var QX=function(t,r,i,n,a,o){return"M".concat(t,",").concat(a,"v").concat(n,"M").concat(o,",").concat(r,"h").concat(i)},JX=function(t){var r=t.x,i=r===void 0?0:r,n=t.y,a=n===void 0?0:n,o=t.top,s=o===void 0?0:o,l=t.left,c=l===void 0?0:l,h=t.width,u=h===void 0?0:h,d=t.height,f=d===void 0?0:d,y=t.className,p=KX(t,UX),g=YX({x:i,y:a,top:s,left:c,width:u,height:f},p);return!tt(i)||!tt(a)||!tt(u)||!tt(f)||!tt(s)||!tt(c)?null:R.createElement("path",ay({},lt(g,!0),{className:Ot("recharts-cross",y),d:QX(i,a,u,f,s,c)}))},tK=Jf,eK=T2,rK=vi;function iK(e,t){return e&&e.length?tK(e,rK(t),eK):void 0}var nK=iK;const aK=Ut(nK);var oK=Jf,sK=vi,lK=_2;function cK(e,t){return e&&e.length?oK(e,sK(t),lK):void 0}var hK=cK;const uK=Ut(hK);var fK=["cx","cy","angle","ticks","axisLine"],dK=["ticks","tick","angle","tickFormatter","stroke"];function Lo(e){"@babel/helpers - typeof";return Lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lo(e)}function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},hl.apply(this,arguments)}function $C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Rn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$C(Object(r),!0).forEach(function(i){nd(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$C(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function EC(e,t){if(e==null)return{};var r=pK(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function pK(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function gK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PC(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,y_(i.key),i)}}function yK(e,t,r){return t&&PC(e.prototype,t),r&&PC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mK(e,t,r){return t=gu(t),vK(e,g_()?Reflect.construct(t,r||[],gu(e).constructor):t.apply(e,r))}function vK(e,t){if(t&&(Lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bK(e)}function bK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g_=function(){return!!e})()}function gu(e){return gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gu(e)}function xK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oy(e,t)}function oy(e,t){return oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},oy(e,t)}function nd(e,t,r){return t=y_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y_(e){var t=CK(e,"string");return Lo(t)=="symbol"?t:t+""}function CK(e,t){if(Lo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Lo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ad=function(e){function t(){return gK(this,t),mK(this,t,arguments)}return xK(t,e),yK(t,[{key:"getTickValueCoord",value:function(i){var n=i.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return ee(s,l,n,o)}},{key:"getTickTextAnchor",value:function(){var i=this.props.orientation,n;switch(i){case"left":n="end";break;case"right":n="start";break;default:n="middle";break}return n}},{key:"getViewBox",value:function(){var i=this.props,n=i.cx,a=i.cy,o=i.angle,s=i.ticks,l=aK(s,function(h){return h.coordinate||0}),c=uK(s,function(h){return h.coordinate||0});return{cx:n,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var i=this.props,n=i.cx,a=i.cy,o=i.angle,s=i.ticks,l=i.axisLine,c=EC(i,fK),h=s.reduce(function(y,p){return[Math.min(y[0],p.coordinate),Math.max(y[1],p.coordinate)]},[1/0,-1/0]),u=ee(n,a,h[0],o),d=ee(n,a,h[1],o),f=Rn(Rn(Rn({},lt(c,!1)),{},{fill:"none"},lt(l,!1)),{},{x1:u.x,y1:u.y,x2:d.x,y2:d.y});return R.createElement("line",hl({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var i=this,n=this.props,a=n.ticks,o=n.tick,s=n.angle,l=n.tickFormatter,c=n.stroke,h=EC(n,dK),u=this.getTickTextAnchor(),d=lt(h,!1),f=lt(o,!1),y=a.map(function(p,g){var m=i.getTickValueCoord(p),v=Rn(Rn(Rn(Rn({textAnchor:u,transform:"rotate(".concat(90-s,", ").concat(m.x,", ").concat(m.y,")")},d),{},{stroke:"none",fill:c},f),{},{index:g},m),{},{payload:p});return R.createElement(At,hl({className:Ot("recharts-polar-radius-axis-tick",t_(o)),key:"tick-".concat(p.coordinate)},Hi(i.props,p,g)),t.renderTickItem(o,v,l?l(p.value,g):p.value))});return R.createElement(At,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var i=this.props,n=i.ticks,a=i.axisLine,o=i.tick;return!n||!n.length?null:R.createElement(At,{className:Ot("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),$e.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(i,n,a){var o;return R.isValidElement(i)?o=R.cloneElement(i,n):pt(i)?o=i(n):o=R.createElement(aa,hl({},n,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(J.PureComponent);nd(ad,"displayName","PolarRadiusAxis");nd(ad,"axisType","radiusAxis");nd(ad,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Yn.apply(this,arguments)}function LC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LC(Object(r),!0).forEach(function(i){od(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function wK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MC(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,v_(i.key),i)}}function SK(e,t,r){return t&&MC(e.prototype,t),r&&MC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kK(e,t,r){return t=yu(t),TK(e,m_()?Reflect.construct(t,r||[],yu(e).constructor):t.apply(e,r))}function TK(e,t){if(t&&(Mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _K(e)}function _K(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m_=function(){return!!e})()}function yu(e){return yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yu(e)}function AK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sy(e,t)}function sy(e,t){return sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},sy(e,t)}function od(e,t,r){return t=v_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v_(e){var t=OK(e,"string");return Mo(t)=="symbol"?t:t+""}function OK(e,t){if(Mo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Mo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BK=Math.PI/180,FC=1e-5,sd=function(e){function t(){return wK(this,t),kK(this,t,arguments)}return AK(t,e),SK(t,[{key:"getTickLineCoord",value:function(i){var n=this.props,a=n.cx,o=n.cy,s=n.radius,l=n.orientation,c=n.tickSize,h=c||8,u=ee(a,o,s,i.coordinate),d=ee(a,o,s+(l==="inner"?-1:1)*h,i.coordinate);return{x1:u.x,y1:u.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(i){var n=this.props.orientation,a=Math.cos(-i.coordinate*BK),o;return a>FC?o=n==="outer"?"start":"end":a<-FC?o=n==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var i=this.props,n=i.cx,a=i.cy,o=i.radius,s=i.axisLine,l=i.axisLineType,c=jn(jn({},lt(this.props,!1)),{},{fill:"none"},lt(s,!1));if(l==="circle")return R.createElement(bc,Yn({className:"recharts-polar-angle-axis-line"},c,{cx:n,cy:a,r:o}));var h=this.props.ticks,u=h.map(function(d){return ee(n,a,o,d.coordinate)});return R.createElement(p_,Yn({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var i=this,n=this.props,a=n.ticks,o=n.tick,s=n.tickLine,l=n.tickFormatter,c=n.stroke,h=lt(this.props,!1),u=lt(o,!1),d=jn(jn({},h),{},{fill:"none"},lt(s,!1)),f=a.map(function(y,p){var g=i.getTickLineCoord(y),m=i.getTickTextAnchor(y),v=jn(jn(jn({textAnchor:m},h),{},{stroke:"none",fill:c},u),{},{index:p,payload:y,x:g.x2,y:g.y2});return R.createElement(At,Yn({className:Ot("recharts-polar-angle-axis-tick",t_(o)),key:"tick-".concat(y.coordinate)},Hi(i.props,y,p)),s&&R.createElement("line",Yn({className:"recharts-polar-angle-axis-tick-line"},d,g)),o&&t.renderTickItem(o,v,l?l(y.value,p):y.value))});return R.createElement(At,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var i=this.props,n=i.ticks,a=i.radius,o=i.axisLine;return a<=0||!n||!n.length?null:R.createElement(At,{className:Ot("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(i,n,a){var o;return R.isValidElement(i)?o=R.cloneElement(i,n):pt(i)?o=i(n):o=R.createElement(aa,Yn({},n,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(J.PureComponent);od(sd,"displayName","PolarAngleAxis");od(sd,"axisType","angleAxis");od(sd,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var $K=hT,EK=$K(Object.getPrototypeOf,Object),Rv=EK,PK=Zi,LK=Rv,MK=Zr,FK="[object Object]",IK=Function.prototype,DK=Object.prototype,b_=IK.toString,RK=DK.hasOwnProperty,jK=b_.call(Object);function NK(e){if(!MK(e)||PK(e)!=FK)return!1;var t=LK(e);if(t===null)return!0;var r=RK.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&b_.call(r)==jK}var x_=NK;const zK=Ut(x_);var WK=Zi,qK=Zr,HK="[object Boolean]";function UK(e){return e===!0||e===!1||qK(e)&&WK(e)==HK}var YK=UK;const GK=Ut(YK);function Ul(e){"@babel/helpers - typeof";return Ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ul(e)}function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},mu.apply(this,arguments)}function VK(e,t){return QK(e)||ZK(e,t)||KK(e,t)||XK()}function XK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
69In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KK(e,t){if(e){if(typeof e=="string")return IC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return IC(e,t)}}function IC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function ZK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function QK(e){if(Array.isArray(e))return e}function DC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function RC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DC(Object(r),!0).forEach(function(i){JK(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function JK(e,t,r){return t=tZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tZ(e){var t=eZ(e,"string");return Ul(t)=="symbol"?t:t+""}function eZ(e,t){if(Ul(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Ul(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jC=function(t,r,i,n,a){var o=i-n,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+i,",").concat(r),s+="L ".concat(t+i-o/2,",").concat(r+a),s+="L ".concat(t+i-o/2-n,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},rZ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},iZ=function(t){var r=RC(RC({},rZ),t),i=J.useRef(),n=J.useState(-1),a=VK(n,2),o=a[0],s=a[1];J.useEffect(function(){if(i.current&&i.current.getTotalLength)try{var x=i.current.getTotalLength();x&&s(x)}catch{}},[]);var l=r.x,c=r.y,h=r.upperWidth,u=r.lowerWidth,d=r.height,f=r.className,y=r.animationEasing,p=r.animationDuration,g=r.animationBegin,m=r.isUpdateAnimationActive;if(l!==+l||c!==+c||h!==+h||u!==+u||d!==+d||h===0&&u===0||d===0)return null;var v=Ot("recharts-trapezoid",f);return m?R.createElement(ar,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:c},to:{upperWidth:h,lowerWidth:u,height:d,x:l,y:c},duration:p,animationEasing:y,isActive:m},function(x){var w=x.upperWidth,b=x.lowerWidth,C=x.height,k=x.x,T=x.y;return R.createElement(ar,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:p,easing:y},R.createElement("path",mu({},lt(r,!0),{className:v,d:jC(k,T,w,b,C),ref:i})))}):R.createElement("g",null,R.createElement("path",mu({},lt(r,!0),{className:v,d:jC(l,c,h,u,d)})))},nZ=["option","shapeType","propTransformer","activeClassName","isActive"];function Yl(e){"@babel/helpers - typeof";return Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(e)}function aZ(e,t){if(e==null)return{};var r=oZ(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function oZ(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function NC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function vu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NC(Object(r),!0).forEach(function(i){sZ(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function sZ(e,t,r){return t=lZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lZ(e){var t=cZ(e,"string");return Yl(t)=="symbol"?t:t+""}function cZ(e,t){if(Yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Yl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hZ(e,t){return vu(vu({},t),e)}function uZ(e,t){return e==="symbols"}function zC(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return R.createElement(id,r);case"trapezoid":return R.createElement(iZ,r);case"sector":return R.createElement(n_,r);case"symbols":if(uZ(t))return R.createElement(Nf,r);break;default:return null}}function C_(e){return J.isValidElement(e)?e.props:e}function Gl(e){var t=e.option,r=e.shapeType,i=e.propTransformer,n=i===void 0?hZ:i,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=aZ(e,nZ),c;if(J.isValidElement(t))c=J.cloneElement(t,vu(vu({},l),C_(t)));else if(pt(t))c=t(l);else if(zK(t)&&!GK(t)){var h=n(t,l);c=R.createElement(zC,{shapeType:r,elementProps:h})}else{var u=l;c=R.createElement(zC,{shapeType:r,elementProps:u})}return s?R.createElement(At,{className:o},c):c}function ld(e,t){return t!=null&&"trapezoids"in e.props}function cd(e,t){return t!=null&&"sectors"in e.props}function Vl(e,t){return t!=null&&"points"in e.props}function fZ(e,t){var r,i,n=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(i=t.labelViewBox)===null||i===void 0?void 0:i.y)||e.y===t.y;return n&&a}function dZ(e,t){var r=e.endAngle===t.endAngle,i=e.startAngle===t.startAngle;return r&&i}function pZ(e,t){var r=e.x===t.x,i=e.y===t.y,n=e.z===t.z;return r&&i&&n}function gZ(e,t){var r;return ld(e,t)?r=fZ:cd(e,t)?r=dZ:Vl(e,t)&&(r=pZ),r}function yZ(e,t){var r;return ld(e,t)?r="trapezoids":cd(e,t)?r="sectors":Vl(e,t)&&(r="points"),r}function mZ(e,t){if(ld(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(cd(e,t)){var i;return(i=t.tooltipPayload)===null||i===void 0||(i=i[0])===null||i===void 0||(i=i.payload)===null||i===void 0?void 0:i.payload}return Vl(e,t)?t.payload:{}}function vZ(e){var t=e.activeTooltipItem,r=e.graphicalItem,i=e.itemData,n=yZ(r,t),a=mZ(r,t),o=i.filter(function(l,c){var h=Vi(a,l),u=r.props[n].filter(function(y){var p=gZ(r,t);return p(y,t)}),d=r.props[n].indexOf(u[u.length-1]),f=c===d;return h&&f}),s=i.indexOf(o[o.length-1]);return s}var ph;function Fo(e){"@babel/helpers - typeof";return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(e)}function Ga(){return Ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ga.apply(this,arguments)}function WC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WC(Object(r),!0).forEach(function(i){_r(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function bZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qC(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,S_(i.key),i)}}function xZ(e,t,r){return t&&qC(e.prototype,t),r&&qC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function CZ(e,t,r){return t=bu(t),wZ(e,w_()?Reflect.construct(t,r||[],bu(e).constructor):t.apply(e,r))}function wZ(e,t){if(t&&(Fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SZ(e)}function SZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w_=function(){return!!e})()}function bu(e){return bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bu(e)}function kZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ly(e,t)}function ly(e,t){return ly=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},ly(e,t)}function _r(e,t,r){return t=S_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S_(e){var t=TZ(e,"string");return Fo(t)=="symbol"?t:t+""}function TZ(e,t){if(Fo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Fo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pn=function(e){function t(r){var i;return bZ(this,t),i=CZ(this,t,[r]),_r(i,"pieRef",null),_r(i,"sectorRefs",[]),_r(i,"id",Qi("recharts-pie-")),_r(i,"handleAnimationEnd",function(){var n=i.props.onAnimationEnd;i.setState({isAnimationFinished:!0}),pt(n)&&n()}),_r(i,"handleAnimationStart",function(){var n=i.props.onAnimationStart;i.setState({isAnimationFinished:!1}),pt(n)&&n()}),i.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},i}return kZ(t,e),xZ(t,[{key:"isActiveIndex",value:function(i){var n=this.props.activeIndex;return Array.isArray(n)?n.indexOf(i)!==-1:i===n}},{key:"hasActiveIndex",value:function(){var i=this.props.activeIndex;return Array.isArray(i)?i.length!==0:i||i===0}},{key:"renderLabels",value:function(i){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,l=a.dataKey,c=a.valueKey,h=lt(this.props,!1),u=lt(o,!1),d=lt(s,!1),f=o&&o.offsetRadius||20,y=i.map(function(p,g){var m=(p.startAngle+p.endAngle)/2,v=ee(p.cx,p.cy,p.outerRadius+f,m),x=te(te(te(te({},h),p),{},{stroke:"none"},u),{},{index:g,textAnchor:t.getTextAnchor(v.x,p.cx)},v),w=te(te(te(te({},h),p),{},{fill:"none",stroke:p.fill},d),{},{index:g,points:[ee(p.cx,p.cy,p.outerRadius,m),v]}),b=l;return yt(l)&&yt(c)?b="value":yt(l)&&(b=c),R.createElement(At,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(g)},s&&t.renderLabelLineItem(s,w,"line"),t.renderLabelItem(o,x,Wt(p,b)))});return R.createElement(At,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(i){var n=this,a=this.props,o=a.activeShape,s=a.blendStroke,l=a.inactiveShape;return i.map(function(c,h){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&i.length!==1)return null;var u=n.isActiveIndex(h),d=l&&n.hasActiveIndex()?l:null,f=u?o:d,y=te(te({},c),{},{stroke:s?c.fill:c.stroke,tabIndex:-1});return R.createElement(At,Ga({ref:function(g){g&&!n.sectorRefs.includes(g)&&n.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},Hi(n.props,c,h),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(h)}),R.createElement(Gl,Ga({option:f,isActive:u,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var i=this,n=this.props,a=n.sectors,o=n.isAnimationActive,s=n.animationBegin,l=n.animationDuration,c=n.animationEasing,h=n.animationId,u=this.state,d=u.prevSectors,f=u.prevIsAnimationActive;return R.createElement(ar,{begin:s,duration:l,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(h,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var p=y.t,g=[],m=a&&a[0],v=m.startAngle;return a.forEach(function(x,w){var b=d&&d[w],C=w>0?fr(x,"paddingAngle",0):0;if(b){var k=Rt(b.endAngle-b.startAngle,x.endAngle-x.startAngle),T=te(te({},x),{},{startAngle:v+C,endAngle:v+k(p)+C});g.push(T),v=T.endAngle}else{var E=x.endAngle,L=x.startAngle,P=Rt(0,E-L),I=P(p),D=te(te({},x),{},{startAngle:v+C,endAngle:v+I+C});g.push(D),v=D.endAngle}}),R.createElement(At,null,i.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(i){var n=this;i.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++n.state.sectorToFocus%n.sectorRefs.length;n.sectorRefs[o].focus(),n.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--n.state.sectorToFocus<0?n.sectorRefs.length-1:n.state.sectorToFocus%n.sectorRefs.length;n.sectorRefs[s].focus(),n.setState({sectorToFocus:s});break}case"Escape":{n.sectorRefs[n.state.sectorToFocus].blur(),n.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var i=this.props,n=i.sectors,a=i.isAnimationActive,o=this.state.prevSectors;return a&&n&&n.length&&(!o||!Vi(o,n))?this.renderSectorsWithAnimation():this.renderSectorsStatically(n)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var i=this,n=this.props,a=n.hide,o=n.sectors,s=n.className,l=n.label,c=n.cx,h=n.cy,u=n.innerRadius,d=n.outerRadius,f=n.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!tt(c)||!tt(h)||!tt(u)||!tt(d))return null;var p=Ot("recharts-pie",s);return R.createElement(At,{tabIndex:this.props.rootTabIndex,className:p,ref:function(m){i.pieRef=m}},this.renderSectors(),l&&this.renderLabels(o),$e.renderCallByParent(this.props,null,!1),(!f||y)&&Or.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(i,n){return n.prevIsAnimationActive!==i.isAnimationActive?{prevIsAnimationActive:i.isAnimationActive,prevAnimationId:i.animationId,curSectors:i.sectors,prevSectors:[],isAnimationFinished:!0}:i.isAnimationActive&&i.animationId!==n.prevAnimationId?{prevAnimationId:i.animationId,curSectors:i.sectors,prevSectors:n.curSectors,isAnimationFinished:!0}:i.sectors!==n.curSectors?{curSectors:i.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(i,n){return i>n?"start":i<n?"end":"middle"}},{key:"renderLabelLineItem",value:function(i,n,a){if(R.isValidElement(i))return R.cloneElement(i,n);if(pt(i))return i(n);var o=Ot("recharts-pie-label-line",typeof i!="boolean"?i.className:"");return R.createElement(bn,Ga({},n,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(i,n,a){if(R.isValidElement(i))return R.cloneElement(i,n);var o=a;if(pt(i)&&(o=i(n),R.isValidElement(o)))return o;var s=Ot("recharts-pie-label-text",typeof i!="boolean"&&!pt(i)?i.className:"");return R.createElement(aa,Ga({},n,{alignmentBaseline:"middle",className:s}),o)}}])}(J.PureComponent);ph=Pn;_r(Pn,"displayName","Pie");_r(Pn,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!$r.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});_r(Pn,"parseDeltaAngle",function(e,t){var r=Je(t-e),i=Math.min(Math.abs(t-e),360);return r*i});_r(Pn,"getRealPieData",function(e){var t=e.data,r=e.children,i=lt(e,!1),n=Ve(r,pc);return t&&t.length?t.map(function(a,o){return te(te(te({payload:a},i),a),n&&n[o]&&n[o].props)}):n&&n.length?n.map(function(a){return te(te({},i),a.props)}):[]});_r(Pn,"parseCoordinateOfPie",function(e,t){var r=t.top,i=t.left,n=t.width,a=t.height,o=J2(n,a),s=i+tr(e.cx,n,n/2),l=r+tr(e.cy,a,a/2),c=tr(e.innerRadius,o,0),h=tr(e.outerRadius,o,o*.8),u=e.maxRadius||Math.sqrt(n*n+a*a)/2;return{cx:s,cy:l,innerRadius:c,outerRadius:h,maxRadius:u}});_r(Pn,"getComposedData",function(e){var t=e.item,r=e.offset,i=t.type.defaultProps!==void 0?te(te({},t.type.defaultProps),t.props):t.props,n=ph.getRealPieData(i);if(!n||!n.length)return null;var a=i.cornerRadius,o=i.startAngle,s=i.endAngle,l=i.paddingAngle,c=i.dataKey,h=i.nameKey,u=i.valueKey,d=i.tooltipType,f=Math.abs(i.minAngle),y=ph.parseCoordinateOfPie(i,r),p=ph.parseDeltaAngle(o,s),g=Math.abs(p),m=c;yt(c)&&yt(u)?(Ur(!1,`Use "dataKey" to specify the value of pie,
70      the props "valueKey" will be deprecated in 1.1.0`),m="value"):yt(c)&&(Ur(!1,`Use "dataKey" to specify the value of pie,
71      the props "valueKey" will be deprecated in 1.1.0`),m=u);var v=n.filter(function(T){return Wt(T,m,0)!==0}).length,x=(g>=360?v:v-1)*l,w=g-v*f-x,b=n.reduce(function(T,E){var L=Wt(E,m,0);return T+(tt(L)?L:0)},0),C;if(b>0){var k;C=n.map(function(T,E){var L=Wt(T,m,0),P=Wt(T,h,E),I=(tt(L)?L:0)/b,D;E?D=k.endAngle+Je(p)*l*(L!==0?1:0):D=o;var _=D+Je(p)*((L!==0?f:0)+I*w),B=(D+_)/2,O=(y.innerRadius+y.outerRadius)/2,M=[{name:P,value:L,payload:T,dataKey:m,type:d}],F=ee(y.cx,y.cy,O,B);return k=te(te(te({percent:I,cornerRadius:a,name:P,tooltipPayload:M,midAngle:B,middleRadius:O,tooltipPosition:F},T),y),{},{value:Wt(T,m),startAngle:D,endAngle:_,payload:T,paddingAngle:Je(p)*l}),k})}return te(te({},y),{},{sectors:C,data:n})});var _Z=Math.ceil,AZ=Math.max;function OZ(e,t,r,i){for(var n=-1,a=AZ(_Z((t-e)/(r||1)),0),o=Array(a);a--;)o[i?a:++n]=e,e+=r;return o}var BZ=OZ,$Z=ET,HC=1/0,EZ=17976931348623157e292;function PZ(e){if(!e)return e===0?e:0;if(e=$Z(e),e===HC||e===-HC){var t=e<0?-1:1;return t*EZ}return e===e?e:0}var k_=PZ,LZ=BZ,MZ=Hf,Ap=k_;function FZ(e){return function(t,r,i){return i&&typeof i!="number"&&MZ(t,r,i)&&(r=i=void 0),t=Ap(t),r===void 0?(r=t,t=0):r=Ap(r),i=i===void 0?t<r?1:-1:Ap(i),LZ(t,r,i,e)}}var IZ=FZ,DZ=IZ,RZ=DZ(),jZ=RZ;const xu=Ut(jZ);function Xl(e){"@babel/helpers - typeof";return Xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xl(e)}function UC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function YC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UC(Object(r),!0).forEach(function(i){T_(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function T_(e,t,r){return t=NZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NZ(e){var t=zZ(e,"string");return Xl(t)=="symbol"?t:t+""}function zZ(e,t){if(Xl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Xl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WZ=["Webkit","Moz","O","ms"],qZ=function(t,r){var i=t.replace(/(\w)/,function(a){return a.toUpperCase()}),n=WZ.reduce(function(a,o){return YC(YC({},a),{},T_({},o+i,r))},{});return n[t]=r,n};function Io(e){"@babel/helpers - typeof";return Io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Io(e)}function Cu(){return Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Cu.apply(this,arguments)}function GC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Op(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GC(Object(r),!0).forEach(function(i){gr(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function HZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VC(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,A_(i.key),i)}}function UZ(e,t,r){return t&&VC(e.prototype,t),r&&VC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function YZ(e,t,r){return t=wu(t),GZ(e,__()?Reflect.construct(t,r||[],wu(e).constructor):t.apply(e,r))}function GZ(e,t){if(t&&(Io(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VZ(e)}function VZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function __(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(__=function(){return!!e})()}function wu(e){return wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wu(e)}function XZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cy(e,t)}function cy(e,t){return cy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},cy(e,t)}function gr(e,t,r){return t=A_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A_(e){var t=KZ(e,"string");return Io(t)=="symbol"?t:t+""}function KZ(e,t){if(Io(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Io(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ZZ=function(t){var r=t.data,i=t.startIndex,n=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=al().domain(xu(0,l)).range([a,a+o-s]),h=c.domain().map(function(u){return c(u)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(i),endX:c(n),scale:c,scaleValues:h}},XC=function(t){return t.changedTouches&&!!t.changedTouches.length},Do=function(e){function t(r){var i;return HZ(this,t),i=YZ(this,t,[r]),gr(i,"handleDrag",function(n){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(n):i.state.isSlideMoving&&i.handleSlideDrag(n)}),gr(i,"handleTouchMove",function(n){n.changedTouches!=null&&n.changedTouches.length>0&&i.handleDrag(n.changedTouches[0])}),gr(i,"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var n=i.props,a=n.endIndex,o=n.onDragEnd,s=n.startIndex;o==null||o({endIndex:a,startIndex:s})}),i.detachDragEndListener()}),gr(i,"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),gr(i,"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),gr(i,"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),gr(i,"handleSlideDragStart",function(n){var a=XC(n)?n.changedTouches[0]:n;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(i,"startX"),endX:i.handleTravellerDragStart.bind(i,"endX")},i.state={},i}return XZ(t,e),UZ(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var n=i.startX,a=i.endX,o=this.state.scaleValues,s=this.props,l=s.gap,c=s.data,h=c.length-1,u=Math.min(n,a),d=Math.max(n,a),f=t.getIndexInRange(o,u),y=t.getIndexInRange(o,d);return{startIndex:f-f%l,endIndex:y===h?h:y-y%l}}},{key:"getTextOfTick",value:function(i){var n=this.props,a=n.data,o=n.tickFormatter,s=n.dataKey,l=Wt(a[i],s,i);return pt(o)?o(l,i):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(i){var n=this.state,a=n.slideMoveStartX,o=n.startX,s=n.endX,l=this.props,c=l.x,h=l.width,u=l.travellerWidth,d=l.startIndex,f=l.endIndex,y=l.onChange,p=i.pageX-a;p>0?p=Math.min(p,c+h-u-s,c+h-u-o):p<0&&(p=Math.max(p,c-o,c-s));var g=this.getIndex({startX:o+p,endX:s+p});(g.startIndex!==d||g.endIndex!==f)&&y&&y(g),this.setState({startX:o+p,endX:s+p,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,n){var a=XC(n)?n.changedTouches[0]:n;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var n=this.state,a=n.brushMoveStartX,o=n.movingTravellerId,s=n.endX,l=n.startX,c=this.state[o],h=this.props,u=h.x,d=h.width,f=h.travellerWidth,y=h.onChange,p=h.gap,g=h.data,m={startX:this.state.startX,endX:this.state.endX},v=i.pageX-a;v>0?v=Math.min(v,u+d-f-c):v<0&&(v=Math.max(v,u-c)),m[o]=c+v;var x=this.getIndex(m),w=x.startIndex,b=x.endIndex,C=function(){var T=g.length-1;return o==="startX"&&(s>l?w%p===0:b%p===0)||s<l&&b===T||o==="endX"&&(s>l?b%p===0:w%p===0)||s>l&&b===T};this.setState(gr(gr({},o,c+v),"brushMoveStartX",i.pageX),function(){y&&C()&&y(x)})}},{key:"handleTravellerMoveKeyboard",value:function(i,n){var a=this,o=this.state,s=o.scaleValues,l=o.startX,c=o.endX,h=this.state[n],u=s.indexOf(h);if(u!==-1){var d=u+i;if(!(d===-1||d>=s.length)){var f=s[d];n==="startX"&&f>=c||n==="endX"&&f<=l||this.setState(gr({},n,f),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var i=this.props,n=i.x,a=i.y,o=i.width,s=i.height,l=i.fill,c=i.stroke;return R.createElement("rect",{stroke:c,fill:l,x:n,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var i=this.props,n=i.x,a=i.y,o=i.width,s=i.height,l=i.data,c=i.children,h=i.padding,u=J.Children.only(c);return u?R.cloneElement(u,{x:n,y:a,width:o,height:s,margin:h,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(i,n){var a,o,s=this,l=this.props,c=l.y,h=l.travellerWidth,u=l.height,d=l.traveller,f=l.ariaLabel,y=l.data,p=l.startIndex,g=l.endIndex,m=Math.max(i,this.props.x),v=Op(Op({},lt(this.props,!1)),{},{x:m,y:c,width:h,height:u}),x=f||"Min value: ".concat((a=y[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[g])===null||o===void 0?void 0:o.name);return R.createElement(At,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":i,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),s.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,n))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,v))}},{key:"renderSlide",value:function(i,n){var a=this.props,o=a.y,s=a.height,l=a.stroke,c=a.travellerWidth,h=Math.min(i,n)+c,u=Math.max(Math.abs(n-i)-c,0);return R.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:h,y:o,width:u,height:s})}},{key:"renderText",value:function(){var i=this.props,n=i.startIndex,a=i.endIndex,o=i.y,s=i.height,l=i.travellerWidth,c=i.stroke,h=this.state,u=h.startX,d=h.endX,f=5,y={pointerEvents:"none",fill:c};return R.createElement(At,{className:"recharts-brush-texts"},R.createElement(aa,Cu({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,d)-f,y:o+s/2},y),this.getTextOfTick(n)),R.createElement(aa,Cu({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,d)+l+f,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var i=this.props,n=i.data,a=i.className,o=i.children,s=i.x,l=i.y,c=i.width,h=i.height,u=i.alwaysShowText,d=this.state,f=d.startX,y=d.endX,p=d.isTextActive,g=d.isSlideMoving,m=d.isTravellerMoving,v=d.isTravellerFocused;
71if(!n||!n.length||!tt(s)||!tt(l)||!tt(c)||!tt(h)||c<=0||h<=0)return null;var x=Ot("recharts-brush",a),w=R.Children.count(o)===1,b=qZ("userSelect","none");return R.createElement(At,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(f,y),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(y,"endX"),(p||g||m||v||u)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var n=i.x,a=i.y,o=i.width,s=i.height,l=i.stroke,c=Math.floor(a+s/2)-1;return R.createElement(R.Fragment,null,R.createElement("rect",{x:n,y:a,width:o,height:s,fill:l,stroke:"none"}),R.createElement("line",{x1:n+1,y1:c,x2:n+o-1,y2:c,fill:"none",stroke:"#fff"}),R.createElement("line",{x1:n+1,y1:c+2,x2:n+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,n){var a;return R.isValidElement(i)?a=R.cloneElement(i,n):pt(i)?a=i(n):a=t.renderDefaultTraveller(n),a}},{key:"getDerivedStateFromProps",value:function(i,n){var a=i.data,o=i.width,s=i.x,l=i.travellerWidth,c=i.updateId,h=i.startIndex,u=i.endIndex;if(a!==n.prevData||c!==n.prevUpdateId)return Op({prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o},a&&a.length?ZZ({data:a,width:o,x:s,travellerWidth:l,startIndex:h,endIndex:u}):{scale:null,scaleValues:null});if(n.scale&&(o!==n.prevWidth||s!==n.prevX||l!==n.prevTravellerWidth)){n.scale.range([s,s+o-l]);var d=n.scale.domain().map(function(f){return n.scale(f)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o,startX:n.scale(i.startIndex),endX:n.scale(i.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(i,n){for(var a=i.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);i[l]>n?s=l:o=l}return n>=i[s]?s:o}}])}(J.PureComponent);gr(Do,"displayName","Brush");gr(Do,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var QZ=fv;function JZ(e,t){var r;return QZ(e,function(i,n,a){return r=t(i,n,a),!r}),!!r}var tQ=JZ,eQ=eT,rQ=vi,iQ=tQ,nQ=sr,aQ=Hf;function oQ(e,t,r){var i=nQ(e)?eQ:iQ;return r&&aQ(e,t,r)&&(t=void 0),i(e,rQ(t))}var sQ=oQ;const lQ=Ut(sQ);var gi=function(t,r){var i=t.alwaysShow,n=t.ifOverflow;return i&&(n="extendDomain"),n===r},KC=TT;function cQ(e,t,r){t=="__proto__"&&KC?KC(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var jv=cQ,hQ=jv,uQ=wT,fQ=vi;function dQ(e,t){var r={};return t=fQ(t),uQ(e,function(i,n,a){hQ(r,n,t(i,n,a))}),r}var pQ=dQ;const gQ=Ut(pQ);function yQ(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(!t(e[r],r,e))return!1;return!0}var mQ=yQ,vQ=fv;function bQ(e,t){var r=!0;return vQ(e,function(i,n,a){return r=!!t(i,n,a),r}),r}var xQ=bQ,CQ=mQ,wQ=xQ,SQ=vi,kQ=sr,TQ=Hf;function _Q(e,t,r){var i=kQ(e)?CQ:wQ;return r&&TQ(e,t,r)&&(t=void 0),i(e,SQ(t))}var AQ=_Q;const O_=Ut(AQ);var OQ=["x","y"];function Kl(e){"@babel/helpers - typeof";return Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kl(e)}function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},hy.apply(this,arguments)}function ZC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Rs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZC(Object(r),!0).forEach(function(i){BQ(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function BQ(e,t,r){return t=$Q(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $Q(e){var t=EQ(e,"string");return Kl(t)=="symbol"?t:t+""}function EQ(e,t){if(Kl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Kl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PQ(e,t){if(e==null)return{};var r=LQ(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function LQ(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;
vendor: 128,866 bytes, lines 71-76
71r[i]=e[i]}return r}function MQ(e,t){var r=e.x,i=e.y,n=PQ(e,OQ),a="".concat(r),o=parseInt(a,10),s="".concat(i),l=parseInt(s,10),c="".concat(t.height||n.height),h=parseInt(c,10),u="".concat(t.width||n.width),d=parseInt(u,10);return Rs(Rs(Rs(Rs(Rs({},t),n),o?{x:o}:{}),l?{y:l}:{}),{},{height:h,width:d,name:t.name,radius:t.radius})}function QC(e){return R.createElement(Gl,hy({shapeType:"rectangle",propTransformer:MQ,activeClassName:"recharts-active-bar"},e))}var FQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(i,n){if(typeof t=="number")return t;var a=tt(i)||H5(i);return a?t(i,n):(a||la(),r)}},IQ=["value","background"],B_;function Ro(e){"@babel/helpers - typeof";return Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ro(e)}function DQ(e,t){if(e==null)return{};var r=RQ(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function RQ(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Su.apply(this,arguments)}function JC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JC(Object(r),!0).forEach(function(i){fn(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JC(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function jQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,E_(i.key),i)}}function NQ(e,t,r){return t&&tw(e.prototype,t),r&&tw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zQ(e,t,r){return t=ku(t),WQ(e,$_()?Reflect.construct(t,r||[],ku(e).constructor):t.apply(e,r))}function WQ(e,t){if(t&&(Ro(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qQ(e)}function qQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($_=function(){return!!e})()}function ku(e){return ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ku(e)}function HQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uy(e,t)}function uy(e,t){return uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},uy(e,t)}function fn(e,t,r){return t=E_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E_(e){var t=UQ(e,"string");return Ro(t)=="symbol"?t:t+""}function UQ(e,t){if(Ro(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Ro(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wa=function(e){function t(){var r;jQ(this,t);for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return r=zQ(this,t,[].concat(n)),fn(r,"state",{isAnimationFinished:!1}),fn(r,"id",Qi("recharts-bar-")),fn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),fn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return HQ(t,e),NQ(t,[{key:"renderRectanglesStatically",value:function(i){var n=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,c=a.activeBar,h=lt(this.props,!1);return i&&i.map(function(u,d){var f=d===l,y=f?c:o,p=ge(ge(ge({},h),u),{},{isActive:f,option:y,index:d,dataKey:s,onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd});return R.createElement(At,Su({className:"recharts-bar-rectangle"},Hi(n.props,u,d),{key:"rectangle-".concat(u==null?void 0:u.x,"-").concat(u==null?void 0:u.y,"-").concat(u==null?void 0:u.value,"-").concat(d)}),R.createElement(QC,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var i=this,n=this.props,a=n.data,o=n.layout,s=n.isAnimationActive,l=n.animationBegin,c=n.animationDuration,h=n.animationEasing,u=n.animationId,d=this.state.prevData;return R.createElement(ar,{begin:l,duration:c,isActive:s,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(f){var y=f.t,p=a.map(function(g,m){var v=d&&d[m];if(v){var x=Rt(v.x,g.x),w=Rt(v.y,g.y),b=Rt(v.width,g.width),C=Rt(v.height,g.height);return ge(ge({},g),{},{x:x(y),y:w(y),width:b(y),height:C(y)})}if(o==="horizontal"){var k=Rt(0,g.height),T=k(y);return ge(ge({},g),{},{y:g.y+g.height-T,height:T})}var E=Rt(0,g.width),L=E(y);return ge(ge({},g),{},{width:L})});return R.createElement(At,null,i.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var i=this.props,n=i.data,a=i.isAnimationActive,o=this.state.prevData;return a&&n&&n.length&&(!o||!Vi(o,n))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(n)}},{key:"renderBackground",value:function(){var i=this,n=this.props,a=n.data,o=n.dataKey,s=n.activeIndex,l=lt(this.props.background,!1);return a.map(function(c,h){c.value;var u=c.background,d=DQ(c,IQ);if(!u)return null;var f=ge(ge(ge(ge(ge({},d),{},{fill:"#eee"},u),l),Hi(i.props,c,h)),{},{onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd,dataKey:o,index:h,className:"recharts-bar-background-rectangle"});return R.createElement(QC,Su({key:"background-bar-".concat(h),option:i.props.background,isActive:h===s},f))})}},{key:"renderErrorBar",value:function(i,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,c=a.layout,h=a.children,u=Ve(h,xs);if(!u)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,f=function(g,m){var v=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:v,errorVal:Wt(g,m)}},y={clipPath:i?"url(#clipPath-".concat(n,")"):null};return R.createElement(At,y,u.map(function(p){return R.cloneElement(p,{key:"error-bar-".concat(n,"-").concat(p.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,offset:d,dataPointFormatter:f})}))}},{key:"render",value:function(){var i=this.props,n=i.hide,a=i.data,o=i.className,s=i.xAxis,l=i.yAxis,c=i.left,h=i.top,u=i.width,d=i.height,f=i.isAnimationActive,y=i.background,p=i.id;if(n||!a||!a.length)return null;var g=this.state.isAnimationFinished,m=Ot("recharts-bar",o),v=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,w=v||x,b=yt(p)?this.id:p;return R.createElement(At,{className:m},v||x?R.createElement("defs",null,R.createElement("clipPath",{id:"clipPath-".concat(b)},R.createElement("rect",{x:v?c:c-u/2,y:x?h:h-d/2,width:v?u:u*2,height:x?d:d*2}))):null,R.createElement(At,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(b,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,b),(!f||g)&&Or.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(i,n){return i.animationId!==n.prevAnimationId?{prevAnimationId:i.animationId,curData:i.data,prevData:n.curData}:i.data!==n.curData?{curData:i.data}:null}}])}(J.PureComponent);B_=wa;fn(wa,"displayName","Bar");fn(wa,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!$r.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});fn(wa,"getComposedData",function(e){var t=e.props,r=e.item,i=e.barPosition,n=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,h=e.dataStartIndex,u=e.displayedData,d=e.offset,f=fG(i,r);if(!f)return null;var y=t.layout,p=r.type.defaultProps,g=p!==void 0?ge(ge({},p),r.props):r.props,m=g.dataKey,v=g.children,x=g.minPointSize,w=y==="horizontal"?o:a,b=c?w.scale.domain():null,C=bG({numericAxis:w}),k=Ve(v,pc),T=u.map(function(E,L){var P,I,D,_,B,O;c?P=dG(c[h+L],b):(P=Wt(E,m),Array.isArray(P)||(P=[C,P]));var M=FQ(x,B_.defaultProps.minPointSize)(P[1],L);if(y==="horizontal"){var F,$=[o.scale(P[0]),o.scale(P[1])],N=$[0],W=$[1];I=Z1({axis:a,ticks:s,bandSize:n,offset:f.offset,entry:E,index:L}),D=(F=W??N)!==null&&F!==void 0?F:void 0,_=f.size;var U=N-W;if(B=Number.isNaN(U)?0:U,O={x:I,y:o.y,width:_,height:o.height},Math.abs(M)>0&&Math.abs(B)<Math.abs(M)){var Q=Je(B||M)*(Math.abs(M)-Math.abs(B));D-=Q,B+=Q}}else{var it=[a.scale(P[0]),a.scale(P[1])],nt=it[0],vt=it[1];if(I=nt,D=Z1({axis:o,ticks:l,bandSize:n,offset:f.offset,entry:E,index:L}),_=vt-nt,B=f.size,O={x:a.x,y:D,width:a.width,height:B},Math.abs(M)>0&&Math.abs(_)<Math.abs(M)){var Pt=Je(_||M)*(Math.abs(M)-Math.abs(_));_+=Pt}}return ge(ge(ge({},E),{},{x:I,y:D,width:_,height:B,value:c?P:P[1],payload:E,background:O},k&&k[L]&&k[L].props),{},{tooltipPayload:[Z2(r,E)],tooltipPosition:{x:I+_/2,y:D+B/2}})});return ge({data:T,layout:y},d)});function Zl(e){"@babel/helpers - typeof";return Zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zl(e)}function YQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ew(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,P_(i.key),i)}}function GQ(e,t,r){return t&&ew(e.prototype,t),r&&ew(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(i){hd(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function hd(e,t,r){return t=P_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P_(e){var t=VQ(e,"string");return Zl(t)=="symbol"?t:t+""}function VQ(e,t){if(Zl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Zl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xc=function(t,r,i,n,a){var o=t.width,s=t.height,l=t.layout,c=t.children,h=Object.keys(r),u={left:i.left,leftMirror:i.left,right:o-i.right,rightMirror:o-i.right,top:i.top,topMirror:i.top,bottom:s-i.bottom,bottomMirror:s-i.bottom},d=!!Ue(c,wa);return h.reduce(function(f,y){var p=r[y],g=p.orientation,m=p.domain,v=p.padding,x=v===void 0?{}:v,w=p.mirror,b=p.reversed,C="".concat(g).concat(w?"Mirror":""),k,T,E,L,P;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var I=m[1]-m[0],D=1/0,_=p.categoricalDomain.sort(V5);if(_.forEach(function(it,nt){nt>0&&(D=Math.min((it||0)-(_[nt-1]||0),D))}),Number.isFinite(D)){var B=D/I,O=p.layout==="vertical"?i.height:i.width;if(p.padding==="gap"&&(k=B*O/2),p.padding==="no-gap"){var M=tr(t.barCategoryGap,B*O),F=B*O/2;k=F-M-(F-M)/O*M}}}n==="xAxis"?T=[i.left+(x.left||0)+(k||0),i.left+i.width-(x.right||0)-(k||0)]:n==="yAxis"?T=l==="horizontal"?[i.top+i.height-(x.bottom||0),i.top+(x.top||0)]:[i.top+(x.top||0)+(k||0),i.top+i.height-(x.bottom||0)-(k||0)]:T=p.range,b&&(T=[T[1],T[0]]);var $=G2(p,a,d),N=$.scale,W=$.realScaleType;N.domain(m).range(T),V2(N);var U=X2(N,Rr(Rr({},p),{},{realScaleType:W}));n==="xAxis"?(P=g==="top"&&!w||g==="bottom"&&w,E=i.left,L=u[C]-P*p.height):n==="yAxis"&&(P=g==="left"&&!w||g==="right"&&w,E=u[C]-P*p.width,L=i.top);var Q=Rr(Rr(Rr({},p),U),{},{realScaleType:W,x:E,y:L,scale:N,width:n==="xAxis"?i.width:p.width,height:n==="yAxis"?i.height:p.height});return Q.bandSize=lu(Q,U),!p.hide&&n==="xAxis"?u[C]+=(P?-1:1)*Q.height:p.hide||(u[C]+=(P?-1:1)*Q.width),Rr(Rr({},f),{},hd({},y,Q))},{})},L_=function(t,r){var i=t.x,n=t.y,a=r.x,o=r.y;return{x:Math.min(i,a),y:Math.min(n,o),width:Math.abs(a-i),height:Math.abs(o-n)}},XQ=function(t){var r=t.x1,i=t.y1,n=t.x2,a=t.y2;return L_({x:r,y:i},{x:n,y:a})},M_=function(){function e(t){YQ(this,e),this.scale=t}return GQ(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i.bandAware,a=i.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(n){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var i=this.range(),n=i[0],a=i[i.length-1];return n<=a?r>=n&&r<=a:r>=a&&r<=n}}],[{key:"create",value:function(r){return new e(r)}}])}();hd(M_,"EPS",1e-4);var Nv=function(t){var r=Object.keys(t).reduce(function(i,n){return Rr(Rr({},i),{},hd({},n,M_.create(t[n])))},{});return Rr(Rr({},r),{},{apply:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return gQ(n,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(n){return O_(n,function(a,o){return r[o].isInRange(a)})}})};function KQ(e){return(e%180+180)%180}var ZQ=function(t){var r=t.width,i=t.height,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=KQ(n),o=a*Math.PI/180,s=Math.atan(i/r),l=o>s&&o<Math.PI-s?i/Math.sin(o):r/Math.cos(o);return Math.abs(l)},QQ=vi,JQ=ds,tJ=ps;function eJ(e){return function(t,r,i){var n=Object(t);if(!JQ(t)){var a=QQ(r);t=tJ(t),r=function(s){return a(n[s],s,n)}}var o=e(t,r,i);return o>-1?n[a?t[o]:o]:void 0}}var rJ=eJ,iJ=k_;function nJ(e){var t=iJ(e),r=t%1;return t===t?r?t-r:t:0}var aJ=nJ,oJ=mT,sJ=vi,lJ=aJ,cJ=Math.max;function hJ(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var n=r==null?0:lJ(r);return n<0&&(n=cJ(i+n,0)),oJ(e,sJ(t),n)}var uJ=hJ,fJ=rJ,dJ=uJ,pJ=fJ(dJ),gJ=pJ;const yJ=Ut(gJ);var mJ=ZD(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),zv=J.createContext(void 0),Wv=J.createContext(void 0),F_=J.createContext(void 0),I_=J.createContext({}),D_=J.createContext(void 0),R_=J.createContext(0),j_=J.createContext(0),iw=function(t){var r=t.state,i=r.xAxisMap,n=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,c=t.height,h=mJ(a);return R.createElement(zv.Provider,{value:i},R.createElement(Wv.Provider,{value:n},R.createElement(I_.Provider,{value:a},R.createElement(F_.Provider,{value:h},R.createElement(D_.Provider,{value:o},R.createElement(R_.Provider,{value:c},R.createElement(j_.Provider,{value:l},s)))))))},vJ=function(){return J.useContext(D_)},N_=function(t){var r=J.useContext(zv);r==null&&la();var i=r[t];return i==null&&la(),i},bJ=function(){var t=J.useContext(zv);return hn(t)},xJ=function(){var t=J.useContext(Wv),r=yJ(t,function(i){return O_(i.domain,Number.isFinite)});return r||hn(t)},z_=function(t){var r=J.useContext(Wv);r==null&&la();var i=r[t];return i==null&&la(),i},CJ=function(){var t=J.useContext(F_);return t},wJ=function(){return J.useContext(I_)},qv=function(){return J.useContext(j_)},Hv=function(){return J.useContext(R_)};function jo(e){"@babel/helpers - typeof";return jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jo(e)}function SJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kJ(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,q_(i.key),i)}}function TJ(e,t,r){return t&&kJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _J(e,t,r){return t=Tu(t),AJ(e,W_()?Reflect.construct(t,r||[],Tu(e).constructor):t.apply(e,r))}function AJ(e,t){if(t&&(jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OJ(e)}function OJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W_=function(){return!!e})()}function Tu(e){return Tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tu(e)}function BJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fy(e,t)}function fy(e,t){return fy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},fy(e,t)}function nw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function aw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nw(Object(r),!0).forEach(function(i){Uv(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Uv(e,t,r){return t=q_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q_(e){var t=$J(e,"string");return jo(t)=="symbol"?t:t+""}function $J(e,t){if(jo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(jo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function EJ(e,t){return FJ(e)||MJ(e,t)||LJ(e,t)||PJ()}function PJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LJ(e,t){if(e){if(typeof e=="string")return ow(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ow(e,t)}}function ow(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function MJ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function FJ(e){if(Array.isArray(e))return e}function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},dy.apply(this,arguments)}var IJ=function(t,r){var i;return R.isValidElement(t)?i=R.cloneElement(t,r):pt(t)?i=t(r):i=R.createElement("line",dy({},r,{className:"recharts-reference-line-line"})),i},DJ=function(t,r,i,n,a,o,s,l,c){var h=a.x,u=a.y,d=a.width,f=a.height;if(i){var y=c.y,p=t.y.apply(y,{position:o});if(gi(c,"discard")&&!t.y.isInRange(p))return null;var g=[{x:h+d,y:p},{x:h,y:p}];return l==="left"?g.reverse():g}if(r){var m=c.x,v=t.x.apply(m,{position:o});if(gi(c,"discard")&&!t.x.isInRange(v))return null;var x=[{x:v,y:u+f},{x:v,y:u}];return s==="top"?x.reverse():x}if(n){var w=c.segment,b=w.map(function(C){return t.apply(C,{position:o})});return gi(c,"discard")&&lQ(b,function(C){return!t.isInRange(C)})?null:b}return null};function RJ(e){var t=e.x,r=e.y,i=e.segment,n=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,c=vJ(),h=N_(n),u=z_(a),d=CJ();if(!c||!d)return null;Ur(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Nv({x:h.scale,y:u.scale}),y=Te(t),p=Te(r),g=i&&i.length===2,m=DJ(f,y,p,g,d,e.position,h.orientation,u.orientation,e);if(!m)return null;var v=EJ(m,2),x=v[0],w=x.x,b=x.y,C=v[1],k=C.x,T=C.y,E=gi(e,"hidden")?"url(#".concat(c,")"):void 0,L=aw(aw({clipPath:E},lt(e,!0)),{},{x1:w,y1:b,x2:k,y2:T});return R.createElement(At,{className:Ot("recharts-reference-line",s)},IJ(o,L),$e.renderCallByParent(e,XQ({x1:w,y1:b,x2:k,y2:T})))}var Yv=function(e){function t(){return SJ(this,t),_J(this,t,arguments)}return BJ(t,e),TJ(t,[{key:"render",value:function(){return R.createElement(RJ,this.props)}}])}(R.Component);Uv(Yv,"displayName","ReferenceLine");Uv(Yv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function py(){return py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},py.apply(this,arguments)}function No(e){"@babel/helpers - typeof";return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(e)}function sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function lw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sw(Object(r),!0).forEach(function(i){ud(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function jJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NJ(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,U_(i.key),i)}}function zJ(e,t,r){return t&&NJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WJ(e,t,r){return t=_u(t),qJ(e,H_()?Reflect.construct(t,r||[],_u(e).constructor):t.apply(e,r))}function qJ(e,t){if(t&&(No(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HJ(e)}function HJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H_=function(){return!!e})()}function _u(e){return _u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_u(e)}function UJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gy(e,t)}function gy(e,t){return gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},gy(e,t)}function ud(e,t,r){return t=U_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U_(e){var t=YJ(e,"string");return No(t)=="symbol"?t:t+""}function YJ(e,t){if(No(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(No(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var GJ=function(t){var r=t.x,i=t.y,n=t.xAxis,a=t.yAxis,o=Nv({x:n.scale,y:a.scale}),s=o.apply({x:r,y:i},{bandAware:!0});return gi(t,"discard")&&!o.isInRange(s)?null:s},fd=function(e){function t(){return jJ(this,t),WJ(this,t,arguments)}return UJ(t,e),zJ(t,[{key:"render",value:function(){var i=this.props,n=i.x,a=i.y,o=i.r,s=i.alwaysShow,l=i.clipPathId,c=Te(n),h=Te(a);if(Ur(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!h)return null;var u=GJ(this.props);if(!u)return null;var d=u.x,f=u.y,y=this.props,p=y.shape,g=y.className,m=gi(this.props,"hidden")?"url(#".concat(l,")"):void 0,v=lw(lw({clipPath:m},lt(this.props,!0)),{},{cx:d,cy:f});return R.createElement(At,{className:Ot("recharts-reference-dot",g)},t.renderDot(p,v),$e.renderCallByParent(this.props,{x:d-o,y:f-o,width:2*o,height:2*o}))}}])}(R.Component);ud(fd,"displayName","ReferenceDot");ud(fd,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ud(fd,"renderDot",function(e,t){var r;return R.isValidElement(e)?r=R.cloneElement(e,t):pt(e)?r=e(t):r=R.createElement(bc,py({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function yy(){return yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},yy.apply(this,arguments)}function zo(e){"@babel/helpers - typeof";return zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zo(e)}function cw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function hw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cw(Object(r),!0).forEach(function(i){dd(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function VJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XJ(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,G_(i.key),i)}}function KJ(e,t,r){return t&&XJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZJ(e,t,r){return t=Au(t),QJ(e,Y_()?Reflect.construct(t,r||[],Au(e).constructor):t.apply(e,r))}function QJ(e,t){if(t&&(zo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JJ(e)}function JJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y_=function(){return!!e})()}function Au(e){return Au=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Au(e)}function ttt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&my(e,t)}function my(e,t){return my=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},my(e,t)}function dd(e,t,r){return t=G_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G_(e){var t=ett(e,"string");return zo(t)=="symbol"?t:t+""}function ett(e,t){if(zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(zo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rtt=function(t,r,i,n,a){var o=a.x1,s=a.x2,l=a.y1,c=a.y2,h=a.xAxis,u=a.yAxis;if(!h||!u)return null;var d=Nv({x:h.scale,y:u.scale}),f={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:i?d.y.apply(l,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:n?d.y.apply(c,{position:"end"}):d.y.rangeMax};return gi(a,"discard")&&(!d.isInRange(f)||!d.isInRange(y))?null:L_(f,y)},pd=function(e){function t(){return VJ(this,t),ZJ(this,t,arguments)}return ttt(t,e),KJ(t,[{key:"render",value:function(){var i=this.props,n=i.x1,a=i.x2,o=i.y1,s=i.y2,l=i.className,c=i.alwaysShow,h=i.clipPathId;Ur(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Te(n),d=Te(a),f=Te(o),y=Te(s),p=this.props.shape;if(!u&&!d&&!f&&!y&&!p)return null;var g=rtt(u,d,f,y,this.props);if(!g&&!p)return null;var m=gi(this.props,"hidden")?"url(#".concat(h,")"):void 0;return R.createElement(At,{className:Ot("recharts-reference-area",l)},t.renderRect(p,hw(hw({clipPath:m},lt(this.props,!0)),g)),$e.renderCallByParent(this.props,g))}}])}(R.Component);dd(pd,"displayName","ReferenceArea");dd(pd,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});dd(pd,"renderRect",function(e,t){var r;return R.isValidElement(e)?r=R.cloneElement(e,t):pt(e)?r=e(t):r=R.createElement(id,yy({},t,{className:"recharts-reference-area-rect"})),r});function V_(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var i=[],n=0;n<e.length;n+=t)i.push(e[n]);return i}function itt(e,t,r){var i={width:e.width+t.width,height:e.height+t.height};return ZQ(i,r)}function ntt(e,t,r){var i=r==="width",n=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:i?n:a,end:i?n+o:a+s}:{start:i?n+o:a+s,end:i?n:a}}function Ou(e,t,r,i,n){if(e*t<e*i||e*t>e*n)return!1;var a=r();return e*(t-e*a/2-i)>=0&&e*(t+e*a/2-n)<=0}function att(e,t){return V_(e,t+1)}function ott(e,t,r,i,n){for(var a=(i||[]).slice(),o=t.start,s=t.end,l=0,c=1,h=o,u=function(){var y=i==null?void 0:i[l];if(y===void 0)return{v:V_(i,c)};var p=l,g,m=function(){return g===void 0&&(g=r(y,p)),g},v=y.coordinate,x=l===0||Ou(e,v,m,h,s);x||(l=0,h=o,c+=1),x&&(h=v+e*(m()/2+n),l+=c)},d;c<=a.length;)if(d=u(),d)return d.v;return[]}function Ql(e){"@babel/helpers - typeof";return Ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ql(e)}function uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uw(Object(r),!0).forEach(function(i){stt(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function stt(e,t,r){return t=ltt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ltt(e){var t=ctt(e,"string");return Ql(t)=="symbol"?t:t+""}function ctt(e,t){if(Ql(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Ql(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function htt(e,t,r,i,n){for(var a=(i||[]).slice(),o=a.length,s=t.start,l=t.end,c=function(d){var f=a[d],y,p=function(){return y===void 0&&(y=r(f,d)),y};if(d===o-1){var g=e*(f.coordinate+e*p()/2-l);a[d]=f=He(He({},f),{},{tickCoord:g>0?f.coordinate-g*e:f.coordinate})}else a[d]=f=He(He({},f),{},{tickCoord:f.coordinate});var m=Ou(e,f.tickCoord,p,s,l);m&&(l=f.tickCoord-e*(p()/2+n),a[d]=He(He({},f),{},{isShow:!0}))},h=o-1;h>=0;h--)c(h);return a}function utt(e,t,r,i,n,a){var o=(i||[]).slice(),s=o.length,l=t.start,c=t.end;if(a){var h=i[s-1],u=r(h,s-1),d=e*(h.coordinate+e*u/2-c);o[s-1]=h=He(He({},h),{},{tickCoord:d>0?h.coordinate-d*e:h.coordinate});var f=Ou(e,h.tickCoord,function(){return u},l,c);f&&(c=h.tickCoord-e*(u/2+n),o[s-1]=He(He({},h),{},{isShow:!0}))}for(var y=a?s-1:s,p=function(v){var x=o[v],w,b=function(){return w===void 0&&(w=r(x,v)),w};if(v===0){var C=e*(x.coordinate-e*b()/2-l);o[v]=x=He(He({},x),{},{tickCoord:C<0?x.coordinate-C*e:x.coordinate})}else o[v]=x=He(He({},x),{},{tickCoord:x.coordinate});var k=Ou(e,x.tickCoord,b,l,c);k&&(l=x.tickCoord+e*(b()/2+n),o[v]=He(He({},x),{},{isShow:!0}))},g=0;g<y;g++)p(g);return o}function Gv(e,t,r){var i=e.tick,n=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,h=e.unit,u=e.angle;if(!n||!n.length||!i)return[];if(tt(l)||$r.isSsr)return att(n,typeof l=="number"&&tt(l)?l:0);var d=[],f=s==="top"||s==="bottom"?"width":"height",y=h&&f==="width"?to(h,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(x,w){var b=pt(c)?c(x.value,w):x.value;return f==="width"?itt(to(b,{fontSize:t,letterSpacing:r}),y,u):to(b,{fontSize:t,letterSpacing:r})[f]},g=n.length>=2?Je(n[1].coordinate-n[0].coordinate):1,m=ntt(a,g,f);return l==="equidistantPreserveStart"?ott(g,m,p,n,o):(l==="preserveStart"||l==="preserveStartEnd"?d=utt(g,m,p,n,o,l==="preserveStartEnd"):d=htt(g,m,p,n,o),d.filter(function(v){return v.isShow}))}var ftt=["viewBox"],dtt=["viewBox"],ptt=["ticks"];function Wo(e){"@babel/helpers - typeof";return Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wo(e)}function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Va.apply(this,arguments)}function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(r),!0).forEach(function(i){Vv(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Bp(e,t){if(e==null)return{};var r=gtt(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function gtt(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function ytt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,K_(i.key),i)}}function mtt(e,t,r){return t&&dw(e.prototype,t),r&&dw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vtt(e,t,r){return t=Bu(t),btt(e,X_()?Reflect.construct(t,r||[],Bu(e).constructor):t.apply(e,r))}function btt(e,t){if(t&&(Wo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xtt(e)}function xtt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X_=function(){return!!e})()}function Bu(e){return Bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bu(e)}function Ctt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vy(e,t)}function vy(e,t){return vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},vy(e,t)}function Vv(e,t,r){return t=K_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K_(e){var t=wtt(e,"string");return Wo(t)=="symbol"?t:t+""}function wtt(e,t){if(Wo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Wo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cs=function(e){function t(r){var i;return ytt(this,t),i=vtt(this,t,[r]),i.state={fontSize:"",letterSpacing:""},i}return Ctt(t,e),mtt(t,[{key:"shouldComponentUpdate",value:function(i,n){var a=i.viewBox,o=Bp(i,ftt),s=this.props,l=s.viewBox,c=Bp(s,dtt);return!Qa(a,l)||!Qa(o,c)||!Qa(n,this.state)}},{key:"componentDidMount",value:function(){var i=this.layerReference;if(i){var n=i.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];n&&this.setState({fontSize:window.getComputedStyle(n).fontSize,letterSpacing:window.getComputedStyle(n).letterSpacing})}}},{key:"getTickLineCoord",value:function(i){var n=this.props,a=n.x,o=n.y,s=n.width,l=n.height,c=n.orientation,h=n.tickSize,u=n.mirror,d=n.tickMargin,f,y,p,g,m,v,x=u?-1:1,w=i.tickSize||h,b=tt(i.tickCoord)?i.tickCoord:i.coordinate;switch(c){case"top":f=y=i.coordinate,g=o+ +!u*l,p=g-x*w,v=p-x*d,m=b;break;case"left":p=g=i.coordinate,y=a+ +!u*s,f=y-x*w,m=f-x*d,v=b;break;case"right":p=g=i.coordinate,y=a+ +u*s,f=y+x*w,m=f+x*d,v=b;break;default:f=y=i.coordinate,g=o+ +u*l,p=g+x*w,v=p+x*d,m=b;break}return{line:{x1:f,y1:p,x2:y,y2:g},tick:{x:m,y:v}}}},{key:"getTickTextAnchor",value:function(){var i=this.props,n=i.orientation,a=i.mirror,o;switch(n){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var i=this.props,n=i.orientation,a=i.mirror,o="end";switch(n){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var i=this.props,n=i.x,a=i.y,o=i.width,s=i.height,l=i.orientation,c=i.mirror,h=i.axisLine,u=xe(xe(xe({},lt(this.props,!1)),lt(h,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!c||l==="bottom"&&c);u=xe(xe({},u),{},{x1:n,y1:a+d*s,x2:n+o,y2:a+d*s})}else{var f=+(l==="left"&&!c||l==="right"&&c);u=xe(xe({},u),{},{x1:n+f*o,y1:a,x2:n+f*o,y2:a+s})}return R.createElement("line",Va({},u,{className:Ot("recharts-cartesian-axis-line",fr(h,"className"))}))}},{key:"renderTicks",value:function(i,n,a){var o=this,s=this.props,l=s.tickLine,c=s.stroke,h=s.tick,u=s.tickFormatter,d=s.unit,f=Gv(xe(xe({},this.props),{},{ticks:i}),n,a),y=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),g=lt(this.props,!1),m=lt(h,!1),v=xe(xe({},g),{},{fill:"none"},lt(l,!1)),x=f.map(function(w,b){var C=o.getTickLineCoord(w),k=C.line,T=C.tick,E=xe(xe(xe(xe({textAnchor:y,verticalAnchor:p},g),{},{stroke:"none",fill:c},m),T),{},{index:b,payload:w,visibleTicksCount:f.length,tickFormatter:u});return R.createElement(At,Va({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},Hi(o.props,w,b)),l&&R.createElement("line",Va({},v,k,{className:Ot("recharts-cartesian-axis-tick-line",fr(l,"className"))})),h&&t.renderTickItem(h,E,"".concat(pt(u)?u(w.value,b):w.value).concat(d||"")))});return R.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var i=this,n=this.props,a=n.axisLine,o=n.width,s=n.height,l=n.ticksGenerator,c=n.className,h=n.hide;if(h)return null;var u=this.props,d=u.ticks,f=Bp(u,ptt),y=d;return pt(l)&&(y=d&&d.length>0?l(this.props):l(f)),o<=0||s<=0||!y||!y.length?null:R.createElement(At,{className:Ot("recharts-cartesian-axis",c),ref:function(g){i.layerReference=g}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),$e.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,n,a){var o,s=Ot(n.className,"recharts-cartesian-axis-tick-value");return R.isValidElement(i)?o=R.cloneElement(i,xe(xe({},n),{},{className:s})):pt(i)?o=i(xe(xe({},n),{},{className:s})):o=R.createElement(aa,Va({},n,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(J.Component);Vv(Cs,"displayName","CartesianAxis");Vv(Cs,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Stt=["x1","y1","x2","y2","key"],ktt=["offset"];function ca(e){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}function pw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pw(Object(r),!0).forEach(function(i){Ttt(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Ttt(e,t,r){return t=_tt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _tt(e){var t=Att(e,"string");return ca(t)=="symbol"?t:t+""}function Att(e,t){if(ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(ca(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kn(){return Kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Kn.apply(this,arguments)}function gw(e,t){if(e==null)return{};var r=Ott(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Ott(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}var Btt=function(t){var r=t.fill;if(!r||r==="none")return null;var i=t.fillOpacity,n=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return R.createElement("rect",{x:n,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:i,className:"recharts-cartesian-grid-bg"})};function Z_(e,t){var r;if(R.isValidElement(e))r=R.cloneElement(e,t);else if(pt(e))r=e(t);else{var i=t.x1,n=t.y1,a=t.x2,o=t.y2,s=t.key,l=gw(t,Stt),c=lt(l,!1);c.offset;var h=gw(c,ktt);r=R.createElement("line",Kn({},h,{x1:i,y1:n,x2:a,y2:o,fill:"none",key:s}))}return r}function $tt(e){var t=e.x,r=e.width,i=e.horizontal,n=i===void 0?!0:i,a=e.horizontalPoints;if(!n||!a||!a.length)return null;var o=a.map(function(s,l){var c=Ye(Ye({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return Z_(n,c)});return R.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Ett(e){var t=e.y,r=e.height,i=e.vertical,n=i===void 0?!0:i,a=e.verticalPoints;if(!n||!a||!a.length)return null;var o=a.map(function(s,l){var c=Ye(Ye({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return Z_(n,c)});return R.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Ptt(e){var t=e.horizontalFill,r=e.fillOpacity,i=e.x,n=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var h=s.map(function(d){return Math.round(d+n-n)}).sort(function(d,f){return d-f});n!==h[0]&&h.unshift(0);var u=h.map(function(d,f){var y=!h[f+1],p=y?n+o-d:h[f+1]-d;if(p<=0)return null;var g=f%t.length;return R.createElement("rect",{key:"react-".concat(f),y:d,x:i,height:p,width:a,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return R.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function Ltt(e){var t=e.vertical,r=t===void 0?!0:t,i=e.verticalFill,n=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,c=e.verticalPoints;if(!r||!i||!i.length)return null;var h=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,f){return d-f});a!==h[0]&&h.unshift(0);var u=h.map(function(d,f){var y=!h[f+1],p=y?a+s-d:h[f+1]-d;if(p<=0)return null;var g=f%i.length;return R.createElement("rect",{key:"react-".concat(f),x:d,y:o,width:p,height:l,stroke:"none",fill:i[g],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return R.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var Mtt=function(t,r){var i=t.xAxis,n=t.width,a=t.height,o=t.offset;return Y2(Gv(Ye(Ye(Ye({},Cs.defaultProps),i),{},{ticks:Ii(i,!0),viewBox:{x:0,y:0,width:n,height:a}})),o.left,o.left+o.width,r)},Ftt=function(t,r){var i=t.yAxis,n=t.width,a=t.height,o=t.offset;return Y2(Gv(Ye(Ye(Ye({},Cs.defaultProps),i),{},{ticks:Ii(i,!0),viewBox:{x:0,y:0,width:n,height:a}})),o.top,o.top+o.height,r)},Da={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Itt(e){var t,r,i,n,a,o,s=qv(),l=Hv(),c=wJ(),h=Ye(Ye({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Da.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Da.fill,horizontal:(i=e.horizontal)!==null&&i!==void 0?i:Da.horizontal,horizontalFill:(n=e.horizontalFill)!==null&&n!==void 0?n:Da.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Da.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Da.verticalFill,x:tt(e.x)?e.x:c.left,y:tt(e.y)?e.y:c.top,width:tt(e.width)?e.width:c.width,height:tt(e.height)?e.height:c.height}),u=h.x,d=h.y,f=h.width,y=h.height,p=h.syncWithTicks,g=h.horizontalValues,m=h.verticalValues,v=bJ(),x=xJ();if(!tt(f)||f<=0||!tt(y)||y<=0||!tt(u)||u!==+u||!tt(d)||d!==+d)return null;var w=h.verticalCoordinatesGenerator||Mtt,b=h.horizontalCoordinatesGenerator||Ftt,C=h.horizontalPoints,k=h.verticalPoints;if((!C||!C.length)&&pt(b)){var T=g&&g.length,E=b({yAxis:x?Ye(Ye({},x),{},{ticks:T?g:x.ticks}):void 0,width:s,height:l,offset:c},T?!0:p);Ur(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ca(E),"]")),Array.isArray(E)&&(C=E)}if((!k||!k.length)&&pt(w)){var L=m&&m.length,P=w({xAxis:v?Ye(Ye({},v),{},{ticks:L?m:v.ticks}):void 0,width:s,height:l,offset:c},L?!0:p);Ur(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ca(P),"]")),Array.isArray(P)&&(k=P)}return R.createElement("g",{className:"recharts-cartesian-grid"},R.createElement(Btt,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),R.createElement($tt,Kn({},h,{offset:c,horizontalPoints:C,xAxis:v,yAxis:x})),R.createElement(Ett,Kn({},h,{offset:c,verticalPoints:k,xAxis:v,yAxis:x})),R.createElement(Ptt,Kn({},h,{horizontalPoints:C})),R.createElement(Ltt,Kn({},h,{verticalPoints:k})))}Itt.displayName="CartesianGrid";var Dtt=["type","layout","connectNulls","ref"],Rtt=["key"];function qo(e){"@babel/helpers - typeof";return qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(e)}function yw(e,t){if(e==null)return{};var r=jtt(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function jtt(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ul.apply(this,arguments)}function mw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function pr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mw(Object(r),!0).forEach(function(i){jr(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Ra(e){return qtt(e)||Wtt(e)||ztt(e)||Ntt()}function Ntt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
73In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ztt(e,t){if(e){if(typeof e=="string")return by(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return by(e,t)}}function Wtt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qtt(e){if(Array.isArray(e))return by(e)}function by(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function Htt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,J_(i.key),i)}}function Utt(e,t,r){return t&&vw(e.prototype,t),r&&vw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ytt(e,t,r){return t=$u(t),Gtt(e,Q_()?Reflect.construct(t,r||[],$u(e).constructor):t.apply(e,r))}function Gtt(e,t){if(t&&(qo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vtt(e)}function Vtt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q_=function(){return!!e})()}function $u(e){return $u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$u(e)}function Xtt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xy(e,t)}function xy(e,t){return xy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},xy(e,t)}function jr(e,t,r){return t=J_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J_(e){var t=Ktt(e,"string");return qo(t)=="symbol"?t:t+""}function Ktt(e,t){if(qo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(qo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cc=function(e){function t(){var r;Htt(this,t);for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return r=Ytt(this,t,[].concat(n)),jr(r,"state",{isAnimationFinished:!0,totalLength:0}),jr(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),jr(r,"getStrokeDasharray",function(o,s,l){var c=l.reduce(function(m,v){return m+v});if(!c)return r.generateSimpleStrokeDasharray(s,o);for(var h=Math.floor(o/c),u=o%c,d=s-o,f=[],y=0,p=0;y<l.length;p+=l[y],++y)if(p+l[y]>u){f=[].concat(Ra(l.slice(0,y)),[u-p]);break}var g=f.length%2===0?[0,d]:[d];return[].concat(Ra(t.repeat(l,h)),Ra(f),g).map(function(m){return"".concat(m,"px")}).join(", ")}),jr(r,"id",Qi("recharts-line-")),jr(r,"pathRef",function(o){r.mainCurve=o}),jr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),jr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return Xtt(t,e),Utt(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();this.setState({totalLength:i})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();i!==this.state.totalLength&&this.setState({totalLength:i})}}},{key:"getTotalLength",value:function(){var i=this.mainCurve;try{return i&&i.getTotalLength&&i.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(i,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,c=a.layout,h=a.children,u=Ve(h,xs);if(!u)return null;var d=function(p,g){return{x:p.x,y:p.y,value:p.value,errorVal:Wt(p.payload,g)}},f={clipPath:i?"url(#clipPath-".concat(n,")"):null};return R.createElement(At,f,u.map(function(y){return R.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,dataPointFormatter:d})}))}},{key:"renderDots",value:function(i,n,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,c=s.points,h=s.dataKey,u=lt(this.props,!1),d=lt(l,!0),f=c.map(function(p,g){var m=pr(pr(pr({key:"dot-".concat(g),r:3},u),d),{},{index:g,cx:p.x,cy:p.y,value:p.value,dataKey:h,payload:p.payload,points:c});return t.renderDotItem(l,m)}),y={clipPath:i?"url(#clipPath-".concat(n?"":"dots-").concat(a,")"):null};return R.createElement(At,ul({className:"recharts-line-dots",key:"dots"},y),f)}},{key:"renderCurveStatically",value:function(i,n,a,o){var s=this.props,l=s.type,c=s.layout,h=s.connectNulls;s.ref;var u=yw(s,Dtt),d=pr(pr(pr({},lt(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(a,")"):null,points:i},o),{},{type:l,layout:c,connectNulls:h});return R.createElement(bn,ul({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(i,n){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,c=o.isAnimationActive,h=o.animationBegin,u=o.animationDuration,d=o.animationEasing,f=o.animationId,y=o.animateNewValues,p=o.width,g=o.height,m=this.state,v=m.prevPoints,x=m.totalLength;return R.createElement(ar,{begin:h,duration:u,isActive:c,easing:d,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var b=w.t;if(v){var C=v.length/s.length,k=s.map(function(I,D){var _=Math.floor(D*C);if(v[_]){var B=v[_],O=Rt(B.x,I.x),M=Rt(B.y,I.y);return pr(pr({},I),{},{x:O(b),y:M(b)})}if(y){var F=Rt(p*2,I.x),$=Rt(g/2,I.y);return pr(pr({},I),{},{x:F(b),y:$(b)})}return pr(pr({},I),{},{x:I.x,y:I.y})});return a.renderCurveStatically(k,i,n)}var T=Rt(0,x),E=T(b),L;if(l){var P="".concat(l).split(/[,\s]+/gim).map(function(I){return parseFloat(I)});L=a.getStrokeDasharray(E,x,P)}else L=a.generateSimpleStrokeDasharray(x,E);return a.renderCurveStatically(s,i,n,{strokeDasharray:L})})}},{key:"renderCurve",value:function(i,n){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,c=l.prevPoints,h=l.totalLength;return s&&o&&o.length&&(!c&&h>0||!Vi(c,o))?this.renderCurveWithAnimation(i,n):this.renderCurveStatically(o,i,n)}},{key:"render",value:function(){var i,n=this.props,a=n.hide,o=n.dot,s=n.points,l=n.className,c=n.xAxis,h=n.yAxis,u=n.top,d=n.left,f=n.width,y=n.height,p=n.isAnimationActive,g=n.id;if(a||!s||!s.length)return null;var m=this.state.isAnimationFinished,v=s.length===1,x=Ot("recharts-line",l),w=c&&c.allowDataOverflow,b=h&&h.allowDataOverflow,C=w||b,k=yt(g)?this.id:g,T=(i=lt(o,!1))!==null&&i!==void 0?i:{r:3,strokeWidth:2},E=T.r,L=E===void 0?3:E,P=T.strokeWidth,I=P===void 0?2:P,D=xk(o)?o:{},_=D.clipDot,B=_===void 0?!0:_,O=L*2+I;return R.createElement(At,{className:x},w||b?R.createElement("defs",null,R.createElement("clipPath",{id:"clipPath-".concat(k)},R.createElement("rect",{x:w?d:d-f/2,y:b?u:u-y/2,width:w?f:f*2,height:b?y:y*2})),!B&&R.createElement("clipPath",{id:"clipPath-dots-".concat(k)},R.createElement("rect",{x:d-O/2,y:u-O/2,width:f+O,height:y+O}))):null,!v&&this.renderCurve(C,k),this.renderErrorBar(C,k),(v||o)&&this.renderDots(C,B,k),(!p||m)&&Or.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(i,n){return i.animationId!==n.prevAnimationId?{prevAnimationId:i.animationId,curPoints:i.points,prevPoints:n.curPoints}:i.points!==n.curPoints?{curPoints:i.points}:null}},{key:"repeat",value:function(i,n){for(var a=i.length%2!==0?[].concat(Ra(i),[0]):i,o=[],s=0;s<n;++s)o=[].concat(Ra(o),Ra(a));return o}},{key:"renderDotItem",value:function(i,n){var a;if(R.isValidElement(i))a=R.cloneElement(i,n);else if(pt(i))a=i(n);else{var o=n.key,s=yw(n,Rtt),l=Ot("recharts-line-dot",typeof i!="boolean"?i.className:"");a=R.createElement(bc,ul({key:o},s,{className:l}))}return a}}])}(J.PureComponent);jr(Cc,"displayName","Line");jr(Cc,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!$r.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});jr(Cc,"getComposedData",function(e){var t=e.props,r=e.xAxis,i=e.yAxis,n=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,h=t.layout,u=l.map(function(d,f){var y=Wt(d,o);return h==="horizontal"?{x:Eo({axis:r,ticks:n,bandSize:s,entry:d,index:f}),y:yt(y)?null:i.scale(y),value:y,payload:d}:{x:yt(y)?null:r.scale(y),y:Eo({axis:i,ticks:a,bandSize:s,entry:d,index:f}),value:y,payload:d}});return pr({points:u,layout:h},c)});var Ztt=["layout","type","stroke","connectNulls","isRange","ref"],Qtt=["key"],tA;function Ho(e){"@babel/helpers - typeof";return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ho(e)}function eA(e,t){if(e==null)return{};var r=Jtt(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Jtt(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Zn.apply(this,arguments)}function bw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function sn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bw(Object(r),!0).forEach(function(i){fi(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function tet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,iA(i.key),i)}}function eet(e,t,r){return t&&xw(e.prototype,t),r&&xw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ret(e,t,r){return t=Eu(t),iet(e,rA()?Reflect.construct(t,r||[],Eu(e).constructor):t.apply(e,r))}function iet(e,t){if(t&&(Ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return net(e)}function net(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rA=function(){return!!e})()}function Eu(e){return Eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Eu(e)}function aet(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cy(e,t)}function Cy(e,t){return Cy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Cy(e,t)}function fi(e,t,r){return t=iA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iA(e){var t=oet(e,"string");return Ho(t)=="symbol"?t:t+""}function oet(e,t){if(Ho(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Ho(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ln=function(e){function t(){var r;tet(this,t);for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return r=ret(this,t,[].concat(n)),fi(r,"state",{isAnimationFinished:!0}),fi(r,"id",Qi("recharts-area-")),fi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),pt(o)&&o()}),fi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),pt(o)&&o()}),r}return aet(t,e),eet(t,[{key:"renderDots",value:function(i,n,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,c=l.dot,h=l.points,u=l.dataKey,d=lt(this.props,!1),f=lt(c,!0),y=h.map(function(g,m){var v=sn(sn(sn({key:"dot-".concat(m),r:3},d),f),{},{index:m,cx:g.x,cy:g.y,dataKey:u,value:g.value,payload:g.payload,points:h});return t.renderDotItem(c,v)}),p={clipPath:i?"url(#clipPath-".concat(n?"":"dots-").concat(a,")"):null};return R.createElement(At,Zn({className:"recharts-area-dots"},p),y)}},{key:"renderHorizontalRect",value:function(i){var n=this.props,a=n.baseLine,o=n.points,s=n.strokeWidth,l=o[0].x,c=o[o.length-1].x,h=i*Math.abs(l-c),u=un(o.map(function(d){return d.y||0}));return tt(a)&&typeof a=="number"?u=Math.max(a,u):a&&Array.isArray(a)&&a.length&&(u=Math.max(un(a.map(function(d){return d.y||0})),u)),tt(u)?R.createElement("rect",{x:l<c?l:l-h,y:0,width:h,height:Math.floor(u+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(i){var n=this.props,a=n.baseLine,o=n.points,s=n.strokeWidth,l=o[0].y,c=o[o.length-1].y,h=i*Math.abs(l-c),u=un(o.map(function(d){return d.x||0}));return tt(a)&&typeof a=="number"?u=Math.max(a,u):a&&Array.isArray(a)&&a.length&&(u=Math.max(un(a.map(function(d){return d.x||0})),u)),tt(u)?R.createElement("rect",{x:0,y:l<c?l:l-h,width:u+(s?parseInt("".concat(s),10):1),height:Math.floor(h)}):null}},{key:"renderClipRect",value:function(i){var n=this.props.layout;return n==="vertical"?this.renderVerticalRect(i):this.renderHorizontalRect(i)}},{key:"renderAreaStatically",value:function(i,n,a,o){var s=this.props,l=s.layout,c=s.type,h=s.stroke,u=s.connectNulls,d=s.isRange;s.ref;var f=eA(s,Ztt);return R.createElement(At,{clipPath:a?"url(#clipPath-".concat(o,")"):null},R.createElement(bn,Zn({},lt(f,!0),{points:i,connectNulls:u,type:c,baseLine:n,layout:l,stroke:"none",className:"recharts-area-area"})),h!=="none"&&R.createElement(bn,Zn({},lt(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:u,fill:"none",points:i})),h!=="none"&&d&&R.createElement(bn,Zn({},lt(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:u,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(i,n){var a=this,o=this.props,s=o.points,l=o.baseLine,c=o.isAnimationActive,h=o.animationBegin,u=o.animationDuration,d=o.animationEasing,f=o.animationId,y=this.state,p=y.prevPoints,g=y.prevBaseLine;return R.createElement(ar,{begin:h,duration:u,isActive:c,easing:d,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var v=m.t;if(p){var x=p.length/s.length,w=s.map(function(T,E){var L=Math.floor(E*x);if(p[L]){var P=p[L],I=Rt(P.x,T.x),D=Rt(P.y,T.y);return sn(sn({},T),{},{x:I(v),y:D(v)})}return T}),b;if(tt(l)&&typeof l=="number"){var C=Rt(g,l);b=C(v)}else if(yt(l)||Bn(l)){var k=Rt(g,0);b=k(v)}else b=l.map(function(T,E){var L=Math.floor(E*x);if(g[L]){var P=g[L],I=Rt(P.x,T.x),D=Rt(P.y,T.y);return sn(sn({},T),{},{x:I(v),y:D(v)})}return T});return a.renderAreaStatically(w,b,i,n)}return R.createElement(At,null,R.createElement("defs",null,R.createElement("clipPath",{id:"animationClipPath-".concat(n)},a.renderClipRect(v))),R.createElement(At,{clipPath:"url(#animationClipPath-".concat(n,")")},a.renderAreaStatically(s,l,i,n)))})}},{key:"renderArea",value:function(i,n){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,c=this.state,h=c.prevPoints,u=c.prevBaseLine,d=c.totalLength;return l&&o&&o.length&&(!h&&d>0||!Vi(h,o)||!Vi(u,s))?this.renderAreaWithAnimation(i,n):this.renderAreaStatically(o,s,i,n)}},{key:"render",value:function(){var i,n=this.props,a=n.hide,o=n.dot,s=n.points,l=n.className,c=n.top,h=n.left,u=n.xAxis,d=n.yAxis,f=n.width,y=n.height,p=n.isAnimationActive,g=n.id;if(a||!s||!s.length)return null;var m=this.state.isAnimationFinished,v=s.length===1,x=Ot("recharts-area",l),w=u&&u.allowDataOverflow,b=d&&d.allowDataOverflow,C=w||b,k=yt(g)?this.id:g,T=(i=lt(o,!1))!==null&&i!==void 0?i:{r:3,strokeWidth:2},E=T.r,L=E===void 0?3:E,P=T.strokeWidth,I=P===void 0?2:P,D=xk(o)?o:{},_=D.clipDot,B=_===void 0?!0:_,O=L*2+I;return R.createElement(At,{className:x},w||b?R.createElement("defs",null,R.createElement("clipPath",{id:"clipPath-".concat(k)},R.createElement("rect",{x:w?h:h-f/2,y:b?c:c-y/2,width:w?f:f*2,height:b?y:y*2})),!B&&R.createElement("clipPath",{id:"clipPath-dots-".concat(k)},R.createElement("rect",{x:h-O/2,y:c-O/2,width:f+O,height:y+O}))):null,v?null:this.renderArea(C,k),(o||v)&&this.renderDots(C,B,k),(!p||m)&&Or.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(i,n){return i.animationId!==n.prevAnimationId?{prevAnimationId:i.animationId,curPoints:i.points,curBaseLine:i.baseLine,prevPoints:n.curPoints,prevBaseLine:n.curBaseLine}:i.points!==n.curPoints||i.baseLine!==n.curBaseLine?{curPoints:i.points,curBaseLine:i.baseLine}:null}}])}(J.PureComponent);tA=Ln;fi(Ln,"displayName","Area");fi(Ln,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!$r.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});fi(Ln,"getBaseValue",function(e,t,r,i){var n=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(tt(s)&&typeof s=="number")return s;var l=n==="horizontal"?i:r,c=l.scale.domain();if(l.type==="number"){var h=Math.max(c[0],c[1]),u=Math.min(c[0],c[1]);return s==="dataMin"?u:s==="dataMax"||h<0?h:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});fi(Ln,"getComposedData",function(e){var t=e.props,r=e.item,i=e.xAxis,n=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,c=e.stackedData,h=e.dataStartIndex,u=e.displayedData,d=e.offset,f=t.layout,y=c&&c.length,p=tA.getBaseValue(t,r,i,n),g=f==="horizontal",m=!1,v=u.map(function(w,b){var C;y?C=c[h+b]:(C=Wt(w,l),Array.isArray(C)?m=!0:C=[p,C]);var k=C[1]==null||y&&Wt(w,l)==null;return g?{x:Eo({axis:i,ticks:a,bandSize:s,entry:w,index:b}),y:k?null:n.scale(C[1]),value:C,payload:w}:{x:k?null:i.scale(C[1]),y:Eo({axis:n,ticks:o,bandSize:s,entry:w,index:b}),value:C,payload:w}}),x;return y||m?x=v.map(function(w){var b=Array.isArray(w.value)?w.value[0]:null;return g?{x:w.x,y:b!=null&&w.y!=null?n.scale(b):null}:{x:b!=null?i.scale(b):null,y:w.y}}):x=g?n.scale(p):i.scale(p),sn({points:v,baseLine:x,layout:f,isRange:m},d)});fi(Ln,"renderDotItem",function(e,t){var r;if(R.isValidElement(e))r=R.cloneElement(e,t);else if(pt(e))r=e(t);else{var i=Ot("recharts-area-dot",typeof e!="boolean"?e.className:""),n=t.key,a=eA(t,Qtt);r=R.createElement(bc,Zn({},a,{key:n,className:i}))}return r});function Uo(e){"@babel/helpers - typeof";return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uo(e)}function set(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cet(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,oA(i.key),i)}}function het(e,t,r){return t&&cet(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uet(e,t,r){return t=Pu(t),fet(e,nA()?Reflect.construct(t,r||[],Pu(e).constructor):t.apply(e,r))}function fet(e,t){if(t&&(Uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return det(e)}function det(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nA=function(){return!!e})()}function Pu(e){return Pu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pu(e)}function pet(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wy(e,t)}function wy(e,t){return wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},wy(e,t)}function aA(e,t,r){return t=oA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oA(e){var t=get(e,"string");return Uo(t)=="symbol"?t:t+""}function get(e,t){if(Uo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Uo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wc=function(e){function t(){return set(this,t),uet(this,t,arguments)}return pet(t,e),het(t,[{key:"render",value:function(){return null}}])}(J.Component);aA(wc,"displayName","ZAxis");aA(wc,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var yet=["option","isActive"];function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},fl.apply(this,arguments)}function met(e,t){if(e==null)return{};var r=vet(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function vet(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function bet(e){var t=e.option,r=e.isActive,i=met(e,yet);return typeof t=="string"?J.createElement(Gl,fl({option:J.createElement(Nf,fl({type:t},i)),isActive:r,shapeType:"symbols"},i)):J.createElement(Gl,fl({option:t,isActive:r,shapeType:"symbols"},i))}function Yo(e){"@babel/helpers - typeof";return Yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yo(e)}function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},dl.apply(this,arguments)}function Cw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(r),!0).forEach(function(i){dn(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function xet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ww(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,lA(i.key),i)}}function Cet(e,t,r){return t&&ww(e.prototype,t),r&&ww(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wet(e,t,r){return t=Lu(t),ket(e,sA()?Reflect.construct(t,r||[],Lu(e).constructor):t.apply(e,r))}function ket(e,t){if(t&&(Yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tet(e)}function Tet(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sA=function(){return!!e})()}function Lu(e){return Lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Lu(e)}function _et(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sy(e,t)}function Sy(e,t){return Sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Sy(e,t)}function dn(e,t,r){return t=lA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lA(e){var t=Aet(e,"string");return Yo(t)=="symbol"?t:t+""}function Aet(e,t){if(Yo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Yo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sc=function(e){function t(){var r;xet(this,t);for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return r=wet(this,t,[].concat(n)),dn(r,"state",{isAnimationFinished:!1}),dn(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),dn(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),dn(r,"id",Qi("recharts-scatter-")),r}return _et(t,e),Cet(t,[{key:"renderSymbolsStatically",value:function(i){var n=this,a=this.props,o=a.shape,s=a.activeShape,l=a.activeIndex,c=lt(this.props,!1);return i.map(function(h,u){var d=l===u,f=d?s:o,y=kr(kr({},c),h);return R.createElement(At,dl({className:"recharts-scatter-symbol",key:"symbol-".concat(h==null?void 0:h.cx,"-").concat(h==null?void 0:h.cy,"-").concat(h==null?void 0:h.size,"-").concat(u)},Hi(n.props,h,u),{role:"img"}),R.createElement(bet,dl({option:f,isActive:d,key:"symbol-".concat(u)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var i=this,n=this.props,a=n.points,o=n.isAnimationActive,s=n.animationBegin,l=n.animationDuration,c=n.animationEasing,h=n.animationId,u=this.state.prevPoints;return R.createElement(ar,{begin:s,duration:l,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var f=d.t,y=a.map(function(p,g){var m=u&&u[g];if(m){var v=Rt(m.cx,p.cx),x=Rt(m.cy,p.cy),w=Rt(m.size,p.size);return kr(kr({},p),{},{cx:v(f),cy:x(f),size:w(f)})}var b=Rt(0,p.size);return kr(kr({},p),{},{size:b(f)})});return R.createElement(At,null,i.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var i=this.props,n=i.points,a=i.isAnimationActive,o=this.state.prevPoints;return a&&n&&n.length&&(!o||!Vi(o,n))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(n)}},{key:"renderErrorBar",value:function(){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var n=this.props,a=n.points,o=n.xAxis,s=n.yAxis,l=n.children,c=Ve(l,xs);return c?c.map(function(h,u){var d=h.props,f=d.direction,y=d.dataKey;return R.cloneElement(h,{key:"".concat(f,"-").concat(y,"-").concat(a[u]),data:a,xAxis:o,yAxis:s,layout:f==="x"?"vertical":"horizontal",dataPointFormatter:function(g,m){return{x:g.cx,y:g.cy,value:f==="x"?+g.node.x:+g.node.y,errorVal:Wt(g,m)}}})}):null}},{key:"renderLine",value:function(){var i=this.props,n=i.points,a=i.line,o=i.lineType,s=i.lineJointType,l=lt(this.props,!1),c=lt(a,!1),h,u;if(o==="joint")h=n.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var d=G5(n),f=d.xmin,y=d.xmax,p=d.a,g=d.b,m=function(w){return p*w+g};h=[{x:f,y:m(f)},{x:y,y:m(y)}]}var v=kr(kr(kr({},l),{},{fill:"none",stroke:l&&l.fill},c),{},{points:h});return R.isValidElement(a)?u=R.cloneElement(a,v):pt(a)?u=a(v):u=R.createElement(bn,dl({},v,{type:s})),R.createElement(At,{className:"recharts-scatter-line",key:"recharts-scatter-line"},u)}},{key:"render",value:function(){var i=this.props,n=i.hide,a=i.points,o=i.line,s=i.className,l=i.xAxis,c=i.yAxis,h=i.left,u=i.top,d=i.width,f=i.height,y=i.id,p=i.isAnimationActive;if(n||!a||!a.length)return null;var g=this.state.isAnimationFinished,m=Ot("recharts-scatter",s),v=l&&l.allowDataOverflow,x=c&&c.allowDataOverflow,w=v||x,b=yt(y)?this.id:y;return R.createElement(At,{className:m,clipPath:w?"url(#clipPath-".concat(b,")"):null},v||x?R.createElement("defs",null,R.createElement("clipPath",{id:"clipPath-".concat(b)},R.createElement("rect",{x:v?h:h-d/2,y:x?u:u-f/2,width:v?d:d*2,height:x?f:f*2}))):null,o&&this.renderLine(),this.renderErrorBar(),R.createElement(At,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!p||g)&&Or.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(i,n){return i.animationId!==n.prevAnimationId?{prevAnimationId:i.animationId,curPoints:i.points,prevPoints:n.curPoints}:i.points!==n.curPoints?{curPoints:i.points}:null}}])}(J.PureComponent);dn(Sc,"displayName","Scatter");dn(Sc,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!$r.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});dn(Sc,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,i=e.zAxis,n=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,c=n.props.tooltipType,h=Ve(n.props.children,pc),u=yt(t.dataKey)?n.props.dataKey:t.dataKey,d=yt(r.dataKey)?n.props.dataKey:r.dataKey,f=i&&i.dataKey,y=i?i.range:wc.defaultProps.range,p=y&&y[0],g=t.scale.bandwidth?t.scale.bandwidth():0,m=r.scale.bandwidth?r.scale.bandwidth():0,v=a.map(function(x,w){var b=Wt(x,u),C=Wt(x,d),k=!yt(f)&&Wt(x,f)||"-",T=[{name:yt(t.dataKey)?n.props.name:t.name||t.dataKey,unit:t.unit||"",value:b,payload:x,dataKey:u,type:c},{name:yt(r.dataKey)?n.props.name:r.name||r.dataKey,unit:r.unit||"",value:C,payload:x,dataKey:d,type:c}];k!=="-"&&T.push({name:i.name||i.dataKey,unit:i.unit||"",value:k,payload:x,dataKey:f,type:c});var E=Eo({axis:t,ticks:o,bandSize:g,entry:x,index:w,dataKey:u}),L=Eo({axis:r,ticks:s,bandSize:m,entry:x,index:w,dataKey:d}),P=k!=="-"?i.scale(k):p,I=Math.sqrt(Math.max(P,0)/Math.PI);return kr(kr({},x),{},{cx:E,cy:L,x:E-I,y:L-I,xAxis:t,yAxis:r,zAxis:i,width:2*I,height:2*I,size:P,node:{x:b,y:C,z:k},tooltipPayload:T,tooltipPosition:{x:E,y:L},payload:x},h&&h[w]&&h[w].props)});return kr({points:v},l)});function Go(e){"@babel/helpers - typeof";return Go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Go(e)}function Oet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bet(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,uA(i.key),i)}}function $et(e,t,r){return t&&Bet(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eet(e,t,r){return t=Mu(t),Pet(e,cA()?Reflect.construct(t,r||[],Mu(e).constructor):t.apply(e,r))}function Pet(e,t){if(t&&(Go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Let(e)}function Let(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cA=function(){return!!e})()}function Mu(e){return Mu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mu(e)}function Met(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ky(e,t)}function ky(e,t){return ky=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},ky(e,t)}function hA(e,t,r){return t=uA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uA(e){var t=Fet(e,"string");return Go(t)=="symbol"?t:t+""}function Fet(e,t){if(Go(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Go(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ty.apply(this,arguments)}function Iet(e){var t=e.xAxisId,r=qv(),i=Hv(),n=N_(t);return n==null?null:J.createElement(Cs,Ty({},n,{className:Ot("recharts-".concat(n.axisType," ").concat(n.axisType),n.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(o){return Ii(o,!0)}}))}var Sa=function(e){function t(){return Oet(this,t),Eet(this,t,arguments)}return Met(t,e),$et(t,[{key:"render",value:function(){return J.createElement(Iet,this.props)}}])}(J.Component);hA(Sa,"displayName","XAxis");hA(Sa,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Vo(e){"@babel/helpers - typeof";return Vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vo(e)}function Det(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ret(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,pA(i.key),i)}}function jet(e,t,r){return t&&Ret(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Net(e,t,r){return t=Fu(t),zet(e,fA()?Reflect.construct(t,r||[],Fu(e).constructor):t.apply(e,r))}function zet(e,t){if(t&&(Vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wet(e)}function Wet(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fA=function(){return!!e})()}function Fu(e){return Fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fu(e)}function qet(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_y(e,t)}function _y(e,t){return _y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},_y(e,t)}function dA(e,t,r){return t=pA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pA(e){var t=Het(e,"string");return Vo(t)=="symbol"?t:t+""}function Het(e,t){if(Vo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Vo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ay(){return Ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ay.apply(this,arguments)}var Uet=function(t){var r=t.yAxisId,i=qv(),n=Hv(),a=z_(r);return a==null?null:J.createElement(Cs,Ay({},a,{className:Ot("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:i,height:n},ticksGenerator:function(s){return Ii(s,!0)}}))},ka=function(e){function t(){return Det(this,t),Net(this,t,arguments)}return qet(t,e),jet(t,[{key:"render",value:function(){return J.createElement(Uet,this.props)}}])}(J.Component);dA(ka,"displayName","YAxis");dA(ka,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function Sw(e){return Xet(e)||Vet(e)||Get(e)||Yet()}function Yet(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
74In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Get(e,t){if(e){if(typeof e=="string")return Oy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oy(e,t)}}function Vet(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xet(e){if(Array.isArray(e))return Oy(e)}function Oy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}var By=function(t,r,i,n,a){var o=Ve(t,Yv),s=Ve(t,fd),l=[].concat(Sw(o),Sw(s)),c=Ve(t,pd),h="".concat(n,"Id"),u=n[0],d=r;if(l.length&&(d=l.reduce(function(p,g){if(g.props[h]===i&&gi(g.props,"extendDomain")&&tt(g.props[u])){var m=g.props[u];return[Math.min(p[0],m),Math.max(p[1],m)]}return p},d)),c.length){var f="".concat(u,"1"),y="".concat(u,"2");d=c.reduce(function(p,g){if(g.props[h]===i&&gi(g.props,"extendDomain")&&tt(g.props[f])&&tt(g.props[y])){var m=g.props[f],v=g.props[y];return[Math.min(p[0],m,v),Math.max(p[1],m,v)]}return p},d)}return a&&a.length&&(d=a.reduce(function(p,g){return tt(g)?[Math.min(p[0],g),Math.max(p[1],g)]:p},d)),d},gA={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function n(l,c,h){this.fn=l,this.context=c,this.once=h||!1}function a(l,c,h,u,d){if(typeof h!="function")throw new TypeError("The listener must be a function");var f=new n(h,u||l,d),y=r?r+c:c;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],f]:l._events[y].push(f):(l._events[y]=f,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new i:delete l._events[c]}function s(){this._events=new i,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],h,u;if(this._eventsCount===0)return c;for(u in h=this._events)t.call(h,u)&&c.push(r?u.slice(1):u);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(h)):c},s.prototype.listeners=function(c){var h=r?r+c:c,u=this._events[h];if(!u)return[];if(u.fn)return[u.fn];for(var d=0,f=u.length,y=new Array(f);d<f;d++)y[d]=u[d].fn;return y},s.prototype.listenerCount=function(c){var h=r?r+c:c,u=this._events[h];return u?u.fn?1:u.length:0},s.prototype.emit=function(c,h,u,d,f,y){var p=r?r+c:c;if(!this._events[p])return!1;var g=this._events[p],m=arguments.length,v,x;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),m){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,h),!0;case 3:return g.fn.call(g.context,h,u),!0;case 4:return g.fn.call(g.context,h,u,d),!0;case 5:return g.fn.call(g.context,h,u,d,f),!0;case 6:return g.fn.call(g.context,h,u,d,f,y),!0}for(x=1,v=new Array(m-1);x<m;x++)v[x-1]=arguments[x];g.fn.apply(g.context,v)}else{var w=g.length,b;for(x=0;x<w;x++)switch(g[x].once&&this.removeListener(c,g[x].fn,void 0,!0),m){case 1:g[x].fn.call(g[x].context);break;case 2:g[x].fn.call(g[x].context,h);break;case 3:g[x].fn.call(g[x].context,h,u);break;case 4:g[x].fn.call(g[x].context,h,u,d);break;default:if(!v)for(b=1,v=new Array(m-1);b<m;b++)v[b-1]=arguments[b];g[x].fn.apply(g[x].context,v)}}return!0},s.prototype.on=function(c,h,u){return a(this,c,h,u,!1)},s.prototype.once=function(c,h,u){return a(this,c,h,u,!0)},s.prototype.removeListener=function(c,h,u,d){var f=r?r+c:c;if(!this._events[f])return this;if(!h)return o(this,f),this;var y=this._events[f];if(y.fn)y.fn===h&&(!d||y.once)&&(!u||y.context===u)&&o(this,f);else{for(var p=0,g=[],m=y.length;p<m;p++)(y[p].fn!==h||d&&!y[p].once||u&&y[p].context!==u)&&g.push(y[p]);g.length?this._events[f]=g.length===1?g[0]:g:o(this,f)}return this},s.prototype.removeAllListeners=function(c){var h;return c?(h=r?r+c:c,this._events[h]&&o(this,h)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(gA);var Ket=gA.exports;const Zet=Ut(Ket);var $p=new Zet,Ep="recharts.syncMouseEvents";function Jl(e){"@babel/helpers - typeof";return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jl(e)}function Qet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jet(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,yA(i.key),i)}}function trt(e,t,r){return t&&Jet(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pp(e,t,r){return t=yA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yA(e){var t=ert(e,"string");return Jl(t)=="symbol"?t:t+""}function ert(e,t){if(Jl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Jl(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rrt=function(){function e(){Qet(this,e),Pp(this,"activeIndex",0),Pp(this,"coordinateList",[]),Pp(this,"layout","horizontal")}return trt(e,[{key:"setDetails",value:function(r){var i,n=r.coordinateList,a=n===void 0?null:n,o=r.container,s=o===void 0?null:o,l=r.layout,c=l===void 0?null:l,h=r.offset,u=h===void 0?null:h,d=r.mouseHandlerCallback,f=d===void 0?null:d;this.coordinateList=(i=a??this.coordinateList)!==null&&i!==void 0?i:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=u??this.offset,this.mouseHandlerCallback=f??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,i;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var n=this.container.getBoundingClientRect(),a=n.x,o=n.y,s=n.height,l=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,h=((i=window)===null||i===void 0?void 0:i.scrollY)||0,u=a+l+c,d=o+this.offset.top+s/2+h;this.mouseHandlerCallback({pageX:u,pageY:d})}}}])}();function irt(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var i=e==null?void 0:e[0],n=e==null?void 0:e[1];if(i&&n&&tt(i)&&tt(n))return!0}return!1}function nrt(e,t,r,i){var n=i/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-n:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-n,width:e==="horizontal"?i:r.width-1,height:e==="horizontal"?r.height-1:i}}function mA(e){var t=e.cx,r=e.cy,i=e.radius,n=e.startAngle,a=e.endAngle,o=ee(t,r,i,n),s=ee(t,r,i,a);return{points:[o,s],cx:t,cy:r,radius:i,startAngle:n,endAngle:a}}function art(e,t,r){var i,n,a,o;if(e==="horizontal")i=t.x,a=i,n=r.top,o=r.top+r.height;else if(e==="vertical")n=t.y,o=n,i=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,c=t.innerRadius,h=t.outerRadius,u=t.angle,d=ee(s,l,c,u),f=ee(s,l,h,u);i=d.x,n=d.y,a=f.x,o=f.y}else return mA(t);return[{x:i,y:n},{x:a,y:o}]}function tc(e){"@babel/helpers - typeof";return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(e)}function kw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function eh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kw(Object(r),!0).forEach(function(i){ort(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function ort(e,t,r){return t=srt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function srt(e){var t=lrt(e,"string");return tc(t)=="symbol"?t:t+""}function lrt(e,t){if(tc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(tc(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function crt(e){var t,r,i=e.element,n=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,c=e.activeTooltipIndex,h=e.tooltipAxisBandSize,u=e.layout,d=e.chartName,f=(t=i.props.cursor)!==null&&t!==void 0?t:(r=i.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!i||!f||!a||!o||d!=="ScatterChart"&&n!=="axis")return null;var y,p=bn;if(d==="ScatterChart")y=o,p=JX;else if(d==="BarChart")y=nrt(u,o,l,h),p=id;else if(u==="radial"){var g=mA(o),m=g.cx,v=g.cy,x=g.radius,w=g.startAngle,b=g.endAngle;y={cx:m,cy:v,startAngle:w,endAngle:b,innerRadius:x,outerRadius:x},p=n_}else y={points:art(u,o,l)},p=bn;var C=eh(eh(eh(eh({stroke:"#ccc",pointerEvents:"none"},l),y),lt(f,!1)),{},{payload:s,payloadIndex:c,className:Ot("recharts-tooltip-cursor",f.className)});return J.isValidElement(f)?J.cloneElement(f,C):J.createElement(p,C)}var hrt=["item"],urt=["children","className","width","height","style","compact","title","desc"];function Xo(e){"@babel/helpers - typeof";return Xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xo(e)}function Xa(){return Xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Xa.apply(this,arguments)}function Tw(e,t){return prt(e)||drt(e,t)||bA(e,t)||frt()}function frt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
75In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function drt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function prt(e){if(Array.isArray(e))return e}function _w(e,t){if(e==null)return{};var r=grt(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function grt(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function yrt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mrt(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,xA(i.key),i)}}function vrt(e,t,r){return t&&mrt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function brt(e,t,r){return t=Iu(t),xrt(e,vA()?Reflect.construct(t,r||[],Iu(e).constructor):t.apply(e,r))}function xrt(e,t){if(t&&(Xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Crt(e)}function Crt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vA=function(){return!!e})()}function Iu(e){return Iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Iu(e)}function wrt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$y(e,t)}function $y(e,t){return $y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},$y(e,t)}function Ko(e){return Trt(e)||krt(e)||bA(e)||Srt()}function Srt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
76In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bA(e,t){if(e){if(typeof e=="string")return Ey(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ey(e,t)}}function krt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Trt(e){if(Array.isArray(e))return Ey(e)}function Ey(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function Aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Aw(Object(r),!0).forEach(function(i){xt(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function xt(e,t,r){return t=xA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xA(e){var t=_rt(e,"string");return Xo(t)=="symbol"?t:t+""}function _rt(e,t){if(Xo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Xo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Art={xAxis:["bottom","top"],yAxis:["left","right"]},Ort={width:"100%",height:"100%"},CA={x:0,y:0};function rh(e){return e}var Brt=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},$rt=function(t,r,i,n){var a=r.find(function(h){return h&&h.index===i});if(a){if(t==="horizontal")return{x:a.coordinate,y:n.y};if(t==="vertical")return{x:n.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=n.radius;return V(V(V({},n),ee(n.cx,n.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,c=n.angle;return V(V(V({},n),ee(n.cx,n.cy,l,c)),{},{angle:c,radius:l})}return CA},gd=function(t,r){var i=r.graphicalItems,n=r.dataStartIndex,a=r.dataEndIndex,o=(i??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(Ko(s),Ko(c)):s},[]);return o.length>0?o:t&&t.length&&tt(n)&&tt(a)?t.slice(n,a+1):[]};function wA(e){return e==="number"?[0,"auto"]:void 0}var Py=function(t,r,i,n){var a=t.graphicalItems,o=t.tooltipAxis,s=gd(r,t);return i<0||!a||!a.length||i>=s.length?null:a.reduce(function(l,c){var h,u=(h=c.props.data)!==null&&h!==void 0?h:r;u&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=i&&(u=u.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var f=u===void 0?s:u;d=Eh(f,o.dataKey,n)}else d=u&&u[i]||s[i];return d?[].concat(Ko(l),[Z2(c,d)]):l},[])},Ow=function(t,r,i,n){var a=n||{x:t.chartX,y:t.chartY},o=Brt(a,i),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,h=oG(o,s,c,l);if(h>=0&&c){var u=c[h]&&c[h].value,d=Py(t,r,h,u),f=$rt(i,s,h,a);return{activeTooltipIndex:h,activeLabel:u,activePayload:d,activeCoordinate:f}}return null},Ert=function(t,r){var i=r.axes,n=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,h=t.layout,u=t.children,d=t.stackOffset,f=U2(h,a);return i.reduce(function(y,p){var g,m=p.type.defaultProps!==void 0?V(V({},p.type.defaultProps),p.props):p.props,v=m.type,x=m.dataKey,w=m.allowDataOverflow,b=m.allowDuplicatedCategory,C=m.scale,k=m.ticks,T=m.includeHidden,E=m[o];if(y[E])return y;var L=gd(t.data,{graphicalItems:n.filter(function(U){var Q,it=o in U.props?U.props[o]:(Q=U.type.defaultProps)===null||Q===void 0?void 0:Q[o];return it===E}),dataStartIndex:l,dataEndIndex:c}),P=L.length,I,D,_;irt(m.domain,w,v)&&(I=qg(m.domain,null,w),f&&(v==="number"||C!=="auto")&&(_=sl(L,x,"category")));var B=wA(v);if(!I||I.length===0){var O,M=(O=m.domain)!==null&&O!==void 0?O:B;if(x){if(I=sl(L,x,v),v==="category"&&f){var F=Y5(I);b&&F?(D=I,I=xu(0,P)):b||(I=tC(M,I,p).reduce(function(U,Q){return U.indexOf(Q)>=0?U:[].concat(Ko(U),[Q])},[]))}else if(v==="category")b?I=I.filter(function(U){return U!==""&&!yt(U)}):I=tC(M,I,p).reduce(function(U,Q){return U.indexOf(Q)>=0||Q===""||yt(Q)?U:[].concat(Ko(U),[Q])},[]);else if(v==="number"){var $=uG(L,n.filter(function(U){var Q,it,nt=o in U.props?U.props[o]:(Q=U.type.defaultProps)===null||Q===void 0?void 0:Q[o],vt="hide"in U.props?U.props.hide:(it=U.type.defaultProps)===null||it===void 0?void 0:it.hide;return nt===E&&(T||!vt)}),x,a,h);$&&(I=$)}f&&(v==="number"||C!=="auto")&&(_=sl(L,x,"category"))}else f?I=xu(0,P):s&&s[E]&&s[E].hasStack&&v==="number"?I=d==="expand"?[0,1]:K2(s[E].stackGroups,l,c):I=H2(L,n.filter(function(U){var Q=o in U.props?U.props[o]:U.type.defaultProps[o],it="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return Q===E&&(T||!it)}),v,h,!0);if(v==="number")I=By(u,I,E,a,k),M&&(I=qg(M,I,w));else if(v==="category"&&M){var N=M,W=I.every(function(U){return N.indexOf(U)>=0});W&&(I=N)}}return V(V({},y),{},xt({},E,V(V({},m),{},{axisType:a,domain:I,categoricalDomain:_,duplicateDomain:D,originalDomain:(g=m.domain)!==null&&g!==void 0?g:B,isCategorical:f,layout:h})))},{})},Prt=function(t,r){var i=r.graphicalItems,n=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,h=t.layout,u=t.children,d=gd(t.data,{graphicalItems:i,dataStartIndex:l,dataEndIndex:c}),f=d.length,y=U2(h,a),p=-1;return i.reduce(function(g,m){var v=m.type.defaultProps!==void 0?V(V({},m.type.defaultProps),m.props):m.props,x=v[o],w=wA("number");if(!g[x]){p++;var b;return y?b=xu(0,f):s&&s[x]&&s[x].hasStack?(b=K2(s[x].stackGroups,l,c),b=By(u,b,x,a)):(b=qg(w,H2(d,i.filter(function(C){var k,T,E=o in C.props?C.props[o]:(k=C.type.defaultProps)===null||k===void 0?void 0:k[o],L="hide"in C.props?C.props.hide:(T=C.type.defaultProps)===null||T===void 0?void 0:T.hide;return E===x&&!L}),"number",h),n.defaultProps.allowDataOverflow),b=By(u,b,x,a)),V(V({},g),{},xt({},x,V(V({axisType:a},n.defaultProps),{},{hide:!0,orientation:fr(Art,"".concat(a,".").concat(p%2),null),domain:b,originalDomain:w,isCategorical:y,layout:h})))}return g},{})},Lrt=function(t,r){var i=r.axisType,n=i===void 0?"xAxis":i,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,h=t.children,u="".concat(n,"Id"),d=Ve(h,a),f={};return d&&d.length?f=Ert(t,{axes:d,graphicalItems:o,axisType:n,axisIdKey:u,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(f=Prt(t,{Axis:a,graphicalItems:o,axisType:n,axisIdKey:u,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),f},Mrt=function(t){var r=hn(t),i=Ii(r,!1,!0);return{tooltipTicks:i,orderedTooltipTicks:dv(i,function(n){return n.coordinate}),tooltipAxis:r,tooltipAxisBandSize:lu(r,i)}},Bw=function(t){var r=t.children,i=t.defaultShowTooltip,n=Ue(r,Do),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(a=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!i}},Frt=function(t){return!t||!t.length?!1:t.some(function(r){var i=Ri(r&&r.type);return i&&i.indexOf("Bar")>=0})},$w=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Irt=function(t,r){var i=t.props,n=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,c=i.width,h=i.height,u=i.children,d=i.margin||{},f=Ue(u,Do),y=Ue(u,Ja),p=Object.keys(l).reduce(function(b,C){var k=l[C],T=k.orientation;return!k.mirror&&!k.hide?V(V({},b),{},xt({},T,b[T]+k.width)):b},{left:d.left||0,right:d.right||0}),g=Object.keys(o).reduce(function(b,C){var k=o[C],T=k.orientation;return!k.mirror&&!k.hide?V(V({},b),{},xt({},T,fr(b,"".concat(T))+k.height)):b},{top:d.top||0,bottom:d.bottom||0}),m=V(V({},g),p),v=m.bottom;f&&(m.bottom+=f.props.height||Do.defaultProps.height),y&&r&&(m=cG(m,n,i,r));var x=c-m.left-m.right,w=h-m.top-m.bottom;return V(V({brushBottom:v},m),{},{width:Math.max(x,0),height:Math.max(w,0)})},Drt=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Ta=function(t){var r=t.chartName,i=t.GraphicalChild,n=t.defaultTooltipEventType,a=n===void 0?"axis":n,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,c=t.legendContent,h=t.formatAxisMap,u=t.defaultProps,d=function(m,v){var x=v.graphicalItems,w=v.stackGroups,b=v.offset,C=v.updateId,k=v.dataStartIndex,T=v.dataEndIndex,E=m.barSize,L=m.layout,P=m.barGap,I=m.barCategoryGap,D=m.maxBarSize,_=$w(L),B=_.numericAxisName,O=_.cateAxisName,M=Frt(x),F=[];return x.forEach(function($,N){var W=gd(m.data,{graphicalItems:[$],dataStartIndex:k,dataEndIndex:T}),U=$.type.defaultProps!==void 0?V(V({},$.type.defaultProps),$.props):$.props,Q=U.dataKey,it=U.maxBarSize,nt=U["".concat(B,"Id")],vt=U["".concat(O,"Id")],Pt={},Et=l.reduce(function(ei,ri){var br=v["".concat(ri.axisType,"Map")],an=U["".concat(ri.axisType,"Id")];br&&br[an]||ri.axisType==="zAxis"||la();var ii=br[an];return V(V({},ei),{},xt(xt({},ri.axisType,ii),"".concat(ri.axisType,"Ticks"),Ii(ii)))},Pt),et=Et[O],Z=Et["".concat(O,"Ticks")],K=w&&w[nt]&&w[nt].hasStack&&xG($,w[nt].stackGroups),G=Ri($.type).indexOf("Bar")>=0,ht=lu(et,Z),Bt=[],bt=M&&sG({barSize:E,stackGroups:w,totalSize:Drt(Et,O)});if(G){var Gt,pe,ue=yt(it)?D:it,wi=(Gt=(pe=lu(et,Z,!0))!==null&&pe!==void 0?pe:ue)!==null&&Gt!==void 0?Gt:0;Bt=lG({barGap:P,barCategoryGap:I,bandSize:wi!==ht?wi:ht,sizeList:bt[vt],maxBarSize:ue}),wi!==ht&&(Bt=Bt.map(function(ei){return V(V({},ei),{},{position:V(V({},ei.position),{},{offset:ei.position.offset-wi/2})})}))}var nn=$&&$.type&&$.type.getComposedData;nn&&F.push({props:V(V({},nn(V(V({},Et),{},{displayedData:W,props:m,dataKey:Q,item:$,bandSize:ht,barPosition:Bt,offset:b,stackedData:K,layout:L,dataStartIndex:k,dataEndIndex:T}))),{},xt(xt(xt({key:$.key||"item-".concat(N)},B,Et[B]),O,Et[O]),"animationId",C)),childIndex:a3($,m.children),item:$})}),F},f=function(m,v){var x=m.props,w=m.dataStartIndex,b=m.dataEndIndex,C=m.updateId;if(!rg({props:x}))return null;var k=x.children,T=x.layout,E=x.stackOffset,L=x.data,P=x.reverseStackOrder,I=$w(T),D=I.numericAxisName,_=I.cateAxisName,B=Ve(k,i),O=vG(L,B,"".concat(D,"Id"),"".concat(_,"Id"),E,P),M=l.reduce(function(U,Q){var it="".concat(Q.axisType,"Map");return V(V({},U),{},xt({},it,Lrt(x,V(V({},Q),{},{graphicalItems:B,stackGroups:Q.axisType===D&&O,dataStartIndex:w,dataEndIndex:b}))))},{}),F=Irt(V(V({},M),{},{props:x,graphicalItems:B}),v==null?void 0:v.legendBBox);Object.keys(M).forEach(function(U){M[U]=h(x,M[U],F,U.replace("Map",""),r)});var $=M["".concat(_,"Map")],N=Mrt($),W=d(x,V(V({},M),{},{dataStartIndex:w,dataEndIndex:b,updateId:C,graphicalItems:B,stackGroups:O,offset:F}));return V(V({formattedGraphicalItems:W,graphicalItems:B,offset:F,stackGroups:O},N),M)},y=function(g){function m(v){var x,w,b;return yrt(this,m),b=brt(this,m,[v]),xt(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),xt(b,"accessibilityManager",new rrt),xt(b,"handleLegendBBoxUpdate",function(C){if(C){var k=b.state,T=k.dataStartIndex,E=k.dataEndIndex,L=k.updateId;b.setState(V({legendBBox:C},f({props:b.props,dataStartIndex:T,dataEndIndex:E,updateId:L},V(V({},b.state),{},{legendBBox:C}))))}}),xt(b,"handleReceiveSyncEvent",function(C,k,T){if(b.props.syncId===C){if(T===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(k)}}),xt(b,"handleBrushChange",function(C){var k=C.startIndex,T=C.endIndex;if(k!==b.state.dataStartIndex||T!==b.state.dataEndIndex){var E=b.state.updateId;b.setState(function(){return V({dataStartIndex:k,dataEndIndex:T},f({props:b.props,dataStartIndex:k,dataEndIndex:T,updateId:E},b.state))}),b.triggerSyncEvent({dataStartIndex:k,dataEndIndex:T})}}),xt(b,"handleMouseEnter",function(C){var k=b.getMouseInfo(C);if(k){var T=V(V({},k),{},{isTooltipActive:!0});b.setState(T),b.triggerSyncEvent(T);var E=b.props.onMouseEnter;pt(E)&&E(T,C)}}),xt(b,"triggeredAfterMouseMove",function(C){var k=b.getMouseInfo(C),T=k?V(V({},k),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(T),b.triggerSyncEvent(T);var E=b.props.onMouseMove;pt(E)&&E(T,C)}),xt(b,"handleItemMouseEnter",function(C){b.setState(function(){return{isTooltipActive:!0,activeItem:C,activePayload:C.tooltipPayload,activeCoordinate:C.tooltipPosition||{x:C.cx,y:C.cy}}})}),xt(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),xt(b,"handleMouseMove",function(C){C.persist(),b.throttleTriggeredAfterMouseMove(C)}),xt(b,"handleMouseLeave",function(C){b.throttleTriggeredAfterMouseMove.cancel();var k={isTooltipActive:!1};b.setState(k),b.triggerSyncEvent(k);var T=b.props.onMouseLeave;pt(T)&&T(k,C)}),xt(b,"handleOuterEvent",function(C){var k=n3(C),T=fr(b.props,"".concat(k));if(k&&pt(T)){var E,L;/.*touch.*/i.test(k)?L=b.getMouseInfo(C.changedTouches[0]):L=b.getMouseInfo(C),T((E=L)!==null&&E!==void 0?E:{},C)}}),xt(b,"handleClick",function(C){var k=b.getMouseInfo(C);if(k){var T=V(V({},k),{},{isTooltipActive:!0});b.setState(T),b.triggerSyncEvent(T);var E=b.props.onClick;pt(E)&&E(T,C)}}),xt(b,"handleMouseDown",function(C){var k=b.props.onMouseDown;if(pt(k)){var T=b.getMouseInfo(C);k(T,C)}}),xt(b,"handleMouseUp",function(C){var k=b.props.onMouseUp;if(pt(k)){var T=b.getMouseInfo(C);k(T,C)}}),xt(b,"handleTouchMove",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(C.changedTouches[0])}),xt(b,"handleTouchStart",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&b.handleMouseDown(C.changedTouches[0])}),xt(b,"handleTouchEnd",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&b.handleMouseUp(C.changedTouches[0])}),xt(b,"handleDoubleClick",function(C){var k=b.props.onDoubleClick;if(pt(k)){var T=b.getMouseInfo(C);k(T,C)}}),xt(b,"handleContextMenu",function(C){var k=b.props.onContextMenu;if(pt(k)){var T=b.getMouseInfo(C);k(T,C)}}),xt(b,"triggerSyncEvent",function(C){b.props.syncId!==void 0&&$p.emit(Ep,b.props.syncId,C,b.eventEmitterSymbol)}),xt(b,"applySyncEvent",function(C){var k=b.props,T=k.layout,E=k.syncMethod,L=b.state.updateId,P=C.dataStartIndex,I=C.dataEndIndex;if(C.dataStartIndex!==void 0||C.dataEndIndex!==void 0)b.setState(V({dataStartIndex:P,dataEndIndex:I},f({props:b.props,dataStartIndex:P,dataEndIndex:I,updateId:L},b.state)));else if(C.activeTooltipIndex!==void 0){var D=C.chartX,_=C.chartY,B=C.activeTooltipIndex,O=b.state,M=O.offset,F=O.tooltipTicks;if(!M)return;if(typeof E=="function")B=E(F,C);else if(E==="value"){B=-1;for(var $=0;$<F.length;$++)if(F[$].value===C.activeLabel){B=$;break}}var N=V(V({},M),{},{x:M.left,y:M.top}),W=Math.min(D,N.x+N.width),U=Math.min(_,N.y+N.height),Q=F[B]&&F[B].value,it=Py(b.state,b.props.data,B),nt=F[B]?{x:T==="horizontal"?F[B].coordinate:W,y:T==="horizontal"?U:F[B].coordinate}:CA;b.setState(V(V({},C),{},{activeLabel:Q,activeCoordinate:nt,activePayload:it,activeTooltipIndex:B}))}else b.setState(C)}),xt(b,"renderCursor",function(C){var k,T=b.state,E=T.isTooltipActive,L=T.activeCoordinate,P=T.activePayload,I=T.offset,D=T.activeTooltipIndex,_=T.tooltipAxisBandSize,B=b.getTooltipEventType(),O=(k=C.props.active)!==null&&k!==void 0?k:E,M=b.props.layout,F=C.key||"_recharts-cursor";return R.createElement(crt,{key:F,activeCoordinate:L,activePayload:P,activeTooltipIndex:D,chartName:r,element:C,isActive:O,layout:M,offset:I,tooltipAxisBandSize:_,tooltipEventType:B})}),xt(b,"renderPolarAxis",function(C,k,T){var E=fr(C,"type.axisType"),L=fr(b.state,"".concat(E,"Map")),P=C.type.defaultProps,I=P!==void 0?V(V({},P),C.props):C.props,D=L&&L[I["".concat(E,"Id")]];return J.cloneElement(C,V(V({},D),{},{className:Ot(E,D.className),key:C.key||"".concat(k,"-").concat(T),ticks:Ii(D,!0)}))}),xt(b,"renderPolarGrid",function(C){var k=C.props,T=k.radialLines,E=k.polarAngles,L=k.polarRadius,P=b.state,I=P.radiusAxisMap,D=P.angleAxisMap,_=hn(I),B=hn(D),O=B.cx,M=B.cy,F=B.innerRadius,$=B.outerRadius;return J.cloneElement(C,{polarAngles:Array.isArray(E)?E:Ii(B,!0).map(function(N){return N.coordinate}),polarRadius:Array.isArray(L)?L:Ii(_,!0).map(function(N){return N.coordinate}),cx:O,cy:M,innerRadius:F,outerRadius:$,key:C.key||"polar-grid",radialLines:T})}),xt(b,"renderLegend",function(){var C=b.state.formattedGraphicalItems,k=b.props,T=k.children,E=k.width,L=k.height,P=b.props.margin||{},I=E-(P.left||0)-(P.right||0),D=W2({children:T,formattedGraphicalItems:C,legendWidth:I,legendContent:c});if(!D)return null;var _=D.item,B=_w(D,hrt);return J.cloneElement(_,V(V({},B),{},{chartWidth:E,chartHeight:L,margin:P,onBBoxUpdate:b.handleLegendBBoxUpdate}))}),xt(b,"renderTooltip",function(){var C,k=b.props,T=k.children,E=k.accessibilityLayer,L=Ue(T,Tr);if(!L)return null;var P=b.state,I=P.isTooltipActive,D=P.activeCoordinate,_=P.activePayload,B=P.activeLabel,O=P.offset,M=(C=L.props.active)!==null&&C!==void 0?C:I;return J.cloneElement(L,{viewBox:V(V({},O),{},{x:O.left,y:O.top}),active:M,label:B,payload:M?_:[],coordinate:D,accessibilityLayer:E})}),xt(b,"renderBrush",function(C){var k=b.props,T=k.margin,E=k.data,L=b.state,P=L.offset,I=L.dataStartIndex,D=L.dataEndIndex,_=L.updateId;return J.cloneElement(C,{key:C.key||"_recharts-brush",onChange:Qc(b.handleBrushChange,C.props.onChange),data:E,x:tt(C.props.x)?C.props.x:P.left,y:tt(C.props.y)?C.props.y:P.top+P.height+P.brushBottom-(T.bottom||0),width:tt(C.props.width)?C.props.width:P.width,startIndex:I,endIndex:D,updateId:"brush-".concat(_)})}),xt(b,"renderReferenceElement",function(C,k,T){if(!C)return null;var E=b,L=E.clipPathId,P=b.state,I=P.xAxisMap,D=P.yAxisMap,_=P.offset,B=C.type.defaultProps||{},O=C.props,M=O.xAxisId,F=M===void 0?B.xAxisId:M,$=O.yAxisId,N=$===void 0?B.yAxisId:$;return J.cloneElement(C,{key:C.key||"".concat(k,"-").concat(T),xAxis:I[F],yAxis:D[N],viewBox:{x:_.left,y:_.top,width:_.width,height:_.height},clipPathId:L})}),xt(b,"renderActivePoints",function(C){var k=C.item,T=C.activePoint,E=C.basePoint,L=C.childIndex,P=C.isRange,I=[],D=k.props.key,_=k.item.type.defaultProps!==void 0?V(V({},k.item.type.defaultProps),k.item.props):k.item.props,B=_.activeDot,O=_.dataKey,M=V(V({index:L,dataKey:O,cx:T.x,cy:T.y,r:4,fill:Dv(k.item),strokeWidth:2,stroke:"#fff",payload:T.payload,value:T.value},lt(B,!1)),Ph(B));return I.push(m.renderActiveDot(B,M,"".concat(D,"-activePoint-").concat(L))),E?I.push(m.renderActiveDot(B,V(V({},M),{},{cx:E.x,cy:E.y}),"".concat(D,"-basePoint-").concat(L))):P&&I.push(null),I}),xt(b,"renderGraphicChild",function(C,k,T){var E=b.filterFormatItem(C,k,T);if(!E)return null;var L=b.getTooltipEventType(),P=b.state,I=P.isTooltipActive,D=P.tooltipAxis,_=P.activeTooltipIndex,B=P.activeLabel,O=b.props.children,M=Ue(O,Tr),F=E.props,$=F.points,N=F.isRange,W=F.baseLine,U=E.item.type.defaultProps!==void 0?V(V({},E.item.type.defaultProps),E.item.props):E.item.props,Q=U.activeDot,it=U.hide,nt=U.activeBar,vt=U.activeShape,Pt=!!(!it&&I&&M&&(Q||nt||vt)),Et={};L!=="axis"&&M&&M.props.trigger==="click"?Et={onClick:Qc(b.handleItemMouseEnter,C.props.onClick)}:L!=="axis"&&(Et={onMouseLeave:Qc(b.handleItemMouseLeave,C.props.onMouseLeave),onMouseEnter:Qc(b.handleItemMouseEnter,C.props.onMouseEnter)});var et=J.cloneElement(C,V(V({},E.props),Et));function Z(ri){return typeof D.dataKey=="function"?D.dataKey(ri.payload):null}if(Pt)if(_>=0){var K,G;if(D.dataKey&&!D.allowDuplicatedCategory){var ht=typeof D.dataKey=="function"?Z:"payload.".concat(D.dataKey.toString());K=Eh($,ht,B),G=N&&W&&Eh(W,ht,B)}else K=$==null?void 0:$[_],G=N&&W&&W[_];if(vt||nt){var Bt=C.props.activeIndex!==void 0?C.props.activeIndex:_;return[J.cloneElement(C,V(V(V({},E.props),Et),{},{activeIndex:Bt})),null,null]}if(!yt(K))return[et].concat(Ko(b.renderActivePoints({item:E,activePoint:K,basePoint:G,childIndex:_,isRange:N})))}else{var bt,Gt=(bt=b.getItemByXY(b.state.activeCoordinate))!==null&&bt!==void 0?bt:{graphicalItem:et},pe=Gt.graphicalItem,ue=pe.item,wi=ue===void 0?C:ue,nn=pe.childIndex,ei=V(V(V({},E.props),Et),{},{activeIndex:nn});return[J.cloneElement(wi,ei),null,null]}return N?[et,null,null]:[et,null]}),xt(b,"renderCustomized",function(C,k,T){return J.cloneElement(C,V(V({key:"recharts-customized-".concat(T)},b.props),b.state))}),xt(b,"renderMap",{CartesianGrid:{handler:rh,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:rh},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:rh},YAxis:{handler:rh},Brush:{handler:b.renderBrush,once:!0},Bar:{handler:b.renderGraphicChild},Line:{handler:b.renderGraphicChild},Area:{handler:b.renderGraphicChild},Radar:{handler:b.renderGraphicChild},RadialBar:{handler:b.renderGraphicChild},Scatter:{handler:b.renderGraphicChild},Pie:{handler:b.renderGraphicChild},Funnel:{handler:b.renderGraphicChild},Tooltip:{handler:b.renderCursor,once:!0},PolarGrid:{handler:b.renderPolarGrid,once:!0},PolarAngleAxis:{handler:b.renderPolarAxis},PolarRadiusAxis:{handler:b.renderPolarAxis},Customized:{handler:b.renderCustomized}}),b.clipPathId="".concat((x=v.id)!==null&&x!==void 0?x:Qi("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=PT(b.triggeredAfterMouseMove,(w=v.throttleDelay)!==null&&w!==void 0?w:1e3/60),b.state={},b}return wrt(m,g),vrt(m,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,b=x.data,C=x.height,k=x.layout,T=Ue(w,Tr);if(T){var E=T.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length-1)){var L=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,P=Py(this.state,b,E,L),I=this.state.tooltipTicks[E].coordinate,D=(this.state.offset.top+C)/2,_=k==="horizontal",B=_?{x:I,y:D}:{y:I,x:D},O=this.state.formattedGraphicalItems.find(function(F){var $=F.item;return $.type.name==="Scatter"});O&&(B=V(V({},B),O.props.points[E].tooltipPosition),P=O.props.points[E].tooltipPayload);var M={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:L,activePayload:P,activeCoordinate:B};this.setState(M),this.renderCursor(T),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var b,C;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0}})}return null}},{key:"componentDidUpdate",value:function(x){ig([Ue(x.children,Tr)],[Ue(this.props.children,Tr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Ue(this.props.children,Tr);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return s.indexOf(w)>=0?w:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,b=w.getBoundingClientRect(),C=w7(b),k={chartX:Math.round(x.pageX-C.left),chartY:Math.round(x.pageY-C.top)},T=b.width/w.offsetWidth||1,E=this.inRange(k.chartX,k.chartY,T);if(!E)return null;var L=this.state,P=L.xAxisMap,I=L.yAxisMap,D=this.getTooltipEventType(),_=Ow(this.state,this.props.data,this.props.layout,E);if(D!=="axis"&&P&&I){var B=hn(P).scale,O=hn(I).scale,M=B&&B.invert?B.invert(k.chartX):null,F=O&&O.invert?O.invert(k.chartY):null;return V(V({},k),{},{xValue:M,yValue:F},_)}return _?V(V({},k),_):null}},{key:"inRange",value:function(x,w){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,C=this.props.layout,k=x/b,T=w/b;if(C==="horizontal"||C==="vertical"){var E=this.state.offset,L=k>=E.left&&k<=E.left+E.width&&T>=E.top&&T<=E.top+E.height;return L?{x:k,y:T}:null}var P=this.state,I=P.angleAxisMap,D=P.radiusAxisMap;if(I&&D){var _=hn(I);return iC({x:k,y:T},_)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),b=Ue(x,Tr),C={};b&&w==="axis"&&(b.props.trigger==="click"?C={onClick:this.handleClick}:C={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var k=Ph(this.props,this.handleOuterEvent);return V(V({},k),C)}},{key:"addListener",value:function(){$p.on(Ep,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){$p.removeListener(Ep,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,b){for(var C=this.state.formattedGraphicalItems,k=0,T=C.length;k<T;k++){var E=C[k];if(E.item===x||E.props.key===x.key||w===Ri(E.item.type)&&b===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,b=w.left,C=w.top,k=w.height,T=w.width;return R.createElement("defs",null,R.createElement("clipPath",{id:x},R.createElement("rect",{x:b,y:C,height:k,width:T})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,b){var C=Tw(b,2),k=C[0],T=C[1];return V(V({},w),{},xt({},k,T.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,b){var C=Tw(b,2),k=C[0],T=C[1];return V(V({},w),{},xt({},k,T.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,b=w.formattedGraphicalItems,C=w.activeItem;if(b&&b.length)for(var k=0,T=b.length;k<T;k++){var E=b[k],L=E.props,P=E.item,I=P.type.defaultProps!==void 0?V(V({},P.type.defaultProps),P.props):P.props,D=Ri(P.type);if(D==="Bar"){var _=(L.data||[]).find(function(F){return MX(x,F)});if(_)return{graphicalItem:E,payload:_}}else if(D==="RadialBar"){var B=(L.data||[]).find(function(F){return iC(x,F)});if(B)return{graphicalItem:E,payload:B}}else if(ld(E,C)||cd(E,C)||Vl(E,C)){var O=vZ({graphicalItem:E,activeTooltipItem:C,itemData:I.data}),M=I.activeIndex===void 0?O:I.activeIndex;return{graphicalItem:V(V({},E),{},{childIndex:M}
76),payload:Vl(E,C)?I.data[O]:E.props.data[O]}}}return null}},{key:"render",value:function(){var x=this;if(!rg(this))return null;var w=this.props,b=w.children,C=w.className,k=w.width,T=w.height,E=w.style,L=w.compact,P=w.title,I=w.desc,D=_w(w,urt),_=lt(D,!1);if(L)return R.createElement(iw,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},R.createElement(Lh,Xa({},_,{width:k,height:T,title:P,desc:I}),this.renderClipPath(),G0(b,this.renderMap)));if(this.props.accessibilityLayer){var B,O;_.tabIndex=(B=this.props.tabIndex)!==null&&B!==void 0?B:0,_.role=(O=this.props.role)!==null&&O!==void 0?O:"application",_.onKeyDown=function(F){x.accessibilityManager.keyboardEvent(F)},_.onFocus=function(){x.accessibilityManager.focus()}}var M=this.parseEventsOfWrapper();return R.createElement(iw,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},R.createElement("div",Xa({className:Ot("recharts-wrapper",C),style:V({position:"relative",cursor:"default",width:k,height:T},E)},M,{ref:function($){x.container=$}}),R.createElement(Lh,Xa({},_,{width:k,height:T,title:P,desc:I,style:Ort}),this.renderClipPath(),G0(b,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(J.Component);xt(y,"displayName",r),xt(y,"defaultProps",V({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},u)),xt(y,"getDerivedStateFromProps",function(g,m){var v=g.dataKey,x=g.data,w=g.children,b=g.width,C=g.height,k=g.layout,T=g.stackOffset,E=g.margin,L=m.dataStartIndex,P=m.dataEndIndex;if(m.updateId===void 0){var I=Bw(g);return V(V(V({},I),{},{updateId:0},f(V(V({props:g},I),{},{updateId:0}),m)),{},{prevDataKey:v,prevData:x,prevWidth:b,prevHeight:C,prevLayout:k,prevStackOffset:T,prevMargin:E,prevChildren:w})}if(v!==m.prevDataKey||x!==m.prevData||b!==m.prevWidth||C!==m.prevHeight||k!==m.prevLayout||T!==m.prevStackOffset||!Qa(E,m.prevMargin)){var D=Bw(g),_={chartX:m.chartX,chartY:m.chartY,isTooltipActive:m.isTooltipActive},B=V(V({},Ow(m,x,k)),{},{updateId:m.updateId+1}),O=V(V(V({},D),_),B);return V(V(V({},O),f(V({props:g},O),m)),{},{prevDataKey:v,prevData:x,prevWidth:b,prevHeight:C,prevLayout:k,prevStackOffset:T,prevMargin:E,prevChildren:w})}if(!ig(w,m.prevChildren)){var M,F,$,N,W=Ue(w,Do),U=W&&(M=(F=W.props)===null||F===void 0?void 0:F.startIndex)!==null&&M!==void 0?M:L,Q=W&&($=(N=W.props)===null||N===void 0?void 0:N.endIndex)!==null&&$!==void 0?$:P,it=U!==L||Q!==P,nt=!yt(x),vt=nt&&!it?m.updateId:m.updateId+1;return V(V({updateId:vt},f(V(V({props:g},m),{},{updateId:vt,dataStartIndex:U,dataEndIndex:Q}),m)),{},{prevChildren:w,dataStartIndex:U,dataEndIndex:Q})}return null}),xt(y,"renderActiveDot",function(g,m,v){var x;return J.isValidElement(g)?x=J.cloneElement(g,m):pt(g)?x=g(m):x=R.createElement(bc,m),R.createElement(At,{className:"recharts-active-dot",key:v},x)});var p=J.forwardRef(function(m,v){return R.createElement(y,Xa({},m,{ref:v}))});return p.displayName=y.displayName,p},c0t=Ta({chartName:"LineChart",GraphicalChild:Cc,axisComponents:[{axisType:"xAxis",AxisComp:Sa},{axisType:"yAxis",AxisComp:ka}],formatAxisMap:xc}),h0t=Ta({chartName:"BarChart",GraphicalChild:wa,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Sa},{axisType:"yAxis",AxisComp:ka}],formatAxisMap:xc}),u0t=Ta({chartName:"PieChart",GraphicalChild:Pn,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:sd},{axisType:"radiusAxis",AxisComp:ad}],formatAxisMap:$G,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Rrt(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var jrt=Rrt,Nrt=jv,zrt=mf,Wrt=Object.prototype,qrt=Wrt.hasOwnProperty;function Hrt(e,t,r){var i=e[t];(!(qrt.call(e,t)&&zrt(i,r))||r===void 0&&!(t in e))&&Nrt(e,t,r)}var SA=Hrt,Urt=SA,Yrt=jv;function Grt(e,t,r,i){var n=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=i?i(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),n?Yrt(r,s,l):Urt(r,s,l)}return r}var kc=Grt,Vrt=kc,Xrt=ps;function Krt(e,t){return e&&Vrt(t,Xrt(t),e)}var Zrt=Krt;function Qrt(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Jrt=Qrt,tit=Qr,eit=cv,rit=Jrt,iit=Object.prototype,nit=iit.hasOwnProperty;function ait(e){if(!tit(e))return rit(e);var t=eit(e),r=[];for(var i in e)i=="constructor"&&(t||!nit.call(e,i))||r.push(i);return r}var oit=ait,sit=cT,lit=oit,cit=ds;function hit(e){return cit(e)?sit(e,!0):lit(e)}var Xv=hit,uit=kc,fit=Xv;function dit(e,t){return e&&uit(t,fit(t),e)}var pit=dit,Du={exports:{}};Du.exports;(function(e,t){var r=Kr,i=t&&!t.nodeType&&t,n=i&&!0&&e&&!e.nodeType&&e,a=n&&n.exports===i,o=a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(c,h){if(h)return c.slice();var u=c.length,d=s?s(u):new c.constructor(u);return c.copy(d),d}e.exports=l})(Du,Du.exports);var git=Du.exports;function yit(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var mit=yit,vit=kc,bit=iv;function xit(e,t){return vit(e,bit(e),t)}var Cit=xit,wit=rv,Sit=Rv,kit=iv,Tit=oT,_it=Object.getOwnPropertySymbols,Ait=_it?function(e){for(var t=[];e;)wit(t,kit(e)),e=Sit(e);return t}:Tit,kA=Ait,Oit=kc,Bit=kA;function $it(e,t){return Oit(e,Bit(e),t)}var Eit=$it,Pit=aT,Lit=kA,Mit=Xv;function Fit(e){return Pit(e,Mit,Lit)}var TA=Fit,Iit=Object.prototype,Dit=Iit.hasOwnProperty;function Rit(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Dit.call(e,"index")&&(r.index=e.index,r.input
76=e.input),r}var jit=Rit,Ew=nT;function Nit(e){var t=new e.constructor(e.byteLength);return new Ew(t).set(new Ew(e)),t}var Kv=Nit,zit=Kv;function Wit(e,t){var r=t?zit(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var qit=Wit,Hit=/\w*$/;function Uit(e){var t=new e.constructor(e.source,Hit.exec(e));return t.lastIndex=e.lastIndex,t}var Yit=Uit,Pw=os,Lw=Pw?Pw.prototype:void 0,Mw=Lw?Lw.valueOf:void 0;function Git(e){return Mw?Object(Mw.call(e)):{}}var Vit=Git,Xit=Kv;function Kit(e,t){var r=t?Xit(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Zit=Kit,Qit=Kv,Jit=qit,tnt=Yit,ent=Vit,rnt=Zit,int="[object Boolean]",nnt="[object Date]",ant="[object Map]",ont="[object Number]",snt="[object RegExp]",lnt="[object Set]",cnt="[object String]",hnt="[object Symbol]",unt="[object ArrayBuffer]",fnt="[object DataView]",dnt="[object Float32Array]",pnt="[object Float64Array]",gnt="[object Int8Array]",ynt="[object Int16Array]",mnt="[object Int32Array]",vnt="[object Uint8Array]",bnt="[object Uint8ClampedArray]",xnt="[object Uint16Array]",Cnt="[object Uint32Array]";function wnt(e,t,r){var i=e.constructor;switch(t){case unt:return Qit(e);case int:case nnt:return new i(+e);case fnt:return Jit(e,r);case dnt:case pnt:case gnt:case ynt:case mnt:case vnt:case bnt:case xnt:case Cnt:return rnt(e,r);case ant:return new i;case ont:case cnt:return new i(e);case snt:return tnt(e);case lnt:return new i;case hnt:return ent(e)}}var Snt=wnt,knt=Qr,Fw=Object.create,Tnt=function(){function e(){}return function(t){if(!knt(t))return{};if(Fw)return Fw(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),_nt=Tnt,Ant=_nt,Ont=Rv,Bnt=cv;function $nt(e){return typeof e.constructor=="function"&&!Bnt(e)?Ant(Ont(e)):{}}var Ent=$nt,Pnt=Wf,Lnt=Zr,Mnt="[object Map]";function Fnt(e){return Lnt(e)&&Pnt(e)==Mnt}var Int=Fnt,Dnt=Int,Rnt=zf,Iw=lv,Dw=Iw&&Iw.isMap,jnt=Dw?Rnt(Dw):Dnt,Nnt=jnt,znt=Wf,Wnt=Zr,qnt="[object Set]";function Hnt(e){return Wnt(e)&&znt(e)==qnt}var Unt=Hnt,Ynt=Unt,Gnt=zf,Rw=lv,jw=Rw&&Rw.isSet,Vnt=jw?Gnt(jw):Ynt,Xnt=Vnt,Knt=tv,Znt=jrt,Qnt=SA,Jnt=Zrt,tat=pit,eat=git,rat=mit,iat=Cit,nat=Eit,aat=uT,oat=TA,sat=Wf,lat=jit,cat=Snt,hat=Ent,uat=sr,fat=av,dat=Nnt,pat=Qr,gat=Xnt,yat=ps,mat=Xv,vat=1,bat=2,xat=4,_A="[object Arguments]",Cat="[object Array]",wat="[object Boolean]",Sat="[object Date]",kat="[object Error]",AA="[object Function]",Tat="[object GeneratorFunction]",_at="[object Map]",Aat="[object Number]",OA="[object Object]",Oat="[object RegExp]",Bat="[object Set]",$at="[object String]",Eat="[object Symbol]",Pat="[object WeakMap]",Lat="[object ArrayBuffer]",Mat="[object DataView]",Fat="[object Float32Array]",Iat="[object Float64Array]",Dat="[object Int8Array]",Rat="[object Int16Array]",jat="[object Int32Array]",Nat="[object Uint8Array]",zat="[object Uint8ClampedArray]",Wat="[object Uint16Array]",qat="[object Uint32Array]",Qt={};Qt[_A]=Qt[Cat]=Qt[Lat]=Qt[Mat]=Qt[wat]=Qt[Sat]=Qt[Fat]=Qt[Iat]=Qt[Dat]=Qt[Rat]=Qt[jat]=Qt[_at]=Qt[Aat]=Qt[OA]=Qt[Oat]=Qt[Bat]=Qt[$at]=Qt[Eat]=Qt[Nat]=Qt[zat]=Qt[Wat]=Qt[qat]=!0;Qt[kat]=Qt[AA]=Qt[Pat]=!1;function gh(e,t,r,i,n,a){var o,s=t&vat,l=t&bat,c=t&xat;if(r&&(o=n?r(e,i,n,a):r(e)),o!==void 0)return o;if(!pat(e))return e;var h=uat(e);if(h){if(o=lat(e),!s)return rat(e,o)}else{var u=sat(e),d=u==AA||u==Tat;if(fat(e))return eat(e,s);if(u==OA||u==_A||d&&!n){if(o=l||d?{}:hat(e),!s)return l?nat(e,tat(o,e)):iat(e,Jnt(o,e))}else{if(!Qt[u])return n?e:{};o=cat(e,u,s)}}a||(a=new Knt);var f=a.get(e);if(f)return f;a.set(e,o),gat(e)?e.forEach(function(g){o.add(gh(g,t,r,g,e,a))}):dat(e)&&e.forEach(function(g,m){o.set(m,gh(g,t,r,m,e,a))});var y=c?l?oat:aat:l?mat:yat,p=h?void 0:y(e);return Znt(p||e,function(g,m){p&&(m=g,g=e[m]),Qnt(o,m,gh(g,t,r,m,e,a))}),o}var Hat=gh,Uat=Sf,Yat=Ck;function Gat(e,t){return t.length<2?e:Uat(e,Yat(t,0,-1))}var Vat=Gat,Xat=wf,Kat=r_,Zat=Vat,Nw=dc,Qat=Object.prototype,Jat=Qat.hasOwnProperty;function tot(e,t){t=Xat(t,e);var r=-1,i=t.length;if(!i)return!0;for(;++r<i;){var n=Nw(t[r]);if(n==="__proto__"&&!Jat.call(e,"__proto__")||(n==="constructor"||n==="prototype")&&r<i-1)return!1}var a=Zat(e,t);return a==null||delete a[Nw(Kat(t))]}var eot=tot,rot=x_;function iot(e){return rot(e)?void 0:e}var not=iot,aot=uv;function oot(e){var t=e==null?0:e.length;return t?aot(e,1):[]}var sot=oot,lot=sot,cot=kT,hot=_T;function uot(e){return hot(cot(e,void 0,lot),e+"")}var fot=uot,dot=Cf,pot=Hat,got=eot,yot=wf,mot=kc,vot=not,bot=fot,xot=TA,Cot=1,wot=2,Sot=4,kot=bot(function(e,t){var r={};if(e==null)return r;var i=!1;t=dot(t,function(a){return a=yot(a,e),i||(i=a.length>1),a}),mot(e,xot(e),r),i&&(r=pot(r,Cot|wot|Sot,vot));for(var n=t.length;n--;)got(r,t[n]);return r}),Tot=kot;const BA=Ut(Tot);var _ot=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A87
767ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],Aot=["width","height","className","style","children","type"];function Zo(e){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(e)}function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ru.apply(this,arguments)}function Oot(e,t){if(e==null)return{};var r=Bot(e,t),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Bot(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function $ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zw(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,EA(i.key),i)}}function Eot(e,t,r){return t&&zw(e.prototype,t),r&&zw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pot(e,t,r){return t=ju(t),Lot(e,$A()?Reflect.construct(t,r||[],ju(e).constructor):t.apply(e,r))}function Lot(e,t){if(t&&(Zo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mot(e)}function Mot(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($A=function(){return!!e})()}function ju(e){return ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ju(e)}function Fot(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ly(e,t)}function Ly(e,t){return Ly=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ly(e,t)}function Ww(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ww(Object(r),!0).forEach(function(i){Ni(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ww(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Ni(e,t,r){return t=EA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EA(e){var t=Iot(e,"string");return Zo(t)=="symbol"?t:t+""}function Iot(e,t){if(Zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Zo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ec="value",Lp=function e(t){var r=t.depth,i=t.node,n=t.index,a=t.valueKey,o=i.children,s=r+1,l=o&&o.length?o.map(function(h,u){return e({depth:s,node:h,index:u,valueKey:a})}):null,c;return o&&o.length?c=l.reduce(function(h,u){return h+u[ec]},0):c=Bn(i[a])||i[a]<=0?0:i[a],Jt(Jt({},i),{},Ni(Ni(Ni({children:l},ec,c),"depth",r),"index",n))},Dot=function(t){return{x:t.x,y:t.y,width:t.width,height:t.height}},Rot=function(t,r){var i=r<0?0:r;return t.map(function(n){var a=n[ec]*i;return Jt(Jt({},n),{},{area:Bn(a)||a<=0?0:a})})},jot=function(t,r,i){var n=r*r,a=t.area*t.area,o=t.reduce(function(c,h){return{min:Math.min(c.min,h.area),max:Math.max(c.max,h.area)}},{min:1/0,max:0}),s=o.min,l=o.max;return a?Math.max(n*l*i/a,a/(n*s*i)):1/0},Not=function(t,r,i,n){var a=r?Math.round(t.area/r):0;(n||a>i.height)&&(a=i.height);for(var o=i.x,s,l=0,c=t.length;l<c;l++)s=t[l],s.x=o,s.y=i.y,s.height=a,s.width=Math.min(a?Math.round(s.area/a):0,i.x+i.width-o),o+=s.width;return s.width+=i.x+i.width-o,Jt(Jt({},i),{},{y:i.y+a,height:i.height-a})},zot=function(t,r,i,n){var a=r?Math.round(t.area/r):0;(n||a>i.width)&&(a=i.width);for(var o=i.y,s,l=0,c=t.length;l<c;l++)s=t[l],s.x=i.x,s.y=o,s.width=a,s.height=Math.min(a?Math.round(s.area/a):0,i.y+i.height-o),o+=s.height;return s&&(s.height+=i.y+i.height-o),Jt(Jt({},i),{},{x:i.x+a,width:i.width-a})},qw=function(t,r,i,n){return r===i.width?Not(t,r,i,n):zot(t,r,i,n)},Mp=function e(t,r){var i=t.children;if(i&&i.length){var n=Dot(t),a=[],o=1/0,s,l,c=Math.min(n.width,n.height),h=Rot(i,n.width*n.height/t[ec]),u=h.slice();for(a.area=0;u.length>0;)a.push(s=u[0]),a.area+=s.area,l=jot(a,c,r),l<=o?(u.shift(),o=l):(a.area-=a.pop().area,n=qw(a,c,n,!1),c=Math.min(n.width,n.height),a.length=a.area=0,o=1/0);return a.length&&(n=qw(a,c,n,!0),a.length=a.area=0),Jt(Jt({},t),{},{children:h.map(function(d){return e(d,r)})})}return t},Wot={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},PA=function(e){function t(){var r;$ot(this,t);for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return r=Pot(this,t,[].concat(n)),Ni(r,"state",Jt({},Wot)),Ni(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),pt(o)&&o()}),Ni(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),pt(o)&&o()}),r}return Fot(t,e),Eot(t,[{key:"handleMouseEnter",value:function(i,n){n.persist();var a=this.props,o=a.onMouseEnter,s=a.children,l=Ue(s,Tr);l?this.setState({isTooltipActive:!0,activeNode:i},function(){o&&o(i,n)}):o&&o(i,n)}},{key:"handleMouseLeave",value:function(i,n){n.persist();var a=this.props,o=a.onMouseLeave,s=a.children,l=Ue(s,Tr);l?this.setState({isTooltipActive:!1,activeNode:null},function(){o&&o(i,n)}):o&&o(i,n)}},{key:"handleClick",value:function(i){var n=this.props,a=n.onClick,o=n.type;if(o==="nest"&&i.children){var s=this.props,l=s.width,c=s.height,h=s.dataKey,u=s.aspectRatio,d=Lp({depth:0,node:Jt(Jt({},i),{},{x:0,y:0,width:l,height:c}),index:0,valueKey:h}),f=Mp(d,u),y=this.state.nestIndex;y.push(i),this.setState({formatRoot:f,currentRoot:d,nestIndex:y})}a&&a(i)}},{key:"handleNestIndex",value:function(i,n){var a=this.state.nestIndex,o=this.props,s=o.width,l=o.height,c=o.dataKey,h=o.aspectRatio,u=Lp({depth:0,node:Jt(Jt({},i),{},{x:0,y:0,width:s,height:l}),index:0,valueKey:c}),d=Mp(u,h);a=a.slice(0,n+1),this.setState({formatRoot:d,currentRoot:i,nestIndex:a})}},{key:"renderItem",value:function(i,n,a){var o=this,s=this.props,l=s.isAnimationActive,c=s.animationBegin,h=s.animationDuration,u=s.animationEasing,d=s.isUpdateAnimationActive,f=s.type,y=s.animationId,p=s.colorPanel,g=this.state.isAnimationFinished,m=n.width,v=n.height,x=n.x,w=n.y,b=n.depth,C=parseInt("".concat((Math.random()*2-1)*m),10),k={};return(a||f==="nest")&&(k={onMouseEnter:this.handleMouseEnter.bind(this,n),onMouseLeave:this.handleMouseLeave.bind(this,n),onClick:this.handleClick.bind(this,n)}),l?R.createElement(ar,{begin:c,duration:h,isActive:l,easing:u,key:"treemap-".concat(y),from:{x,y:w,width:m,height:v},to:{x,y:w,width:m,height:v},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd}
76,function(T){var E=T.x,L=T.y,P=T.width,I=T.height;return R.createElement(ar,{from:"translate(".concat(C,"px, ").concat(C,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:c,easing:u,isActive:l,duration:h},R.createElement(At,k,function(){return b>2&&!g?null:o.constructor.renderContentItem(i,Jt(Jt({},n),{},{isAnimationActive:l,isUpdateAnimationActive:!d,width:P,height:I,x:E,y:L}),f,p)}()))}):R.createElement(At,k,this.constructor.renderContentItem(i,Jt(Jt({},n),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:m,height:v,x,y:w}),f,p))}},{key:"renderNode",value:function(i,n){var a=this,o=this.props,s=o.content,l=o.type,c=Jt(Jt(Jt({},lt(this.props,!1)),n),{},{root:i}),h=!n.children||!n.children.length,u=this.state.currentRoot,d=(u.children||[]).filter(function(f){return f.depth===n.depth&&f.name===n.name});return!d.length&&i.depth&&l==="nest"?null:R.createElement(At,{key:"recharts-treemap-node-".concat(c.x,"-").concat(c.y,"-").concat(c.name),className:"recharts-treemap-depth-".concat(n.depth)},this.renderItem(s,c,h),n.children&&n.children.length?n.children.map(function(f){return a.renderNode(n,f)}):null)}},{key:"renderAllNodes",value:function(){var i=this.state.formatRoot;return i?this.renderNode(i,i):null}},{key:"renderTooltip",value:function(){var i=this.props,n=i.children,a=i.nameKey,o=Ue(n,Tr);if(!o)return null;var s=this.props,l=s.width,c=s.height,h=this.state,u=h.isTooltipActive,d=h.activeNode,f={x:0,y:0,width:l,height:c},y=d?{x:d.x+d.width/2,y:d.y+d.height/2}:null,p=u&&d?[{payload:d,name:Wt(d,a,""),value:Wt(d,ec)}]:[];return R.cloneElement(o,{viewBox:f,active:u,coordinate:y,label:"",payload:p})}},{key:"renderNestIndex",value:function(){var i=this,n=this.props,a=n.nameKey,o=n.nestIndexContent,s=this.state.nestIndex;return R.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},s.map(function(l,c){var h=fr(l,a,"root"),u=null;return R.isValidElement(o)&&(u=R.cloneElement(o,l,c)),pt(o)?u=o(l,c):u=h,R.createElement("div",{onClick:i.handleNestIndex.bind(i,l,c),key:"nest-index-".concat(Qi()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},u)}))}},{key:"render",value:function(){if(!rg(this))return null;var i=this.props,n=i.width,a=i.height,o=i.className,s=i.style,l=i.children,c=i.type,h=Oot(i,Aot),u=lt(h,!1);return R.createElement("div",{className:Ot("recharts-wrapper",o),style:Jt(Jt({},s),{},{position:"relative",cursor:"default",width:n,height:a}),role:"region"},R.createElement(Lh,Ru({},u,{width:n,height:c==="nest"?a-30:a}),this.renderAllNodes(),i3(l)),this.renderTooltip(),c==="nest"&&this.renderNestIndex())}}],[{key:"getDerivedStateFromProps",value:function(i,n){if(i.data!==n.prevData||i.type!==n.prevType||i.width!==n.prevWidth||i.height!==n.prevHeight||i.dataKey!==n.prevDataKey||i.aspectRatio!==n.prevAspectRatio){var a=Lp({depth:0,node:{children:i.data,x:0,y:0,width:i.width,height:i.height},index:0,valueKey:i.dataKey}),o=Mp(a,i.aspectRatio);return Jt(Jt({},n),{},{formatRoot:o,currentRoot:a,nestIndex:[a],prevAspectRatio:i.aspectRatio,prevData:i.data,prevWidth:i.width,prevHeight:i.height,prevDataKey:i.dataKey,prevType:i.type})}return null}},{key:"renderContentItem",value:function(i,n,a,o){if(R.isValidElement(i))return R.cloneElement(i,n);if(pt(i))return i(n);var s=n.x,l=n.y,c=n.width,h=n.height,u=n.index,d=null;c>10&&h>10&&n.children&&a==="nest"&&(d=R.createElement(p_,{points:[{x:s+2,y:l+h/2},{x:s+6,y:l+h/2+3},{x:s+2,y:l+h/2+6}]}));var f=null,y=to(n.name);c>20&&h>20&&y.width<c&&y.height<h&&(f=R.createElement("text",{x:s+8,y:l+h/2+7,fontSize:14},n.name));var p=o||_ot;return R.createElement("g",null,R.createElement(id,Ru({fill:n.depth<2?p[u%p.length]:"rgba(255,255,255,0)",stroke:"#fff"},BA(n,"children"),{role:"img"})),d,f)}}])}(J.PureComponent);Ni(PA,"displayName","Treemap");Ni(PA,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!$r.isSsr,isUpdateAnimationActive:!$r.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var f0t=Ta({chartName:"ScatterChart",GraphicalChild:Sc,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:Sa},{axisType:"yAxis",AxisComp:ka},{axisType:"zAxis",AxisComp:wc}],formatAxisMap:xc}),d0t=Ta({chartName:"AreaChart",GraphicalChild:Ln,axisComponents:[{axisType:"xAxis",AxisComp:Sa},{axisType:"yAxis",AxisComp:ka}],formatAxisMap:xc}
76),p0t=Ta({chartName:"ComposedChart",GraphicalChild:[Cc,Ln,wa,Sc],axisComponents:[{axisType:"xAxis",AxisComp:Sa},{axisType:"yAxis",AxisComp:ka},{axisType:"zAxis",AxisComp:wc}],formatAxisMap:xc});function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},My.apply(this,arguments)}function Hw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Fp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hw(Object(r),!0).forEach(function(i){qot(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function qot(e,t,r){return t=Hot(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hot(e){var t=Uot(e,"string");return rc(t)=="symbol"?t:t+""}function Uot(e,t){if(rc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(rc(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yot(e,t){var r="".concat(t.x||e.x),i=parseInt(r,10),n="".concat(t.y||e.y),a=parseInt(n,10),o="".concat((t==null?void 0:t.height)||(e==null?void 0:e.height)),s=parseInt(o,10);return Fp(Fp(Fp({},t),C_(e)),{},{height:s,x:i,y:a})}function Got(e){return R.createElement(Gl,My({shapeType:"trapezoid",propTransformer:Yot},e))}var Fy;function Uw(e,t){return Zot(e)||Kot(e,t)||Xot(e,t)||Vot()}function Vot(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
77In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xot(e,t){if(e){if(typeof e=="string")return Yw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yw(e,t)}}function Yw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function Kot(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=a.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(h){c=!0,n=h}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return s}}function Zot(e){if(Array.isArray(e))return e}function Qo(e){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(e)}function Nu(){return Nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Nu.apply(this,arguments)}function Gw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gw(Object(r),!0).forEach(function(i){zi(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gw(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Qot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vw(e,t){for(var r=0;r<t.length;r++){var i=t[r];
vendor: 5,129 bytes, line 77
77i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,MA(i.key),i)}}function Jot(e,t,r){return t&&Vw(e.prototype,t),r&&Vw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tst(e,t,r){return t=zu(t),est(e,LA()?Reflect.construct(t,r||[],zu(e).constructor):t.apply(e,r))}function est(e,t){if(t&&(Qo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rst(e)}function rst(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LA=function(){return!!e})()}function zu(e){return zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zu(e)}function ist(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iy(e,t)}function Iy(e,t){return Iy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Iy(e,t)}function zi(e,t,r){return t=MA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MA(e){var t=nst(e,"string");return Qo(t)=="symbol"?t:t+""}function nst(e,t){if(Qo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(Qo(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _a=function(e){function t(){var r;Qot(this,t);for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return r=tst(this,t,[].concat(n)),zi(r,"state",{isAnimationFinished:!1}),zi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),pt(o)&&o()}),zi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),pt(o)&&o()}),r}return ist(t,e),Jot(t,[{key:"isActiveIndex",value:function(i){var n=this.props.activeIndex;return Array.isArray(n)?n.indexOf(i)!==-1:i===n}},{key:"renderTrapezoidsStatically",value:function(i){var n=this,a=this.props,o=a.shape,s=a.activeShape;return i.map(function(l,c){var h=n.isActiveIndex(c)?s:o,u=we(we({},l),{},{isActive:n.isActiveIndex(c),stroke:l.stroke});return R.createElement(At,Nu({className:"recharts-funnel-trapezoid"},Hi(n.props,l,c),{key:"trapezoid-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.name,"-").concat(l==null?void 0:l.value),role:"img"}),R.createElement(Got,Nu({option:h},u)))})}},{key:"renderTrapezoidsWithAnimation",value:function(){var i=this,n=this.props,a=n.trapezoids,o=n.isAnimationActive,s=n.animationBegin,l=n.animationDuration,c=n.animationEasing,h=n.animationId,u=this.state.prevTrapezoids;return R.createElement(ar,{begin:s,duration:l,isActive:o,easing:c,from:{t:0},to:{t:1},key:"funnel-".concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(d){var f=d.t,y=a.map(function(p,g){var m=u&&u[g];if(m){var v=Rt(m.x,p.x),x=Rt(m.y,p.y),w=Rt(m.upperWidth,p.upperWidth),b=Rt(m.lowerWidth,p.lowerWidth),C=Rt(m.height,p.height);return we(we({},p),{},{x:v(f),y:x(f),upperWidth:w(f),lowerWidth:b(f),height:C(f)})}var k=Rt(p.x+p.upperWidth/2,p.x),T=Rt(p.y+p.height/2,p.y),E=Rt(0,p.upperWidth),L=Rt(0,p.lowerWidth),P=Rt(0,p.height);return we(we({},p),{},{x:k(f),y:T(f),upperWidth:E(f),lowerWidth:L(f),height:P(f)})});return R.createElement(At,null,i.renderTrapezoidsStatically(y))})}},{key:"renderTrapezoids",value:function(){var i=this.props,n=i.trapezoids,a=i.isAnimationActive,o=this.state.prevTrapezoids;return a&&n&&n.length&&(!o||!Vi(o,n))?this.renderTrapezoidsWithAnimation():this.renderTrapezoidsStatically(n)}},{key:"render",value:function(){var i=this.props,n=i.hide,a=i.trapezoids,o=i.className,s=i.isAnimationActive,l=this.state.isAnimationFinished;if(n||!a||!a.length)return null;var c=Ot("recharts-trapezoids",o);return R.createElement(At,{className:c},this.renderTrapezoids(),(!s||l)&&Or.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(i,n){return i.animationId!==n.prevAnimationId?{prevAnimationId:i.animationId,curTrapezoids:i.trapezoids,prevTrapezoids:n.curTrapezoids}:i.trapezoids!==n.curTrapezoids?{curTrapezoids:i.trapezoids}:null}}])}(J.PureComponent);Fy=_a;zi(_a,"displayName","Funnel");zi(_a,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!$r.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"});zi(_a,"getRealFunnelData",function(e){var t=e.props,r=t.data,i=t.children,n=lt(e.props,!1),a=Ve(i,pc);return r&&r.length?r.map(function(o,s){return we(we(we({payload:o},n),o),a&&a[s]&&a[s].props)}):a&&a.length?a.map(function(o){return we(we({},n),o.props)}):[]});
77zi(_a,"getRealWidthHeight",function(e,t){var r=e.props.width,i=t.width,n=t.height,a=t.left,o=t.right,s=t.top,l=t.bottom,c=n,h=i;return vk(r)?h=r:wn(r)&&(h=h*parseFloat(r)/100),{realWidth:h-a-o-50,realHeight:c-l-s,offsetX:(i-h)/2,offsetY:(n-c)/2}});zi(_a,"getComposedData",function(e){var t=e.item,r=e.offset,i=Fy.getRealFunnelData(t),n=t.props,a=n.dataKey,o=n.nameKey,s=n.tooltipType,l=n.lastShapeType,c=n.reversed,h=r.left,u=r.top,d=Fy.getRealWidthHeight(t,r),f=d.realHeight,y=d.realWidth,p=d.offsetX,g=d.offsetY,m=Math.max.apply(null,i.map(function(C){return Wt(C,a,0)})),v=i.length,x=f/v,w={x:r.left,y:r.top,width:r.width,height:r.height},b=i.map(function(C,k){var T=Wt(C,a,0),E=Wt(C,o,k),L=T,P;if(k!==v-1){if(P=Wt(i[k+1],a,0),P instanceof Array){var I=P,D=Uw(I,1);P=D[0]}}else if(T instanceof Array&&T.length===2){var _=Uw(T,2);L=_[0],P=_[1]}else l==="rectangle"?P=L:P=0;var B=(m-L)*y/(2*m)+u+25+p,O=x*k+h+g,M=L/m*y,F=P/m*y,$=[{name:E,value:L,payload:C,dataKey:a,type:s}],N={x:B+M/2,y:O+x/2};return we(we({x:B,y:O,width:Math.max(M,F),upperWidth:M,lowerWidth:F,height:x,name:E,val:L,tooltipPayload:$,tooltipPosition:N},BA(C,"width")),{},{payload:C,parentViewBox:w,labelViewBox:{x:B+(M-F)/4,y:O,width:Math.abs(M-F)/2+Math.min(M,F),height:x}})});return c&&(b=b.map(function(C,k){var T=C.y-k*x+(v-1-k)*x;return we(we({},C),{},{upperWidth:C.lowerWidth,lowerWidth:C.upperWidth,x:C.x-(C.lowerWidth-C.upperWidth)/2,y:C.y-k*x+(v-1-k)*x,tooltipPosition:we(we({},C.tooltipPosition),{},{y:T+x/2}),labelViewBox:we(we({},C.labelViewBox),{},{y:T})})})),{trapezoids:b,data:i}});var g0t=Ta({chartName:"FunnelChart",GraphicalChild:_a,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}}),ast={value:()=>{}};function yd(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new yh(r)}function yh(e){this._=e}function ost(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}yh.prototype=yd.prototype={constructor:yh,on:function(e,t){var r=this._,i=ost(e+"",r),n,a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((n=(e=i[a]).type)&&(n=sst(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(n=(e=i[a]).type)r[n]=Xw(r[n],e.name,t);else if(t==null)for(n in r)r[n]=Xw(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new yh(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,a;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,n=a.length;i<n;++i)a[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],n=0,a=i.length;n<a;++n)i[n].value.apply(t,r)}};function sst(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function Xw(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=ast,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var Dy="http://www.w3.org/1999/xhtml";const Kw={svg:"http://www.w3.org/2000/svg",xhtml:Dy,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function md(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Kw.hasOwnProperty(t)?{space:Kw[t],local:e}:e}function lst(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Dy&&t.documentElement.namespaceURI===Dy?t.createElement(e):t.createElementNS(r,e)}}function cst(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function FA(e){var t=md(e);return(t.local?cst:lst)(t)}function hst(){}function Zv(e){return e==null?hst:function(){return this.querySelector(e)}}function ust(e){typeof e!="function"&&(e=Zv(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,s=i[n]=new Array(o),l,c,h=0;h<o;
vendor: 16,384 bytes, line 77
77++h)(l=a[h])&&(c=e.call(l,l.__data__,h,a))&&("__data__"in l&&(c.__data__=l.__data__),s[h]=c);return new vr(i,this._parents)}function fst(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function dst(){return[]}function IA(e){return e==null?dst:function(){return this.querySelectorAll(e)}}function pst(e){return function(){return fst(e.apply(this,arguments))}}function gst(e){typeof e=="function"?e=pst(e):e=IA(e);for(var t=this._groups,r=t.length,i=[],n=[],a=0;a<r;++a)for(var o=t[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&(i.push(e.call(l,l.__data__,c,o)),n.push(l));return new vr(i,n)}function DA(e){return function(){return this.matches(e)}}function RA(e){return function(t){return t.matches(e)}}var yst=Array.prototype.find;function mst(e){return function(){return yst.call(this.children,e)}}function vst(){return this.firstElementChild}function bst(e){return this.select(e==null?vst:mst(typeof e=="function"?e:RA(e)))}var xst=Array.prototype.filter;function Cst(){return Array.from(this.children)}function wst(e){return function(){return xst.call(this.children,e)}}function Sst(e){return this.selectAll(e==null?Cst:wst(typeof e=="function"?e:RA(e)))}function kst(e){typeof e!="function"&&(e=DA(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,s=i[n]=[],l,c=0;c<o;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&s.push(l);return new vr(i,this._parents)}function jA(e){return new Array(e.length)}function Tst(){return new vr(this._enter||this._groups.map(jA),this._parents)}function Wu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Wu.prototype={constructor:Wu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function _st(e){return function(){return e}}function Ast(e,t,r,i,n,a){for(var o=0,s,l=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],i[o]=s):r[o]=new Wu(e,a[o]);for(;o<l;++o)(s=t[o])&&(n[o]=s)}function Ost(e,t,r,i,n,a,o){var s,l,c=new Map,h=t.length,u=a.length,d=new Array(h),f;for(s=0;s<h;++s)(l=t[s])&&(d[s]=f=o.call(l,l.__data__,s,t)+"",c.has(f)?n[s]=l:c.set(f,l));for(s=0;s<u;++s)f=o.call(e,a[s],s,a)+"",(l=c.get(f))?(i[s]=l,l.__data__=a[s],c.delete(f)):r[s]=new Wu(e,a[s]);for(s=0;s<h;++s)(l=t[s])&&c.get(d[s])===l&&(n[s]=l)}function Bst(e){return e.__data__}function $st(e,t){if(!arguments.length)return Array.from(this,Bst);var r=t?Ost:Ast,i=this._parents,n=this._groups;typeof e!="function"&&(e=_st(e));for(var a=n.length,o=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var h=i[c],u=n[c],d=u.length,f=Est(e.call(h,h&&h.__data__,c,i)),y=f.length,p=s[c]=new Array(y),g=o[c]=new Array(y),m=l[c]=new Array(d);r(h,u,p,g,m,f,t);for(var v=0,x=0,w,b;v<y;++v)if(w=p[v]){for(v>=x&&(x=v+1);!(b=g[x])&&++x<y;);w._next=b||null}}return o=new vr(o,i),o._enter=s,o._exit=l,o}function Est(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Pst(){return new vr(this._exit||this._groups.map(jA),this._parents)}function Lst(e,t,r){var i=this.enter(),n=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?a.remove():r(a),i&&n?i.merge(n).order():n}function Mst(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,a=i.length,o=Math.min(n,a),s=new Array(n),l=0;l<o;++l)for(var c=r[l],h=i[l],u=c.length,d=s[l]=new Array(u),f,y=0;y<u;++y)(f=c[y]||h[y])&&(d[y]=f);for(;l<n;++l)s[l]=r[l];return new vr(s,this._parents)}function Fst(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,a=i[n],o;--n>=0;)(o=i[n])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Ist(e){e||(e=Dst);function t(u,d){return u&&d?e(u.__data__,d.__data__):!u-!d}for(var r=this._groups,i=r.length,n=new Array(i),a=0;a<i;++a){for(var o=r[a],s=o.length,l=n[a]=new Array(s),c,h=0;h<s;++h)(c=o[h])&&(l[h]=c);l.sort(t)}return new vr(n,this._parents).order()}function Dst(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Rst(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function jst(){return Array.from(this)}function Nst(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length;n<a;++n){var o=i[n];if(o)return o}return null}function zst(){let e=0;for(const t of this)++e;return e}function Wst(){return!this.node()}function qst(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],a=0,o=n.length,s;a<o;++a)(s=n[a])&&e.call(s,s.__data__,a,n);return this}function Hst(e){return function(){this.removeAttribute(e)}}function Ust(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Yst(e,t){return function(){this.setAttribute(e,t)}}function Gst(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Vst(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Xst(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Kst(e,t){var r=md(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?Ust:Hst:typeof t=="function"?r.local?Xst:Vst:r.local?Gst:Yst)(r,t))}function NA(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Zst(e){return function(){this.style.removeProperty(e)}}function Qst(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Jst(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function tlt(e,t,r){return arguments.length>1?this.each((t==null?Zst:typeof t=="function"?Jst:Qst)(e,t,r??"")):Jo(this.node(),e)}function Jo(e,t){return e.style.getPropertyValue(t)||NA(e).getComputedStyle(e,null).getPropertyValue(t)}function elt(e){return function(){delete this[e]}}function rlt(e,t){return function(){this[e]=t}}function ilt(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function nlt(e,t){return arguments.length>1?this.each((t==null?elt:typeof t=="function"?ilt:rlt)(e,t)):this.node()[e]}function zA(e){return e.trim().split(/^|\s+/)}function Qv(e){return e.classList||new WA(e)}function WA(e){this._node=e,this._names=zA(e.getAttribute("class")||"")}WA.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function qA(e,t){for(var r=Qv(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function HA(e,t){for(var r=Qv(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function alt(e){return function(){qA(this,e)}}function olt(e){return function(){HA(this,e)}}function slt(e,t){return function(){(t.apply(this,arguments)?qA:HA)(this,e)}}function llt(e,t){var r=zA(e+"");if(arguments.length<2){for(var i=Qv(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?slt:t?alt:olt)(r,t))}function clt(){this.textContent=""}function hlt(e){return function(){this.textContent=e}}function ult(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function flt(e){return arguments.length?this.each(e==null?clt:(typeof e=="function"?ult:hlt)(e)):this.node().textContent}function dlt(){this.innerHTML=""}function plt(e){return function(){this.innerHTML=e}}function glt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function ylt(e){return arguments.length?this.each(e==null?dlt:(typeof e=="function"?glt:plt)(e)):this.node().innerHTML}function mlt(){this.nextSibling&&this.parentNode.appendChild(this)}function vlt(){return this.each(mlt)}function blt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function xlt(){return this.each(blt)}function Clt(e){var t=typeof e=="function"?e:FA(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function wlt(){return null}function Slt(e,t){var r=typeof e=="function"?e:FA(e),i=t==null?wlt:typeof t=="function"?t:Zv(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function klt(){var e=this.parentNode;e&&e.removeChild(this)}function Tlt(){return this.each(klt)}function _lt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Alt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Olt(e){return this.select(e?Alt:_lt)}function Blt(e){return arguments.length?this.property("__data__",e):this.node().__data__}function $lt(e){return function(t){e.call(this,t,this.__data__)}}function Elt(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function Plt(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,a;r<n;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function Llt(e,t,r){return function(){var i=this.__on,n,a=$lt(t);if(i){for(var o=0,s=i.length;o<s;++o)if((n=i[o]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),n.value=t;return}}this.addEventListener(e.type,a,r),n={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(n):this.__on=[n]}}function Mlt(e,t,r){var i=Elt(e+""),n,a=i.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,h;l<c;++l)for(n=0,h=s[l];n<a;++n)if((o=i[n]).type===h.type&&o.name===h.name)return h.value}return}for(s=t?Llt:Plt,n=0;n<a;++n)this.each(s(i[n],t,r));return this}function UA(e,t,r){var i=NA(e),n=i.CustomEvent;typeof n=="function"?n=new n(t,r):(n=i.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function Flt(e,t){return function(){return UA(this,e,t)}}function Ilt(e,t){return function(){return UA(this,e,t.apply(this,arguments))}}function Dlt(e,t){return this.each((typeof t=="function"?Ilt:Flt)(e,t))}function*Rlt(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length,o;n<a;++n)(o=i[n])&&(yield o)}var YA=[null];function vr(e,t){this._groups=e,this._parents=t}function Tc(){return new vr([[document.documentElement]],YA)}function jlt(){return this}vr.prototype=Tc.prototype={constructor:vr,select:ust,selectAll:gst,selectChild:bst,selectChildren:Sst,filter:kst,data:$st,enter:Tst,exit:Pst,join:Lst,merge:Mst,selection:jlt,order:Fst,sort:Ist,call:Rst,nodes:jst,node:Nst,size:zst,empty:Wst,each:qst,attr:Kst,style:tlt,property:nlt,classed:llt,text:flt,html:ylt,raise:vlt,lower:xlt,append:Clt,insert:Slt,remove:Tlt,clone:Olt,datum:Blt,on:Mlt,dispatch:Dlt,[Symbol.iterator]:Rlt};function St(e){return typeof e=="string"?new vr([[document.querySelector(e)]],[document.documentElement]):new vr([[e]],YA)}function Nlt(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Pi(e,t){if(e=Nlt(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var i=r.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var n=t.getBoundingClientRect();return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}}return[e.pageX,e.pageY]}const zlt={passive:!1},ic={capture:!0,passive:!1};function Ip(e){e.stopImmediatePropagation()}function no(e){e.preventDefault(),e.stopImmediatePropagation()}function GA(e){var t=e.document.documentElement,r=St(e).on("dragstart.drag",no,ic);"onselectstart"in t?r.on("selectstart.drag",no,ic):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function VA(e,t){var r=e.document.documentElement,i=St(e).on("dragstart.drag",null);t&&(i.on("click.drag",no,ic),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const ih=e=>()=>e;function Ry(e,{sourceEvent:t,subject:r,target:i,identifier:n,active:a,x:o,y:s,dx:l,dy:c,dispatch:h}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:n,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:h}})}Ry.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Wlt(e){return!e.ctrlKey&&!e.button}function qlt(){return this.parentNode}function Hlt(e,t){return t??{x:e.x,y:e.y}}function Ult(){return navigator.maxTouchPoints||"ontouchstart"in this}function y0t(){var e=Wlt,t=qlt,r=Hlt,i=Ult,n={},a=yd("start","drag","end"),o=0,s,l,c,h,u=0;function d(w){w.on("mousedown.drag",f).filter(i).on("touchstart.drag",g).on("touchmove.drag",m,zlt).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(w,b){if(!(h||!e.call(this,w,b))){var C=x(this,t.call(this,w,b),w,b,"mouse");C&&(St(w.view).on("mousemove.drag",y,ic).on("mouseup.drag",p,ic),GA(w.view),Ip(w),c=!1,s=w.clientX,l=w.clientY,C("start",w))}}function y(w){if(no(w),!c){var b=w.clientX-s,C=w.clientY-l;c=b*b+C*C>u}n.mouse("drag",w)}function p(w){St(w.view).on("mousemove.drag mouseup.drag",null),VA(w.view,c),no(w),n.mouse("end",w)}function g(w,b){if(e.call(this,w,b)){var C=w.changedTouches,k=t.call(this,w,b),T=C.length,E,L;for(E=0;E<T;++E)(L=x(this,k,w,b,C[E].identifier,C[E]))&&(Ip(w),L("start",w,C[E]))}}function m(w){var b=w.changedTouches,C=b.length,k,T;for(k=0;k<C;++k)(T=n[b[k].identifier])&&(no(w),T("drag",w,b[k]))}function v(w){var b=w.changedTouches,C=b.length,k,T;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),k=0;k<C;++k)(T=n[b[k].identifier])&&(Ip(w),T("end",w,b[k]))}function x(w,b,C,k,T,E){var L=a.copy(),P=Pi(E||C,b),I,D,_;if((_=r.call(w,new Ry("beforestart",{sourceEvent:C,target:d,identifier:T,active:o,x:P[0],y:P[1],dx:0,dy:0,dispatch:L}),k))!=null)return I=_.x-P[0]||0,D=_.y-P[1]||0,function B(O,M,F){var $=P,N;switch(O){case"start":n[T]=B,N=o++;break;case"end":delete n[T],--o;case"drag":P=Pi(F||M,b),N=o;break}L.call(O,w,new Ry(O,{sourceEvent:M,subject:_,target:d,identifier:T,active:N,x:P[0]+I,y:P[1]+D,dx:P[0]-$[0],dy:P[1]-$[1],dispatch:L}),k)}}return d.filter=function(w){return arguments.length?(e=typeof w=="function"?w:ih(!!w),d):e},d.container=function(w){return arguments.length?(t=typeof w=="function"?w:ih(w),d):t},d.subject=function(w){return arguments.length?(r=typeof w=="function"?w:ih(w),d):r},d.touchable=function(w){return arguments.length?(i=typeof w=="function"?w:ih(!!w),d):i},d.on=function(){var w=a.on.apply(a,arguments);return w===a?d:w},d.clickDistance=function(w){return arguments.length?(u=(w=+w)*w,d):Math.sqrt(u)},d}var ts=0,Qs=0,js=0,XA=1e3,qu,Js,Hu=0,ha=0,vd=0,nc=typeof performance=="object"&&performance.now?performance:Date,KA=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Jv(){return ha||(KA(Ylt),ha=nc.now()+vd)}function Ylt(){ha=0}function Uu(){this._call=this._time=this._next=null}Uu.prototype=ZA.prototype={constructor:Uu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Jv():+r)+(t==null?0:+t),!this._next&&Js!==this&&(Js?Js._next=this:qu=this,Js=this),this._call=e,this._time=r,jy()},stop:function(){this._call&&(this._call=null,this._time=1/0,jy())}};function ZA(e,t,r){var i=new Uu;return i.restart(e,t,r),i}function Glt(){Jv(),++ts;for(var e=qu
vendor: 4,729 bytes, line 77
77,t;e;)(t=ha-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ts}function Zw(){ha=(Hu=nc.now())+vd,ts=Qs=0;try{Glt()}finally{ts=0,Xlt(),ha=0}}function Vlt(){var e=nc.now(),t=e-Hu;t>XA&&(vd-=t,Hu=e)}function Xlt(){for(var e,t=qu,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:qu=r);Js=e,jy(i)}function jy(e){if(!ts){Qs&&(Qs=clearTimeout(Qs));var t=e-ha;t>24?(e<1/0&&(Qs=setTimeout(Zw,e-nc.now()-vd)),js&&(js=clearInterval(js))):(js||(Hu=nc.now(),js=setInterval(Vlt,XA)),ts=1,KA(Zw))}}function Qw(e,t,r){var i=new Uu;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var Klt=yd("start","end","cancel","interrupt"),Zlt=[],QA=0,Jw=1,Ny=2,mh=3,tS=4,zy=5,vh=6;function bd(e,t,r,i,n,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;Qlt(e,r,{name:t,index:i,group:n,on:Klt,tween:Zlt,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:QA})}function tb(e,t){var r=Jr(e,t);if(r.state>QA)throw new Error("too late; already scheduled");return r}function bi(e,t){var r=Jr(e,t);if(r.state>mh)throw new Error("too late; already running");return r}function Jr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Qlt(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=ZA(a,0,r.time);function a(c){r.state=Jw,r.timer.restart(o,r.delay,r.time),r.delay<=c&&o(c-r.delay)}function o(c){var h,u,d,f;if(r.state!==Jw)return l();for(h in i)if(f=i[h],f.name===r.name){if(f.state===mh)return Qw(o);f.state===tS?(f.state=vh,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[h]):+h<t&&(f.state=vh,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[h])}if(Qw(function(){r.state===mh&&(r.state=tS,r.timer.restart(s,r.delay,r.time),s(c))}),r.state=Ny,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Ny){for(r.state=mh,n=new Array(d=r.tween.length),h=0,u=-1;h<d;++h)(f=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(n[++u]=f);n.length=u+1}}function s(c){for(var h=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=zy,1),u=-1,d=n.length;++u<d;)n[u].call(e,h);r.state===zy&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=vh,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function bh(e,t){var r=e.__transition,i,n,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((i=r[o]).name!==t){a=!1;continue}n=i.state>Ny&&i.state<zy,i.state=vh,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[o]}a&&delete e.__transition}}function Jlt(e){return this.each(function(){bh(this,e)})}function tct(e,t){var r,i;return function(){var n=bi(this,e),a=n.tween;if(a!==r){i=r=a;for(var o=0,s=i.length;o<s;++o)if(i[o].name===t){i=i.slice(),i.splice(o,1);break}}n.tween=i}}function ect(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var a=bi(this,e),o=a.tween;if(o!==i){n=(i=o).slice();for(var s={name:t,value:r},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=s;break}l===c&&n.push(s)}a.tween=n}}function rct(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Jr(this.node(),r).tween,n=0,a=i.length,o;n<a;++n)if((o=i[n]).name===e)return o.value;return null}return this.each((t==null?tct:ect)(r,e,t))}function eb(e,t,r){var i=e._id;return e.each(function(){var n=bi(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return Jr(n,i).value[t]}}function JA(e,t){var r;return(typeof t=="number"?Nr:t instanceof oa?Zh:(r=oa(t))?(t=r,Zh):ZT)(e,t)}function ict(e){return function(){this.removeAttribute(e)}}function nct(e){return function(){this.removeAttributeNS(e.space,e.local)}}function act(e,t,r){var i,n=r+"",a;return function(){var o=this.getAttribute(e);return o===n?null:o===i?a:a=t(i=o,r)}}function oct(e,t,r){var i,n=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===i?a:a=t(i=o,r)}}function sct(e,t,r){var i,n,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===i&&l===n?a:(n=l,a=t(i=o,s)))}}function lct(e,t,r){var i,n,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===i&&l===n?a:(n=l,a=t(i=o,s)))}}function cct(e,t){var r=md(e),i=r==="transform"?I9:JA;return this.attrTween(e,typeof t=="function"?(r.local?lct:sct)(r,i,eb(this,"attr."+e,t)):t==null?(r.local?nct:ict)(r):(r.local?oct:act)(r,i,t))}function hct(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function uct(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function fct(e,t){var r,i;
vendor: 5,294 bytes, line 77
77function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&uct(e,a)),r}return n._value=t,n}function dct(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&hct(e,a)),r}return n._value=t,n}function pct(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=md(e);return this.tween(r,(i.local?fct:dct)(i,t))}function gct(e,t){return function(){tb(this,e).delay=+t.apply(this,arguments)}}function yct(e,t){return t=+t,function(){tb(this,e).delay=t}}function mct(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?gct:yct)(t,e)):Jr(this.node(),t).delay}function vct(e,t){return function(){bi(this,e).duration=+t.apply(this,arguments)}}function bct(e,t){return t=+t,function(){bi(this,e).duration=t}}function xct(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?vct:bct)(t,e)):Jr(this.node(),t).duration}function Cct(e,t){if(typeof t!="function")throw new Error;return function(){bi(this,e).ease=t}}function wct(e){var t=this._id;return arguments.length?this.each(Cct(t,e)):Jr(this.node(),t).ease}function Sct(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;bi(this,e).ease=r}}function kct(e){if(typeof e!="function")throw new Error;return this.each(Sct(this._id,e))}function Tct(e){typeof e!="function"&&(e=DA(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,s=i[n]=[],l,c=0;c<o;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&s.push(l);return new Xi(i,this._parents,this._name,this._id)}function _ct(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,a=Math.min(i,n),o=new Array(i),s=0;s<a;++s)for(var l=t[s],c=r[s],h=l.length,u=o[s]=new Array(h),d,f=0;f<h;++f)(d=l[f]||c[f])&&(u[f]=d);for(;s<i;++s)o[s]=t[s];return new Xi(o,this._parents,this._name,this._id)}function Act(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Oct(e,t,r){var i,n,a=Act(t)?tb:bi;return function(){var o=a(this,e),s=o.on;s!==i&&(n=(i=s).copy()).on(t,r),o.on=n}}function Bct(e,t){var r=this._id;return arguments.length<2?Jr(this.node(),r).on.on(e):this.each(Oct(r,e,t))}function $ct(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Ect(){return this.on("end.remove",$ct(this._id))}function Pct(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zv(e));for(var i=this._groups,n=i.length,a=new Array(n),o=0;o<n;++o)for(var s=i[o],l=s.length,c=a[o]=new Array(l),h,u,d=0;d<l;++d)(h=s[d])&&(u=e.call(h,h.__data__,d,s))&&("__data__"in h&&(u.__data__=h.__data__),c[d]=u,bd(c[d],t,r,d,c,Jr(h,r)));return new Xi(a,this._parents,t,r)}function Lct(e){var t=this._name,r=this._id;typeof e!="function"&&(e=IA(e));for(var i=this._groups,n=i.length,a=[],o=[],s=0;s<n;++s)for(var l=i[s],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var d=e.call(h,h.__data__,u,l),f,y=Jr(h,r),p=0,g=d.length;p<g;++p)(f=d[p])&&bd(f,t,r,p,d,y);a.push(d),o.push(h)}return new Xi(a,o,t,r)}var Mct=Tc.prototype.constructor;function Fct(){return new Mct(this._groups,this._parents)}function Ict(e,t){var r,i,n;return function(){var a=Jo(this,e),o=(this.style.removeProperty(e),Jo(this,e));return a===o?null:a===r&&o===i?n:n=t(r=a,i=o)}}function tO(e){return function(){this.style.removeProperty(e)}}function Dct(e,t,r){var i,n=r+"",a;return function(){var o=Jo(this,e);return o===n?null:o===i?a:a=t(i=o,r)}}function Rct(e,t,r){var i,n,a;return function(){var o=Jo(this,e),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Jo(this,e))),o===l?null:o===i&&l===n?a:(n=l,a=t(i=o,s))}}function jct(e,t){var r,i,n,a="style."+t,o="end."+a,s;return function(){var l=bi(this,e),c=l.on,h=l.value[a]==null?s||(s=tO(t)):void 0;(c!==r||n!==h)&&(i=(r=c).copy()).on(o,n=h),l.on=i}}function Nct(e,t,r){var i=(e+="")=="transform"?F9:JA;return t==null?this.styleTween(e,Ict(e,i)).on("end.style."+e,tO(e)):typeof t=="function"?this.styleTween(e,Rct(e,i,eb(this,"style."+e,t))).each(jct(this._id,e)):this.styleTween(e,Dct(e,i,t),r).on("end.style."+e,null)}function zct(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function Wct(e,t,r){var i,n;function a(){var o=t.apply(this,arguments);return o!==n&&(i=(n=o)&&zct(e,o,r)),i}return a._value=t,a}function qct(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,Wct(e,t,r??""))}function Hct(e){return function(){this.textContent=e}}function Uct(e){return function(){var t=e(this);this.textContent=t??""}}function Yct(e){return this.tween("text",typeof e=="function"?Uct(eb(this,"text",e)):Hct(e==null?"":e+""))}function Gct(e){return function(t){this.textContent=e.call(this,t)}}function Vct(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&Gct(n)),t}return i._value=e,i}function Xct(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Vct(e))}
vendor: 1,184 bytes, line 77
77function Kct(){for(var e=this._name,t=this._id,r=eO(),i=this._groups,n=i.length,a=0;a<n;++a)for(var o=i[a],s=o.length,l,c=0;c<s;++c)if(l=o[c]){var h=Jr(l,t);bd(l,e,r,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Xi(i,this._parents,e,r)}function Zct(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--n===0&&a()}};r.each(function(){var c=bi(this,i),h=c.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),c.on=t}),n===0&&a()})}var Qct=0;function Xi(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function eO(){return++Qct}var _i=Tc.prototype;Xi.prototype={constructor:Xi,select:Pct,selectAll:Lct,selectChild:_i.selectChild,selectChildren:_i.selectChildren,filter:Tct,merge:_ct,selection:Fct,transition:Kct,call:_i.call,nodes:_i.nodes,node:_i.node,size:_i.size,empty:_i.empty,each:_i.each,on:Bct,attr:cct,attrTween:pct,style:Nct,styleTween:qct,text:Yct,textTween:Xct,remove:Ect,tween:rct,delay:mct,duration:xct,ease:wct,easeVarying:kct,end:Zct,[Symbol.iterator]:_i[Symbol.iterator]};function Jct(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}
vendor: 6,267 bytes, line 77
77var tht={time:null,delay:0,duration:250,ease:Jct};function eht(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function rht(e){var t,r;e instanceof Xi?(t=e._id,e=e._name):(t=eO(),(r=tht).time=Jv(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,a=0;a<n;++a)for(var o=i[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&bd(l,e,t,c,o,r||eht(l,t));return new Xi(i,this._parents,e,t)}Tc.prototype.interrupt=Jlt;Tc.prototype.transition=rht;const nh=e=>()=>e;function iht(e,{sourceEvent:t,target:r,transform:i,dispatch:n}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:n}})}function Di(e,t,r){this.k=e,this.x=t,this.y=r}Di.prototype={constructor:Di,scale:function(e){return e===1?this:new Di(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Di(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var rb=new Di(1,0,0);nht.prototype=Di.prototype;function nht(e){for(;!e.__zoom;)if(!(e=e.parentNode))return rb;return e.__zoom}function Dp(e){e.stopImmediatePropagation()}function Ns(e){e.preventDefault(),e.stopImmediatePropagation()}function aht(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function oht(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function eS(){return this.__zoom||rb}function sht(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function lht(){return navigator.maxTouchPoints||"ontouchstart"in this}function cht(e,t,r){var i=e.invertX(t[0][0])-r[0][0],n=e.invertX(t[1][0])-r[1][0],a=e.invertY(t[0][1])-r[0][1],o=e.invertY(t[1][1])-r[1][1];return e.translate(n>i?(i+n)/2:Math.min(0,i)||Math.max(0,n),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function m0t(){var e=aht,t=oht,r=cht,i=sht,n=lht,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,l=N9,c=yd("start","zoom","end"),h,u,d,f=500,y=150,p=0,g=10;function m(_){_.property("__zoom",eS).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",L).filter(n).on("touchstart.zoom",P).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",D).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}m.transform=function(_,B,O,M){var F=_.selection?_.selection():_;F.property("__zoom",eS),_!==F?b(_,B,O,M):F.interrupt().each(function(){C(this,arguments).event(M).start().zoom(null,typeof B=="function"?B.apply(this,arguments):B).end()})},m.scaleBy=function(_,B,O,M){m.scaleTo(_,function(){var F=this.__zoom.k,$=typeof B=="function"?B.apply(this,arguments):B;return F*$},O,M)},m.scaleTo=function(_,B,O,M){m.transform(_,function(){var F=t.apply(this,arguments),$=this.__zoom,N=O==null?w(F):typeof O=="function"?O.apply(this,arguments):O,W=$.invert(N),U=typeof B=="function"?B.apply(this,arguments):B;return r(x(v($,U),N,W),F,o)},O,M)},m.translateBy=function(_,B,O,M){m.transform(_,function(){return r(this.__zoom.translate(typeof B=="function"?B.apply(this,arguments):B,typeof O=="function"?O.apply(this,arguments):O),t.apply(this,arguments),o)},null,M)},m.translateTo=function(_,B,O,M,F){m.transform(_,function(){var $=t.apply(this,arguments),N=this.__zoom,W=M==null?w($):typeof M=="function"?M.apply(this,arguments):M;return r(rb.translate(W[0],W[1]).scale(N.k).translate(typeof B=="function"?-B.apply(this,arguments):-B,typeof O=="function"?-O.apply(this,arguments):-O),$,o)},M,F)};function v(_,B){return B=Math.max(a[0],Math.min(a[1],B)),B===_.k?_:new Di(B,_.x,_.y)}function x(_,B,O){var M=B[0]-O[0]*_.k,F=B[1]-O[1]*_.k;return M===_.x&&F===_.y?_:new Di(_.k,M,F)}function w(_){return[(+_[0][0]+ +_[1][0])/2,(+_[0][1]+ +_[1][1])/2]}function b(_,B,O,M){_.on("start.zoom",function(){C(this,arguments).event(M).start()}).on("interrupt.zoom end.zoom",function(){C(this,arguments).event(M).end()}).tween("zoom",function(){var F=this,$=arguments,N=C(F,$).event(M),W=t.apply(F,$),U=O==null?w(W):typeof O=="function"?O.apply(F,$):O,Q=Math.max(W[1][0]-W[0][0],W[1][1]-W[0][1]),it=F.__zoom,nt=typeof B=="function"?B.apply(F,$):B,vt=l(it.invert(U).concat(Q/it.k),nt.invert(U).concat(Q/nt.k));return function(Pt){if(Pt===1)Pt=nt;else{var Et=vt(Pt),et=Q/Et[2];Pt=new Di(et,U[0]-Et[0]*et,U[1]-Et[1]*et)}N.zoom(null,Pt)}})}function C(_,B,O){return!O&&_.__zooming||new k(_,B)}function k(_,B){this.that=_,this.args=B,this.active=0,this.sourceEvent=null,this.extent=t.apply(_,B),this.taps=0}k.prototype={event:function(_){return _&&(this.sourceEvent=_),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(_,B){return this.mouse&&_!=="mouse"&&(this.mouse[1]=B.invert(this.mouse[0])),this.touch0&&_!=="touch"&&(this.touch0[1]=B.invert(this.touch0[0])),this.touch1&&_!=="touch"&&(this.touch1[1]=B.invert(this.touch1[0])),this.that.__zoom=B,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(_){var B=St(this.that).datum();c.call(_,this.that,new iht(_,{sourceEvent:this.sourceEvent,target:m,transform:this.that.__zoom,dispatch:c}),B)}};function T(_,...B){if(!e.apply(this,arguments))return;var O=C(this,B).event(_),M=this.__zoom,F=Math.max(a[0],Math.min(a[1],M.k*Math.pow(2,i.apply(this,arguments)))),$=Pi(_);if(O.wheel)(O.mouse[0][0]!==$[0]||O.mouse[0][1]!==$[1])&&(O.mouse[1]=M.invert(O.mouse[0]=$)),clearTimeout(O.wheel);else{if(M.k===F)return;O.mouse=[$,M.invert($)],bh(this),O.start()}
77Ns(_),O.wheel=setTimeout(N,y),O.zoom("mouse",r(x(v(M,F),O.mouse[0],O.mouse[1]),O.extent,o));function N(){O.wheel=null,O.end()}}function E(_,...B){if(d||!e.apply(this,arguments))return;var O=_.currentTarget,M=C(this,B,!0).event(_),F=St(_.view).on("mousemove.zoom",U,!0).on("mouseup.zoom",Q,!0),$=Pi(_,O),N=_.clientX,W=_.clientY;GA(_.view),Dp(_),M.mouse=[$,this.__zoom.invert($)],bh(this),M.start();function U(it){if(Ns(it),!M.moved){var nt=it.clientX-N,vt=it.clientY-W;M.moved=nt*nt+vt*vt>p}M.event(it).zoom("mouse",r(x(M.that.__zoom,M.mouse[0]=Pi(it,O),M.mouse[1]),M.extent,o))}function Q(it){F.on("mousemove.zoom mouseup.zoom",null),VA(it.view,M.moved),Ns(it),M.event(it).end()}}function L(_,...B){if(e.apply(this,arguments)){var O=this.__zoom,M=Pi(_.changedTouches?_.changedTouches[0]:_,this),F=O.invert(M),$=O.k*(_.shiftKey?.5:2),N=r(x(v(O,$),M,F),t.apply(this,B),o);Ns(_),s>0?St(this).transition().duration(s).call(b,N,M,_):St(this).call(m.transform,N,M,_)}}function P(_,...B){if(e.apply(this,arguments)){var O=_.touches,M=O.length,F=C(this,B,_.changedTouches.length===M).event(_),$,N,W,U;for(Dp(_),N=0;N<M;++N)W=O[N],U=Pi(W,this),U=[U,this.__zoom.invert(U),W.identifier],F.touch0?!F.touch1&&F.touch0[2]!==U[2]&&(F.touch1=U,F.taps=0):(F.touch0=U,$=!0,F.taps=1+!!h);h&&(h=clearTimeout(h)),$&&(F.taps<2&&(u=U[0],h=setTimeout(function(){h=null},f)),bh(this),F.start())}}function I(_,...B){if(this.__zooming){var O=C(this,B).event(_),M=_.changedTouches,F=M.length,$,N,W,U;for(Ns(_),$=0;$<F;++$)N=M[$],W=Pi(N,this),O.touch0&&O.touch0[2]===N.identifier?O.touch0[0]=W:O.touch1&&O.touch1[2]===N.identifier&&(O.touch1[0]=W);if(N=O.that.__zoom,O.touch1){var Q=O.touch0[0],it=O.touch0[1],nt=O.touch1[0],vt=O.touch1[1],Pt=(Pt=nt[0]-Q[0])*Pt+(Pt=nt[1]-Q[1])*Pt,Et=(Et=vt[0]-it[0])*Et+(Et=vt[1]-it[1])*Et;N=v(N,Math.sqrt(Pt/Et)),W=[(Q[0]+nt[0])/2,(Q[1]+nt[1])/2],U=[(it[0]+vt[0])/2,(it[1]+vt[1])/2]}else if(O.touch0)W=O.touch0[0],U=O.touch0[1];else return;O.zoom("touch",r(x(N,W,U),O.extent,o))}}function D(_,...B){if(this.__zooming){var O=C(this,B).event(_),M=_.changedTouches,F=M.length,$,N;for(Dp(_),d&&clearTimeout(d),d=setTimeout(function(){d=null},f),$=0;$<F;++$)N=M[$],O.touch0&&O.touch0[2]===N.identifier?delete O.touch0:O.touch1&&O.touch1[2]===N.identifier&&delete O.touch1;if(O.touch1&&!O.touch0&&(O.touch0=O.touch1,delete O.touch1),O.touch0)O.touch0[1]=this.__zoom.invert(O.touch0[0]);else if(O.end(),O.taps===2&&(N=Pi(N,this),Math.hypot(u[0]-N[0],u[1]-N[1])<g)){var W=St(this).on("dblclick.zoom");W&&W.apply(this,arguments)}}}return m.wheelDelta=function(_){return arguments.length?(i=typeof _=="function"?_:nh(+_),m):i},m.filter=function(_){return arguments.length?(e=typeof _=="function"?_:nh(!!_),m):e},m.touchable=function(_){return arguments.length?(n=typeof _=="function"?_:nh(!!_),m):n},m.extent=function(_){return arguments.length?(t=typeof _=="function"?_:nh([[+_[0][0],+_[0][1]],[+_[1][0],+_[1][1]]]),m):t},m.scaleExtent=function(_){return arguments.length?(a[0]=+_[0],a[1]=+_[1],m):[a[0],a[1]]},m.translateExtent=function(_){return arguments.length?(o[0][0]=+_[0][0],o[1][0]=+_[1][0],o[0][1]=+_[0][1],o[1][1]=+_[1][1],m):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},m.constrain=function(_){return arguments.length?(r=_,m):r},m.duration=function(_){return arguments.length?(s=+_,m):s},m.interpolate=function(_){return arguments.length?(l=_,m):l},m.on=function(){var _=c.on.apply(c,arguments);return _===c?m:_},m.clickDistance=function(_){return arguments.length?(p=(_=+_)*_,m):Math.sqrt(p)},m.tapDistance=function(_){return arguments.length?(g=+_,m):g},m}var rO={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(Xs,function(){var r=1e3,i=6e4,n=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",h="week",u="month",d="quarter",f="year",y="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var B=["th","st","nd","rd"],O=_%100;return"["+_+(B[(O-20)%10]||B[O]||B[0])+"]"}},x=function(_,B,O){var M=String(_);return!M||M.length>=B?_:""+Array(B+1-M.length).join(O)+_},w={s:x,z:function(_){var B=-_.utcOffset(),O=Math.abs(B),M=Math.floor(O/60),F=O%60;return(B<=0?"+":"-")+x(M,2,"0")+":"+x(F,2,"0")},m:function _(B,O){if(B.date()<O.date())return-_(O,B);var M=12*(O.year()-B.year())+(O.month()-B.month()),F=B.clone().add(M,u),$=O-F<0,N=B.clone().add(M+($?-1:1),u);return+(-(M+(O-F)/($?F-N:N-F))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:u,y:f,w:h,d:c,D:y,h:l,m:s,s:o,ms:a,Q:d}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},b="en",C={};C[b]=v;var k="$isDayjsObject",T=function(_){return _ instanceof I||!(!_||!_[k])},E=function _(B,O,M){var F;if(!B)return b;
vendor: 1,429 bytes, line 77
77if(typeof B=="string"){var $=B.toLowerCase();C[$]&&(F=$),O&&(C[$]=O,F=$);var N=B.split("-");if(!F&&N.length>1)return _(N[0])}else{var W=B.name;C[W]=B,F=W}return!M&&F&&(b=F),F||!M&&b},L=function(_,B){if(T(_))return _.clone();var O=typeof B=="object"?B:{};return O.date=_,O.args=arguments,new I(O)},P=w;P.l=E,P.i=T,P.w=function(_,B){return L(_,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var I=function(){function _(O){this.$L=E(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[k]=!0}var B=_.prototype;return B.parse=function(O){this.$d=function(M){var F=M.date,$=M.utc;if(F===null)return new Date(NaN);if(P.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var N=F.match(g);if(N){var W=N[2]-1||0,U=(N[7]||"0").substring(0,3);return $?new Date(Date.UTC(N[1],W,N[3]||1,N[4]||0,N[5]||0,N[6]||0,U)):new Date(N[1],W,N[3]||1,N[4]||0,N[5]||0,N[6]||0,U)}}return new Date(F)}(O),this.init()},B.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},B.$utils=function(){return P},B.isValid=function(){return this.$d.toString()!==p},B.isSame=function(O,M){var F=L(O);return this.startOf(M)<=F&&F<=this.endOf(M)},B.isAfter=function(O,M){return L(O)<this.startOf(M)},B.isBefore=function(O,M){return this.endOf(M)<L(O)}
vendor: 3,964 bytes, line 77
77,B.$g=function(O,M,F){return P.u(O)?this[M]:this.set(F,O)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(O,M){var F=this,$=!!P.u(M)||M,N=P.p(O),W=function(et,Z){var K=P.w(F.$u?Date.UTC(F.$y,Z,et):new Date(F.$y,Z,et),F);return $?K:K.endOf(c)},U=function(et,Z){return P.w(F.toDate()[et].apply(F.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(Z)),F)},Q=this.$W,it=this.$M,nt=this.$D,vt="set"+(this.$u?"UTC":"");switch(N){case f:return $?W(1,0):W(31,11);case u:return $?W(1,it):W(0,it+1);case h:var Pt=this.$locale().weekStart||0,Et=(Q<Pt?Q+7:Q)-Pt;return W($?nt-Et:nt+(6-Et),it);case c:case y:return U(vt+"Hours",0);case l:return U(vt+"Minutes",1);case s:return U(vt+"Seconds",2);case o:return U(vt+"Milliseconds",3);default:return this.clone()}},B.endOf=function(O){return this.startOf(O,!1)},B.$set=function(O,M){var F,$=P.p(O),N="set"+(this.$u?"UTC":""),W=(F={},F[c]=N+"Date",F[y]=N+"Date",F[u]=N+"Month",F[f]=N+"FullYear",F[l]=N+"Hours",F[s]=N+"Minutes",F[o]=N+"Seconds",F[a]=N+"Milliseconds",F)[$],U=$===c?this.$D+(M-this.$W):M;if($===u||$===f){var Q=this.clone().set(y,1);Q.$d[W](U),Q.init(),this.$d=Q.set(y,Math.min(this.$D,Q.daysInMonth())).$d}else W&&this.$d[W](U);return this.init(),this},B.set=function(O,M){return this.clone().$set(O,M)},B.get=function(O){return this[P.p(O)]()},B.add=function(O,M){var F,$=this;O=Number(O);var N=P.p(M),W=function(it){var nt=L($);return P.w(nt.date(nt.date()+Math.round(it*O)),$)};if(N===u)return this.set(u,this.$M+O);if(N===f)return this.set(f,this.$y+O);if(N===c)return W(1);if(N===h)return W(7);var U=(F={},F[s]=i,F[l]=n,F[o]=r,F)[N]||1,Q=this.$d.getTime()+O*U;return P.w(Q,this)},B.subtract=function(O,M){return this.add(-1*O,M)},B.format=function(O){var M=this,F=this.$locale();if(!this.isValid())return F.invalidDate||p;var $=O||"YYYY-MM-DDTHH:mm:ssZ",N=P.z(this),W=this.$H,U=this.$m,Q=this.$M,it=F.weekdays,nt=F.months,vt=F.meridiem,Pt=function(Z,K,G,ht){return Z&&(Z[K]||Z(M,$))||G[K].slice(0,ht)},Et=function(Z){return P.s(W%12||12,Z,"0")},et=vt||function(Z,K,G){var ht=Z<12?"AM":"PM";return G?ht.toLowerCase():ht};return $.replace(m,function(Z,K){return K||function(G){switch(G){case"YY":return String(M.$y).slice(-2);case"YYYY":return P.s(M.$y,4,"0");case"M":return Q+1;case"MM":return P.s(Q+1,2,"0");case"MMM":return Pt(F.monthsShort,Q,nt,3);case"MMMM":return Pt(nt,Q);case"D":return M.$D;case"DD":return P.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return Pt(F.weekdaysMin,M.$W,it,2);case"ddd":return Pt(F.weekdaysShort,M.$W,it,3);case"dddd":return it[M.$W];case"H":return String(W);case"HH":return P.s(W,2,"0");case"h":return Et(1);case"hh":return Et(2);case"a":return et(W,U,!0);case"A":return et(W,U,!1);case"m":return String(U);case"mm":return P.s(U,2,"0");case"s":return String(M.$s);case"ss":return P.s(M.$s,2,"0");case"SSS":return P.s(M.$ms,3,"0");case"Z":return N}return null}(Z)||N.replace(":","")})},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(O,M,F){var $,N=this,W=P.p(M),U=L(O),Q=(U.utcOffset()-this.utcOffset())*i,it=this-U,nt=function(){return P.m(N,U)};switch(W){case f:$=nt()/12;break;case u:$=nt();break;case d:$=nt()/3;break;case h:$=(it-Q)/6048e5;break;case c:$=(it-Q)/864e5;break;case l:$=it/n;break;case s:$=it/i;break;case o:$=it/r;break;default:$=it}return F?$:P.a($)},B.daysInMonth=function(){return this.endOf(u).$D},B.$locale=function(){return C[this.$L]},B.locale=function(O,M){if(!O)return this.$L;var F=this.clone(),$=E(O,M,!0);return $&&(F.$L=$),F},B.clone=function(){return P.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},_}(),D=I.prototype;return L.prototype=D,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",u],["$y",f],["$D",y]].forEac
vendor: 4,399 bytes, line 77
77h(function(_){D[_[1]]=function(B){return this.$g(B,_[0],_[1])}}),L.extend=function(_,B){return _.$i||(_(B,I,L),_.$i=!0),L},L.locale=E,L.isDayjs=T,L.unix=function(_){return L(1e3*_)},L.en=C[b],L.Ls=C,L.p={},L})})(rO);var hht=rO.exports;const uht=Ut(hht);var iO=Object.defineProperty,S=(e,t)=>iO(e,"name",{value:t,configurable:!0}),fht=(e,t)=>{for(var r in t)iO(e,r,{get:t[r],enumerable:!0})},Ai={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},X={trace:S((...e)=>{},"trace"),debug:S((...e)=>{},"debug"),info:S((...e)=>{},"info"),warn:S((...e)=>{},"warn"),error:S((...e)=>{},"error"),fatal:S((...e)=>{},"fatal")},ib=S(function(e="fatal"){let t=Ai.fatal;typeof e=="string"?e.toLowerCase()in Ai&&(t=Ai[e]):typeof e=="number"&&(t=e),X.trace=()=>{},X.debug=()=>{},X.info=()=>{},X.warn=()=>{},X.error=()=>{},X.fatal=()=>{},t<=Ai.fatal&&(X.fatal=console.error?console.error.bind(console,Sr("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Sr("FATAL"))),t<=Ai.error&&(X.error=console.error?console.error.bind(console,Sr("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Sr("ERROR"))),t<=Ai.warn&&(X.warn=console.warn?console.warn.bind(console,Sr("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Sr("WARN"))),t<=Ai.info&&(X.info=console.info?console.info.bind(console,Sr("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Sr("INFO"))),t<=Ai.debug&&(X.debug=console.debug?console.debug.bind(console,Sr("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Sr("DEBUG"))),t<=Ai.trace&&(X.trace=console.debug?console.debug.bind(console,Sr("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Sr("TRACE")))},"setLogLevel"),Sr=S(e=>`%c${uht().format("ss.SSS")} : ${e} : `,"format");const xh={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return xh.hue2rgb(a,n,e+1/3)*255;case"g":return xh.hue2rgb(a,n,e)*255;case"b":return xh.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),o=(n+a)/2;if(i==="l")return o*100;if(n===a)return 0;const s=n-a,l=o>.5?s/(2-n-a):s/(n+a);if(i==="s")return l*100;switch(n){case e:return((t-r)/s+(t<r?6:0))*60;case t:return((r-e)/s+2)*60;case r:return((e-t)/s+4)*60;default:return-1}}},dht={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},pht={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},_t={channel:xh,lang:dht,unit:pht},ln={};for(let e=0;e<=255;e++)ln[e]=_t.unit.dec2hex(e);const ze={ALL:0,RGB:1,HSL:2};class ght{constructor(){this.type=ze.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=ze.ALL}is(t){return this.type===t}}class yht{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new ght}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=ze.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=_t.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=_t.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=_t.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=_t.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=_t.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=_t.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(ze.HSL)&&r!==void 0?r:(this._ensureHSL(),_t.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(ze.HSL)&&r!==void 0?r:(this._ensureHSL(),_t.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(ze.HSL)&&r!==void 0?r:(this._ensureHSL(),_t.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(ze.RGB)&&r!==void 0?r:(this._ensureRGB(),_t.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(ze.RGB)&&r!==void 0?r:(this._ensureRGB(),_t.channel.rgb2hsl(t,"s"))}
vendor: 30,350 bytes, lines 77-78
77get l(){const t=this.data,r=t.l;return!this.type.is(ze.RGB)&&r!==void 0?r:(this._ensureRGB(),_t.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(ze.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(ze.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(ze.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(ze.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(ze.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(ze.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const xd=new yht({r:0,g:0,b:0,a:0},"transparent"),ao={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(ao.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,o=n>4,s=o?1:17,l=o?8:4,c=a?0:-1,h=o?255:15;return xd.set({r:(i>>l*(c+3)&h)*s,g:(i>>l*(c+2)&h)*s,b:(i>>l*(c+1)&h)*s,a:a?(i&h)*s/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${ln[Math.round(t)]}${ln[Math.round(r)]}${ln[Math.round(i)]}${ln[Math.round(n*255)]}`:`#${ln[Math.round(t)]}${ln[Math.round(r)]}${ln[Math.round(i)]}`}},Qn={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(Qn.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return _t.channel.clamp.h(parseFloat(r)*.9);case"rad":return _t.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return _t.channel.clamp.h(parseFloat(r)*360)}}return _t.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(Qn.re);if(!r)return;const[,i,n,a,o,s]=r;return xd.set({h:Qn._hue2deg(i),s:_t.channel.clamp.s(parseFloat(n)),l:_t.channel.clamp.l(parseFloat(a)),a:o?_t.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${_t.lang.round(t)}, ${_t.lang.round(r)}%, ${_t.lang.round(i)}%, ${n})`:`hsl(${_t.lang.round(t)}, ${_t.lang.round(r)}%, ${_t.lang.round(i)}%)`}},pl={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=pl.colors[e];if(t)return ao.parse(t)},stringify:e=>{const t=ao.stringify(e);for(const r in pl.colors)if(pl.colors[r]===t)return r}},tl={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(tl.re);if(!r)return;const[,i,n,a,o,s,l,c,h]=r;return xd.set({r:_t.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:_t.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:_t.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?_t.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${_t.lang.round(t)}, ${_t.lang.round(r)}, ${_t.lang.round(i)}, ${_t.lang.round(n)})`:`rgb(${_t.lang.round(t)}, ${_t.lang.round(r)}, ${_t.lang.round(i)})`}},Vr={format:{keyword:pl,hex:ao,rgb:tl,rgba:tl,hsl:Qn,hsla:Qn},parse:e=>{if(typeof e!="string")return e;const t=ao.parse(e)||tl.parse(e)||Qn.parse(e)||pl.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(ze.HSL)||e.data.r===void 0?Qn.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?tl.stringify(e):ao.stringify(e)},nO=(e,t)=>{const r=Vr.parse(e);for(const i in t)r[i]=_t.channel.clamp[i](t[i]);return Vr.stringify(r)},xn=(e,t,r=0,i=1)=>{if(typeof e!="number")return nO(e,{a:t});const n=xd.set({r:_t.channel.clamp.r(e),g:_t.channel.clamp.g(t),b:_t.channel.clamp.b(r),a:_t.channel.clamp.a(i)});return Vr.stringify(n)},v0t=(e,t)=>_t.lang.round(Vr.parse(e)[t]),mht=e=>{const{r:t,g:r,b:i}=Vr.parse(e),n=.2126*_t.channel.toLinear(t)+.7152*_t.channel.toLinear(r)+.0722*_t.channel.toLinear(i);return _t.lang.round(n)},vht=e=>mht(e)>=.5,ti=e=>!vht(e),nb=(e,t,r)=>{const i=Vr.parse(e),n=i[t],a=_t.channel.clamp[t](n+r);return n!==a&&(i[t]=a),Vr.stringify(i)},q=(e,t)=>nb(e,"l",t),H=(e,t)=>nb(e,"l",-t),b0t=(e,t)=>nb(e,"a",-t),A=(e,t)=>{const r=Vr.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return nO(e,i)},bht=(e,t,r=50)=>{const{r:i,g:n,b:a,a:o}=Vr.parse(e),{r:s,g:l,b:c,a:h}=Vr.parse(t),u=r/100,d=u*2-1,f=o-h,p=((d*f===-1?d:(d+f)/(1+d*f))+1)/2,g=1-p,m=i*p+s*g,v=n*p+l*g,x=a*p+c*g,w=o*u+h*(1-u);return xn(m,v,x,w)},z=(e,t=100)=>{const r=Vr.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,bht(r,e,t)};var aO=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,gl=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,xht=/\s*%%.*\n/gm,so,oO=(so=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},S(so,"UnknownDiagramError"),so),ua={},ab=S(function(e,t){e=e.replace(aO,"").replace(gl,"").replace(xht,`
78`);for(const[r,{detector:i}]of Object.entries(ua))if(i(e,t))return r;throw new oO(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Wy=S((...e)=>{for(const{id:t,detector:r,loader:i}of e)sO(t,r,i)},"registerLazyLoadedDiagrams"),sO=S((e,t,r)=>{ua[e]&&X.warn(`Detector with key ${e} already exists. Overwriting.`),ua[e]={detector:t,loader:r},X.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),Cht=S(e=>ua[e].loader,"getDiagramLoader"),qy=S((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>qy(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&t[a]!==null&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=qy(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),Se=qy,xi="#ffffff",Ci="#f2f2f2",kt=S((e,t)=>t?A(e,{s:-40,l:10}):A(e,{s:-40,l:-10}),"mkBorder"),lo,wht=(lo=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,i,n,a,o,s,l,c,h,u,d,f,y,p,g,m,v,x,w,b,C,k,T,E,L,P,I,D,_,B,O,M,F,$;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||A(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||A(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||kt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||kt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||kt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||z(this.tertiaryColor),this.lineColor=this.lineColor||z(this.background),this.arrowheadColor=this.arrowheadColor||z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||z(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||q(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||H(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||H(this.mainBkg,10)):(this.rowOdd=this.rowOdd||q(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||q(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||A(this.primaryColor,{h:30}),this.cScale4=this.cScale4||A(this.primaryColor,{h:60}),this.cScale5=this.cScale5||A(this.primaryColor,{h:90}),this.cScale6=this.cScale6||A(this.primaryColor,{h:120}),this.cScale7=this.cScale7||A(this.primaryColor,{h:150}),this.cScale8=this.cScale8||A(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||A(this.primaryColor,{h:270}),this.cScale10=this.cScale10||A(this.primaryColor,{h:300}),this.cScale11=this.cScale11||A(this.primaryColor,{h:330}),this.darkMode)for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScale"+N]=H(this["cScale"+N],75);else for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScale"+N]=H(this["cScale"+N],25);for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScaleInv"+N]=this["cScaleInv"+N]||z(this["cScale"+N]);for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this.darkMode?this["cScalePeer"+N]=this["cScalePeer"+N]||q(this["cScale"+N],10):this["cScalePeer"+N]=this["cScalePeer"+N]||H(this["cScale"+N],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScaleLabel"+N]=this["cScaleLabel"+N]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let N=0;N<5;N++)this["surface"+N]=this["surface"+N]||A(this.mainBkg,{h:180,s:-15,l:t*(5+N*3)}),this["surfacePeer"+N]=this["surfacePeer"+N]||A(this.mainBkg,{h:180,s:-15,l:t*(8+N*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||A(this.primaryColor,{h:64}),this.fillType3=this.fillType3||A(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||A(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||A(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||A(this.primaryColor,{h:128}),this.fillType7=this.fillType7||A(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||A(this.primaryColor,{l:-10}),this.pie5=this.pie5||A(this.secondaryColor,{l:-10}),this.pie6=this.pie6||A(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||A(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||A(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||A(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||A(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||A(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||A(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??A(this.primaryColor,{l:-30}),this.venn2=this.venn2??A(this.secondaryColor,{l:-30}),this.venn3=this.venn3??A(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??A(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??A(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??A(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??A(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??A(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((d=this.wardley)==null?void 0:d.backgroundColor)||this.background,axisColor:((f=this.wardley)==null?void 0:f.axisColor)||this.lineColor,axisTextColor:((y=this.wardley)==null?void 0:y.axisTextColor)||this.primaryTextColor,gridColor:((p=this.wardley)==null?void 0:p.gridColor)||this.gridColor,componentFill:((g=this.wardley)==null?void 0:g.componentFill)||this.background,componentStroke:((m=this.wardley)==null?void 0:m.componentStroke)||this.lineColor,componentLabelColor:((v=this.wardley)==null?void 0:v.componentLabelColor)||this.primaryTextColor,linkStroke:((x=this.wardley)==null?void 0:x.linkStroke)||this.lineColor,evolutionStroke:((w=this.wardley)==null?void 0:w.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((b=this.wardley)==null?void 0:b.annotationStroke)||this.lineColor,annotationTextColor:((C=this.wardley)==null?void 0:C.annotationTextColor)||this.primaryTextColor,annotationFill:((k=this.wardley)==null?void 0:k.annotationFill)||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?q(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((T=this.xyChart)==null?void 0:T.backgroundColor)||this.background,titleColor:((E=this.xyChart)==null?void 0:E.titleColor)||this.primaryTextColor,dataLabelColor:((L=this.xyChart)==null?void 0:L.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((P=this.xyChart)==null?void 0:P.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((I=this.xyChart)==null?void 0:I.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((D=this.xyChart)==null?void 0:D.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((_=this.xyChart)==null?void 0:_.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((B=this.xyChart)==null?void 0:B.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((O=this.xyChart)==null?void 0:O.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((M=this.xyChart)==null?void 0:M.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((F=this.xyChart)==null?void 0:F.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(($=this.xyChart)==null?void 0:$.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||A(this.primaryColor,{h:-30}),this.git4=this.git4||A(this.primaryColor,{h:-60}),this.git5=this.git5||A(this.primaryColor,{h:-90}),this.git6=this.git6||A(this.primaryColor,{h:60}),this.git7=this.git7||A(this.primaryColor,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ci,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},S(lo,"Theme"),lo),Sht=S(e=>{const t=new wht;return t.calculate(e),t},"getThemeVariables"),co,kht=(co=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=q(this.primaryColor,16),this.tertiaryColor=A(this.primaryColor,{h:-160}),this.primaryBorderColor=z(this.background),this.secondaryBorderColor=kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=kt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.lineColor=z(this.background),this.textColor=z(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=q(z("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=xn(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=H("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=H(this.sectionBkgColor,10),this.taskBorderColor=xn(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=xn(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||q(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||H(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u,d,f,y,p,g,m,v,x,w,b,C,k,T,E,L,P,I,D,_,B,O,M,F;this.secondBkg=q(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackgroun
vendor: 5,823 bytes, line 78
78d=q(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=q(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=z(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=A(this.primaryColor,{h:64}),this.fillType3=A(this.secondaryColor,{h:64}),this.fillType4=A(this.primaryColor,{h:-64}),this.fillType5=A(this.secondaryColor,{h:-64}),this.fillType6=A(this.primaryColor,{h:128}),this.fillType7=A(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||A(this.primaryColor,{h:30}),this.cScale4=this.cScale4||A(this.primaryColor,{h:60}),this.cScale5=this.cScale5||A(this.primaryColor,{h:90}),this.cScale6=this.cScale6||A(this.primaryColor,{h:120}),this.cScale7=this.cScale7||A(this.primaryColor,{h:150}),this.cScale8=this.cScale8||A(this.primaryColor,{h:210}),this.cScale9=this.cScale9||A(this.primaryColor,{h:270}),this.cScale10=this.cScale10||A(this.primaryColor,{h:300}),this.cScale11=this.cScale11||A(this.primaryColor,{h:330});for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScaleInv"+$]=this["cScaleInv"+$]||z(this["cScale"+$]);for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScalePeer"+$]=this["cScalePeer"+$]||q(this["cScale"+$],10);for(let $=0;$<5;$++)this["surface"+$]=this["surface"+$]||A(this.mainBkg,{h:30,s:-30,l:-(-10+$*4)}),this["surfacePeer"+$]=this["surfacePeer"+$]||A(this.mainBkg,{h:30,s:-30,l:-(-7+$*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScaleLabel"+$]=this["cScaleLabel"+$]||this.scaleLabelColor;for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["pie"+$]=this["cScale"+$];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let $=0;$<8;$++)this["venn"+($+1)]=this["venn"+($+1)]??q(this["cScale"+$],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?q(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 12,443 bytes, line 78
78nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((y=this.radar)==null?void 0:y.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((g=this.radar)==null?void 0:g.curveOpacity)||.5,curveStrokeWidth:((m=this.radar)==null?void 0:m.curveStrokeWidth)||2,graticuleColor:((v=this.radar)==null?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((x=this.radar)==null?void 0:x.graticuleStrokeWidth)||1,graticuleOpacity:((w=this.radar)==null?void 0:w.graticuleOpacity)||.3,legendBoxSize:((b=this.radar)==null?void 0:b.legendBoxSize)||12,legendFontSize:((C=this.radar)==null?void 0:C.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:((k=this.wardley)==null?void 0:k.backgroundColor)||this.background,axisColor:((T=this.wardley)==null?void 0:T.axisColor)||this.lineColor,axisTextColor:((E=this.wardley)==null?void 0:E.axisTextColor)||this.primaryTextColor,gridColor:((L=this.wardley)==null?void 0:L.gridColor)||this.gridColor,componentFill:((P=this.wardley)==null?void 0:P.componentFill)||this.mainBkg,componentStroke:((I=this.wardley)==null?void 0:I.componentStroke)||this.lineColor,componentLabelColor:((D=this.wardley)==null?void 0:D.componentLabelColor)||this.primaryTextColor,linkStroke:((_=this.wardley)==null?void 0:_.linkStroke)||this.lineColor,evolutionStroke:((B=this.wardley)==null?void 0:B.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((O=this.wardley)==null?void 0:O.annotationStroke)||this.lineColor,annotationTextColor:((M=this.wardley)==null?void 0:M.annotationTextColor)||this.primaryTextColor,annotationFill:((F=this.wardley)==null?void 0:F.annotationFill)||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=q(this.secondaryColor,20),this.git1=q(this.pie2||this.secondaryColor,20),this.git2=q(this.pie3||this.tertiaryColor,20),this.git3=q(this.pie4||A(this.primaryColor,{h:-30}),20),this.git4=q(this.pie5||A(this.primaryColor,{h:-60}),20),this.git5=q(this.pie6||A(this.primaryColor,{h:-90}),10),this.git6=q(this.pie7||A(this.primaryColor,{h:60}),10),this.git7=q(this.pie8||A(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||z(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||q("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||q("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||q("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||q("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||q(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||q(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||q(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||q(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},S(co,"Theme"),co),Tht=S(e=>{const t=new kht;return t.calculate(e),t},"getThemeVariables"),ho,_ht=(ho=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=A(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=A(this.primaryColor,{h:-160}),this.primaryBorderColor=kt(this.primaryColor,this.darkMode),this.secondaryBorderColor=kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=kt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.lineColor=z(this.background),this.textColor=z(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=kt(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=xn(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var t,r,i,n,a,o,s,l,c,h,u,d,f,y,p,g,m,v,x,w,b,C,k,T,E,L,P,I,D,_,B,O,M,F;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||A(this.primaryColor,{h:30}),this.cScale4=this.cScale4||A(this.primaryColor,{h:60}),this.cScale5=this.cScale5||A(this.primaryColor,{h:90}),this.cScale6=this.cScale6||A(this.primaryColor,{h:120}),this.cScale7=this.cScale7||A(this.primaryColor,{h:150}),this.cScale8=this.cScale8||A(this.primaryColor,{h:210}),this.cScale9=this.cScale9||A(this.primaryColor,{h:270}),this.cScale10=this.cScale10||A(this.primaryColor,{h:300}),this.cScale11=this.cScale11||A(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||H(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||H(this.tertiaryColor,40);for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScale"+$]=H(this["cScale"+$],10),this["cScalePeer"+$]=this["cScalePeer"+$]||H(this["cScale"+$],25);for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScaleInv"+$]=this["cScaleInv"+$]||A(this["cScale"+$],{h:180});for(let $=0;$<5;$++)this["surface"+$]=this["surface"+$]||A(this.mainBkg,{h:30,l:-(5+$*5)}),this["surfacePeer"+$]=this["surfacePeer"+$]||A(this.mainBkg,{h:30,l:-(7+$*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||z(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||z(this.labelTextColor);for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScaleLabel"+$]=this["cScaleLabel"+$]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackgroun
vendor: 4,817 bytes, line 78
78d=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||q(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||q(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=A(this.primaryColor,{h:64}),this.fillType3=A(this.secondaryColor,{h:64}),this.fillType4=A(this.primaryColor,{h:-64}),this.fillType5=A(this.secondaryColor,{h:-64}),this.fillType6=A(this.primaryColor,{h:128}),this.fillType7=A(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||A(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||A(this.primaryColor,{l:-10}),this.pie5=this.pie5||A(this.secondaryColor,{l:-30}),this.pie6=this.pie6||A(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||A(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||A(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||A(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||A(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||A(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||A(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??A(this.primaryColor,{l:-30}),this.venn2=this.venn2??A(this.secondaryColor,{l:-30}),this.venn3=this.venn3??A(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??A(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??A(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??A(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??A(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??A(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?q(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 12,220 bytes, line 78
78nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((s=this.radar)==null?void 0:s.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((u=this.wardley)==null?void 0:u.backgroundColor)||this.background,axisColor:((d=this.wardley)==null?void 0:d.axisColor)||this.lineColor,axisTextColor:((f=this.wardley)==null?void 0:f.axisTextColor)||this.primaryTextColor,gridColor:((y=this.wardley)==null?void 0:y.gridColor)||this.gridColor,componentFill:((p=this.wardley)==null?void 0:p.componentFill)||this.background,componentStroke:((g=this.wardley)==null?void 0:g.componentStroke)||this.lineColor,componentLabelColor:((m=this.wardley)==null?void 0:m.componentLabelColor)||this.primaryTextColor,linkStroke:((v=this.wardley)==null?void 0:v.linkStroke)||this.lineColor,evolutionStroke:((x=this.wardley)==null?void 0:x.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((w=this.wardley)==null?void 0:w.annotationStroke)||this.lineColor,annotationTextColor:((b=this.wardley)==null?void 0:b.annotationTextColor)||this.primaryTextColor,annotationFill:((C=this.wardley)==null?void 0:C.annotationFill)||this.background},this.xyChart={backgroundColor:((k=this.xyChart)==null?void 0:k.backgroundColor)||this.background,titleColor:((T=this.xyChart)==null?void 0:T.titleColor)||this.primaryTextColor,dataLabelColor:((E=this.xyChart)==null?void 0:E.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((L=this.xyChart)==null?void 0:L.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((P=this.xyChart)==null?void 0:P.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((I=this.xyChart)==null?void 0:I.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((D=this.xyChart)==null?void 0:D.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((_=this.xyChart)==null?void 0:_.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((B=this.xyChart)==null?void 0:B.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((O=this.xyChart)==null?void 0:O.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((M=this.xyChart)==null?void 0:M.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((F=this.xyChart)==null?void 0:F.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||A(this.primaryColor,{h:-30}),this.git4=this.git4||A(this.primaryColor,{h:-60}),this.git5=this.git5||A(this.primaryColor,{h:-90}),this.git6=this.git6||A(this.primaryColor,{h:60}),this.git7=this.git7||A(this.primaryColor,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||H(z(this.git0),25),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||z(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ci}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},S(ho,"Theme"),ho),Aht=S(e=>{const t=new _ht;return t.calculate(e),t},"getThemeVariables"),uo,Oht=(uo=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=q("#cde498",10),this.primaryBorderColor=kt(this.primaryColor,this.darkMode),this.secondaryBorderColor=kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=kt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.primaryColor),this.lineColor=z(this.background),this.textColor=z(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u,d,f,y,p,g,m,v,x,w,b,C,k,T,E,L,P,I,D,_,B,O,M,F;this.actorBorder=H(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||A(this.primaryColor,{h:30}),this.cScale4=this.cScale4||A(this.primaryColor,{h:60}),this.cScale5=this.cScale5||A(this.primaryColor,{h:90}),this.cScale6=this.cScale6||A(this.primaryColor,{h:120}),this.cScale7=this.cScale7||A(this.primaryColor,{h:150}),this.cScale8=this.cScale8||A(this.primaryColor,{h:210}),this.cScale9=this.cScale9||A(this.primaryColor,{h:270}),this.cScale10=this.cScale10||A(this.primaryColor,{h:300}),this.cScale11=this.cScale11||A(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||H(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||H(this.tertiaryColor,40);for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScale"+$]=H(this["cScale"+$],10),this["cScalePeer"+$]=this["cScalePeer"+$]||H(this["cScale"+$],25);for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScaleInv"+$]=this["cScaleInv"+$]||A(this["cScale"+$],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScaleLabel"+$]=this["cScaleLabel"+$]||this.scaleLabelColor;for(let $=0;$<5;$++)this["surface"+$]=this["surface"+$]||A(this.mainBkg,{h:30,s:-30,l:-(5+$*5)}),this["surfacePeer"+$]=this["surfacePeer"+$]||A(this.mainBkg,{h:30,s:-30,l:-(8+$*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||q(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||q(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,212 bytes, line 78
78dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=A(this.primaryColor,{h:64}),this.fillType3=A(this.secondaryColor,{h:64}),this.fillType4=A(this.primaryColor,{h:-64}),this.fillType5=A(this.secondaryColor,{h:-64}),this.fillType6=A(this.primaryColor,{h:128}),this.fillType7=A(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||A(this.primaryColor,{l:-30}),this.pie5=this.pie5||A(this.secondaryColor,{l:-30}),this.pie6=this.pie6||A(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||A(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||A(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||A(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||A(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||A(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||A(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??A(this.primaryColor,{l:-30}),this.venn2=this.venn2??A(this.secondaryColor,{l:-30}),this.venn3=this.venn3??A(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??A(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??A(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??A(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??A(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??A(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?q(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillC
78olor:this.mainBkg},this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((s=this.radar)==null?void 0:s.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((u=this.wardley)==null?void 0:u.backgroundColor)||this.background,axisColor:((d=this.wardley)==null?void 0:d.axisColor)||this.lineColor,axisTextColor:((f=this.wardley)==null?void 0:f.axisTextColor)||this.primaryTextColor,gridColor:((y=this.wardley)==null?void 0:y.gridColor)||this.gridColor,componentFill:((p=this.wardley)==null?void 0:p.componentFill)||this.background,componentStroke:((g=this.wardley)==null?void 0:g.componentStroke)||this.lineColor,componentLabelColor:((m=this.wardley)==null?void 0:m.componentLabelColor)||this.primaryTextColor,linkStroke:((v=this.wardley)==null?void 0:v.linkStroke)||this.lineColor,evolutionStroke:((x=this.wardley)==null?void 0:x.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((w=this.wardley)==null?void 0:w.annotationStroke)||this.lineColor,annotationTextColor:((b=this.wardley)==null?void 0:b.annotationTextColor)||this.primaryTextColor,annotationFill:((C=this.wardley)==null?void 0:C.annotationFill)||this.background},this.xyChart={backgroundColor:((k=this.xyChart)==null?void 0:k.backgroundColor)||this.background,titleColor:((T=this.xyChart)==null?void 0:T.titleColor)||this.primaryTextColor,dataLabelColor:((E=this.xyChart)==null?void 0:E.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((L=this.xyChart)==null?void 0:L.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((P=this.xyChart)==null?void 0:P.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((I=this.xyChart)==null?void 0:I.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((D=this.xyChart)==null?void 0:D.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((_=this.xyChart)==null?void 0:_.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((B=this.xyChart)==null?void 0:B.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((O=this.xyChart)==null?void 0:O.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((M=this.xyChart)==null?void 0:M.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((F=this.xyChart)==null?void 0:F.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||A(this.primaryColor,{h:-30}),this.git4=this.git4||A(this.primaryColor,{h:-60}),this.git5=this.git5||A(this.primaryColor,{h:-90}),this.git6=this.git6||A(this.primaryColor,{h:60}),this.git7=this.git7||A(this.primaryColor,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||z(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackgroun
vendor: 11,830 bytes, line 78
78d=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ci}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},S(uo,"Theme"),uo),Bht=S(e=>{const t=new Oht;return t.calculate(e),t},"getThemeVariables"),fo,$ht=(fo=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=q(this.contrast,55),this.background="#ffffff",this.tertiaryColor=A(this.primaryColor,{h:-160}),this.primaryBorderColor=kt(this.primaryColor,this.darkMode),this.secondaryBorderColor=kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=kt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.lineColor=z(this.background),this.textColor=z(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||q(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var t,r,i,n,a,o,s,l,c,h,u,d,f,y,p,g,m,v,x,w,b,C,k,T,E,L,P,I,D,_,B,O,M,F;this.secondBkg=q(this.contrast,55),this.border2=this.contrast,this.actorBorder=q(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScaleInv"+$]=this["cScaleInv"+$]||z(this["cScale"+$]);for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this.darkMode?this["cScalePeer"+$]=this["cScalePeer"+$]||q(this["cScale"+$],10):this["cScalePeer"+$]=this["cScalePeer"+$]||H(this["cScale"+$],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["cScaleLabel"+$]=this["cScaleLabel"+$]||this.scaleLabelColor;for(let $=0;$<5;$++)this["surface"+$]=this["surface"+$]||A(this.mainBkg,{l:-(5+$*5)}),this["surfacePeer"+$]=this["surfacePeer"+$]||A(this.mainBkg,{l:-(8+$*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=q(this.contrast,30),this.sectionBkgColor2=q(this.contrast,30),this.taskBorderColor=H(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=q(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=H(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=A(this.primaryColor,{h:64}),this.fillType3=A(this.secondaryColor,{h:64}),this.fillType4=A(this.primaryColor,{h:-64}),this.fillType5=A(this.secondaryColor,{h:-64}),this.fillType6=A(this.primaryColor,{h:128}),this.fillType7=A(this.secondaryColor,{h:128});for(let $=0;$<this.THEME_COLOR_LIMIT;$++)this["pie"+$]=this["cScale"+$];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let $=0;$<8;$++)this["venn"+($+1)]=this["venn"+($+1)]??this["cScale"+$];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?q(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((y=this.radar)==null?void 0:y.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((g=this.radar)==null?void 0:g.curveOpacity)||.5,curveStrokeWidth:((m
78=this.radar)==null?void 0:m.curveStrokeWidth)||2,graticuleColor:((v=this.radar)==null?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((x=this.radar)==null?void 0:x.graticuleStrokeWidth)||1,graticuleOpacity:((w=this.radar)==null?void 0:w.graticuleOpacity)||.3,legendBoxSize:((b=this.radar)==null?void 0:b.legendBoxSize)||12,legendFontSize:((C=this.radar)==null?void 0:C.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((k=this.wardley)==null?void 0:k.backgroundColor)||this.background,axisColor:((T=this.wardley)==null?void 0:T.axisColor)||this.lineColor,axisTextColor:((E=this.wardley)==null?void 0:E.axisTextColor)||this.primaryTextColor,gridColor:((L=this.wardley)==null?void 0:L.gridColor)||this.gridColor,componentFill:((P=this.wardley)==null?void 0:P.componentFill)||this.background,componentStroke:((I=this.wardley)==null?void 0:I.componentStroke)||this.lineColor,componentLabelColor:((D=this.wardley)==null?void 0:D.componentLabelColor)||this.primaryTextColor,linkStroke:((_=this.wardley)==null?void 0:_.linkStroke)||this.lineColor,evolutionStroke:((B=this.wardley)==null?void 0:B.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((O=this.wardley)==null?void 0:O.annotationStroke)||this.lineColor,annotationTextColor:((M=this.wardley)==null?void 0:M.annotationTextColor)||this.primaryTextColor,annotationFill:((F=this.wardley)==null?void 0:F.annotationFill)||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=H(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||A(this.primaryColor,{h:-30}),this.git4=this.pie5||A(this.primaryColor,{h:-60}),this.git5=this.pie6||A(this.primaryColor,{h:-90}),this.git6=this.pie7||A(this.primaryColor,{h:60}),this.git7=this.pie8||A(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroun
78dStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ci}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},S(fo,"Theme"),fo),Eht=S(e=>{const t=new $ht;return t.calculate(e),t},"getThemeVariables"),po,Pht=(po=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=kt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var a,o,s,l,c,h,u,d,f,y,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||A(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||A(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||kt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||kt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||kt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||z(this.tertiaryColor),this.lineColor=this.lineColor||z(this.background),this.arrowheadColor=this.arrowheadColor||z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||z(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=A(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||q(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,443 bytes, line 78
78dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||A(t,{h:30}),this.cScale4=this.cScale4||A(t,{h:60}),this.cScale5=this.cScale5||A(t,{h:90}),this.cScale6=this.cScale6||A(t,{h:120}),this.cScale7=this.cScale7||A(t,{h:150}),this.cScale8=this.cScale8||A(t,{h:210,l:150}),this.cScale9=this.cScale9||A(t,{h:270}),this.cScale10=this.cScale10||A(t,{h:300}),this.cScale11=this.cScale11||A(t,{h:330}),this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=H(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=H(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||z(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||q(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||H(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||A(this.mainBkg,{h:180,s:-15,l:n*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||A(this.mainBkg,{h:180,s:-15,l:n*(8+g*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||A(t,{h:64}),this.fillType3=this.fillType3||A(r,{h:64}),this.fillType4=this.fillType4||A(t,{h:-64}),this.fillType5=this.fillType5||A(r,{h:-64}),this.fillType6=this.fillType6||A(t,{h:128}),this.fillType7=this.fillType7||A(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||A(t,{l:-10}),this.pie5=this.pie5||A(r,{l:-10}),this.pie6=this.pie6||A(i,{l:-10}),this.pie7=this.pie7||A(t,{h:60,l:-10}),this.pie8=this.pie8||A(t,{h:-60,l:-10}),this.pie9=this.pie9||A(t,{h:120,l:0}),this.pie10=this.pie10||A(t,{h:60,l:-20}),this.pie11=this.pie11||A(t,{h:-60,l:-20}),this.pie12=this.pie12||A(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||A(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?q(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 21,225 bytes, line 78
78nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((s=this.xyChart)==null?void 0:s.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((h=this.xyChart)==null?void 0:h.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((d=this.xyChart)==null?void 0:d.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((f=this.xyChart)==null?void 0:f.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||A(t,{h:-30}),this.git4=this.git4||A(t,{h:-60}),this.git5=this.git5||A(t,{h:-90}),this.git6=this.git6||A(t,{h:60}),this.git7=this.git7||A(t,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ci}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},S(po,"Theme"),po),Lht=S(e=>{const t=new Pht;return t.calculate(e),t},"getThemeVariables"),go,Mht=(go=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=q(this.primaryColor,16),this.tertiaryColor=A(this.primaryColor,{h:-160}),this.primaryBorderColor=z(this.background),this.secondaryBorderColor=kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=kt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=q(z("#323D47"),10),this.border1="#ccc",this.border2=xn(255,255,255,.25),this.arrowheadColor=z(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,i,n,a,o,s,l,c,h,u,d;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||A(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||A(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||kt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||kt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||kt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||z(this.tertiaryColor),this.lineColor=this.lineColor||z(this.background),this.arrowheadColor=this.arrowheadColor||z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||z(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||q(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||A(this.primaryColor,{h:30}),this.cScale4=this.cScale4||A(this.primaryColor,{h:60}),this.cScale5=this.cScale5||A(this.primaryColor,{h:90}),this.cScale6=this.cScale6||A(this.primaryColor,{h:120}),this.cScale7=this.cScale7||A(this.primaryColor,{h:150}),this.cScale8=this.cScale8||A(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||A(this.primaryColor,{h:270}),this.cScale10=this.cScale10||A(this.primaryColor,{h:300}),this.cScale11=this.cScale11||A(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=H(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=H(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||z(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||q(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||H(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||A(this.mainBkg,{h:180,s:-15,l:t*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||A(this.mainBkg,{h:180,s:-15,l:t*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||A(this.primaryColor,{h:64}),this.fillType3=this.fillType3||A(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||A(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||A(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||A(this.primaryColor,{h:128}),this.fillType7=this.fillType7||A(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||A(this.primaryColor,{l:-10}),this.pie5=this.pie5||A(this.secondaryColor,{l:-10}),this.pie6=this.pie6||A(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||A(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||A(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||A(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||A(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||A(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||A(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?q(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ci}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},S(go,"Theme"),go),Fht=S(e=>{const t=new Mht;return t.calculate(e),t},"getThemeVariables"),yo,Iht=(yo=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=kt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var a,o,s,l,c,h,u,d,f,y,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||A(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||A(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||kt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||kt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||kt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||z(this.tertiaryColor),this.lineColor=this.lineColor||z(this.background),this.arrowheadColor=this.arrowheadColor||z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackgroun
vendor: 6,864 bytes, line 78
78d=this.edgeLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||z(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=A(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||q(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=this.mainBkg;if(this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=H(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=H(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||z(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||q(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||H(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||A(this.mainBkg,{h:180,s:-15,l:n*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||A(this.mainBkg,{h:180,s:-15,l:n*(8+g*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||A(t,{h:64}),this.fillType3=this.fillType3||A(r,{h:64}),this.fillType4=this.fillType4||A(t,{h:-64}),this.fillType5=this.fillType5||A(r,{h:-64}),this.fillType6=this.fillType6||A(t,{h:128}),this.fillType7=this.fillType7||A(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||A(t,{l:-10}),this.pie5=this.pie5||A(r,{l:-10}),this.pie6=this.pie6||A(i,{l:-10}),this.pie7=this.pie7||A(t,{h:60,l:-10}),this.pie8=this.pie8||A(t,{h:-60,l:-10}),this.pie9=this.pie9||A(t,{h:120,l:0}),this.pie10=this.pie10||A(t,{h:60,l:-20}),this.pie11=this.pie11||A(t,{h:-60,l:-20}),this.pie12=this.pie12||A(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||A(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?q(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
78nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((s=this.xyChart)==null?void 0:s.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((h=this.xyChart)==null?void 0:h.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((d=this.xyChart)==null?void 0:d.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((f=this.xyChart)==null?void 0:f.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||A(t,{h:-30}),this.git4=this.git4||A(t,{h:-60}),this.git5=this.git5||A(t,{h:-90}),this.git6=this.git6||A(t,{h:60}),this.git7=this.git7||A(t,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ci}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>
vendor: 15,298 bytes, line 78
78{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},S(yo,"Theme"),yo),Dht=S(e=>{const t=new Iht;return t.calculate(e),t},"getThemeVariables"),mo,Rht=(mo=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=q(this.primaryColor,16),this.tertiaryColor=A(this.primaryColor,{h:-160}),this.primaryBorderColor=z(this.background),this.secondaryBorderColor=kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=kt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=q(z("#323D47"),10),this.border1="#ccc",this.border2=xn(255,255,255,.25),this.arrowheadColor=z(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,i,n,a,o,s,l,c,h,u,d;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||A(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||A(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||kt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||kt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||kt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||z(this.tertiaryColor),this.lineColor=this.lineColor||z(this.background),this.arrowheadColor=this.arrowheadColor||z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||z(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||q(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||A(this.primaryColor,{h:30}),this.cScale4=this.cScale4||A(this.primaryColor,{h:60}),this.cScale5=this.cScale5||A(this.primaryColor,{h:90}),this.cScale6=this.cScale6||A(this.primaryColor,{h:120}),this.cScale7=this.cScale7||A(this.primaryColor,{h:150}),this.cScale8=this.cScale8||A(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||A(this.primaryColor,{h:270}),this.cScale10=this.cScale10||A(this.primaryColor,{h:300}),this.cScale11=this.cScale11||A(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=H(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=H(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||z(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||q(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||H(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||A(this.mainBkg,{h:180,s:-15,l:t*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||A(this.mainBkg,{h:180,s:-15,l:t*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||A(this.primaryColor,{h:64}),this.fillType3=this.fillType3||A(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||A(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||A(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||A(this.primaryColor,{h:128}),this.fillType7=this.fillType7||A(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||A(this.primaryColor,{l:-10}),this.pie5=this.pie5||A(this.secondaryColor,{l:-10}),this.pie6=this.pie6||A(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||A(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||A(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||A(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||A(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||A(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||A(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?q(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||A(this.primaryColor,{h:-30}),this.git4=this.git4||A(this.primaryColor,{h:-60}),this.git5=this.git5||A(this.primaryColor,{h:-90}),this.git6=this.git6||A(this.primaryColor,{h:60}),this.git7=this.git7||A(this.primaryColor,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xi,this.attributeBackgroun
78dColorEven=this.attributeBackgroundColorEven||Ci}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},S(mo,"Theme"),mo),jht=S(e=>{const t=new Rht;return t.calculate(e),t},"getThemeVariables"),vo,Nht=(vo=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=kt(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var a,o,s,l,c,h,u,d,f,y,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||A(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||A(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||kt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||kt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||kt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||z(this.tertiaryColor),this.lineColor=this.lineColor||z(this.background),this.arrowheadColor=this.arrowheadColor||z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||z(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=A(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||q(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,256 bytes, line 78
78dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||z(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||q(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||H(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||A(this.mainBkg,{h:180,s:-15,l:n*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||A(this.mainBkg,{h:180,s:-15,l:n*(8+g*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||A(t,{h:64}),this.fillType3=this.fillType3||A(r,{h:64}),this.fillType4=this.fillType4||A(t,{h:-64}),this.fillType5=this.fillType5||A(r,{h:-64}),this.fillType6=this.fillType6||A(t,{h:128}),this.fillType7=this.fillType7||A(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||A(t,{l:-10}),this.pie5=this.pie5||A(r,{l:-10}),this.pie6=this.pie6||A(i,{l:-10}),this.pie7=this.pie7||A(t,{h:60,l:-10}),this.pie8=this.pie8||A(t,{h:-60,l:-10}),this.pie9=this.pie9||A(t,{h:120,l:0}),this.pie10=this.pie10||A(t,{h:60,l:-20}),this.pie11=this.pie11||A(t,{h:-60,l:-20}),this.pie12=this.pie12||A(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||A(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?q(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
78nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((s=this.xyChart)==null?void 0:s.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((h=this.xyChart)==null?void 0:h.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((d=this.xyChart)==null?void 0:d.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((f=this.xyChart)==null?void 0:f.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||A(t,{h:-30}),this.git4=this.git4||A(t,{h:-60}),this.git5=this.git5||A(t,{h:-90}),this.git6=this.git6||A(t,{h:60}),this.git7=this.git7||A(t,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ci}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>
78{this[i]=t[i]})}},S(vo,"Theme"),vo),zht=S(e=>{const t=new Nht;return t.calculate(e),t},"getThemeVariables"),bo,Wht=(bo=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=q(this.primaryColor,16),this.tertiaryColor=A(this.primaryColor,{h:-160}),this.primaryBorderColor=z(this.background),this.secondaryBorderColor=kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=kt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=q(z("#323D47"),10),this.border1="#ccc",this.border2=xn(255,255,255,.25),this.arrowheadColor=z(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var r,i,n,a,o,s,l,c,h,u,d;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||A(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||A(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||kt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||kt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||kt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||kt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||z(this.tertiaryColor),this.lineColor=this.lineColor||z(this.background),this.arrowheadColor=this.arrowheadColor||z(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||z(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||q(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,633 bytes, line 78
78dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||z(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||q(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||H(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=H(this["cScale"+f],75);const t=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||A(this.mainBkg,{h:180,s:-15,l:t*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||A(this.mainBkg,{h:180,s:-15,l:t*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||A(this.primaryColor,{h:64}),this.fillType3=this.fillType3||A(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||A(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||A(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||A(this.primaryColor,{h:128}),this.fillType7=this.fillType7||A(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||A(this.primaryColor,{l:-10}),this.pie5=this.pie5||A(this.secondaryColor,{l:-10}),this.pie6=this.pie6||A(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||A(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||A(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||A(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||A(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||A(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||A(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||A(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||A(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||A(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||A(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||A(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||A(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?q(this.quadrant1Fill):H(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 31,856 bytes, lines 78-198
78nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?H(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||A(this.primaryColor,{h:-30}),this.git4=this.git4||A(this.primaryColor,{h:-60}),this.git5=this.git5||A(this.primaryColor,{h:-90}),this.git6=this.git6||A(this.primaryColor,{h:60}),this.git7=this.git7||A(this.primaryColor,{h:120}),this.darkMode?(this.git0=q(this.git0,25),this.git1=q(this.git1,25),this.git2=q(this.git2,25),this.git3=q(this.git3,25),this.git4=q(this.git4,25),this.git5=q(this.git5,25),this.git6=q(this.git6,25),this.git7=q(this.git7,25)):(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ci}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},S(bo,"Theme"),bo),qht=S(e=>{const t=new Wht;return t.calculate(e),t},"getThemeVariables"),Wi={base:{getThemeVariables:Sht},dark:{getThemeVariables:Tht},default:{getThemeVariables:Aht},forest:{getThemeVariables:Bht},neutral:{getThemeVariables:Eht},neo:{getThemeVariables:Lht},"neo-dark":{getThemeVariables:Fht},redux:{getThemeVariables:Dht},"redux-dark":{getThemeVariables:jht},"redux-color":{getThemeVariables:zht},"redux-dark-color":{getThemeVariables:qht}},Ze={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},lO={...Ze,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Wi.default.getThemeVariables(),sequence:{...Ze.sequence,messageFont:S(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:S(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:S(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Ze.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ze.c4,useWidth:void 0,personFont:S(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Ze.flowchart,inheritDir:!1},external_personFont:S(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:S(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:S(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:S(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:S(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:S(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:S(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:S(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:S(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:S(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:S(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:S(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:S(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:S(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:S(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:S(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:S(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:S(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:S(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:S(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:S(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Ze.pie,useWidth:984},xyChart:{...Ze.xyChart,useWidth:void 0},requirement:{...Ze.requirement,useWidth:void 0},packet:{...Ze.packet},eventmodeling:{...Ze.eventmodeling},treeView:{...Ze.treeView,useWidth:void 0},radar:{...Ze.radar},ishikawa:{...Ze.ishikawa},sankey:{...Ze.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Ze.venn}},cO=S((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...cO(e[i],"")]:[...r,t+i],[]),"keyify"),Hht=new Set(cO(lO,"")),hO=lO,Yu=S(e=>{if(X.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Yu(t));return}for(const t of Object.keys(e)){if(X.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!Hht.has(t)||e[t]==null){X.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){if(t==="nodeColors"){const i=/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;for(const n of Object.keys(e[t]))(typeof e[t][n]!="string"||!i.test(e[t][n]))&&(X.debug("sanitize deleting invalid color:",n,e[t][n]),delete e[t][n])}else X.debug("sanitizing object",t),Yu(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(X.debug("sanitizing css option",t),e[t]=uO(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}X.debug("After sanitization",e)}},"sanitizeDirective"),uO=S(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),es=Object.freeze(hO),tn=S(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),hr=Se({},es),Gu,fa=[],yl=Se({},es),Cd=S((e,t)=>{let r=Se({},e),i={};for(const n of t)pO(n),i=Se(i,n);if(r=Se(r,i),i.theme&&i.theme in Wi){const n=Se({},Gu),a=Se(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in Wi&&(r.themeVariables=Wi[r.theme].getThemeVariables(a))}return yl=r,yO(yl),yl},"updateCurrentConfig"),Uht=S(e=>(hr=Se({},es),hr=Se(hr,e),e.theme&&Wi[e.theme]&&(hr.themeVariables=Wi[e.theme].getThemeVariables(e.themeVariables)),Cd(hr,fa),hr),"setSiteConfig"),Yht=S(e=>{Gu=Se({},e)},"saveConfigFromInitialize"),Ght=S(e=>(hr=Se(hr,e),Cd(hr,fa),hr),"updateSiteConfig"),fO=S(()=>Se({},hr),"getSiteConfig"),dO=S(e=>(yO(e),Se(yl,e),oe()),"setConfig"),oe=S(()=>Se({},yl),"getConfig"),pO=S(e=>{e&&(["secure",...hr.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(X.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&pO(e[t])}))},"sanitize"),Vht=S(e=>{var t;Yu(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),fa.push(e),Cd(hr,fa)},"addDirective"),Vu=S((e=hr)=>{fa=[],Cd(e,fa)},"reset"),Xht={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},rS={},gO=S(e=>{rS[e]||(X.warn(Xht[e]),rS[e]=!0)},"issueWarning"),yO=S(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&gO("LAZY_LOAD_DEPRECATED")},"checkConfig"),x0t=S(()=>{let e={};Gu&&(e=Se(e,Gu));for(const t of fa)e=Se(e,t);return e},"getUserDefinedConfig"),or=S(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&gO("FLOWCHART_HTML_LABELS_DEPRECATED"),tn(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),_c=/<br\s*\/?>/gi,Kht=S(e=>e?bO(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Zht=(()=>{let e=!1;return()=>{e||(mO(),e=!0)}})();function mO(){const e="data-temp-href-target";na.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),na.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}S(mO,"setupDompurifyHooks");var vO=S(e=>(Zht(),na.sanitize(e)),"removeScript"),iS=S((e,t)=>{if(or(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=vO(e):r!=="loose"&&(e=bO(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=eut(e))}return e},"sanitizeMore"),Xr=S((e,t)=>e&&(t.dompurifyConfig?e=na.sanitize(iS(e,t),t.dompurifyConfig).toString():e=na.sanitize(iS(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),Qht=S((e,t)=>typeof e=="string"?Xr(e,t):e.flat().map(r=>Xr(r,t)),"sanitizeTextOrArray"),Jht=S(e=>_c.test(e),"hasBreaks"),tut=S(e=>e.split(_c),"splitBreaks"),eut=S(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),bO=S(e=>e.replace(_c,"#br#"),"breakToPlaceholder"),rut=S(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),iut=S(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),nut=S(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),nS=S(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let n=t[i];if(n===","&&i>0&&i+1<t.length){const a=t[i-1],o=t[i+1];aut(a,o)&&(n=a+","+o,i++,r.pop())}r.push(out(n))}return r.join("")},"parseGenericTypes"),Hy=S((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),aut=S((e,t)=>{const r=Hy(e,"~"),i=Hy(t,"~");return r===1&&i===1},"shouldCombineSets"),out=S(e=>{const t=Hy(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),aS=S(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Uy=/\$\$(.*)\$\$/g,ac=S(e=>{var t;return(((t=e.match(Uy))==null?void 0:t.length)??0)>0},"hasKatex"),C0t=S(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await xO(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),sut=S(async(e,t)=>{if(!ac(e))return e;if(!(aS()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Uy,"MathML is unsupported in this environment.");{const{default:r}=await Dt(async()=>{const{default:n}=await import("./katex-C5jXJg4s.js");return{default:n}},[]),i=t.forceLegacyMathML||!aS()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(_c).map(n=>ac(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(Uy,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),xO=S(async(e,t)=>Xr(await sut(e,t),t),"renderKatexSanitized"),Ac={getRows:Kht,sanitizeText:Xr,sanitizeTextOrArray:Qht,hasBreaks:Jht,splitBreaks:tut,lineBreakRegex:_c,removeScript:vO,getUrl:rut,evaluate:tn,getMax:iut,getMin:nut},lut=S(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),cut=S(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),CO=S(function(e,t,r,i){const n=cut(t,r,i);lut(e,n)},"configureSvgSize"),hut=S(function(e,t,r,i){const n=t.node().getBBox(),a=n.width,o=n.height;X.info(`SVG bounds: ${a}x${o}`,n);let s=0,l=0;X.info(`Graph bounds: ${s}x${l}`,e),s=a+r*2,l=o+r*2,X.info(`Calculated bounds: ${s}x${l}`),CO(t,l,s,i);const c=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),Ch={};function Yy(e){return[...e.cssRules].map(t=>t.cssText).join(`
79`)}S(Yy,"cssStyleSheetToString");var uut=S((e,t,r,i)=>{let n="";return e in Ch&&Ch[e]?n=Ch[e]({...r,svgId:i}):X.warn(`No theme found for ${e}`),` & {
80    font-family: ${r.fontFamily};
81    font-size: ${r.fontSize};
82    fill: ${r.textColor}
83  }
84  @keyframes edge-animation-frame {
85    from {
86      stroke-dashoffset: 0;
87    }
88  }
89  @keyframes dash {
90    to {
91      stroke-dashoffset: 0;
92    }
93  }
94  & .edge-animation-slow {
95    stroke-dasharray: 9,5 !important;
96    stroke-dashoffset: 900;
97    animation: dash 50s linear infinite;
98    stroke-linecap: round;
99  }
100  & .edge-animation-fast {
101    stroke-dasharray: 9,5 !important;
102    stroke-dashoffset: 900;
103    animation: dash 20s linear infinite;
104    stroke-linecap: round;
105  }
106  /* Classes common for multiple diagrams */
107
108  & .error-icon {
109    fill: ${r.errorBkgColor};
110  }
111  & .error-text {
112    fill: ${r.errorTextColor};
113    stroke: ${r.errorTextColor};
114  }
115
116  & .edge-thickness-normal {
117    stroke-width: ${r.strokeWidth??1}px;
118  }
119  & .edge-thickness-thick {
120    stroke-width: 3.5px
121  }
122  & .edge-pattern-solid {
123    stroke-dasharray: 0;
124  }
125  & .edge-thickness-invisible {
126    stroke-width: 0;
127    fill: none;
128  }
129  & .edge-pattern-dashed{
130    stroke-dasharray: 3;
131  }
132  .edge-pattern-dotted {
133    stroke-dasharray: 2;
134  }
135
136  & .marker {
137    fill: ${r.lineColor};
138    stroke: ${r.lineColor};
139  }
140  & .marker.cross {
141    stroke: ${r.lineColor};
142  }
143
144  & svg {
145    font-family: ${r.fontFamily};
146    font-size: ${r.fontSize};
147  }
148   & p {
149    margin: 0
150   }
151
152  ${n}
153  .node .neo-node {
154    stroke: ${r.nodeBorder};
155  }
156
157  [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
158    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
159    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
160  }
161
162
163  [data-look="neo"].node path {
164    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
165    stroke-width: ${r.strokeWidth??1}px;
166  }
167
168  [data-look="neo"].node .outer-path {
169    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
170  }
171
172  [data-look="neo"].node .neo-line path {
173    stroke: ${r.nodeBorder};
174    filter: none;
175  }
176
177  [data-look="neo"].node circle{
178    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
179    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
180  }
181
182  [data-look="neo"].node circle .state-start{
183    fill: #000000;
184  }
185
186  [data-look="neo"].icon-shape .icon {
187    fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
188    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
189  }
190
191    [data-look="neo"].icon-shape .icon-neo path {
192    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
193    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
194  }
195
196  ${t}
197`},"getStyles"),fut=S((e,t)=>{t!==void 0&&(Ch[e]=t)},"addStylesForDiagram"),dut=uut,wO={};fht(wO,{clear:()=>put,getAccDescription:()=>vut,getAccTitle:()=>yut,getDiagramTitle:()=>xut,setAccDescription:()=>mut,setAccTitle:()=>gut,setDiagramTitle:()=>but});var ob="",sb="",lb="",cb=S(e=>Xr(e,oe()),"sanitizeText"),put=S(()=>{ob="",lb="",sb=""},"clear"),gut=S(e=>{ob=cb(e).replace(/^\s+/g,"")},"setAccTitle"),yut=S(()=>ob,"getAccTitle"),mut=S(e=>{lb=cb(e).replace(/\n\s+/g,`
198`)},"setAccDescription"),vut=S(()=>lb,"getAccDescription"),but=S(e=>{sb=cb(e)},"setDiagramTitle"),xut=S(()=>sb,"getDiagramTitle"),oS=X,Cut=ib,jt=oe,w0t=dO,S0t=es,hb=S(e=>Xr(e,jt()),"sanitizeText"),wut=hut,Sut=S(()=>wO,"getCommonDb"),Xu={},Ku=S((e,t,r)=>{var i;
vendor: 5,390 bytes, line 198
198Xu[e]&&oS.warn(`Diagram with id ${e} already registered. Overwriting.`),Xu[e]=t,r&&sO(e,r),fut(e,t.styles),(i=t.injectUtils)==null||i.call(t,oS,Cut,jt,hb,wut,Sut(),()=>{})},"registerDiagram"),Gy=S(e=>{if(e in Xu)return Xu[e];throw new kut(e)},"getDiagram"),xo,kut=(xo=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},S(xo,"DiagramNotFoundError"),xo);function Tut(e){return e}var wh=1,Rp=2,Vy=3,ah=4,sS=1e-6;function _ut(e){return"translate("+e+",0)"}function Aut(e){return"translate(0,"+e+")"}function Out(e){return t=>+e(t)}function But(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function $ut(){return!this.__axis}function SO(e,t){var r=[],i=null,n=null,a=6,o=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===wh||e===ah?-1:1,h=e===ah||e===Rp?"x":"y",u=e===wh||e===Vy?_ut:Aut;function d(f){var y=i??(t.ticks?t.ticks.apply(t,r):t.domain()),p=n??(t.tickFormat?t.tickFormat.apply(t,r):Tut),g=Math.max(a,0)+s,m=t.range(),v=+m[0]+l,x=+m[m.length-1]+l,w=(t.bandwidth?But:Out)(t.copy(),l),b=f.selection?f.selection():f,C=b.selectAll(".domain").data([null]),k=b.selectAll(".tick").data(y,t).order(),T=k.exit(),E=k.enter().append("g").attr("class","tick"),L=k.select("line"),P=k.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(E),L=L.merge(E.append("line").attr("stroke","currentColor").attr(h+"2",c*a)),P=P.merge(E.append("text").attr("fill","currentColor").attr(h,c*g).attr("dy",e===wh?"0em":e===Vy?"0.71em":"0.32em")),f!==b&&(C=C.transition(f),k=k.transition(f),L=L.transition(f),P=P.transition(f),T=T.transition(f).attr("opacity",sS).attr("transform",function(I){return isFinite(I=w(I))?u(I+l):this.getAttribute("transform")}),E.attr("opacity",sS).attr("transform",function(I){var D=this.parentNode.__axis;return u((D&&isFinite(D=D(I))?D:w(I))+l)})),T.remove(),C.attr("d",e===ah||e===Rp?o?"M"+c*o+","+v+"H"+l+"V"+x+"H"+c*o:"M"+l+","+v+"V"+x:o?"M"+v+","+c*o+"V"+l+"H"+x+"V"+c*o:"M"+v+","+l+"H"+x),k.attr("opacity",1).attr("transform",function(I){return u(w(I)+l)}),L.attr(h+"2",c*a),P.attr(h,c*g).text(p),b.filter($ut).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Rp?"start":e===ah?"end":"middle"),b.each(function(){this.__axis=w})}return d.scale=function(f){return arguments.length?(t=f,d):t},d.ticks=function(){return r=Array.from(arguments),d},d.tickArguments=function(f){return arguments.length?(r=f==null?[]:Array.from(f),d):r.slice()},d.tickValues=function(f){return arguments.length?(i=f==null?null:Array.from(f),d):i&&i.slice()},d.tickFormat=function(f){return arguments.length?(n=f,d):n},d.tickSize=function(f){return arguments.length?(a=o=+f,d):a},d.tickSizeInner=function(f){return arguments.length?(a=+f,d):a},d.tickSizeOuter=function(f){return arguments.length?(o=+f,d):o},d.tickPadding=function(f){return arguments.length?(s=+f,d):s},d.offset=function(f){return arguments.length?(l=+f,d):l},d}function k0t(e){return SO(wh,e)}function T0t(e){return SO(Vy,e)}function Eut(e){var t=0,r=e.children,i=r&&r.length;if(!i)t=1;else for(;--i>=0;)t+=r[i].value;e.value=t}function Put(){return this.eachAfter(Eut)}function Lut(e,t){let r=-1;for(const i of this)e.call(t,i,++r,this);return this}function Mut(e,t){for(var r=this,i=[r],n,a,o=-1;r=i.pop();)if(e.call(t,r,++o,this),n=r.children)for(a=n.length-1;a>=0;--a)i.push(n[a]);return this}function Fut(e,t){for(var r=this,i=[r],n=[],a,o,s,l=-1;r=i.pop();)if(n.push(r),a=r.children)for(o=0,s=a.length;o<s;++o)i.push(a[o]);for(;r=n.pop();)e.call(t,r,++l,this);return this}function Iut(e,t){let r=-1;for(const i of this)if(e.call(t,i,++r,this))return i}function Dut(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,i=t.children,n=i&&i.length;--n>=0;)r+=i[n].value;t.value=r})}function Rut(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function jut(e){for(var t=this,r=Nut(t,e),i=[t];t!==r;)t=t.parent,i.push(t);for(var n=i.length;e!==r;)i.splice(n,0,e),e=e.parent;return i}function Nut(e,t){if(e===t)return e;var r=e.ancestors(),i=t.ancestors(),n=null;for(e=r.pop(),t=i.pop();e===t;)n=e,e=r.pop(),t=i.pop();return n}function zut(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Wut(){return Array.from(this)}function qut(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Hut(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*Uut(){var e=this,t,r=[e],i,n,a;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,i=e.children)for(n=0,a=i.length;n<a;++n)r.push(i[n]);while(r.length)}function kO(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Vut)):t===void 0&&(t=Gut);for(var r=new Zu(e),i,n=[r],a,o,s,l;i=n.pop();)if((o=t(i.data))&&(l=(o=Array.from(o)).length))for(i.children=o,s=l-1;s>=0;--s)n.push(a=o[s]=new Zu(o[s])),a.parent=i,a.depth=i.depth+1;return r.eachBefore(Kut)}function Yut(){return kO(this).eachBefore(Xut)}function Gut(e){return e.children}function Vut(e){return Array.isArray(e)?e[1]:null}function Xut(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Kut(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Zu(e){this.data=e,this.depth=this.height=0,this.parent=null}Zu.prototype=kO.prototype={constructor:Zu,count:Put,each:Lut,eachAfter:Fut,eachBefore:
198Mut,find:Iut,sum:Dut,sort:Rut,path:jut,ancestors:zut,descendants:Wut,leaves:qut,links:Hut,copy:Yut,[Symbol.iterator]:Uut};function Zut(e){if(typeof e!="function")throw new Error;return e}function zs(){return 0}function Ws(e){return function(){return e}}function Qut(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Jut(e,t,r,i,n){for(var a=e.children,o,s=-1,l=a.length,c=e.value&&(i-t)/e.value;++s<l;)o=a[s],o.y0=r,o.y1=n,o.x0=t,o.x1=t+=o.value*c}function tft(e,t,r,i,n){for(var a=e.children,o,s=-1,l=a.length,c=e.value&&(n-r)/e.value;++s<l;)o=a[s],o.x0=t,o.x1=i,o.y0=r,o.y1=r+=o.value*c}var eft=(1+Math.sqrt(5))/2;function rft(e,t,r,i,n,a){for(var o=[],s=t.children,l,c,h=0,u=0,d=s.length,f,y,p=t.value,g,m,v,x,w,b,C;h<d;){f=n-r,y=a-i;do g=s[u++].value;while(!g&&u<d);for(m=v=g,b=Math.max(y/f,f/y)/(p*e),C=g*g*b,w=Math.max(v/C,C/m);u<d;++u){if(g+=c=s[u].value,c<m&&(m=c),c>v&&(v=c),C=g*g*b,x=Math.max(v/C,C/m),x>w){g-=c;break}w=x}o.push(l={value:g,dice:f<y,children:s.slice(h,u)}),l.dice?Jut(l,r,i,n,p?i+=y*g/p:a):tft(l,r,i,p?r+=f*g/p:n,a),p-=g,h=u}return o}const ift=function e(t){function r(i,n,a,o,s){rft(t,i,n,a,o,s)}return r.ratio=function(i){return e((i=+i)>1?i:1)},r}(eft);function _0t(){var e=ift,t=!1,r=1,i=1,n=[0],a=zs,o=zs,s=zs,l=zs,c=zs;function h(d){return d.x0=d.y0=0,d.x1=r,d.y1=i,d.eachBefore(u),n=[0],t&&d.eachBefore(Qut),d}function u(d){var f=n[d.depth],y=d.x0+f,p=d.y0+f,g=d.x1-f,m=d.y1-f;g<y&&(y=g=(y+g)/2),m<p&&(p=m=(p+m)/2),d.x0=y,d.y0=p,d.x1=g,d.y1=m,d.children&&(f=n[d.depth+1]=a(d)/2,y+=c(d)-f,p+=o(d)-f,g-=s(d)-f,m-=l(d)-f,g<y&&(y=g=(y+g)/2),m<p&&(p=m=(p+m)/2),e(d,y,p,g,m))}return h.round=function(d){return arguments.length?(t=!!d,h):t},h.size=function(d){return arguments.length?(r=+d[0],i=+d[1],h):[r,i]},h.tile=function(d){return arguments.length?(e=Zut(d),h):e},h.padding=function(d){return arguments.length?h.paddingInner(d).paddingOuter(d):h.paddingInner()},h.paddingInner=function(d){return arguments.length?(a=typeof d=="function"?d:Ws(+d),h):a},h.paddingOuter=function(d){return arguments.length?h.paddingTop(d).paddingRight(d).paddingBottom(d).paddingLeft(d):h.paddingTop()},h.paddingTop=function(d){return arguments.length?(o=typeof d=="function"?d:Ws(+d),h):o},h.paddingRight=function(d){return arguments.length?(s=typeof d=="function"?d:Ws(+d),h):s},h.paddingBottom=function(d){return arguments.length?(l=typeof d=="function"?d:Ws(+d),h):l},h.paddingLeft=function(d){return arguments.length?(c=typeof d=="function"?d:Ws(+d),h):c},h}function nft(e){for(var t=e.length/6|0,r=new Array(t),i=0;i<t;)r[i]="#"+e.slice(i*6,++i*6);return r}const A0t=nft("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var aft=S(e=>{var n;const{securityLevel:t}=jt();let r=St("body");if(t==="sandbox"){const o=((n=St(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=St(o.body)}return r.select(`#${e}`)},"selectSvgElement");function ub(e){return typeof e>"u"||e===null}S(ub,"isNothing");function TO(e){return typeof e=="object"&&e!==null}S(TO,"isObject");function _O(e){return Array.isArray(e)?e:ub(e)?[]:[e]}S(_O,"toArray");function AO(e,t){var r,i,n,a;if(t)for(a=Object.keys(t),r=0,i=a.length;r<i;r+=1)n=a[r],e[n]=t[n];return e}S(AO,"extend");function OO(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}S(OO,"repeat");function BO(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}S(BO,"isNegativeZero");var oft=ub,sft=TO,lft=_O,cft=OO,hft=BO,uft=AO,ke={isNothing:oft,isObject:sft,toArray:lft,repeat:cft,isNegativeZero:hft,extend:uft};function fb(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
199
200`+e.mark.snippet),i+" "+r):i}S(fb,"formatError");function rs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=fb(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}S(rs,"YAMLException$1");rs.prototype=Object.create(Error.prototype);rs.prototype.constructor=rs;rs.prototype.toString=S(function(t){return this.name+": "+fb(this,t)},"toString");var ur=rs;function Sh(e,t,r,i,n){var a="",o="",s=Math.floor(n/2)-1;return i-t>s&&(a=" ... ",t=i-s+a.length),r-i>s&&(o=" ...",r=i+s-o.length),{str:a+e.slice(t,r).replace(/\t/g,"→")+o,pos:i-t+a.length}}S(Sh,"getLine");function kh(e,t){return ke.repeat(" ",t-e.length)+e}S(kh,"padStart");function $O(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,o=-1;a=r.exec(e.buffer);)n.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var s="",l,c,h=Math.min(e.line+t.linesAfter,n.length).toString().length,u=t.maxLength-(t.indent+h+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)c=Sh(e.buffer,i[o-l],n[o-l],e.position-(i[o]-i[o-l]),u),s=ke.repeat(" ",t.indent)+kh((e.line-l+1).toString(),h)+" | "+c.str+`
201`+s;for(c=Sh(e.buffer,i[o],n[o],e.position,u),s+=ke.repeat(" ",t.indent)+kh((e.line+1).toString(),h)+" | "+c.str+`
202`,s+=ke.repeat("-",t.indent+h+3+c.pos)+`^
203`,l=1;l<=t.linesAfter&&!(o+l>=n.length);l++)c=Sh(e.buffer,i[o+l],n[o+l],e.position-(i[o]-i[o+l]),u),s+=ke.repeat(" ",t.indent)+kh((e.line+l+1).toString(),h)+" | "+c.str+`
204`;return s.replace(/\n$/,"")}S($O,"makeSnippet");var fft=$O,dft=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],pft=["scalar","sequence","mapping"];function EO(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}S(EO,"compileStyleAliases");function PO(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(dft.indexOf(r)===-1)throw new ur('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=EO(t.styleAliases||null),pft.indexOf(this.kind)===-1)throw new ur('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}S(PO,"Type$1");var Xe=PO;function Xy(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(a,o){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=o)}),r[n]=i}),r}S(Xy,"compileList");function LO(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(S(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}S(LO,"compileMap");function Qu(e){return this.extend(e)}S(Qu,"Schema$1");Qu.prototype.extend=S(function(t){var r=[],i=[];if(t instanceof Xe)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new ur("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
vendor: 30,396 bytes, lines 204-216
204r.forEach(function(a){if(!(a instanceof Xe))throw new ur("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new ur("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new ur("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof Xe))throw new ur("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Qu.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Xy(n,"implicit"),n.compiledExplicit=Xy(n,"explicit"),n.compiledTypeMap=LO(n.compiledImplicit,n.compiledExplicit),n},"extend");var gft=Qu,yft=new Xe("tag:yaml.org,2002:str",{kind:"scalar",construct:S(function(e){return e!==null?e:""},"construct")}),mft=new Xe("tag:yaml.org,2002:seq",{kind:"sequence",construct:S(function(e){return e!==null?e:[]},"construct")}),vft=new Xe("tag:yaml.org,2002:map",{kind:"mapping",construct:S(function(e){return e!==null?e:{}},"construct")}),bft=new gft({explicit:[yft,mft,vft]});function MO(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}S(MO,"resolveYamlNull");function FO(){return null}S(FO,"constructYamlNull");function IO(e){return e===null}S(IO,"isNull");var xft=new Xe("tag:yaml.org,2002:null",{kind:"scalar",resolve:MO,construct:FO,predicate:IO,represent:{canonical:S(function(){return"~"},"canonical"),lowercase:S(function(){return"null"},"lowercase"),uppercase:S(function(){return"NULL"},"uppercase"),camelcase:S(function(){return"Null"},"camelcase"),empty:S(function(){return""},"empty")},defaultStyle:"lowercase"});function DO(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}S(DO,"resolveYamlBoolean");function RO(e){return e==="true"||e==="True"||e==="TRUE"}S(RO,"constructYamlBoolean");function jO(e){return Object.prototype.toString.call(e)==="[object Boolean]"}S(jO,"isBoolean");var Cft=new Xe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:DO,construct:RO,predicate:jO,represent:{lowercase:S(function(e){return e?"true":"false"},"lowercase"),uppercase:S(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:S(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function NO(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}S(NO,"isHexCode");function zO(e){return 48<=e&&e<=55}S(zO,"isOctCode");function WO(e){return 48<=e&&e<=57}S(WO,"isDecCode");function qO(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!NO(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!zO(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!WO(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}S(qO,"resolveYamlInteger");function HO(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}S(HO,"constructYamlInteger");function UO(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ke.isNegativeZero(e)}S(UO,"isInteger");var wft=new Xe("tag:yaml.org,2002:int",{kind:"scalar",resolve:qO,construct:HO,predicate:UO,represent:{binary:S(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:S(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:S(function(e){return e.toString(10)},"decimal"),hexadecimal:S(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Sft=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function YO(e){return!(e===null||!Sft.test(e)||e[e.length-1]==="_")}S(YO,"resolveYamlFloat");function GO(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}S(GO,"constructYamlFloat");var kft=/^[-+]?[0-9]+e/;function VO(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ke.isNegativeZero(e))return"-0.0";return r=e.toString(10),kft.test(r)?r.replace("e",".e"):r}S(VO,"representYamlFloat");function XO(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ke.isNegativeZero(e))}S(XO,"isFloat");var Tft=new Xe("tag:yaml.org,2002:float",{kind:"scalar",resolve:YO,construct:GO,predicate:XO,represent:VO,defaultStyle:"lowercase"}),KO=bft.extend({implicit:[xft,Cft,wft,Tft]}),_ft=KO,ZO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),QO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function JO(e){return e===null?!1:ZO.exec(e)!==null||QO.exec(e)!==null}S(JO,"resolveYamlTimestamp");function tB(e){var t,r,i,n,a,o,s,l=0,c=null,h,u,d;if(t=ZO.exec(e),t===null&&(t=QO.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(h=+t[10],u=+(t[11]||0),c=(h*60+u)*6e4,t[9]==="-"&&(c=-c)),d=new Date(Date.UTC(r,i,n,a,o,s,l)),c&&d.setTime(d.getTime()-c),d}S(tB,"constructYamlTimestamp");function eB(e){return e.toISOString()}S(eB,"representYamlTimestamp");var Aft=new Xe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:JO,construct:tB,instanceOf:Date,represent:eB});function rB(e){return e==="<<"||e===null}S(rB,"resolveYamlMerge");var Oft=new Xe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:rB}),db=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
205\r`;function iB(e){if(e===null)return!1;var t,r,i=0,n=e.length,a=db;for(r=0;r<n;r++)if(t=a.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}S(iB,"resolveYamlBinary");function nB(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,a=db,o=0,s=[];for(t=0;t<n;t++)t%4===0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(i.charAt(t));return r=n%4*6,r===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):r===18?(s.push(o>>10&255),s.push(o>>2&255)):r===12&&s.push(o>>4&255),new Uint8Array(s)}S(nB,"constructYamlBinary");function aB(e){var t="",r=0,i,n,a=e.length,o=db;for(i=0;i<a;i++)i%3===0&&i&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[i];return n=a%3,n===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):n===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):n===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}S(aB,"representYamlBinary");function oB(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}S(oB,"isBinary");var Bft=new Xe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:iB,construct:nB,predicate:oB,represent:aB}),$ft=Object.prototype.hasOwnProperty,Eft=Object.prototype.toString;function sB(e){if(e===null)return!0;var t=[],r,i,n,a,o,s=e;for(r=0,i=s.length;r<i;r+=1){if(n=s[r],o=!1,Eft.call(n)!=="[object Object]")return!1;for(a in n)if($ft.call(n,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}S(sB,"resolveYamlOmap");function lB(e){return e!==null?e:[]}S(lB,"constructYamlOmap");var Pft=new Xe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:sB,construct:lB}),Lft=Object.prototype.toString;function cB(e){if(e===null)return!0;var t,r,i,n,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(i=o[t],Lft.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[t]=[n[0],i[n[0]]]}return!0}S(cB,"resolveYamlPairs");function hB(e){if(e===null)return[];var t,r,i,n,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1)i=o[t],n=Object.keys(i),a[t]=[n[0],i[n[0]]];return a}S(hB,"constructYamlPairs");var Mft=new Xe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:cB,construct:hB}),Fft=Object.prototype.hasOwnProperty;function uB(e){if(e===null)return!0;var t,r=e;for(t in r)if(Fft.call(r,t)&&r[t]!==null)return!1;return!0}S(uB,"resolveYamlSet");function fB(e){return e!==null?e:{}}S(fB,"constructYamlSet");var Ift=new Xe("tag:yaml.org,2002:set",{kind:"mapping",resolve:uB,construct:fB}),dB=_ft.extend({implicit:[Aft,Oft],explicit:[Bft,Pft,Mft,Ift]}),Tn=Object.prototype.hasOwnProperty,Ju=1,pB=2,gB=3,tf=4,jp=1,Dft=2,lS=3,Rft=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,jft=/[\x85\u2028\u2029]/,Nft=/[,\[\]\{\}]/,yB=/^(?:!|!!|![a-z\-]+!)$/i,mB=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ky(e){return Object.prototype.toString.call(e)}S(Ky,"_class");function Yr(e){return e===10||e===13}S(Yr,"is_EOL");function Cn(e){return e===9||e===32}S(Cn,"is_WHITE_SPACE");function rr(e){return e===9||e===32||e===10||e===13}S(rr,"is_WS_OR_EOL");function Jn(e){return e===44||e===91||e===93||e===123||e===125}S(Jn,"is_FLOW_INDICATOR");function vB(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}S(vB,"fromHexCode");function bB(e){return e===120?2:e===117?4:e===85?8:0}S(bB,"escapedHexLen");function xB(e){return 48<=e&&e<=57?e-48:-1}S(xB,"fromDecimalCode");function Zy(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?"	":e===110?`
206`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}S(Zy,"simpleEscapeSequence");function CB(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}S(CB,"charFromCodepoint");function pb(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}S(pb,"setProperty");var wB=new Array(256),SB=new Array(256);for(Nn=0;Nn<256;Nn++)wB[Nn]=Zy(Nn)?1:0,SB[Nn]=Zy(Nn);var Nn;function kB(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||dB,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}S(kB,"State$1");function gb(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=fft(r),new ur(t,r)}S(gb,"generateError");function gt(e,t){throw gb(e,t)}S(gt,"throwError");function oc(e,t){e.onWarning&&e.onWarning.call(null,gb(e,t))}S(oc,"throwWarning");var cS={YAML:S(function(t,r,i){var n,a,o;t.version!==null&&gt(t,"duplication of %YAML directive"),i.length!==1&&gt(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&gt(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),o=parseInt(n[2],10),a!==1&&gt(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&oc(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:S(function(t,r,i){var n,a;i.length!==2&&gt(t,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],yB.test(n)||gt(t,"ill-formed tag handle (first argument) of the TAG directive"),Tn.call(t.tagMap,n)&&gt(t,'there is a previously declared suffix for "'+n+'" tag handle'),mB.test(a)||gt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{gt(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};function qi(e,t,r,i){var n,a,o,s;if(t<r){if(s=e.input.slice(t,r),i)for(n=0,a=s.length;n<a;n+=1)o=s.charCodeAt(n),o===9||32<=o&&o<=1114111||gt(e,"expected valid JSON character");else Rft.test(s)&&gt(e,"the stream contains non-printable characters");e.result+=s}}S(qi,"captureSegment");function Qy(e,t,r,i){var n,a,o,s;for(ke.isObject(r)||gt(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,s=n.length;o<s;o+=1)a=n[o],Tn.call(t,a)||(pb(t,a,r[a]),i[a]=!0)}S(Qy,"mergeMappings");function ta(e,t,r,i,n,a,o,s,l){var c,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&gt(e,"nested arrays are not supported inside keys"),typeof n=="object"&&Ky(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Ky(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)Qy(e,t,a[c],r);else Qy(e,t,a,r);else!e.json&&!Tn.call(r,n)&&Tn.call(t,n)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,gt(e,"duplicated mapping key")),pb(t,n,a),delete r[n];return t}S(ta,"storeMappingPair");function wd(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):gt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}S(wd,"readLineBreak");function de(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;Cn(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(Yr(n))for(wd(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&oc(e,"deficient indentation"),i}S(de,"skipSeparationSpace");function Oc(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||rr(r)))}S(Oc,"testDocumentSeparator");function Sd(e,t){t===1?e.result+=" ":t>1&&(e.result+=ke.repeat(`
207`,t-1))}S(Sd,"writeFoldedLines");function TB(e,t,r){var i,n,a,o,s,l,c,h,u=e.kind,d=e.result,f;if(f=e.input.charCodeAt(e.position),rr(f)||Jn(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(n=e.input.charCodeAt(e.position+1),rr(n)||r&&Jn(n)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,s=!1;f!==0;){if(f===58){if(n=e.input.charCodeAt(e.position+1),rr(n)||r&&Jn(n))break}else if(f===35){if(i=e.input.charCodeAt(e.position-1),rr(i))break}else{if(e.position===e.lineStart&&Oc(e)||r&&Jn(f))break;if(Yr(f))if(l=e.line,c=e.lineStart,h=e.lineIndent,de(e,!1,-1),e.lineIndent>=t){s=!0,f=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=c,e.lineIndent=h;break}}s&&(qi(e,a,o,!1),Sd(e,e.line-l),a=o=e.position,s=!1),Cn(f)||(o=e.position+1),f=e.input.charCodeAt(++e.position)}return qi(e,a,o,!1),e.result?!0:(e.kind=u,e.result=d,!1)}S(TB,"readPlainScalar");function _B(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(qi(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else Yr(r)?(qi(e,i,n,!0),Sd(e,de(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Oc(e)?gt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);gt(e,"unexpected end of the stream within a single quoted scalar")}S(_B,"readSingleQuotedScalar");function AB(e,t){var r,i,n,a,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return qi(e,r,e.position,!0),e.position++,!0;if(s===92){if(qi(e,r,e.position,!0),s=e.input.charCodeAt(++e.position),Yr(s))de(e,!1,t);else if(s<256&&wB[s])e.result+=SB[s],e.position++;else if((o=bB(s))>0){for(n=o,a=0;n>0;n--)s=e.input.charCodeAt(++e.position),(o=vB(s))>=0?a=(a<<4)+o:gt(e,"expected hexadecimal character");e.result+=CB(a),e.position++}else gt(e,"unknown escape sequence");r=i=e.position}else Yr(s)?(qi(e,r,i,!0),Sd(e,de(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Oc(e)?gt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}gt(e,"unexpected end of the stream within a double quoted scalar")}S(AB,"readDoubleQuotedScalar");function OB(e,t){var r=!0,i,n,a,o=e.tag,s,l=e.anchor,c,h,u,d,f,y=Object.create(null),p,g,m,v;if(v=e.input.charCodeAt(e.position),v===91)h=93,f=!1,s=[];else if(v===123)h=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(de(e,!0,t),v=e.input.charCodeAt(e.position),v===h)return e.position++,e.tag=o,e.anchor=l,e.kind=f?"mapping":"sequence",e.result=s,!0;r?v===44&&gt(e,"expected the node content, but found ','"):gt(e,"missed comma between flow collection entries"),g=p=m=null,u=d=!1,v===63&&(c=e.input.charCodeAt(e.position+1),rr(c)&&(u=d=!0,e.position++,de(e,!0,t))),i=e.line,n=e.lineStart,a=e.position,da(e,t,Ju,!1,!0),g=e.tag,p=e.result,de(e,!0,t),v=e.input.charCodeAt(e.position),(d||e.line===i)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),de(e,!0,t),da(e,t,Ju,!1,!0),m=e.result),f?ta(e,s,y,g,p,m,i,n,a):u?s.push(ta(e,null,y,g,p,m,i,n,a)):s.push(p),de(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}gt(e,"unexpected end of the stream within a flow collection")}S(OB,"readFlowCollection");function BB(e,t){var r,i,n=jp,a=!1,o=!1,s=t,l=0,c=!1,h,u;if(u=e.input.charCodeAt(e.position),u===124)i=!1;else if(u===62)i=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)jp===n?n=u===43?lS:Dft:gt(e,"repeat of a chomping mode identifier");else if((h=xB(u))>=0)h===0?gt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?gt(e,"repeat of an indentation width identifier"):(s=t+h-1,o=!0);else break;if(Cn(u)){do u=e.input.charCodeAt(++e.position);while(Cn(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!Yr(u)&&u!==0)}for(;u!==0;){for(wd(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),Yr(u)){l++;continue}if(e.lineIndent<s){n===lS?e.result+=ke.repeat(`
208`,a?1+l:l):n===jp&&a&&(e.result+=`
209`);break}for(i?Cn(u)?(c=!0,e.result+=ke.repeat(`
210`,a?1+l:l)):c?(c=!1,e.result+=ke.repeat(`
211`,l+1)):l===0?a&&(e.result+=" "):e.result+=ke.repeat(`
212`,l):e.result+=ke.repeat(`
213`,a?1+l:l),a=!0,o=!0,l=0,r=e.position;!Yr(u)&&u!==0;)u=e.input.charCodeAt(++e.position);qi(e,r,e.position,!1)}return!0}S(BB,"readBlockScalar");function Jy(e,t){var r,i=e.tag,n=e.anchor,a=[],o,s=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,gt(e,"tab characters must not be used in indentation")),!(l!==45||(o=e.input.charCodeAt(e.position+1),!rr(o))));){if(s=!0,e.position++,de(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,da(e,t,gB,!1,!0),a.push(e.result),de(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)gt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=a,!0):!1}S(Jy,"readBlockSequence");function $B(e,t,r){var i,n,a,o,s,l,c=e.tag,h=e.anchor,u={},d=Object.create(null),f=null,y=null,p=null,g=!1,m=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,gt(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&rr(i))v===63?(g&&(ta(e,u,d,f,y,null,o,s,l),f=y=p=null),m=!0,g=!0,n=!0):g?(g=!1,n=!0):gt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=i;else{if(o=e.line,s=e.lineStart,l=e.position,!da(e,r,pB,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);Cn(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),rr(v)||gt(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(ta(e,u,d,f,y,null,o,s,l),f=y=p=null),m=!0,g=!1,n=!1,f=e.tag,y=e.result;else if(m)gt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=h,!0}else if(m)gt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=h,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,l=e.position),da(e,t,tf,!0,n)&&(g?y=e.result:p=e.result),g||(ta(e,u,d,f,y,p,o,s,l),f=y=p=null),de(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)gt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&ta(e,u,d,f,y,null,o,s,l),m&&(e.tag=c,e.anchor=h,e.kind="mapping",e.result=u),m}S($B,"readBlockMapping");function EB(e){var t,r=!1,i=!1,n,a,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&gt(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(i=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):gt(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!rr(o);)o===33&&(i?gt(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),yB.test(n)||gt(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),Nft.test(a)&&gt(e,"tag suffix cannot contain flow indicator characters")}a&&!mB.test(a)&&gt(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{gt(e,"tag name is malformed: "+a)}return r?e.tag=a:Tn.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:gt(e,'undeclared tag handle "'+n+'"'),!0}S(EB,"readTagProperty");function PB(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&gt(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!rr(r)&&!Jn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&gt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}S(PB,"readAnchorProperty");function LB(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!rr(i)&&!Jn(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&gt(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Tn.call(e.anchorMap,r)||gt(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],de(e,!0,-1),!0}S(LB,"readAlias");function da(e,t,r,i,n){var a,o,s,l=1,c=!1,h=!1,u,d,f,y,p,g;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=tf===r||gB===r,i&&de(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;EB(e)||PB(e);)de(e,!0,-1)?(c=!0,s=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):s=!1;if(s&&(s=c||n),(l===1||tf===r)&&(Ju===r||pB===r?p=t:p=t+1,g=e.position-e.lineStart,l===1?s&&(Jy(e,g)||$B(e,g,p))||OB(e,p)?h=!0:(o&&BB(e,p)||_B(e,p)||AB(e,p)?h=!0:LB(e)?(h=!0,(e.tag!==null||e.anchor!==null)&&gt(e,"alias node should not have any properties")):TB(e,p,Ju===r)&&(h=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(h=s&&Jy(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&gt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),u=0,d=e.implicitTypes.length;u<d;u+=1)if(y=e.implicitTypes[u],y.resolve(e.result)){e.result=y.construct(e.result),e.tag=y.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Tn.call(e.typeMap[e.kind||"fallback"],e.tag))y=e.typeMap[e.kind||"fallback"][e.tag];else for(y=null,f=e.typeMap.multi[e.kind||"fallback"],u=0,d=f.length;u<d;u+=1)if(e.tag.slice(0,f[u].tag.length)===f[u].tag){y=f[u];break}y||gt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&y.kind!==e.kind&&gt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+y.kind+'", not "'+e.kind+'"'),y.resolve(e.result,e.tag)?(e.result=y.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):gt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||h}S(da,"composeNode");function MB(e){var t=e.position,r,i,n,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(de(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!rr(o);)o=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&gt(e,"directive name must not be less than one character in length");o!==0;){for(;Cn(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Yr(o));break}if(Yr(o))break;for(r=e.position;o!==0&&!rr(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}o!==0&&wd(e),Tn.call(cS,i)?cS[i](e,i,n):oc(e,'unknown document directive "'+i+'"')}if(de(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,de(e,!0,-1)):a&&gt(e,"directives end mark is expected"),da(e,e.lineIndent-1,tf,!1,!0),de(e,!0,-1),e.checkLineBreaks&&jft.test(e.input.slice(t,e.position))&&oc(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Oc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,de(e,!0,-1));return}if(e.position<e.length-1)gt(e,"end of the stream or a document separator is expected");else return}S(MB,"readDocument");function yb(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
214`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new kB(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,gt(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)MB(r);return r.documents}S(yb,"loadDocuments");function zft(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=yb(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}S(zft,"loadAll$1");function FB(e,t){var r=yb(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new ur("expected a single document in the stream, but found more")}}S(FB,"load$1");var Wft=FB,qft={load:Wft},IB=Object.prototype.toString,DB=Object.prototype.hasOwnProperty,mb=65279,Hft=9,sc=10,Uft=13,Yft=32,Gft=33,Vft=34,tm=35,Xft=37,Kft=38,Zft=39,Qft=42,RB=44,Jft=45,ef=58,tdt=61,edt=62,rdt=63,idt=64,jB=91,NB=93,ndt=96,zB=123,adt=124,WB=125,Ke={};Ke[0]="\\0";Ke[7]="\\a";Ke[8]="\\b";Ke[9]="\\t";Ke[10]="\\n";Ke[11]="\\v";Ke[12]="\\f";Ke[13]="\\r";Ke[27]="\\e";Ke[34]='\\"';Ke[92]="\\\\";Ke[133]="\\N";Ke[160]="\\_";Ke[8232]="\\L";Ke[8233]="\\P";var odt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],sdt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function qB(e,t){var r,i,n,a,o,s,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,a=i.length;n<a;n+=1)o=i[n],s=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=e.compiledTypeMap.fallback[o],l&&DB.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[o]=s;return r}S(qB,"compileStyleMap");function HB(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new ur("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ke.repeat("0",i-t.length)+t}S(HB,"encodeHex");var ldt=1,lc=2;function UB(e){this.schema=e.schema||dB,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ke.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=qB(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?lc:ldt,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}S(UB,"State");function em(e,t){for(var r=ke.repeat(" ",t),i=0,n=-1,a="",o,s=e.length;i<s;)n=e.indexOf(`
215`,i),n===-1?(o=e.slice(i),i=s):(o=e.slice(i,n+1),i=n+1),o.length&&o!==`
216`&&(a+=r),a+=o;return a}
vendor: 4,393 bytes, lines 216-228
216S(em,"indentString");function rf(e,t){return`
217`+ke.repeat(" ",e.indent*t)}S(rf,"generateNextLine");function YB(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}S(YB,"testImplicitResolving");function cc(e){return e===Yft||e===Hft}S(cc,"isWhitespace");function is(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==mb||65536<=e&&e<=1114111}S(is,"isPrintable");function rm(e){return is(e)&&e!==mb&&e!==Uft&&e!==sc}S(rm,"isNsCharOrWhitespace");function im(e,t,r){var i=rm(e),n=i&&!cc(e);return(r?i:i&&e!==RB&&e!==jB&&e!==NB&&e!==zB&&e!==WB)&&e!==tm&&!(t===ef&&!n)||rm(t)&&!cc(t)&&e===tm||t===ef&&n}S(im,"isPlainSafe");function GB(e){return is(e)&&e!==mb&&!cc(e)&&e!==Jft&&e!==rdt&&e!==ef&&e!==RB&&e!==jB&&e!==NB&&e!==zB&&e!==WB&&e!==tm&&e!==Kft&&e!==Qft&&e!==Gft&&e!==adt&&e!==tdt&&e!==edt&&e!==Zft&&e!==Vft&&e!==Xft&&e!==idt&&e!==ndt}S(GB,"isPlainSafeFirst");function VB(e){return!cc(e)&&e!==ef}S(VB,"isPlainSafeLast");function Ka(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}S(Ka,"codePointAt");function vb(e){var t=/^\n* /;return t.test(e)}S(vb,"needIndentIndicator");var XB=1,nm=2,KB=3,ZB=4,Wa=5;function QB(e,t,r,i,n,a,o,s){var l,c=0,h=null,u=!1,d=!1,f=i!==-1,y=-1,p=GB(Ka(e,0))&&VB(Ka(e,e.length-1));if(t||o)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Ka(e,l),!is(c))return Wa;p=p&&im(c,h,s),h=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Ka(e,l),c===sc)u=!0,f&&(d=d||l-y-1>i&&e[y+1]!==" ",y=l);else if(!is(c))return Wa;p=p&&im(c,h,s),h=c}d=d||f&&l-y-1>i&&e[y+1]!==" "}return!u&&!d?p&&!o&&!n(e)?XB:a===lc?Wa:nm:r>9&&vb(e)?Wa:o?a===lc?Wa:nm:d?ZB:KB}S(QB,"chooseScalarStyle");function JB(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===lc?'""':"''";if(!e.noCompatMode&&(odt.indexOf(t)!==-1||sdt.test(t)))return e.quotingType===lc?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=i||e.flowLevel>-1&&r>=e.flowLevel;function l(c){return YB(e,c)}switch(S(l,"testAmbiguity"),QB(t,s,e.indent,o,l,e.quotingType,e.forceQuotes&&!i,n)){case XB:return t;case nm:return"'"+t.replace(/'/g,"''")+"'";case KB:return"|"+am(t,e.indent)+om(em(t,a));case ZB:return">"+am(t,e.indent)+om(em(t$(t,o),a));case Wa:return'"'+e$(t)+'"';default:throw new ur("impossible error: invalid scalar style")}}()}S(JB,"writeScalar");function am(e,t){var r=vb(e)?String(t):"",i=e[e.length-1]===`
218`,n=i&&(e[e.length-2]===`
219`||e===`
220`),a=n?"+":i?"":"-";return r+a+`
221`}S(am,"blockHeader");function om(e){return e[e.length-1]===`
222`?e.slice(0,-1):e}S(om,"dropEndingNewline");function t$(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
223`);return c=c!==-1?c:e.length,r.lastIndex=c,sm(e.slice(0,c),t)}(),n=e[0]===`
224`||e[0]===" ",a,o;o=r.exec(e);){var s=o[1],l=o[2];a=l[0]===" ",i+=s+(!n&&!a&&l!==""?`
225`:"")+sm(l,t),n=a}return i}S(t$,"foldString");function sm(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,a,o=0,s=0,l="";i=r.exec(e);)s=i.index,s-n>t&&(a=o>n?o:s,l+=`
226`+e.slice(n,a),n=a+1),o=s;return l+=`
227`,e.length-n>t&&o>n?l+=e.slice(n,o)+`
228`+e.slice(o+1):l+=e.slice(n),l.slice(1)}S(sm,"foldLine");function e$(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=Ka(e,n),i=Ke[r],!i&&is(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||HB(r);return t}S(e$,"escapeString");function r$(e,t,r){var i="",n=e.tag,a,o,s;for(a=0,o=r.length;a<o;a+=1)s=r[a],e.replacer&&(s=e.replacer.call(r,String(a),s)),(mi(e,t,s,!1,!1)||typeof s>"u"&&mi(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}S(r$,"writeFlowSequence");function lm(e,t,r,i){var n="",a=e.tag,o,s,l;for(o=0,s=r.length;o<s;o+=1)l=r[o],e.replacer&&(l=e.replacer.call(r,String(o),l)),(mi(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&mi(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=rf(e,t)),e.dump&&sc===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}S(lm,"writeBlockSequence");function i$(e,t,r){var i="",n=e.tag,a=Object.keys(r),o,s,l,c,h;for(o=0,s=a.length;o<s;o+=1)h="",i!==""&&(h+=", "),e.condenseFlow&&(h+='"'),l=a[o],c=r[l],e.replacer&&(c=e.replacer.call(r,l,c)),mi(e,t,l,!1,!1)&&(e.dump.length>1024&&(h+="? "),h+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),mi(e,t,c,!1,!1)&&(h+=e.dump,i+=
vendor: 5,499 bytes, lines 228-233
228h));e.tag=n,e.dump="{"+i+"}"}S(i$,"writeFlowMapping");function n$(e,t,r,i){var n="",a=e.tag,o=Object.keys(r),s,l,c,h,u,d;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new ur("sortKeys must be a boolean or a function");for(s=0,l=o.length;s<l;s+=1)d="",(!i||n!=="")&&(d+=rf(e,t)),c=o[s],h=r[c],e.replacer&&(h=e.replacer.call(r,c,h)),mi(e,t+1,c,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&sc===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,u&&(d+=rf(e,t)),mi(e,t+1,h,!0,u)&&(e.dump&&sc===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,n+=d));e.tag=a,e.dump=n||"{}"}S(n$,"writeBlockMapping");function cm(e,t,r){var i,n,a,o,s,l;for(n=r?e.explicitTypes:e.implicitTypes,a=0,o=n.length;a<o;a+=1)if(s=n[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(r?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,IB.call(s.represent)==="[object Function]")i=s.represent(t,l);else if(DB.call(s.represent,l))i=s.represent[l](t,l);else throw new ur("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}S(cm,"detectType");function mi(e,t,r,i,n,a,o){e.tag=null,e.dump=r,cm(e,r,!1)||cm(e,r,!0);var s=IB.call(e.dump),l=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var h=s==="[object Object]"||s==="[object Array]",u,d;if(h&&(u=e.duplicates.indexOf(r),d=u!==-1),(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&t>0)&&(n=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),s==="[object Object]")i&&Object.keys(e.dump).length!==0?(n$(e,t,e.dump,n),d&&(e.dump="&ref_"+u+e.dump)):(i$(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?lm(e,t-1,e.dump,n):lm(e,t,e.dump,n),d&&(e.dump="&ref_"+u+e.dump)):(r$(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&JB(e,e.dump,t,a,l);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ur("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}S(mi,"writeNode");function a$(e,t){var r=[],i=[],n,a;for(nf(e,r,i),n=0,a=i.length;n<a;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(a)}S(a$,"getDuplicateReferences");function nf(e,t,r){var i,n,a;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,a=e.length;n<a;n+=1)nf(e[n],t,r);else for(i=Object.keys(e),n=0,a=i.length;n<a;n+=1)nf(e[i[n]],t,r)}S(nf,"inspectNode");function cdt(e,t){t=t||{};var r=new UB(t);r.noRefs||a$(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),mi(r,0,i,!0,!0)?r.dump+`
229`:""}S(cdt,"dump$1");function hdt(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}S(hdt,"renamed");var udt=KO,fdt=qft.load;/*! Bundled license information:
230
231js-yaml/dist/js-yaml.mjs:
232  (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
233*/var qs=S((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),qe={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},hS={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function el(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=ne(e),t=ne(t);const[r,i]=[e.x,e.y],[n,a]=[t.x,t.y],o=n-r,s=a-i;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}S(el,"calculateDeltaAndAngle");var ne=S(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),ddt=S(e=>({x:S(function(t,r,i){let n=0;const a=ne(i[0]).x<ne(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(qe,e.arrowTypeStart)){const{angle:f,deltaX:y}=el(i[0],i[1]);n=qe[e.arrowTypeStart]*Math.cos(f)*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(qe,e.arrowTypeEnd)){const{angle:f,deltaX:y}=el(i[i.length-1],i[i.length-2]);n=qe[e.arrowTypeEnd]*Math.cos(f)*(y>=0?1:-1)}const o=Math.abs(ne(t).x-ne(i[i.length-1]).x),s=Math.abs(ne(t).y-ne(i[i.length-1]).y),l=Math.abs(ne(t).x-ne(i[0]).x),c=Math.abs(ne(t).y-ne(i[0]).y),h=qe[e.arrowTypeStart],u=qe[e.arrowTypeEnd],d=1;if(o<u&&o>0&&s<u){let f=u+d-o;f*=a==="right"?-1:1,n-=f}if(l<h&&l>0&&c<h){let f=h+d-l;f*=a==="right"?-1:1,n+=f}return ne(t).x+n},"x"),y:S(function(t,r,i){let n=0;const a=ne(i[0]).y<ne(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(qe,e.arrowTypeStart)){const{angle:f,deltaY:y}=el(i[0],i[1]);n=qe[e.arrowTypeStart]*Math.abs(Math.sin(f))*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(qe,e.arrowTypeEnd)){const{angle:f,deltaY:y}=el(i[i.length-1],i[i.length-2]);n=qe[e.arrowTypeEnd]*Math.abs(Math.sin(f))*(y>=0?1:-1)}const o=Math.abs(ne(t).y-ne(i[i.length-1]).y),s=Math.abs(ne(t).x-ne(i[i.length-1]).x),l=Math.abs(ne(t).y-ne(i[0]).y),c=Math.abs(ne(t).x-ne(i[0]).x),h=qe[e.arrowTypeStart],u=qe[e.arrowTypeEnd],d=1;if(o<u&&o>0&&s<u){let f=u+d-o;f*=a==="up"?-1:1,n-=f}if(l<h&&l>0&&c<h){let f=h+d-l;f*=a==="up"?-1:1,n+=f}return ne(t).y+n},"y")}),"getLineFunctionsWithOffset"),o$={},Be={};
233Object.defineProperty(Be,"__esModule",{value:!0});Be.BLANK_URL=Be.relativeFirstCharacters=Be.whitespaceEscapeCharsRegex=Be.urlSchemeRegex=Be.ctrlCharactersRegex=Be.htmlCtrlEntityRegex=Be.htmlEntitiesRegex=Be.invalidProtocolRegex=void 0;Be.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Be.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;Be.htmlCtrlEntityRegex=/&(newline|tab);/gi;Be.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Be.urlSchemeRegex=/^.+(:|&colon;)/gim;Be.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Be.relativeFirstCharacters=[".","/"];Be.BLANK_URL="about:blank";Object.defineProperty(o$,"__esModule",{value:!0});var pdt=o$.sanitizeUrl=vdt,We=Be;function gdt(e){return We.relativeFirstCharacters.indexOf(e[0])>-1}function ydt(e){var t=e.replace(We.ctrlCharactersRegex,"");return t.replace(We.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function mdt(e){return URL.canParse(e)}function uS(e){try{return decodeURIComponent(e)}catch{return e}}function vdt(e){if(!e)return We.BLANK_URL;var t,r=uS(e.trim());do r=ydt(r).replace(We.htmlCtrlEntityRegex,"").replace(We.ctrlCharactersRegex,"").replace(We.whitespaceEscapeCharsRegex,"").trim(),r=uS(r),t=r.match(We.ctrlCharactersRegex)||r.match(We.htmlEntitiesRegex)||r.match(We.htmlCtrlEntityRegex)||r.match(We.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return We.BLANK_URL;if(gdt(i))return i;var n=i.trimStart(),a=n.match(We.urlSchemeRegex);if(!a)return i;var o=a[0].toLowerCase().trim();if(We.invalidProtocolRegex.test(o))return We.BLANK_URL;var s=n.replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return s;if(o==="http:"||o==="https:"){if(!mdt(s))return We.BLANK_URL;var l=new URL(s);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return s}function bdt(e){return Array.isArray(e)}function Np(e){var r;if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){const i=e[Symbol.toStringTag];return i==null||!((r=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))!=null&&r.writable)?!1:e.toString()===`[object ${i}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function xdt(){}function s$(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Bc(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const l$="[object RegExp]",bb="[object String]",xb="[object Number]",Cb="[object Boolean]",wb="[object Arguments]",c$="[object Symbol]",h$="[object Date]",u$="[object Map]",f$="[object Set]",d$="[object Array]",p$="[object ArrayBuffer]",g$="[object Object]",y$="[object DataView]",m$="[object Uint8Array]",v$="[object Uint8ClampedArray]",b$="[object Uint16Array]",x$="[object Uint32Array]",C$="[object Int8Array]",w$="[object Int16Array]",S$="[object Int32Array]",k$="[object Float32Array]",T$="[object Float64Array]",fS=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}()||Function("return this")();function Sb(e){return typeof fS.Buffer<"u"&&fS.Buffer.isBuffer(e)}function Cdt(e){return Number.isSafeInteger(e)&&e>=0}function _$(e){return e!=null&&typeof e!="function"&&Cdt(e.length)}function wdt(e){return e==="__proto__"}function kd(e){return e==null||typeof e!="object"&&typeof e!="function"}function kb(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Sdt(e,t){return Za(e,void 0,e,new Map,t)}function Za(e,t,r,i=new Map,n=void 0){const a=n==null?void 0:n(e,t,r,i);if(a!==void 0)return a;if(kd(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){const o=new Array(e.length);i.set(e,o);for(let s=0;s<e.length;s++)o[s]=Za(e[s],s,r,i,n);return Object.hasOwn(e,"index")&&(o.index=e.index),Object.hasOwn(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){const o=new Map;i.set(e,o);for(const[s,l]of e)o.set(s,Za(l,s,r,i,n));return o}if(e instanceof Set){const o=new Set;i.set(e,o);for(const s of e)o.add(Za(s,void 0,r,i,n));return o}if(Sb(e))return e.subarray();if(kb(e)){const o=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,o);for(let s=0;s<e.length;s++)o[s]=Za(e[s],s,r,i,n);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return i.set(e,o),Dr(o,e,r,i,n),o}if(typeof File<"u"&&e instanceof File){const o=new File([e],e.name,{type:e.type});return i.set(e,o),Dr(o,e,r,i,n),o}if(typeof Blob<"u"&&e instanceof Blob){const o=new Blob([e],{type:e.type});return i.set(e,o),Dr(o,e,r,i,n),o}if(e instanceof Error){const o=structuredClone(e);return i.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,o.constructor=e.constructor,Dr(o,e,r,i,n),o}if(e instanceof Boolean){const o=new Boolean(e.valueOf());return i.set(e,o),Dr(o,e,r,i,n),o}if(e instanceof Number){const o=new Number(e.valueOf());return i.set(e,o),Dr(o,e,r,i,n),o}if(e instanceof String){const o=new String(e.valueOf());return i.set(e,o),Dr(o,e,r,i,n),o}if(typeof e=="object"&&kdt(e)){const o=Object.create(Object.getPrototypeOf(e));return i.set(e,o),Dr(o,e,r,i,n),o}return e}function Dr(e,t,r=e,i,n){const a=[...Object.keys(t),...s$(t)];for(let o=0;o<a.length;o++){const s=a[o],l=Object.getOwnPropertyDescriptor(e,s);(l==null||l.writable)&&(e[s]=Za(t[s],s,r,i,n))}}function kdt(e){switch(Bc(e)){case wb:case d$:case p$:case y$:case Cb:case h$:case k$:case T$:case C$:case w$:case S$:case u$:case xb:case g$:case l$:case f$:case bb:case c$:case m$:case v$:case b$:case x$:return!0;default:return!1}}function Tdt(e,t){return Sdt(e,(r,i,n,a)=>
233{if(typeof e=="object"){if(Bc(e)==="[object Object]"&&typeof e.constructor!="function"){const o={};return a.set(e,o),Dr(o,e,n,a),o}switch(Object.prototype.toString.call(e)){case xb:case bb:case Cb:{const o=new e.constructor(e==null?void 0:e.valueOf());return Dr(o,e),o}case wb:{const o={};return Dr(o,e),o.length=e.length,o[Symbol.iterator]=e[Symbol.iterator],o}default:return}}})}function dS(e){return Tdt(e)}function hm(e){return e!==null&&typeof e=="object"&&Bc(e)==="[object Arguments]"}function um(e){return typeof e=="object"&&e!==null}function _dt(e){return um(e)&&_$(e)}function $c(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");const r=function(...i){const n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);const o=e.apply(this,i);return r.cache=a.set(n,o)||a,o};return r.cache=new($c.Cache||Map),r}$c.Cache=Map;function ml(e){return kb(e)}function Adt(e){const t=e==null?void 0:e.constructor;return e===(typeof t=="function"?t.prototype:Object.prototype)}function O0t(e){if(kd(e))return e;const t=Bc(e);if(!Odt(e))return{};if(bdt(e)){const i=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(i.index=e.index,i.input=e.input),i}if(ml(e)){const i=e,n=i.constructor;return new n(i.buffer,i.byteOffset,i.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(t==="[object DataView]"){const i=e,n=i.buffer,a=i.byteOffset,o=i.byteLength,s=new ArrayBuffer(o),l=new Uint8Array(n,a,o);return new Uint8Array(s).set(l),new DataView(s)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){const i=e.constructor,n=new i(e.valueOf());return t==="[object String]"?$dt(n,e):zp(n,e),n}if(t==="[object Date]")return new Date(Number(e));if(t==="[object RegExp]"){const i=e,n=new RegExp(i.source,i.flags);return n.lastIndex=i.lastIndex,n}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(t==="[object Map]"){const i=e,n=new Map;return i.forEach((a,o)=>{n.set(o,a)}),n}if(t==="[object Set]"){const i=e,n=new Set;return i.forEach(a=>{n.add(a)}),n}if(t==="[object Arguments]"){const i=e,n={};return zp(n,i),n.length=i.length,n[Symbol.iterator]=i[Symbol.iterator],n}const r={};return Edt(r,e),zp(r,e),Bdt(r,e),r}function Odt(e){switch(Bc(e)){case wb:case d$:case p$:case y$:case Cb:case h$:case k$:case T$:case C$:case w$:case S$:case u$:case xb:case g$:case l$:case f$:case bb:case c$:case m$:case v$:case b$:case x$:return!0;default:return!1}}function zp(e,t){for(const r in t)Object.hasOwn(t,r)&&(e[r]=t[r])}function Bdt(e,t){const r=Object.getOwnPropertySymbols(t);for(let i=0;i<r.length;i++){const n=r[i];Object.prototype.propertyIsEnumerable.call(t,n)&&(e[n]=t[n])}}function $dt(e,t){const r=t.valueOf().length;for(const i in t)Object.hasOwn(t,i)&&(Number.isNaN(Number(i))||Number(i)>=r)&&(e[i]=t[i])}function Edt(e,t){const r=Object.getPrototypeOf(t);r!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,r)}function Pdt(e){if(kd(e))return e;if(Array.isArray(e)||kb(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);const r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){const i=new r(e);return i.lastIndex=e.lastIndex,i}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let i;return e instanceof AggregateError?i=new r(e.errors,e.message,{cause:e.cause}):i=new r(e.message,{cause:e.cause}),i.stack=e.stack,Object.assign(i,e),i}return typeof File<"u"&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e=="object"?Object.assign(Object.create(t),e):e}function Ldt(e,...t){const r=t.slice(0,-1),i=t[t.length-1];let n=e;for(let a=0;a<r.length;a++){const o=r[a];n=Th(n,o,i,new Map)}return n}function Th(e,t,r,i){if(kd(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return Pdt(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let a=0;a<t.length;a++)t[a]=t[a]??void 0}const n=[...Object.keys(t),...s$(t)];for(let a=0;a<n.length;a++){const o=n[a];if(wdt(o))continue;let s=t[o],l=e[o];if(hm(s)&&(s={...s}),hm(l)&&(l={...l}),Sb(s)&&(s=dS(s)),Array.isArray(s))if(Array.isArray(l)){const h=[],u=Reflect.ownKeys(l);for(let d=0;d<u.length;d++){const f=u[d];h[f]=l[f]}l=h}else if(_dt(l)){const h=[];for(let u=0;u<l.length;u++)h[u]=l[u];l=h}else l=[];const c=r(l,s,o,e,t,i);c!==void 0?e[o]=c:Array.isArray(s)||um(l)&&um(s)&&(Np(l)||Np(s)||ml(l)||ml(s))?e[o]=Th(l,s,r,i):l==null&&Np(s)?e[o]=Th({},s,r,i):l==null&&ml(s)?e[o]=dS(s):(l===void 0||s!==void 0)&&(e[o]=s)}return e}function Mdt(e,...t){return Ldt(e,...t,xdt)}function pS(e){if(e==null)return!0;
vendor: 20,829 bytes, lines 233-234
233if(_$(e))return typeof e.splice!="function"&&typeof e!="string"&&!Sb(e)&&!ml(e)&&!hm(e)?!1:e.length===0;if(typeof e=="object"){if(e instanceof Map||e instanceof Set)return e.size===0;const t=Object.keys(e);return Adt(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}var Fdt="​",Idt={curveBasis:Ih,curveBasisClosed:Dk,curveBasisOpen:jk,curveBumpX:Nm,curveBumpY:zm,curveBundle:_R,curveCardinalClosed:AR,curveCardinalOpen:OR,curveCardinal:zk,curveCatmullRomClosed:BR,curveCatmullRomOpen:$R,curveCatmullRom:qk,curveLinear:mn,curveLinearClosed:Gk,curveMonotoneX:Gm,curveMonotoneY:Vm,curveNatural:Xm,curveStep:Km,curveStepAfter:Qm,curveStepBefore:Zm},Ddt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Rdt=S(function(e,t){const r=A$(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const o=r.map(s=>s.args);Yu(o),i=Se(i,[...o])}else i=r.args;if(!i)return;let n=ab(e,t);const a="config";return i[a]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),A$=S(function(e,t=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${Ddt.source})(?=[}][%]{2}).*
234`,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),X.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const o=[];for(;(a=gl.exec(e))!==null;)if(a.index===gl.lastIndex&&gl.lastIndex++,a&&!t||t&&((r=a[1])!=null&&r.match(t))||t&&((i=a[2])!=null&&i.match(t))){const s=a[1]?a[1]:a[2],l=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:s,args:l})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(n){return X.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),jdt=S(function(e){return e.replace(gl,"")},"removeDirectives"),Ndt=S(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Tb(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Idt[r]??t}S(Tb,"interpolateToCurve");function O$(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?pdt(r):r}S(O$,"formatUrl");var zdt=S((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let a=window;for(let o=0;o<i;o++)if(a=a[r[o]],!a){X.error(`Function name: ${e} not found in window`);return}a[n](...t)},"runFunc");function _b(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}S(_b,"distance");function B$(e){let t,r=0;e.forEach(n=>{r+=_b(n,t),t=n});const i=r/2;return Ab(e,i)}S(B$,"traverseEdge");function $$(e){return e.length===1?e[0]:B$(e)}S($$,"calcLabelPosition");var gS=S((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Ab=S((e,t)=>{let r,i=t;for(const n of e){if(r){const a=_b(n,r);if(a===0)return r;if(a<i)i-=a;else{const o=i/a;if(o<=0)return r;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:gS((1-o)*r.x+o*n.x,5),y:gS((1-o)*r.y+o*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Wdt=S((e,t,r)=>{X.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=Ab(t,25),a=e?10:5,o=Math.atan2(t[0].y-n.y,t[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(t[0].x+n.x)/2,s.y=-Math.cos(o)*a+(t[0].y+n.y)/2,s},"calcCardinalityPosition");function E$(e,t,r){const i=structuredClone(r);X.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,a=Ab(i,n),o=10+e*.5,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):t==="end_right"?(l.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):t==="end_left"?(l.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(l.x=Math.sin(s)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2),l}S(E$,"calcTerminalLabelPosition");function P$(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}S(P$,"getStylesFromArray");var yS=0,qdt=S(()=>(yS++,"id-"+Math.random().toString(36).substr(2,12)+"-"+yS),"generateId");function L$(e){let t="";const r="0123456789abcdef",i=r.length;for(let n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*i));return t}S(L$,"makeRandomHex");var Hdt=S(e=>L$(e.length),"random"),Udt=S(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Ydt=S(function(e,t){const r=t.text.replace(Ac.lineBreakRegex," "),[,i]=Td(t.fontSize),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",i),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);const a=n.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),n},"drawSimpleText"),Gdt=$c((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Ac.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let a="";return i.forEach((o,s)=>{const l=Ki(`${o} `,r),c=Ki(a,r);if(l>t){const{hyphenatedStrings:d,remainingWord:f}=Vdt(o,t,"-",r);n.push(a,...d),a=f}else c+l>=t?(n.push(a),a=o):a=[a,o].filter(Boolean).join(" ");s+1===i.length&&n.push(a)}),n.filter(o=>o!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Vdt=$c((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...e],a=[];let o="";return n.forEach((s,l)=>{const c=`${o}${s}`;if(Ki(c,i)>=t){const u=l+1,d=n.length===u,f=`${c}${r}`;a.push(d?c:f),o=""}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function M$(e,t){return Ob(e,t).height}S(M$,"calculateTextHeight");function Ki(e,t){return Ob(e,t).width}S(Ki,"calculateTextWidth");var Ob=$c((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,a]=Td(r),o=["sans-serif",i],s=e.split(Ac.lineBreakRegex),l=[],c=St("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const d of o){let f=0;const y={width:0,height:0,lineHeight:0};for(const p of s){const g=Udt();g.text=p||Fdt;const m=Ydt(h,g).style("font-size",a).style("font-weight",n).style("font-family",d),v=(m._groups||m)[0][0].getBBox();if(v.width===0&&v.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,v.width)),f=Math.round(v.height),y.height+=f,y.lineHeight=Math.round(Math.max(y.lineHeight,f))}l.push(y)}h.remove();const u=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[u]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Co,Xdt=(Co=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},S(Co,"InitIDGenerator"),Co),oh,Kdt=S(function(e){return oh=oh||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),oh.innerHTML=e,unescape(oh.textContent)},"entityDecode");function Bb(e){return"str"in e}S(Bb,"isDetailedError");var Zdt=S((e,t,r,i)=>{var a;if(!i)return;const n=(a=e.node())==null?void 0:a.getBBox();n&&e.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",t)},"insertTitle"),Td=S(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function $b(e,t){return Mdt({},e,t)}S($b,"cleanAndMerge");var Hr={assignWithDepth:Se,wrapLabel:Gdt,calculateTextHeight:M$,calculateTextWidth:Ki,calculateTextDimensions:Ob,cleanAndMerge:$b,detectInit:Rdt,detectDirective:A$,isSubstringInArray:Ndt,interpolateToCurve:Tb,calcLabelPosition:$$,calcCardinalityPosition:Wdt,calcTerminalLabelPosition:E$,formatUrl:O$,getStylesFromArray:P$,generateId:qdt,random:Hdt,runFunc:zdt,entityDecode:Kdt,insertTitle:Zdt,isLabelCoordinateInPath:F$,parseFontSize:Td,InitIDGenerator:Xdt},Qdt=S(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),pa=S(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),B0t=S((e,t,{counter:r=0,prefix:i,suffix:n},a)=>a||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function Ee(e){return e??null}S(Ee,"handleUndefinedAttr");function F$(e,t){const r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return n.includes(r.toString())||n.includes(i.toString())}S(F$,"isLabelCoordinateInPath");var Eb=S(({flowchart:e})=>{var n,a;const t=((n=e==null?void 0:e.subGraphTitleMargin)==null?void 0:n.top)??0,r=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins");async function I$(e,t){const r=e.getElementsByTagName("img");if(!r||r.length===0)return;const i=t.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(n=>new Promise(a=>{function o(){if(n.style.display="flex",n.style.flexDirection="column",i){const s=jt().fontSize?jt().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[c=hO.fontSize]=Td(s),h=c*l+"px";n.style.minWidth=h,n.style.maxWidth=h}else n.style.width="100%";a(n)}S(o,"setupImage"),setTimeout(()=>{n.complete&&o()}),n.addEventListener("error",o),n.addEventListener("load",o)})))}S(I$,"configureLabelImages");var Jdt=S(e=>{const{handDrawnSeed:t}=jt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),ws=S(e=>{const t=tpt([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),tpt=S(e=>{const t=new Map;return e.forEach(r=>{const[i,n]=r.split(":");t.set(i.trim(),n==null?void 0:n.trim())}),t},"styles2Map"),D$=S(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),ft=S(e=>{const{stylesArray:t}=ws(e),r=[],i=[],n=[],a=[];return t.forEach(o=>{const s=o[0];D$(s)?r.push(o.join(":")+" !important"):(i.push(o.join(":")+" !important"),s.includes("stroke")&&n.push(o.join(":")+" !important"),s==="fill"&&a.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:a}},"styles2String"),ut=S((e,t)=>{var l;const{themeVariables:r,handDrawnSeed:i}=jt(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:o}=ws(e);return Object.assign({roughness:.7,fill:o.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||n,seed:i,strokeWidth:((l=o.get("stroke-width"))==null?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:ept(o.get("stroke-dasharray"))},t)},"userNodeOverrides"),ept=S(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const n=isNaN(t[0])?0:t[0];return[n,n]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray");const rpt=Object.freeze({left:0,top:0,width:16,height:16}),af=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),R$=Object.freeze({...rpt,...af}),ipt=Object.freeze({...R$,body:"",hidden:!1}),npt=Object.freeze({width:null,height:null}),apt=Object.freeze({...npt,...af}),opt=(e,t,r,i="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const s=n.pop(),l=n.pop(),c={provider:n.length>0?n[0]:i,prefix:l,name:s};return Wp(c)?c:null}const a=n[0],o=a.split("-");if(o.length>1){const s={provider:i,prefix:o.shift(),name:o.join("-")};return Wp(s)?s:null}if(r&&i===""){const s={provider:i,prefix:"",name:a};return Wp(s,r)?s:null}return null},Wp=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function spt(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function mS(e,t){const r=spt(e,t);for(const i in ipt)i in af?i in e&&!(i in r)&&(r[i]=af[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function lpt(e,t){const r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function a(o){if(r[o])return n[o]=[];if(!(o in n)){n[o]=null;const s=i[o]&&i[o].parent,l=s&&a(s);l&&(n[o]=[s].concat(l))}return n[o]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(a),n}function vS(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let a={};function o(s){a=mS(i[s]||n[s],a)}return o(t),r.forEach(o),mS(e,a)}function cpt(e,t){if(e.icons[t])return vS(e,t,[]);const r=lpt(e,[t])[t];return r?vS(e,t,r):null}const hpt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,upt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function bS(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(hpt);if(i===null||!i.length)return e;const n=[];let a=i.shift(),o=upt.test(a);for(;;){if(o){const s=parseFloat(a);isNaN(s)?n.push(a):n.push(Math.ceil(s*t*r)/r)}else n.push(a);if(a=i.shift(),a===void 0)return n.join("");o=!o}}function fpt(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const n=e.indexOf(">",i),a=e.indexOf("</"+t);if(n===-1||a===-1)break;const o=e.indexOf(">",a);if(o===-1)break;r+=e.slice(n+1,a).trim(),e=e.slice(0,i).trim()+e.slice(o+1)}return{defs:r,content:e}}function dpt(e,t){return e?"<defs>"+e+"</defs>"+t:t}function ppt(e,t,r){const i=fpt(e);return dpt(i.defs,t+i.content+r)}const gpt=e=>e==="unset"||e==="undefined"||e==="none";function ypt(e,t){const r={...R$,...e},i={...apt,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(p=>{const g=[],m=p.hFlip,v=p.vFlip;let x=p.rotate;m?v?x+=2:(g.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),g.push("scale(-1 1)"),n.top=n.left=0):v&&(g.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),g.push("scale(1 -1)"),n.top=n.left=0);let w;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:w=n.height/2+n.top,g.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:g.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:w=n.width/2+n.left,g.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}x%2===1&&(n.left!==n.top&&(w=n.left,n.left=n.top,n.top=w),n.width!==n.height&&(w=n.width,n.width=n.height,n.height=w)),g.length&&(a=ppt(a,'<g transform="'+g.join(" ")+'">',"</g>"))});const o=i.width,s=i.height,l=n.width,c=n.height;let h,u;o===null?(u=s===null?"1em":s==="auto"?c:s,h=bS(u,l/c)):(h=o==="auto"?l:o,u=s===null?bS(h,c/l):s==="auto"?c:s);const d={},f=(p,g)=>{gpt(g)||(d[p]=g.toString())};f("width",h),f("height",u);const y=[n.left,n.top,l,c];return d.viewBox=y.join(" "),{attributes:d,viewBox:y,body:a}}const mpt=/\sid="(\S+)"/g,xS=new Map;function vpt(e){e=e.replace(/[0-9]+$/,"")||"a";const t=xS.get(e)||0;return xS.set(e,t+1),t?`${e}${t}`:e}function bpt(e){const t=[];let r;for(;r=mpt.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(n=>{const a=vpt(n),o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function xpt(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function Pb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Aa=Pb();function j$(e){Aa=e}var vl={exec:()=>null};function zt(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(n,a)=>{let o=typeof a=="string"?a:a.source;return o=o.replace(ir.caret,"$1"),r=r.replace(n,o),i},getRegex:()=>new RegExp(r,t)};return i}var Cpt=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ir={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},wpt=/^(?:[ \t]*(?:\n|$))+/,Spt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,kpt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ec=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Tpt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Lb=/(?:[*+-]|\d{1,9}[.)])/,N$=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,z$=zt(N$).replace(/bull/g,Lb).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),_pt=zt(N$).replace(/bull/g,Lb).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Mb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Apt=/^[^\n]+/,Fb=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Opt=zt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Fb).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Bpt=zt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Lb).getRegex(),_d="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ib=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$pt=zt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
234)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",Ib).replace("tag",_d).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),W$=zt(Mb).replace("hr",Ec).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_d).getRegex(),Ept=zt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",W$).getRegex(),Db={blockquote:Ept,code:Spt,def:Opt,fences:kpt,heading:Tpt,hr:Ec,html:$pt,lheading:z$,list:Bpt,newline:wpt,paragraph:W$,table:vl,text:Apt},CS=zt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ec).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_d).getRegex(),Ppt={...Db,lheading:_pt,table:CS,paragraph:zt(Mb).replace("hr",Ec).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",CS).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_d).getRegex()},Lpt={...Db,html:zt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ib).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:vl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:zt(Mb).replace("hr",Ec).replace("heading",` *#{1,6} *[^
235]`).replace("lheading",z$).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Mpt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Fpt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,q$=/^( {2,}|\\)\n(?!\s*$)/,Ipt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ad=/[\p{P}\p{S}]/u,Rb=/[\s\p{P}\p{S}]/u,H$=/[^\s\p{P}\p{S}]/u,Dpt=zt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Rb).getRegex(),U$=/(?!~)[\p{P}\p{S}]/u,Rpt=/(?!~)[\s\p{P}\p{S}]/u,jpt=/(?:[^\s\p{P}\p{S}]|~)/u,Npt=zt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Cpt?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Y$=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,zpt=zt(Y$,"u").replace(/punct/g,Ad).getRegex(),Wpt=zt(Y$,"u").replace(/punct/g,U$).getRegex(),G$="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",qpt=zt(G$,"gu").replace(/notPunctSpace/g,H$).replace(/punctSpace/g,Rb).replace(/punct/g,Ad).getRegex(),Hpt=zt(G$,"gu").replace(/notPunctSpace/g,jpt).replace(/punctSpace/g,Rpt).replace(/punct/g,U$).getRegex(),Upt=zt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,H$).replace(/punctSpace/g,Rb).replace(/punct/g,Ad).getRegex(),Ypt=zt(/\\(punct)/,"gu").replace(/punct/g,Ad).getRegex(),Gpt=zt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),Vpt=zt(Ib).replace("(?:-->|$)","-->").getRegex(),Xpt=zt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Vpt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),of=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Kpt=zt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",of).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),V$=zt(/^!?\[(label)\]\[(ref)\]/).replace("label",of).replace("ref",Fb).getRegex(),X$=zt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Fb).getRegex(),Zpt=zt("reflink|nolink(?!\\()","g").replace("reflink",V$).replace("nolink",X$).getRegex(),wS=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,jb={_backpedal:vl,anyPunctuation:Ypt,autolink:Gpt,blockSkip:Npt,br:q$,code:Fpt,del:vl,emStrongLDelim:zpt,emStrongRDelimAst:qpt,emStrongRDelimUnd:Upt,escape:Mpt,link:Kpt,nolink:X$,punctuation:Dpt,reflink:V$,reflinkSearch:Zpt,tag:Xpt,text:Ipt,url:vl},Qpt={...jb,link:zt(/^!?\[(label)\]\((.*?)\)/).replace("label",of).getRegex(),reflink:zt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",of).getRegex()},fm={...jb,emStrongRDelimAst:Hpt,emStrongLDelim:Wpt,url:zt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",wS).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:zt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",wS).getRegex()},Jpt={...fm,br:zt(q$).replace("{2,}","*").getRegex(),text:zt(fm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},sh={normal:Db,gfm:Ppt,pedantic:Lpt},Hs={normal:jb,gfm:fm,breaks:Jpt,pedantic:Qpt},tgt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},SS=e=>tgt[e];function li(e,t){if(t){if(ir.escapeTest.test(e))return e.replace(ir.escapeReplace,SS)}else if(ir.escapeTestNoEncode.test(e))return e.replace(ir.escapeReplaceNoEncode,SS);return e}function kS(e){try{e=encodeURI(e).replace(ir.percentDecode,"%")}catch{return null}return e}function TS(e,t){var a;let r=e.replace(ir.findPipe,(o,s,l)=>{let c=!1,h=s;for(;--h>=0&&l[h]==="\\";)c=!c;return c?"|":" |"}),i=r.split(ir.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(ir.slashPipe,"|");return i}function Us(e,t,r){let i=e.length;if(i===0)return"";let n=0;for(;n<i&&e.charAt(i-n-1)===t;)n++;return e.slice(0,i-n)}function egt(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function _S(e,t,r,i,n){let a=t.href,o=t.title||null,s=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:o,text:s,tokens:i.inl
vendor: 35,376 bytes, lines 235-303
235ineTokens(s)};return i.state.inLink=!1,l}function rgt(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
236`).map(a=>{let o=a.match(r.other.beginningSpace);if(o===null)return a;let[s]=o;return s.length>=n.length?a.slice(n.length):a}).join(`
237`)}var sf=class{constructor(t){Vt(this,"options");Vt(this,"rules");Vt(this,"lexer");this.options=t||Aa}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Us(i,`
238`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],n=rgt(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let n=Us(i,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(i=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Us(r[0],`
239`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=Us(r[0],`
240`).split(`
241`),n="",a="",o=[];for(;i.length>0;){let s=!1,l=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))l.push(i[c]),s=!0;else if(!s)l.push(i[c]);else break;i=i.slice(c);let h=l.join(`
242`),u=h.replace(this.rules.other.blockquoteSetextReplace,`
243    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
244${h}`:h,a=a?`${a}
245${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,o,!0),this.lexer.state.top=d,i.length===0)break;let f=o.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let y=f,p=y.raw+`
246`+i.join(`
247`),g=this.blockquote(p);o[o.length-1]=g,n=n.substring(0,n.length-y.raw.length)+g.raw,a=a.substring(0,a.length-y.text.length)+g.text;break}else if((f==null?void 0:f.type)==="list"){let y=f,p=y.raw+`
248`+i.join(`
249`),g=this.list(p);o[o.length-1]=g,n=n.substring(0,n.length-f.raw.length)+g.raw,a=a.substring(0,a.length-y.raw.length)+g.raw,i=p.substring(o.at(-1).raw.length).split(`
250`);continue}}return{type:"blockquote",raw:n,tokens:o,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),n=i.length>1,a={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let o=this.rules.other.listItemRegex(i),s=!1;for(;t;){let c=!1,h="",u="";if(!(r=o.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let d=r[2].split(`
251`,1)[0].replace(this.rules.other.listReplaceTabs,v=>" ".repeat(3*v.length)),f=t.split(`
252`,1)[0],y=!d.trim(),p=0;if(this.options.pedantic?(p=2,u=d.trimStart()):y?p=r[1].length+1:(p=r[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,u=d.slice(p),p+=r[1].length),y&&this.rules.other.blankLine.test(f)&&(h+=f+`
253`,t=t.substring(f.length+1),c=!0),!c){let v=this.rules.other.nextBulletRegex(p),x=this.rules.other.hrRegex(p),w=this.rules.other.fencesBeginRegex(p),b=this.rules.other.headingBeginRegex(p),C=this.rules.other.htmlBeginRegex(p);for(;t;){let k=t.split(`
254`,1)[0],T;if(f=k,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting,"  "),T=f):T=f.replace(this.rules.other.tabCharGlobal,"    "),w.test(f)||b.test(f)||C.test(f)||v.test(f)||x.test(f))break;if(T.search(this.rules.other.nonSpaceChar)>=p||!f.trim())u+=`
255`+T.slice(p);else{if(y||d.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||w.test(d)||b.test(d)||x.test(d))break;u+=`
256`+f}!y&&!f.trim()&&(y=!0),h+=k+`
257`,t=t.substring(k.length+1),d=T.slice(p)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(s=!0));let g=null,m;this.options.gfm&&(g=this.rules.other.listIsTask.exec(u),g&&(m=g[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:h,task:!!g,checked:m,loose:!1,text:u,tokens:[]}),a.raw+=h}let l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c=0;c<a.items.length;c++)if(this.lexer.state.top=!1,a.items[c].tokens=this.lexer.blockTokens(a.items[c].text,[]),!a.loose){let h=a.items[c].tokens.filter(d=>d.type==="space"),u=h.length>0&&h.some(d=>this.rules.other.anyLine.test(d.raw));a.loose=u}if(a.loose)for(let c=0;c<a.items.length;c++)a.items[c].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:n,title:a}}}table(t){var s;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=TS(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(s=r[3])!=null&&s.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
258`):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let l of n)this.rules.other.tableAlignRight.test(l)?o.align.push("right"):this.rules.other.tableAlignCenter.test(l)?o.align.push("center"):this.rules.other.tableAlignLeft.test(l)?o.align.push("left"):o.align.push(null);for(let l=0;l<i.length;l++)o.header.push({text:i[l],tokens:this.lexer.inline(i[l]),header:!0,align:o.align[l]});for(let l of a)o.rows.push(TS(l,o.header.length).map((c,h)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:o.align[h]})));return o}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
259`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let o=Us(i.slice(0,-1),"\\");if((i.length-o.length)%2===0)return}else{let o=egt(r[2],"()");if(o===-2)return;if(o>-1){let s=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,s).trim(),r[3]=""}}let n=r[2],a="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(n);o&&(n=o[1],a=o[3])}else a=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?n=n.slice(1):n=n.slice(1,-1)),_S(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let n=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[n.toLowerCase()];if(!a){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return _S(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...n[0]].length-1,o,s,l=a,c=0,h=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+a);(n=h.exec(r))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(s=[...o].length,n[3]||n[4]){l+=s;continue}else if((n[5]||n[6])&&a%3&&!((a+s)%3)){c+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l+c);let u=[...n[0]][0].length,d=t.slice(0,a+n.index+u+s);if(Math.min(a,s)%2){let y=d.slice(1,-1);return{type:"em",raw:d,text:y,tokens:this.lexer.inlineTokens(y)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,n;return r[2]==="@"?(i=r[1],n="mailto:"+i):(i=r[1],n=i),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let n,a;if(r[2]==="@")n=r[0],a="mailto:"+n;else{let o;do o=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(o!==r[0]);n=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},zr=class dm{constructor(t){Vt(this,"tokens");Vt(this,"options");Vt(this,"state");Vt(this,"tokenizer");Vt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Aa,this.options.tokenizer=this.options.tokenizer||new sf,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:ir,block:sh.normal,inline:Hs.normal};this.options.pedantic?(r.block=sh.pedantic,r.inline=Hs.pedantic):this.options.gfm&&(r.block=sh.gfm,this.options.breaks?r.inline=Hs.breaks:r.inline=Hs.gfm),this.tokenizer.rules=r}static get rules(){return{block:sh,inline:Hs}}static lex(t,r){return new dm(r).lex(t)}static lexInline(t,r){return new dm(r).inlineTokens(t)}lex(t){t=t.replace(ir.carriageReturn,`
260`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var n,a,o;for(this.options.pedantic&&(t=t.replace(ir.tabCharGlobal,"    ").replace(ir.spaceLine,""));t;){let s;if((a=(n=this.options.extensions)==null?void 0:n.block)!=null&&a.some(c=>(s=c.call({lexer:this},t,r))?(t=t.substring(s.raw.length),r.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let c=r.at(-1);s.raw.length===1&&c!==void 0?c.raw+=`
261`:r.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
262`)?"":`
263`)+s.raw,c.text+=`
264`+s.text,this.inlineQueue.at(-1).src=c.text):r.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
265`)?"":`
266`)+s.raw,c.text+=`
267`+s.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},r.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),r.push(s);continue}let l=t;if((o=this.options.extensions)!=null&&o.startBlock){let c=1/0,h=t.slice(1),u;this.options.extensions.startBlock.forEach(d=>{u=d.call({lexer:this},h),typeof u=="number"&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){let c=r.at(-1);i&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
268`)?"":`
269`)+s.raw,c.text+=`
270`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(s),i=l.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
271`)?"":`
272`)+s.raw,c.text+=`
273`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(s);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var l,c,h,u,d;let i=t,n=null;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)f.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=n[2]?n[2].length:0,i=i.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((c=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:c.call({lexer:this},i))??i;let o=!1,s="";for(;t;){o||(s=""),o=!1;let f;if((u=(h=this.options.extensions)==null?void 0:h.inline)!=null&&u.some(p=>(f=p.call({lexer:this},t,r))?(t=t.substring(f.raw.length),r.push(f),!0):!1))continue;if(f=this.tokenizer.escape(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.tag(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.link(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(f.raw.length);let p=r.at(-1);f.type==="text"&&(p==null?void 0:p.type)==="text"?(p.raw+=f.raw,p.text+=f.text):r.push(f);continue}if(f=this.tokenizer.emStrong(t,i,s)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.codespan(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.br(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.del(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.autolink(t)){t=t.substring(f.raw.length),r.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(t))){t=t.substring(f.raw.length),r.push(f);continue}let y=t;if((d=this.options.extensions)!=null&&d.startInline){let p=1/0,g=t.slice(1),m;this.options.extensions.startInline.forEach(v=>{m=v.call({lexer:this},g),typeof m=="number"&&m>=0&&(p=Math.min(p,m))}),p<1/0&&p>=0&&(y=t.substring(0,p+1))}if(f=this.tokenizer.inlineText(y)){t=t.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(s=f.raw.slice(-1)),o=!0;let p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=f.raw,p.text+=f.text):r.push(f);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return r}},lf=class{constructor(t){Vt(this,"options");Vt(this,"parser");this.options=t||Aa}space(t){return""}code({text:t,lang:r,escaped:i}){var o;let n=(o=(r||"").match(ir.notSpaceStart))==null?void 0:o[0],a=t.replace(ir.endingNewline,"")+`
274`;return n?'<pre><code class="language-'+li(n)+'">'+(i?a:li(a,!0))+`</code></pre>
275`:"<pre><code>"+(i?a:li(a,!0))+`</code></pre>
276`}blockquote({tokens:t}){return`<blockquote>
277${this.parser.parse(t)}</blockquote>
278`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
279`}hr(t){return`<hr>
280`}list(t){let r=t.ordered,i=t.start,n="";for(let s=0;s<t.items.length;s++){let l=t.items[s];n+=this.listitem(l)}let a=r?"ol":"ul",o=r&&i!==1?' start="'+i+'"':"";return"<"+a+o+`>
281`+n+"</"+a+`>
282`}listitem(t){var i;let r="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+li(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
283`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
284`}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let n="";for(let a=0;a<t.rows.length;a++){let o=t.rows[a];i="";for(let s=0;s<o.length;s++)i+=this.tablecell(o[s]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
285<thead>
286`+r+`</thead>
287`+n+`</table>
288`}tablerow({text:t}){return`<tr>
289${t}</tr>
290`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
291`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${li(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let n=this.parser.parseInline(i),a=kS(t);if(a===null)return n;t=a;let o='<a href="'+t+'"';return r&&(o+=' title="'+li(r)+'"'),o+=">"+n+"</a>",o}image({href:t,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let a=kS(t);if(a===null)return li(i);t=a;let o=`<img src="${t}" alt="${i}"`;return r&&(o+=` title="${li(r)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:li(t.text)}},Nb=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Wr=class pm{constructor(t){Vt(this,"options");Vt(this,"renderer");Vt(this,"textRenderer");this.options=t||Aa,this.options.renderer=this.options.renderer||new lf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Nb}static parse(t,r){return new pm(r).parse(t)}static parseInline(t,r){return new pm(r).parseInline(t)}parse(t,r=!0){var n,a;let i="";for(let o=0;o<t.length;o++){let s=t[o];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[s.type]){let c=s,h=this.options.extensions.renderers[c.type].call({parser:this},c);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=h||"";continue}}let l=s;switch(l.type){case"space":{i+=this.renderer.space(l);continue}case"hr":{i+=this.renderer.hr(l);continue}case"heading":{i+=this.renderer.heading(l);continue}case"code":{i+=this.renderer.code(l);continue}case"table":{i+=this.renderer.table(l);continue}case"blockquote":{i+=this.renderer.blockquote(l);continue}case"list":{i+=this.renderer.list(l);continue}case"html":{i+=this.renderer.html(l);continue}case"def":{i+=this.renderer.def(l);continue}case"paragraph":{i+=this.renderer.paragraph(l);continue}case"text":{let c=l,h=this.renderer.text(c);for(;o+1<t.length&&t[o+1].type==="text";)c=t[++o],h+=`
292`+this.renderer.text(c);r?i+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):i+=h;continue}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}parseInline(t,r=this.renderer){var n,a;let i="";for(let o=0;o<t.length;o++){let s=t[o];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[s.type]){let c=this.options.extensions.renderers[s.type].call({parser:this},s);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=c||"";continue}}let l=s;switch(l.type){case"escape":{i+=r.text(l);break}case"html":{i+=r.html(l);break}case"link":{i+=r.link(l);break}case"image":{i+=r.image(l);break}case"strong":{i+=r.strong(l);break}case"em":{i+=r.em(l);break}case"codespan":{i+=r.codespan(l);break}case"br":{i+=r.br(l);break}case"del":{i+=r.del(l);break}case"text":{i+=r.text(l);break}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}},dh,rl=(dh=class{constructor(t){Vt(this,"options");Vt(this,"block");this.options=t||Aa}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?zr.lex:zr.lexInline}provideParser(){return this.block?Wr.parse:Wr.parseInline}},Vt(dh,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Vt(dh,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),dh),igt=class{constructor(...t){Vt(this,"defaults",Pb());Vt(this,"options",this.setOptions);Vt(this,"parse",this.parseMarkdown(!0));Vt(this,"parseInline",this.parseMarkdown(!1));Vt(this,"Parser",Wr);Vt(this,"Renderer",lf);Vt(this,"TextRenderer",Nb);Vt(this,"Lexer",zr);Vt(this,"Tokenizer",sf);Vt(this,"Hooks",rl);this.use(...t)}walkTokens(t,r){var n,a;let i=[];for(let o of t)switch(i=i.concat(r.call(this,o)),o.type){case"table":{let s=o;for(let l of s.header)i=i.concat(this.walkTokens(l.tokens,r));for(let l of s.rows)for(let c of l)i=i.concat(this.walkTokens(c.tokens,r));break}case"list":{let s=o;i=i.concat(this.walkTokens(s.items,r));break}default:{let s=o;(a=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&a[s.type]?this.defaults.extensions.childTokens[s.type].forEach(l=>{let c=s[l].flat(1/0);i=i.concat(this.walkTokens(c,r))}):s.tokens&&(i=i.concat(this.walkTokens(s.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let o=r.renderers[a.name];o?r.renderers[a.name]=function(...s){let l=a.renderer.apply(this,s);return l===!1&&(l=o.apply(this,s)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=r[a.level];o?o.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){let a=this.defaults.renderer||new lf(this.defaults);for(let o in i.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let s=o,l=i.renderer[s],c=a[s];a[s]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u||""}}n.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new sf(this.defaults);for(let o in i.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let s=o,l=i.tokenizer[s],c=a[s];a[s]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new rl;for(let o in i.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let s=o,l=i.hooks[s],c=a[s];rl.passThroughHooks.has(o)?a[s]=h=>{if(this.defaults.async&&rl.passThroughHooksRespectAsync.has(o))return(async()=>{let d=await l.call(a,h);return c.call(a,d)})();let u=l.call(a,h);return c.call(a,u)}:a[s]=(...h)=>{if(this.defaults.async)return(async()=>{let d=await l.apply(a,h);return d===!1&&(d=await c.apply(a,h)),d})();let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,o=i.walkTokens;n.walkTokens=function(s){let l=[];return l.push(o.call(this,s)),a&&(l=l.concat(a.call(this,s))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return zr.lex(t,r??this.defaults)}parser(t,r){return Wr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let n={...i},a={...this.defaults,...n},o=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(r):r,l=await(a.hooks?await a.hooks.provideLexer():t?zr.lex:zr.lexInline)(s,a),c=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let h=await(a.hooks?await a.hooks.provideParser():t?Wr.parse:Wr.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(h):h})().catch(o);try{a.hooks&&(r=a.hooks.preprocess(r));let s=(a.hooks?a.hooks.provideLexer():t?zr.lex:zr.lexInline)(r,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let l=(a.hooks?a.hooks.provideParser():t?Wr.parse:Wr.parseInline)(s,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(s){return o(s)}}}onError(t,r){return i=>{if(i.message+=`
293Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+li(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},ga=new igt;function Ht(e,t){return ga.parse(e,t)}Ht.options=Ht.setOptions=function(e){return ga.setOptions(e),Ht.defaults=ga.defaults,j$(Ht.defaults),Ht};Ht.getDefaults=Pb;Ht.defaults=Aa;Ht.use=function(...e){return ga.use(...e),Ht.defaults=ga.defaults,j$(Ht.defaults),Ht};Ht.walkTokens=function(e,t){return ga.walkTokens(e,t)};Ht.parseInline=ga.parseInline;Ht.Parser=Wr;Ht.parser=Wr.parse;Ht.Renderer=lf;Ht.TextRenderer=Nb;Ht.Lexer=zr;Ht.lexer=zr.lex;Ht.Tokenizer=sf;Ht.Hooks=rl;Ht.parse=Ht;Ht.options;Ht.setOptions;Ht.use;Ht.walkTokens;Ht.parseInline;Wr.parse;zr.lex;function K$(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(h){var u,d;return(d=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&d!==void 0?d:0})):s},[]);if(n.length){var a=new RegExp(`
294[	 ]{`.concat(Math.min.apply(Math,n),"}"),"g");i=i.map(function(s){return s.replace(a,`
295`)})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return t.forEach(function(s,l){var c=o.match(/(?:^|\n)( *)$/),h=c?c[1]:"",u=s;typeof s=="string"&&s.includes(`
296`)&&(u=String(s).split(`
297`).map(function(d,f){return f===0?d:"".concat(h).concat(d)}).join(`
298`)),o+=u+i[l+1]}),o}var ngt={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},gm=new Map,Z$=new Map,agt=S(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(X.debug("Registering icon pack:",t.name),"loader"in t)Z$.set(t.name,t.loader);else if("icons"in t)gm.set(t.name,t.icons);else throw X.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Q$=S(async(e,t)=>{const r=opt(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let n=gm.get(i);if(!n){const o=Z$.get(i);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await o(),prefix:i},gm.set(i,n)}catch(s){throw X.error(s),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=cpt(n,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),ogt=S(async e=>{try{return await Q$(e),!0}catch{return!1}},"isIconAvailable"),Pc=S(async(e,t,r)=>{let i;try{i=await Q$(e,t==null?void 0:t.fallbackPrefix)}catch(o){X.error(o),i=ngt}const n=ypt(i,t),a=xpt(bpt(n.body),{...n.attributes,...r});return Xr(a,oe())},"getIconSVG");function J$(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
299`).replace(/\n{2,}/g,`
300`);return K$(i)}S(J$,"preprocessMarkdown");function tE(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>{var r;return((r=t.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(i=>({content:i,type:"normal"})))??[]})}S(tE,"nonMarkdownToLines");function eE(e,t={}){const r=J$(e,t),i=Ht.lexer(r),n=[[]];let a=0;function o(s,l="normal"){s.type==="text"?s.text.split(`
301`).forEach((h,u)=>{u!==0&&(a++,n.push([])),h.split(" ").forEach(d=>{d=d.replace(/&#39;/g,"'"),d&&n[a].push({content:d,type:l})})}):s.type==="strong"||s.type==="em"?s.tokens.forEach(c=>{o(c,s.type)}):s.type==="html"&&n[a].push({content:s.text,type:"normal"})}return S(o,"processNode"),i.forEach(s=>{var l;s.type==="paragraph"?(l=s.tokens)==null||l.forEach(c=>{o(c)}):s.type==="html"?n[a].push({content:s.text,type:"normal"}):n[a].push({content:s.raw,type:"normal"})}),n}S(eE,"markdownToLines");function rE(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}S(rE,"nonMarkdownToHTML");function iE(e,{markdownAutoWrap:t}={}){const r=Ht.lexer(e);function i(n){var a,o,s;return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(a=n.tokens)==null?void 0:a.map(i).join("")}</strong>`:n.type==="em"?`<em>${(o=n.tokens)==null?void 0:o.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${(s=n.tokens)==null?void 0:s.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(X.warn(`Unsupported markdown: ${n.type}`),n.raw)}return S(i,"output"),r.map(i).join("")}S(iE,"markdownToHTML");function nE(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}S(nE,"splitTextToChars");function aE(e,t){const r=nE(t.content);return zb(e,[],r,t.type)}S(aE,"splitWordToFitWidth");function zb(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[n,...a]=r,o=[...t,n];return e([{content:o.join(""),type:i}])?zb(e,o,a,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}S(zb,"splitWordToFitWidthRecursion");function oE(e,t){if(e.some(({content:r})=>r.includes(`
302`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return cf(e,t)}S(oE,"splitLineToFitWidth");function cf(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());const a=e.shift()??{content:" ",type:"normal"},o=[...i];if(n!==""&&o.push({content:n,type:"normal"}),o.push(a),t(o))return cf(e,t,r,o);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){const[s,l]=aE(t,a);r.push([s]),l.content&&e.unshift(l)}return cf(e,t,r)}S(cf,"splitLineToFitWidthRecursion");function ym(e,t){t&&e.attr("style",t)}S(ym,"applyStyle");var AS=16384;async function sE(e,t,r,i,n=!1,a=oe()){const o=e.append("foreignObject");o.attr("width",`${Math.min(10*r,AS)}px`),o.attr("height",`${Math.min(10*r,AS)}px`);const s=o.append("xhtml:div"),l=ac(t.label)?await xO(t.label.replace(Ac.lineBreakRegex,`
303`),a):Xr(t.label,a),c=t.isNode?"nodeLabel":"edgeLabel",h=s.append("span");h.html(l),ym(h,t.labelStyle),h.attr("class",`${c} ${i}`),ym(s,t.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(s.style("max-width",r+"px"),s.style("text-align","center")),s.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&s.attr("class","labelBkg");let u=s.node().getBoundingClientRect();return u.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),u=s.node().getBoundingClientRect()),o.node()}S(sE,"addHtmlSpan");function Od(e,t,r,i=!1){const n=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&n.attr("text-anchor","middle"),n}S(Od,"createTspan");function lE(e,t,r){const i=e.append("text"),n=Od(i,1,t);Bd(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}S(lE,"computeWidthOfText");function sgt(e,t,r){var o;const i=e.append("text"),n=Od(i,1,t);Bd(n,[{content:r,type:"normal"}]);const a=(o=n.node())==null?void 0:o.getBoundingClientRect();return a&&i.remove(),a}S(sgt,"computeDimensionOfText");function cE(e,t,r,i=!1,n=!1){const o=t.append("g"),s=o.insert("rect").attr("class","background").attr("style","stroke: none"),l=o.append("text").attr("y","-10.1");n&&l.attr("text-anchor","middle");let c=0;for(const h of r){const u=S(f=>lE(o,1.1,f)<=e,"checkWidth"),d=u(h)?[h]:oE(h,u);for(const f of d){const y=Od(l,c,1.1,n);Bd(y,f),c++}}if(i){const h=l.node().getBBox(),u=2;return s.attr("x",h.x-u).attr("y",h.y-u).attr("width",h.width+2*u).attr("height",h.height+2*u),o.node()}else return l.node()}S(cE,"createFormattedText");function mm(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}S(mm,"decodeHTMLEntities");function Bd(e,t){e.text(""),t.forEach((r,i)=>{const n=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");
303i===0?n.text(mm(r.content)):n.text(" "+mm(r.content))})}S(Bd,"updateTextContentAndStyles");async function hE(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,o)=>(r.push((async()=>{const s=`${a}:${o}`;return await ogt(s)?await Pc(s,void 0,{class:"label-icon"}):`<i class='${Xr(n,t).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}S(hE,"replaceIconSubstring");var en=S(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,markdown:o=!0,isNode:s=!0,width:l=200,addSvgBackground:c=!1}={},h)=>{if(X.debug("XYZ createText",t,r,i,n,a,s,"addSvgBackground: ",c),a){const u=o?iE(t,h):rE(t),d=await hE(pa(u),h),f=t.replace(/\\\\/g,"\\"),y={isNode:s,label:ac(t)?f:d,labelStyle:r.replace("fill:","color:")};return await sE(e,y,l,n,c,h)}else{const u=pa(t.replace(/<br\s*\/?>/g,"<br/>")),d=o?eE(u.replace("<br>","<br/>"),h):tE(u),f=cE(l,e,d,t?c:!1,!s);if(s){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");St(f).attr("style",y)}else{const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");St(f).select("rect").attr("style",y.replace(/background:/g,"fill:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");St(f).select("text").attr("style",p)}return i?St(f).selectAll("tspan.text-outer-tspan").classed("title-row",!0):St(f).selectAll("tspan.text-outer-tspan").classed("row",!0),f}},"createText");function qp(e,t,r){if(e&&e.length){const[i,n]=t,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(const l of e){const[c,h]=l;l[0]=(c-i)*o-(h-n)*s+i,l[1]=(c-i)*s+(h-n)*o+n}}}function lgt(e,t){return e[0]===t[0]&&e[1]===t[1]}function cgt(e,t,r,i=1){const n=r,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,s=[0,0];if(n)for(const c of o)qp(c,s,n);const l=function(c,h,u){const d=[];for(const v of c){const x=[...v];lgt(x[0],x[x.length-1])||x.push([x[0][0],x[0][1]]),x.length>2&&d.push(x)}const f=[];h=Math.max(h,.1);const y=[];for(const v of d)for(let x=0;x<v.length-1;x++){const w=v[x],b=v[x+1];if(w[1]!==b[1]){const C=Math.min(w[1],b[1]);y.push({ymin:C,ymax:Math.max(w[1],b[1]),x:C===w[1]?w[0]:b[0],islope:(b[0]-w[0])/(b[1]-w[1])})}}if(y.sort((v,x)=>v.ymin<x.ymin?-1:v.ymin>x.ymin?1:v.x<x.x?-1:v.x>x.x?1:v.ymax===x.ymax?0:(v.ymax-x.ymax)/Math.abs(v.ymax-x.ymax)),!y.length)return f;let p=[],g=y[0].ymin,m=0;for(;p.length||y.length;){if(y.length){let v=-1;for(let x=0;x<y.length&&!(y[x].ymin>g);x++)v=x;y.splice(0,v+1).forEach(x=>{p.push({s:g,edge:x})})}if(p=p.filter(v=>!(v.edge.ymax<=g)),p.sort((v,x)=>v.edge.x===x.edge.x?0:(v.edge.x-x.edge.x)/Math.abs(v.edge.x-x.edge.x)),(u!==1||m%h==0)&&p.length>1)for(let v=0;v<p.length;v+=2){const x=v+1;if(x>=p.length)break;const w=p[v].edge,b=p[x].edge;f.push([[Math.round(w.x),g],[Math.round(b.x),g]])}g+=u,p.forEach(v=>{v.edge.x=v.edge.x+u*v.edge.islope}),m++}return f}(o,a,i);if(n){for(const c of o)qp(c,s,-n);(function(c,h,u){const d=[];c.forEach(f=>d.push(...f)),qp(d,h,u)})(l,s,-n)}return l}function Lc(e,t){var r;const i=t.hachureAngle+90;let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=n),cgt(e,n,i,a||1)}class Wb{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=Lc(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const n of t)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}}function $d(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class hgt extends Wb{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=Lc(t,Object.assign({},r,{hachureGap:i}
vendor: 18,253 bytes, line 303
303)),a=Math.PI/180*r.hachureAngle,o=[],s=.5*i*Math.cos(a),l=.5*i*Math.sin(a);for(const[c,h]of n)$d([c,h])&&o.push([[c[0]-s,c[1]+l],[...h]],[[c[0]+s,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}}class ugt extends Wb{fillPolygons(t,r){const i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,n);return i.ops=i.ops.concat(a.ops),i}}class fgt{constructor(t){this.helper=t}fillPolygons(t,r){const i=Lc(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const o=n/4;for(const s of t){const l=$d(s),c=l/n,h=Math.ceil(c)-1,u=l-h*n,d=(s[0][0]+s[1][0])/2-n/4,f=Math.min(s[0][1],s[1][1]);for(let y=0;y<h;y++){const p=f+u+y*n,g=d-o+2*Math.random()*o,m=p-o+2*Math.random()*o,v=this.helper.ellipse(g,m,a,a,r);i.push(...v.ops)}}return{type:"fillSketch",ops:i}}}class dgt{constructor(t){this.helper=t}fillPolygons(t,r){const i=Lc(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return t.forEach(o=>{const s=$d(o),l=Math.floor(s/(i+n)),c=(s+n-l*(i+n))/2;let h=o[0],u=o[1];h[0]>u[0]&&(h=o[1],u=o[0]);const d=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let f=0;f<l;f++){const y=f*(i+n),p=y+i,g=[h[0]+y*Math.cos(d)+c*Math.cos(d),h[1]+y*Math.sin(d)+c*Math.sin(d)],m=[h[0]+p*Math.cos(d)+c*Math.cos(d),h[1]+p*Math.sin(d)+c*Math.sin(d)];a.push(...this.helper.doubleLineOps(g[0],g[1],m[0],m[1],r))}}),a}}class pgt{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,a=Lc(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,r)}}zigzagLines(t,r,i){const n=[];return t.forEach(a=>{const o=$d(a),s=Math.round(o/(2*r));let l=a[0],c=a[1];l[0]>c[0]&&(l=a[1],c=a[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<s;u++){const d=2*u*r,f=2*(u+1)*r,y=Math.sqrt(2*Math.pow(r,2)),p=[l[0]+d*Math.cos(h),l[1]+d*Math.sin(h)],g=[l[0]+f*Math.cos(h),l[1]+f*Math.sin(h)],m=[p[0]+y*Math.cos(h+Math.PI/4),p[1]+y*Math.sin(h+Math.PI/4)];n.push(...this.helper.doubleLineOps(p[0],p[1],m[0],m[1],i),...this.helper.doubleLineOps(m[0],m[1],g[0],g[1],i))}}),n}}const lr={};class ggt{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const ygt=0,Hp=1,OS=2,lh={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Up(e,t){return e.type===t}function qb(e){const t=[],r=function(o){const s=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))s[s.length]={type:ygt,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];s[s.length]={type:Hp,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return s[s.length]={type:OS,text:""},s}(e);let i="BOD",n=0,a=r[n];for(;!Up(a,OS);){let o=0;const s=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return qb("M0,0"+e);n++,o=lh[a.text],i=a.text}else Up(a,Hp)?o=lh[i]:(n++,o=lh[a.text],i=a.text);if(!(n+o<r.length))throw new Error("Path data ended short");for(let l=n;l<n+o;l++){const c=r[l];if(!Up(c,Hp))throw new Error("Param not a number: "+i+","+c.text);s[s.length]=+c.text}if(typeof lh[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:s};t.push(l),n+=o,a=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function uE(e){let t=0,r=0,i=0,n=0;const a=[];for(const{key:o,data:s}of e)switch(o){case"M":a.push({key:"M",data:[...s]}),[t,r]=s,[i,n]=s;break;case"m":t+=s[0],r+=s[1],a.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":a.push({key:"L",data:[...s]}),[t,r]=s;break;case"l":t+=s[0],r+=s[1],a.push({key:"L",data:[t,r]});break;case"C":a.push({key:"C",data:[...s]}),t=s[4],r=s[5];break;case"c":{const l=s.map((c,h)=>h%2?c+r:c+t);a.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":a.push({key:"Q",data:[...s]}),t=s[2],r=s[3];break;case"q":{const l=s.map((c,h)=>h%2?c+r:c+t);a.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":a.push({key:"A",data:[...s]}),t=s[5],r=s[6];break;case"a":t+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,r]});break;case"H":a.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),t=s[2],r=s[3];break;case"s":{const l=s.map((c,h)=>h%2?c+r:c+t);a.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":a.push({key:"T",data:[...s]}),t=s[0],r=s[1];break;case"t":t+=s[0],r+=s[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=i,r=n}return a}function fE(e){const t=[];let r="",i=0,n=0,a=0,o=0,s=0,l=0;for(const{key:c,data:h}of e){switch(c){case"M":t.push({key:"M",data:[...h]}),[i,n]=h,[a,o]=h;break;case"C":t.push({key:"C",data:[...h]}),i=h[4],n=h[5],s=h[2],l=h[3];break;case"L":t.push({key:"L",data:[...h]}),[i,n]=h;break;case"H":i=h[0],t.push({key:"L",data:[i,n]});break;case"V":n=h[0],t.push({key:"L",data:[i,n]});break;case"S":{let u=0,d=0;r==="C"||r==="S"?(u=i+(i-s),d=n+(n-l)):(u=i,d=n),t.push({key:"C",data:[u,d,...h]}),s=h[0],l=h[1],i=h[2],n=h[3];break}case"T":{const[u,d]=h;let f=0,y=0;r==="Q"||r==="T"?(f=i+(i-s),y=n+(n-l)):(f=i,y=n);const p=i+2*(f-i)/3,g=n+2*(y-n)/3,m=u+2*(f-u)/3,v=d+2*(y-d)/3;t.push({key:"C",data:[p,g,m,v,u,d]}),s=f,l=y,i=u,n=d;break}case"Q":{const[u,d,f,y]=h,p=i+2*(u-i)/3,g=n+2*(d-n)/3,m=f+2*(u-f)/3,v=y+2*(d-y)/3;t.push({key:"C",data:[p,g,m,v,f,y]}),s=u,l=d,i=f,n=y;break}case"A":{const u=Math.abs(h[0]),d=Math.abs(h[1]),f=h[2],y=h[3],p=h[4],g=h[5],m=h[6];u===0||d===0?(t.push({key:"C",data:[i,n,g,m,g,m]}),i=g,n=m):(i!==g||n!==m)&&(dE(i,n,g,m,u,d,f,y,p).forEach(function(v){t.push({key:"C",data:v})}),i=g,n=m);break}case"Z":t.push({key:"Z",data:[]}),i=a,n=o}r=c}return t}function Ys(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function dE(e,t,r,i,n,a,o,s,l,c){const h=(u=o,Math.PI*u/180);var u;let d=[],f=0,y=0,p=0,g=0;if(c)[f,y,p,g]=c;else{[e,t]=Ys(e,t,-h),[r,i]=Ys(r,i,-h);const D=(e-r)/2,_=(t-i)/2;let B=D*D/(n*n)+_*_/(a*a);B>1&&(B=Math.sqrt(B),n*=B,a*=B);const O=n*n,M=a*a,F=O*M-O*_*_-M*D*D,$=O*_*_+M*D*D,N=(s===l?-1:1)*Math.sqrt(Math.abs(F/$));p=N*n*_/a+(e+r)/2,g=N*-a*D/n+(t+i)/2,f=Math.asin(parseFloat(((t-g)/a).toFixed(9))),y=Math.asin(parseFloat(((i-g)/a).toFixed(9))),e<p&&(f=Math.PI-f),r<p&&(y=Math.PI-y),f<0&&(f=2*Math.PI+f),y<0&&(y=2*Math.PI+y),l&&f>y&&(f-=2*Math.PI),!l&&y>f&&(y-=2*Math.PI)}let m=y-f;if(Math.abs(m)>120*Math.PI/180){const D=y,_=r,B=i;y=l&&y>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,d=dE(r=p+n*Math.cos(y),i=g+a*Math.sin(y),_,B,n,a,o,0,l,[y,D,p,g])}m=y-f;const v=Math.cos(f),x=Math.sin(f),w=Math.cos(y),b=Math.sin(y),C=Math.tan(m/4),k=4/3*n*C,T=4/3*a*C,E=[e,t],L=[e+k*x,t-T*v],P=[r+k*b,i-T*w],I=[r,i];if(L[0]=2*E[0]-L[0],L[1]=2*E[1]-L[1],c)return[L,P,I].concat(d);{d=[L,P,I].concat(d);const D=[];for(let _=0;_<d.length;_+=3){const B=Ys(d[_][0],d[_][1],h),O=Ys(d[_+1][0],d[_+1][1],h),M=Ys(d[_+2][0],d[_+2][1],h);D.push([B[0],B[1],O[0],O[1],M[0],M[1]])}return D}}const mgt={randOffset:function(e,t){return wt(e,t)},randOffsetWithRange:function(e,t,r){return hf(e,t,r)},ellipse:function(e,t,r,i,n){const a=gE(r,i,n);return vm(e,t,n,a).opset},doubleLineOps:function(e,t,r,i,n){return _n(e,t,r,i,n,!0)}};function pE(e,t,r,i,n){return{type:"path",ops:_n(e,t,r,i,n)}}function _h(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let a=0;a<i-1;a++)n.push(..._n(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&n.push(..._n(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?pE(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function vgt(e,t,r,i,n){return function(a,o){return _h(a,!0,o)}([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function BS(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=ch(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:ch(r[0],1.5*(1+.22*t.roughness),PS(t));for(let a=1;a<r.length;a++){const o=r[a];if(o.length){const s=ch(o,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:ch(o,1.5*(1+.22*t.roughness),PS(t));for(const c of s)c.op!=="move"&&i.push(c);for(const c of l)c.op!=="move"&&n.push(c)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function gE(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/n;let o=Math.abs(e/2),s=Math.abs(t/2);const l=1-r.curveFitting;return o+=wt(o*l,r),s+=wt(s*l,r),{increment:a,rx:o,ry:s}}function vm(e,t,r,i){const[n,a]=LS(i.increment,e,t,i.rx,i.ry,1,i.increment*hf(.1,hf(.4,1,r),r),r);let o=uf(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[s]=LS(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=uf(s,null,r);o=o.concat(l)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function $S(e,t,r,i,n,a,o,s,l){const c=e,h=t;let u=Math.abs(r/2),d=Math.abs(i/2);u+=wt(.01*u,l),d+=wt(.01*d,l);let f=n,y=a;for(;f<0;)f+=2*Math.PI,y+=2*Math.PI;y-f>2*Math.PI&&(f=0,y=2*Math.PI);const p=2*Math.PI/l.curveStepCount,g=Math.min(p/2,(y-f)/2),m=MS(g,c,h,u,d,f,y,1,l);if(!l.disableMultiStroke){const v=MS(g,c,h,u,d,f,y,1.5,l);m.push(...v)}return o&&(s?m.push(..._n(c,h,c+u*Math.cos(f),h+d*Math.sin(f),l),..._n(c,h,c+u*Math.cos(y),h+d*Math.sin(y),l)):m.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(f),h+d*Math.sin(f)]})),{type:"path",ops:m}}function ES(e,t){const r=fE(uE(qb(e))),i=[];let n=[0,0],a=[0,0];for(const{key:o,data:s}of r)switch(o){case"M":a=[s[0],s[1]],n=[s[0],s[1]];break;case"L":i.push(..._n(a[0],a[1],s[0],s[1],t)),a=[s[0],s[1]];break;case"C":{const[l,c,h,u,d,f]=s;i.push(...bgt(l,c,h,u,d,f,a,t)),a=[d,f];break}case"Z":i.push(..._n(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]]}return{type:"path",ops:i}}function Yp(e,t){const r=[];for(const i of e)if(i.length){const n=t.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+wt(n,t),i[0][1]+wt(n,t)]});for(let o=1;o<a;o++)r.push({op:"lineTo",data:[i[o][0]+wt(n,t),i[o][1]+wt(n,t)]})}}return{type:"fillPath",ops:r}}function ja(e,t){return function(r,i){let n=r.fillStyle||"hachure";if(!lr[n])switch(n){case"zigzag":lr[n]||(lr[n]=new hgt(i));break;case"cross-hatch":lr[n]||(lr[n]=new ugt(i));break;case"dots":lr[n]||(lr[n]=new fgt(i));break;case"dashed":lr[n]||(lr[n]=new dgt(i));break;case"zigzag-line":lr[n]||(lr[n]=new pgt(i));break;default:n="hachure",lr[n]||(lr[n]=new Wb(i))}return lr[n]}(t,mgt).fillPolygons(e,t)}function PS(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function yE(e){return e.randomizer||(e.randomizer=new ggt(e.seed||0)),e.randomizer.next()}function hf(e,t,r,i=1){return r.roughness*i*(yE(r)*(t-e)+e)}function wt(e,t,r=1){return hf(-e,e,t,r)}function _n(e,t,r,i,n,a=!1){const o=a?n.disableMultiStrokeFill:n.disableMultiStroke,s=bm(e,t,r,i,n,!0,!1);if(o)return s;const l=bm(e,t,r,i,n,!0,!0);return s.concat(l)}function bm(e,t,r,i,n,a,o){const s=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(s);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=n.maxRandomnessOffset||0;h*h*100>s&&(h=l/10);const u=h/2,d=.2+.2*yE(n);let f=n.bowing*n.maxRandomnessOffset*(i-t)/200,y=n.bowing*n.maxRandomnessOffset*(e-r)/200;f=wt(f,n,c),y=wt(y,n,c);const p=[],g=()=>wt(u,n,c),m=()=>wt(h,n,c),v=n.preserveVertices;return o?p.push({op:"move",data:[e+(v?0:g()),t+(v?0:g())]}):p.push({op:"move",data:[e+(v?0:wt(h,n,c)),t+(v?0:wt(h,n,c))]}),o?p.push({op:"bcurveTo",data:[f+e+(r-e)*d+g(),y+t+(i-t)*d+g(),f+e+2*(r-e)*d+g(),y+t+2*(i-t)*d+g(),r+(v?0:g()),i+(v?0:g())]}):p.push({op:"bcurveTo",data:[f+e+(r-e)*d+m(),y+t+(i-t)*d+m(),f+e+2*(r-e)*d+m(),y+t+2*(i-t)*d+m(),r+(v?0:m()),i+(v?0:m())]}),p}function ch(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+wt(t,r),e[0][1]+wt(t,r)]),i.push([e[0][0]+wt(t,r),e[0][1]+wt(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+wt(t,r),e[n][1]+wt(t,r)]),n===e.length-1&&i.push([e[n][0]+wt(t,r),e[n][1]+wt(t,r)]);return uf(i,null,r)}function uf(e,t,r){const i=e.length,n=[];if(i>3){const a=[],o=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let s=1;s+2<i;s++){const l=e[s];a[0]=[l[0],l[1]],a[1]=[l[0]+(o*e[s+1][0]-o*e[s-1][0])/6,l[1]+(o*e[s+1][1]-o*e[s-1][1])/6],a[2]=[e[s+1][0]+(o*e[s][0]-o*e[s+2][0])/6,e[s+1][1]+(o*e[s][1]-o*e[s+2][1])/6],a[3]=[e[s+1][0],e[s+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}}else i===3?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&n.push(...bm(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function LS(e,t,r,i,n,a,o,s){const l=[],c=[];if(s.roughness===0){e/=4,c.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let h=0;h<=2*Math.PI;h+=e){const u=[t+i*Math.cos(h),r+n*Math.sin(h)];l.push(u),c.push(u)}c.push([t+i*Math.cos(0),r+n*Math.sin(0)]),c.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{const h=wt(.5,s)-Math.PI/2;c.push([wt(a,s)+t+.9*i*Math.cos(h-e),wt(a,s)+r+.9*n*Math.sin(h-e)]);const u=2*Math.PI+h-.01;for(let d=h;d<u;d+=e){const f=[wt(a,s)+t+i*Math.cos(d),wt(a,s)+r+n*Math.sin(d)];l.push(f),c.push(f)}c.push([wt(a,s)+t+i*Math.cos(h+2*Math.PI+.5*o),wt(a,s)+r+n*Math.sin(h+2*Math.PI+.5*o)]),c.push([wt(a,s)+t+.98*i*Math.cos(h+o),wt(a,s)+r+.98*n*Math.sin(h+o)]),c.push([wt(a,s)+t+.9*i*Math.cos(h+.5*o),wt(a,s)+r+.9*n*Math.sin(h+.5*o)])}return[c,l]}function MS(e,t,r,i,n,a,o,s,l){const c=a+wt(.1,l),h=[];h.push([wt(s,l)+t+.9*i*Math.cos(c-e),wt(s,l)+r+.9*n*Math.sin(c-e)]);for(let u=c;u<=o;u+=e)h.push([wt(s,l)+t+i*Math.cos(u),wt(s,l)+r+n*Math.sin(u)]);return h.push([t+i*Math.cos(o),r+n*Math.sin(o)]),h.push([t+i*Math.cos(o),r+n*Math.sin(o)]),uf(h,null,l)}function bgt(e,t,r,i,n,a,o,s){const l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let h=[0,0];const u=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let f=0;f<u;f++)f===0?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(d?0:wt(c[0],s)),o[1]+(d?0:wt(c[0],s))]}),h=d?[n,a]:[n+wt(c[f],s),a+wt(c[f],s)],l.push({op:"bcurveTo",data:[e+wt(c[f],s),t+wt(c[f],s),r+wt(c[f],s),i+wt(c[f],s),h[0],h[1]]});return l}function Gs(e){return[...e]}function FS(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(Gs(e[0]),Gs(e[1]),Gs(e[2]),Gs(e[2]));else{const n=[];n.push(e[0],e[0]);for(let s=1;s<e.length;s++)n.push(e[s]),s===e.length-1&&n.push(e[s]);const a=[],o=1-t;i.push(Gs(n[0]));for(let s=1;s+2<n.length;s++){const l=n[s];a[0]=[l[0],l[1]],a[1]=[l[0]+(o*n[s+1][0]-o*n[s-1][0])/6,l[1]+(o*n[s+1][1]-o*n[s-1][1])/6],a[2]=[n[s+1][0]+(o*n[s][0]-o*n[s+2][0])/6,n[s+1][1]+(o*n[s][1]-o*n[s+2][1])/6],a[3]=[n[s+1][0],n[s+1][1]],i.push(a[1],a[2],a[3])}}return i}function Ah(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function xgt(e,t,r){const i=Ah(t,r);if(i===0)return Ah(e,t);let n=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return n=Math.max(0,Math.min(1,n)),Ah(e,Un(t,r,n))}function Un(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function xm(e,t,r,i){const n=i||[];if(function(s,l){const c=s[l+0],h=s[l+1],u=s[l+2],d=s[l+3];let f=3*h[0]-2*c[0]-d[0];f*=f;let y=3*h[1]-2*c[1]-d[1];y*=y;let p=3*u[0]-2*d[0]-c[0];p*=p;let g=3*u[1]-2*d[1]-c[1];return g*=g,f<p&&(f=p),y<g&&(y=g),f+y}(e,t)<r){const s=e[t+0];n.length?(a=n[n.length-1],o=s,Math.sqrt(Ah(a,o))>1&&n.push(s)):n.push(s),n.push(e[t+3])}else{const l=e[t+0],c=e[t+1],h=e[t+2],u=e[t+3],d=Un(l,c,.5),f=Un(c,h,.5),y=Un(h,u,.5),p=Un(d,f,.5),g=Un(f,y,.5),m=Un(p,g,.5);xm([l,d,p,m],0,r,n),xm([m,g,y,u],0,r,n)}var a,o;return n}function Cgt(e,t){return ff(e,0,e.length,t)}function ff(e,t,r,i,n){const a=n||[],o=e[t],s=e[r-1];let l=0,c=1;for(let h=t+1;h<r-1;++h){const u=xgt(e[h],o,s);u>l&&(l=u,c=h)}return Math.sqrt(l)>i?(ff(e,t,c+1,i,a),ff(e,c,r,i,a)):(a.length||a.push(o),a.push(s)),a}function Gp(e,t=.15,r){const i=[],n=(e.length-1)/3;for(let a=0;a<n;a++)xm(e,3*a,t,i);return r&&r>0?ff(i,0,i.length,r):i}const dr="none";class df{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,n,a){const o=this._o(a);return this._d("line",[pE(t,r,i,n,o)],o)}rectangle(t,r,i,n,a){const o=this._o(a),s=[],l=vgt(t,r,i,n,o);if(o.fill){const c=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];o.fillStyle==="solid"?s.push(Yp([c],o)):s.push(ja([c],o))}return o.stroke!==dr&&s.push(l),this._d("rectangle",s,o)}ellipse(t,r,i,n,a){const o=this._o(a),s=[],l=gE(i,n,o),c=vm(t,r,o,l);if(o.fill)if(o.fillStyle==="solid"){const h=vm(t,r,o,l).opset;h.type="fillPath",s.push(h)}else s.push(ja([c.estimatedPoints],o));return o.stroke!==dr&&s.push(c.opset),this._d("ellipse",s,o)}circle(t,r,i,n){const a=this.ellipse(t,r,i,i,n);return a.shape="circle",a}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[_h(t,!1,i)],i)}arc(t,r,i,n,a,o,s=!1,l){const c=this._o(l),h=[],u=$S(t,r,i,n,a,o,s,!0,c);if(s&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const f=$S(t,r,i,n,a,o,!0,!1,d);f.type="fillPath",h.push(f)}else h.push(function(d,f,y,p,g,m,v){const x=d,w=f;let b=Math.abs(y/2),C=Math.abs(p/2);b+=wt(.01*b,v),C+=wt(.01*C,v);let k=g,T=m;for(;k<0;)k+=2*Math.PI,T+=2*Math.PI;T-k>2*Math.PI&&(k=0,T=2*Math.PI);const E=(T-k)/v.curveStepCount,L=[];for(let P=k;P<=T;P+=E)L.push([x+b*Math.cos(P),w+C*Math.sin(P)]);return L.push([x+b*Math.cos(T),w+C*Math.sin(T)]),L.push([x,w]),ja([L],v)}(t,r,i,n,a,o,c));
vendor: 24,782 bytes, lines 303-304
303return c.stroke!==dr&&h.push(u),this._d("arc",h,c)}curve(t,r){const i=this._o(r),n=[],a=BS(t,i);if(i.fill&&i.fill!==dr)if(i.fillStyle==="solid"){const o=BS(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],s=t;if(s.length){const l=typeof s[0][0]=="number"?[s]:s;for(const c of l)c.length<3?o.push(...c):c.length===3?o.push(...Gp(FS([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):o.push(...Gp(FS(c),10,(1+i.roughness)/2))}o.length&&n.push(ja([o],i))}return i.stroke!==dr&&n.push(a),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],a=_h(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(Yp([t],i)):n.push(ja([t],i))),i.stroke!==dr&&n.push(a),this._d("polygon",n,i)}path(t,r){const i=this._o(r),n=[];if(!t)return this._d("path",n,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=i.fill&&i.fill!=="transparent"&&i.fill!==dr,o=i.stroke!==dr,s=!!(i.simplification&&i.simplification<1),l=function(h,u,d){const f=fE(uE(qb(h))),y=[];let p=[],g=[0,0],m=[];const v=()=>{m.length>=4&&p.push(...Gp(m,u)),m=[]},x=()=>{v(),p.length&&(y.push(p),p=[])};for(const{key:b,data:C}of f)switch(b){case"M":x(),g=[C[0],C[1]],p.push(g);break;case"L":v(),p.push([C[0],C[1]]);break;case"C":if(!m.length){const k=p.length?p[p.length-1]:g;m.push([k[0],k[1]])}m.push([C[0],C[1]]),m.push([C[2],C[3]]),m.push([C[4],C[5]]);break;case"Z":v(),p.push([g[0],g[1]])}if(x(),!d)return y;const w=[];for(const b of y){const C=Cgt(b,d);C.length&&w.push(C)}return w}(t,1,s?4-4*(i.simplification||1):(1+i.roughness)/2),c=ES(t,i);if(a)if(i.fillStyle==="solid")if(l.length===1){const h=ES(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else n.push(Yp(l,i));else n.push(ja(l,i));return o&&(s?l.forEach(h=>{n.push(_h(h,!1,i))}):n.push(c)),this._d("path",n,i)}opsToPath(t,r){let i="";for(const n of t.ops){const a=typeof r=="number"&&r>=0?n.data.map(o=>+o.toFixed(r)):n.data;switch(n.op){case"move":i+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":i+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":i+=`L${a[0]} ${a[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(const a of r){let o=null;switch(a.type){case"path":o={d:this.opsToPath(a),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:dr};break;case"fillPath":o={d:this.opsToPath(a),stroke:dr,strokeWidth:0,fill:i.fill||dr};break;case"fillSketch":o=this.fillSketch(a,i)}o&&n.push(o)}return n}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||dr,strokeWidth:i,fill:dr}}_mergedShape(t){return t.filter((r,i)=>i===0||r.op!=="move")}}class wgt{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new df(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(const o of r)switch(o.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,o,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const s=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,o,a,s),n.restore();break}case"fillSketch":this.fillSketch(n,o,i)}}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=n,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,n="nonzero"){t.beginPath();for(const a of r.ops){const o=typeof i=="number"&&i>=0?a.data.map(s=>+s.toFixed(i)):a.data;switch(a.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}r.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,n,a){const o=this.gen.line(t,r,i,n,a);return this.draw(o),o}rectangle(t,r,i,n,a){const o=this.gen.rectangle(t,r,i,n,a);return this.draw(o),o}ellipse(t,r,i,n,a){const o=this.gen.ellipse(t,r,i,n,a);return this.draw(o),o}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a),a}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,n,a,o,s=!1,l){const c=this.gen.arc(t,r,i,n,a,o,s,l);return this.draw(c),c}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const hh="http://www.w3.org/2000/svg";class Sgt{constructor(t,r){this.svg=t,this.gen=new df(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(hh,"g"),o=t.options.fixedDecimalPlaceDigits;for(const s of r){let l=null;switch(s.type){case"path":l=n.createElementNS(hh,"path"),l.setAttribute("d",this.opsToPath(s,o)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=n.createElementNS(hh,"path"),l.setAttribute("d",this.opsToPath(s,o)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(n,s,i)}l&&a.appendChild(l)}return a}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const a=t.createElementNS(hh,"path");return a.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),a.setAttribute("stroke",i.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),i.fillLineDash&&a.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,a){const o=this.gen.line(t,r,i,n,a);return this.draw(o)}rectangle(t,r,i,n,a){const o=this.gen.rectangle(t,r,i,n,a);return this.draw(o)}ellipse(t,r,i,n,a){const o=this.gen.ellipse(t,r,i,n,a);return this.draw(o)}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,n,a,o,s=!1,l){const c=this.gen.arc(t,r,i,n,a,o,s,l);return this.draw(c)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var ct={canvas:(e,t)=>new wgt(e,t),svg:(e,t)=>new Sgt(e,t),generator:e=>new df(e),newSeed:()=>df.newSeed()},Ct=S(async(e,t,r)=>{var f,y;let i;const n=t.useHtmlLabels||tn((f=jt())==null?void 0:f.htmlLabels);r?i=r:i="node default";const a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=a.insert("g").attr("class","label").attr("style",Ee(t.labelStyle));let s;t.label===void 0?s="":s=typeof t.label=="string"?t.label:t.label[0];const l=!!t.icon||!!t.img,c=t.labelType==="markdown",h=await en(o,Xr(pa(s),jt()),{useHtmlLabels:n,width:t.width||((y=jt().flowchart)==null?void 0:y.wrappingWidth),classes:c?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:l,markdown:c},jt());let u=h.getBBox();const d=((t==null?void 0:t.padding)??0)/2;if(n){const p=h.children[0],g=St(h);await I$(p,s),u=p.getBoundingClientRect(),g.attr("width",u.width),g.attr("height",u.height)}return n?o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):o.attr("transform","translate(0, "+-u.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:a,bbox:u,halfPadding:d,label:o}},"labelHelper"),Vp=S(async(e,t,r)=>{var l,c;const i=r.useHtmlLabels??or(jt()),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await en(n,Xr(pa(t),jt()),{useHtmlLabels:i,width:r.width||((c=(l=jt())==null?void 0:l.flowchart)==null?void 0:c.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let o=a.getBBox();const s=r.padding/2;if(or(jt())){const h=a.children[0],u=St(a);o=h.getBoundingClientRect(),u.attr("width",o.width),u.attr("height",o.height)}return i?n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):n.attr("transform","translate(0, "+-o.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:o,halfPadding:s,label:n}},"insertLabel"),dt=S((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),mt=S((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function It(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}S(It,"createPathFromPoints");function An(e,t,r,i,n,a){const o=[],l=r-e,c=i-t,h=l/a,u=2*Math.PI/h,d=t+c/2;for(let f=0;f<=50;f++){const y=f/50,p=e+y*l,g=d+n*Math.sin(u*(p-e));o.push({x:p,y:g})}return o}S(An,"generateFullSineWavePoints");function hc(e,t,r,i,n,a){const o=[],s=n*Math.PI/180,h=(a*Math.PI/180-s)/(i-1);for(let u=0;u<i;u++){const d=s+u*h,f=e+r*Math.cos(d),y=t+r*Math.sin(d);o.push({x:-f,y:-y})}return o}S(hc,"generateCirclePoints");function Cm(e){const t=Array.from(e.childNodes).filter(l=>l.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(l=>l.getAttribute("d")).filter(l=>l!==null).join(" ");r.setAttribute("d",i);const n=t.find(l=>l.getAttribute("fill")!=="none"),a=t.find(l=>l.getAttribute("stroke")!=="none"),o=S((l,c)=>(l==null?void 0:l.getAttribute(c))??void 0,"getAttr");if(n){const l={fill:o(n,"fill"),"fill-opacity":o(n,"fill-opacity")??"1"};Object.entries(l).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}if(a){const l={stroke:o(a,"stroke"),"stroke-width":o(a,"stroke-width")??"1","stroke-opacity":o(a,"stroke-opacity")??"1"};Object.entries(l).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}const s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(r),s}S(Cm,"mergePaths");var kgt=S((e,t)=>{var r=e.x,i=e.y,n=t.x-r,a=t.y-i,o=e.width/2,s=e.height/2,l,c;return Math.abs(a)*o>Math.abs(n)*s?(a<0&&(s=-s),l=a===0?0:s*n/a,c=s):(n<0&&(o=-o),l=o,c=n===0?0:o*a/n),{x:r+l,y:i+c}},"intersectRect"),Ss=kgt,Tgt=S(async(e,t,r,i=!1,n=!1)=>{let a=t||"";typeof a=="object"&&(a=a[0]);const o=jt(),s=or(o);return await en(e,a,{style:r,isTitle:i,useHtmlLabels:s,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},o)},"createLabel"),pn=Tgt,Mn=S((e,t,r,i,n)=>["M",e+n,t,"H",e+r-n,"A",n,n,0,0,1,e+r,t+n,"V",t+i-n,"A",n,n,0,0,1,e+r-n,t+i,"H",e+n,"A",n,n,0,0,1,e,t+i-n,"V",t+n,"A",n,n,0,0,1,e+n,t,"Z"].join(" "),"createRoundedRectPathD"),mE=S(async(e,t)=>{X.info("Creating subgraph rect for ",t.id,t);const r=jt(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:h}=ft(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=or(r),f=u.insert("g").attr("class","cluster-label ");let y;t.labelType==="markdown"?y=await en(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width}):y=await pn(f,t.label,t.labelStyle||"",!1,!0);let p=y.getBBox();if(or(r)){const k=y.children[0],T=St(y);p=k.getBoundingClientRect(),T.attr("width",p.width),T.attr("height",p.height)}const g=t.width<=p.width+t.padding?p.width+t.padding:t.width;t.width<=p.width+t.padding?t.diff=(g-t.width)/2-t.padding:t.diff=-t.padding;const m=t.height,v=t.x-g/2,x=t.y-m/2;X.trace("Data ",t,JSON.stringify(t));let w;if(t.look==="handDrawn"){const k=ct.svg(u),T=ut(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:n}),E=k.path(Mn(v,x,g,m,0),T);w=u.insert(()=>(X.debug("Rough node insert CXC",E),E),":first-child"),w.select("path:nth-child(2)").attr("style",c.join(";")),w.select("path").attr("style",h.join(";").replace("fill","stroke"))}else w=u.insert("rect",":first-child"),w.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",v).attr("y",x).attr("width",g).attr("height",m);const{subGraphTitleTopMargin:b}=Eb(r);if(f.attr("transform",`translate(${t.x-p.width/2}, ${t.y-t.height/2+b})`),s){const k=f.select("span");k&&k.attr("style",s)}const C=w.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=p.height-t.padding/2,t.intersect=function(k){return Ss(t,k)},{cluster:u,labelBBox:p}},"rect"),_gt=S((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),n=0*t.padding,a=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");const o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(s){return Ss(t,s)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Agt=S(async(e,t)=>{const r=jt(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:o,compositeTitleBackground:s,nodeBorder:l}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),h=c.insert("g",":first-child"),u=c.insert("g").attr("class","cluster-label");let d=c.append("rect");const f=await pn(u,t.label,t.labelStyle,void 0,!0);let y=f.getBBox();if(or(r)){const E=f.children[0],L=St(f);y=E.getBoundingClientRect(),L.attr("width",y.width),L.attr("height",y.height)}const p=0*t.padding,g=p/2,m=(t.width<=y.width+t.padding?y.width+t.padding:t.width)+p;t.width<=y.width+t.padding?t.diff=(m-t.width)/2-t.padding:t.diff=-t.padding;const v=t.height+p,x=t.height+p-y.height-6,w=t.x-m/2,b=t.y-v/2;t.width=m;const C=t.y-t.height/2-g+y.height+2;let k;if(t.look==="handDrawn"){const E=t.cssClasses.includes("statediagram-cluster-alt"),L=ct.svg(c),P=t.rx||t.ry?L.path(Mn(w,b,m,v,10),{roughness:.7,fill:s,fillStyle:"solid",stroke:l,seed:n}):L.rectangle(w,b,m,v,{seed:n});k=c.insert(()=>P,":first-child");const I=L.rectangle(w,C,m,x,{fill:E?a:o,fillStyle:E?"hachure":"solid",stroke:l,seed:n});k=c.insert(()=>P,":first-child"),d=c.insert(()=>I)}else k=h.insert("rect",":first-child"),k.attr("class","outer").attr("x",w).attr("y",b).attr("width",m).attr("height",v).attr("data-look",t.look),d.attr("class","inner").attr("x",w).attr("y",C).attr("width",m).attr("height",x);u.attr("transform",`translate(${t.x-y.width/2}, ${b+1-(or(r)?0:3)})`);const T=k.node().getBBox();return t.height=T.height,t.offsetX=0,t.offsetY=y.height-t.padding/2,t.labelBBox=y,t.intersect=function(E){return Ss(t,E)},{cluster:c,labelBBox:y}},"roundedWithTitle"),Ogt=S(async(e,t)=>{X.info("Creating subgraph rect for ",t.id,t);const r=jt(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:h}=ft(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=or(r),f=u.insert("g").attr("class","cluster-label "),y=await en(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width});let p=y.getBBox();if(or(r)){const k=y.children[0],T=St(y);p=k.getBoundingClientRect(),T.attr("width",p.width),T.attr("height",p.height)}const g=t.width<=p.width+t.padding?p.width+t.padding:t.width;t.width<=p.width+t.padding?t.diff=(g-t.width)/2-t.padding:t.diff=-t.padding;const m=t.height,v=t.x-g/2,x=t.y-m/2;X.trace("Data ",t,JSON.stringify(t));let w;if(t.look==="handDrawn"){const k=ct.svg(u),T=ut(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:n}),E=k.path(Mn(v,x,g,m,t.rx),T);w=u.insert(()=>(X.debug("Rough node insert CXC",E),E),":first-child"),w.select("path:nth-child(2)").attr("style",c.join(";")),w.select("path").attr("style",h.join(";").replace("fill","stroke"))}else w=u.insert("rect",":first-child"),w.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",v).attr("y",x).attr("width",g).attr("height",m);const{subGraphTitleTopMargin:b}=Eb(r);if(f.attr("transform",`translate(${t.x-p.width/2}, ${t.y-t.height/2+b})`),s){const k=f.select("span");k&&k.attr("style",s)}const C=w.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=p.height-t.padding/2,t.intersect=function(k){return Ss(t,k)},{cluster:u,labelBBox:p}},"kanbanSection"),Bgt=S((e,t)=>{const r=jt(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),s=o.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const h=t.height+l,u=t.x-c/2,d=t.y-h/2;t.width=c;let f;if(t.look==="handDrawn"){const g=ct.svg(o).rectangle(u,d,c,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});f=o.insert(()=>g,":first-child")}else{f=s.insert("rect",":first-child");let p="outer";t.look,p="divider",f.attr("class",p).attr("x",u).attr("y",d).attr("width",c).attr("height",h).attr("data-look",t.look)}const y=f.node().getBBox();return t.height=y.height,t.offsetX=0,t.offsetY=0,t.intersect=function(p){return Ss(t,p)},{cluster:o,labelBBox:{}}},"divider"),$gt=mE,Egt={rect:mE,squareRect:$gt,roundedWithTitle:Agt,noteGroup:_gt,divider:Bgt,kanbanSection:Ogt},vE=new Map,Pgt=S(async(e,t)=>{const r=t.shape||"rect",i=await Egt[r](e,t);return vE.set(t.id,i),i},"insertCluster"),F0t=S(()=>{vE=new Map},"clear");function bE(e,t){return e.intersect(t)}S(bE,"intersectNode");var Lgt=bE;function xE(e,t,r,i){var n=e.x,a=e.y,o=n-i.x,s=a-i.y,l=Math.sqrt(t*t*s*s+r*r*o*o),c=Math.abs(t*r*o/l);i.x<n&&(c=-c);var h=Math.abs(t*r*s/l);return i.y<a&&(h=-h),{x:n+c,y:a+h}}S(xE,"intersectEllipse");var CE=xE;function wE(e,t,r){return CE(e,t,t,r)}S(wE,"intersectCircle");var Mgt=wE;function SE(e,t,r,i){{const n=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=n*r.x+a*r.y+o,l=n*i.x+a*i.y+o,c=1e-6;if(s!==0&&l!==0&&wm(s,l))return;const h=i.y-r.y,u=r.x-i.x,d=i.x*r.y-r.x*i.y,f=h*e.x+u*e.y+d,y=h*t.x+u*t.y+d;if(Math.abs(f)<c&&Math.abs(y)<c&&wm(f,y))return;const p=n*u-h*a;if(p===0)return;const g=Math.abs(p/2);let m=a*d-u*o;const v=m<0?(m-g)/p:(m+g)/p;m=h*o-n*d;const x=m<0?(m-g)/p:(m+g)/p;return{x:v,y:x}}}S(SE,"intersectLine");function wm(e,t){return e*t>0}S(wm,"sameSign");var Fgt=SE;function kE(e,t,r){let i=e.x,n=e.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(h){o=Math.min(o,h.x),s=Math.min(s,h.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let l=i-e.width/2-o,c=n-e.height/2-s;for(let h=0;h<t.length;h++){let u=t[h],d=t[h<t.length-1?h+1:0],f=Fgt(e,r,{x:l+u.x,y:c+u.y},{x:l+d.x,y:c+d.y});f&&a.push(f)}return a.length?(a.length>1&&a.sort(function(h,u){let d=h.x-r.x,f=h.y-r.y,y=Math.sqrt(d*d+f*f),p=u.x-r.x,g=u.y-r.y,m=Math.sqrt(p*p+g*g);return y<m?-1:y===m?0:1}),a[0]):e}S(kE,"intersectPolygon");var Igt=kE,at={node:Lgt,circle:Mgt,ellipse:CE,polygon:Igt,rect:Ss};function TE(e,t){const{labelStyles:r}=ft(t);t.labelStyle=r;const i=mt(t);let n=i;i||(n="anchor");const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=1,{cssStyles:s}=t,l=ct.svg(a),c=ut(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const h=l.circle(0,0,o*2,c),u=a.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",Ee(s)),dt(t,u),t.intersect=function(d){return X.info("Circle intersect",t,o,d),at.circle(t,o,d)},a}S(TE,"anchor");function Sm(e,t,r,i,n,a,o){const l=(e+r)/2,c=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,d=(i-t)/2,f=u/n,y=d/a,p=Math.sqrt(f**2+y**2);if(p>1)throw new Error("The given radii are too small to create an arc between the points.");const g=Math.sqrt(1-p**2),m=l+g*a*Math.sin(h)*(o?-1:1),v=c-g*n*Math.cos(h)*(o?-1:1),x=Math.atan2((t-v)/a,(e-m)/n);let b=Math.atan2((i-v)/a,(r-m)/n)-x;o&&b<0&&(b+=2*Math.PI),!o&&b>0&&(b-=2*Math.PI);const C=[];for(let k=0;k<20;k++){const T=k/19,E=x+T*b,L=m+n*Math.cos(E),P=v+a*Math.sin(E);C.push({x:L,y:P})}return C}S(Sm,"generateArcPoints");function _E(e,t,r){const[i,n]=[t,r].sort((a,o)=>o-a);return n*(1-Math.sqrt(1-(e/i/2)**2))}S(_E,"calculateArcSagitta");async function AE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n,s=S(E=>E+o,"calcTotalHeight"),l=S(E=>{const L=E/2;return[L/(2.5+E/50),L]},"calcEllipseRadius"),{shapeSvg:c,bbox:h}=await Ct(e,t,mt(t)),u=s(t!=null&&t.height?t==null?void 0:t.height:h.height),[d,f]=l(u),y=_E(u,d,f),g=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2+y-y,m=u,{cssStyles:v}=t,x=[{x:g/2,y:-m/2},{x:-g/2,y:-m/2},...Sm(-g/2,-m/2,-g/2,m/2,d,f,!1),{x:g/2,y:m/2},...Sm(g/2,m/2,g/2,-m/2,d,f,!0)],w=ct.svg(c),b=ut(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const C=It(x),k=w.path(C,b),T=c.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),v&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",v),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(${d/2}, 0)`),dt(t,T),t.intersect=function(E){return at.polygon(t,x,E)},c}S(AE,"bowTieRect");function rn(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}S(rn,"insertPolygonShape");var uh=12;async function OE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?28:n,o=t.look==="neo"?24:n,{shapeSvg:s,bbox:l}=await Ct(e,t,mt(t)),c=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?a*2:a+uh),h=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?o*2:o),u=0,d=c,f=-h,y=0,p=[{x:u+uh,y:f},{x:d,y:f},{x:d,y},{x:u,y},{x:u,y:f+uh},{x:u+uh,y:f}];let g;const{cssStyles:m}=t;if(t.look==="handDrawn"){const v=ct.svg(s),x=ut(t,{}),w=It(p),b=v.path(w,x);g=s.insert(()=>b,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),m&&g.attr("style",m)}else g=rn(s,c,h,p);return i&&g.attr("style",i),dt(t,g),t.intersect=function(v){return at.polygon(t,p,v)},s}S(OE,"card");function BE(e,t){const{nodeStyles:r}=ft(t);t.label="";const i=e.insert("g").attr("class",mt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=ct.svg(i),l=ut(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=It(o),h=s.path(c,l),u=i.insert(()=>h,":first-child");return n&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(d){return at.polygon(t,o,d)},i}S(BE,"choice");async function Hb(e,t,r){const{labelStyles:i,nodeStyles:n}=ft(t);t.labelStyle=i;const{shapeSvg:a,bbox:o,halfPadding:s}=await Ct(e,t,mt(t)),l=16,c=(r==null?void 0:r.padding)??s,h=t.look==="neo"?o.width/2+l*2:o.width/2+c;let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const f=ct.svg(a),y=ut(t,{}),p=f.circle(0,0,h*2,y);u=a.insert(()=>p,":first-child"),u.attr("class","basic label-container").attr("style",Ee(d))}else u=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",h).attr("cx",0).attr("cy",0);return dt(t,u),t.calcIntersect=function(f,y){const p=f.width/2;return at.circle(f,p,y)},t.intersect=function(f){return X.info("Circle intersect",t,h,f),at.circle(t,h,f)},a}S(Hb,"circle");function $E(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,n={x:i/2*t,y:i/2*r},a={x:-(i/2)*t,y:i/2*r},o={x:-(i/2)*t,y:-(i/2)*r},s={x:i/2*t,y:-(i/2)*r};return`M ${a.x},${a.y} L ${s.x},${s.y}
304                   M ${n.x},${n.y} L ${o.x},${o.y}`}S($E,"createLine");function EE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",mt(t)).attr("id",t.domId??t.id),a=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:o}=t,s=ct.svg(n),l=ut(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=s.circle(0,0,a*2,l),h=$E(a),u=s.path(h,l),d=n.insert(()=>c,":first-child");return d.insert(()=>u),d.attr("class","outer-path"),o&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",i),dt(t,d),t.intersect=function(f){return X.info("crossedCircle intersect",t,{radius:a,point:f}),at.circle(t,a,f)},n}S(EE,"crossedCircle");function Oi(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,h=(a*M
vendor: 4,117 bytes, line 304
304ath.PI/180-s)/(i-1);for(let u=0;u<i;u++){const d=s+u*h,f=e+r*Math.cos(d),y=t+r*Math.sin(d);o.push({x:-f,y:-y})}return o}S(Oi,"generateCirclePoints");async function PE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Ct(e,t,mt(t)),s=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=a.width+s,h=a.height+l,u=Math.max(5,h*.1),{cssStyles:d}=t,f=[...Oi(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...Oi(c/2+u*2,-u,u,20,-180,-270),...Oi(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...Oi(c/2,h/2,u,20,0,90)],y=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...Oi(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...Oi(c/2+c*.1,-u,u,20,-180,-270),...Oi(c/2+c*.1,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...Oi(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2,y:h/2+u}],p=ct.svg(n),g=ut(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const v=It(f).replace("Z",""),x=p.path(v,g),w=It(y),b=p.path(w,{...g}),C=n.insert("g",":first-child");return C.insert(()=>b,":first-child").attr("stroke-opacity",0),C.insert(()=>x,":first-child"),C.attr("class","text"),d&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",i),C.attr("transform",`translate(${u}, 0)`),o.attr("transform",`translate(${-c/2+u-(a.x-(a.left??0))},${-h/2+(t.padding??0)/2-(a.y-(a.top??0))})`),dt(t,C),t.intersect=function(k){return at.polygon(t,y,k)},n}S(PE,"curlyBraceLeft");function Bi(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,h=(a*Math.PI/180-s)/(i-1);for(let u=0;u<i;u++){const d=s+u*h,f=e+r*Math.cos(d),y=t+r*Math.sin(d);o.push({x:f,y})}return o}S(Bi,"generateCirclePoints");async function LE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Ct(e,t,mt(t)),s=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=a.width+(t.look==="neo"?s*2:s),h=a.height+(t.look==="neo"?l*2:l),u=Math.max(5,h*.1),{cssStyles:d}=t,f=[...Bi(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...Bi(c/2+u*2,-u,u,20,-180,-270),...Bi(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...Bi(c/2,h/2,u,20,0,90)],y=[{x:-c/2,y:-h/2-u},{x:c/2,y:-h/2-u},...Bi(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...Bi(c/2+u*2,-u,u,20,-180,-270),...Bi(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...Bi(c/2,h/2,u,20,0,90),{x:c/2,y:h/2+u},{x:-c/2,y:h/2+u}],p=ct.svg(n),g=ut(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const v=It(f).replace("Z",""),x=p.path(v,g),w=It(y),b=p.path(w,{...g}),C=n.insert("g",":first-child");return C.insert(()=>b,":first-child").attr("stroke-opacity",0),C.insert(()=>x,":first-child"),C.attr("class","text"),d&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",i),C.attr("transform",`translate(${-u}, 0)`),o.attr("transform",`translate(${-c/2+(t.padding??0)/2-(a.x-(a.left??0))},${-h/2+(t.padding??0)/2-(a.y-(a.top??0))})`),dt(t,C),t.intersect=function(k){return at.polygon(t,y,k)},n}S(LE,"curlyBraceRight");function Me(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,h=(a*Math.PI/180-s)/(i-1);for(let u=0;u<i;u++){const d=s+u*h,f=e+r*Math.cos(d),y=t+r*Math.sin(d);o.push({x:-f,y:-y})}return o}S(Me,"generateCirclePoints");async function ME(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Ct(e,t,mt(t)),s=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=a.width+(t.look==="neo"?s*2:s),h=a.height+(t.look==="neo"?l*2:l),u=Math.max(5,h*.1),{cssStyles:d}=t,f=[...Me(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...Me(c/2+u*2,-u,u,20,-180,-270),...Me(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...Me(c/2,h/2,u,20,0,90)],y=[...Me(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...Me(-c/2-u/2,-u,u,20,0,90),...Me(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...Me(-c/2+u+u/2,h/2,u,30,-180,-270)],p=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...Me(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...Me(c/2+u*2,-u,u,20,-180,-270),...Me(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...Me(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2-u-u/2,y:h/2+u},...Me(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u}
304,...Me(-c/2-u/2,-u,u,20,0,90),...Me(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...Me(-c/2+u+u/2,h/2,u,30,-180,-270)],g=ct.svg(n),m=ut(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=It(f).replace("Z",""),w=g.path(x,m),C=It(y).replace("Z",""),k=g.path(C,m),T=It(p),E=g.path(T,{...m}),L=n.insert("g",":first-child");return L.insert(()=>E,":first-child").attr("stroke-opacity",0),L.insert(()=>w,":first-child"),L.insert(()=>k,":first-child"),L.attr("class","text"),d&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${u-u/4}, 0)`),o.attr("transform",`translate(${-c/2+(t.padding??0)/2-(a.x-(a.left??0))},${-h/2+(t.padding??0)/2-(a.y-(a.top??0))})`),dt(t,L),t.intersect=function(P){return at.polygon(t,p,P)},n}S(ME,"curlyBraces");async function FE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n,s=20,l=5,{shapeSvg:c,bbox:h}=await Ct(e,t,mt(t)),u=Math.max(s,(h.width+a*2)*1.25,(t==null?void 0:t.width)??0),d=Math.max(l,h.height+o*2,(t==null?void 0:t.height)??0),f=d/2,{cssStyles:y}=t,p=ct.svg(c),g=ut(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=u,v=d,x=m-f,w=v/4,b=[{x,y:0},{x:w,y:0},{x:0,y:v/2},{x:w,y:v},{x,y:v},...hc(-x,-v/2,f,50,270,90)],C=It(b),k=p.path(C,g),T=c.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),T.attr("transform",`translate(${-u/2}, ${-d/2})`),dt(t,T),t.intersect=function(E){return at.polygon(t,b,E)},c}S(FE,"curvedTrapezoid");var Dgt=S((e,t,r,i,n,a)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),Rgt=S((e,t,r,i,n,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),jgt=S((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),IS=8,DS=8;async function IE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?24:n,o=t.look==="neo"?24:n;if(t.width||t.height){const g=t.width??0;t.width=(t.width??0)-o,t.width<DS&&(t.width=DS);const v=g/2/(2.5+g/50);t.height=(t.height??0)-a-v*3,t.height<IS&&(t.height=IS)}const{shapeSvg:s,bbox:l,label:c}=await Ct(e,t,mt(t)),h=(t.width?t.width:l.width)+o,u=h/2,d=u/(2.5+h/50),f=(t.height?t.height:l.height)+a+d;let y;const{cssStyles:p}=t;if(t.look==="handDrawn"){const g=ct.svg(s),m=Rgt(0,0,h,f,u,d),v=jgt(0,d,h,f,u,d),x=ut(t,{}),w=g.path(m,x),b=g.path(v,ut(t,{fill:"none"}));y=s.insert(()=>b,":first-child"),y=s.insert(()=>w,":first-child"),y.attr("class","basic label-container"),p&&y.attr("style",p)}else{const g=Dgt(0,0,h,f,u,d);y=s.insert("path",":first-child").attr("d",g).attr("class","basic label-container outer-path").attr("style",Ee(p)).attr("style",i)}return y.attr("label-offset-y",d),y.attr("transform",`translate(${-h/2}, ${-(f/2+d)})`),dt(t,y),c.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+(t.padding??0)/1.5-(l.y-(l.top??0))})`),t.intersect=function(g){const m=at.rect(t,g),v=m.x-(t.x??0);if(u!=0&&(Math.abs(v)<(t.width??0)/2||Math.abs(v)==(t.width??0)/2&&Math.abs(m.y-(t.y??0))>(t.height??0)/2-d)){let x=d*d*(1-v*v/(u*u));x>0&&(x=Math.sqrt(x)),x=d-x,g.y-(t.y??0)>0&&(x=-x),m.y+=x}return m},s}S(IE,"cylinder");async function ks(e,t,r){const{labelStyles:i,nodeStyles:n}=ft(t);t.labelStyle=i;const{shapeSvg:a,bbox:o}=await Ct(e,t,mt(t)),s=Math.max(o.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),l=Math.max(o.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),c=-s/2,h=-l/2;let u,{rx:d,ry:f}=t;const{cssStyles:y}=t;if(r!=null&&r.rx&&r.ry&&(d=r.rx,f=r.ry),t.look==="handDrawn"){const p=ct.svg(a),g=ut(t,{}),m=d||f?p.path(Mn(c,h,s,l,d||0),g):p.rectangle(c,h,s,l,g);u=a.insert(()=>m,":first-child"),u.attr("class","basic label-container").attr("style",Ee(y))}else u=a.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",Ee(d
304)).attr("ry",Ee(f)).attr("x",c).attr("y",h).attr("width",s).attr("height",l);return dt(t,u),t.calcIntersect=function(p,g){return at.rect(p,g)},t.intersect=function(p){return at.rect(t,p)},a}S(ks,"drawRect");async function DE(e,t){const{cssClasses:r,labelPaddingX:i,labelPaddingY:n,padding:a,width:o,height:s}=t,l={rx:0,ry:0,labelPaddingX:i??(a??0)*2,labelPaddingY:n??a??0},c=await ks(e,t,l);if(t.look==="handDrawn"){const f=ct.svg(c),y=ut(t,{}),p=c.select(".basic.label-container > path:nth-child(2)"),g=p.node();if(!g)return c;let m=null;if(g instanceof SVGGraphicsElement)m=g.getBBox();else return c;return c.insert(()=>f.line(m.x,m.y,m.x+m.width,m.y,y),".basic.label-container g.label"),c.insert(()=>f.line(m.x,m.y+m.height,m.x+m.width,m.y+m.height,y),".basic.label-container g.label"),p.remove(),c}const h=c.select(".basic.label-container"),u=(Number(h.attr("width"))||o)??0,d=(Number(h.attr("height"))||s)??0;return u>0&&d>0&&h.attr("stroke-dasharray",`${u} ${d}`),c}S(DE,"datastore");async function RE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?16:t.padding??0,{shapeSvg:o,bbox:s,label:l}=await Ct(e,t,mt(t)),c=s.width+n,h=s.height+a,u=h*.2,d=-c/2,f=-h/2-u/2,{cssStyles:y}=t,p=ct.svg(o),g=ut(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:d,y:f+u},{x:-d,y:f+u},{x:-d,y:-f},{x:d,y:-f},{x:d,y:f},{x:-d,y:f},{x:-d,y:f+u}],v=p.polygon(m.map(w=>[w.x,w.y]),g),x=o.insert(()=>v,":first-child");return x.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),l.attr("transform",`translate(${d+(t.padding??0)/2-(s.x-(s.left??0))}, ${f+u+(t.padding??0)/2-(s.y-(s.top??0))})`),dt(t,x),t.intersect=function(w){return at.rect(t,w)},o}S(RE,"dividedRectangle");async function jE(e,t){var f,y;const{labelStyles:r,nodeStyles:i}=ft(t),n=t.look==="neo"?12:5;t.labelStyle=r;const a=t.padding??0,o=t.look==="neo"?16:a,{shapeSvg:s,bbox:l}=await Ct(e,t,mt(t)),c=(t!=null&&t.width?(t==null?void 0:t.width)/2:l.width/2)+(o??0),h=c-n;let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=ct.svg(s),g=ut(t,{roughness:.2,strokeWidth:2.5}),m=ut(t,{roughness:.2,strokeWidth:1.5}),v=p.circle(0,0,c*2,g),x=p.circle(0,0,h*2,m);u=s.insert("g",":first-child"),u.attr("class",Ee(t.cssClasses)).attr("style",Ee(d)),(f=u.node())==null||f.appendChild(v),(y=u.node())==null||y.appendChild(x)}else{u=s.insert("g",":first-child");const p=u.insert("circle",":first-child"),g=u.insert("circle");u.attr("class","basic label-container").attr("style",i),p.attr("class","outer-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return dt(t,u),t.intersect=function(p){return X.info("DoubleCircle intersect",t,c,p),at.circle(t,c,p)},s}S(jE,"doublecircle");function NE(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=ft(t);t.label="",t.labelStyle=i;const a=e.insert("g").attr("class",mt(t)).attr("id",t.domId??t.id),o=7,{cssStyles:s}=t,l=ct.svg(a),{nodeBorder:c}=r,h=ut(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const u=l.circle(0,0,o*2,h),d=a.insert(()=>u,":first-child");return d.selectAll("path").attr("style",`fill: ${c} !important;`),s&&s.length>0&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",s),n&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",n),dt(t,d),t.intersect=function(f){return X.info("filledCircle intersect",t,{radius:o,point:f}),at.circle(t,o,f)},a}S(NE,"filledCircle");var RS=10,jS=10;async function zE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<RS&&(t.height=RS),t.width=((t==null?void 0:t.width)??0)-a-a/2,t.width<jS&&(t.width=jS));const{shapeSvg:o,bbox:s,label:l}=await Ct(e,t,mt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:s.width)+(a??0),h=t!=null&&t.height?t==null?void 0:t.height:c+s.height,u=h,d=[{x:0,y:-h},{x:u,y:-h},{x:u/2,y:0}],{cssStyles:f}=t,y=ct.svg(o),p=ut(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=It(d),m=y.path(g,p),v=o.insert(()=>m,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return f&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",i),t.width=c,t.height=h,dt(t,v),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}
304, ${-h/2+(t.padding??0)/2+(s.y-(s.top??0))})`),t.intersect=function(x){return X.info("Triangle intersect",t,d,x),at.polygon(t,d,x)},o}S(zE,"flippedTriangle");function WE(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:a}=ft(t);t.label="";const o=e.insert("g").attr("class",mt(t)).attr("id",t.domId??t.id),{cssStyles:s}=t;let l=Math.max(70,(t==null?void 0:t.width)??0),c=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(l=Math.max(10,(t==null?void 0:t.width)??0),c=Math.max(70,(t==null?void 0:t.height)??0));const h=-1*l/2,u=-1*c/2,d=ct.svg(o),f=ut(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const y=d.rectangle(h,u,l,c,f),p=o.insert(()=>y,":first-child");s&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",s),a&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",a),dt(t,p);const g=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=g/2||0,t.height+=g/2||0),t.intersect=function(m){return at.rect(t,m)},o}S(WE,"forkJoin");async function qE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=15,a=10,o=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=((t==null?void 0:t.height)??0)-s*2,t.height<a&&(t.height=a),t.width=((t==null?void 0:t.width)??0)-o*2,t.width<n&&(t.width=n));const{shapeSvg:l,bbox:c}=await Ct(e,t,mt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:Math.max(n,c.width))+o*2,u=(t!=null&&t.height?t==null?void 0:t.height:Math.max(a,c.height))+s*2,d=u/2,{cssStyles:f}=t,y=ct.svg(l),p=ut(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-h/2,y:-u/2},{x:h/2-d,y:-u/2},...hc(-h/2+d,0,d,50,90,270),{x:h/2-d,y:u/2},{x:-h/2,y:u/2}],m=It(g),v=y.path(m,p),x=l.insert(()=>v,":first-child");return x.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),dt(t,x),t.intersect=function(w){return X.info("Pill intersect",t,{radius:d,point:w}),at.polygon(t,g,w)},l}S(qE,"halfRoundedRectangle");var Ngt=S((e,t,r,i,n)=>[`M${e+n},${t}`,`L${e+r-n},${t}`,`L${e+r},${t-i/2}`,`L${e+r-n},${t-i}`,`L${e+n},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function HE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t),n=t.look==="neo"?3.5:4;t.labelStyle=r;const a=t.padding??0,o=70,s=32,l=t.look==="neo"?o:a,c=t.look==="neo"?s:a;if(t.width||t.height){const x=(t.height??0)/n;t.width=((t==null?void 0:t.width)??0)-2*x-c,t.height=(t.height??0)-l}const{shapeSvg:h,bbox:u}=await Ct(e,t,mt(t)),d=(t!=null&&t.height?t==null?void 0:t.height:u.height)+l,f=d/n,y=(t!=null&&t.width?t==null?void 0:t.width:u.width)+2*f+c,p=[{x:f,y:0},{x:y-f,y:0},{x:y,y:-d/2},{x:y-f,y:-d},{x:f,y:-d},{x:0,y:-d/2}];let g;const{cssStyles:m}=t;if(t.look==="handDrawn"){const v=ct.svg(h),x=ut(t,{}),w=Ngt(0,0,y,d,f),b=v.path(w,x);g=h.insert(()=>b,":first-child").attr("transform",`translate(${-y/2}, ${d/2})`),m&&g.attr("style",m)}else g=rn(h,y,d,p);return i&&g.attr("style",i),t.width=y,t.height=d,dt(t,g),t.intersect=function(v){return at.polygon(t,p,v)},h}S(HE,"hexagon");async function UE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await Ct(e,t,mt(t)),a=Math.max(30,(t==null?void 0:t.width)??0),o=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:s}=t,l=ct.svg(n),c=ut(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const h=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],u=It(h),d=l.path(u,c),f=n.insert(()=>d,":first-child");return f.attr("class","basic label-container outer-path"),s&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",s),i&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",i),f.attr("transform",`translate(${-a/2}, ${-o/2})`),dt(t,f),t.intersect=function(y){return X.info("Pill intersect",t,{points:h}),at.polygon(t,h,y)},n}S(UE,"hourglass");async function YE(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=ft(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:h,label:u}=await Ct(e,t,"icon-shape default"),d=t.pos==="t",f=s,y=s,{nodeBorder:p}=r,{stylesMap:g}=ws(t),m=-y/2,v=-f/2,x=t.label?8:0,w=ct.svg(c),b=ut(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const C=w.rectangle(m,v,y,f,b),k=Math.max(y,h.width),T=f+h.height+x,E=w.rectangle(-k/2,-T/2,k,T,{...b,fill:"transparent",stroke:"none"}),L=c.insert(()=>C,":first-child"),P=c.insert(()=>E);if(t.icon){const I=c.append("g");I.html(`<g>${await Pc(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const D=I.node().getBBox(),_=D.width,B=D.height,O=D.x,M=D.y;I.attr("transform",`translate(${-_/2-O}
304,${d?h.height/2+x/2-B/2-M:-h.height/2-x/2-B/2-M})`),I.attr("style",`color: ${g.get("stroke")??p};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-T/2:T/2-h.height})`),L.attr("transform",`translate(0,${d?h.height/2+x/2:-h.height/2-x/2})`),dt(t,P),t.intersect=function(I){if(X.info("iconSquare intersect",t,I),!t.label)return at.rect(t,I);const D=t.x??0,_=t.y??0,B=t.height??0;let O=[];return d?O=[{x:D-h.width/2,y:_-B/2},{x:D+h.width/2,y:_-B/2},{x:D+h.width/2,y:_-B/2+h.height+x},{x:D+y/2,y:_-B/2+h.height+x},{x:D+y/2,y:_+B/2},{x:D-y/2,y:_+B/2},{x:D-y/2,y:_-B/2+h.height+x},{x:D-h.width/2,y:_-B/2+h.height+x}]:O=[{x:D-y/2,y:_-B/2},{x:D+y/2,y:_-B/2},{x:D+y/2,y:_-B/2+f},{x:D+h.width/2,y:_-B/2+f},{x:D+h.width/2/2,y:_+B/2},{x:D-h.width/2,y:_+B/2},{x:D-h.width/2,y:_-B/2+f},{x:D-y/2,y:_-B/2+f}],at.polygon(t,O,I)},c}S(YE,"icon");async function GE(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=ft(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:h,label:u}=await Ct(e,t,"icon-shape default"),d=20,f=t.label?8:0,y=t.pos==="t",{nodeBorder:p,mainBkg:g}=r,{stylesMap:m}=ws(t),v=ct.svg(c),x=ut(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const w=m.get("fill");x.stroke=w??g;const b=c.append("g");t.icon&&b.html(`<g>${await Pc(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const C=b.node().getBBox(),k=C.width,T=C.height,E=C.x,L=C.y,P=Math.max(k,T)*Math.SQRT2+d*2,I=v.circle(0,0,P,x),D=Math.max(P,h.width),_=P+h.height+f,B=v.rectangle(-D/2,-_/2,D,_,{...x,fill:"transparent",stroke:"none"}),O=c.insert(()=>I,":first-child"),M=c.insert(()=>B);return b.attr("transform",`translate(${-k/2-E},${y?h.height/2+f/2-T/2-L:-h.height/2-f/2-T/2-L})`),b.attr("style",`color: ${m.get("stroke")??p};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${y?-_/2:_/2-h.height})`),O.attr("transform",`translate(0,${y?h.height/2+f/2:-h.height/2-f/2})`),dt(t,M),t.intersect=function(F){return X.info("iconSquare intersect",t,F),at.rect(t,F)},c}S(GE,"iconCircle");async function VE(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=ft(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await Ct(e,t,"icon-shape default"),f=t.pos==="t",y=s+u*2,p=s+u*2,{nodeBorder:g,mainBkg:m}=r,{stylesMap:v}=ws(t),x=-p/2,w=-y/2,b=t.label?8:0,C=ct.svg(c),k=ut(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=v.get("fill");k.stroke=T??m;const E=C.path(Mn(x,w,p,y,5),k),L=Math.max(p,h.width),P=y+h.height+b,I=C.rectangle(-L/2,-P/2,L,P,{...k,fill:"transparent",stroke:"none"}),D=c.insert(()=>E,":first-child").attr("class","icon-shape2"),_=c.insert(()=>I);if(t.icon){const B=c.append("g");B.html(`<g>${await Pc(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const O=B.node().getBBox(),M=O.width,F=O.height,$=O.x,N=O.y;B.attr("transform",`translate(${-M/2-$},${f?h.height/2+b/2-F/2-N:-h.height/2-b/2-F/2-N})`),B.attr("style",`color: ${v.get("stroke")??g};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-P/2:P/2-h.height})`),D.attr("transform",`translate(0,${f?h.height/2+b/2:-h.height/2-b/2})`),dt(t,_),t.intersect=function(B){if(X.info("iconSquare intersect",t,B),!t.label)return at.rect(t,B);const O=t.x??0,M=t.y??0,F=t.height??0;let $=[];return f?$=[{x:O-h.width/2,y:M-F/2},{x:O+h.width/2,y:M-F/2},{x:O+h.width/2,y:M-F/2+h.height+b},{x:O+p/2,y:M-F/2+h.height+b},{x:O+p/2,y:M+F/2},{x:O-p/2,y:M+F/2},{x:O-p/2,y:M-F/2+h.height+b},{x:O-h.width/2,y:M-F/2+h.height+b}]:$=[{x:O-p/2,y:M-F/2},{x:O+p/2,y:M-F/2},{x:O+p/2,y:M-F/2+y},{x:O+h.width/2,y:M-F/2+y},{x:O+h.width/2/2,y:M+F/2},{x:O-h.width/2,y:M+F/2},{x:O-h.width/2,y:M-F/2+y},{x:O-p/2,y:M-F/2+y}],at.polygon(t,$,B)},c}S(VE,"iconRounded");async function XE(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=ft(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await Ct(e,t,"icon-shape default"),f=t.pos==="t",y=s+u*2,p=s+u*2,{nodeBorder:g,mainBkg:m}=r,{stylesMap:v}=ws(t),x=-p/2,w=-y/2,b=t.label?8:0,C=ct.svg(c),k=ut(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=v.get("fill");k.stroke=T??m;const E=C.path(Mn(x,w,p,y,.1),k),L=Math.max(p,h.width),P=y+h.height+b,I=C.rectangle(-L/2,-P/2,L,P,{...k,fill:"transparent",stroke:"none"}),D=c.insert(()=>E,":first-child"),_=c.insert(()=>I);if(t.icon){const B=c.append("g");B.html(`<g>${await Pc(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const O=B.node().getBBox(),M=O.width,F=O.height,$=O.x,N=O.y;B.attr("transform",`translate(${-M/2-$},${f?h.height/2+b/2-F/2-N:-h.height/2-b/2-F/2-N})`),B.attr("style",`color: ${v.get("stroke")??g};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-P/2:P/2-h.height})`),D.attr("transform",`translate(0,${f?h.height/2+b/2:-h.height/2-b/2})`),dt(t,_),t.intersect=function(B){if(X.info("iconSquare intersect",t,B),!t.label)return at.rect(t,B);const O=t.x??0,M=t.y??0,F=t.height??0;let $=[];return f?$=[{x:O-h.width/2,y:M-F/2},{x:O+h.width/2,y:M-F/2},{x:O+h.width/2,y:M-F/2+h.height+b},{x:O+p/2,y:M-F/2+h.height+b},{x:O+p/2,y:M+F/2},{x:O-p/2,y:M+F/2},{x:O-p/2,y:M-F/2+h.height+b},{x:O-h.width/2,y:M-F/2+h.height+b}]:$=[{x:O-p/2,y:M-F/2},{x:O+p/2,y:M-F/2},{x:O+p/2,y:M-F/2+y},{x:O+h.width/2,y:M-F/2+y},{x:O+h.width/2/2,y:M+F/2},{x:O-h.width/2,y:M+F/2},{x:O-h.width/2,y:M-F/2+y},{x:O-p/2,y:M-F/2+y}],at.polygon(t,$,B)},c}S(XE,"iconSquare");async function KE(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();
304const n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/a;const{labelStyles:o}=ft(t);t.labelStyle=o;const s=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const l=Math.max(t.label?s??0:0,(t==null?void 0:t.assetWidth)??n),c=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:l,h=t.constraint==="on"?c/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??a;t.width=Math.max(c,s??0);const{shapeSvg:u,bbox:d,label:f}=await Ct(e,t,"image-shape default"),y=t.pos==="t",p=-c/2,g=-h/2,m=t.label?8:0,v=ct.svg(u),x=ut(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const w=v.rectangle(p,g,c,h,x),b=Math.max(c,d.width),C=h+d.height+m,k=v.rectangle(-b/2,-C/2,b,C,{...x,fill:"none",stroke:"none"}),T=u.insert(()=>w,":first-child"),E=u.insert(()=>k);if(t.img){const L=u.append("image");L.attr("href",t.img),L.attr("width",c),L.attr("height",h),L.attr("preserveAspectRatio","none"),L.attr("transform",`translate(${-c/2},${y?C/2-h:-C/2})`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-h/2-d.height/2-m/2:h/2-d.height/2+m/2})`),T.attr("transform",`translate(0,${y?d.height/2+m/2:-d.height/2-m/2})`),dt(t,E),t.intersect=function(L){if(X.info("iconSquare intersect",t,L),!t.label)return at.rect(t,L);const P=t.x??0,I=t.y??0,D=t.height??0;let _=[];return y?_=[{x:P-d.width/2,y:I-D/2},{x:P+d.width/2,y:I-D/2},{x:P+d.width/2,y:I-D/2+d.height+m},{x:P+c/2,y:I-D/2+d.height+m},{x:P+c/2,y:I+D/2},{x:P-c/2,y:I+D/2},{x:P-c/2,y:I-D/2+d.height+m},{x:P-d.width/2,y:I-D/2+d.height+m}]:_=[{x:P-c/2,y:I-D/2},{x:P+c/2,y:I-D/2},{x:P+c/2,y:I-D/2+h},{x:P+d.width/2,y:I-D/2+h},{x:P+d.width/2/2,y:I+D/2},{x:P-d.width/2,y:I+D/2},{x:P-d.width/2,y:I-D/2+h},{x:P-c/2,y:I-D/2+h}],at.polygon(t,_,L)},u}S(KE,"imageSquare");async function ZE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=n,o=t.look==="neo"?n*2:n,{shapeSvg:s,bbox:l}=await Ct(e,t,mt(t)),c=Math.max(l.width+(o??0)*2,(t==null?void 0:t.width)??0),h=Math.max(l.height+(a??0)*2,(t==null?void 0:t.height)??0),u=[{x:0,y:0},{x:c,y:0},{x:c+3*h/6,y:-h},{x:-3*h/6,y:-h}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const y=ct.svg(s),p=ut(t,{}),g=It(u),m=y.path(g,p);d=s.insert(()=>m,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),f&&d.attr("style",f)}else d=rn(s,c,h,u);return i&&d.attr("style",i),t.width=c,t.height=h,dt(t,d),t.intersect=function(y){return at.polygon(t,u,y)},s}S(ZE,"inv_trapezoid");async function QE(e,t){const{shapeSvg:r,bbox:i,label:n}=await Ct(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),dt(t,a),t.intersect=function(l){return at.rect(t,l)},r}S(QE,"labelRect");async function JE(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=n,o=t.look==="neo"?n*2:n,{shapeSvg:s,bbox:l}=await Ct(e,t,mt(t)),c=((t==null?void 0:t.height)??l.height)+a,h=((t==null?void 0:t.width)??l.width)+o,u=[{x:0,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:-(3*c)/6,y:-c}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const y=ct.svg(s),p=ut(t,{}),g=It(u),m=y.path(g,p);d=s.insert(()=>m,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=rn(s,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,dt(t,d),t.intersect=function(y){return at.polygon(t,u,y)},s}S(JE,"lean_left");async function tP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=n,o=t.look==="neo"?n*2:n,{shapeSvg:s,bbox:l}=await Ct(e,t,mt(t)),c=((t==null?void 0:t.height)??l.height)+a,h=((t==null?void 0:t.width)??l.width)+o,u=[{x:-3*c/6,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:0,y:-c}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const y=ct.svg(s),p=ut(t,{}),g=It(u),m=y.path(g,p);d=s.insert(()=>m,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=rn(s,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,dt(t,d),t.intersect=function(y){return at.polygon(t,u,y)},s}S(tP,"lean_right");function eP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",mt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,o=Math.max(35,(t==null?void 0:t.width)??0),s=Math.max(35,(t==null?void 0:t.height)??0),l=7,c=[{x:o,y:0},{x:0,y:s+l/2},{x:o-2*l,y:s+l/2},{x:0,y:2*s},{x:o,y:s-l/2},{x:2*l,y:s-l/2}],h=ct.svg(n),u=ut(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=It(c),f=h.path(d,u),y=n.insert(()=>f,":first-child");return y.attr("class","outer-path"),a&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(-${o/2},${-s})`),dt(t,y),t.intersect=function(p){return X.info("lightningBolt intersect",t,p),at.polygon(t,c,p)},n}S(eP,"lightningBolt");var zgt=S((e,t,r,i,n,a,o)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),Wgt=S((e,t,r,i,n,a,o)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),qgt=S((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),NS=10,zS=10;async function rP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,o=t.look==="neo"?24:n;if(t.width||t.height){const m=t.width??0;t.width=(t.width??0)-a,t.width<zS&&(t.width=zS);const x=m/2/(2.5+m/50);t.height=(t.height??0)-o-x*3,t.height<NS&&(t.height=NS)}const{shapeSvg:s,bbox:l,label:c}=await Ct(e,t,mt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2,u=h/2,d=u/(2.5+h/50),f=(t!=null&&t.height?t==null?void 0:t.height:l.height)+d+o*2,y=f*.1;let p;const{cssStyles:g}=t;if(t.look==="handDrawn"){const m=ct.svg(s),v=Wgt(0,0,h,f,u,d,y),x=qgt(0,d,h,f,u,d),w=ut(t,{}),b=m.path(v,w),C=m.path(x,w);s.insert(()=>C,":first-child").attr("class","line"),p=s.insert(()=>b,":first-child"),p.attr("class","basic label-container"),g&&p.attr("style",g)}else{const m=zgt(0,0,h,f,u,d,y);p=s.insert("path",":first-child").attr("d",m).attr("class","basic label-container outer-path").attr("style",Ee(g)).attr("style",i)}return p.attr("label-offset-y",d),p.attr("transform",`translate(${-h/2}, ${-(f/2+d)})`),dt(t,p),c.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+d-(l.y-(l.top??0))}
304)`),t.intersect=function(m){const v=at.rect(t,m),x=v.x-(t.x??0);if(u!=0&&(Math.abs(x)<(t.width??0)/2||Math.abs(x)==(t.width??0)/2&&Math.abs(v.y-(t.y??0))>(t.height??0)/2-d)){let w=d*d*(1-x*x/(u*u));w>0&&(w=Math.sqrt(w)),w=d-w,m.y-(t.y??0)>0&&(w=-w),v.y+=w}return v},s}S(rP,"linedCylinder");async function iP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n;if(t.width||t.height){const w=t.width;t.width=(w??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-o*2,t.height<10&&(t.height=10)}const{shapeSvg:s,bbox:l,label:c}=await Ct(e,t,mt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+(a??0)*2,u=(t!=null&&t.height?t==null?void 0:t.height:l.height)+(o??0)*2,d=t.look==="neo"?u/4:u/8,f=u+d,{cssStyles:y}=t,p=ct.svg(s),g=ut(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:-h/2-h/2*.1,y:-f/2},{x:-h/2-h/2*.1,y:f/2},...An(-h/2-h/2*.1,f/2,h/2+h/2*.1,f/2,d,.8),{x:h/2+h/2*.1,y:-f/2},{x:-h/2-h/2*.1,y:-f/2},{x:-h/2,y:-f/2},{x:-h/2,y:f/2*1.1},{x:-h/2,y:-f/2}],v=p.polygon(m.map(w=>[w.x,w.y]),g),x=s.insert(()=>v,":first-child");return x.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(0,${-d/2})`),c.attr("transform",`translate(${-h/2+(t.padding??0)+h/2*.1/2-(l.x-(l.left??0))},${-u/2+(t.padding??0)-d/2-(l.y-(l.top??0))})`),dt(t,x),t.intersect=function(w){return at.polygon(t,m,w)},s}S(iP,"linedWaveEdgedRect");async function nP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n,s=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-a*2-2*s,10),t.height=Math.max(((t==null?void 0:t.height)??0)-o*2-2*s,10));const{shapeSvg:l,bbox:c,label:h}=await Ct(e,t,mt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+a*2+2*s,d=(t!=null&&t.height?t==null?void 0:t.height:c.height)+o*2+2*s,f=u-2*s,y=d-2*s,p=-f/2,g=-y/2,{cssStyles:m}=t,v=ct.svg(l),x=ut(t,{}),w=[{x:p-s,y:g+s},{x:p-s,y:g+y+s},{x:p+f-s,y:g+y+s},{x:p+f-s,y:g+y},{x:p+f,y:g+y},{x:p+f,y:g+y-s},{x:p+f+s,y:g+y-s},{x:p+f+s,y:g-s},{x:p+s,y:g-s},{x:p+s,y:g},{x:p,y:g},{x:p,y:g+s}],b=[{x:p,y:g+s},{x:p+f-s,y:g+s},{x:p+f-s,y:g+y},{x:p+f,y:g+y},{x:p+f,y:g},{x:p,y:g}];t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=It(w);let k=v.path(C,x);const T=It(b);let E=v.path(T,x);t.look!=="handDrawn"&&(k=Cm(k),E=Cm(E));const L=l.insert("g",":first-child");return L.insert(()=>k),L.insert(()=>E),L.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),h.attr("transform",`translate(${-(c.width/2)-s-(c.x-(c.left??0))}, ${-(c.height/2)+s-(c.y-(c.top??0))})`),dt(t,L),t.intersect=function(P){return at.polygon(t,w,P)},l}S(nP,"multiRect");async function aP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Ct(e,t,mt(t)),s=t.padding??0,l=t.look==="neo"?16:s,c=t.look==="neo"?12:s;let h=!0;(t.width||t.height)&&(h=!1,t.width=((t==null?void 0:t.width)??0)-l*2,t.height=((t==null?void 0:t.height)??0)-c*3);const u=Math.max(a.width,(t==null?void 0:t.width)??0)+l*2,d=Math.max(a.height,(t==null?void 0:t.height)??0)+c*3,f=t.look==="neo"?d/4:d/8,y=d+(h?f/2:-f/2),p=-u/2,g=-y/2,m=10,{cssStyles:v}=t,x=An(p-m,g+y+m,p+u-m,g+y+m,f,.8),w=x==null?void 0:x[x.length-1],b=[{x:p-m,y:g+m},{x:p-m,y:g+y+m},...x,{x:p+u-m,y:w.y-m},{x:p+u,y:w.y-m},{x:p+u,y:w.y-2*m},{x:p+u+m,y:w.y-2*m},{x:p+u+m,y:g-m},{x:p+m,y:g-m},{x:p+m,y:g},{x:p,y:g},{x:p,y:g+m}],C=[{x:p,y:g+m},{x:p+u-m,y:g+m},{x:p+u-m,y:w.y-m},{x:p+u,y:w.y-m},{x:p+u,y:g},{x:p,y:g}],k=ct.svg(n),T=ut(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const E=It(b),L=k.path(E,T),P=It(C),I=k.path(P,T),D=n.insert(()=>L,":first-child");return D.insert(()=>I),D.attr("class","basic label-container outer-path"),v&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",v),i&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",i),D.attr("transform",`translate(0,${-f/2})`),o.attr("transform",`translate(${-(a.width/2)-m-(a.x-(a.left??0))}, ${-(a.height/2)+m-f/2-(a.y-(a.top??0))})`),dt(t,D),t.intersect=function(_){return at.polygon(t,b,_)},n}S(aP,"multiWaveEdgedRectangle");
vendor: 4,672 bytes, line 304
304async function oP(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=ft(t);t.labelStyle=i,t.useHtmlLabels||or(oe())||(t.centerLabel=!0);const{shapeSvg:o,bbox:s,label:l}=await Ct(e,t,mt(t)),c=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-c/2,d=-h/2,{cssStyles:f}=t,y=ct.svg(o),p=ut(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=y.rectangle(u,d,c,h,p),m=o.insert(()=>g,":first-child");return m.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),f&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),dt(t,m),t.intersect=function(v){return at.rect(t,v)},o}S(oP,"note");var Hgt=S((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function sP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await Ct(e,t,mt(t)),o=a.width+(t.padding??0),s=a.height+(t.padding??0),l=o+s,c=.5,h=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const f=ct.svg(n),y=ut(t,{}),p=Hgt(0,0,l),g=f.path(p,y);u=n.insert(()=>g,":first-child").attr("transform",`translate(${-l/2+c}, ${l/2})`),d&&u.attr("style",d)}else u=rn(n,l,l,h),u.attr("transform",`translate(${-l/2+c}, ${l/2})`);return i&&u.attr("style",i),dt(t,u),t.calcIntersect=function(f,y){const p=f.width,g=[{x:p/2,y:0},{x:p,y:-p/2},{x:p/2,y:-p},{x:0,y:-p/2}],m=at.polygon(f,g,y);return{x:m.x-.5,y:m.y-.5}},t.intersect=function(f){return this.calcIntersect(t,f)},n}S(sP,"question");async function lP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?21:n??0,o=t.look==="neo"?12:n??0,{shapeSvg:s,bbox:l,label:c}=await Ct(e,t,mt(t)),h=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?a*2:a),u=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?o*2:o),d=-h/2,f=-u/2,y=f/2,p=[{x:d+y,y:f},{x:d,y:0},{x:d+y,y:-f},{x:-d,y:-f},{x:-d,y:f}],{cssStyles:g}=t,m=ct.svg(s),v=ut(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const x=It(p),w=m.path(x,v),b=s.insert(()=>w,":first-child");return b.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${-y/2},0)`),c.attr("transform",`translate(${-y/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),dt(t,b),t.intersect=function(C){return at.polygon(t,p,C)},s}S(lP,"rect_left_inv_arrow");async function cP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=a.insert("g"),s=a.insert("g").attr("class","label").attr("style",i),l=t.description,c=t.label,h=await pn(s,c,t.labelStyle,!0,!0);let u={width:0,height:0};if(or(jt())){const T=h.children[0],E=St(h);u=T.getBoundingClientRect(),E.attr("width",u.width),E.attr("height",u.height)}X.info("Text 2",l);const d=l||[],f=h.getBBox(),y=await pn(s,Array.isArray(d)?d.join("<br/>"):d,t.labelStyle,!0,!0),p=y.children[0],g=St(y);u=p.getBoundingClientRect(),g.attr("width",u.width),g.attr("height",u.height);const m=(t.padding||0)/2;St(y).attr("transform","translate( "+(u.width>f.width?0:(f.width-u.width)/2)+", "+(f.height+m+5)+")"),St(h).attr("transform","translate( "+(u.width<f.width?0:-(f.width-u.width)/2)+", 0)"),u=s.node().getBBox(),s.attr("transform","translate("+-u.width/2+", "+(-u.height/2-m+3)+")");const v=u.width+(t.padding||0),x=u.height+(t.padding||0),w=-u.width/2-m,b=-u.height/2-m;let C,k;if(t.look==="handDrawn"){const T=ct.svg(a),E=ut(t,{}),L=T.path(Mn(w,b,v,x,t.rx||0),E),P=T.line(-u.width/2-m,-u.height/2-m+f.height+m,u.width/2+m,-u.height/2-m+f.height+m,E);k=a.insert(()=>(X.debug("Rough node insert CXC",L),P),":first-child"),C=a.insert(()=>(X.debug("Rough node insert CXC",L),L),":first-child")}else C=o.insert("rect",":first-child"),k=o.insert("line"),C.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-m).attr("y",-u.height/2-m).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),k.attr("class","divider").attr("x1",-u.width/2-m).attr("x2",u.width/2+m).attr("y1",-u.height/2-m+f.height+m).attr("y2",-u.height/2-m+f.height+m);return dt(t,C),t.intersect=function(T){return at.rect(t,T)}
304,a}S(cP,"rectWithTitle");async function hP(e,t,{config:{themeVariables:r}}){const i=(r==null?void 0:r.radius)??5,n={rx:i,ry:i,labelPaddingX:((t==null?void 0:t.padding)??0)*1,labelPaddingY:((t==null?void 0:t.padding)??0)*1};return ks(e,t,n)}S(hP,"roundedRect");var zn=8;async function uP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0,{shapeSvg:o,bbox:s,label:l}=await Ct(e,t,mt(t)),c=((t==null?void 0:t.width)??s.width)+n*2+(t.look==="neo"?zn:zn*2),h=((t==null?void 0:t.height)??s.height)+a*2,u=c-zn,d=h,f=zn-c/2,y=-h/2,{cssStyles:p}=t,g=ct.svg(o),m=ut(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const v=[{x:f,y},{x:f+u,y},{x:f+u,y:y+d},{x:f-zn,y:y+d},{x:f-zn,y},{x:f,y},{x:f,y:y+d}],x=g.polygon(v.map(b=>[b.x,b.y]),m),w=o.insert(()=>x,":first-child");return w.attr("class","basic label-container outer-path").attr("style",Ee(p)),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),p&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),l.attr("transform",`translate(${zn/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),dt(t,w),t.intersect=function(b){return at.rect(t,b)},o}S(uP,"shadedProcess");async function fP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-a*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-o*2,10));const{shapeSvg:s,bbox:l,label:c}=await Ct(e,t,mt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2,u=((t!=null&&t.height?t==null?void 0:t.height:l.height)+o*2)*1.5,d=h,f=u/1.5,y=-d/2,p=-f/2,{cssStyles:g}=t,m=ct.svg(s),v=ut(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const x=[{x:y,y:p},{x:y,y:p+f},{x:y+d,y:p+f},{x:y+d,y:p-f/2}],w=It(x),b=m.path(w,v),C=s.insert(()=>b,":first-child");return C.attr("class","basic label-container  outer-path"),g&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),C.attr("transform",`translate(0, ${f/4})`),c.attr("transform",`translate(${-d/2+(t.padding??0)-(l.x-(l.left??0))}, ${-f/4+(t.padding??0)-(l.y-(l.top??0))})`),dt(t,C),t.intersect=function(k){return at.polygon(t,x,k)},s}S(fP,"slopedRect");async function dP(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,n=t.look==="neo"?12:r,a={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:n};return ks(e,t,a)}S(dP,"squareRect");async function pP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?20:n,o=t.look==="neo"?12:n,{shapeSvg:s,bbox:l}=await Ct(e,t,mt(t)),c=l.height+(t.look==="neo"?o*2:o),h=l.width+c/4+(t.look==="neo"?a*2:a),u=c/2,{cssStyles:d}=t,f=ct.svg(s),y=ut(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const p=[{x:-h/2+u,y:-c/2},{x:h/2-u,y:-c/2},...hc(-h/2+u,0,u,50,90,270),{x:h/2-u,y:c/2},...hc(h/2-u,0,u,50,270,450)],g=It(p),m=f.path(g,y),v=s.insert(()=>m,":first-child");return v.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",i),dt(t,v),t.intersect=function(x){return at.polygon(t,p,x)},s}S(pP,"stadium");async function gP(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return ks(e,t,r)}S(gP,"state");function yP(e,t,{config:{themeVariables:r}}){var v,x;const{labelStyles:i,nodeStyles:n}=ft(t);t.labelStyle=i;const{cssStyles:a}=t,{lineColor:o,stateBorder:s,nodeBorder:l,nodeShadow:c}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const h=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),u=ct.svg(h),d=ut(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const f=u.circle(0,0,t.width,{...d,stroke:o,strokeWidth:2}),y=s??l,p=(t.width??0)*5/14,g=u.circle(0,0,p,{...d,fill:y,stroke:y,strokeWidth:2,fillStyle:"solid"}),m=h.insert(()=>f,":first-child");if(m.insert(()=>g),t.look!=="handDrawn"&&m.attr("class","outer-path"),a&&m.selectAll("path").attr("style",a),n&&m.selectAll("path").attr("style",n),t.width<25&&c&&t.look!=="handDrawn"){const w=((x=(v=e.node())==null?void 0:v.ownerSVGElement)==null?void 0:x.id)??"",b=w?`${w}-drop-shadow-small`:"drop-shadow-small";m.attr("style",`filter:url(#${b})`)}return dt(t,m),t.intersect=function(w){return at.circle(t,(t.width??0)/2,w)},h}S(yP,"stateEnd");function mP(e,t,{config:{themeVariables:r}}){var s,l;const{lineColor:i,nodeShadow:n}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let o;if(t.look==="handDrawn"){const h=ct.svg(a).circle(0,0,t.width,Jdt(i));o=a.insert(()=>h),o.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else o=a.insert("circle",":first-child"),o.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&n&&t.look!=="handDrawn"){const c=((l=(s=e.node())==null?void 0:s.ownerSVGElement)==null?void 0:l.id)??"",h=c?`${c}-drop-shadow-small`:"drop-shadow-small";o.attr("style",`filter:url(#${h})`)}return dt(t,o),t.intersect=function(c){return at.circle(t,(t.width??7)/2,c)},a}S(mP,"stateStart");var Na=8;async function vP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=(t==null?void 0:t.padding)??8,a=t.look==="neo"?28:n,o=t.look==="neo"?12:n,{shapeSvg:s,bbox:l}=await Ct(e,t,mt(t)),c=((t==null?void 0:t.width)??l.width)+2*Na+a,h=((t==null?void 0:t.height)??l.height)+o,u=c-2*Na,d=h,f=-c/2,y=-h/2,p=[{x:0,y:0},{x:u,y:0},{x:u,y:-d},{x:0,y:-d},{x:0,y:0},{x:-8,y:0}
304,{x:u+8,y:0},{x:u+8,y:-d},{x:-8,y:-d},{x:-8,y:0}];if(t.look==="handDrawn"){const g=ct.svg(s),m=ut(t,{}),v=g.rectangle(f,y,u+16,d,m),x=g.line(f+Na,y,f+Na,y+d,m),w=g.line(f+Na+u,y,f+Na+u,y+d,m);s.insert(()=>x,":first-child"),s.insert(()=>w,":first-child");const b=s.insert(()=>v,":first-child"),{cssStyles:C}=t;b.attr("class","basic label-container").attr("style",Ee(C)),dt(t,b)}else{const g=rn(s,u,d,p);i&&g.attr("style",i),dt(t,g)}return t.intersect=function(g){return at.polygon(t,p,g)},s}S(vP,"subroutine");var Xp=.2;async function bP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n;(t.width||t.height)&&(t.height=Math.max(((t==null?void 0:t.height)??0)-o*2,10),t.width=Math.max(((t==null?void 0:t.width)??0)-a*2-Xp*(t.height+o*2),10));const{shapeSvg:s,bbox:l}=await Ct(e,t,mt(t)),c=(t!=null&&t.height?t==null?void 0:t.height:l.height)+o*2,h=Xp*c,u=Xp*c,f=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2+h-h,y=c,p=-f/2,g=-y/2,{cssStyles:m}=t,v=ct.svg(s),x=ut(t,{}),w=[{x:p-h/2,y:g},{x:p+f+h/2,y:g},{x:p+f+h/2,y:g+y},{x:p-h/2,y:g+y}],b=[{x:p+f-h/2,y:g+y},{x:p+f+h/2,y:g+y},{x:p+f+h/2,y:g+y-u}];t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=It(w),k=v.path(C,x),T=It(b),E=v.path(T,{...x,fillStyle:"solid"}),L=s.insert(()=>E,":first-child");return L.insert(()=>k,":first-child"),L.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),dt(t,L),t.intersect=function(P){return at.polygon(t,w,P)},s}S(bP,"taggedRect");async function xP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await Ct(e,t,mt(t)),s=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/8,h=.2*s,u=.2*l,d=l+c,{cssStyles:f}=t,y=ct.svg(n),p=ut(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-s/2-s/2*.1,y:d/2},...An(-s/2-s/2*.1,d/2,s/2+s/2*.1,d/2,c,.8),{x:s/2+s/2*.1,y:-d/2},{x:-s/2-s/2*.1,y:-d/2}],m=-s/2+s/2*.1,v=-d/2-u*.4,x=[{x:m+s-h,y:(v+l)*1.3},{x:m+s,y:v+l-u},{x:m+s,y:(v+l)*.9},...An(m+s,(v+l)*1.25,m+s-h,(v+l)*1.3,-l*.02,.5)],w=It(g),b=y.path(w,p),C=It(x),k=y.path(C,{...p,fillStyle:"solid"}),T=n.insert(()=>k,":first-child");return T.insert(()=>b,":first-child"),T.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-c/2-(a.y-(a.top??0))})`),dt(t,T),t.intersect=function(E){return at.polygon(t,g,E)},n}S(xP,"taggedWaveEdgedRectangle");async function CP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await Ct(e,t,mt(t)),o=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)||0),s=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)||0),l=-o/2,c=-s/2,h=n.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",o).attr("height",s),dt(t,h),t.intersect=function(u){return at.rect(t,u)},n}S(CP,"text");var Ugt=S((e,t,r,i,n,a)=>`M${e},${t}
305    a${n},${a} 0,0,1 0,${-i}
306    l${r},0
307    a${n},${a} 0,0,1 0,${i}
308    M${r},${-i}
309    a${n},${a} 0,0,0 0,${i}
310    l${-r},0`,"createCylinderPathD"),Ygt=S((e,t,r,i,n,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),Ggt=S((e,t,r,i,n,a)=>[`M${e+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),WS=5,qS=10;async function wP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?12:n/2;if(t.width||t.height){const p=t.height??0;t.height=(t.height??0)-a,t.height<WS&&(t.height=WS);const m=p/2/(2.5+p/50);t.width=(t.width??0)-a-m*3,t.width<qS&&(t.width=qS)}const{shapeSvg:o,bbox:s,label:l}=await Ct(e,t,mt(t)),c=(t.height?t.height:s.height)+a,h=c/2,u=h/(2.5+c/50),d=(t.width?t.width:s.width)+u+a,{cssStyles:f}=t;let y;if(t.look==="handDrawn"){const p=ct.svg(o),g=Ygt(0,0,d,c,u,h),m=Ggt(0,0,d,c,u,h),v=p.path(g,ut(t,{})),x=p.path(m,ut(t,{fill:"none"}));y=o.insert(()=>x,":first-child"),y=o.insert(()=>v,":first-child"),y.attr("class","basic label-container"),f&&y.attr("style",f)}else{const p=Ugt(0,0,d,c,u,h);y=o.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",Ee(f)).attr("style",i),y.attr("class","basic label-container outer-path"),f&&y.selectAll("path").attr("style",f),i&&y.selectAll("path").attr("style",i)}return y.attr("label-offset-x",u),y.attr("transform",`translate(${-d/2}, ${c/2} )`),l.attr("transform",`translate(${-(s.width/2)-u-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),dt(t,y),t.intersect=function(p){const g=at.rect(t,p),m=g.y-(t.y??0);if(h!=0&&(Math.abs(m)<(t.height??0)/2||Math.abs(m)==(t.height??0)/2&&Math.abs(g.x-(t.x??0))>(t.width??0)/2-u)){let v=u*u*(1-m*m/(h*h));v!=0&&(v=Math.sqrt(Math.abs(v))),v=u-v,p.x-(t.x??0)>0&&(v=-v),g.x+=v}return g},o}S(wP,"tiltedCylinder");async function SP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=(t.look==="neo",n),o=t.look==="neo"?n*2:n,{shapeSvg:s,bbox:l}=await Ct(e,t,mt(t)),c=((t==null?void 0:t.height)??l.height)+a,h=((t==null?void 0:t.width)??l.width)+o,u=[{x:-3*c/6,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:0,y:-c}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const y=ct.svg(s),p=ut(t,{}),g=It(u),m=y.path(g,p);d=s.insert(()=>m,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=rn(s,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,dt(t,d),t.intersect=function(y){return at.polygon(t,u,y)},s}S(SP,"trapezoid");async function kP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n,s=15,l=5;
310(t.width||t.height)&&(t.height=(t.height??0)-o*2,t.height<l&&(t.height=l),t.width=(t.width??0)-a*2,t.width<s&&(t.width=s));const{shapeSvg:c,bbox:h}=await Ct(e,t,mt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2,d=(t!=null&&t.height?t==null?void 0:t.height:h.height)+o*2,{cssStyles:f}=t,y=ct.svg(c),p=ut(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-u/2*.8,y:-d/2},{x:u/2*.8,y:-d/2},{x:u/2,y:-d/2*.6},{x:u/2,y:d/2},{x:-u/2,y:d/2},{x:-u/2,y:-d/2*.6}],m=It(g),v=y.path(m,p),x=c.insert(()=>v,":first-child");return x.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),dt(t,x),t.intersect=function(w){return at.polygon(t,g,w)},c}S(kP,"trapezoidalPentagon");var HS=10,US=10;async function TP(e,t){var w;const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-a)/2,t.width<US&&(t.width=US),t.height=(t==null?void 0:t.height)??0,t.height<HS&&(t.height=HS));const{shapeSvg:o,bbox:s,label:l}=await Ct(e,t,mt(t)),c=tn((w=jt().flowchart)==null?void 0:w.htmlLabels),h=(t!=null&&t.width?t==null?void 0:t.width:s.width)+a,u=t!=null&&t.height?t==null?void 0:t.height:h+s.height,d=u,f=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-u}],{cssStyles:y}=t,p=ct.svg(o),g=ut(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=It(f),v=p.path(m,g),x=o.insert(()=>v,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return y&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),t.width=h,t.height=u,dt(t,x),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${u/2-(s.height+(t.padding??0)/(c?2:1)-(s.y-(s.top??0)))})`),t.intersect=function(b){return X.info("Triangle intersect",t,f,b),at.polygon(t,f,b)},o}S(TP,"triangle");async function _P(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,o=t.look==="neo"?12:n;let s=!0;(t.width||t.height)&&(s=!1,t.width=((t==null?void 0:t.width)??0)-a*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-o*2,t.height<10&&(t.height=10));const{shapeSvg:l,bbox:c,label:h}=await Ct(e,t,mt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+(a??0)*2,d=(t!=null&&t.height?t==null?void 0:t.height:c.height)+(o??0)*2,f=t.look==="neo"?d/4:d/8,y=d+(s?f:-f),{cssStyles:p}=t,m=14-u,v=m>0?m/2:0,x=ct.svg(l),w=ut(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const b=[{x:-u/2-v,y:y/2},...An(-u/2-v,y/2,u/2+v,y/2,f,.8),{x:u/2+v,y:-y/2},{x:-u/2-v,y:-y/2}],C=It(b),k=x.path(C,w),T=l.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(0,${-f/2})`),h.attr("transform",`translate(${-u/2+(t.padding??0)-(c.x-(c.left??0))},${-d/2+(t.padding??0)-f-(c.y-(c.top??0))})`),dt(t,T),t.intersect=function(E){return at.polygon(t,b,E)},l}S(_P,"waveEdgedRectangle");async function AP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,o=t.look==="neo"?20:n;if(t.width||t.height){t.width=(t==null?void 0:t.width)??0,t.width<20&&(t.width=20),t.height=(t==null?void 0:t.height)??0,t.height<10&&(t.height=10);const w=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-w*(20/9)),t.width=t.width-a*2}const{shapeSvg:s,bbox:l}=await Ct(e,t,mt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2,h=(t!=null&&t.height?t==null?void 0:t.height:l.height)+o,u=h/8,d=h+u*2,{cssStyles:f}=t,y=ct.svg(s),p=ut(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-c/2,y:d/2},...An(-c/2,d/2,c/2,d/2,u,1),{x:c/2,y:-d/2},...An(c/2,-d/2,-c/2,-d/2,u,-1)],m=It(g),v=y.path(m,p),x=s.insert(()=>v,":first-child");return x.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),dt(t,x),t.intersect=function(w){return at.polygon(t,g,w)},s}S(AP,"waveRectangle");var le=10;async function OP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-n*2-le,10),t.height=Math.max(((t==null?void 0:t.height)??0)-a*2-le,10));const{shapeSvg:o,bbox:s,label:l}=await Ct(e,t,mt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:s.width)+n*2+le,h=(t!=null&&t.height?t==null?void 0:t.height:s.height)+a*2+le,u=c-le,d=h-le,f=-u/2,y=-d/2,{cssStyles:p}=t,g=ct.svg(o),m=ut(t,{}),v=[{x:f-le,y:y-le},{x:f-le,y:y+d},{x:f+u,y:y+d},{x:f+u,y:y-le}],x=`M${f-le},${y-le} L${f+u},${y-le} L${f+u},${y+d} L${f-le},${y+d} L${f-le},${y-le}
311                M${f-le},${y} L${f+u},${y}
312                M${f},${y-le} L${f},${y+d}`;t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const w=g.path(x,m),b=o.insert(()=>w,":first-child");return b.attr("transform",`translate(${le/2}, ${le/2})`),b.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(s.width/2)+le/2-(s.x-(s.left??0))}, ${-(s.height/2)+le/2-(s.y-(s.top??0))})`),dt(t,b),t.intersect=function(C){return at.polygon(t,v,C)},o}S(OP,"windowPane");var YS=new Set(["redux-color","redux-dark-color"]),Vgt=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function Ub(e,t){var vt,Pt,Et,et;const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:n}=oe(),{rowEven:a,rowOdd:o,nodeBorder:s,borderColorArray:l}=n;if(t.look==="handDrawn"){const{themeVariables:Z}=oe(),{background:K}=Z,G={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${K}`]};await Ub(e,G)}const c=oe();t.useHtmlLabels=c.htmlLabels;let h=((vt=c.er)==null?void 0:vt.diagramPadding)??10,u=((Pt=c.er)==null?void 0:Pt.entityPadding)??6;const{cssStyles:d}
312=t,{labelStyles:f,nodeStyles:y}=ft(t);if(r.attributes.length===0&&t.label){const Z={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5};Ki(t.label,c)+Z.labelPaddingX*2<c.er.minEntityWidth&&(t.width=c.er.minEntityWidth);const K=await ks(e,t,Z);if(i!=null&&YS.has(i)){const G=r.colorIndex??0;K.attr("data-color-id",`color-${G%l.length}`)}if(!tn(c.htmlLabels)){const G=K.select("text"),ht=(Et=G.node())==null?void 0:Et.getBBox();G.attr("transform",`translate(${-ht.width/2}, 0)`)}return K}c.htmlLabels||(h*=1.25,u*=1.25);let p=mt(t);p||(p="node default");const g=e.insert("g").attr("class",p).attr("id",t.domId||t.id),m=await qa(g,t.label??"",c,0,0,["name"],f);m.height+=u;let v=0;const x=[],w=[];let b=0,C=0,k=0,T=0,E=!0,L=!0;for(const Z of r.attributes){const K=await qa(g,Z.type,c,0,v,["attribute-type"],f);b=Math.max(b,K.width+h);const G=await qa(g,Z.name,c,0,v,["attribute-name"],f);C=Math.max(C,G.width+h);const ht=await qa(g,Z.keys.join(),c,0,v,["attribute-keys"],f);k=Math.max(k,ht.width+h);const Bt=await qa(g,Z.comment,c,0,v,["attribute-comment"],f);T=Math.max(T,Bt.width+h);const bt=Math.max(K.height,G.height,ht.height,Bt.height)+u;w.push({yOffset:v,rowHeight:bt}),v+=bt}let P=4;k<=h&&(E=!1,k=0,P--),T<=h&&(L=!1,T=0,P--);const I=g.node().getBBox();if(m.width+h*2-(b+C+k+T)>0){const Z=m.width+h*2-(b+C+k+T);b+=Z/P,C+=Z/P,k>0&&(k+=Z/P),T>0&&(T+=Z/P)}const D=b+C+k+T,_=ct.svg(g),B=ut(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");let O=0;w.length>0&&(O=w.reduce((Z,K)=>Z+((K==null?void 0:K.rowHeight)??0),0));const M=Math.max(I.width+h*2,(t==null?void 0:t.width)||0,D),F=Math.max((O??0)+m.height,(t==null?void 0:t.height)||0),$=-M/2,N=-F/2;if(g.selectAll("g:not(:first-child)").each((Z,K,G)=>{const ht=St(G[K]),Bt=ht.attr("transform");let bt=0,Gt=0;if(Bt){const ue=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Bt);ue&&(bt=parseFloat(ue[1]),Gt=parseFloat(ue[2]),ht.attr("class").includes("attribute-name")?bt+=b:ht.attr("class").includes("attribute-keys")?bt+=b+C:ht.attr("class").includes("attribute-comment")&&(bt+=b+C+k))}ht.attr("transform",`translate(${$+h/2+bt}, ${Gt+N+m.height+u/2})`)}),g.select(".name").attr("transform","translate("+-m.width/2+", "+(N+u/2)+")"),i!=null&&YS.has(i)){const Z=r.colorIndex??0;g.attr("data-color-id",`color-${Z%l.length}`)}const W=_.rectangle($,N,M,F,B),U=g.insert(()=>W,":first-child").attr("class","outer-path").attr("style",d.join(""));x.push(0);for(const[Z,K]of w.entries()){const ht=(Z+1)%2===0&&K.yOffset!==0,Bt=_.rectangle($,m.height+N+(K==null?void 0:K.yOffset),M,K==null?void 0:K.rowHeight,{...B,fill:ht?a:o,stroke:s});g.insert(()=>Bt,"g.label").attr("style",d.join("")).attr("class",`row-rect-${ht?"even":"odd"}`)}const Q=1e-4;let it=Ha($,m.height+N,M+$,m.height+N,Q),nt=_.polygon(it.map(Z=>[Z.x,Z.y]),B);if(g.insert(()=>nt).attr("class","divider"),it=Ha(b+$,m.height+N,b+$,F+N,Q),nt=_.polygon(it.map(Z=>[Z.x,Z.y]),B),g.insert(()=>nt).attr("class","divider"),E){const Z=b+C+$;it=Ha(Z,m.height+N,Z,F+N,Q),nt=_.polygon(it.map(K=>[K.x,K.y]),B),g.insert(()=>nt).attr("class","divider")}if(L){const Z=b+C+k+$;it=Ha(Z,m.height+N,Z,F+N,Q),nt=_.polygon(it.map(K=>[K.x,K.y]),B),g.insert(()=>nt).attr("class","divider")}for(const Z of x){const K=m.height+N+Z;it=Ha($,K,M+$,K,Q),nt=_.polygon(it.map(G=>[G.x,G.y]),B),g.insert(()=>nt).attr("class","divider")}if(dt(t,U),y&&t.look!=="handDrawn")if(i!=null&&Vgt.has(i))g.selectAll("path").attr("style",y);else{const Z=y.split(";"),K=(et=Z==null?void 0:Z.filter(G=>G.includes("stroke")))==null?void 0:et.map(G=>`${G}`).join("; ");g.selectAll("path").attr("style",K??""),g.selectAll(".row-rect-even path").attr("style",y)}return t.intersect=function(Z){return at.rect(t,Z)},g}S(Ub,"erBox");async function qa(e,t,r,i=0,n=0,a=[],o=""){const s=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",o);t!==nS(t)&&(t=nS(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=s.node().appendChild(await en(s,t,{width:Ki(t,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let h=l.children[0];for(h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let c=l.getBBox();
312if(tn(r.htmlLabels)){const h=l.children[0];h.style.textAlign="start";const u=St(l);c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}return c}S(qa,"addText");function Ha(e,t,r,i,n){return e===r?[{x:e-n/2,y:t},{x:e+n/2,y:t},{x:r+n/2,y:i},{x:r-n/2,y:i}]:[{x:e,y:t-n/2},{x:e,y:t+n/2},{x:r,y:i+n/2},{x:r,y:i-n/2}]}S(Ha,"lineToPolygon");async function BP(e,t,r,i,n=r.class.padding??12){const a=i?0:3,o=e.insert("g").attr("class",mt(t)).attr("id",t.domId||t.id);let s=null,l=null,c=null,h=null,u=0,d=0,f=0;if(s=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const v=t.annotations[0];await il(s,{text:`«${v}»`},0),u=s.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await il(l,t,0,["font-weight: bolder"]);const y=l.node().getBBox();d=y.height,c=o.insert("g").attr("class","members-group text");let p=0;for(const v of t.members){const x=await il(c,v,p,[v.parseClassifier()]);p+=x+a}f=c.node().getBBox().height,f<=0&&(f=n/2),h=o.insert("g").attr("class","methods-group text");let g=0;for(const v of t.methods){const x=await il(h,v,g,[v.parseClassifier()]);g+=x+a}let m=o.node().getBBox();if(s!==null){const v=s.node().getBBox();s.attr("transform",`translate(${-v.width/2})`)}return l.attr("transform",`translate(${-y.width/2}, ${u})`),m=o.node().getBBox(),c.attr("transform",`translate(0, ${u+d+n*2})`),m=o.node().getBBox(),h.attr("transform",`translate(0, ${u+d+(f?f+n*4:n*2)})`),m=o.node().getBBox(),{shapeSvg:o,bbox:m}}S(BP,"textHelper");async function il(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=oe();let o="useHtmlLabels"in t?t.useHtmlLabels:tn(a.htmlLabels)??!0,s="";"text"in t?s=t.text:s=t.label,!o&&s.startsWith("\\")&&(s=s.substring(1)),ac(s)&&(o=!0);const l=await en(n,hb(pa(s)),{width:Ki(s,a)+50,classes:"markdown-node-label",useHtmlLabels:o},a);let c,h=1;if(o){const u=l.children[0],d=St(l);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1);const f=u.getElementsByTagName("img");if(f){const y=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...f].map(p=>new Promise(g=>{function m(){var v;if(p.style.display="flex",p.style.flexDirection="column",y){const x=((v=a.fontSize)==null?void 0:v.toString())??window.getComputedStyle(document.body).fontSize,b=parseInt(x,10)*5+"px";p.style.minWidth=b,p.style.maxWidth=b}else p.style.width="100%";g(p)}S(m,"setupImage"),setTimeout(()=>{p.complete&&m()}),p.addEventListener("error",m),p.addEventListener("load",m)})))}c=u.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}else{i.includes("font-weight: bolder")&&St(l).selectAll("tspan").attr("font-weight",""),h=l.children.length;const u=l.children[0];(l.textContent===""||l.textContent.includes("&gt"))&&(u.textContent=s[0]+s.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),s[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),c=l.getBBox()}return n.attr("transform","translate(0,"+(-c.height/(2*h)+r)+")"),c.height}S(il,"addText");async function $P(e,t){var _,B;const r=jt(),{themeVariables:i}=r,{useGradient:n}=i,a=r.class.padding??12,o=a,s=t.useHtmlLabels??tn(r.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:c,bbox:h}=await BP(e,t,r,s,o),{labelStyles:u,nodeStyles:d}=ft(t);t.labelStyle=u,t.cssStyles=l.styles||"";const f=((_=l.styles)==null?void 0:_.join(";"))||d||"";t.cssStyles||(t.cssStyles=f.replaceAll("!important","").split(";"));const y=l.members.length===0&&l.methods.length===0&&!((B=r.class)!=null&&B.hideEmptyMembersBox),p=ct.svg(c),g=ut(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=Math.max(t.width??0,h.width);let v=Math.max(t.height??0,h.height);const x=(t.height??0)>h.height;l.members.length===0&&l.methods.length===0?v+=o:l.members.length>0&&l.methods.length===0&&(v+=o*2);const w=-m/2,b=-v/2;let C=y?a*2:l.members.length===0&&l.methods.length===0?-a:0;x&&(C=a*2);const k=p.rectangle(w-a,b-a-(y?a:l.members.length===0&&l.methods.length===0?-a
312/2:0),m+2*a,v+2*a+C,g),T=c.insert(()=>k,":first-child");T.attr("class","basic label-container outer-path");const E=T.node().getBBox(),L=c.select(".annotation-group").node().getBBox().height-(y?a/2:0)||0,P=c.select(".label-group").node().getBBox().height-(y?a/2:0)||0,I=c.select(".members-group").node().getBBox().height-(y?a/2:0)||0,D=(L+P+b+a-(b-a-(y?a:l.members.length===0&&l.methods.length===0?-a/2:0)))/2;if(c.selectAll(".text").each((O,M,F)=>{var it,nt;const $=St(F[M]),N=$.attr("transform");let W=0;if(N){const Pt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(N);Pt&&(W=parseFloat(Pt[2]))}let U=W+b+a-(y?a:l.members.length===0&&l.methods.length===0?-a/2:0);if($.attr("class").includes("methods-group")){const vt=Math.max(I,o/2);x?U=Math.max(D,L+P+vt+b+o*2+a)+o*2:U=L+P+vt+b+o*4+a}l.members.length===0&&l.methods.length===0&&((it=r.class)!=null&&it.hideEmptyMembersBox)&&(l.annotations.length>0?U=W-o:U=W),s||(U-=4);let Q=w;($.attr("class").includes("label-group")||$.attr("class").includes("annotation-group"))&&(Q=-((nt=$.node())==null?void 0:nt.getBBox().width)/2||0,c.selectAll("text").each(function(vt,Pt,Et){window.getComputedStyle(Et[Pt]).textAnchor==="middle"&&(Q=0)})),$.attr("transform",`translate(${Q}, ${U})`)}),l.members.length>0||l.methods.length>0||y){const O=L+P+b+a,M=p.line(E.x,O,E.x+E.width,O+.001,g);c.insert(()=>M).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",f)}if(y||l.members.length>0||l.methods.length>0){const O=L+P+I+b+o*2+a,M=p.line(E.x,x?Math.max(D,O):O,E.x+E.width,(x?Math.max(D,O):O)+.001,g);c.insert(()=>M).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",f)}if(l.look!=="handDrawn"&&c.selectAll("path").attr("style",f),T.select(":nth-child(2)").attr("style",f),c.selectAll(".divider").select("path").attr("style",f),t.labelStyle?c.selectAll("span").attr("style",t.labelStyle):c.selectAll("span").attr("style",f),!s){const O=RegExp(/color\s*:\s*([^;]*)/),M=O.exec(f);if(M){const F=M[0].replace("color","fill");c.selectAll("tspan").attr("style",F)}else if(u){const F=O.exec(u);if(F){const $=F[0].replace("color","fill");c.selectAll("tspan").attr("style",$)}}}return dt(t,T),t.intersect=function(O){return at.rect(t,O)},c}S($P,"classBox");async function EP(e,t){var E,L;const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const n=t,a=t,o=20,s=20,l="verifyMethod"in t,c=mt(t),{themeVariables:h}=jt(),{borderColorArray:u,requirementEdgeLabelBackground:d}=h,f=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let y;l?y=await ci(f,`&lt;&lt;${n.type}&gt;&gt;`,0,t.labelStyle):y=await ci(f,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let p=y;const g=await ci(f,n.name,p,t.labelStyle+"; font-weight: bold;");if(p+=g+s,l){const P=await ci(f,`${n.requirementId?`ID: ${n.requirementId}`:""}`,p,t.labelStyle);p+=P;const I=await ci(f,`${n.text?`Text: ${n.text}`:""}`,p,t.labelStyle);p+=I;const D=await ci(f,`${n.risk?`Risk: ${n.risk}`:""}`,p,t.labelStyle);p+=D,await ci(f,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,p,t.labelStyle)}else{const P=await ci(f,`${a.type?`Type: ${a.type}`:""}`,p,t.labelStyle);p+=P,await ci(f,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,p,t.labelStyle)}const m=(((E=f.node())==null?void 0:E.getBBox().width)??200)+o,v=(((L=f.node())==null?void 0:L.getBBox().height)??200)+o,x=-m/2,w=-v/2,b=ct.svg(f),C=ut(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=b.rectangle(x,w,m,v,C),T=f.insert(()=>k,":first-child");if(T.attr("class","basic label-container outer-path").attr("style",i),u!=null&&u.length){const P=t.colorIndex??0;f.attr("data-color-id",`color-${P%u.length}`)}if(f.selectAll(".label").each((P,I,D)=>{const _=St(D[I]),B=_.attr("transform");let O=0,M=0;if(B){const W=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(B);W&&(O=parseFloat(W[1]),M=parseFloat(W[2]))}const F=M-v/2;let $=x+o/2;(I===0||I===1)&&($=O),_.attr("transform",`translate(${$}, ${F+o})`)}),p>y+g+s){const P=w+y+g+s;let I;if(t.look==="neo"){const B=[[x,P],[x+m,P],[x+m,P+.001],[x,P+.001]];I=b.polygon(B,C)}else I=b.line(x,P,x+m,P,C);f.insert(()=>I).attr("class","divider")}return dt(t,T),t.intersect=function(P){return at.rect(t,P)},i&&t.look!=="handDrawn"&&(d||u!=null&&u.length)&&f.selectAll("path").attr("style",i),f}S(EP,"requirementBox");async function ci(e,t,r,i=""){if(t==="")return 0;const n=e.insert("g").attr("class","label").attr("style",i),a=jt(),o=a.htmlLabels??!0,s=await en(n,hb(pa(t)),{width:Ki(t,a)+50,classes:"markdown-node-label",useHtmlLabels:o,style:i},a);let l;if(o){const c=s.children[0],h=St(s);l=c.getBoundingClientRect(),h.attr("width",l.width),h.attr("height",l.height)}else{const c=s.children[0];for(const h of c.children)i&&h.setAttribute("style",i);l=s.getBBox(),l.height+=6}return n.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}S(ci,"addText");var Xgt=S(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function PP(e,t,{config:r}){var I,D;const{labelStyles:i,nodeStyles:n}=ft(t);t.labelStyle=i||"";const a=10,o=t.width;t.width=(t.width??200)-10;const{shapeSvg:s,bbox:l,label:c}=await Ct(e,t,mt(t)),h=t.padding||10;let u="",d;"ticket"in t&&t.ticket&&((I=r==null?void 0:r.kanban)!=null&&I.ticketBaseUrl)&&(u=(D=r==null?void 0:r.kanban)==null?void 0:D.ticketBaseUrl.replace("#TICKET#",t.ticket),d=s.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const f={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let y,p;d?{label:y,bbox:p}=await Vp(d,"ticket"in t&&t.ticket||"",f):{label:y,bbox:p}=await Vp(s,"ticket"in t&&t.ticket||"",f);const{label:g,bbox:m}=await Vp(s,"assigned"in t&&t.assigned||"",f);t.width=o;const v=10,x=(t==null?void 0:t.width)||0,w=Math.max(p.height,m.height)/2,b=Math.max(l.height+v*2,(t==null?void 0:t.height)||0)+w,C=-x/2,k=-b/2;c.attr("transform","translate("+(h-x/2)+", "+(-w-l.height/2)+")"),y.attr("transform","translate("+(h-x/2)+", "+(-w+l.height/2)+")"),g.attr("transform","translate("+(h+x/2-m.width-2*a)+", "+(-w+l.height/2)+")");let T;const{rx:E,ry:L}=t,{cssStyles:P}=t;if(t.look==="handDrawn"){const _=ct.svg(s),B=ut(t,{}),O=E||L?_.path(Mn(C,k,x,b,E||0),B):_.rectangle(C,k,x,b,B);T=s.insert(()=>O,":first-child"),T.attr("class","basic label-container").attr("style",P||null)}else{T=s.insert("rect",":first-child"),T.attr("class","basic label-container __APA__").attr("style",n).attr("rx",E??5).attr("ry",L??5).attr("x",C).attr("y",k).attr("width",x).attr("height",b);const _="priority"in t&&t.priority;if(_){const B=s.append("line"),O=C+2,M=k+Math.floor((E??0)/2),F=k+b-Math.floor((E??0)/2);B.attr("x1",O).attr("y1",M).attr("x2",O).attr("y2",F).attr("stroke-width","4").attr("stroke",Xgt(_))}}return dt(t,T),t.height=b,t.intersect=function(_){return at.rect(t,_)},s}S(PP,"kanbanItem");async function LP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await Ct(e,t,mt(t)),l=a.width+10*o,c=a.height+8*o,h=.15*l,{cssStyles:u}=t,d=a.width+20,f=a.height+20,y=Math.max(l,d),p=Math.max(c,f);s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let g;const m=`M0 0 
313    a${h},${h} 1 0,0 ${y*.25},${-1*p*.1}
314    a${h},${h} 1 0,0 ${y*.25},0
315    a${h},${h} 1 0,0 ${y*.25},0
316    a${h},${h} 1 0,0 ${y*.25},${p*.1}
317
318    a${h},${h} 1 0,0 ${y*.15},${p*.33}
319    a${h*.8},${h*.8} 1 0,0 0,${p*.34}
320    a${h},${h} 1 0,0 ${-1*y*.15},${p*.33}
321
322    a${h},${h} 1 0,0 ${-1*y*.25},${p*.15}
323    a${h},${h} 1 0,0 ${-1*y*.25},0
324    a${h},${h} 1 0,0 ${-1*y*.25},0
325    a${h},${h} 1 0,0 ${-1*y*.25},${-1*p*.15}
326
327    a${h},${h} 1 0,0 ${-1*y*.1},${-1*p*.33}
328    a${h*.8},${h*.8} 1 0,0 0,${-1*p*.34}
329    a${h},${h} 1 0,0 ${y*.1},${-1*p*.33}
330  H0 V0 Z`;if(t.look==="handDrawn"){const v=ct.svg(n),x=ut(t,{}),w=v.path(m,x);g=n.insert(()=>w,":first-child"),g.attr("class","basic label-container").attr("style",Ee(u))}else g=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",m);return g.attr("transform",`translate(${-y/2}, ${-p/2})`),dt(t,g),t.calcIntersect=function(v,x){return at.rect(v,x)},t.intersect=function(v){return X.info("Bang intersect",t,v),at.rect(t,v)},n}S(LP,"bang");async function MP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await Ct(e,t,mt(t)),l=a.width+2*o,c=a.height+2*o,h=.15*l,u=.25*l,d=.35*l,f=.2*l,{cssStyles:y}=t;let p;const g=`M0 0 
331    a${h},${h} 0 0,1 ${l*.25},${-1*l*.1}
332    a${d},${d} 1 0,1 ${l*.4},${-1*l*.1}
333    a${u},${u} 1 0,1 ${l*.35},${l*.2}
334
335    a${h},${h} 1 0,1 ${l*.15},${c*.35}
336    a${f},${f} 1 0,1 ${-1*l*.15},${c*.65}
337
338    a${u},${h} 1 0,1 ${-1*l*.25},${l*.15}
339    a${d},${d} 1 0,1 ${-1*l*.5},0
340    a${h},${h} 1 0,1 ${-1*l*.25},${-1*l*.15}
341
342    a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35}
343    a${f},${f} 1 0,1 ${l*.1},${-1*c*.65}
344  H0 V0 Z`;if(t.look==="handDrawn"){const m=ct.svg(n),v=ut(t,{}),x=m.path(g,v);p=n.insert(()=>x,":first-child"),p.attr("class","basic label-container").attr("style",Ee(y))}else p=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",g);return s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),p.attr("transform",`translate(${-l/2}, ${-c/2})`),dt(t,p),t.calcIntersect=function(m,v){return at.rect(m,v)},t.intersect=function(m){return X.info("Cloud intersect",t,m),at.rect(t,m)},n}S(MP,"cloud");async function FP(e,t){const{labelStyles:r,nodeStyles:i}=ft(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await Ct(e,t,mt(t)),l=a.width+8*o,c=a.height+2*o,h=5,u=t.look==="neo"?`
345    M${-l/2} ${c/2-h}
346    v${-c+2*h}
347    q0,-${h} ${h},-${h}
348    h${l-2*h}
349    q${h},0 ${h},${h}
350    v${c-h}
351    H${-l/2}
352    Z
353  `:`
354    M${-l/2} ${c/2-h}
355    v${-c+2*h}
356    q0,-${h} ${h},-${h}
357    h${l-2*h}
358    q${h},0 ${h},${h}
359    v${c-2*h}
360    q0,${h} ${-h},${h}
361    h${-(l-2*h)}
362    q${-h},0 ${-h},${-h}
363    Z
364  `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const d=n.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return n.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>s.node()),dt(t,d),t.calcIntersect=function(f,y){return at.rect(f,y)},t.intersect=function(f){return at.rect(t,f)},n}S(FP,"defaultMindmapNode");async function IP(e,t){const r={padding:t.padding??0};return Hb(e,t,r)}S(IP,"mindmapCircle");var Kgt=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:dP},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:hP},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:pP},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","
364subproc","framed-rectangle","subroutine"],handler:vP},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:IE},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:DE},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Hb},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:LP},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:MP},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:sP},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:HE},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tP},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:JE},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:SP},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:ZE},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:jE},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:CP}
364,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:OE},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:uP},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:mP},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:yP},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:WE},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:UE},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:PE},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:LE},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ME},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:eP}
vendor: 25,769 bytes, lines 364-367
364,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:_P},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:qE},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:wP},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:rP},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:FE},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:RE},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:TP},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:OP},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:NE},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:kP},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:zE},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:fP},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:aP},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:nP},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:AE},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:EE},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:xP},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:bP},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:AP},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:lP},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:iP}],Zgt=S(()=>{const t=[...Object.entries({state:gP,choice:BE,note:oP,rectWithTitle:cP,labelRect:QE,iconSquare:XE,iconCircle:GE,icon:YE,iconRounded:VE,imageSquare:KE,anchor:TE,kanbanItem:PP,mindmapCircle:IP,defaultMindmapNode:FP,classBox:$P,erBox:Ub,requirementBox:EP}),...Kgt.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),DP=Zgt();function Qgt(e){return e in DP}S(Qgt,"isValidShape");var Ed=new Map;async function RP(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?DP[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),n=await a(i,t,r)}else n=await a(e,t,r),i=n;return i.attr("data-look",Ee(t.look)),t.tooltip&&n.attr("title",t.tooltip),Ed.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}S(RP,"insertNode");var I0t=S((e,t)=>{Ed.set(t.id,e)},"setNodeElem"),D0t=S(()=>{Ed.clear()},"clear"),R0t=S(e=>{const t=Ed.get(e.id);X.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),Jgt=S((e,t,r,i,n,a=!1,o)=>{t.arrowTypeStart&&GS(e,"start",t.arrowTypeStart,r,i,n,a,o),t.arrowTypeEnd&&GS(e,"end",t.arrowTypeEnd,r,i,n,a,o)},"addEdgeMarkers"),tyt={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},eyt=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],GS=S((e,t,r,i,n,a,o=!1,s)=>{var y;const l=tyt[r],c=l&&eyt.includes(l.type);if(!l){X.warn(`Unknown arrow type: ${r}`);return}const h=l.type,f=`${n}_${a}-${h}${t==="start"?"Start":"End"}${o&&c?"-margin":""}`;if(s&&s.trim()!==""){const p=s.replace(/[^\dA-Za-z]/g,"_"),g=`${f}_${p}`;if(!document.getElementById(g)){const m=document.getElementById(f);if(m){const v=m.cloneNode(!0);v.id=g,v.querySelectorAll("path, circle, line").forEach(w=>{w.setAttribute("stroke",s),l.fill&&w.setAttribute("fill",s)}),(y=m.parentNode)==null||y.appendChild(v)}}e.attr(`marker-${t}`,`url(${i}#${g})`)}else e.attr(`marker-${t}`,`url(${i}#${f})`)},"addEdgeMarker"),ryt=S(e=>{var t,r;return typeof e=="string"?e:(r=(t=jt())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),pf=new Map,Ie=new Map,j0t=S(()=>{pf.clear(),Ie.clear()},"clear"),Vs=S(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),iyt=S(async(e,t)=>{const r=jt();let i=or(r);const{labelStyles:n}=ft(t);t.labelStyle=n;const a=e.insert("g").attr("class","edgeLabel"),o=a.insert("g").attr("class","label").attr("data-id",t.id),s=t.labelType==="markdown",c=await en(e,t.label,{style:Vs(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:s,width:s?void 0:void 0},r);o.node().appendChild(c),X.info("abc82",t,t.labelType);let h=c.getBBox(),u=h;if(i){const f=c.children[0],y=St(c);h=f.getBoundingClientRect(),u=h,y.attr("width",h.width),y.attr("height",h.height)}else{const f=St(c).select("text").node();f&&typeof f.getBBox=="function"&&(u=f.getBBox())}o.attr("transform",qs(u,i)),pf.set(t.id,a),t.width=h.width,t.height=h.height;let d;if(t.startLabelLeft){const f=e.insert("g").attr("class","edgeTerminals"),y=f.insert("g").attr("class","inner"),p=await pn(y,t.startLabelLeft,Vs(t.labelStyle)||"",!1,!1);d=p;let g=p.getBBox();if(i){const m=p.children[0],v=St(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}y.attr("transform",qs(g,i)),Ie.get(t.id)||Ie.set(t.id,{}),Ie.get(t.id).startLeft=f,nl(d,t.startLabelLeft)}if(t.startLabelRight){const f=e.insert("g").attr("class","edgeTerminals"),y=f.insert("g").attr("class","inner"),p=await pn(y,t.startLabelRight,Vs(t.labelStyle)||"",!1,!1);d=p;let g=p.getBBox();if(i){const m=p.children[0],v=St(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}y.attr("transform",qs(g,i)),Ie.get(t.id)||Ie.set(t.id,{}),Ie.get(t.id).startRight=f,nl(d,t.startLabelRight)}if(t.endLabelLeft){const f=e.insert("g").attr("class","edgeTerminals"),y=f.insert("g").attr("class","inner"),p=await pn(f,t.endLabelLeft,Vs(t.labelStyle)||"",!1,!1);d=p;let g=p.getBBox();if(i){const m=p.children[0],v=St(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}y.attr("transform",qs(g,i)),Ie.get(t.id)||Ie.set(t.id,{}),Ie.get(t.id).endLeft=f,nl(d,t.endLabelLeft)}if(t.endLabelRight){const f=e.insert("g").attr("class","edgeTerminals"),y=f.insert("g").attr("class","inner"),p=await pn(f,t.endLabelRight,Vs(t.labelStyle)||"",!1,!1);d=p;let g=p.getBBox();if(i){const m=p.children[0],v=St(p);g=m.getBoundingClientRect(),v.attr("width",g.width),v.attr("height",g.height)}y.attr("transform",qs(g,i)),Ie.get(t.id)||Ie.set(t.id,{}),Ie.get(t.id).endRight=f,nl(d,t.endLabelRight)}return c},"insertEdgeLabel");function nl(e,t){or(jt())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}S(nl,"setTerminalWidth");var nyt=S((e,t)=>{X.debug("Moving label abc88 ",e.id,e.label,pf.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=jt(),{subGraphTitleTotalMargin:n}=Eb(i);if(e.label){const a=pf.get(e.id);let o=e.x,s=e.y;if(r){const l=Hr.calcLabelPosition(r);X.debug("Moving label "+e.label+" from (",o,",",s,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(o=l.x,s=l.y)}a.attr("transform",`translate(${o}, ${s+n/2})`)}if(e.startLabelLeft){const a=Ie.get(e.id).startLeft;let o=e.x,s=e.y;if(r){const l=Hr.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.startLabelRight){const a=Ie.get(e.id).startRight;let o=e.x,s=e.y;if(r){const l=Hr.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelLeft){const a=Ie.get(e.id).endLeft;let o=e.x,s=e.y;if(r){const l=Hr.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelRight){const a=Ie.get(e.id).endRight;let o=e.x,s=e.y;if(r){const l=Hr.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}},"positionEdgeLabel"),ayt=S((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),a=Math.abs(t.y-i),o=e.width/2,s=e.height/2;return n>=o||a>=s},"outsideNode"),oyt=S((e,t,r)=>{X.debug(`intersection calc abc89:
365  outsidePoint: ${JSON.stringify(t)}
366  insidePoint : ${JSON.stringify(r)}
367  node        : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,a=Math.abs(i-r.x),o=e.width/2;let s=r.x<t.x?o-a:o+a;const l=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*o>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-n:n-l-t.y;s=h*u/c;const d={x:r.x<t.x?r.x+s:r.x-h+s,y:r.y<t.y?r.y+c-u:r.y-c+u};return s===0&&(d.x=t.x,d.y=t.y),h===0&&(d.x=t.x),c===0&&(d.y=t.y),X.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${s}`,d),d}else{r.x<t.x?s=t.x-o-i:s=i-o-t.x;let u=c*s/h,d=r.x<t.x?r.x+h-s:r.x-h+s,f=r.y<t.y?r.y+u:r.y-u;return X.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${s}`,{_x:d,_y:f}),s===0&&(d=t.x,f=t.y),h===0&&(d=t.x),c===0&&(f=t.y),{x:d,y:f}}},"intersection"),VS=S((e,t)=>{X.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(X.info("abc88 checking point",a,t),!ayt(t,a)&&!n){const o=oyt(t,i,a);X.debug("abc88 inside",a,i,o),X.debug("abc88 intersection",o,t);let s=!1;r.forEach(l=>{s=s||l.x===o.x&&l.y===o.y}),r.some(l=>l.x===o.x&&l.y===o.y)?X.warn("abc88 no intersect",o,r):r.push(o),n=!0}else X.warn("abc88 outside",a,i),i=a,n||r.push(a)}),X.debug("returning points",r),r},"cutPathAtIntersect");function jP(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],a=e[i],o=e[i+1];(n.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===o.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}S(jP,"extractCornerPoints");var XS=S(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n),o=r/a;return{x:t.x-o*i,y:t.y-o*n}},"findAdjacentPoint"),syt=S(function(e){const{cornerPointPositions:t}=jP(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],a=e[i+1],o=e[i],s=XS(n,o,5),l=XS(a,o,5),c=l.x-s.x,h=l.y-s.y;r.push(s);const u=Math.sqrt(2)*2;let d={x:o.x,y:o.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){X.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const f=5;o.x===s.x?d={x:c<0?s.x-f+u:s.x+f-u,y:h<0?s.y-u:s.y+u}:d={x:c<0?s.x-u:s.x+u,y:h<0?s.y-f+u:s.y+f-u}}else X.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(d,l)}else r.push(e[i]);return r},"fixCorners"),lyt=S((e,t,r)=>{const i=e-t-r,n=2,a=2,o=n+a,s=Math.floor(i/o),l=Array(s).fill(`${n} ${a}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),cyt=S(function(e,t,r,i,n,a,o,s=!1){var M;if(!o)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l}=jt();let c=t.points,h=!1;const u=n;var d=a;const f=[];for(const F in t.cssCompiledStyles)D$(F)||f.push(t.cssCompiledStyles[F]);X.debug("UIO intersect check",t.points,d.x,u.x),d.intersect&&u.intersect&&!s&&(c=c.slice(1,t.points.length-1),c.unshift(u.intersect(c[0])),X.debug("Last point UIO",t.start,"-->",t.end,c[c.length-1],d,d.intersect(c[c.length-1])),c.push(d.intersect(c[c.length-1])));const y=btoa(JSON.stringify(c));t.toCluster&&(X.info("to cluster abc88",r.get(t.toCluster)),c=VS(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&(X.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(c,null,2)),c=VS(c.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let p=c.filter(F=>!Number.isNaN(F.y));const g=ryt(t.curve);g!=="rounded"&&(p=syt(p));let m=mn;switch(g){case"linear":m=mn;break;case"basis":m=Ih;break;case"cardinal":m=zk;break;case"bumpX":m=Nm;break;case"bumpY":m=zm;break;case"catmullRom":m=qk;break;case"monotoneX":m=Gm;break;case"monotoneY":m=Vm;break;case"natural":m=Xm;break;case"step":m=Km;break;case"stepAfter":m=Qm;break;case"stepBefore":m=Zm;break;case"rounded":m=mn;break;default:m=Ih}const{x:v,y:x}=ddt(t),w=jm().x(v).y(x).curve(m);let b;switch(t.thickness){case"normal":b="edge-thickness-normal";break;case"thick":b="edge-thickness-thick";break;case"invisible":b="edge-thickness-invisible";break;default:b="edge-thickness-normal"}switch(t.pattern){case"solid":b+=" edge-pattern-solid";break;case"dotted":b+=" edge-pattern-dotted";break;case"dashed":b+=" edge-pattern-dashed";break;default:b+=" edge-pattern-solid"}let C,k=g==="rounded"?NP(zP(p,t),5):w(p);const T=Array.isArray(t.style)?t.style:[t.style];let E=T.find(F=>F==null?void 0:F.startsWith("stroke:")),L="";t.animate&&(L="edge-animation-fast"),t.animation&&(L="edge-animation-"+t.animation);let P=!1;if(t.look==="handDrawn"){const F=ct.svg(e);Object.assign([],p);const $=F.path(k,{roughness:.3,seed:l});b+=" transition",C=St($).select("path").attr("id",`${o}-${t.id}`).attr("class"," "+b+(t.classes?" "+t.classes:"")+(L?" "+L:"")).attr("style",T?T.reduce((W,U)=>W+";"+U,""):"");let N=C.attr("d");C.attr("d",N),e.node().appendChild(C.node())}else{const F=f.join(";"),$=T?T.reduce((nt,vt)=>nt+vt+";",""):"",N=(F?F+";"+$+";":$)+";"+(T?T.reduce((nt,vt)=>nt+";"+vt,""):"");C=e.append("path").attr("d",k).attr("id",`${o}-${t.id}`).attr("class"," "+b+(t.classes?" "+t.classes:"")+(L?" "+L:"")).attr("style",N),E=(M=N.match(/stroke:([^;]+)/))==null?void 0:M[1],P=t.animate===!0||!!t.animation||F.includes("animation");const W=C.node(),U=typeof W.getTotalLength=="function"?W.getTotalLength():0,Q=hS[t.arrowTypeStart]||0,it=hS[t.arrowTypeEnd]||0;if(t.look==="neo"&&!P){const vt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?lyt(U,Q,it):`0 ${Q} ${U-Q-it} ${it}`}; stroke-dashoffset: 0;`;C.attr("style",vt+C.attr("style"))}}C.attr("data-edge",!0),C.attr("data-et","edge"),C.attr("data-id",t.id),C.attr("data-points",y),C.attr("data-look",Ee(t.look)),t.showPoints&&p.forEach(F=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",F.x).attr("cy",F.y)});let I="";(jt().flowchart.arrowMarkerAbsolute||jt().state.arrowMarkerAbsolute)&&(I=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,I=I.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),X.info("arrowTypeStart",t.arrowTypeStart),X.info("arrowTypeEnd",t.arrowTypeEnd);const D=!P&&(t==null?void 0:t.look)==="neo";Jgt(C,t,I,o,i,D,E);const _=Math.floor(c.length/2),B=c[_];Hr.isLabelCoordinateInPath(B,C.attr("d"))||(h=!0);let O={};return h&&(O.updatedPath=c),O.originalPath=t.points,O},"insertEdge");function NP(e,t){if(e.length<2)return"";let r="";const i=e.length,n=1e-5;for(let a=0;a<i;a++){const o=e[a],s=e[a-1],l=e[a+1];if(a===0)r+=`M${o.x},${o.y}`;else if(a===i-1)r+=`L${o.x},${o.y}`;else{const c=o.x-s.x,h=o.y-s.y,u=l.x-o.x,d=l.y-o.y,f=Math.hypot(c,h),y=Math.hypot(u,d);if(f<n||y<n){r+=`L${o.x},${o.y}`;continue}const p=c/f,g=h/f,m=u/y,v=d/y,x=p*m+g*v,w=Math.max(-1,Math.min(1,x)),b=Math.acos(w);if(b<n||Math.abs(Math.PI-b)<n){r+=`L${o.x},${o.y}`;continue}const C=Math.min(t/Math.sin(b/2),f/2,y/2),k=o.x-p*C,T=o.y-g*C,E=o.x+m*C,L=o.y+v*C;r+=`L${k},${T}`,r+=`Q${o.x},${o.y} ${E},${L}`}}return r}S(NP,"generateRoundedPath");function km(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}S(km,"calculateDeltaAndAngle");function zP(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&qe[t.arrowTypeStart]){const n=qe[t.arrowTypeStart],a=e[0],o=e[1],{angle:s}=km(a,o),l=n*Math.cos(s),c=n*Math.sin(s);r[0].x=a.x+l,r[0].y=a.y+c}const i=e.length;if(i>=2&&qe[t.arrowTypeEnd]){const n=qe[t.arrowTypeEnd],a=e[i-1],o=e[i-2],{angle:s}=km(o,a),l=n*Math.cos(s),c=n*Math.sin(s);r[i-1].x=a.x-l,r[i-1].y=a.y-c}return r}S(zP,"applyMarkerOffsetsToPoints");var hyt=S((e,t,r,i)=>{t.forEach(n=>{Lyt[n](e,r,i)})},"insertMarkers"),uyt=S((e,t,r)=>{X.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),fyt=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),dyt=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),pyt=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),gyt=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),yyt=S((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("pol
367ygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),myt=S((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),vyt=S((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),byt=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),xyt=S((e,t,r)=>{const i=oe(),{themeVariables:n}=i,{transitionColor:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),Cyt=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),wyt=S((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),Syt=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),kyt=S((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),Tyt=S((e,t,r)=>{const i=oe(),{themeVariables:n}=i,{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),_yt=S((e,t,r)=>{const i=oe(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:o}=n,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");
vendor: 4,188 bytes, lines 367-373
367s.append("circle").attr("fill",o??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),s.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",o??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),Ayt=S((e,t,r)=>{const i=oe(),{themeVariables:n}=i,{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),Oyt=S((e,t,r)=>{const i=oe(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:o}=n,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",o??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",o??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),Byt=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
368      L20,10
369      M20,10
370      L0,20`)},"requirement_arrow"),$yt=S((e,t,r)=>{const i=oe(),{themeVariables:n}=i,{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
371      L20,10
372      M20,10
373      L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),Eyt=S((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),Pyt=S((e,t,r)=>{const i=oe(),{themeVariables:n}=i,{strokeWidth:a}=n,o=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${a}`)}
373,"requirement_contains_neo"),Lyt={extension:uyt,composition:fyt,aggregation:dyt,dependency:pyt,lollipop:gyt,point:yyt,circle:myt,cross:vyt,barb:byt,barbNeo:xyt,only_one:Cyt,zero_or_one:wyt,one_or_more:Syt,zero_or_more:kyt,only_one_neo:Tyt,zero_or_one_neo:_yt,one_or_more_neo:Ayt,zero_or_more_neo:Oyt,requirement_arrow:Byt,requirement_contains:Eyt,requirement_arrow_neo:$yt,requirement_contains_neo:Pyt},Myt=hyt,Fyt={common:Ac,getConfig:oe,insertCluster:Pgt,insertEdge:cyt,insertEdgeLabel:iyt,insertMarkers:Myt,insertNode:RP,interpolateToCurve:Tb,labelHelper:Ct,log:X,positionEdgeLabel:nyt},uc={},WP=S(e=>{for(const t of e)uc[t.name]=t},"registerLayoutLoaders"),Iyt=S(()=>{WP([{name:"dagre",loader:S(async()=>await Dt(()=>import("./dagre-BM42HDAG-D0OrG__j.js"),__vite__mapDeps([0,1,2,3,4])),"loader")},{name:"cose-bilkent",loader:S(async()=>await Dt(()=>import("./cose-bilkent-S5V4N54A-dn-W3CBj.js"),__vite__mapDeps([5,6,3,4])),"loader")}])},"registerDefaultLayoutLoaders");Iyt();var N0t=S(async(e,t)=>{if(!(e.layoutAlgorithm in uc))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const h of e.nodes){const u=h.domId||h.id;h.domId=`${e.diagramId}-${u}`}const r=uc[e.layoutAlgorithm],i=await r.loader(),{theme:n,themeVariables:a}=e.config,{useGradient:o,gradientStart:s,gradientStop:l}=a,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),o){const h=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");h.append("svg:stop").attr("offset","0%").attr("stop-color",s).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return i.render(e,t,Fyt,{algorithm:r.algorithm})},"render"),z0t=S((e="",{fallback:t="dagre"}={})=>{if(e in uc)return e;if(t in uc)return X.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),Yb="comm",qP="rule",HP="decl",Dyt="@media",Ryt="@import",jyt="@supports",Nyt="@namespace",Tm="@keyframes",UP="@layer",zyt="@scope",Wyt=Math.abs,bl=String.fromCharCode;function YP(e){return e.trim()}function _m(e,t,r){return e.replace(t,r)}function oo(e,t){return e.charCodeAt(t)|0}function ns(e,t,r){return e.slice(t,r)}function hi(e){return e.length}function GP(e){return e.length}function fh(e,t){return t.push(e),e}var Pd=1,as=1,VP=0,Pr=0,ye=0,Ts="";function Gb(e,t,r,i,n,a,o,s){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Pd,column:as,length:o,return:"",siblings:s}}function qyt(){return ye}function Hyt(){return ye=Pr>0?oo(Ts,--Pr):0,as--,ye===10&&(as=1,Pd--),ye}function Gr(){return ye=Pr<VP?oo(Ts,Pr++):0,as++,ye===10&&(as=1,Pd++),ye}function gn(){return oo(Ts,Pr)}function Oh(){return Pr}function Ld(e,t){return ns(Ts,e,t)}function fc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Uyt(e){return Pd=as=1,VP=hi(Ts=e),Pr=0,[]}function Yyt(e){return Ts="",e}function Kp(e){return YP(Ld(Pr-1,Am(e===91?e+2:e===40?e+1:e)))}function Gyt(e){for(;(ye=gn())&&ye<33;)Gr();return fc(e)>2||fc(ye)>3?"":" "}function Vyt(e,t){for(;--t&&Gr()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return Ld(e,Oh()+(t<6&&gn()==32&&Gr()==32))}function Am(e){for(;Gr();)switch(ye){case e:return Pr;case 34:case 39:e!==34&&e!==39&&Am(ye);break;case 40:e===41&&Am(e);break;case 92:Gr();break}return Pr}function Xyt(e,t){for(;Gr()&&e+ye!==57;)if(e+ye===84&&gn()===47)break;return"/*"+Ld(t,Pr-1)+"*"+bl(e===47?e:Gr())}function Kyt(e){for(;!fc(gn());)Gr();return Ld(e,Pr)}function Zyt(e){return Yyt(Bh("",null,null,null,[""],e=Uyt(e),0,[0],e))}function Bh(e,t,r,i,n,a,o,s,l){for(var c=0,h=0,u=o,d=0,f=0,y=0,p=1,g=1,m=1,v=0,x=0,w="",b=n,C=a,k=i,T=w;g;)switch(y=x,x=Gr()){case 40:y!=108&&oo(T,u-1)==58?(v++,T+="("):T+=Kp(x);break;case 41:v--,T+=")";break;case 34:case 39:case 91:T+=Kp(x);break;case 9:case 10:case 13:case 32:if(v>0){T+=bl(x);break}T+=Gyt(y);break;case 92:T+=Vyt(Oh()-1,7);continue;case 47:switch(gn()){case 42:case 47:fh(Qyt(Xyt(Gr(),Oh()),t,r,l),l),(fc(y||1)==5||fc(gn()||1)==5)&&hi(T)&&ns(T,
vendor: 9,515 bytes, lines 373-374
373-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*p:s[c++]=hi(T)*m;case 125*p:case 59:case 0:if(v>0&&x){T+=bl(x);break}switch(x){case 0:case 125:g=0;case 59+h:m==-1&&(T=_m(T,/\f/g,"")),f>0&&(hi(T)-u||p===0)&&fh(f>32?ZS(T+";",i,r,u-1,l):ZS(_m(T," ","")+";",i,r,u-2,l),l);break;case 59:T+=";";default:if(fh(k=KS(T,t,r,c,h,n,s,w,b=[],C=[],u,a),a),x===123)if(h===0)Bh(T,t,k,k,b,a,u,s,C);else{switch(d){case 99:if(oo(T,3)===110)break;case 108:if(oo(T,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Bh(e,k,k,i&&fh(KS(e,k,k,0,0,n,s,w,n,b=[],u,C),C),n,C,u,s,i?b:C):Bh(T,k,k,k,[""],C,0,s,C)}}c=h=f=0,p=m=1,w=T="",u=o;break;case 58:u=1+hi(T),f=y;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&Hyt()==125)continue}switch(T+=bl(x),x*p){case 38:m=h>0?1:(T+="\f",-1);break;case 44:if(v>0)break;s[c++]=(hi(T)-1)*m,m=1;break;case 64:gn()===45&&(T+=Kp(Gr())),d=gn(),h=u=hi(w=T+=Kyt(Oh())),x++;break;case 45:y===45&&hi(T)==2&&(p=0)}}return a}function KS(e,t,r,i,n,a,o,s,l,c,h,u){for(var d=n-1,f=n===0?a:[""],y=GP(f),p=0,g=0,m=0;p<i;++p)for(var v=0,x=ns(e,d+1,d=Wyt(g=o[p])),w=e;v<y;++v)(w=YP(g>0?f[v]+" "+x:_m(x,/&\f/g,f[v])))&&(l[m++]=w);return Gb(e,t,r,n===0?qP:s,l,c,h,u)}function Qyt(e,t,r,i){return Gb(e,t,r,Yb,bl(qyt()),ns(e,2,-2),0,i)}function ZS(e,t,r,i,n){return Gb(e,t,r,HP,ns(e,0,i),ns(e,i+1,-1),i,n)}function Om(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function Jyt(e,t,r,i){switch(e.type){case UP:if(e.children.length)break;case Ryt:case Nyt:case HP:return e.return=e.return||e.value;case Yb:return"";case Tm:return e.return=e.value+"{"+Om(e.children,i)+"}";case qP:if(!hi(e.value=e.props.join(",")))return""}return hi(r=Om(e.children,i))?e.return=e.value+"{"+r+"}":""}function tmt(e){var t=GP(e);return function(r,i,n,a){for(var o="",s=0;s<t;s++)o+=e[s](r,i,n,a)||"";return o}}var XP="c4",emt=S(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),rmt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./c4Diagram-AAUBKEIU-FCpHECPi.js");return{diagram:t}},__vite__mapDeps([7,8,3,4]));return{id:XP,diagram:e}},"loader"),imt={id:XP,detector:emt,loader:rmt},nmt=imt,KP="flowchart",amt=S((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),omt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./flowDiagram-I6XJVG4X-DZFGIzBY.js");return{diagram:t}},__vite__mapDeps([9,10,8,11,12,3,4]));return{id:KP,diagram:e}},"loader"),smt={id:KP,detector:amt,loader:omt},lmt=smt,ZP="flowchart-v2",cmt=S((e,t)=>{var r,i,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),hmt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./flowDiagram-I6XJVG4X-DZFGIzBY.js");return{diagram:t}},__vite__mapDeps([9,10,8,11,12,3,4]));return{id:ZP,diagram:e}},"loader"),umt={id:ZP,detector:cmt,loader:hmt},fmt=umt,QP="er",dmt=S(e=>/^\s*erDiagram/.test(e),"detector"),pmt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./erDiagram-TEJ5UH35-xSFukGVw.js");return{diagram:t}},__vite__mapDeps([13,11,12,3,4]));return{id:QP,diagram:e}},"loader"),gmt={id:QP,detector:dmt,loader:pmt},ymt=gmt,JP="gitGraph",mmt=S(e=>/^\s*gitGraph/.test(e),"detector"),vmt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-PVQCEYII-DBSBpxJ8.js");return{diagram:t}},__vite__mapDeps([14,15,16,17,3,4]));return{id:JP,diagram:e}},"loader"),bmt={id:JP,detector:mmt,loader:vmt},xmt=bmt,tL="gantt",Cmt=S(e=>/^\s*gantt/.test(e),"detector"),wmt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./ganttDiagram-6RSMTGT7-PoYeC8G4.js");return{diagram:t}},__vite__mapDeps([18,3,4]));return{id:tL,diagram:e}},"loader"),Smt={id:tL,detector:Cmt,loader:wmt},kmt=Smt,eL="info",Tmt=S(e=>/^\s*info/.test(e),"detector"),_mt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./infoDiagram-5YYISTIA-IXGtMvne.js");return{diagram:t}},__vite__mapDeps([19,17,3,4]));return{id:eL,diagram:e}},"loader"),Amt={id:eL,detector:Tmt,loader:_mt},rL="pie",Omt=S(e=>/^\s*pie/.test(e),"detector"),Bmt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./pieDiagram-4H26LBE5-BT-eYsLA.js");return{diagram:t}},__vite__mapDeps([20,15,17,3,4]));return{id:rL,diagram:e}},"loader"),$mt={id:rL,detector:Omt,loader:Bmt},iL="quadrantChart",Emt=S(e=>/^\s*quadrantChart/.test(e),"detector"),Pmt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./quadrantDiagram-W4KKPZXB-CIsqsQt-.js");return{diagram:t}},__vite__mapDeps([21,3,4]));return{id:iL,diagram:e}},"loader"),Lmt={id:iL,detector:Emt,loader:Pmt},Mmt=Lmt,nL="xychart",Fmt=S(e=>/^\s*xychart(-beta)?/.test(e),"detector"),Imt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./xychartDiagram-2RQKCTM6-BB1wQ-0w.js");return{diagram:t}},__vite__mapDeps([22,3,4]));return{id:nL,diagram:e}},"loader"),Dmt={id:nL,detector:Fmt,loader:Imt},Rmt=Dmt,aL="requirement",jmt=S(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),Nmt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./requirementDiagram-4Y6WPE33-fyrdu8e7.js");return{diagram:t}},__vite__mapDeps([23,11,12,3,4]));return{id:aL,diagram:e}},"loader"),zmt={id:aL,detector:jmt,loader:Nmt},Wmt=zmt,oL="sequence",qmt=S(e=>/^\s*sequenceDiagram/.test(e),"detector"),Hmt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./sequenceDiagram-3UESZ5HK-uBThH_F1.js");return{diagram:t}},__vite__mapDeps([24,8,16,3,4]));return{id:oL,diagram:e}},"loader"),Umt={id:oL,detector:qmt,loader:Hmt},Ymt=Umt,sL="class",Gmt=S((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),Vmt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./classDiagram-4FO5ZUOK-Ccq4jSyC.js");return{diagram:t}},__vite__mapDeps([25,26,10,8,11,12,3,4]));return{id:sL,diagram:e}},"loader"),Xmt={id:sL,detector:Gmt,loader:Vmt},Kmt=Xmt,lL="classDiagram",Zmt=S((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),Qmt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./classDiagram-v2-Q7XG4LA2-Ccq4jSyC.js");return{diagram:t}},__vite__mapDeps([27,26,10,8,11,12,3,4]));return{id:lL,diagram:e}},"loader"),Jmt={id:lL,detector:Zmt,loader:Qmt},tvt=Jmt,cL="state",evt=S((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),rvt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./stateDiagram-AJRCARHV-C3jlmYFt.js");return{diagram:t}},__vite__mapDeps([28,29,11,12,1,2,3,4]));return{id:cL,diagram:e}},"loader"),ivt={id:cL,detector:evt,loader:rvt},nvt=ivt,hL="stateDiagram",avt=S((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),ovt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-BHNVJYJU-UVf7Ebqo.js");return{diagram:t}},__vite__mapDeps([30,29,11,12,3,4]));return{id:hL,diagram:e}},"loader"),svt={id:hL,detector:avt,loader:ovt},lvt=svt,uL="journey",cvt=S(e=>/^\s*journey/.test(e),"detector"),hvt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./journeyDiagram-JHISSGLW-DPqYgCYC.js");return{diagram:t}},__vite__mapDeps([31,10,8,3,4]));return{id:uL,diagram:e}},"loader"),uvt={id:uL,detector:cvt,loader:hvt},fvt=uvt,dvt=S((e,t,r)=>{X.debug(`rendering svg for syntax error
374`);const i=aft(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),CO(i,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.
374164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),fL={draw:dvt},pvt=fL,gvt={db:{},renderer:fL,parser:{parse:S(()=>{},"parse")}},yvt=gvt,dL="flowchart-elk",mvt=S((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),vvt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./flowDiagram-I6XJVG4X-DZFGIzBY.js");return{diagram:t}},__vite__mapDeps([9,10,8,11,12,3,4]));return{id:dL,diagram:e}},"loader"),bvt={id:dL,detector:mvt,loader:vvt},xvt=bvt,pL="timeline",Cvt=S(e=>/^\s*timeline/.test(e),"detector"),wvt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./timeline-definition-PNZ67QCA-BRoshcLw.js");return{diagram:t}},__vite__mapDeps([32,3,4]));return{id:pL,diagram:e}},"loader"),Svt={id:pL,detector:Cvt,loader:wvt},kvt=Svt,gL="mindmap",Tvt=S(e=>/^\s*mindmap/.test(e),"detector"),_vt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./mindmap-definition-RKZ34NQL-BGL-TCsk.js");return{diagram:t}},__vite__mapDeps([33,11,12,3,4]));return{id:gL,diagram:e}},"loader"),Avt={id:gL,detector:Tvt,loader:_vt},Ovt=Avt,yL="kanban",Bvt=S(e=>/^\s*kanban/.test(e),"detector"),$vt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./kanban-definition-UN3LZRKU-sNHinQbo.js");return{diagram:t}},__vite__mapDeps([34,10,3,4]));return{id:yL,diagram:e}},"loader"),Evt={id:yL,detector:Bvt,loader:$vt},Pvt=Evt,mL="sankey",Lvt=S(e=>/^\s*sankey(-beta)?/.test(e),"detector"),Mvt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./sankeyDiagram-5OEKKPKP-CYlu_Uh_.js");return{diagram:t}},__vite__mapDeps([35,3,4]));return{id:mL,diagram:e}},"loader"),Fvt={id:mL,detector:Lvt,loader:Mvt},Ivt=Fvt,vL="packet",Dvt=S(e=>/^\s*packet(-beta)?/.test(e),"detector"),Rvt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./diagram-LMA3HP47-Dp6b5Mm2.js");return{diagram:t}},__vite__mapDeps([36,15,17,3,4]));return{id:vL,diagram:e}},"loader"),jvt={id:vL,detector:Dvt,loader:Rvt},bL="radar",Nvt=S(e=>/^\s*radar-beta/.test(e),"detector"),zvt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./diagram-2AECGRRQ-CUic2hVB.js");return{diagram:t}},__vite__mapDeps([37,15,17,3,4]));return{id:bL,diagram:e}},"loader"),Wvt={id:bL,detector:Nvt,loader:zvt},xL="block",qvt=S(e=>/^\s*block(-beta)?/.test(e),"detector"),Hvt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./blockDiagram-GPEHLZMM-BeHz0slE.js");return{diagram:t}},__vite__mapDeps([38,10,1,3,4]));return{id:xL,diagram:e}},"loader"),Uvt={id:xL,detector:qvt,loader:Hvt},Yvt=Uvt,CL="treeView",Gvt=S(e=>/^\s*treeView-beta/.test(e),"detector"),Vvt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./diagram-5GNKFQAL-BYchDJeD.js");return{diagram:t}},__vite__mapDeps([39,15,16,17,3,4]));return{id:CL,diagram:e}},"loader"),Xvt={id:CL,detector:Gvt,loader:Vvt},Kvt=Xvt,wL="architecture",Zvt=S(e=>/^\s*architecture/.test(e),"detector"),Qvt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./architectureDiagram-3BPJPVTR-C0JVXd_1.js");return{diagram:t}},__vite__mapDeps([40,15,17,6,3,4]));return{id:wL,diagram:e}},"loader"),Jvt={id:wL,detector:Zvt,loader:Qvt},tbt=Jvt,SL="eventmodeling",ebt=S(e=>/^\s*eventmodeling/.test(e),"detector"),rbt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./diagram-KO2AKTUF-DyorT4tV.js");return{diagram:t}},__vite__mapDeps([41,15,17,3,4]));return{id:SL,diagram:e}},"loader"),ibt={id:SL,detector:ebt,loader:rbt},nbt=ibt,kL="ishikawa",abt=S(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),obt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./ishikawaDiagram-YF4QCWOH-DV3LF1ml.js");return{diagram:t}},__vite__mapDeps([42,3,4]));return{id:kL,diagram:e}}
vendor: 5,804 bytes, lines 374-376
374,"loader"),sbt={id:kL,detector:abt,loader:obt},TL="venn",lbt=S(e=>/^\s*venn-beta/.test(e),"detector"),cbt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./vennDiagram-CIIHVFJN-BKNdgaWe.js");return{diagram:t}},__vite__mapDeps([43,3,4]));return{id:TL,diagram:e}},"loader"),hbt={id:TL,detector:lbt,loader:cbt},ubt=hbt,_L="treemap",fbt=S(e=>/^\s*treemap/.test(e),"detector"),dbt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./diagram-OG6HWLK6-DtxrN-fk.js");return{diagram:t}},__vite__mapDeps([44,12,15,17,3,4]));return{id:_L,diagram:e}},"loader"),pbt={id:_L,detector:fbt,loader:dbt},AL="wardley-beta",gbt=S(e=>/^\s*wardley-beta/i.test(e),"detector"),ybt=S(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./wardleyDiagram-YWT4CUSO-YORco5wD.js");return{diagram:t}},__vite__mapDeps([45,15,17,3,4]));return{id:AL,diagram:e}},"loader"),mbt={id:AL,detector:gbt,loader:ybt},vbt=mbt,QS=!1,Md=S(()=>{QS||(QS=!0,Ku("error",yvt,e=>e.toLowerCase().trim()==="error"),Ku("---",{db:{clear:S(()=>{},"clear")},styles:{},renderer:{draw:S(()=>{},"draw")},parser:{parse:S(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:S(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Wy(xvt,Ovt,tbt),Wy(nmt,Pvt,tvt,Kmt,ymt,kmt,Amt,$mt,Wmt,Ymt,fmt,lmt,kvt,xmt,lvt,nvt,fvt,Mmt,Ivt,jvt,Rmt,Yvt,nbt,Kvt,Wvt,sbt,pbt,ubt,vbt))},"addDiagrams"),bbt=S(async()=>{X.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(ua).map(async([r,{detector:i,loader:n}])=>{if(n)try{Gy(r)}catch{try{const{diagram:a,id:o}=await n();Ku(o,a,i)}catch(a){throw X.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete ua[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){X.error(`Failed to load ${t.length} external diagrams`);for(const r of t)X.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),xbt="graphics-document document";function OL(e,t){e.attr("role",xbt),t!==""&&e.attr("aria-roledescription",t)}S(OL,"setA11yDiagramInfo");function BL(e,t,r,i){if(e.insert!==void 0){if(r){const n=`chart-desc-${i}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){const n=`chart-title-${i}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}S(BL,"addSVGa11yTitleDescription");var ia,Bm=(ia=class{constructor(t,r,i,n,a){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=a}static async fromText(t,r={}){var c,h;const i=oe(),n=ab(t,i);t=Qdt(t)+`
375`;try{Gy(n)}catch{const u=Cht(n);if(!u)throw new oO(`Diagram ${n} not found.`);const{id:d,diagram:f}=await u();Ku(d,f)}const{db:a,parser:o,renderer:s,init:l}=Gy(n);return o.parser&&(o.parser.yy=a),(c=a.clear)==null||c.call(a),l==null||l(i),r.title&&((h=a.setDiagramTitle)==null||h.call(a,r.title)),await o.parse(t),new ia(n,t,a,o,s)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},S(ia,"Diagram"),ia),JS=[],Cbt=S(()=>{JS.forEach(e=>{e()}),JS=[]},"attachFunctions"),wbt=S(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function $L(e){const t=e.match(aO);if(!t)return{text:e,metadata:{}};let r=fdt(t[1],{schema:udt})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}S($L,"extractFrontMatter");var Sbt=S(e=>e.replace(/\r\n?/g,`
376`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),kbt=S(e=>{const{text:t,metadata:r}=$L(e),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),Tbt=S(e=>{const t=Hr.detectInit(e)??{},r=Hr.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:jdt(e),directive:t}},"processDirectives");function Vb(e){const t=Sbt(e),r=kbt(t),i=Tbt(r.text),n=$b(r.config,i.directive);return e=wbt(i.text),{code:e,title:r.title,config:n}}S(Vb,"preprocessDiagram");function EL(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}S(EL,"toBase64");var _bt=5e4,Abt="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Obt="sandbox",Bbt="loose",$bt="http://www.w3.org/2000/svg",Ebt="http://www.w3.org/1999/xlink",Pbt="http://www.w3.org/1999/xhtml",Lbt="100%",Mbt="100%",Fbt="border:0;margin:0;",Ibt="margin:0",Dbt="allow-top-navigation-by-user-activation allow-popups",Rbt='The "iframe" tag is not supported by your browser.',jbt=["foreignobject"],Nbt=["dominant-baseline"];function Xb(e){const t=Vb(e);return Vu(),Vht(t.config??{}),t}S(Xb,"processAndSetConfigs");async function PL(e,t){Md();try{const{code:r,config:i}=Xb(e);return{diagramType:(await ML(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}S(PL,"parse");var tk=S((e,t,r=[])=>{const i=uO(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),zbt=S((e,t=new Map)=>{const r=new CSSStyleSheet;if(e.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),e.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){const s=or(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>
376{pS(l.styles)||s.forEach(c=>{r.insertRule(tk(l.id,c,l.styles),r.cssRules.length)}),pS(l.textStyles)||r.insertRule(tk(l.id,"tspan",((l==null?void 0:l.textStyles)||[]).map(c=>c.replace("color","fill"))),r.cssRules.length)})}let i="";if(e.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const n=new CSSStyleSheet;n.replaceSync(e.themeCSS),i=Yy(n)+`
377`}else i+=`${e.themeCSS}
378`;return i+Yy(r)},"createCssStyles"),Wbt=S((e,t)=>Om(Zyt(`${e}{${t}}`),tmt([S(function(i,n,a,o){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===Tm)return;i.props=i.props.map(s=>s.startsWith(e)?s:`${e} ${s}`)}else i.type.startsWith("@")&&([...[Dyt,jyt,UP,zyt,"@container","@starting-style"],Tm].includes(i.type)||(X.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=Yb))},"addNamespace"),Jyt])),"compileCSS"),qbt=S((e,t,r,i)=>{const n=zbt(e,r),a=dut(t,n,{...e.themeVariables,theme:e.theme,look:e.look},i);return Wbt(i,a)},"createUserStyles"),Hbt=S((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=pa(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),Ubt=S((e="",t)=>{var n,a;const r=(a=(n=t==null?void 0:t.viewBox)==null?void 0:n.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":Mbt,i=EL(`<body style="${Ibt}">${e}</body>`);return`<iframe style="width:${Lbt};height:${r};${Fbt}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${Dbt}">
379  ${Rbt}
380</iframe>`},"putIntoIFrame"),ek=S((e,t,r,i,n)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",$bt);return n&&o.attr("xmlns:xlink",n),o.append("g"),e},"appendDivSvgG");function $m(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}S($m,"sandboxedIframe");var Ybt=S((e,t,r,i)=>{var n,a,o;
vendor: 7,576 bytes, lines 380-382
380(n=e.getElementById(t))==null||n.remove(),(a=e.getElementById(r))==null||a.remove(),(o=e.getElementById(i))==null||o.remove()},"removeExistingElements"),Gbt=S(async function(e,t,r){var I,D,_,B,O,M;Md();const i=Xb(t);t=i.code;const n=oe();X.debug(n),t.length>((n==null?void 0:n.maxTextSize)??_bt)&&(t=Abt);const a=`#${e}`,o="i"+e,s="#"+o,l="d"+e,c="#"+l,h=S(()=>{const $=St(d?s:c).node();$&&"remove"in $&&$.remove()},"removeTempElements");let u=St(document.body);const d=n.securityLevel===Obt,f=n.securityLevel===Bbt,y=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),d){const F=$m(St(r),o);u=St(F.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=St(r);ek(u,e,l,`font-family: ${y}`,Ebt)}else{if(Ybt(document,e,l,o),d){const F=$m(St(document.body),o);u=St(F.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=St("body");ek(u,e,l)}let p,g;try{p=await Bm.fromText(t,{title:i.title})}catch(F){if(n.suppressErrorRendering)throw h(),F;p=await Bm.fromText("error"),g=F}const m=u.select(c).node(),v=p.type,x=m.firstChild,w=x.firstChild,b=(D=(I=p.renderer).getClasses)==null?void 0:D.call(I,t,p),C=qbt(n,v,b,a),k=document.createElement("style");k.innerHTML=C,x.insertBefore(k,w);try{await p.renderer.draw(t,e,"11.15.0",p)}catch(F){throw n.suppressErrorRendering?h():pvt.draw(t,e,"11.15.0"),F}const T=u.select(`${c} svg`),E=(B=(_=p.db).getAccTitle)==null?void 0:B.call(_),L=(M=(O=p.db).getAccDescription)==null?void 0:M.call(O);FL(v,T,E,L),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Pbt);let P=u.select(c).node().innerHTML;if(X.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),P=Hbt(P,d,tn(n.arrowMarkerAbsolute)),d){const F=u.select(c+" svg").node();P=Ubt(P,F)}else f||(P=na.sanitize(P,{ADD_TAGS:jbt,ADD_ATTR:Nbt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Cbt(),g)throw g;return h(),{diagramType:v,svg:P,bindFunctions:p.db.bindFunctions}},"render");function LL(e={}){var i;const t=Se({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Yht(t),t!=null&&t.theme&&t.theme in Wi?t.themeVariables=Wi[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Wi.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?Uht(t):fO();ib(r.logLevel),Md()}S(LL,"initialize");var ML=S((e,t={})=>{const{code:r}=Vb(e);return Bm.fromText(r,t)},"getDiagramFromText");function FL(e,t,r,i){OL(t,e),BL(t,r,i,t.attr("id"))}S(FL,"addA11yInfo");var ya=Object.freeze({render:Gbt,parse:PL,getDiagramFromText:ML,initialize:LL,getConfig:oe,setConfig:dO,getSiteConfig:fO,updateSiteConfig:Ght,reset:S(()=>{Vu()},"reset"),globalReset:S(()=>{Vu(es)},"globalReset"),defaultConfig:es});ib(oe().logLevel);Vu(oe());var Vbt=S((e,t,r)=>{X.warn(e),Bb(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),IL=S(async function(e={querySelector:".mermaid"}){try{await Xbt(e)}catch(t){if(Bb(t)&&X.error(t.str),mr.parseError&&mr.parseError(t),!e.suppressErrors)throw X.error("Use the suppressErrors option to suppress these errors"),t}},"run"),Xbt=S(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=ya.getConfig();X.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");X.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(X.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),ya.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new Hr.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const s=[];for(const l of Array.from(n)){if(X.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${a.next()}`;o=l.innerHTML,o=K$(Hr.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=Hr.detectInit(o);h&&X.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:d}=await NL(c,o,l);l.innerHTML=u,e&&await e(c),d&&d(l)}catch(u){Vbt(u,s,mr.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),DL=S(function(e){ya.initialize(e)},"initialize"),Kbt=S(async function(e,t,r){X.warn("mermaid.init is deprecated. Please use run instead."),e&&DL(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await IL(i)},"init"),Zbt=S(async(e,{lazyLoad:t=!0}={})=>{Md(),Wy(...e),t===!1&&await bbt()},"registerExternalDiagrams"),RL=S(function(){if(mr.startOnLoad){const{startOnLoad:e}=ya.getConfig();e&&mr.run().catch(t=>X.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",RL,!1);var Qbt=S(function(e){mr.parseError=e},"setParseErrorHandler"),gf=[],Zp=!1,jL=S(async()=>{if(!Zp){for(Zp=!0;gf.length>0;){const e=gf.shift();if(e)try{await e()}catch(t){X.error("Error executing queue",t)}}Zp=!1}},"executeQueue"),Jbt=S(async(e,t)=>new Promise((r,i)=>{const n=S(()=>new Promise((a,o)=>{ya.parse(e,t).then(s=>{a(s),r(s)},s=>{var l;X.error("Error parsing",s),(l=mr.parseError)==null||l.call(mr,s),o(s),i(s)})}),"performCall");gf.push(n),jL().catch(i)}),"parse"),NL=S((e,t,r)=>new Promise((i,n)=>{const a=S(()=>new Promise((o,s)=>{ya.render(e,t,r).then(l=>{o(l),i(l)},l=>{var c;X.error("Error parsing",l),(c=mr.parseError)==null||c.call(mr,l),s(l),n(l)})}),"performCall");gf.push(a),jL().catch(n)}),"render"),t0t=S(()=>Object.keys(ua).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),mr={startOnLoad:!0,mermaidAPI:ya,parse:Jbt,render:NL,init:Kbt,run:IL,registerExternalDiagrams:Zbt,registerLayoutLoaders:WP,initialize:DL,parseError:void 0,contentLoaded:RL,setParseErrorHandler:Qbt,detectType:ab,registerIconPacks:agt,getRegisteredDiagramsMetadata:t0t},e0t=mr;/*! Check if previously processed *//*!
381 * Wait for document loaded before starting the execution
382 */const W0t=Object.freeze(Object.defineProperty({__proto__:null,default:e0t},Symbol.toStringTag,{value:"Module"}));export{Al as $,d0t as A,Qgt as B,Itt as C,B0t as D,put as E,S0t as F,xn as G,v0t as H,fht as I,udt as J,oe as K,wut as L,$b as M,hO as N,Hdt as O,aft as P,Td as Q,s0t as R,a0t as S,Tr as T,yv as U,o0t as V,eu as W,Sa as X,ka as Y,Aht as Z,Dt as _,Ln as a,$v as a$,sgt as a0,jm as a1,ac as a2,C0t as a3,Fdt as a4,rut as a5,xO as a6,nS as a7,Ih as a8,qdt as a9,Cc as aA,h0t as aB,wa as aC,u0t as aD,Pn as aE,pc as aF,b0t as aG,Myt as aH,D0t as aI,j0t as aJ,F0t as aK,dt as aL,I0t as aM,cyt as aN,nyt as aO,iyt as aP,x0t as aQ,Pc as aR,agt as aS,ngt as aT,OU as aU,s1 as aV,o1 as aW,l0t as aX,uht as aY,T0t as aZ,y2 as a_,ti as aa,q as ab,H as ac,hut as ad,wO as ae,Pgt as af,RP as ag,R0t as ah,O0t as ai,ddt as aj,or as ak,en as al,qs as am,Eb as an,P$ as ao,pa as ap,I$ as aq,Ob as ar,ct as as,xv as at,kO as au,_0t as av,ft as aw,D$ as ax,c0t as ay,Ja as az,yut as b,Xf as b0,yH as b1,gH as b2,Oo as b3,pH as b4,dH as b5,iu as b6,vc as b7,Ov as b8,_v as b9,Xn as ba,ru as bb,k0t as bc,A0t as bd,f0t as be,Sc as bf,g0t as bg,_a as bh,Or as bi,PA as bj,p0t as bk,Yv as bl,Pi as bm,m0t as bn,y0t as bo,rb as bp,N9 as bq,ms as br,nht as bs,Do as bt,RM as bu,Ot as bv,n0t as bw,W0t as bx,gut as c,S as d,jt as e,St as f,vut as g,CO as h,Se as i,Ki as j,Xr as k,X as l,pdt as m,Ac as n,M$ as o,na as p,_c as q,w0t as r,mut as s,z0t as t,N0t as u,Hr as v,Gdt as w,but as x,xut as y,fdt as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.