@kw-yeh/vibeflow 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +146 -0
- package/dist/vibeflow.mjs +6103 -0
- package/dist/web/404/index.html +1 -0
- package/dist/web/404.html +1 -0
- package/dist/web/_next/static/-9MMnQDtlhk8JcEq6dTBS/_buildManifest.js +1 -0
- package/dist/web/_next/static/-9MMnQDtlhk8JcEq6dTBS/_ssgManifest.js +1 -0
- package/dist/web/_next/static/chunks/02e71eac.0250f42685eae210.js +18 -0
- package/dist/web/_next/static/chunks/043de7d2.3a6733c82bc2409f.js +160 -0
- package/dist/web/_next/static/chunks/1201.011a689cd95a4983.js +1 -0
- package/dist/web/_next/static/chunks/1282.d0e740390a16bb90.js +1 -0
- package/dist/web/_next/static/chunks/1396.cb165487d4bf0f35.js +1 -0
- package/dist/web/_next/static/chunks/167.98f928ccaed44837.js +1 -0
- package/dist/web/_next/static/chunks/1672.82392f784373fc1a.js +149 -0
- package/dist/web/_next/static/chunks/1776.9ad96593642a32f0.js +36 -0
- package/dist/web/_next/static/chunks/1840.fa1f1878af23fd9f.js +41 -0
- package/dist/web/_next/static/chunks/1886.22db355b96ff3e38.js +7 -0
- package/dist/web/_next/static/chunks/2039.461f2ac8bbfeb1cf.js +90 -0
- package/dist/web/_next/static/chunks/2107.2540b21d69c927d0.js +1 -0
- package/dist/web/_next/static/chunks/2205.fe6639ba89aebb99.js +1 -0
- package/dist/web/_next/static/chunks/2271.8d52a83cf1b02b3e.js +1 -0
- package/dist/web/_next/static/chunks/2396.a4c1620b6d217c02.js +1 -0
- package/dist/web/_next/static/chunks/260.7db9b90987032402.js +1 -0
- package/dist/web/_next/static/chunks/2806.c2a6f6733f2b439b.js +32 -0
- package/dist/web/_next/static/chunks/2817.a82d851ccf215c35.js +1 -0
- package/dist/web/_next/static/chunks/3082.5086ba86ade06629.js +1 -0
- package/dist/web/_next/static/chunks/3110.db844baaab453716.js +287 -0
- package/dist/web/_next/static/chunks/3289.04108f17cdf795e3.js +1 -0
- package/dist/web/_next/static/chunks/3618.418bfeef9a735cc6.js +148 -0
- package/dist/web/_next/static/chunks/3711.7f07235c9e8ae090.js +1 -0
- package/dist/web/_next/static/chunks/3746.81e4d62ebdb395eb.js +1 -0
- package/dist/web/_next/static/chunks/3846.d63d31d2de9a159c.js +1 -0
- package/dist/web/_next/static/chunks/3927.8202e4c7eeb07487.js +74 -0
- package/dist/web/_next/static/chunks/39a04069.9dd71f191712d3fa.js +62 -0
- package/dist/web/_next/static/chunks/4012.440934d750758d59.js +1 -0
- package/dist/web/_next/static/chunks/4109.f1de572405aa3b2b.js +309 -0
- package/dist/web/_next/static/chunks/4224.c5c8af77fc9b6c44.js +286 -0
- package/dist/web/_next/static/chunks/4270-6c9c75303137e3a5.js +9 -0
- package/dist/web/_next/static/chunks/4292.70e0a2a99b20e418.js +1 -0
- package/dist/web/_next/static/chunks/4459.814d84742e06267c.js +1 -0
- package/dist/web/_next/static/chunks/4485.e209e1d39502d049.js +226 -0
- package/dist/web/_next/static/chunks/4802.6f5a5e00488db074.js +1 -0
- package/dist/web/_next/static/chunks/5432.3349240a8cd1114c.js +94 -0
- package/dist/web/_next/static/chunks/5468.7440c698079f7f79.js +1 -0
- package/dist/web/_next/static/chunks/5469.5e1555e411d9c96b.js +1 -0
- package/dist/web/_next/static/chunks/5695.45dd981e66074a89.js +1 -0
- package/dist/web/_next/static/chunks/5785.01c97ed45f552929.js +8 -0
- package/dist/web/_next/static/chunks/59.a9be2f8a75bc42e9.js +1 -0
- package/dist/web/_next/static/chunks/5918.7a18726fa96ba97d.js +1 -0
- package/dist/web/_next/static/chunks/621.7f06a4c57845924d.js +27 -0
- package/dist/web/_next/static/chunks/6232.4ebeb2a3e3fde2f9.js +1 -0
- package/dist/web/_next/static/chunks/6390.df979849e0b82b10.js +1 -0
- package/dist/web/_next/static/chunks/6747.fe4ace8428cf57b8.js +1 -0
- package/dist/web/_next/static/chunks/67584bf0.bcc252f93280fffc.js +1 -0
- package/dist/web/_next/static/chunks/6848.18adf63b76b43ce0.js +1 -0
- package/dist/web/_next/static/chunks/6863.7c16f1cf40adc214.js +77 -0
- package/dist/web/_next/static/chunks/6981.db8f1cd11466723b.js +1 -0
- package/dist/web/_next/static/chunks/7045.7cf0eb88acb1ee65.js +1 -0
- package/dist/web/_next/static/chunks/7266.5fc4e54a82b394a3.js +23 -0
- package/dist/web/_next/static/chunks/7271.3e11a6c675bba517.js +1 -0
- package/dist/web/_next/static/chunks/7443.de45a50460ec02b4.js +217 -0
- package/dist/web/_next/static/chunks/7449.be3a97c644b086d6.js +86 -0
- package/dist/web/_next/static/chunks/7835.eaf45d5554820d67.js +104 -0
- package/dist/web/_next/static/chunks/7869.b407f42eca1ddf4d.js +1 -0
- package/dist/web/_next/static/chunks/7913.3de14c31f63521fd.js +193 -0
- package/dist/web/_next/static/chunks/7915.e23554d5280c643a.js +1 -0
- package/dist/web/_next/static/chunks/7992.5dde103489d49ad1.js +24 -0
- package/dist/web/_next/static/chunks/8057.16633338493802bd.js +24 -0
- package/dist/web/_next/static/chunks/8244.0a0a340eddcff9ce.js +1 -0
- package/dist/web/_next/static/chunks/8259.62f5c49f967282f1.js +64 -0
- package/dist/web/_next/static/chunks/8372.eb7c979688ab1442.js +62 -0
- package/dist/web/_next/static/chunks/8590.c7e1c62b00e799ea.js +1 -0
- package/dist/web/_next/static/chunks/8655.1a55ea833e35b289.js +115 -0
- package/dist/web/_next/static/chunks/8687.cbb5d2e055f2a05f.js +1 -0
- package/dist/web/_next/static/chunks/8704.bb5e916a22041380.js +1 -0
- package/dist/web/_next/static/chunks/88492ad4.406f106f686c2ea4.js +82 -0
- package/dist/web/_next/static/chunks/898.a636c29260da655a.js +93 -0
- package/dist/web/_next/static/chunks/9371.f52b19a630591b42.js +34 -0
- package/dist/web/_next/static/chunks/94.c653beceaa62934f.js +1 -0
- package/dist/web/_next/static/chunks/9516.3d1f5c6a23f298e9.js +1 -0
- package/dist/web/_next/static/chunks/9525.c2f5e990d374aeb6.js +38 -0
- package/dist/web/_next/static/chunks/9540.9cc4cb31dd3a0d0a.js +1 -0
- package/dist/web/_next/static/chunks/9612.d9f1b4d3209e70dc.js +79 -0
- package/dist/web/_next/static/chunks/9759.ddd2794ce95b458c.js +1 -0
- package/dist/web/_next/static/chunks/b02c773b.2d61cc590e6c1c58.js +1 -0
- package/dist/web/_next/static/chunks/b9dacbaa.d2b59af18cc80870.js +1 -0
- package/dist/web/_next/static/chunks/d94f238e.ed1acca9cb2f0773.js +122 -0
- package/dist/web/_next/static/chunks/f24717c3.caadd8481abaaae2.js +1 -0
- package/dist/web/_next/static/chunks/framework-b92a367cf1ad4bf7.js +1 -0
- package/dist/web/_next/static/chunks/main-ec7fd4c371d06729.js +5 -0
- package/dist/web/_next/static/chunks/pages/_app-320afeed07d86516.js +1 -0
- package/dist/web/_next/static/chunks/pages/_error-8f65b0f8749f42d2.js +1 -0
- package/dist/web/_next/static/chunks/pages/home-efefddd4b88b018d.js +11 -0
- package/dist/web/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/dist/web/_next/static/chunks/webpack-c8aa5df0425f6b7b.js +1 -0
- package/dist/web/_next/static/css/edcc6abb24dfd492.css +2 -0
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/favicon.ico +0 -0
- package/dist/web/home/index.html +1 -0
- package/dist/web/logo.svg +17 -0
- package/package.json +37 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3927],{1203:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(19519),i=r(62079);let a=(t,e)=>{let r=i.A.parse(t);for(let t in e)r[t]=n.A.channel.clamp[t](e[t]);return i.A.stringify(r)}},3288:(t,e,r)=>{"use strict";function n(t,e,r){if(t&&t.length){let[n,i]=e,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(let e of t){let[t,r]=e;e[0]=(t-n)*o-(r-i)*s+n,e[1]=(t-n)*s+(r-i)*o+i}}}function i(t,e){var r;let i=e.hachureAngle+90,a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(o=a),function(t,e,r,i=1){let a=Math.max(e,.1),o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(r)for(let t of o)n(t,s,r);let l=function(t,e,r){let n=[];for(let e of t){var i,a;let t=[...e];i=t[0],a=t[t.length-1],i[0]===a[0]&&i[1]===a[1]||t.push([t[0][0],t[0][1]]),t.length>2&&n.push(t)}let o=[];e=Math.max(e,.1);let s=[];for(let t of n)for(let e=0;e<t.length-1;e++){let r=t[e],n=t[e+1];if(r[1]!==n[1]){let t=Math.min(r[1],n[1]);s.push({ymin:t,ymax:Math.max(r[1],n[1]),x:t===r[1]?r[0]:n[0],islope:(n[0]-r[0])/(n[1]-r[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return o;let l=[],c=s[0].ymin,u=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>c);e++)t=e;s.splice(0,t+1).forEach(t=>{l.push({s:c,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=c))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||u%e==0)&&l.length>1)for(let t=0;t<l.length;t+=2){let e=t+1;if(e>=l.length)break;let r=l[t].edge,n=l[e].edge;o.push([[Math.round(r.x),c],[Math.round(n.x),c]])}c+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),u++}return o}(o,a,i);if(r){let t;for(let t of o)n(t,s,-r);t=[],l.forEach(e=>t.push(...e)),n(t,s,-r)}return l}(t,a,i,o||1)}r.d(e,{A:()=>G});class a{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){let r=[];for(let n of t)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return r}}function o(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends a{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let n=i(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),a=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(a),c=.5*r*Math.sin(a);for(let[t,e]of n)o([t,e])&&s.push([[t[0]-l,t[1]+c],[...e]],[[t[0]+l,t[1]-c],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends a{fillPolygons(t,e){let r=this._fillPolygons(t,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,n);return r.ops=r.ops.concat(i.ops),r}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){let r=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);let a=n/4;for(let s of t){let t=o(s),l=Math.ceil(t/n)-1,c=t-l*n,u=(s[0][0]+s[1][0])/2-n/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){let o=u-a+2*Math.random()*a,s=h+c+t*n-a+2*Math.random()*a,l=this.helper.ellipse(o,s,i,i,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class u{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){let r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,n=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,i=[];return t.forEach(t=>{let a=o(t),s=Math.floor(a/(r+n)),l=(a+n-s*(r+n))/2,c=t[0],u=t[1];c[0]>u[0]&&(c=t[1],u=t[0]);let h=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let t=0;t<s;t++){let a=t*(r+n),o=a+r,s=[c[0]+a*Math.cos(h)+l*Math.cos(h),c[1]+a*Math.sin(h)+l*Math.sin(h)],u=[c[0]+o*Math.cos(h)+l*Math.cos(h),c[1]+o*Math.sin(h)+l*Math.sin(h)];i.push(...this.helper.doubleLineOps(s[0],s[1],u[0],u[1],e))}}),i}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?r:e.zigzagOffset,a=i(t,e=Object.assign({},e,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,e)}}zigzagLines(t,e,r){let n=[];return t.forEach(t=>{let i=Math.round(o(t)/(2*e)),a=t[0],s=t[1];a[0]>s[0]&&(a=t[1],s=t[0]);let l=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let t=0;t<i;t++){let i=2*t*e,o=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),c=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],u=[a[0]+o*Math.cos(l),a[1]+o*Math.sin(l)],h=[c[0]+s*Math.cos(l+Math.PI/4),c[1]+s*Math.sin(l+Math.PI/4)];n.push(...this.helper.doubleLineOps(c[0],c[1],h[0],h[1],r),...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],r))}}),n}}let f={};class p{constructor(t){this.seed=t}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let d={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 g(t){let e=[],r=function(t){let e=[];for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),n="BOD",i=0,a=r[0];for(;2!==a.type;){let o=0,s=[];if("BOD"===n){if("M"!==a.text&&"m"!==a.text)return g("M0,0"+t);i++,o=d[a.text],n=a.text}else 1===a.type?o=d[n]:(i++,o=d[a.text],n=a.text);if(!(i+o<r.length))throw Error("Path data ended short");for(let t=i;t<i+o;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+n+","+e.text);s[s.length]=+e.text}if("number"!=typeof d[n])throw Error("Bad segment: "+n);{let t={key:n,data:s};e.push(t),i+=o,a=r[i],"M"===n&&(n="L"),"m"===n&&(n="l")}}return e}function m(t){let e=0,r=0,n=0,i=0,a=[];for(let{key:o,data:s}of t)switch(o){case"M":a.push({key:"M",data:[...s]}),[e,r]=s,[n,i]=s;break;case"m":e+=s[0],r+=s[1],a.push({key:"M",data:[e,r]}),n=e,i=r;break;case"L":a.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":a.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],a.push({key:"H",data:[e]});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]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function y(t){let e=[],r="",n=0,i=0,a=0,o=0,s=0,l=0;for(let{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[n,i]=u,[a,o]=u;break;case"C":e.push({key:"C",data:[...u]}),n=u[4],i=u[5],s=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[n,i]=u;break;case"H":n=u[0],e.push({key:"L",data:[n,i]});break;case"V":i=u[0],e.push({key:"L",data:[n,i]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=n+(n-s),a=i+(i-l)):(t=n,a=i),e.push({key:"C",data:[t,a,...u]}),s=u[0],l=u[1],n=u[2],i=u[3];break}case"T":{let[t,a]=u,o=0,c=0;"Q"===r||"T"===r?(o=n+(n-s),c=i+(i-l)):(o=n,c=i);let h=n+2*(o-n)/3,f=i+2*(c-i)/3,p=t+2*(o-t)/3,d=a+2*(c-a)/3;e.push({key:"C",data:[h,f,p,d,t,a]}),s=o,l=c,n=t,i=a;break}case"Q":{let[t,r,a,o]=u,c=n+2*(t-n)/3,h=i+2*(r-i)/3,f=a+2*(t-a)/3,p=o+2*(r-o)/3;e.push({key:"C",data:[c,h,f,p,a,o]}),s=t,l=r,n=a,i=o;break}case"A":{let t=Math.abs(u[0]),r=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],l=u[5],c=u[6];0===t||0===r?(e.push({key:"C",data:[n,i,l,c,l,c]}),n=l,i=c):(n!==l||i!==c)&&((function t(e,r,n,i,a,o,s,l,c,u){let h=Math.PI*s/180,f=[],p=0,d=0,g=0,m=0;if(u)[p,d,g,m]=u;else{[e,r]=b(e,r,-h),[n,i]=b(n,i,-h);let t=(e-n)/2,s=(r-i)/2,u=t*t/(a*a)+s*s/(o*o);u>1&&(a*=u=Math.sqrt(u),o*=u);let f=a*a,y=o*o,x=(l===c?-1:1)*Math.sqrt(Math.abs((f*y-f*s*s-y*t*t)/(f*s*s+y*t*t)));g=x*a*s/o+(e+n)/2,m=-(x*o)*t/a+(r+i)/2,p=Math.asin(parseFloat(((r-m)/o).toFixed(9))),d=Math.asin(parseFloat(((i-m)/o).toFixed(9))),e<g&&(p=Math.PI-p),n<g&&(d=Math.PI-d),p<0&&(p=2*Math.PI+p),d<0&&(d=2*Math.PI+d),c&&p>d&&(p-=2*Math.PI),!c&&d>p&&(d-=2*Math.PI)}let y=d-p;if(Math.abs(y)>120*Math.PI/180){let e=d,r=n,l=i;f=t(n=g+a*Math.cos(d=c&&d>p?p+120*Math.PI/180*1:p+-(120*Math.PI/180*1)),i=m+o*Math.sin(d),r,l,a,o,s,0,c,[d,e,g,m])}y=d-p;let x=Math.cos(p),k=Math.cos(d),w=Math.tan(y/4),_=4/3*a*w,v=4/3*o*w,M=[e,r],S=[e+_*Math.sin(p),r-v*x],A=[n+_*Math.sin(d),i-v*k],T=[n,i];if(S[0]=2*M[0]-S[0],S[1]=2*M[1]-S[1],u)return[S,A,T].concat(f);{f=[S,A,T].concat(f);let t=[];for(let e=0;e<f.length;e+=3){let r=b(f[e][0],f[e][1],h),n=b(f[e+1][0],f[e+1][1],h),i=b(f[e+2][0],f[e+2][1],h);t.push([r[0],r[1],n[0],n[1],i[0],i[1]])}return t}})(n,i,l,c,t,r,a,o,s).forEach(function(t){e.push({key:"C",data:t})}),n=l,i=c);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=o}r=c}return e}function b(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let x={randOffset:function(t,e){return E(t,e)},randOffsetWithRange:function(t,e,r){return O(t,e,r)},ellipse:function(t,e,r,n,i){let a=v(r,n,i);return M(t,e,i,a).opset},doubleLineOps:function(t,e,r,n,i){return K(t,e,r,n,i,!0)}};function k(t,e,r,n,i){return{type:"path",ops:K(t,e,r,n,i)}}function w(t,e,r){let n=(t||[]).length;if(n>2){let i=[];for(let e=0;e<n-1;e++)i.push(...K(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&i.push(...K(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:i}}return 2===n?k(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function _(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,n=D(r[0],+(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:D(r[0],1.5*(1+.22*e.roughness),C(e));for(let t=1;t<r.length;t++){let a=r[t];if(a.length){let t=D(a,+(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:D(a,1.5*(1+.22*e.roughness),C(e));for(let e of t)"move"!==e.op&&n.push(e);for(let t of r)"move"!==t.op&&i.push(t)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function v(t,e,r){let n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),a=Math.abs(t/2),o=Math.abs(e/2),s=1-r.curveFitting;return a+=E(a*s,r),o+=E(o*s,r),{increment:i,rx:a,ry:o}}function M(t,e,r,n){let[i,a]=P(n.increment,t,e,n.rx,n.ry,1,n.increment*O(.1,O(.4,1,r),r),r),o=N(i,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[i]=P(n.increment,t,e,n.rx,n.ry,1.5,0,r),a=N(i,null,r);o=o.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function S(t,e,r,n,i,a,o,s,l){let c=Math.abs(r/2),u=Math.abs(n/2);c+=E(.01*c,l),u+=E(.01*u,l);let h=i,f=a;for(;h<0;)h+=2*Math.PI,f+=2*Math.PI;f-h>2*Math.PI&&(h=0,f=2*Math.PI);let p=Math.min(2*Math.PI/l.curveStepCount/2,(f-h)/2),d=I(p,t,e,c,u,h,f,1,l);if(!l.disableMultiStroke){let r=I(p,t,e,c,u,h,f,1.5,l);d.push(...r)}return o&&(s?d.push(...K(t,e,t+c*Math.cos(h),e+u*Math.sin(h),l),...K(t,e,t+c*Math.cos(f),e+u*Math.sin(f),l)):d.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+c*Math.cos(h),e+u*Math.sin(h)]})),{type:"path",ops:d}}function A(t,e){let r=y(m(g(t))),n=[],i=[0,0],a=[0,0];for(let{key:t,data:o}of r)switch(t){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":n.push(...K(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{let[t,r,i,s,l,c]=o;n.push(...function(t,e,r,n,i,a,o,s){let l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],u=[0,0],h=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let p=0;p<h;p++)0===p?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(f?0:E(c[0],s)),o[1]+(f?0:E(c[0],s))]}),u=f?[i,a]:[i+E(c[p],s),a+E(c[p],s)],l.push({op:"bcurveTo",data:[t+E(c[p],s),e+E(c[p],s),r+E(c[p],s),n+E(c[p],s),u[0],u[1]]});return l}(t,r,i,s,l,c,a,e)),a=[l,c];break}case"Z":n.push(...K(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function T(t,e){let r=[];for(let n of t)if(n.length){let t=e.maxRandomnessOffset||0,i=n.length;if(i>2){r.push({op:"move",data:[n[0][0]+E(t,e),n[0][1]+E(t,e)]});for(let a=1;a<i;a++)r.push({op:"lineTo",data:[n[a][0]+E(t,e),n[a][1]+E(t,e)]})}}return{type:"fillPath",ops:r}}function $(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!f[r])switch(r){case"zigzag":f[r]||(f[r]=new s(e));break;case"cross-hatch":f[r]||(f[r]=new l(e));break;case"dots":f[r]||(f[r]=new c(e));break;case"dashed":f[r]||(f[r]=new u(e));break;case"zigzag-line":f[r]||(f[r]=new h(e));break;default:f[r="hachure"]||(f[r]=new a(e))}return f[r]})(e,x).fillPolygons(t,e)}function C(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function L(t){return t.randomizer||(t.randomizer=new p(t.seed||0)),t.randomizer.next()}function O(t,e,r,n=1){return r.roughness*n*(L(r)*(e-t)+t)}function E(t,e,r=1){return O(-t,t,e,r)}function K(t,e,r,n,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=R(t,e,r,n,i,!0,!1);if(o)return s;let l=R(t,e,r,n,i,!0,!0);return s.concat(l)}function R(t,e,r,n,i,a,o){let s=Math.pow(t-r,2)+Math.pow(e-n,2),l=Math.sqrt(s),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);let h=u/2,f=.2+.2*L(i),p=i.bowing*i.maxRandomnessOffset*(n-e)/200,d=i.bowing*i.maxRandomnessOffset*(t-r)/200;p=E(p,i,c),d=E(d,i,c);let g=[],m=i.preserveVertices;return a&&(o?g.push({op:"move",data:[t+(m?0:E(h,i,c)),e+(m?0:E(h,i,c))]}):g.push({op:"move",data:[t+(m?0:E(u,i,c)),e+(m?0:E(u,i,c))]})),o?g.push({op:"bcurveTo",data:[p+t+(r-t)*f+E(h,i,c),d+e+(n-e)*f+E(h,i,c),p+t+2*(r-t)*f+E(h,i,c),d+e+2*(n-e)*f+E(h,i,c),r+(m?0:E(h,i,c)),n+(m?0:E(h,i,c))]}):g.push({op:"bcurveTo",data:[p+t+(r-t)*f+E(u,i,c),d+e+(n-e)*f+E(u,i,c),p+t+2*(r-t)*f+E(u,i,c),d+e+2*(n-e)*f+E(u,i,c),r+(m?0:E(u,i,c)),n+(m?0:E(u,i,c))]}),g}function D(t,e,r){if(!t.length)return[];let n=[];n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]),n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]);for(let i=1;i<t.length;i++)n.push([t[i][0]+E(e,r),t[i][1]+E(e,r)]),i===t.length-1&&n.push([t[i][0]+E(e,r),t[i][1]+E(e,r)]);return N(n,null,r)}function N(t,e,r){let n=t.length,i=[];if(n>3){let a=[],o=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<n;e++){let r=t[e];a[0]=[r[0],r[1]],a[1]=[r[0]+(o*t[e+1][0]-o*t[e-1][0])/6,r[1]+(o*t[e+1][1]-o*t[e-1][1])/6],a[2]=[t[e+1][0]+(o*t[e][0]-o*t[e+2][0])/6,t[e+1][1]+(o*t[e][1]-o*t[e+2][1])/6],a[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+E(t,r),e[1]+E(t,r)]})}}else 3===n?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===n&&i.push(...R(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return i}function P(t,e,r,n,i,a,o,s){let l=[],c=[];if(0===s.roughness){t/=4,c.push([e+n*Math.cos(-t),r+i*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){let t=[e+n*Math.cos(a),r+i*Math.sin(a)];l.push(t),c.push(t)}c.push([e+ +n,r+0*i]),c.push([e+n*Math.cos(t),r+i*Math.sin(t)])}else{let u=E(.5,s)-Math.PI/2;c.push([E(a,s)+e+.9*n*Math.cos(u-t),E(a,s)+r+.9*i*Math.sin(u-t)]);let h=2*Math.PI+u-.01;for(let o=u;o<h;o+=t){let t=[E(a,s)+e+n*Math.cos(o),E(a,s)+r+i*Math.sin(o)];l.push(t),c.push(t)}c.push([E(a,s)+e+n*Math.cos(u+2*Math.PI+.5*o),E(a,s)+r+i*Math.sin(u+2*Math.PI+.5*o)]),c.push([E(a,s)+e+.98*n*Math.cos(u+o),E(a,s)+r+.98*i*Math.sin(u+o)]),c.push([E(a,s)+e+.9*n*Math.cos(u+.5*o),E(a,s)+r+.9*i*Math.sin(u+.5*o)])}return[c,l]}function I(t,e,r,n,i,a,o,s,l){let c=a+E(.1,l),u=[];u.push([E(s,l)+e+.9*n*Math.cos(c-t),E(s,l)+r+.9*i*Math.sin(c-t)]);for(let a=c;a<=o;a+=t)u.push([E(s,l)+e+n*Math.cos(a),E(s,l)+r+i*Math.sin(a)]);return u.push([e+n*Math.cos(o),r+i*Math.sin(o)]),u.push([e+n*Math.cos(o),r+i*Math.sin(o)]),N(u,null,l)}function j(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let n=[];if(3===r)n.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{let r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);let i=[],a=1-e;n.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];i[0]=[e[0],e[1]],i[1]=[e[0]+(a*r[t+1][0]-a*r[t-1][0])/6,e[1]+(a*r[t+1][1]-a*r[t-1][1])/6],i[2]=[r[t+1][0]+(a*r[t][0]-a*r[t+2][0])/6,r[t+1][1]+(a*r[t][1]-a*r[t+2][1])/6],i[3]=[r[t+1][0],r[t+1][1]],n.push(i[1],i[2],i[3])}}return n}function U(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function F(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function z(t,e,r,n,i){let a=i||[],o=t[e],s=t[r-1],l=0,c=1;for(let n=e+1;n<r-1;++n){let e=function(t,e,r){let n=U(e,r);if(0===n)return U(t,e);let i=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return U(t,F(e,r,i=Math.max(0,Math.min(1,i))))}(t[n],o,s);e>l&&(l=e,c=n)}return Math.sqrt(l)>n?(z(t,e,c+1,n,a),z(t,c,r,n,a)):(a.length||a.push(o),a.push(s)),a}function B(t,e=.15,r){let n=[],i=(t.length-1)/3;for(let r=0;r<i;r++)!function t(e,r,n,i){let a,o,s,l,c,u,h,f,p=i||[];if(a=e[r+0],o=e[r+1],s=e[r+2],l=e[r+3],c=3*o[0]-2*a[0]-l[0],c*=c,u=3*o[1]-2*a[1]-l[1],u*=u,h=3*s[0]-2*l[0]-a[0],h*=h,f=3*s[1]-2*l[1]-a[1],f*=f,c<h&&(c=h),u<f&&(u=f),c+u<n){let t=e[r+0];p.length?Math.sqrt(U(p[p.length-1],t))>1&&p.push(t):p.push(t),p.push(e[r+3])}else{let i=e[r+0],a=e[r+1],o=e[r+2],s=e[r+3],l=F(i,a,.5),c=F(a,o,.5),u=F(o,s,.5),h=F(l,c,.5),f=F(c,u,.5),d=F(h,f,.5);t([i,l,h,d],0,n,p),t([d,f,u,s],0,n,p)}return p}(t,3*r,e,n);return r&&r>0?z(n,0,n.length,r):n}let Y="none";class H{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(0x80000000*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,n,i){let a=this._o(i);return this._d("line",[k(t,e,r,n,a)],a)}rectangle(t,e,r,n,i){var a,o,s,l;let c=this._o(i),u=[],h=w([[a=t,o=e],[a+(s=r),o],[a+s,o+(l=n)],[a,o+l]],!0,c);if(c.fill){let i=[[t,e],[t+r,e],[t+r,e+n],[t,e+n]];"solid"===c.fillStyle?u.push(T([i],c)):u.push($([i],c))}return c.stroke!==Y&&u.push(h),this._d("rectangle",u,c)}ellipse(t,e,r,n,i){let a=this._o(i),o=[],s=v(r,n,a),l=M(t,e,a,s);if(a.fill)if("solid"===a.fillStyle){let r=M(t,e,a,s).opset;r.type="fillPath",o.push(r)}else o.push($([l.estimatedPoints],a));return a.stroke!==Y&&o.push(l.opset),this._d("ellipse",o,a)}circle(t,e,r,n){let i=this.ellipse(t,e,r,r,n);return i.shape="circle",i}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[w(t,!1,r)],r)}arc(t,e,r,n,i,a,o=!1,s){let l=this._o(s),c=[],u=S(t,e,r,n,i,a,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){let o=Object.assign({},l);o.disableMultiStroke=!0;let s=S(t,e,r,n,i,a,!0,!1,o);s.type="fillPath",c.push(s)}else c.push(function(t,e,r,n,i,a,o){let s=Math.abs(r/2),l=Math.abs(n/2);s+=E(.01*s,o),l+=E(.01*l,o);let c=i,u=a;for(;c<0;)c+=2*Math.PI,u+=2*Math.PI;u-c>2*Math.PI&&(c=0,u=2*Math.PI);let h=(u-c)/o.curveStepCount,f=[];for(let r=c;r<=u;r+=h)f.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return f.push([t+s*Math.cos(u),e+l*Math.sin(u)]),f.push([t,e]),$([f],o)}(t,e,r,n,i,a,l));return l.stroke!==Y&&c.push(u),this._d("arc",c,l)}curve(t,e){let r=this._o(e),n=[],i=_(t,r);if(r.fill&&r.fill!==Y)if("solid"===r.fillStyle){let e=_(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let n of"number"==typeof t[0][0]?[t]:t)n.length<3?e.push(...n):3===n.length?e.push(...B(j([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):e.push(...B(j(n),10,(1+r.roughness)/2));e.length&&n.push($([e],r))}return r.stroke!==Y&&n.push(i),this._d("curve",n,r)}polygon(t,e){let r=this._o(e),n=[],i=w(t,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(T([t],r)):n.push($([t],r))),r.stroke!==Y&&n.push(i),this._d("polygon",n,r)}path(t,e){let r=this._o(e),n=[];if(!t)return this._d("path",n,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let i=r.fill&&"transparent"!==r.fill&&r.fill!==Y,a=r.stroke!==Y,o=!!(r.simplification&&r.simplification<1),s=function(t,e){let r=y(m(g(t))),n=[],i=[],a=[0,0],o=[],s=()=>{o.length>=4&&i.push(...B(o,1)),o=[]},l=()=>{s(),i.length&&(n.push(i),i=[])};for(let{key:t,data:e}of r)switch(t){case"M":l(),a=[e[0],e[1]],i.push(a);break;case"L":s(),i.push([e[0],e[1]]);break;case"C":if(!o.length){let t=i.length?i[i.length-1]:a;o.push([t[0],t[1]])}o.push([e[0],e[1]]),o.push([e[2],e[3]]),o.push([e[4],e[5]]);break;case"Z":s(),i.push([a[0],a[1]])}if(l(),!e)return n;let c=[];for(let t of n){let r=z(t,0,t.length,e);r.length&&c.push(r)}return c}(t,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=A(t,r);if(i)if("solid"===r.fillStyle)if(1===s.length){let e=A(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else n.push(T(s,r));else n.push($(s,r));return a&&(o?s.forEach(t=>{n.push(w(t,!1,r))}):n.push(l)),this._d("path",n,r)}opsToPath(t,e){let r="";for(let n of t.ops){let t="number"==typeof e&&e>=0?n.data.map(t=>+t.toFixed(e)):n.data;switch(n.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,n=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:Y};break;case"fillPath":e={d:this.opsToPath(t),stroke:Y,strokeWidth:0,fill:r.fill||Y};break;case"fillSketch":e=this.fillSketch(t,r)}e&&n.push(e)}return n}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||Y,strokeWidth:r,fill:Y}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class q{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(let a of e)switch(a.type){case"path":n.save(),n.strokeStyle="none"===r.stroke?"transparent":r.stroke,n.lineWidth=r.strokeWidth,r.strokeLineDash&&n.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(n.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(n,a,i),n.restore();break;case"fillPath":{n.save(),n.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(n,a,i,e),n.restore();break}case"fillSketch":this.fillSketch(n,a,r)}}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=n,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,n="nonzero"){for(let n of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?n.data.map(t=>+t.toFixed(r)):n.data;switch(n.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a),a}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a),a}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a),a}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i),i}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let W="http://www.w3.org/2000/svg";class X{constructor(t,e){this.svg=t,this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,i=n.createElementNS(W,"g"),a=t.options.fixedDecimalPlaceDigits;for(let o of e){let e=null;switch(o.type){case"path":(e=n.createElementNS(W,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=n.createElementNS(W,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(n,o,r)}e&&i.appendChild(e)}return i}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);let i=t.createElementNS(W,"path");return i.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),i.setAttribute("stroke",r.fill||""),i.setAttribute("stroke-width",n+""),i.setAttribute("fill","none"),r.fillLineDash&&i.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a)}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a)}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a)}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var G={canvas:(t,e)=>new q(t,e),svg:(t,e)=>new X(t,e),generator:t=>new H(t),newSeed:()=>H.newSeed()}},5218:(t,e,r)=>{"use strict";r.d(e,{H:()=>s,R:()=>o});var n=r(14528),i=r(26707),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:(0,n.K)((...t)=>{},"trace"),debug:(0,n.K)((...t)=>{},"debug"),info:(0,n.K)((...t)=>{},"info"),warn:(0,n.K)((...t)=>{},"warn"),error:(0,n.K)((...t)=>{},"error"),fatal:(0,n.K)((...t)=>{},"fatal")},s=(0,n.K)(function(t="fatal"){let e=a.fatal;"string"==typeof t?t.toLowerCase()in a&&(e=a[t]):"number"==typeof t&&(e=t),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},e<=a.fatal&&(o.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=a.error&&(o.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=a.warn&&(o.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",l("WARN"))),e<=a.info&&(o.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=a.debug&&(o.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=a.trace&&(o.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,n.K)(t=>{let e=i().format("ss.SSS");return`%c${e} : ${t} : `},"format")},6030:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(23792);let i=(t,e)=>(0,n.A)(t,"l",e)},7108:(t,e,r)=>{"use strict";function n(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}r.d(e,{X:()=>n})},10637:(t,e,r)=>{"use strict";let n;function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{A:()=>tx});let a=Object.entries,o=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,h=Object.seal,f=Object.create,p="u">typeof Reflect&&Reflect,d=p.apply,g=p.construct;u||(u=function(t){return t}),h||(h=function(t){return t}),d||(d=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t.apply(e,n)}),g||(g=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return new t(...r)});let m=N(Array.prototype.forEach),y=N(Array.prototype.lastIndexOf),b=N(Array.prototype.pop),x=N(Array.prototype.push),k=N(Array.prototype.splice),w=Array.isArray,_=N(String.prototype.toLowerCase),v=N(String.prototype.toString),M=N(String.prototype.match),S=N(String.prototype.replace),A=N(String.prototype.indexOf),T=N(String.prototype.trim),$=N(Number.prototype.toString),C=N(Boolean.prototype.toString),L="u"<typeof BigInt?null:N(BigInt.prototype.toString),O="u"<typeof Symbol?null:N(Symbol.prototype.toString),E=N(Object.prototype.hasOwnProperty),K=N(Object.prototype.toString),R=N(RegExp.prototype.test),D=(tb=TypeError,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return g(tb,e)});function N(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return d(t,e,n)}}function P(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(o&&o(t,null),!w(e))return t;let n=e.length;for(;n--;){let i=e[n];if("string"==typeof i){let t=r(i);t!==i&&(s(e)||(e[n]=t),i=t)}t[i]=!0}return t}function I(t){let e=f(null);for(let n of a(t)){var r=function(t){if(Array.isArray(t))return t}(n)||function(t){var e=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,n,i,a,o=[],s=!0,l=!1;try{i=(e=e.call(t)).next,!1;for(;!(s=(r=i.call(e)).done)&&(o.push(r.value),2!==o.length);s=!0);}catch(t){l=!0,n=t}finally{try{if(!s&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw n}}return o}}(n)||function(t){if(t){if("string"==typeof t)return i(t,2);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(t,2):void 0}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let a=r[0],o=r[1];E(t,a)&&(w(o)?e[a]=function(t){for(let e=0;e<t.length;e++)E(t,e)||(t[e]=null);return t}(o):o&&"object"==typeof o&&o.constructor===Object?e[a]=I(o):e[a]=o)}return e}function j(t,e){for(;null!==t;){let r=c(t,e);if(r){if(r.get)return N(r.get);if("function"==typeof r.value)return N(r.value)}t=l(t)}return function(){return null}}let U=u(["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"]),F=u(["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"]),z=u(["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"]),B=u(["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"]),Y=u(["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"]),H=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=u(["#text"]),W=u(["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","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),X=u(["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","dominant-baseline","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","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),G=u(["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"]),Z=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=h(/{{[\w\W]*|^[\w\W]*}}/g),Q=h(/<%[\w\W]*|^[\w\W]*%>/g),J=h(/\${[\w\W]*/g),tt=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),te=h(/^aria-[\-\w]+$/),tr=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tn=h(/^(?:\w+script|data):/i),ti=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ta=h(/^html$/i),to=h(/^[a-z][.\w]*(-[.\w]+)+$/i),ts=h(/<[/\w!]/g),tl=h(/<[/\w]/g),tc=h(/<\/no(script|embed|frames)/i),tu=h(/\/>/i),th=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],tf=u(P({},th)),tp=(n={},m(th,t=>{n[t]=h(RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),u(n)),td=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},tg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},tm=function(t,e,r,n){return E(t,e)&&w(t[e])?P(n.base?I(n.base):{},t[e],n.transform):r},ty=function(t,e,r){let n=E(t,e)?t[e]:void 0;return n&&"object"==typeof n?I(n):r()};var tb,tx=function t(){let e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,i=e=>t(e);if(i.version="3.4.15",i.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return i.isSupported=!1,i;let o=n.document,s=o,l=s.currentScript;n.DocumentFragment;let c=n.HTMLTemplateElement,p=n.Node,d=n.Element,g=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let N=n.DOMParser,th=n.trustedTypes,tb=d.prototype,tx=j(tb,"cloneNode"),tk=j(tb,"remove"),tw=j(tb,"removeAttributeNode"),t_=j(tb,"nextSibling"),tv=j(tb,"childNodes"),tM=j(tb,"parentNode"),tS=j(tb,"shadowRoot"),tA=j(tb,"attributes"),tT=p&&p.prototype?j(p.prototype,"nodeType"):null,t$=p&&p.prototype?j(p.prototype,"nodeName"):null,tC=p&&p.prototype?j(p.prototype,"ownerDocument"):null,tL=function(t){return tT?tT(t):t.nodeType},tO=function(t){return t$?t$(t):t.nodeName};if("function"==typeof c){let t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let tE="",tK=!1,tR=0,tD=function(){if(tR>0)throw D('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.')},tN=function(t){tD(),tR++;try{return e.createHTML(t)}finally{tR--}},tP=function(t){tD(),tR++;try{return e.createScriptURL(t)}finally{tR--}},tI=o,tj=tI.implementation,tU=tI.createNodeIterator,tF=tI.createDocumentFragment,tz=tI.getElementsByTagName,tB=s.importNode,tY=tg();i.isSupported="function"==typeof a&&"function"==typeof tM&&tj&&void 0!==tj.createHTMLDocument;let tH=tr,tq=null,tW=P({},[...U,...F,...z,...Y,...q]),tX=null,tG=P({},[...W,...X,...G,...Z]),tZ=Object.seal(f(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}})),tV=null,tQ=null,tJ=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),t0=!0,t1=!0,t2=!1,t3=!0,t5=!1,t6=!0,t8=!1,t4=!1,t9=null,t7=null,et=!1,ee=!1,er=!1,en=!1,ei=!0,ea=!1,eo="user-content-",es=!0,el=!1,ec={},eu=null,eh=P({},["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"]),ef=null,ep=P({},["audio","video","img","source","image","track"]),ed=null,eg=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),em="http://www.w3.org/1998/Math/MathML",ey="http://www.w3.org/2000/svg",eb="http://www.w3.org/1999/xhtml",ex=eb,ek=!1,ew=null,e_=P({},[em,ey,eb],v),ev=u(["mi","mo","mn","ms","mtext"]),eM=P({},ev),eS=u(["annotation-xml"]),eA=P({},eS),eT=P({},["title","style","font","a","script"]),e$=null,eC=["application/xhtml+xml","text/html"],eL=null,eO=null,eE=o.createElement("form"),eK=function(t){return t instanceof RegExp||t instanceof Function},eR=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eO&&eO===t)return;t&&"object"==typeof t||(t={}),t=I(t),eL="application/xhtml+xml"===(e$=-1===eC.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?v:_,tq=tm(t,"ALLOWED_TAGS",tW,{transform:eL}),tX=tm(t,"ALLOWED_ATTR",tG,{transform:eL}),ew=tm(t,"ALLOWED_NAMESPACES",e_,{transform:v}),ed=tm(t,"ADD_URI_SAFE_ATTR",eg,{transform:eL,base:eg}),ef=tm(t,"ADD_DATA_URI_TAGS",ep,{transform:eL,base:ep}),eu=tm(t,"FORBID_CONTENTS",eh,{transform:eL}),tV=tm(t,"FORBID_TAGS",I({}),{transform:eL}),tQ=tm(t,"FORBID_ATTR",I({}),{transform:eL}),ec=!!E(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?I(t.USE_PROFILES):t.USE_PROFILES),t0=!1!==t.ALLOW_ARIA_ATTR,t1=!1!==t.ALLOW_DATA_ATTR,t2=t.ALLOW_UNKNOWN_PROTOCOLS||!1,t3=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,t5=t.SAFE_FOR_TEMPLATES||!1,t6=!1!==t.SAFE_FOR_XML,t8=t.WHOLE_DOCUMENT||!1,ee=t.RETURN_DOM||!1,er=t.RETURN_DOM_FRAGMENT||!1,en=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,ei=!1!==t.SANITIZE_DOM,ea=t.SANITIZE_NAMED_PROPS||!1,es=!1!==t.KEEP_CONTENT,el=t.IN_PLACE||!1,tH=!function(t){try{return R(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?tr:t.ALLOWED_URI_REGEXP,ex="string"==typeof t.NAMESPACE?t.NAMESPACE:eb,eM=ty(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>P({},ev)),eA=ty(t,"HTML_INTEGRATION_POINTS",()=>P({},eS));let n=ty(t,"CUSTOM_ELEMENT_HANDLING",()=>f(null));if(tZ=f(null),E(n,"tagNameCheck")&&eK(n.tagNameCheck)&&(tZ.tagNameCheck=n.tagNameCheck),E(n,"attributeNameCheck")&&eK(n.attributeNameCheck)&&(tZ.attributeNameCheck=n.attributeNameCheck),E(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(tZ.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),h(tZ),t5&&(t1=!1),er&&(ee=!0),ec&&(tq=P({},q),tX=f(null),!0===ec.html&&(P(tq,U),P(tX,W)),!0===ec.svg&&(P(tq,F),P(tX,X),P(tX,Z)),!0===ec.svgFilters&&(P(tq,z),P(tX,X),P(tX,Z)),!0===ec.mathMl&&(P(tq,Y),P(tX,G),P(tX,Z))),tJ.tagCheck=null,tJ.attributeCheck=null,E(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?tJ.tagCheck=t.ADD_TAGS:w(t.ADD_TAGS)&&(tq===tW&&(tq=I(tq)),P(tq,t.ADD_TAGS,eL))),E(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?tJ.attributeCheck=t.ADD_ATTR:w(t.ADD_ATTR)&&(tX===tG&&(tX=I(tX)),P(tX,t.ADD_ATTR,eL))),E(t,"ADD_FORBID_CONTENTS")&&w(t.ADD_FORBID_CONTENTS)&&(eu===eh&&(eu=I(eu)),P(eu,t.ADD_FORBID_CONTENTS,eL)),es&&(tq["#text"]=!0),t8&&P(tq,["html","head","body"]),tq.table&&(P(tq,["tbody"]),delete tV.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=e;e=t.TRUSTED_TYPES_POLICY;try{tE=tN("")}catch(t){throw e=r,t}}else null===t.TRUSTED_TYPES_POLICY?(e=void 0,tE=""):(void 0===e&&(tK||(r=td(th,l),tK=!0),e=r),e&&"string"==typeof tE&&(tE=tN("")));u&&u(t),eO=t},eD=P({},[...F,...z,...B]),eN=P({},[...Y,...H]),eP=function(t){var e,r,n;let i=tM(t);i&&i.tagName||(i={namespaceURI:ex,tagName:"template"});let a=_(t.tagName),o=_(i.tagName);return!!ew[t.namespaceURI]&&(t.namespaceURI===ey?(e=i).namespaceURI===eb?"svg"===a:e.namespaceURI===em?"svg"===a&&("annotation-xml"===o||eM[o]):!!eD[a]:t.namespaceURI===em?(r=i).namespaceURI===eb?"math"===a:r.namespaceURI===ey?"math"===a&&eA[o]:!!eN[a]:t.namespaceURI===eb?((n=i).namespaceURI!==ey||!!eA[o])&&(n.namespaceURI!==em||!!eM[o])&&!eN[a]&&(eT[a]||!eD[a]):"application/xhtml+xml"===e$&&!!ew[t.namespaceURI])},eI=function(t){x(i.removed,{element:t});try{tM(t).removeChild(t)}catch(e){if(tk(t),!tM(t))throw D("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ej=function(t,e,r){try{tw(t,e)}catch(e){try{t.removeAttribute(r)}catch(t){}}},eU=function(t){eB(t);let e=tv(t);if(e){let t=[];m(e,e=>{x(t,e)}),m(t,t=>{try{tk(t)}catch(t){}})}let r=tA(t);if(r)for(let e=r.length-1;e>=0;--e){let n=r[e],i=n&&n.name;"string"==typeof i&&ej(t,n,i)}},eF=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}x(i.removed,{attribute:r||null,from:e});try{r?tw(e,r):e.removeAttribute(t)}catch(r){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ee||er)try{eI(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ez=function(t){let e=tA(t);if(e)for(let r=e.length-1;r>=0;--r){let n=e[r],i=n&&n.name;"string"!=typeof i||tX[eL(i)]||ej(t,n,i)}},eB=function(t){let e=[t];for(;e.length>0;){let t=e.pop();1===tL(t)&&ez(t);let r=tv(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}},eY=function(t,e){return!!t6&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},eH=function(t){if(!t6)return;let e=[t];for(;e.length>0;){let t=e.pop(),r=tL(t);if(7===r||8===r&&R(tl,t.data)){try{tk(t)}catch(t){}continue}if(1===r){let e=eL(tO(t));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&eY("for",e)&&t.removeAttribute("for")}catch(t){}}let n=tv(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},eq=function(t){let r=null,n=null;if(et)t="<remove></remove>"+t;else{let e=M(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===e$&&ex===eb&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let i=e?tN(t):t;if(ex===eb)try{r=new N().parseFromString(i,e$)}catch(t){}if(!r||!r.documentElement){r=tj.createDocument(ex,"template",null);try{r.documentElement.innerHTML=ek?tE:i}catch(t){}}let a=r.body||r.documentElement;return(t&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),ex===eb)?tz.call(r,t8?"html":"body")[0]:t8?r.documentElement:a},eW=function(t){let e=tC?tC(t):t.ownerDocument;return tU.call(e||t,t,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},eX=function(t){return t=S(t,V," "),t=S(t,Q," "),t=S(t,J," ")},eG=function(t){var e;t.normalize();let r=tC?tC(t):t.ownerDocument,n=tU.call(r||t,t,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null),i=n.nextNode();for(;i;)i.data=eX(i.data),i=n.nextNode();let a=null==(e=t.querySelectorAll)?void 0:e.call(t,"template");a&&m(a,t=>{eV(t.content)&&eG(t.content)})},eZ=function(t){let e=t$?t$(t):null;return"string"==typeof e&&"form"===eL(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==tA(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==tT(t)||t.childNodes!==tv(t))},eV=function(t){if(!tT||"object"!=typeof t||null===t)return!1;try{return 11===tT(t)}catch(t){return!1}},eQ=function(t){if(!tT||"object"!=typeof t||null===t)return!1;try{return"number"==typeof tT(t)}catch(t){return!1}};function eJ(t,e,r){0!==t.length&&m(t,t=>{t.call(i,e,r,eO)})}let e0=function(t,e){if(t instanceof RegExp)return R(t,e);if(t instanceof Function){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return!!t(e,...n)}return!1},e1=function(t,e,r){if(!tV[e]&&e4(e)&&e0(tZ.tagNameCheck,e))return!1;if(es&&!eu[e]){let e=tM(t),n=tv(t);if(n&&e){let i=n.length;for(let a=i-1;a>=0;--a){let i=t===r?tx(n[a],!0):n[a];e.insertBefore(i,t_(t))}}}return eI(t),!0},e2=function(t,e,r,n){return 0===t.length?e:e===r||e===n?I(e):e},e3=function(t,e){return t!==e&&null===tM(t)&&(el&&eB(t),!0)},e5=function(t,e){if(eJ(tY.beforeSanitizeElements,t,null),e3(t,e))return!0;if(eZ(t))return eI(t),!0;let r=eL(tO(t));if(tq=e2(tY.uponSanitizeElement,tq,tW,t9),eJ(tY.uponSanitizeElement,t,{tagName:r,allowedTags:tq}),e3(t,e))return!0;if(t6&&t.hasChildNodes()&&!eQ(t.firstElementChild)&&R(ts,t.textContent)&&R(ts,t.innerHTML)||t6&&t.namespaceURI===eb&&tf[r]&&(eQ(t.firstElementChild)||"string"==typeof t.textContent&&R(tp[r],t.textContent))||7===t.nodeType||t6&&8===t.nodeType&&R(tl,t.data))return eI(t),!0;if(tV[r]||!(tJ.tagCheck instanceof Function&&tJ.tagCheck(r))&&!tq[r]){let n=e1(t,r,e);return!1===n&&eJ(tY.afterSanitizeElements,t,null),n}if(1===tL(t)&&!eP(t)||("noscript"===r||"noembed"===r||"noframes"===r)&&R(tc,t.innerHTML))return eI(t),!0;if(t5&&3===t.nodeType){let e=eX(t.textContent);t.textContent!==e&&(x(i.removed,{element:t.cloneNode()}),t.textContent=e)}return eJ(tY.afterSanitizeElements,t,null),!1},e6=function(t,e,r){if(tQ[e]||eY(e,t)||ei&&("id"===e||"name"===e)&&(r in o||r in eE))return!1;let n=tX[e]||tJ.attributeCheck instanceof Function&&tJ.attributeCheck(e,t);return!!(t1&&R(tt,e)||t0&&R(te,e))||(n?!(!(ed[e]||R(tH,S(r,ti,"")))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==A(r,"data:")||!ef[t])&&(!t2||R(tn,S(r,ti,""))))||!r:e4(t)&&e0(tZ.tagNameCheck,t)&&e0(tZ.attributeNameCheck,e,t)||"is"===e&&tZ.allowCustomizedBuiltInElements&&e0(tZ.tagNameCheck,r))},e8=P({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),e4=function(t){return!e8[_(t)]&&R(to,t)},e9=function(t,r,n,i){if(e&&"object"==typeof th&&"function"==typeof th.getAttributeType&&!n)switch(th.getAttributeType(t,r)){case"TrustedHTML":return tN(i);case"TrustedScriptURL":return tP(i)}return i},e7=function(t,e,r,n){try{if(r?t.setAttributeNS(r,e,n):t.setAttribute(e,n),eZ(t))return eI(t),!1;return!0}catch(r){return eF(e,t),!1}},rt=function(t){eJ(tY.beforeSanitizeAttributes,t,null);let e=t.attributes;if(!e||eZ(t))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tX=e2(tY.uponSanitizeAttribute,tX,tG,t7),forceKeepAttr:void 0},n=e.length,a=eL(t.nodeName);for(;n--;){let o=e[n],s=o.name,l=o.namespaceURI,c=o.value,u=eL(s),h="value"===s?c:T(c),f=!1;if(r.attrName=u,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,eJ(tY.uponSanitizeAttribute,t,r),h=r.attrValue,ea&&("id"===u||"name"===u)&&0!==A(h,eo)&&(eF(s,t,o),h=eo+h,f=!0),t6&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)||"attributename"===u&&M(h,"href")){eF(s,t,o);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!t3&&R(tu,h)||(t5&&(h=eX(h)),!e6(a,u,h))){eF(s,t,o);continue}(h=e9(a,u,l,h))!==c&&e7(t,s,l,h)&&f&&b(i.removed)}}eJ(tY.afterSanitizeAttributes,t,null)},re=function(t){let e=null,r=eW(t);for(eJ(tY.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(eJ(tY.uponSanitizeShadowNode,e,null),e5(e,t),rt(e),eV(e.content)&&re(e.content),1===tL(e)){let t=tS(e);eV(t)&&(rr(t),re(t))}eJ(tY.afterSanitizeShadowDOM,t,null)},rr=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let t=e.pop();if(t.shadow){re(t.shadow);continue}let r=t.node,n=1===tL(r),i=tv(r);if(i)for(let t=i.length-1;t>=0;--t)e.push({node:i[t],shadow:null});if(n){let t=t$?t$(r):null;if("string"==typeof t&&"template"===eL(t)){let t=r.content;eV(t)&&e.push({node:t,shadow:null})}}if(n){let t=tS(r);eV(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return i.sanitize=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,o=null,l=null;if((ek=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!eQ(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return $(t);case"boolean":return C(t);case"bigint":return L?L(t):"0";case"symbol":return O?O(t):"Symbol()";case"undefined":default:return K(t);case"function":case"object":{if(null===t)return K(t);let e=j(t,"toString");if("function"==typeof e){let r=e(t);return"string"==typeof r?r:K(r)}return K(t)}}}(t)))throw D("dirty is not a string, aborting");if(!i.isSupported)return t;t4?(tq=t9,tX=t7):eR(r),(tY.uponSanitizeElement.length>0||tY.uponSanitizeAttribute.length>0)&&(tq=I(tq)),tY.uponSanitizeAttribute.length>0&&(tX=I(tX)),i.removed=[];let c=el&&"string"!=typeof t&&eQ(t);if(c){eH(t);let e=tO(t);if("string"==typeof e){let r=eL(e);if(!tq[r]||tV[r])throw eU(t),D("root node is forbidden and cannot be sanitized in-place")}if(eZ(t))throw eU(t),D("root node is clobbered and cannot be sanitized in-place");try{rr(t)}catch(e){throw eU(t),e}}else if(eQ(t))1===(a=(n=eq("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a),rr(n);else{if(!ee&&!t5&&!t8&&-1===t.indexOf("<"))return e&&en?tN(t):t;if(!(n=eq(t)))return ee?null:en?tE:""}n&&et&&eI(n.firstChild);let u=c?t:n;try{let t=eW(u);for(;o=t.nextNode();)e5(o,u),rt(o),eV(o.content)&&re(o.content)}catch(e){throw c&&(eU(t),m(i.removed,t=>{t.element&&eB(t.element)})),e}if(c)return m(i.removed,t=>{t.element&&eB(t.element)}),t5&&eG(t),t;if(ee){if(t5&&eG(n),er)for(l=tF.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(tX.shadowroot||tX.shadowrootmode)&&(l=tB.call(s,l,!0)),l}let h=t8?n.outerHTML:n.innerHTML;return t8&&tq["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&R(ta,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),t5&&(h=eX(h)),e&&en?tN(h):h},i.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eR(t),t4=!0,t9=tq,t7=tX},i.clearConfig=function(){eO=null,t4=!1,t9=null,t7=null,e=r,tE=""},i.isValidAttribute=function(t,e,r){return eO||eR({}),e6(eL(t),eL(e),r)},i.addHook=function(t,e){"function"!=typeof e||E(tY,t)&&x(tY[t],e)},i.removeHook=function(t,e){if(E(tY,t)){if(void 0!==e){let r=y(tY[t],e);return -1===r?void 0:k(tY[t],r,1)[0]}return b(tY[t])}},i.removeHooks=function(t){E(tY,t)&&(tY[t]=[])},i.removeAllHooks=function(){tY=tg()},i}()},13080:(t,e,r)=>{"use strict";r.d(e,{F:()=>i});var n=r(14528),i=(0,n.K)((t,e)=>{let{theme:r,themeVariables:i}=e,{useGradient:a,gradientStart:o,gradientStop:s}=i??{},l=t.attr("id"),c=r?.includes("dark")?"#FFFFFF":"#000000",u=(0,n.K)((e,r,n)=>t.append("defs").append("filter").attr("id",e).attr("height",r).attr("width",r).append("feDropShadow").attr("dx",n).attr("dy",n).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",c),"dropShadow");if(u(`${l}-drop-shadow`,"130%","4"),u(`${l}-drop-shadow-small`,"150%","2"),!a)return;let h=t.append("linearGradient").attr("id",`${l}-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",o).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",s).attr("stop-opacity",1)},"insertLookDefs")},14528:(t,e,r)=>{"use strict";r.d(e,{K:()=>i,V:()=>a});var n=Object.defineProperty,i=(t,e)=>n(t,"name",{value:e,configurable:!0}),a=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})}},18395:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},19519:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});let n={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;let a=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-a;switch(i){case"r":return 255*n.hue2rgb(o,a,t+1/3);case"g":return 255*n.hue2rgb(o,a,t);case"b":return 255*n.hue2rgb(o,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},n)=>{let i=Math.max(t/=255,e/=255,r/=255),a=Math.min(t,e,r),o=(i+a)/2;if("l"===n)return 100*o;if(i===a)return 0;let s=i-a;if("s"===n)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case t:return((e-r)/s+6*(e<r))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return -1}}},i={channel:n,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},23792:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(19519),i=r(62079);let a=(t,e,r)=>{let a=i.A.parse(t),o=a[e],s=n.A.channel.clamp[e](o+r);return o!==s&&(a[e]=s),i.A.stringify(a)}},26707:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",i="week",a="month",o="quarter",s="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,f=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},p="en",d={};d[p]={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(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof k||!(!t||!t[g])},y=function t(e,r,n){var i;if(!e)return p;if("string"==typeof e){var a=e.toLowerCase();d[a]&&(i=a),r&&(d[a]=r,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;d[s]=e,i=s}return!n&&i&&(p=i),i||!n&&p},b=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new k(r)},x={s:f,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,a),o=r-i<0,s=e.clone().add(n+(o?-1:1),a);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return({M:a,y:s,w:i,d:"day",D:l,h:n,m:r,s:e,ms:t,Q:o})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};x.l=y,x.i=m,x.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function f(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var p=f.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(u);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return x},p.isValid=function(){return this.$d.toString()!==c},p.isSame=function(t,e){var r=b(t);return this.startOf(e)<=r&&r<=this.endOf(e)},p.isAfter=function(t,e){return b(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<b(t)},p.$g=function(t,e,r){return x.u(t)?this[e]:this.set(r,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,o){var c=this,u=!!x.u(o)||o,h=x.p(t),f=function(t,e){var r=x.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return u?r:r.endOf("day")},p=function(t,e){return x.w(c.toDate()[t].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},d=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case s:return u?f(1,0):f(31,11);case a:return u?f(1,g):f(0,g+1);case i:var b=this.$locale().weekStart||0,k=(d<b?d+7:d)-b;return f(u?m-k:m+(6-k),g);case"day":case l:return p(y+"Hours",0);case n:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case e:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(i,o){var c,u=x.p(i),h="set"+(this.$u?"UTC":""),f=((c={}).day=h+"Date",c[l]=h+"Date",c[a]=h+"Month",c[s]=h+"FullYear",c[n]=h+"Hours",c[r]=h+"Minutes",c[e]=h+"Seconds",c[t]=h+"Milliseconds",c)[u],p="day"===u?this.$D+(o-this.$W):o;if(u===a||u===s){var d=this.clone().set(l,1);d.$d[f](p),d.init(),this.$d=d.set(l,Math.min(this.$D,d.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[x.p(t)]()},p.add=function(t,o){var l,c=this;t=Number(t);var u=x.p(o),h=function(e){var r=b(c);return x.w(r.date(r.date()+Math.round(e*t)),c)};if(u===a)return this.set(a,this.$M+t);if(u===s)return this.set(s,this.$y+t);if("day"===u)return h(1);if(u===i)return h(7);var f=((l={})[r]=6e4,l[n]=36e5,l[e]=1e3,l)[u]||1,p=this.$d.getTime()+t*f;return x.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,u=r.months,f=r.meridiem,p=function(t,r,i,a){return t&&(t[r]||t(e,n))||i[r].slice(0,a)},d=function(t){return x.s(a%12||12,t,"0")},g=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,u,3);case"MMMM":return p(u,s);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return p(r.weekdaysMin,e.$W,l,2);case"ddd":return p(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return x.s(a,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,l,c){var u,h=this,f=x.p(l),p=b(t),d=(p.utcOffset()-this.utcOffset())*6e4,g=this-p,m=function(){return x.m(h,p)};switch(f){case s:u=m()/12;break;case a:u=m();break;case o:u=m()/3;break;case i:u=(g-d)/6048e5;break;case"day":u=(g-d)/864e5;break;case n:u=g/36e5;break;case r:u=g/6e4;break;case e:u=g/1e3;break;default:u=g}return c?u:x.a(u)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return d[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=y(t,e,!0);return n&&(r.$L=n),r},p.clone=function(){return x.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},f}(),w=k.prototype;return b.prototype=w,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",s],["$D",l]].forEach(function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),b.extend=function(t,e){return t.$i||(t(e,k,b),t.$i=!0),b},b.locale=y,b.isDayjs=m,b.unix=function(t){return b(1e3*t)},b.en=d[p],b.Ls=d,b.p={},b}()},28996:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>r0});var n=r(62831),i=r(40350),a=r(33280);r(13080),r(64299),r(37064),r(83860),r(60833),r(99980),r(96137);var o=r(41329);r(94698);var s=r(58959),l=r(95631),c=r(5218),u=r(14528),h=r(95525),f=r(60830),p="comm",d="rule",g="decl",m="@keyframes",y="@layer",b=Math.abs,x=String.fromCharCode;function k(t,e,r){return t.replace(e,r)}function w(t,e){return 0|t.charCodeAt(e)}function _(t,e,r){return t.slice(e,r)}function v(t){return t.length}function M(t,e){return e.push(t),t}function S(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function A(t,e,r,n){switch(t.type){case y:if(t.children.length)break;case"@import":case"@namespace":case g:return t.return=t.return||t.value;case p:return"";case m:return t.return=t.value+"{"+S(t.children,n)+"}";case d:if(!v(t.value=t.props.join(",")))return""}return v(r=S(t.children,n))?t.return=t.value+"{"+r+"}":""}var T=1,$=1,C=0,L=0,O=0,E="";function K(t,e,r,n,i,a,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:T,column:$,length:o,return:"",siblings:s}}function R(){return O=L<C?w(E,L++):0,$++,10===O&&($=1,T++),O}function D(){return w(E,L)}function N(t){switch(t){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 P(t){var e,r;return(e=L-1,r=function t(e){for(;R();)switch(O){case e:return L;case 34:case 39:34!==e&&39!==e&&t(O);break;case 40:41===e&&t(e);break;case 92:R()}return L}(91===t?t+2:40===t?t+1:t),_(E,e,r)).trim()}function I(t,e,r,n,i,a,o,s,l,c,u,h){for(var f=i-1,p=0===i?a:[""],g=p.length,m=0,y=0,x=0;m<n;++m)for(var w=0,v=_(t,f+1,f=b(y=o[m])),M=t;w<g;++w)(M=(y>0?p[w]+" "+v:k(v,/&\f/g,p[w])).trim())&&(l[x++]=M);return K(t,e,r,0===i?d:s,l,c,u,h)}function j(t,e,r,n,i){return K(t,e,r,g,_(t,0,n),_(t,n+1,-1),n,i)}var U=r(10637),F=r(42901),z=r(7108),B=r(48375),Y=r(90736);function H(t){if(null==t)return!0;if((0,z.X)(t))return("function"==typeof t.splice||"string"==typeof t||!!(0,F.P)(t)||!!(0,Y.i)(t)||!!(0,B.N)(t))&&0===t.length;if("object"==typeof t||"function"==typeof t){let e;if(t instanceof Map||t instanceof Set)return 0===t.size;let r=Object.keys(t);return(e=t?.constructor,t===("function"==typeof e?e.prototype:Object.prototype))?0===r.filter(t=>"constructor"!==t).length:0===r.length}return!0}var q={id:"c4",detector:(0,u.K)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await r.e(2806).then(r.bind(r,2806));return{id:"c4",diagram:t}},"loader")},W="flowchart-v2",X=(0,u.K)(t=>/^\s*(graph|flowchart)/.test(t),"detector"),G=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7443),r.e(3082)]).then(r.bind(r,83082));return{id:W,diagram:t}},"loader"),Z={id:W,detector:X,loader:G},V="agentflow",Q=(0,u.K)(t=>/^\s*agentflow-beta\b/.test(t),"detector"),J=(0,u.K)(async()=>{let{diagram:t}=await r.e(7913).then(r.bind(r,87913));return{id:V,diagram:t}},"loader"),tt={id:V,detector:Q,loader:J},te="swimlane",tr=(0,u.K)(t=>/^\s*swimlane-beta\b/.test(t),"detector"),tn=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7443),r.e(5785)]).then(r.bind(r,65785));return{id:te,diagram:t}},"loader"),ti={id:te,detector:tr,loader:tn},ta={id:"er",detector:(0,u.K)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await r.e(5432).then(r.bind(r,25432));return{id:"er",diagram:t}},"loader")},to="gitGraph",ts=(0,u.K)(t=>/^\s*gitGraph/.test(t),"detector"),tl=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7835)]).then(r.bind(r,87835));return{id:to,diagram:t}},"loader"),tc={id:to,detector:ts,loader:tl},tu="gantt",th=(0,u.K)(t=>/^\s*gantt/.test(t),"detector"),tf=(0,u.K)(async()=>{let{diagram:t}=await r.e(3110).then(r.bind(r,93110));return{id:tu,diagram:t}},"loader"),tp={id:tu,detector:th,loader:tf},td="info",tg=(0,u.K)(t=>/^\s*info/.test(t),"detector"),tm=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(9516)]).then(r.bind(r,9516));return{id:td,diagram:t}},"loader"),ty={id:td,detector:tg,loader:tm},tb={id:"pie",detector:(0,u.K)(t=>/^\s*pie/.test(t),"detector"),loader:(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(9525)]).then(r.bind(r,49525));return{id:"pie",diagram:t}},"loader")},tx="quadrantChart",tk=(0,u.K)(t=>/^\s*quadrantChart/.test(t),"detector"),tw=(0,u.K)(async()=>{let{diagram:t}=await r.e(6848).then(r.bind(r,66848));return{id:tx,diagram:t}},"loader"),t_={id:tx,detector:tk,loader:tw},tv="xychart",tM=(0,u.K)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tS=(0,u.K)(async()=>{let{diagram:t}=await r.e(2817).then(r.bind(r,72817));return{id:tv,diagram:t}},"loader"),tA={id:tv,detector:tM,loader:tS},tT="requirement",t$=(0,u.K)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tC=(0,u.K)(async()=>{let{diagram:t}=await r.e(9612).then(r.bind(r,19612));return{id:tT,diagram:t}},"loader"),tL={id:tT,detector:t$,loader:tC},tO="sequence",tE=(0,u.K)(t=>/^\s*sequenceDiagram/.test(t),"detector"),tK=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(4888),r.e(1396)]).then(r.bind(r,72319));return{id:tO,diagram:t}},"loader"),tR={id:tO,detector:tE,loader:tK},tD="classDiagram",tN=(0,u.K)(t=>/^\s*classDiagram/.test(t),"detector"),tP=(0,u.K)(async()=>{let{diagram:t}=await r.e(4485).then(r.bind(r,84485));return{id:tD,diagram:t}},"loader"),tI={id:tD,detector:tN,loader:tP},tj="stateDiagram",tU=(0,u.K)(t=>/^\s*stateDiagram/.test(t),"detector"),tF=(0,u.K)(async()=>{let{diagram:t}=await r.e(4224).then(r.bind(r,24224));return{id:tj,diagram:t}},"loader"),tz={id:tj,detector:tU,loader:tF},tB="journey",tY=(0,u.K)(t=>/^\s*journey/.test(t),"detector"),tH=(0,u.K)(async()=>{let{diagram:t}=await r.e(3618).then(r.bind(r,33618));return{id:tB,diagram:t}},"loader"),tq={id:tB,detector:tY,loader:tH},tW={draw:(0,u.K)((t,e,r)=>{c.R.debug("rendering svg for syntax error\n");let i=(0,n.D)(e),a=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,l.a$)(i,100,512,!0),a.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"),a.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"),a.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"),a.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.164-16,16v32c0,8.836 7.156,16 16,16z"),a.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"),a.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"),a.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"),a.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")},tX={db:{},renderer:tW,parser:{parse:(0,u.K)(()=>{},"parse")}},tG="flowchart-elk",tZ=(0,u.K)((t,e={})=>!!/^\s*flowchart-elk/.test(t)&&(e.layout="elk",!0),"detector"),tV=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(7443),r.e(3082)]).then(r.bind(r,83082));return{id:tG,diagram:t}},"loader"),tQ={id:tG,detector:tZ,loader:tV},tJ="timeline",t0=(0,u.K)(t=>/^\s*timeline/.test(t),"detector"),t1=(0,u.K)(async()=>{let{diagram:t}=await r.e(8655).then(r.bind(r,78655));return{id:tJ,diagram:t}},"loader"),t2={id:tJ,detector:t0,loader:t1},t3="mindmap",t5=(0,u.K)(t=>/^\s*mindmap/.test(t),"detector"),t6=(0,u.K)(async()=>{let{diagram:t}=await r.e(2039).then(r.bind(r,62039));return{id:t3,diagram:t}},"loader"),t8={id:t3,detector:t5,loader:t6},t4="kanban",t9=(0,u.K)(t=>/^\s*kanban/.test(t),"detector"),t7=(0,u.K)(async()=>{let{diagram:t}=await r.e(898).then(r.bind(r,898));return{id:t4,diagram:t}},"loader"),et={id:t4,detector:t9,loader:t7},ee="sankey",er=(0,u.K)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),en=(0,u.K)(async()=>{let{diagram:t}=await r.e(9371).then(r.bind(r,39371));return{id:ee,diagram:t}},"loader"),ei={id:ee,detector:er,loader:en},ea="packet",eo=(0,u.K)(t=>/^\s*packet(-beta)?/.test(t),"detector"),es=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7992)]).then(r.bind(r,37992));return{id:ea,diagram:t}},"loader"),el={id:ea,detector:eo,loader:es},ec="radar",eu=(0,u.K)(t=>/^\s*radar-beta/.test(t),"detector"),eh=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(1840)]).then(r.bind(r,31840));return{id:ec,diagram:t}},"loader"),ef={id:ec,detector:eu,loader:eh},ep="block",ed=(0,u.K)(t=>/^\s*block(-beta)?/.test(t),"detector"),eg=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5469),r.e(6390),r.e(1672)]).then(r.bind(r,11672));return{id:ep,diagram:t}},"loader"),em={id:ep,detector:ed,loader:eg},ey="treeView",eb=(0,u.K)(t=>/^\s*treeView-beta/.test(t),"detector"),ex=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(621)]).then(r.bind(r,40621));return{id:ey,diagram:t}},"loader"),ek={id:ey,detector:eb,loader:ex},ew="architecture",e_=(0,u.K)(t=>/^\s*architecture/.test(t),"detector"),ev=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(6278),r.e(4012),r.e(1776)]).then(r.bind(r,21776));return{id:ew,diagram:t}},"loader"),eM={id:ew,detector:e_,loader:ev},eS="eventmodeling",eA=(0,u.K)(t=>/^\s*eventmodeling/.test(t),"detector"),eT=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(8687)]).then(r.bind(r,8687));return{id:eS,diagram:t}},"loader"),e$={id:eS,detector:eA,loader:eT},eC="ishikawa",eL=(0,u.K)(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),eO=(0,u.K)(async()=>{let{diagram:t}=await r.e(8259).then(r.bind(r,88259));return{id:eC,diagram:t}},"loader"),eE={id:eC,detector:eL,loader:eO},eK="venn",eR=(0,u.K)(t=>/^\s*venn-beta/.test(t),"detector"),eD=(0,u.K)(async()=>{let{diagram:t}=await r.e(7266).then(r.bind(r,57266));return{id:eK,diagram:t}},"loader"),eN={id:eK,detector:eR,loader:eD},eP="treemap",eI=(0,u.K)(t=>/^\s*treemap/.test(t),"detector"),ej=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(8057)]).then(r.bind(r,88057));return{id:eP,diagram:t}},"loader"),eU={id:eP,detector:eI,loader:ej},eF="usecase",ez=(0,u.K)(t=>/^\s*usecase-beta(?:\s|$)/.test(t),"detector"),eB=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5469),r.e(4459),r.e(4109)]).then(r.bind(r,4109));return{id:eF,diagram:t}},"loader"),eY={id:eF,detector:ez,loader:eB},eH="wardley",eq=(0,u.K)(t=>/^\s*wardley-beta/i.test(t),"detector"),eW=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(6863)]).then(r.bind(r,86863));return{id:eH,diagram:t}},"loader"),eX={id:eH,detector:eq,loader:eW},eG="cynefin",eZ=(0,u.K)(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),eV=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(8372)]).then(r.bind(r,68372));return{id:eG,diagram:t}},"loader"),eQ={id:eG,detector:eZ,loader:eV},eJ="railroad",e0=(0,u.K)(t=>/^\s*railroad-beta/i.test(t),"detector"),e1=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(3711)]).then(r.bind(r,33711));return{id:eJ,diagram:t}},"loader"),e2={id:eJ,detector:e0,loader:e1},e3="railroadEbnf",e5=(0,u.K)(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),e6=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(2396)]).then(r.bind(r,52396));return{id:e3,diagram:t}},"loader"),e8={id:e3,detector:e5,loader:e6},e4="railroadAbnf",e9=(0,u.K)(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),e7=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(2205)]).then(r.bind(r,42205));return{id:e4,diagram:t}},"loader"),rt={id:e4,detector:e9,loader:e7},re="railroadPeg",rr=(0,u.K)(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),rn=(0,u.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3845),r.e(4012),r.e(7449),r.e(260)]).then(r.bind(r,20260));return{id:re,diagram:t}},"loader"),ri={id:re,detector:rr,loader:rn},ra=!1,ro=(0,u.K)(()=>{ra||(ra=!0,(0,l.Js)("error",tX,t=>"error"===t.toLowerCase().trim()),(0,l.Js)("---",{db:{clear:(0,u.K)(()=>{},"clear")},styles:{},renderer:{draw:(0,u.K)(()=>{},"draw")},parser:{parse:(0,u.K)(()=>{throw 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:(0,u.K)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,l.Xd)(tQ,t8,eM),(0,l.Xd)(tt,q,et,tI,ta,tp,ty,tb,tL,tR,ti,Z,t2,tc,tz,tq,t_,ei,el,tA,em,e$,ek,ef,eE,eU,e2,e8,rt,ri,eN,eX,eQ,eY))},"addDiagrams"),rs=(0,u.K)(async()=>{c.R.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(l.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,l.Gs)(t)}catch{try{let{diagram:t,id:n}=await r();(0,l.Js)(n,t,e)}catch(e){throw c.R.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete l.mW[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(c.R.error(`Failed to load ${t.length} external diagrams`),t))c.R.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function rl(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function rc(t,e,r,n){if(void 0!==t.insert){if(r){let e=`chart-desc-${n}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){let r=`chart-title-${n}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,u.K)(rl,"setA11yDiagramInfo"),(0,u.K)(rc,"addSVGa11yTitleDescription");var ru=class t{constructor(t,e,r,n,i){this.type=t,this.text=e,this.db=r,this.parser=n,this.renderer=i}static{(0,u.K)(this,"Diagram")}static async fromText(e,r={}){let n="string"==typeof e?{raw:e,cleaned:e}:e,i=(0,l.zj)(),a=(0,l.Ch)(n.cleaned,i);try{(0,l.Gs)(a)}catch{let t=(0,l.J$)(a);if(!t)throw new l.C0(`Diagram ${a} not found.`);let{id:e,diagram:r}=await t();(0,l.Js)(e,r)}let{db:o,parser:u,renderer:h,init:f}=(0,l.Gs)(a);u.parser&&(u.parser.yy=o),o.clear?.(),f?.(i),r.title&&o.setDiagramTitle?.(r.title);let p=n.cleaned;if(o.preserveCommentsWhenParsing&&n.withComments){let t=i.maxTextSize??l.UI.maxTextSize;n.withComments.length>t?c.R.warn(`Comment-preserving source exceeds maxTextSize (${n.withComments.length} > ${t}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):p=n.withComments}let d=(0,s.C4)(p)+"\n";return n.frontmatterLineOffset&&o.setFrontmatterLineOffset?.(n.frontmatterLineOffset),await u.parse(d),new t(a,d,o,u,h)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},rh=[],rf=(0,u.K)(()=>{rh.forEach(t=>{t()}),rh=[]},"attachFunctions"),rp=(0,u.K)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rd(t){let e=t.match(l.EJ);if(!e)return{text:t,metadata:{}};let r=e[1],n=r?e[2].split("\n").map(t=>t.startsWith(r)?t.slice(r.length):t).join("\n"):e[2],a=(0,i.H)(n,{schema:i.r})??{};a="object"!=typeof a||Array.isArray(a)?{}:a;let o={};return a.displayMode&&(o.displayMode=a.displayMode.toString()),a.title&&(o.title=a.title.toString()),a.config&&(o.config=a.config),{text:t.slice(e[0].length),metadata:o}}(0,u.K)(rd,"extractFrontMatter");var rg=(0,u.K)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rm=(0,u.K)(t=>{let{text:e,metadata:r}=rd(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},"processFrontmatter"),ry=(0,u.K)(t=>{let e=s._K.detectInit(t)??{},r=s._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,s.vU)(t),directive:e}},"processDirectives");function rb(t){let e=rg(t),r=rm(e),n=ry(r.text),i=(0,s.$t)(r.config,n.directive),a=n.text;return{code:{raw:t,cleaned:rp(a),withComments:a,frontmatterLineOffset:e.length>r.text.length?(e.substring(0,e.length-r.text.length).match(/\n/g)??[]).length:0},title:r.title,config:i}}function rx(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,u.K)(rb,"preprocessDiagram"),(0,u.K)(rx,"toBase64");var rk=["foreignobject"],rw=["dominant-baseline"];function r_(t){let e,r=rb(t);(0,l.cL)();try{e=(0,l.Ch)(r.code.cleaned,(0,l.zj)())}catch{e=void 0}return(0,l.yj)(e),(0,l.xA)(r.config??{}),r}async function rv(t,e){ro();try{let{code:e,config:r}=r_(t);return{diagramType:(await ru.fromText(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}finally{(0,l.yj)(void 0)}}(0,u.K)(r_,"processAndSetConfigs"),(0,u.K)(rv,"parse");var rM=(0,u.K)((t,e,r=[])=>{let n=(0,l.Df)(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),rS=(0,u.K)((t,e=new Map)=>{let r=new CSSStyleSheet;if(void 0!==t.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),void 0!==t.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){let n=(0,l.E)(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{H(t.styles)||n.forEach(e=>{r.insertRule(rM(t.id,e,t.styles),r.cssRules.length)}),H(t.textStyles)||r.insertRule(rM(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))),r.cssRules.length)})}let n="";if(void 0!==t.themeCSS)if("function"==typeof r.replaceSync){let e=new CSSStyleSheet;e.replaceSync(t.themeCSS),n=(0,l.KG)(e)+"\n"}else n+=`${t.themeCSS}
|
|
2
|
+
`;return n+(0,l.KG)(r)},"createCssStyles"),rA=(0,u.K)((t,e)=>{var r,n,i,a,o;return S((i=function t(e,r,n,i,a,o,s,l,c){for(var u,h,f,d,g=0,m=0,y=s,b=0,S=0,A=0,C=1,U=1,F=1,z=0,B=0,Y="",H=a,q=o,W=i,X=Y;U;)switch(A=B,B=R()){case 40:108!=A&&58==w(X,y-1)?(z++,X+="("):X+=P(B);break;case 41:z--,X+=")";break;case 34:case 39:case 91:X+=P(B);break;case 9:case 10:case 13:case 32:if(z>0){X+=x(B);break}X+=function(t){for(;O=D();)if(O<33)R();else break;return N(t)>2||N(O)>3?"":" "}(A);break;case 92:X+=function(t,e){for(var r;--e&&R()&&!(O<48)&&!(O>102)&&(!(O>57)||!(O<65))&&(!(O>70)||!(O<97)););return r=L+(e<6&&32==D()&&32==R()),_(E,t,r)}(L-1,7);continue;case 47:switch(D()){case 42:case 47:M((u=function(t,e){for(;R();)if(t+O===57)break;else if(t+O===84&&47===D())break;return"/*"+_(E,e,L-1)+"*"+x(47===t?t:R())}(R(),L),h=r,f=n,d=c,K(u,h,f,p,x(O),_(u,2,-2),0,d)),c),(5==N(A||1)||5==N(D()||1))&&v(X)&&" "!==_(X,-1,void 0)&&(X+=" ");break;default:X+="/"}break;case 123*C:l[g++]=v(X)*F;case 125*C:case 59:case 0:if(z>0&&B){X+=x(B);break}switch(B){case 0:case 125:U=0;case 59+m:-1==F&&(X=k(X,/\f/g,"")),S>0&&(v(X)-y||0===C)&&M(S>32?j(X+";",i,n,y-1,c):j(k(X," ","")+";",i,n,y-2,c),c);break;case 59:X+=";";default:if(M(W=I(X,r,n,g,m,a,l,Y,H=[],q=[],y,o),o),123===B)if(0===m)t(X,r,W,W,H,o,y,l,q);else{switch(b){case 99:if(110===w(X,3))break;case 108:if(97===w(X,2))break;default:m=0;case 100:case 109:case 115:}m?t(e,W,W,i&&M(I(e,W,W,0,0,a,l,Y,a,H=[],y,q),q),a,q,y,l,i?H:q):t(X,W,W,W,[""],q,0,l,q)}}g=m=S=0,C=F=1,Y=X="",y=s;break;case 58:y=1+v(X),S=A;default:if(C<1){if(123==B)--C;else if(125==B&&0==C++&&125==(O=L>0?w(E,--L):0,$--,10===O&&($=1,T--),O))continue}switch(X+=x(B),B*C){case 38:F=m>0?1:(X+="\f",-1);break;case 44:if(z>0)break;l[g++]=(v(X)-1)*F,F=1;break;case 64:45===D()&&(X+=P(R())),b=D(),m=y=v(Y=X+=function(t){for(;!N(D());)R();return _(E,t,L)}(L)),B++;break;case 45:45===A&&2==v(X)&&(C=0)}}return o}("",null,null,null,[""],(n=r=`${t}{${e}}`,T=$=1,C=v(E=n),L=0,r=[]),0,[0],r),E="",i),(o=(a=[(0,u.K)(function(e,r,n,i){"rule"===e.type&&Array.isArray(e.props)?e.parent&&e.parent.type===m||(e.props=e.props.map(r=>r===t&&Array.isArray(e.children)&&e.children.every(t=>"decl"===t.type&&new Set(["font-family","font-size","fill"]).has(t.props))||(r.startsWith(`${t} `)||r.startsWith(`${t}>`))&&!r.startsWith(`${t} ||`)?r:`${t} ${r}`)):e.type.startsWith("@")&&(["@media","@supports",y,"@scope","@container","@starting-style",m].includes(e.type)||(c.R.warn(`Removing unsupported at-rule ${e.type} from CSS`),e.type=p))},"addNamespace"),A]).length,function(t,e,r,n){for(var i="",s=0;s<o;s++)i+=a[s](t,e,r,n)||"";return i}))},"compileCSS"),rT=(0,u.K)((t,e,r,n)=>{let i=rS(t,r),a=(0,l.tM)(e,i,{...t.themeVariables,theme:t.theme,look:t.look},n);return rA(n,a)},"createUserStyles"),r$=(0,u.K)((t="",e,r)=>{let n=t;return r||e||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=(0,s.Sm)(n)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),rC=(0,u.K)((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%",n=rx(`<body style="margin:0">${t}</body>`);return`<iframe style="width:100%;height:${r};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
3
|
+
The "iframe" tag is not supported by your browser.
|
|
4
|
+
</iframe>`},"putIntoIFrame"),rL=(0,u.K)((t,e,r,n,i)=>{let a=t.append("div");a.attr("id",r),n&&a.attr("style",n);let o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),t},"appendDivSvgG");function rO(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,u.K)(rO,"sandboxedIframe");var rE=(0,u.K)((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),rK=(0,u.K)(async function(t,e,r){let n,i;ro();let a=r_(e),o=a.code;e=o.cleaned;let s=(0,l.zj)();c.R.debug(s),e.length>(s?.maxTextSize??5e4)&&(o={raw:e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",cleaned:e});let h=`#${t}`,p="i"+t,d="#"+p,g="d"+t,m="#"+g,y=(0,u.K)(()=>{let t=x?d:m,e=(0,f.Ltv)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),b=(0,f.Ltv)(document.body),x="sandbox"===s.securityLevel,k="loose"===s.securityLevel,w=s.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),x){let t=rO((0,f.Ltv)(r),p);(b=(0,f.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else b=(0,f.Ltv)(r);rL(b,t,g,`font-family: ${w}`,"http://www.w3.org/1999/xlink")}else{if(rE(document,t,g,p),x){let t=rO((0,f.Ltv)(document.body),p);(b=(0,f.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else b=(0,f.Ltv)("body");rL(b,t,g)}try{n=await ru.fromText(o,{title:a.title})}catch(t){if(s.suppressErrorRendering)throw y(),t;n=await ru.fromText("error"),i=t}let _=b.select(m).node(),v=n.type,M=_.firstChild,S=M.firstChild,A=rT(s,v,n.renderer.getClasses?.(e,n),h),T=document.createElement("style");T.innerHTML=A,M.insertBefore(T,S);try{await n.renderer.draw(e,t,"12.0.0",n)}catch(r){throw s.suppressErrorRendering?y():tW.draw(e,t,"12.0.0"),r}rP(v,b.select(`${m} svg`),n.db.getAccTitle?.(),n.db.getAccDescription?.());let $=(0,u.K)(()=>{b.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let e=b.select(m).node().innerHTML;return c.R.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),e=r$(e,x,(0,l._3)(s.arrowMarkerAbsolute)),x?e=rC(e,b.select(m+" svg").node()):k||(e=U.A.sanitize(e,{ADD_TAGS:rk,ADD_ATTR:rw,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),rf(),e},"serializeSvg")();if(i)throw i;return y(),{diagramType:v,svg:$,bindFunctions:n.db.bindFunctions}},"renderDiagram"),rR=(0,u.K)(async function(t,e,r){try{return await rK(t,e,r)}finally{(0,l.yj)(void 0)}},"render");function rD(t={}){let e=(0,l.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,l.wZ)(e);let r=l.sb.theme;e?.theme&&Object.hasOwn(l.H$,e.theme)?e.themeVariables=l.H$[e.theme].getThemeVariables(e.themeVariables):e&&(null!=e.theme&&"null"!==e.theme&&(e.theme=r),e.themeVariables=l.H$[r].getThemeVariables(e.themeVariables));let n="object"==typeof e?(0,l.UU)(e):(0,l.Q2)();(0,c.H)(n.logLevel),ro()}(0,u.K)(rD,"initialize");var rN=(0,u.K)((t,e={})=>{let{code:r}=rb(t);return ru.fromText(r,e)},"getDiagramFromText");function rP(t,e,r,n){rl(e,t),rc(e,r,n,e.attr("id"))}(0,u.K)(rP,"addA11yInfo");var rI=Object.freeze({render:rR,parse:rv,getDiagramFromText:rN,initialize:rD,getConfig:l.zj,setConfig:l.Nk,getSiteConfig:l.Q2,updateSiteConfig:l.B6,reset:(0,u.K)(()=>{(0,l.cL)()},"reset"),globalReset:(0,u.K)(()=>{(0,l.cL)(l.sb)},"globalReset"),defaultConfig:l.sb});(0,c.H)((0,l.zj)().logLevel),(0,l.cL)((0,l.zj)());var rj=(0,u.K)((t,e,r)=>{c.R.warn(t),(0,s.dq)(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),rU=(0,u.K)(async function(t={querySelector:".mermaid"}){try{await rF(t)}catch(e){if((0,s.dq)(e)&&c.R.error(e.str),rJ.parseError&&rJ.parseError(e),!t.suppressErrors)throw c.R.error("Use the suppressErrors option to suppress these errors"),e}},"run"),rF=(0,u.K)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let n,i,a=rI.getConfig();if(c.R.debug(`${!t?"No ":""}Callback function found`),r)n=r;else if(e)n=document.querySelectorAll(e);else throw Error("Nodes and querySelector are both undefined");c.R.debug(`Found ${n.length} diagrams`),a?.startOnLoad!==void 0&&(c.R.debug("Start On Load: "+a?.startOnLoad),rI.updateSiteConfig({startOnLoad:a?.startOnLoad}));let o=new s._K.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),l=[];for(let e of Array.from(n)){if(c.R.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");let r=`mermaid-${o.next()}`;i=e.innerHTML,i=(0,h.T)(s._K.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let n=s._K.detectInit(i);n&&c.R.debug("Detected early reinit: ",n);try{let{svg:n,bindFunctions:a}=await rV(r,i,e);e.innerHTML=n,t&&await t(r),a&&a(e)}catch(t){rj(t,l,rJ.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),rz=(0,u.K)(function(t){rI.initialize(t)},"initialize"),rB=(0,u.K)(async function(t,e,r){c.R.warn("mermaid.init is deprecated. Please use run instead."),t&&rz(t);let n={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await rU(n)},"init"),rY=(0,u.K)(async(t,{lazyLoad:e=!0}={})=>{ro(),(0,l.Xd)(...t),!1===e&&await rs()},"registerExternalDiagrams"),rH=(0,u.K)(function(){if(rJ.startOnLoad){let{startOnLoad:t}=rI.getConfig();t&&rJ.run().catch(t=>c.R.error("Mermaid failed to initialize",t))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",rH,!1);var rq=(0,u.K)(function(t){rJ.parseError=t},"setParseErrorHandler"),rW=[],rX=!1,rG=(0,u.K)(async()=>{if(!rX){for(rX=!0;rW.length>0;){let t=rW.shift();if(t)try{await t()}catch(t){c.R.error("Error executing queue",t)}}rX=!1}},"executeQueue"),rZ=(0,u.K)(async(t,e)=>new Promise((r,n)=>{let i=(0,u.K)(()=>new Promise((i,a)=>{rI.parse(t,e).then(t=>{i(t),r(t)},t=>{c.R.error("Error parsing",t),rJ.parseError?.(t),a(t),n(t)})}),"performCall");rW.push(i),rG().catch(n)}),"parse"),rV=(0,u.K)((t,e,r)=>new Promise((n,i)=>{let a=(0,u.K)(()=>new Promise((a,o)=>{rI.render(t,e,r).then(t=>{a(t),n(t)},t=>{c.R.error("Error parsing",t),rJ.parseError?.(t),o(t),i(t)})}),"performCall");rW.push(a),rG().catch(i)}),"render"),rQ=(0,u.K)(()=>Object.keys(l.mW).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),rJ={startOnLoad:!0,mermaidAPI:rI,parse:rZ,render:rV,init:rB,run:rU,registerExternalDiagrams:rY,registerLayoutLoaders:a.sO,initialize:rz,parseError:void 0,contentLoaded:rH,setParseErrorHandler:rq,detectType:l.Ch,registerIconPacks:o.pC,getRegisteredDiagramsMetadata:rQ},r0=rJ},32256:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(23792);let i=(t,e)=>(0,n.A)(t,"l",-e)},33280:(t,e,r)=>{"use strict";r.d(e,{XX:()=>y,q7:()=>x,sO:()=>g});var n=r(13080),i=r(64299),a=r(37064),o=r(83860),s=r(60833),l=r(58959),c=r(95631),u=r(5218),h=r(14528),f={common:c.Y2,getConfig:c.zj,insertCluster:i.U,insertEdge:a.Jo,insertEdgeLabel:a.jP,insertMarkers:a.g0,insertNode:o.on,interpolateToCurve:l.Ib,labelHelper:s.Zk,log:u.R,positionEdgeLabel:a.T_},p=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],d=Object.create(null),g=(0,h.K)(t=>{for(let e of t)d[e.name]=e},"registerLayoutLoaders"),m=(0,h.K)(()=>{let t=(0,h.K)(async()=>await Promise.all([r.e(5637),r.e(5469),r.e(6390),r.e(9540),r.e(1282),r.e(3289)]).then(r.bind(r,73289)),"loader");return[{name:"elk",loader:t,algorithm:"elk.layered"},...p.map(e=>({name:e,loader:t,algorithm:e}))]},"elkLayoutLoaders");(0,h.K)(()=>{g([{name:"dagre",loader:(0,h.K)(async()=>await Promise.all([r.e(5469),r.e(6390),r.e(9540),r.e(4459),r.e(8590)]).then(r.bind(r,78590)),"loader")},{name:"swimlane",loader:(0,h.K)(async()=>await Promise.all([r.e(8761),r.e(5469),r.e(6390),r.e(9540),r.e(1282)]).then(r.bind(r,79976)),"loader")},{name:"cose-bilkent",loader:(0,h.K)(async()=>await Promise.all([r.e(6278),r.e(6747)]).then(r.bind(r,36747)),"loader")},...m()])},"registerDefaultLayoutLoaders")();var y=(0,h.K)(async(t,e)=>{if(!Object.hasOwn(d,t.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let r=d[t.layoutAlgorithm],i=await r.loader();return(0,n.F)(e,t.config),i.render(t,e,f,{algorithm:r.algorithm})},"render"),b="dagre",x=(0,h.K)((t="",{fallback:e=b}={})=>{if(Object.hasOwn(d,t))return t;for(let r of[e,b])if(Object.hasOwn(d,r))return u.R.warn(`Layout algorithm ${t} is not registered. Using ${r} as fallback.`),r;throw Error(`Neither layout algorithm ${t}, ${e}, nor ${b} is registered.`)},"getRegisteredLayoutAlgorithm")},36950:(t,e,r)=>{"use strict";function n(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}r.d(e,{b:()=>n})},37064:(t,e,r)=>{"use strict";r.d(e,{IU:()=>A,Jo:()=>U,Nq:()=>g,T_:()=>O,UQ:()=>S,a6:()=>T,g0:()=>td,hq:()=>d,jP:()=>C,lP:()=>M});var n=r(83860),i=r(60833),a=r(99980),o=r(96137),s=r(58959),l=r(95631),c=r(5218),u=r(14528),h=r(60830),f=r(3288),p=(0,u.K)((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";let r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),d={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},g={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function m(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=y(t),e=y(e);let[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],o=i-r,s=a-n;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}(0,u.K)(m,"calculateDeltaAndAngle");var y=(0,u.K)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),b=(0,u.K)(t=>({x:(0,u.K)(function(e,r,n){let i=0,a=y(n[0]).x<y(n[n.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(d,t.arrowTypeStart)){let{angle:e,deltaX:r}=m(n[0],n[1]);i=d[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(d,t.arrowTypeEnd)){let{angle:e,deltaX:r}=m(n[n.length-1],n[n.length-2]);i=d[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let o=Math.abs(y(e).x-y(n[n.length-1]).x),s=Math.abs(y(e).y-y(n[n.length-1]).y),l=Math.abs(y(e).x-y(n[0]).x),c=Math.abs(y(e).y-y(n[0]).y),u=d[t.arrowTypeStart],h=d[t.arrowTypeEnd];if(o<h&&o>0&&s<h){let t=h+1-o;t*="right"===a?-1:1,i-=t}if(l<u&&l>0&&c<u){let t=u+1-l;t*="right"===a?-1:1,i+=t}return y(e).x+i},"x"),y:(0,u.K)(function(e,r,n){let i=0,a=y(n[0]).y<y(n[n.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(d,t.arrowTypeStart)){let{angle:e,deltaY:r}=m(n[0],n[1]);i=d[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(d,t.arrowTypeEnd)){let{angle:e,deltaY:r}=m(n[n.length-1],n[n.length-2]);i=d[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let o=Math.abs(y(e).y-y(n[n.length-1]).y),s=Math.abs(y(e).x-y(n[n.length-1]).x),l=Math.abs(y(e).y-y(n[0]).y),c=Math.abs(y(e).x-y(n[0]).x),u=d[t.arrowTypeStart],h=d[t.arrowTypeEnd];if(o<h&&o>0&&s<h){let t=h+1-o;t*="up"===a?-1:1,i-=t}if(l<u&&l>0&&c<u){let t=u+1-l;t*="up"===a?-1:1,i+=t}return y(e).y+i},"y")}),"getLineFunctionsWithOffset"),x=(0,u.K)((t,e,r,n,i,a=!1,o)=>{e.arrowTypeStart&&_(t,"start",e.arrowTypeStart,r,n,i,a,o),e.arrowTypeEnd&&_(t,"end",e.arrowTypeEnd,r,n,i,a,o)},"addEdgeMarkers"),k={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},arrow_hierarchy:{type:"hierarchy",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}},w=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],_=(0,u.K)((t,e,r,n,i,a,o=!1,s)=>{if(!r||"none"===r)return;let l=k[r],u=l&&w.includes(l.type);if(!l)return void c.R.warn(`Unknown arrow type: ${r}`);let h=l.type,f=`${i}_${a}-${h}${"start"===e?"Start":"End"}${o&&u?"-margin":""}`;if(s&&""!==s.trim()){let r=s.replace(/[^\dA-Za-z]/g,"_"),i=`${f}_${r}`;if(!document.getElementById(i)){let t=document.getElementById(f);if(t){let e=t.cloneNode(!0);e.id=i,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",s),l.fill&&t.setAttribute("fill",s)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${n}#${i})`)}else t.attr(`marker-${e}`,`url(${n}#${f})`)},"addEdgeMarker"),v=(0,u.K)(t=>"string"==typeof t?t:(0,l.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),M=new Map,S=new Map,A=(0,u.K)(()=>{M.clear(),S.clear()},"clear"),T=(0,u.K)(t=>!!(t.label||t.startLabelLeft||t.startLabelRight||t.endLabelLeft||t.endLabelRight),"hasEdgeLabel"),$=(0,u.K)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),C=(0,u.K)(async(t,e)=>{let r,n,s,u=(0,l.D7)(),f=(0,l.E)(u),{labelStyles:d}=(0,a.GX)(e);e.labelStyle=d;let g=t.insert("g").attr("class","edgeLabel"),m=g.insert("g").attr("class","label").attr("data-id",e.id),y="markdown"===e.labelType,b=await (0,o.GZ)(t,e.label,{style:$(e.labelStyle),useHtmlLabels:f,addSvgBackground:!0,isNode:!1,markdown:y,width:void 0},u);if(m.node().appendChild(b),c.R.info("abc82",e,e.labelType),f){let t=b.children[0],e=(0,h.Ltv)(b);n=r=await o.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",r.width),e.attr("height",r.height)}else{let t=(0,h.Ltv)(b).select("text").node();await o.lT.measure(()=>{r=b.getBBox(),n=t&&"function"==typeof t.getBBox?t.getBBox():r})}if(m.attr("transform",p(n,f)),M.set(e.id,g),e.width=r.width,e.height=r.height,e.startLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(n,e.startLabelLeft,$(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",p(o,f)),S.get(e.id)||S.set(e.id,{}),S.get(e.id).startLeft=r,L(s,e.startLabelLeft)}if(e.startLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(n,e.startLabelRight,$(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",p(o,f)),S.get(e.id)||S.set(e.id,{}),S.get(e.id).startRight=r,L(s,e.startLabelRight)}if(e.endLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(r,e.endLabelLeft,$(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",p(o,f)),S.get(e.id)||S.set(e.id,{}),S.get(e.id).endLeft=r,L(s,e.endLabelLeft)}if(e.endLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(r,e.endLabelRight,$(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",p(o,f)),S.get(e.id)||S.set(e.id,{}),S.get(e.id).endRight=r,L(s,e.endLabelRight)}return b},"insertEdgeLabel");function L(t,e){(0,l.E)((0,l.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,u.K)(L,"setTerminalWidth");var O=(0,u.K)((t,e)=>{c.R.debug("Moving label abc88 ",t.id,t.label,M.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,i=(0,l.D7)(),{subGraphTitleTotalMargin:a}=(0,n.Oi)(i);if(t.label){let n=M.get(t.id),i=t.x,o=t.y;if(r){let n=s._K.calcLabelPosition(r);c.R.debug("Moving label "+t.label+" from (",i,",",o,") to (",n.x,",",n.y,") abc88"),e.updatedPath&&(i=n.x,o=n.y)}n.attr("transform",`translate(${i}, ${o+a/2})`)}if(t.startLabelLeft){let e=S.get(t.id).startLeft,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.startLabelRight){let e=S.get(t.id).startRight,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelLeft){let e=S.get(t.id).endLeft,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelRight){let e=S.get(t.id).endRight,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}},"positionEdgeLabel"),E=(0,u.K)((t,e)=>{if(!t?.isLabelEdge||!t?.id?.endsWith("-to-label")||!Array.isArray(e)||2!==e.length)return e;let[r,n]=e,i=Math.abs(n.x-r.x),a=Math.abs(n.y-r.y);return i<.001||a<.001?e:a>=i?[r,{x:r.x,y:n.y},n]:[r,{x:n.x,y:r.y},n]},"orthogonalizeToLabelClippedPoints"),K=(0,u.K)((t,e)=>{let r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),o=t.width/2,s=t.height/2;return i>=o||a>=s},"outsideNode"),R=(0,u.K)((t,e,r)=>{c.R.debug(`intersection calc abc89:
|
|
5
|
+
outsidePoint: ${JSON.stringify(e)}
|
|
6
|
+
insidePoint : ${JSON.stringify(r)}
|
|
7
|
+
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let n=t.x,i=t.y,a=Math.abs(n-r.x),o=t.width/2,s=r.x<e.x?o-a:o+a,l=t.height/2,u=Math.abs(e.y-r.y),h=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*o>Math.abs(n-e.x)*l){let t=r.y<e.y?e.y-l-i:i-l-e.y;s=h*t/u;let n={x:r.x<e.x?r.x+s:r.x-h+s,y:r.y<e.y?r.y+u-t:r.y-u+t};return 0===s&&(n.x=e.x,n.y=e.y),0===h&&(n.x=e.x),0===u&&(n.y=e.y),c.R.debug(`abc89 top/bottom calc, Q ${u}, q ${t}, R ${h}, r ${s}`,n),n}{let t=u*(s=r.x<e.x?e.x-o-n:n-o-e.x)/h,i=r.x<e.x?r.x+h-s:r.x-h+s,a=r.y<e.y?r.y+t:r.y-t;return c.R.debug(`sides calc abc89, Q ${u}, q ${t}, R ${h}, r ${s}`,{_x:i,_y:a}),0===s&&(i=e.x,a=e.y),0===h&&(i=e.x),0===u&&(a=e.y),{x:i,y:a}}},"intersection"),D=(0,u.K)((t,e)=>{c.R.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(t=>{if(c.R.info("abc88 checking point",t,e),K(e,t)||i)c.R.warn("abc88 outside",t,n),n=t,i||r.push(t);else{let a=R(e,n,t);c.R.debug("abc88 inside",t,n,a),c.R.debug("abc88 intersection",a,e);let o=!1;r.forEach(t=>{o=o||t.x===a.x&&t.y===a.y}),r.some(t=>t.x===a.x&&t.y===a.y)?c.R.warn("abc88 no intersect",a,r):r.push(a),i=!0}}),c.R.debug("returning points",r),r},"cutPathAtIntersect");function N(t){let e=[],r=[];for(let n=1;n<t.length-1;n++){let i=t[n-1],a=t[n],o=t[n+1];i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5?(e.push(a),r.push(n)):i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5&&(e.push(a),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}(0,u.K)(N,"extractCornerPoints");var P=(0,u.K)(function(t,e,r){let n=e.x-t.x,i=e.y-t.y,a=r/Math.sqrt(n*n+i*i);return{x:e.x-a*n,y:e.y-a*i}},"findAdjacentPoint"),I=(0,u.K)(function(t){let{cornerPointPositions:e}=N(t),r=[];for(let n=0;n<t.length;n++)if(e.includes(n)){let e=t[n-1],i=t[n+1],a=t[n],o=P(e,a,5),s=P(i,a,5),l=s.x-o.x,u=s.y-o.y;r.push(o);let h=2*Math.sqrt(2),f={x:a.x,y:a.y};Math.abs(i.x-e.x)>10&&Math.abs(i.y-e.y)>=10?(c.R.debug("Corner point fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y)),f=a.x===o.x?{x:l<0?o.x-5+h:o.x+5-h,y:u<0?o.y-h:o.y+h}:{x:l<0?o.x-h:o.x+h,y:u<0?o.y-5+h:o.y+5-h}):c.R.debug("Corner point skipping fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y)),r.push(f,s)}else r.push(t[n]);return r},"fixCorners"),j=(0,u.K)((t,e,r)=>{let n=Math.floor((t-e-r)/4),i=Array(Number.isFinite(n)?Math.max(0,n):0).fill("2 2").join(" ");return`0 ${e} ${i} ${r}`},"generateDashArray"),U=(0,u.K)(function(t,e,r,n,i,o,u,p=!1){let d,m;if(!u)throw Error(`insertEdge: missing diagramId for edge "${e.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:y,layout:k}=(0,l.D7)(),w=e.points,_=!1,M=[];for(let t in e.cssCompiledStyles)(0,a.KX)(t)||M.push(e.cssCompiledStyles[t]);if("swimlane"===k){if(o.intersect&&i.intersect&&Array.isArray(w)&&w.length>=2)if(2===w.length)w=[i.intersect(w[0]),o.intersect(w[1])];else{let t=w.slice(1,-1),e=t[0],r=t[t.length-1],n=.5>Math.abs(w[w.length-1].x-r.x)&&.5>Math.abs(w[w.length-1].y-r.y),a=i.intersect(e),s=n?r:o.intersect(r),l=.5>Math.abs(s.x-r.x)&&.5>Math.abs(s.y-r.y);w=[....5>Math.abs(a.x-e.x)&&.5>Math.abs(a.y-e.y)?[]:[a],...t,...l?[]:[s]]}w=E(e,w)}else o.intersect&&i.intersect&&!p&&((w=w.slice(1,e.points.length-1)).unshift(i.intersect(w[0])),w.push(o.intersect(w[w.length-1])));let S=btoa(JSON.stringify(w));e.toCluster&&(c.R.info("to cluster abc88",r.get(e.toCluster)),w=D(e.points,r.get(e.toCluster).node),_=!0),e.fromCluster&&(c.R.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(w,null,2)),w=D(w.reverse(),r.get(e.fromCluster).node).reverse(),_=!0);let A=w.filter(t=>!Number.isNaN(t.y)),T=v(e.curve);"rounded"!==T&&(A=I(A));let $=h.lUB;switch(T){case"linear":case"rounded":$=h.lUB;break;case"basis":default:$=h.qrM;break;case"cardinal":$=h.y8u;break;case"bumpX":$=h.Wi0;break;case"bumpY":$=h.PGM;break;case"catmullRom":$=h.oDi;break;case"monotoneX":$=h.nVG;break;case"monotoneY":$=h.uxU;break;case"natural":$=h.Xf2;break;case"step":$=h.GZz;break;case"stepAfter":$=h.UPb;break;case"stepBefore":$=h.dyv}let{x:C,y:L}=b(e),O=(0,h.n8j)().x(C).y(L).curve($);switch(e.thickness){case"normal":default:d="edge-thickness-normal";break;case"thick":d="edge-thickness-thick";break;case"invisible":d="edge-thickness-invisible"}switch(e.pattern){case"solid":default:d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed"}let K="rounded"===T?F(B(A,e),5):O(A),R=Array.isArray(e.style)?e.style:[e.style],N=R.find(t=>t?.startsWith("stroke:")),P="";e.animate&&(P="edge-animation-fast"),e.animation&&(P="edge-animation-"+e.animation);let U=!1;if("handDrawn"===e.look){let r=f.A.svg(t);Object.assign([],A);let n=r.path(K,{roughness:.3,seed:y});d+=" transition";let i=(m=(0,h.Ltv)(n).select("path").attr("id",`${u}-${e.id}`).attr("class"," "+d+(e.classes?" "+e.classes:"")+(P?" "+P:"")).attr("style",R?R.reduce((t,e)=>t+";"+e,""):"")).attr("d");m.attr("d",i),t.node().appendChild(m.node())}else{let r=M.join(";"),n=R?R.reduce((t,e)=>t+e+";",""):"",i=(r?r+";"+n+";":n)+";"+(R?R.reduce((t,e)=>t+";"+e,""):"");m=t.append("path").attr("d",K).attr("id",`${u}-${e.id}`).attr("class"," "+d+(e.classes?" "+e.classes:"")+(P?" "+P:"")).attr("style",i),N=i.match(/stroke:([^;]+)/)?.[1],U=!0===e.animate||!!e.animation||r.includes("animation");let a=m.node(),o="function"==typeof a.getTotalLength?a.getTotalLength():0,s=g[e.arrowTypeStart]||0,l=g[e.arrowTypeEnd]||0;if("neo"===e.look&&!U){let t="dotted"===e.pattern||"dashed"===e.pattern?j(o,s,l):`0 ${s} ${o-s-l} ${l}`,r=`stroke-dasharray: ${t}; stroke-dashoffset: 0;`;m.attr("style",r+m.attr("style"))}}m.attr("data-edge",!0),m.attr("data-et","edge"),m.attr("data-id",e.id),m.attr("data-points",S),m.attr("data-look",(0,s.KL)(e.look)),e.showPoints&&A.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let z="";((0,l.D7)().flowchart.arrowMarkerAbsolute||(0,l.D7)().state.arrowMarkerAbsolute)&&(z=(z=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),c.R.info("arrowTypeStart",e.arrowTypeStart),c.R.info("arrowTypeEnd",e.arrowTypeEnd);let Y=!U&&e?.look==="neo";x(m,e,z,u,n,Y,N);let H=Math.floor(w.length/2),q=w[H];s._K.isLabelCoordinateInPath(q,m.attr("d"))||(_=!0);let W={};return _&&(W.updatedPath=w),W.originalPath=e.points,W},"insertEdge");function F(t,e){if(t.length<2)return"";let r="",n=t.length;for(let i=0;i<n;i++){let a=t[i],o=t[i-1],s=t[i+1];if(0===i)r+=`M${a.x},${a.y}`;else if(i===n-1)r+=`L${a.x},${a.y}`;else{let t=a.x-o.x,n=a.y-o.y,i=s.x-a.x,l=s.y-a.y,c=Math.hypot(t,n),u=Math.hypot(i,l);if(c<1e-5||u<1e-5){r+=`L${a.x},${a.y}`;continue}let h=t/c,f=n/c,p=i/u,d=l/u,g=Math.acos(Math.max(-1,Math.min(1,h*p+f*d)));if(g<1e-5||1e-5>Math.abs(Math.PI-g)){r+=`L${a.x},${a.y}`;continue}let m=Math.min(e/Math.sin(g/2),c/2,u/2),y=a.x-h*m,b=a.y-f*m,x=a.x+p*m,k=a.y+d*m;r+=`L${y},${b}Q${a.x},${a.y} ${x},${k}`}}return r}function z(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};let r=e.x-t.x,n=e.y-t.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}function B(t,e){let r=t.map(t=>({...t}));if(t.length>=2&&d[e.arrowTypeStart]){let n=d[e.arrowTypeStart],i=t[0],{angle:a}=z(i,t[1]),o=n*Math.cos(a),s=n*Math.sin(a);r[0].x=i.x+o,r[0].y=i.y+s}let n=t.length;if(n>=2&&d[e.arrowTypeEnd]){let i=d[e.arrowTypeEnd],a=t[n-1],{angle:o}=z(t[n-2],a),s=i*Math.cos(o),l=i*Math.sin(o);r[n-1].x=a.x-s,r[n-1].y=a.y-l}return r}(0,u.K)(F,"generateRoundedPath"),(0,u.K)(z,"calculateDeltaAndAngle"),(0,u.K)(B,"applyMarkerOffsetsToPoints");var Y=(0,u.K)((t,e,r,n)=>{e.forEach(e=>{tp[e](t,r,n)})},"insertMarkers"),H=(0,u.K)((t,e,r)=>{c.R.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).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"),q=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).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"),W=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).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"),X=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).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"),G=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).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"),Z=(0,u.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).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("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),V=(0,u.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).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"),Q=(0,u.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).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"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).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"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).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),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).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"),J=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),tt=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{transitionColor:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-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",`${i}`)},"barbNeo"),te=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).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"),tr=(0,u.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),tn=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).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"),ti=(0,u.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),ta=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).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",`${i}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).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",`${i}`)},"only_one_neo"),to=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i,mainBkg:a}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${i}`);let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),s.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${i}`)},"zero_or_one_neo"),ts=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).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",`${i}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).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",`${i}`)},"one_or_more_neo"),tl=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i,mainBkg:a}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${i}`);let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");s.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${i}`)},"zero_or_more_neo"),tc=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
8
|
+
L20,10
|
|
9
|
+
M20,10
|
|
10
|
+
L0,20`)},"requirement_arrow"),tu=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${i}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
11
|
+
L20,10
|
|
12
|
+
M20,10
|
|
13
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),th=(0,u.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),tf=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n,a=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${i}`)},"requirement_contains_neo"),tp={extension:H,composition:q,aggregation:W,dependency:X,lollipop:G,point:Z,circle:V,cross:Q,barb:J,barbNeo:tt,hierarchy:(0,u.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-hierarchyEnd").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),t.append("marker").attr("id",r+"_"+e+"-hierarchyStart").attr("class","marker hierarchy "+e).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),only_one:te,zero_or_one:tr,one_or_more:tn,zero_or_more:ti,only_one_neo:ta,zero_or_one_neo:to,one_or_more_neo:ts,zero_or_more_neo:tl,requirement_arrow:tc,requirement_contains:th,requirement_arrow_neo:tu,requirement_contains_neo:tf},td=Y},37245:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(19519),i=r(96430),a=r(62079),o=r(1203);let s=(t,e,r=0,s=1)=>{if("number"!=typeof t)return(0,o.A)(t,{a:e});let l=i.A.set({r:n.A.channel.clamp.r(t),g:n.A.channel.clamp.g(e),b:n.A.channel.clamp.b(r),a:n.A.channel.clamp.a(s)});return a.A.stringify(l)}},40350:(t,e,r)=>{"use strict";r.d(e,{H:()=>tT,r:()=>tA});var n,i,a,o,s,l,c,u,h,f,p,d,g,m,y,b,x,k,w,_,v,M,S,A,T,$,C,L,O,E,K,R,D,N,P,I,j,U,F,z,B,Y,H,q,W,X,G=r(14528);function Z(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(0,G.K)(Z,"getDefaultExportFromCjs");var V={},Q={},J={};function tt(){if(n)return J;function t(t){return null==t}function e(t){return"object"==typeof t&&null!==t}function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}function i(t,e){if(e){let r=Object.keys(e);for(let n=0,i=r.length;n<i;n+=1){let i=r[n];t[i]=e[i]}}return t}function a(t,e){let r="";for(let n=0;n<e;n+=1)r+=t;return r}function o(t){return 0===t&&-1/0==1/t}return n=1,(0,G.K)(t,"isNothing"),(0,G.K)(e,"isObject"),(0,G.K)(r,"toArray"),(0,G.K)(i,"extend"),(0,G.K)(a,"repeat"),(0,G.K)(o,"isNegativeZero"),J.isNothing=t,J.isObject=e,J.toArray=r,J.repeat=a,J.isNegativeZero=o,J.extend=i,J}function te(){if(a)return i;function t(t,e){let r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),n+" "+r):n}function e(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}return a=1,(0,G.K)(t,"formatError"),(0,G.K)(e,"YAMLException2"),e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=(0,G.K)(function(e){return this.name+": "+t(this,e)},"toString"),i=e}function tr(){if(s)return o;s=1;let t=tt();function e(t,e,r,n,i){let a="",o="",s=Math.floor(i/2)-1;return n-e>s&&(e=n-s+(a=" ... ").length),r-n>s&&(r=n+s-(o=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"→")+o,pos:n-e+a.length}}function r(e,r){return t.repeat(" ",r-e.length)+e}function n(n,i){let a;if(i=Object.create(i||null),!n.buffer)return null;i.maxLength||(i.maxLength=79),"number"!=typeof i.indent&&(i.indent=1),"number"!=typeof i.linesBefore&&(i.linesBefore=3),"number"!=typeof i.linesAfter&&(i.linesAfter=2);let o=/\r?\n|\r|\0/g,s=[0],l=[],c=-1;for(;a=o.exec(n.buffer);)l.push(a.index),s.push(a.index+a[0].length),n.position<=a.index&&c<0&&(c=s.length-2);c<0&&(c=s.length-1);let u="",h=Math.min(n.line+i.linesAfter,l.length).toString().length,f=i.maxLength-(i.indent+h+3);for(let a=1;a<=i.linesBefore&&!(c-a<0);a++){let o=e(n.buffer,s[c-a],l[c-a],n.position-(s[c]-s[c-a]),f);u=t.repeat(" ",i.indent)+r((n.line-a+1).toString(),h)+" | "+o.str+"\n"+u}let p=e(n.buffer,s[c],l[c],n.position,f);u+=t.repeat(" ",i.indent)+r((n.line+1).toString(),h)+" | "+p.str+"\n"+t.repeat("-",i.indent+h+3+p.pos)+"^\n";for(let a=1;a<=i.linesAfter&&!(c+a>=l.length);a++){let o=e(n.buffer,s[c+a],l[c+a],n.position-(s[c]-s[c+a]),f);u+=t.repeat(" ",i.indent)+r((n.line+a+1).toString(),h)+" | "+o.str+"\n"}return u.replace(/\n$/,"")}return(0,G.K)(e,"getLine"),(0,G.K)(r,"padStart"),(0,G.K)(n,"makeSnippet"),o=n}function tn(){if(c)return l;c=1;let t=te(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(t){let e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function i(i,a){if(Object.keys(a=a||{}).forEach(function(r){if(-1===e.indexOf(r))throw new t('Unknown option "'+r+'" is met in definition of "'+i+'" YAML type.')}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(t){return t},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=n(a.styleAliases||null),-1===r.indexOf(this.kind))throw new t('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}return(0,G.K)(n,"compileStyleAliases"),(0,G.K)(i,"Type2"),l=i}function ti(){if(h)return u;h=1;let t=te(),e=tn();function r(t,e){let r=[];return t[e].forEach(function(t){let e=r.length;r.forEach(function(r,n){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=n)}),r[e]=t}),r}function n(){let t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function e(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}(0,G.K)(e,"collectType");for(let t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(e);return t}function i(t){return this.extend(t)}return(0,G.K)(r,"compileList"),(0,G.K)(n,"compileMap"),(0,G.K)(i,"Schema2"),i.prototype.extend=(0,G.K)(function(a){let o=[],s=[];if(a instanceof e)s.push(a);else if(Array.isArray(a))s=s.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(o=o.concat(a.implicit)),a.explicit&&(s=s.concat(a.explicit));else throw new t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");o.forEach(function(r){if(!(r instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(r.loadKind&&"scalar"!==r.loadKind)throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(r.multi)throw new t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),s.forEach(function(r){if(!(r instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let l=Object.create(i.prototype);return l.implicit=(this.implicit||[]).concat(o),l.explicit=(this.explicit||[]).concat(s),l.compiledImplicit=r(l,"implicit"),l.compiledExplicit=r(l,"explicit"),l.compiledTypeMap=n(l.compiledImplicit,l.compiledExplicit),l},"extend"),u=i}function ta(){return p?f:(p=1,f=new(tn())("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,G.K)(function(t){return null!==t?t:""},"construct")}))}function to(){return g?d:(g=1,d=new(tn())("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,G.K)(function(t){return null!==t?t:[]},"construct")}))}function ts(){return y?m:(y=1,m=new(tn())("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,G.K)(function(t){return null!==t?t:{}},"construct")}))}function tl(){return x?b:(x=1,b=new(ti())({explicit:[ta(),to(),ts()]}))}function tc(){if(w)return k;w=1;let t=tn();function e(t){if(null===t)return!0;let e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function r(){return null}function n(t){return null===t}return(0,G.K)(e,"resolveYamlNull"),(0,G.K)(r,"constructYamlNull"),(0,G.K)(n,"isNull"),k=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:r,predicate:n,represent:{canonical:(0,G.K)(function(){return"~"},"canonical"),lowercase:(0,G.K)(function(){return"null"},"lowercase"),uppercase:(0,G.K)(function(){return"NULL"},"uppercase"),camelcase:(0,G.K)(function(){return"Null"},"camelcase"),empty:(0,G.K)(function(){return""},"empty")},defaultStyle:"lowercase"})}function tu(){if(v)return _;v=1;let t=tn();function e(t){if(null===t)return!1;let e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function r(t){return"true"===t||"True"===t||"TRUE"===t}function n(t){return"[object Boolean]"===Object.prototype.toString.call(t)}return(0,G.K)(e,"resolveYamlBoolean"),(0,G.K)(r,"constructYamlBoolean"),(0,G.K)(n,"isBoolean"),_=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:r,predicate:n,represent:{lowercase:(0,G.K)(function(t){return t?"true":"false"},"lowercase"),uppercase:(0,G.K)(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:(0,G.K)(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"})}function th(){if(S)return M;S=1;let t=tt(),e=tn();function r(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function n(t){return t>=48&&t<=55}function i(t){return t>=48&&t<=57}function a(t){if(null===t)return!1;let e=t.length,a=0,s=!1;if(!e)return!1;let l=t[a];if(("-"===l||"+"===l)&&(l=t[++a]),"0"===l){if(a+1===e)return!0;if("b"===(l=t[++a])){for(a++;a<e;a++){if("0"!==(l=t[a])&&"1"!==l)return!1;s=!0}return s&&isFinite(o(t))}if("x"===l){for(a++;a<e;a++){if(!r(t.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(t))}if("o"===l){for(a++;a<e;a++){if(!n(t.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(t))}}for(;a<e;a++){if(!i(t.charCodeAt(a)))return!1;s=!0}return!!s&&isFinite(o(t))}function o(t){let e=t,r=1,n=e[0];if(("-"===n||"+"===n)&&("-"===n&&(r=-1),n=(e=e.slice(1))[0]),"0"===e)return 0;if("0"===n){if("b"===e[1])return r*parseInt(e.slice(2),2);if("x"===e[1])return r*parseInt(e.slice(2),16);if("o"===e[1])return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function s(t){return o(t)}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!t.isNegativeZero(e)}return(0,G.K)(r,"isHexCode"),(0,G.K)(n,"isOctCode"),(0,G.K)(i,"isDecCode"),(0,G.K)(a,"resolveYamlInteger"),(0,G.K)(o,"parseYamlInteger"),(0,G.K)(s,"constructYamlInteger"),(0,G.K)(l,"isInteger"),M=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:s,predicate:l,represent:{binary:(0,G.K)(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,G.K)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:(0,G.K)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,G.K)(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function tf(){if(T)return A;T=1;let t=tt(),e=tn(),r=RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),n=RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function i(t){return null!==t&&!!r.test(t)&&(!!isFinite(parseFloat(t,10))||n.test(t))}function a(t){let e=t.toLowerCase(),r="-"===e[0]?-1:1;return("+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e)?1===r?1/0:-1/0:".nan"===e?NaN:r*parseFloat(e,10)}(0,G.K)(i,"resolveYamlFloat"),(0,G.K)(a,"constructYamlFloat");let o=/^[-+]?[0-9]+e/;function s(e,r){if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(e))return"-0.0";let n=e.toString(10);return o.test(n)?n.replace("e",".e"):n}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||t.isNegativeZero(e))}return(0,G.K)(s,"representYamlFloat"),(0,G.K)(l,"isFloat"),A=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:i,construct:a,predicate:l,represent:s,defaultStyle:"lowercase"})}function tp(){return C?$:(C=1,$=tl().extend({implicit:[tc(),tu(),th(),tf()]}))}function td(){return O?L:(O=1,L=tp())}function tg(){if(K)return E;K=1;let t=tn(),e=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=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 n(t){return null!==t&&(null!==e.exec(t)||null!==r.exec(t))}function i(t){let n=0,i=null,a=e.exec(t);if(null===a&&(a=r.exec(t)),null===a)throw Error("Date resolve error");let o=+a[1],s=a[2]-1,l=+a[3];if(!a[4])return new Date(Date.UTC(o,s,l));let c=+a[4],u=+a[5],h=+a[6];if(a[7]){for(n=a[7].slice(0,3);n.length<3;)n+="0";n*=1}a[9]&&(i=(60*a[10]+ +(a[11]||0))*6e4,"-"===a[9]&&(i=-i));let f=new Date(Date.UTC(o,s,l,c,u,h,n));return i&&f.setTime(f.getTime()-i),f}function a(t){return t.toISOString()}return(0,G.K)(n,"resolveYamlTimestamp"),(0,G.K)(i,"constructYamlTimestamp"),(0,G.K)(a,"representYamlTimestamp"),E=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:n,construct:i,instanceOf:Date,represent:a})}function tm(){if(D)return R;D=1;let t=tn();function e(t){return"<<"===t||null===t}return(0,G.K)(e,"resolveYamlMerge"),R=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e})}function ty(){if(P)return N;P=1;let t=tn(),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function r(t){if(null===t)return!1;let r=0,n=t.length;for(let i=0;i<n;i++){let n=e.indexOf(t.charAt(i));if(!(n>64)){if(n<0)return!1;r+=6}}return r%8==0}function n(t){let r=t.replace(/[\r\n=]/g,""),n=r.length,i=0,a=[];for(let t=0;t<n;t++)t%4==0&&t&&(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)),i=i<<6|e.indexOf(r.charAt(t));let o=n%4*6;return 0===o?(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)):18===o?(a.push(i>>10&255),a.push(i>>2&255)):12===o&&a.push(i>>4&255),new Uint8Array(a)}function i(t){let r="",n=0,i=t.length;for(let a=0;a<i;a++)a%3==0&&a&&(r+=e[n>>18&63],r+=e[n>>12&63],r+=e[n>>6&63],r+=e[63&n]),n=(n<<8)+t[a];let a=i%3;return 0===a?(r+=e[n>>18&63],r+=e[n>>12&63],r+=e[n>>6&63],r+=e[63&n]):2===a?(r+=e[n>>10&63],r+=e[n>>4&63],r+=e[n<<2&63],r+=e[64]):1===a&&(r+=e[n>>2&63],r+=e[n<<4&63],r+=e[64],r+=e[64]),r}function a(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}return(0,G.K)(r,"resolveYamlBinary"),(0,G.K)(n,"constructYamlBinary"),(0,G.K)(i,"representYamlBinary"),(0,G.K)(a,"isBinary"),N=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:n,predicate:a,represent:i})}function tb(){if(j)return I;j=1;let t=tn(),e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(t){if(null===t)return!0;let n=[];for(let i=0,a=t.length;i<a;i+=1){let a,o=t[i],s=!1;if("[object Object]"!==r.call(o))return!1;for(a in o)if(e.call(o,a))if(s)return!1;else s=!0;if(!s||-1!==n.indexOf(a))return!1;n.push(a)}return!0}function i(t){return null!==t?t:[]}return(0,G.K)(n,"resolveYamlOmap"),(0,G.K)(i,"constructYamlOmap"),I=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:i})}function tx(){if(F)return U;F=1;let t=tn(),e=Object.prototype.toString;function r(t){if(null===t)return!0;let r=Array(t.length);for(let n=0,i=t.length;n<i;n+=1){let i=t[n];if("[object Object]"!==e.call(i))return!1;let a=Object.keys(i);if(1!==a.length)return!1;r[n]=[a[0],i[a[0]]]}return!0}function n(t){if(null===t)return[];let e=Array(t.length);for(let r=0,n=t.length;r<n;r+=1){let n=t[r],i=Object.keys(n);e[r]=[i[0],n[i[0]]]}return e}return(0,G.K)(r,"resolveYamlPairs"),(0,G.K)(n,"constructYamlPairs"),U=new t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:n})}function tk(){if(B)return z;B=1;let t=tn(),e=Object.prototype.hasOwnProperty;function r(t){if(null===t)return!0;for(let r in t)if(e.call(t,r)&&null!==t[r])return!1;return!0}function n(t){return null!==t?t:{}}return(0,G.K)(r,"resolveYamlSet"),(0,G.K)(n,"constructYamlSet"),z=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n})}function tw(){return H?Y:(H=1,Y=td().extend({implicit:[tg(),tm()],explicit:[ty(),tb(),tx(),tk()]}))}function t_(){if(q)return Q;q=1;let t=tt(),e=te(),r=tr(),n=tw(),i=Object.prototype.hasOwnProperty,a=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=/[\x85\u2028\u2029]/,s=/[,\[\]{}]/,l=/^(?:!|!!|![0-9A-Za-z-]+!)$/,c=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(t){return Object.prototype.toString.call(t)}function h(t){return 10===t||13===t}function f(t){return 9===t||32===t}function p(t){return 9===t||32===t||10===t||13===t}function d(t){return 44===t||91===t||93===t||123===t||125===t}function g(t){if(t>=48&&t<=57)return t-48;let e=32|t;return e>=97&&e<=102?e-97+10:-1}function m(t){return 120===t?2:117===t?4:8*(85===t)}function y(t){return t>=48&&t<=57?t-48:-1}function b(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return" ";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1b";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xa0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function x(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function k(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}(0,G.K)(u,"_class"),(0,G.K)(h,"isEol"),(0,G.K)(f,"isWhiteSpace"),(0,G.K)(p,"isWsOrEol"),(0,G.K)(d,"isFlowIndicator"),(0,G.K)(g,"fromHexCode"),(0,G.K)(m,"escapedHexLen"),(0,G.K)(y,"fromDecimalCode"),(0,G.K)(b,"simpleEscapeSequence"),(0,G.K)(x,"charFromCodepoint"),(0,G.K)(k,"setProperty");let w=Array(256),_=Array(256);for(let t=0;t<256;t++)w[t]=+!!b(t),_[t]=b(t);function v(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||n,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:100,this.maxTotalMergeKeys="number"==typeof e.maxTotalMergeKeys?e.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function M(t,n){let i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=r(i),new e(n,i)}function S(t,e){throw M(t,e)}function A(t,e){t.onWarning&&t.onWarning.call(null,M(t,e))}function T(t,e,r){let n=t.anchorMapTransactions;if(0!==n.length){let r=n[n.length-1];i.call(r,e)||(r[e]={existed:i.call(t.anchorMap,e),value:t.anchorMap[e]})}t.anchorMap[e]=r}function $(t){t.anchorMapTransactions.push(Object.create(null))}function C(t){let e=t.anchorMapTransactions.pop(),r=t.anchorMapTransactions;if(0===r.length)return;let n=r[r.length-1],a=Object.keys(e);for(let t=0,r=a.length;t<r;t+=1){let r=a[t];i.call(n,r)||(n[r]=e[r])}}function L(t){let e=t.anchorMapTransactions.pop(),r=Object.keys(e);for(let n=r.length-1;n>=0;n-=1){let i=e[r[n]];i.existed?t.anchorMap[r[n]]=i.value:delete t.anchorMap[r[n]]}}function O(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,tag:t.tag,anchor:t.anchor,kind:t.kind,result:t.result}}function E(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.tag=e.tag,t.anchor=e.anchor,t.kind=e.kind,t.result=e.result}(0,G.K)(v,"State"),(0,G.K)(M,"generateError"),(0,G.K)(S,"throwError"),(0,G.K)(A,"throwWarning"),(0,G.K)(T,"storeAnchor"),(0,G.K)($,"beginAnchorTransaction"),(0,G.K)(C,"commitAnchorTransaction"),(0,G.K)(L,"rollbackAnchorTransaction"),(0,G.K)(O,"snapshotState"),(0,G.K)(E,"restoreState");let K={YAML:(0,G.K)(function(t,e,r){null!==t.version&&S(t,"duplication of %YAML directive"),1!==r.length&&S(t,"YAML directive accepts exactly one argument");let n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===n&&S(t,"ill-formed argument of the YAML directive");let i=parseInt(n[1],10),a=parseInt(n[2],10);1!==i&&S(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&A(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,G.K)(function(t,e,r){let n;2!==r.length&&S(t,"TAG directive accepts exactly two arguments");let a=r[0];n=r[1],l.test(a)||S(t,"ill-formed tag handle (first argument) of the TAG directive"),i.call(t.tagMap,a)&&S(t,'there is a previously declared suffix for "'+a+'" tag handle'),c.test(n)||S(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(e){S(t,"tag prefix is malformed: "+n)}t.tagMap[a]=n},"handleTagDirective")};function R(t,e,r,n){if(e<r){let i=t.input.slice(e,r);if(n)for(let e=0,r=i.length;e<r;e+=1){let r=i.charCodeAt(e);9===r||r>=32&&r<=1114111||S(t,"expected valid JSON character")}else a.test(i)&&S(t,"the stream contains non-printable characters");t.result+=i}}function D(e,r,n,a){t.isObject(n)||S(e,"cannot merge mappings; the provided source object is unacceptable");let o=Object.keys(n);for(let t=0,s=o.length;t<s;t+=1){let s=o[t];-1!==e.maxTotalMergeKeys&&++e.totalMergeKeys>e.maxTotalMergeKeys&&S(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),i.call(r,s)||(k(r,s,n[s]),a[s]=!0)}}function N(t,e,r,n,a,o,s,l,c){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let e=0,r=a.length;e<r;e+=1)Array.isArray(a[e])&&S(t,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===u(a[e])&&(a[e]="[object Object]")}if("object"==typeof a&&"[object Object]"===u(a)&&(a="[object Object]"),a=String(a),null===e&&(e={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(o))for(let n=0,i=o.length;n<i;n+=1)D(t,e,o[n],r);else D(t,e,o,r);else!t.json&&!i.call(r,a)&&i.call(e,a)&&(t.line=s||t.line,t.lineStart=l||t.lineStart,t.position=c||t.position,S(t,"duplicated mapping key")),k(e,a,o),delete r[a];return e}function P(t){let e=t.input.charCodeAt(t.position);10===e?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):S(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function I(t,e,r){let n=0,i=t.input.charCodeAt(t.position);for(;0!==i;){for(;f(i);)9===i&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&35===i)do i=t.input.charCodeAt(++t.position);while(10!==i&&13!==i&&0!==i);if(h(i))for(P(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return -1!==r&&0!==n&&t.lineIndent<r&&A(t,"deficient indentation"),n}function j(t){let e=t.position,r=t.input.charCodeAt(e);return!!((45===r||46===r)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,0===(r=t.input.charCodeAt(e))||p(r)))||!1}function U(e,r){1===r?e.result+=" ":r>1&&(e.result+=t.repeat("\n",r-1))}function F(t,e,r){let n,i,a,o,s,l,c=t.kind,u=t.result,g=t.input.charCodeAt(t.position);if(p(g)||d(g)||35===g||38===g||42===g||33===g||124===g||62===g||39===g||34===g||37===g||64===g||96===g)return!1;if(63===g||45===g){let e=t.input.charCodeAt(t.position+1);if(p(e)||r&&d(e))return!1}for(t.kind="scalar",t.result="",n=i=t.position,a=!1;0!==g;){if(58===g){let e=t.input.charCodeAt(t.position+1);if(p(e)||r&&d(e))break}else if(35===g){if(p(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&j(t)||r&&d(g))break;else if(h(g)){if(o=t.line,s=t.lineStart,l=t.lineIndent,I(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}t.position=i,t.line=o,t.lineStart=s,t.lineIndent=l;break}a&&(R(t,n,i,!1),U(t,t.line-o),n=i=t.position,a=!1),f(g)||(i=t.position+1),g=t.input.charCodeAt(++t.position)}return R(t,n,i,!1),!!t.result||(t.kind=c,t.result=u,!1)}function z(t,e){let r,n,i=t.input.charCodeAt(t.position);if(39!==i)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(i=t.input.charCodeAt(t.position));)if(39===i){if(R(t,r,t.position,!0),39!==(i=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,n=t.position}else h(i)?(R(t,r,n,!0),U(t,I(t,!1,e)),r=n=t.position):t.position===t.lineStart&&j(t)?S(t,"unexpected end of the document within a single quoted scalar"):(t.position++,f(i)||(n=t.position));S(t,"unexpected end of the stream within a single quoted scalar")}function B(t,e){let r,n,i,a=t.input.charCodeAt(t.position);if(34!==a)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(a=t.input.charCodeAt(t.position));)if(34===a)return R(t,r,t.position,!0),t.position++,!0;else if(92===a){if(R(t,r,t.position,!0),h(a=t.input.charCodeAt(++t.position)))I(t,!1,e);else if(a<256&&w[a])t.result+=_[a],t.position++;else if((i=m(a))>0){let e=i,r=0;for(;e>0;e--)(i=g(a=t.input.charCodeAt(++t.position)))>=0?r=(r<<4)+i:S(t,"expected hexadecimal character");t.result+=x(r),t.position++}else S(t,"unknown escape sequence");r=n=t.position}else h(a)?(R(t,r,n,!0),U(t,I(t,!1,e)),r=n=t.position):t.position===t.lineStart&&j(t)?S(t,"unexpected end of the document within a double quoted scalar"):(t.position++,f(a)||(n=t.position));S(t,"unexpected end of the stream within a double quoted scalar")}function Y(t,e){let r,n,i,a,o,s,l,c,u,h,f,d=!0,g=t.tag,m=t.anchor,y=Object.create(null),b=t.input.charCodeAt(t.position);if(91===b)o=93,c=!1,a=[];else{if(123!==b)return!1;o=125,c=!0,a={}}for(null!==t.anchor&&T(t,t.anchor,a),b=t.input.charCodeAt(++t.position);0!==b;){if(I(t,!0,e),(b=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=g,t.anchor=m,t.kind=c?"mapping":"sequence",t.result=a,!0;d?44===b&&S(t,"expected the node content, but found ','"):S(t,"missed comma between flow collection entries"),h=u=f=null,s=l=!1,63===b&&p(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,I(t,!0,e)),r=t.line,n=t.lineStart,i=t.position,ti(t,e,1,!1,!0),h=t.tag,u=t.result,I(t,!0,e),b=t.input.charCodeAt(t.position),(l||t.line===r)&&58===b&&(s=!0,b=t.input.charCodeAt(++t.position),I(t,!0,e),ti(t,e,1,!1,!0),f=t.result),c?N(t,a,y,h,u,f,r,n,i):s?a.push(N(t,null,y,h,u,f,r,n,i)):a.push(u),I(t,!0,e),44===(b=t.input.charCodeAt(t.position))?(d=!0,b=t.input.charCodeAt(++t.position)):d=!1}S(t,"unexpected end of the stream within a flow collection")}function H(e,r){let n,i,a=1,o=!1,s=!1,l=r,c=0,u=!1,p=e.input.charCodeAt(e.position);if(124===p)n=!1;else{if(62!==p)return!1;n=!0}for(e.kind="scalar",e.result="";0!==p;)if(43===(p=e.input.charCodeAt(++e.position))||45===p)1===a?a=43===p?3:2:S(e,"repeat of a chomping mode identifier");else if((i=y(p))>=0)0===i?S(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?S(e,"repeat of an indentation width identifier"):(l=r+i-1,s=!0);else break;if(f(p)){do p=e.input.charCodeAt(++e.position);while(f(p));if(35===p)do p=e.input.charCodeAt(++e.position);while(!h(p)&&0!==p)}for(;0!==p;){for(P(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<l)&&32===p;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>l&&(l=e.lineIndent),h(p)){c++;continue}if(s||0!==l||S(e,"missing indentation for block scalar"),e.lineIndent<l){3===a?e.result+=t.repeat("\n",o?1+c:c):1===a&&o&&(e.result+="\n");break}n?f(p)?(u=!0,e.result+=t.repeat("\n",o?1+c:c)):u?(u=!1,e.result+=t.repeat("\n",c+1)):0===c?o&&(e.result+=" "):e.result+=t.repeat("\n",c):e.result+=t.repeat("\n",o?1+c:c),o=!0,s=!0,c=0;let r=e.position;for(;!h(p)&&0!==p;)p=e.input.charCodeAt(++e.position);R(e,r,e.position,!1)}return!0}function W(t,e){let r=t.tag,n=t.anchor,i=[],a=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&T(t,t.anchor,i);let o=t.input.charCodeAt(t.position);for(;0!==o&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,S(t,"tab characters must not be used in indentation")),45===o&&p(t.input.charCodeAt(t.position+1)));){if(a=!0,t.position++,I(t,!0,-1)&&t.lineIndent<=e){i.push(null),o=t.input.charCodeAt(t.position);continue}let r=t.line;if(ti(t,e,3,!1,!0),i.push(t.result),I(t,!0,-1),o=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==o)S(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!a&&(t.tag=r,t.anchor=n,t.kind="sequence",t.result=i,!0)}function X(t,e,r){let n,i,a,o,s=t.tag,l=t.anchor,c={},u=Object.create(null),h=null,d=null,g=null,m=!1,y=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&T(t,t.anchor,c);let b=t.input.charCodeAt(t.position);for(;0!==b;){m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,S(t,"tab characters must not be used in indentation"));let x=t.input.charCodeAt(t.position+1),k=t.line;if((63===b||58===b)&&p(x))63===b?(m&&(N(t,c,u,h,d,null,i,a,o),h=d=g=null),y=!0,m=!0,n=!0):m?(m=!1,n=!0):S(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=x;else{if(i=t.line,a=t.lineStart,o=t.position,!ti(t,r,2,!1,!0))break;if(t.line===k){for(b=t.input.charCodeAt(t.position);f(b);)b=t.input.charCodeAt(++t.position);if(58===b)p(b=t.input.charCodeAt(++t.position))||S(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(N(t,c,u,h,d,null,i,a,o),h=d=g=null),y=!0,m=!1,n=!1,h=t.tag,d=t.result;else{if(!y)return t.tag=s,t.anchor=l,!0;S(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return t.tag=s,t.anchor=l,!0;S(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===k||t.lineIndent>e)&&(m&&(i=t.line,a=t.lineStart,o=t.position),ti(t,e,4,!0,n)&&(m?d=t.result:g=t.result),m||(N(t,c,u,h,d,g,i,a,o),h=d=g=null),I(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===k||t.lineIndent>e)&&0!==b)S(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&N(t,c,u,h,d,null,i,a,o),y&&(t.tag=s,t.anchor=l,t.kind="mapping",t.result=c),y}function Z(t){let e,r,n=!1,a=!1,o=t.input.charCodeAt(t.position);if(33!==o)return!1;null!==t.tag&&S(t,"duplication of a tag property"),60===(o=t.input.charCodeAt(++t.position))?(n=!0,o=t.input.charCodeAt(++t.position)):33===o?(a=!0,e="!!",o=t.input.charCodeAt(++t.position)):e="!";let u=t.position;if(n){do o=t.input.charCodeAt(++t.position);while(0!==o&&62!==o);t.position<t.length?(r=t.input.slice(u,t.position),o=t.input.charCodeAt(++t.position)):S(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!p(o);)33===o&&(a?S(t,"tag suffix cannot contain exclamation marks"):(e=t.input.slice(u-1,t.position+1),l.test(e)||S(t,"named tag handle cannot contain such characters"),a=!0,u=t.position+1)),o=t.input.charCodeAt(++t.position);r=t.input.slice(u,t.position),s.test(r)&&S(t,"tag suffix cannot contain flow indicator characters")}r&&!c.test(r)&&S(t,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(e){S(t,"tag name is malformed: "+r)}return n?t.tag=r:i.call(t.tagMap,e)?t.tag=t.tagMap[e]+r:"!"===e?t.tag="!"+r:"!!"===e?t.tag="tag:yaml.org,2002:"+r:S(t,'undeclared tag handle "'+e+'"'),!0}function V(t){let e=t.input.charCodeAt(t.position);if(38!==e)return!1;null!==t.anchor&&S(t,"duplication of an anchor property"),e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!p(e)&&!d(e);)e=t.input.charCodeAt(++t.position);return t.position===r&&S(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(r,t.position),!0}function J(t){let e=t.input.charCodeAt(t.position);if(42!==e)return!1;e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!p(e)&&!d(e);)e=t.input.charCodeAt(++t.position);t.position===r&&S(t,"name of an alias node must contain at least one character");let n=t.input.slice(r,t.position);return i.call(t.anchorMap,n)||S(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],I(t,!0,-1),!0}function tn(t,e,r,n){let i=O(t);return($(t),E(t,e),t.tag=null,t.anchor=null,t.kind=null,t.result=null,X(t,r,n)&&"mapping"===t.kind)?(C(t),!0):(L(t),E(t,i),!1)}function ti(t,e,r,n,a){let o,s,l,c,u,h=1,f=!1,p=!1,d=null;t.depth>=t.maxDepth&&S(t,"nesting exceeded maxDepth ("+t.maxDepth+")"),t.depth+=1,null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null;let g=o=s=4===r||3===r;if(n&&I(t,!0,-1)&&(f=!0,t.lineIndent>e?h=1:t.lineIndent===e?h=0:t.lineIndent<e&&(h=-1)),1===h)for(;;){let r=t.input.charCodeAt(t.position),n=O(t);if(f&&(33===r&&null!==t.tag||38===r&&null!==t.anchor)||!Z(t)&&!V(t))break;null===d&&(d=n),I(t,!0,-1)?(f=!0,s=g,t.lineIndent>e?h=1:t.lineIndent===e?h=0:t.lineIndent<e&&(h=-1)):s=!1}if(s&&(s=f||a),1===h||4===r)if(c=1===r||2===r?e:e+1,u=t.position-t.lineStart,1===h)if(s&&(W(t,u)||X(t,u,c))||Y(t,c))p=!0;else{let e=t.input.charCodeAt(t.position);null!==d&&g&&!s&&124!==e&&62!==e&&tn(t,d,d.position-d.lineStart,c)||o&&H(t,c)||z(t,c)||B(t,c)?p=!0:J(t)?(p=!0,(null!==t.tag||null!==t.anchor)&&S(t,"alias node should not have any properties")):F(t,c,1===r)&&(p=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&T(t,t.anchor,t.result)}else 0===h&&(p=s&&W(t,u));if(null===t.tag)null!==t.anchor&&T(t,t.anchor,t.result);else if("?"===t.tag){null!==t.result&&"scalar"!==t.kind&&S(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"');for(let e=0,r=t.implicitTypes.length;e<r;e+=1)if((l=t.implicitTypes[e]).resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&T(t,t.anchor,t.result);break}}else if("!"!==t.tag){if(i.call(t.typeMap[t.kind||"fallback"],t.tag))l=t.typeMap[t.kind||"fallback"][t.tag];else{l=null;let e=t.typeMap.multi[t.kind||"fallback"];for(let r=0,n=e.length;r<n;r+=1)if(t.tag.slice(0,e[r].tag.length)===e[r].tag){l=e[r];break}}l||S(t,"unknown tag !<"+t.tag+">"),null!==t.result&&l.kind!==t.kind&&S(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result,t.tag)?(t.result=l.construct(t.result,t.tag),null!==t.anchor&&T(t,t.anchor,t.result)):S(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),t.depth-=1,null!==t.tag||null!==t.anchor||p}function ta(t){let e,r=t.position,n=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(e=t.input.charCodeAt(t.position))&&(I(t,!0,-1),e=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===e);){n=!0,e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!p(e);)e=t.input.charCodeAt(++t.position);let a=t.input.slice(r,t.position),o=[];for(a.length<1&&S(t,"directive name must not be less than one character in length");0!==e;){for(;f(e);)e=t.input.charCodeAt(++t.position);if(35===e){do e=t.input.charCodeAt(++t.position);while(0!==e&&!h(e));break}if(h(e))break;for(r=t.position;0!==e&&!p(e);)e=t.input.charCodeAt(++t.position);o.push(t.input.slice(r,t.position))}0!==e&&P(t),i.call(K,a)?K[a](t,a,o):A(t,'unknown document directive "'+a+'"')}if(I(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,I(t,!0,-1)):n&&S(t,"directives end mark is expected"),ti(t,t.lineIndent-1,4,!1,!0),I(t,!0,-1),t.checkLineBreaks&&o.test(t.input.slice(r,t.position))&&A(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&j(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,I(t,!0,-1));return}t.position<t.length-1&&S(t,"end of the stream or a document separator is expected")}function to(t,e){t=String(t),e=e||{},0!==t.length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));let r=new v(t,e),n=t.indexOf("\0");for(-1!==n&&(r.position=n,S(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)ta(r);return r.documents}function ts(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);let n=to(t,r);if("function"!=typeof e)return n;for(let t=0,r=n.length;t<r;t+=1)e(n[t])}function tl(t,r){let n=to(t,r);if(0!==n.length){if(1===n.length)return n[0];throw new e("expected a single document in the stream, but found more")}}return(0,G.K)(R,"captureSegment"),(0,G.K)(D,"mergeMappings"),(0,G.K)(N,"storeMappingPair"),(0,G.K)(P,"readLineBreak"),(0,G.K)(I,"skipSeparationSpace"),(0,G.K)(j,"testDocumentSeparator"),(0,G.K)(U,"writeFoldedLines"),(0,G.K)(F,"readPlainScalar"),(0,G.K)(z,"readSingleQuotedScalar"),(0,G.K)(B,"readDoubleQuotedScalar"),(0,G.K)(Y,"readFlowCollection"),(0,G.K)(H,"readBlockScalar"),(0,G.K)(W,"readBlockSequence"),(0,G.K)(X,"readBlockMapping"),(0,G.K)(Z,"readTagProperty"),(0,G.K)(V,"readAnchorProperty"),(0,G.K)(J,"readAlias"),(0,G.K)(tn,"tryReadBlockMappingFromProperty"),(0,G.K)(ti,"composeNode"),(0,G.K)(ta,"readDocument"),(0,G.K)(to,"loadDocuments"),(0,G.K)(ts,"loadAll2"),(0,G.K)(tl,"load2"),Q.loadAll=ts,Q.load=tl,Q}(0,G.K)(tt,"requireCommon"),(0,G.K)(te,"requireException"),(0,G.K)(tr,"requireSnippet"),(0,G.K)(tn,"requireType"),(0,G.K)(ti,"requireSchema"),(0,G.K)(ta,"requireStr"),(0,G.K)(to,"requireSeq"),(0,G.K)(ts,"requireMap"),(0,G.K)(tl,"requireFailsafe"),(0,G.K)(tc,"require_null"),(0,G.K)(tu,"requireBool"),(0,G.K)(th,"requireInt"),(0,G.K)(tf,"requireFloat"),(0,G.K)(tp,"requireJson"),(0,G.K)(td,"requireCore"),(0,G.K)(tg,"requireTimestamp"),(0,G.K)(tm,"requireMerge"),(0,G.K)(ty,"requireBinary"),(0,G.K)(tb,"requireOmap"),(0,G.K)(tx,"requirePairs"),(0,G.K)(tk,"requireSet"),(0,G.K)(tw,"require_default"),(0,G.K)(t_,"requireLoader");var tv={};function tM(){if(W)return tv;W=1;let t=tt(),e=te(),r=tw(),n=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a={};a[0]="\\0",a[7]="\\a",a[8]="\\b",a[9]="\\t",a[10]="\\n",a[11]="\\v",a[12]="\\f",a[13]="\\r",a[27]="\\e",a[34]='\\"',a[92]="\\\\",a[133]="\\N",a[160]="\\_",a[8232]="\\L",a[8233]="\\P";let o=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],s=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(t,e){if(null===e)return{};let r={},n=Object.keys(e);for(let a=0,o=n.length;a<o;a+=1){let o=n[a],s=String(e[o]);"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2));let l=t.compiledTypeMap.fallback[o];l&&i.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[o]=s}return r}function c(r){let n,i,a=r.toString(16).toUpperCase();if(r<=255)n="x",i=2;else if(r<=65535)n="u",i=4;else if(r<=0xffffffff)n="U",i=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+t.repeat("0",i-a.length)+a}function u(e){this.schema=e.schema||r,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=t.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=l(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?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function h(e,r){let n=t.repeat(" ",r),i=0,a="",o=e.length;for(;i<o;){let t,r=e.indexOf("\n",i);-1===r?(t=e.slice(i),i=o):(t=e.slice(i,r+1),i=r+1),t.length&&"\n"!==t&&(a+=n),a+=t}return a}function f(e,r){return"\n"+t.repeat(" ",e.indent*r)}function p(t,e){for(let r=0,n=t.implicitTypes.length;r<n;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function d(t){return 32===t||9===t}function g(t){return t>=32&&t<=126||t>=161&&t<=55295&&8232!==t&&8233!==t||t>=57344&&t<=65533&&65279!==t||t>=65536&&t<=1114111}function m(t){return g(t)&&65279!==t&&13!==t&&10!==t}function y(t,e,r){let n=m(t),i=n&&!d(t);return(r?n:n&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!i)||m(e)&&!d(e)&&35===t||58===e&&i}function b(t){return g(t)&&65279!==t&&!d(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function x(t){return!d(t)&&58!==t}function k(t,e){let r,n=t.charCodeAt(e);return n>=55296&&n<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function w(t){return/^\n* /.test(t)}function _(t,e,r,n,i,a,o,s){let l,c=0,u=null,h=!1,f=!1,p=-1!==n,d=-1,m=b(k(t,0))&&x(k(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(!g(c=k(t,l)))return 5;m=m&&y(c,u,s),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(10===(c=k(t,l)))h=!0,p&&(f=f||l-d-1>n&&" "!==t[d+1],d=l);else if(!g(c))return 5;m=m&&y(c,u,s),u=c}f=f||p&&l-d-1>n&&" "!==t[d+1]}return h||f?r>9&&w(t)?5:o?2===a?5:2:f?4:3:!m||o||i(t)?2===a?5:2:1}function v(t,r,n,i,a){t.dump=function(){if(0===r.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==o.indexOf(r)||s.test(r)))return 2===t.quotingType?'"'+r+'"':"'"+r+"'";let l=t.indent*Math.max(1,n),c=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-l),u=i||t.flowLevel>-1&&n>=t.flowLevel;function f(e){return p(t,e)}switch((0,G.K)(f,"testAmbiguity"),_(r,u,t.indent,c,f,t.quotingType,t.forceQuotes&&!i,a)){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+M(r,t.indent)+S(h(r,l));case 4:return">"+M(r,t.indent)+S(h(A(r,c),l));case 5:return'"'+$(r)+'"';default:throw new e("impossible error: invalid scalar style")}}()}function M(t,e){let r=w(t)?String(e):"",n="\n"===t[t.length-1];return r+(n&&("\n"===t[t.length-2]||"\n"===t)?"+":n?"":"-")+"\n"}function S(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function A(t,e){let r,n,i,a=/(\n+)([^\n]*)/g,o=(a.lastIndex=i=-1!==(i=t.indexOf("\n"))?i:t.length,T(t.slice(0,i),e)),s="\n"===t[0]||" "===t[0];for(;n=a.exec(t);){let t=n[1],i=n[2];r=" "===i[0],o+=t+(s||r||""===i?"":"\n")+T(i,e),s=r}return o}function T(t,e){let r,n;if(""===t||" "===t[0])return t;let i=/ [^ ]/g,a=0,o=0,s=0,l="";for(;r=i.exec(t);)(s=r.index)-a>e&&(n=o>a?o:s,l+="\n"+t.slice(a,n),a=n+1),o=s;return l+="\n",t.length-a>e&&o>a?l+=t.slice(a,o)+"\n"+t.slice(o+1):l+=t.slice(a),l.slice(1)}function $(t){let e="",r=0;for(let n=0;n<t.length;r>=65536?n+=2:n++){let i=a[r=k(t,n)];!i&&g(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||c(r)}return e}function C(t,e,r){let n="",i=t.tag;for(let i=0,a=r.length;i<a;i+=1){let a=r[i];t.replacer&&(a=t.replacer.call(r,String(i),a)),(R(t,e,a,!1,!1)||void 0===a&&R(t,e,null,!1,!1))&&(""!==n&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump)}t.tag=i,t.dump="["+n+"]"}function L(t,e,r,n){let i="",a=t.tag;for(let a=0,o=r.length;a<o;a+=1){let o=r[a];t.replacer&&(o=t.replacer.call(r,String(a),o)),(R(t,e+1,o,!0,!0,!1,!0)||void 0===o&&R(t,e+1,null,!0,!0,!1,!0))&&(n&&""===i||(i+=f(t,e)),t.dump&&10===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump)}t.tag=a,t.dump=i||"[]"}function O(t,e,r){let n="",i=t.tag,a=Object.keys(r);for(let i=0,o=a.length;i<o;i+=1){let o="";""!==n&&(o+=", "),t.condenseFlow&&(o+='"');let s=a[i],l=r[s];t.replacer&&(l=t.replacer.call(r,s,l)),R(t,e,s,!1,!1)&&(t.dump.length>1024&&(o+="? "),o+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),R(t,e,l,!1,!1)&&(o+=t.dump,n+=o))}t.tag=i,t.dump="{"+n+"}"}function E(t,r,n,i){let a="",o=t.tag,s=Object.keys(n);if(!0===t.sortKeys)s.sort();else if("function"==typeof t.sortKeys)s.sort(t.sortKeys);else if(t.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let e=0,o=s.length;e<o;e+=1){let o="";i&&""===a||(o+=f(t,r));let l=s[e],c=n[l];if(t.replacer&&(c=t.replacer.call(n,l,c)),!R(t,r+1,l,!0,!0,!0))continue;let u=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024;u&&(t.dump&&10===t.dump.charCodeAt(0)?o+="?":o+="? "),o+=t.dump,u&&(o+=f(t,r)),R(t,r+1,c,!0,u)&&(t.dump&&10===t.dump.charCodeAt(0)?o+=":":o+=": ",o+=t.dump,a+=o)}t.tag=o,t.dump=a||"{}"}function K(t,r,a){let o=a?t.explicitTypes:t.implicitTypes;for(let s=0,l=o.length;s<l;s+=1){let l=o[s];if((l.instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof r&&r instanceof l.instanceOf)&&(!l.predicate||l.predicate(r))){if(a?l.multi&&l.representName?t.tag=l.representName(r):t.tag=l.tag:t.tag="?",l.represent){let a,o=t.styleMap[l.tag]||l.defaultStyle;if("[object Function]"===n.call(l.represent))a=l.represent(r,o);else if(i.call(l.represent,o))a=l.represent[o](r,o);else throw new e("!<"+l.tag+'> tag resolver accepts not "'+o+'" style');t.dump=a}return!0}}return!1}function R(t,r,i,a,o,s,l){let c,u;t.tag=null,t.dump=i,K(t,i,!1)||K(t,i,!0);let h=n.call(t.dump),f=a;a&&(a=t.flowLevel<0||t.flowLevel>r);let p="[object Object]"===h||"[object Array]"===h;if(p&&(u=-1!==(c=t.duplicates.indexOf(i))),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&r>0)&&(o=!1),u&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(p&&u&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===h)a&&0!==Object.keys(t.dump).length?(E(t,r,t.dump,o),u&&(t.dump="&ref_"+c+t.dump)):(O(t,r,t.dump),u&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===h)a&&0!==t.dump.length?(t.noArrayIndent&&!l&&r>0?L(t,r-1,t.dump,o):L(t,r,t.dump,o),u&&(t.dump="&ref_"+c+t.dump)):(C(t,r,t.dump),u&&(t.dump="&ref_"+c+" "+t.dump));else if("[object String]"===h)"?"!==t.tag&&v(t,t.dump,r,s,f);else{if("[object Undefined]"===h||t.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+h)}if(null!==t.tag&&"?"!==t.tag){let e=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21");e="!"===t.tag[0]?"!"+e:"tag:yaml.org,2002:"===e.slice(0,18)?"!!"+e.slice(18):"!<"+e+">",t.dump=e+" "+t.dump}}return!0}function D(t,e){let r=[],n=[];N(t,r,n);let i=n.length;for(let t=0;t<i;t+=1)e.duplicates.push(r[n[t]]);e.usedDuplicates=Array(i)}function N(t,e,r){if(null!==t&&"object"==typeof t){let n=e.indexOf(t);if(-1!==n)-1===r.indexOf(n)&&r.push(n);else if(e.push(t),Array.isArray(t))for(let n=0,i=t.length;n<i;n+=1)N(t[n],e,r);else{let n=Object.keys(t);for(let i=0,a=n.length;i<a;i+=1)N(t[n[i]],e,r)}}}function P(t,e){let r=new u(e=e||{});r.noRefs||D(t,r);let n=t;return(r.replacer&&(n=r.replacer.call({"":n},"",n)),R(r,0,n,!0,!0))?r.dump+"\n":""}return(0,G.K)(l,"compileStyleMap"),(0,G.K)(c,"encodeHex"),(0,G.K)(u,"State"),(0,G.K)(h,"indentString"),(0,G.K)(f,"generateNextLine"),(0,G.K)(p,"testImplicitResolving"),(0,G.K)(d,"isWhitespace"),(0,G.K)(g,"isPrintable"),(0,G.K)(m,"isNsCharOrWhitespace"),(0,G.K)(y,"isPlainSafe"),(0,G.K)(b,"isPlainSafeFirst"),(0,G.K)(x,"isPlainSafeLast"),(0,G.K)(k,"codePointAt"),(0,G.K)(w,"needIndentIndicator"),(0,G.K)(_,"chooseScalarStyle"),(0,G.K)(v,"writeScalar"),(0,G.K)(M,"blockHeader"),(0,G.K)(S,"dropEndingNewline"),(0,G.K)(A,"foldString"),(0,G.K)(T,"foldLine"),(0,G.K)($,"escapeString"),(0,G.K)(C,"writeFlowSequence"),(0,G.K)(L,"writeBlockSequence"),(0,G.K)(O,"writeFlowMapping"),(0,G.K)(E,"writeBlockMapping"),(0,G.K)(K,"detectType"),(0,G.K)(R,"writeNode"),(0,G.K)(D,"getDuplicateReferences"),(0,G.K)(N,"inspectNode"),(0,G.K)(P,"dump2"),tv.dump=P,tv}function tS(){if(X)return V;X=1;let t=t_(),e=tM();function r(t,e){return function(){throw Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}return(0,G.K)(r,"renamed"),V.Type=tn(),V.Schema=ti(),V.FAILSAFE_SCHEMA=tl(),V.JSON_SCHEMA=tp(),V.CORE_SCHEMA=td(),V.DEFAULT_SCHEMA=tw(),V.load=t.load,V.loadAll=t.loadAll,V.dump=e.dump,V.YAMLException=te(),V.types={binary:ty(),float:tf(),map:ts(),null:tc(),pairs:tx(),set:tk(),timestamp:tg(),bool:tu(),int:th(),merge:tm(),omap:tb(),seq:to(),str:ta()},V.safeLoad=r("safeLoad","load"),V.safeLoadAll=r("safeLoadAll","loadAll"),V.safeDump=r("safeDump","dump"),V}(0,G.K)(tM,"requireDumper"),(0,G.K)(tS,"requireJsYaml");var{JSON_SCHEMA:tA,load:tT}=Z(tS())},41329:(t,e,r)=>{"use strict";r.d(e,{WY:()=>S,dn:()=>M,pC:()=>_,Gc:()=>x});var n=r(95631),i=r(5218),a=r(14528);let o=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),s=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...s,...l}),u=Object.freeze({...c,body:"",hidden:!1});function h(t,e){let r,n,i=(r={},!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0),(n=((t.rotate||0)+(e.rotate||0))%4)&&(r.rotate=n),r);for(let r in u)r in l?r in t&&!(r in i)&&(i[r]=l[r]):r in e?i[r]=e[r]:r in t&&(i[r]=t[r]);return i}function f(t,e,r){let n=t.icons,i=t.aliases||Object.create(null),a={};function o(t){a=h(n[t]||i[t],a)}return o(e),r.forEach(o),h(t,a)}let p=Object.freeze({...Object.freeze({width:null,height:null}),...l}),d=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function m(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;let n=t.split(d);if(null===n||!n.length)return t;let i=[],a=n.shift(),o=g.test(a);for(;;){if(o){let t=parseFloat(a);isNaN(t)?i.push(a):i.push(Math.ceil(t*e*r)/r)}else i.push(a);if(void 0===(a=n.shift()))return i.join("");o=!o}}let y=/\sid="(\S+)"/g,b=new Map;var x={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},k=new Map,w=new Map,_=(0,a.K)(t=>{for(let e of t){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.R.debug("Registering icon pack:",e.name),"loader"in e)w.set(e.name,e.loader);else if("icons"in e)k.set(e.name,e.icons);else throw i.R.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),v=(0,a.K)(async(t,e)=>{let r=((t,e,r,n="")=>{let i=t.split(":");if("@"===t.slice(0,1)){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let t=i.pop(),r=i.pop(),a={provider:i.length>0?i[0]:n,prefix:r,name:t};return e&&!o(a)?null:a}let a=i[0],s=a.split("-");if(s.length>1){let t={provider:n,prefix:s.shift(),name:s.join("-")};return e&&!o(t)?null:t}if(r&&""===n){let t={provider:n,prefix:"",name:a};return e&&!o(t,r)?null:t}return null})(t,!0,void 0!==e);if(!r)throw Error(`Invalid icon name: ${t}`);let n=r.prefix||e;if(!n)throw Error(`Icon name must contain a prefix: ${t}`);let a=k.get(n);if(!a){let t=w.get(n);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await t(),prefix:n},k.set(n,a)}catch(t){throw i.R.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let s=function(t,e){var r;let n,i,a;if(t.icons[e])return f(t,e,[]);let o=(r=[e],n=t.icons,i=t.aliases||Object.create(null),a=Object.create(null),(r||Object.keys(n).concat(Object.keys(i))).forEach(function t(e){if(n[e])return a[e]=[];if(!(e in a)){a[e]=null;let r=i[e]&&i[e].parent,n=r&&t(r);n&&(a[e]=[r].concat(n))}return a[e]}),a)[e];return o?f(t,e,o):null}(a,r.name);if(!s)throw Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),M=(0,a.K)(async t=>{try{return await v(t),!0}catch{return!1}},"isIconAvailable"),S=(0,a.K)(async(t,e,r)=>{var a;let o,s,l,u,h,f,d,g,k,w,_,M,S,A;try{o=await v(t,e?.fallbackPrefix)}catch(t){i.R.error(t),o=x}let T=(a=o,u={...c,...a},h={...p,...e},f={left:u.left,top:u.top,width:u.width,height:u.height},d=u.body,[u,h].forEach(t=>{var e,r,n,i;let a,o,s=[],l=t.hFlip,c=t.vFlip,u=t.rotate;switch(l?c?u+=2:(s.push("translate("+(f.width+f.left).toString()+" "+(0-f.top).toString()+")"),s.push("scale(-1 1)"),f.top=f.left=0):c&&(s.push("translate("+(0-f.left).toString()+" "+(f.height+f.top).toString()+")"),s.push("scale(1 -1)"),f.top=f.left=0),u<0&&(u-=4*Math.floor(u/4)),u%=4){case 1:s.unshift("rotate(90 "+(a=f.height/2+f.top).toString()+" "+a.toString()+")");break;case 2:s.unshift("rotate(180 "+(f.width/2+f.left).toString()+" "+(f.height/2+f.top).toString()+")");break;case 3:s.unshift("rotate(-90 "+(a=f.width/2+f.left).toString()+" "+a.toString()+")")}u%2==1&&(f.left!==f.top&&(a=f.left,f.left=f.top,f.top=a),f.width!==f.height&&(a=f.width,f.width=f.height,f.height=a)),s.length&&(e=d,r='<g transform="'+s.join(" ")+'">',n=(o=function(t,e="defs"){let r="",n=t.indexOf("<"+e);for(;n>=0;){let i=t.indexOf(">",n),a=t.indexOf("</"+e);if(-1===i||-1===a)break;let o=t.indexOf(">",a);if(-1===o)break;r+=t.slice(i+1,a).trim(),t=t.slice(0,n).trim()+t.slice(o+1)}return{defs:r,content:t}}(e)).defs,i=r+o.content+"</g>",d=n?"<defs>"+n+"</defs>"+i:i)}),g=h.width,k=h.height,w=f.width,_=f.height,null===g?s=m(l=null===k?"1em":"auto"===k?_:k,w/_):(s="auto"===g?w:g,l=null===k?m(s,_/w):"auto"===k?_:k),M={},(S=(t,e)=>{"unset"!==e&&"undefined"!==e&&"none"!==e&&(M[t]=e.toString())})("width",s),S("height",l),M.viewBox=(A=[f.left,f.top,w,_]).join(" "),{attributes:M,viewBox:A,body:d}),$=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let t in e)r+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(function(t){let e,r=[];for(;e=y.exec(t);)r.push(e[1]);if(!r.length)return t;let n="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return r.forEach(e=>{var r;let i,a=(r=(r=e).replace(/[0-9]+$/,"")||"a",i=b.get(r)||0,b.set(r,i+1),i?`${r}${i}`:r),o=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+a+n+"$3")}),t=t.replace(RegExp(n,"g"),"")}(T.body),{...T.attributes,...r});return(0,n.jZ)($,(0,n.zj)())},"getIconSVG")},42901:(t,e,r)=>{"use strict";r.d(e,{P:()=>i});let n="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}();function i(t){return void 0!==n.Buffer&&n.Buffer.isBuffer(t)}},48375:(t,e,r)=>{"use strict";r.d(e,{N:()=>i});var n=r(36950);function i(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===(0,n.b)(t)}},56745:(t,e,r)=>{"use strict";function n(t){return null==t||"object"!=typeof t&&"function"!=typeof t}r.d(e,{s:()=>n})},58959:(t,e,r)=>{"use strict";r.d(e,{pe:()=>S,PX:()=>J,ru:()=>V,Un:()=>Q,$t:()=>ta,Sm:()=>tl,C4:()=>ts,$C:()=>Y,rY:()=>tc,sM:()=>z,KL:()=>tu,Ib:()=>E,dq:()=>tr,I5:()=>ti,yT:()=>q,vU:()=>L,_K:()=>to,bH:()=>G});var n,i=r(95631),a=r(5218),o=r(14528),s=r(77850),l=r(60830);function c(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");let r=function(...n){let i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);let o=t.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(c.Cache||Map),r}function u(){}c.Cache=Map;var h=r(56745),f=r(90727);function p(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}var d=r(42901);function g(t){if("object"!=typeof t||null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[object Object]"!==Object.prototype.toString.call(t)){let e=t[Symbol.toStringTag];return null!=e&&!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var m=r(36950),y=r(67973);function b(t,e,r,n=new Map,i){let a=i?.(t,e,r,n);if(void 0!==a)return a;if((0,h.s)(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){let e=Array(t.length);n.set(t,e);for(let a=0;a<t.length;a++)e[a]=b(t[a],a,r,n,i);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){let e=new Map;for(let[a,o]of(n.set(t,e),t))e.set(a,b(o,a,r,n,i));return e}if(t instanceof Set){let e=new Set;for(let a of(n.set(t,e),t))e.add(b(a,void 0,r,n,i));return e}if((0,d.P)(t))return t.subarray();if((0,f.i)(t)){let e=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,e);for(let a=0;a<t.length;a++)e[a]=b(t[a],a,r,n,i);return e}if(t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){let e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,e),x(e,t,r,n,i),e}if("u">typeof File&&t instanceof File){let e=new File([t],t.name,{type:t.type});return n.set(t,e),x(e,t,r,n,i),e}if("u">typeof Blob&&t instanceof Blob){let e=new Blob([t],{type:t.type});return n.set(t,e),x(e,t,r,n,i),e}if(t instanceof Error){let e=structuredClone(t);return n.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,x(e,t,r,n,i),e}if(t instanceof Boolean){let e=new Boolean(t.valueOf());return n.set(t,e),x(e,t,r,n,i),e}if(t instanceof Number){let e=new Number(t.valueOf());return n.set(t,e),x(e,t,r,n,i),e}if(t instanceof String){let e=new String(t.valueOf());return n.set(t,e),x(e,t,r,n,i),e}if("object"==typeof t&&function(t){switch((0,m.b)(t)){case y.R_:case y.Uw:case y.cT:case y.iq:case y.$V:case y.vC:case y.ri:case y.ML:case y.XZ:case y.i1:case y._u:case y.pj:case y.kj:case y.GX:case y.Av:case y.NA:case y.OG:case y.VP:case y.Qb:case y.q:case y.x6:case y.ZR:return!0;default:return!1}}(t)){let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),x(e,t,r,n,i),e}return t}function x(t,e,r=t,n,i){let a=[...Object.keys(e),...p(e)];for(let o=0;o<a.length;o++){let s=a[o],l=Object.getOwnPropertyDescriptor(t,s);(null==l||l.writable)&&(t[s]=b(e[s],s,r,n,i))}}function k(t){var e;return e=(e,r,n,i)=>{let a;if(void 0!==a)return a;if("object"==typeof t){if("[object Object]"===(0,m.b)(t)&&"function"!=typeof t.constructor){let e={};return i.set(t,e),x(e,t,n,i),e}switch(Object.prototype.toString.call(t)){case y.kj:case y.OG:case y.$V:{let e=new t.constructor(t?.valueOf());return x(e,t),e}case y.R_:{let e={};return x(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},b(t,void 0,t,new Map,e)}var w=r(48375);function _(t){return"object"==typeof t&&null!==t}var v=r(7108),M=r(90736),S="",A={curveBasis:l.qrM,curveBasisClosed:l.Yu4,curveBasisOpen:l.IA3,curveBumpX:l.Wi0,curveBumpY:l.PGM,curveBundle:l.OEq,curveCardinalClosed:l.olC,curveCardinalOpen:l.IrU,curveCardinal:l.y8u,curveCatmullRomClosed:l.Q7f,curveCatmullRomOpen:l.cVp,curveCatmullRom:l.oDi,curveLinear:l.lUB,curveLinearClosed:l.Lx9,curveMonotoneX:l.nVG,curveMonotoneY:l.uxU,curveNatural:l.Xf2,curveStep:l.GZz,curveStepAfter:l.UPb,curveStepBefore:l.dyv},T=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,$=(0,o.K)(function(t,e){let r=C(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let t=r.map(t=>t.args);(0,i.$i)(t),n=(0,i.hH)(n,[...t])}else n=r.args;if(!n)return;let a=(0,i.Ch)(t,e),o="config";return void 0!==n[o]&&("flowchart-v2"===a&&(a="flowchart"),n[a]=n[o],delete n[o]),n},"detectInit"),C=(0,o.K)(function(t,e=null){try{let r,n=RegExp(`[%]{2}(?![{]${T.source})(?=[}][%]{2}).*
|
|
14
|
+
`,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),a.R.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let o=[];for(;null!==(r=i.DB.exec(t));)if(r.index===i.DB.lastIndex&&i.DB.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){let t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;o.push({type:t,args:e})}if(0===o.length)return{type:t,args:null};return 1===o.length?o[0]:o}catch(r){return a.R.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),L=(0,o.K)(function(t){return t.replace(i.DB,"")},"removeDirectives"),O=(0,o.K)(function(t,e){for(let[r,n]of e.entries())if(n.match(t))return r;return -1},"isSubstringInArray");function E(t,e){return t?A[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function K(t,e){let r=t.trim();if(r)return"loose"!==e.securityLevel?(0,s.J)(r):r}(0,o.K)(E,"interpolateToCurve"),(0,o.K)(K,"formatUrl");var R=(0,o.K)((t,...e)=>{let r=t.split("."),n=r.length-1,i=r[n],o=window;for(let e=0;e<n;e++)if(!(o=o[r[e]]))return void a.R.error(`Function name: ${t} not found in window`);o[i](...e)},"runFunc");function D(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function N(t){let e,r=0;return t.forEach(t=>{r+=D(t,e),e=t}),j(t,r/2)}function P(t){return 1===t.length?t[0]:N(t)}(0,o.K)(D,"distance"),(0,o.K)(N,"traverseEdge"),(0,o.K)(P,"calcLabelPosition");var I=(0,o.K)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),j=(0,o.K)((t,e)=>{let r,n=e;for(let e of t){if(r){let t=D(e,r);if(0===t)return r;if(t<n)n-=t;else{let i=n/t;if(i<=0)return r;if(i>=1)return{x:e.x,y:e.y};if(i>0&&i<1)return{x:I((1-i)*r.x+i*e.x,5),y:I((1-i)*r.y+i*e.y,5)}}}r=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),U=(0,o.K)((t,e,r)=>{a.R.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let n=j(e,25),i=t?10:5,o=Math.atan2(e[0].y-n.y,e[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(o)*i+(e[0].x+n.x)/2,s.y=-Math.cos(o)*i+(e[0].y+n.y)/2,s},"calcCardinalityPosition");function F(t,e,r){let n=structuredClone(r);a.R.info("our points",n),"start_left"!==e&&"start_right"!==e&&n.reverse();let i=j(n,25+t),o=10+.5*t,s=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(s+Math.PI)*o+(n[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*o+(n[0].y+i.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*o+(n[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(n[0].y+i.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*o+(n[0].x+i.x)/2-5,l.y=-Math.cos(s)*o+(n[0].y+i.y)/2-5):(l.x=Math.sin(s)*o+(n[0].x+i.x)/2,l.y=-Math.cos(s)*o+(n[0].y+i.y)/2),l}function z(t){let e="",r="";for(let n of t)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}(0,o.K)(F,"calcTerminalLabelPosition"),(0,o.K)(z,"getStylesFromArray");var B=0,Y=(0,o.K)(()=>(B++,"id-"+Math.random().toString(36).substr(2,12)+"-"+B),"generateId");function H(t){let e="",r="0123456789abcdef",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}(0,o.K)(H,"makeRandomHex");var q=(0,o.K)(t=>H(t.length),"random"),W=(0,o.K)(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"),X=(0,o.K)(function(t,e){let r=e.text.replace(i.Y2.lineBreakRegex," "),[,n]=ti(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",n),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);let o=a.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(r),a},"drawSimpleText"),G=c((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),i.Y2.hasBreaks(t)))return t;let n=t.split(" ").filter(Boolean),a=[],o="";return n.forEach((t,i)=>{let s=Q(`${t} `,r),l=Q(o,r);if(s>e){let{hyphenatedStrings:n,remainingWord:i}=Z(t,e,"-",r);a.push(o,...n),o=i}else l+s>=e?(a.push(o),o=t):o=[o,t].filter(Boolean).join(" ");i+1===n.length&&a.push(o)}),a.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Z=c((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...t],a=[],o="";return i.forEach((t,s)=>{let l=`${o}${t}`;if(Q(l,n)>=e){let t=i.length===s+1,e=`${l}${r}`;a.push(t?l:e),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function V(t,e){return J(t,e).height}function Q(t,e){return J(t,e).width}(0,o.K)(V,"calculateTextHeight"),(0,o.K)(Q,"calculateTextWidth");var J=c((t,e)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};let[,o]=ti(r),s=t.split(i.Y2.lineBreakRegex),c=[],u=(0,l.Ltv)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let h=u.append("svg");for(let t of["sans-serif",n]){let e=0,r={width:0,height:0,lineHeight:0};for(let n of s){let i=W();i.text=n||S;let s=X(h,i).style("font-size",o).style("font-weight",a).style("font-family",t),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}c.push(r)}h.remove();let f=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),tt=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,o.K)(this,"InitIDGenerator")}},te=(0,o.K)(function(t){return n=n||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),n.innerHTML=t,unescape(n.textContent)},"entityDecode");function tr(t){return"str"in t}(0,o.K)(tr,"isDetailedError");var tn=(0,o.K)((t,e,r,n)=>{if(!n)return;let i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),ti=(0,o.K)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function ta(t,e){return function(t,...e){return function(t,...e){let r=e.slice(0,-1),n=e[e.length-1],i=t;for(let t=0;t<r.length;t++)i=function t(e,r,n,i){if((0,h.s)(e)&&(e=Object(e)),null==r||"object"!=typeof r)return e;if(i.has(r))return function(t){if((0,h.s)(t))return t;if(Array.isArray(t)||(0,f.i)(t)||t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);let r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){let e=new r(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let e;return(e=t instanceof AggregateError?new r(t.errors,t.message,{cause:t.cause}):new r(t.message,{cause:t.cause})).stack=t.stack,Object.assign(e,t),e}return"u">typeof File&&t instanceof File?new r([t],t.name,{type:t.type,lastModified:t.lastModified}):"object"==typeof t?Object.assign(Object.create(e),t):t}(i.get(r));if(i.set(r,e),Array.isArray(r)){r=r.slice();for(let t=0;t<r.length;t++)t in r||(r[t]=void 0)}let a=[...Object.keys(r),...p(r)];for(let s=0;s<a.length;s++){let l=a[s];if("__proto__"===l)continue;let c=r[l],u=e[l];if((0,w.N)(c)&&(c={...c}),(0,w.N)(u)&&(u={...u}),(0,d.P)(c)&&(c=k(c)),Array.isArray(c))if(Array.isArray(u)){let t=[],e=Reflect.ownKeys(u);for(let r=0;r<e.length;r++){let n=e[r];t[n]=u[n]}u=t}else{var o;if(_(o=u)&&(0,v.X)(o)){let t=[];for(let e=0;e<u.length;e++)t[e]=u[e];u=t}else u=[]}let h=n(u,c,l,e,r,i);void 0!==h?e[l]=h:Array.isArray(c)||_(u)&&_(c)&&(g(u)||g(c)||(0,M.i)(u)||(0,M.i)(c))?e[l]=t(u,c,n,i):null==u&&g(c)?e[l]=t({},c,n,i):null==u&&(0,M.i)(c)?e[l]=k(c):(void 0===u||void 0!==c)&&(e[l]=c)}return e}(i,r[t],n,new Map);return i}(t,...e,u)}({},t,e)}(0,o.K)(ta,"cleanAndMerge");var to={assignWithDepth:i.hH,wrapLabel:G,calculateTextHeight:V,calculateTextWidth:Q,calculateTextDimensions:J,cleanAndMerge:ta,detectInit:$,detectDirective:C,isSubstringInArray:O,interpolateToCurve:E,calcLabelPosition:P,calcCardinalityPosition:U,calcTerminalLabelPosition:F,formatUrl:K,getStylesFromArray:z,generateId:Y,random:q,runFunc:R,entityDecode:te,insertTitle:tn,isLabelCoordinateInPath:th,parseFontSize:ti,InitIDGenerator:tt},ts=(0,o.K)(function(t){let e=t;return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl\xb0\xb0"+e+"\xb6\xdf":"fl\xb0"+e+"\xb6\xdf"})},"encodeEntities"),tl=(0,o.K)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),tc=(0,o.K)((t,e,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function tu(t){return t??null}function th(t,e){let r=Math.round(t.x),n=Math.round(t.y),i=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return i.includes(r.toString())||i.includes(n.toString())}(0,o.K)(tu,"handleUndefinedAttr"),(0,o.K)(th,"isLabelCoordinateInPath")},60830:(t,e,r)=>{"use strict";function n(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function i(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function a(t){return t}function o(t){return"translate("+t+",0)"}function s(t){return"translate(0,"+t+")"}function l(){return!this.__axis}function c(t,e){var r=[],n=null,i=null,c=6,u=6,h=3,f="u">typeof window&&window.devicePixelRatio>1?0:.5,p=1===t||4===t?-1:1,d=4===t||2===t?"x":"y",g=1===t||3===t?o:s;function m(o){var s=null==n?e.ticks?e.ticks.apply(e,r):e.domain():n,m=null==i?e.tickFormat?e.tickFormat.apply(e,r):a:i,y=Math.max(c,0)+h,b=e.range(),x=+b[0]+f,k=+b[b.length-1]+f,w=(e.bandwidth?function(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}:function(t){return e=>+t(e)})(e.copy(),f),_=o.selection?o.selection():o,v=_.selectAll(".domain").data([null]),M=_.selectAll(".tick").data(s,e).order(),S=M.exit(),A=M.enter().append("g").attr("class","tick"),T=M.select("line"),$=M.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),M=M.merge(A),T=T.merge(A.append("line").attr("stroke","currentColor").attr(d+"2",p*c)),$=$.merge(A.append("text").attr("fill","currentColor").attr(d,p*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),o!==_&&(v=v.transition(o),M=M.transition(o),T=T.transition(o),$=$.transition(o),S=S.transition(o).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=w(t))?g(t+f):this.getAttribute("transform")}),A.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return g((e&&isFinite(e=e(t))?e:w(t))+f)})),S.remove(),v.attr("d",4===t||2===t?u?"M"+p*u+","+x+"H"+f+"V"+k+"H"+p*u:"M"+f+","+x+"V"+k:u?"M"+x+","+p*u+"V"+f+"H"+k+"V"+p*u:"M"+x+","+f+"H"+k),M.attr("opacity",1).attr("transform",function(t){return g(w(t)+f)}),T.attr(d+"2",p*c),$.attr(d,p*y).text(m),_.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),_.each(function(){this.__axis=w})}return m.scale=function(t){return arguments.length?(e=t,m):e},m.ticks=function(){return r=Array.from(arguments),m},m.tickArguments=function(t){return arguments.length?(r=null==t?[]:Array.from(t),m):r.slice()},m.tickValues=function(t){return arguments.length?(n=null==t?null:Array.from(t),m):n&&n.slice()},m.tickFormat=function(t){return arguments.length?(i=t,m):i},m.tickSize=function(t){return arguments.length?(c=u=+t,m):c},m.tickSizeInner=function(t){return arguments.length?(c=+t,m):c},m.tickSizeOuter=function(t){return arguments.length?(u=+t,m):u},m.tickPadding=function(t){return arguments.length?(h=+t,m):h},m.offset=function(t){return arguments.length?(f=+t,m):f},m}function u(t){return c(1,t)}function h(t){return c(3,t)}function f(){}function p(t){return null==t?f:function(){return this.querySelector(t)}}function d(){return[]}function g(t){return null==t?d:function(){return this.querySelectorAll(t)}}function m(t){return function(){return this.matches(t)}}function y(t){return function(e){return e.matches(t)}}r.d(e,{JLW:()=>iW,l78:()=>h,tlR:()=>u,qrM:()=>i8,Yu4:()=>i9,IA3:()=>at,Wi0:()=>ar,PGM:()=>an,OEq:()=>aa,y8u:()=>al,olC:()=>au,IrU:()=>af,oDi:()=>ag,Q7f:()=>ay,cVp:()=>ax,lUB:()=>iZ,Lx9:()=>aw,nVG:()=>a$,uxU:()=>aC,Xf2:()=>aE,GZz:()=>aR,UPb:()=>aN,dyv:()=>aD,GPZ:()=>to,Sk5:()=>ez,bEH:()=>ra,n8j:()=>iJ,T9B:()=>n,jkA:()=>i,rLf:()=>i2,WH:()=>function t(){var e,r,n=rh().unknown(void 0),i=n.domain,a=n.range,o=0,s=1,l=!1,c=0,u=0,h=.5;function f(){var t=i().length,n=s<o,f=n?s:o,p=n?o:s;e=(p-f)/Math.max(1,t-c+2*u),l&&(e=Math.floor(e)),f+=(p-f-e*(t-c))*h,r=e*(1-c),l&&(f=Math.round(f),r=Math.round(r));var d=(function(t,e,r){t*=1,e*=1,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=Array(i);++n<i;)a[n]=t+n*r;return a})(t).map(function(t){return f+e*t});return a(n?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),f()):i()},n.range=function(t){return arguments.length?([o,s]=t,o*=1,s*=1,f()):[o,s]},n.rangeRound=function(t){return[o,s]=t,o*=1,s*=1,l=!0,f()},n.bandwidth=function(){return r},n.step=function(){return e},n.round=function(t){return arguments.length?(l=!!t,f()):l},n.padding=function(t){return arguments.length?(c=Math.min(1,u=+t),f()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},n.paddingOuter=function(t){return arguments.length?(u=+t,f()):u},n.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),f()):h},n.copy=function(){return t(i(),[o,s]).round(l).paddingInner(c).paddingOuter(u).align(h)},ro.apply(f(),arguments)},m4Y:()=>function t(){var e,r=rE();return r.copy=function(){return rO(r,t())},ro.apply(r,arguments),e=r.domain,r.ticks=function(t){var r=e();return function(t,e,r){if(e*=1,t*=1,!((r*=1)>0))return[];if(t===e)return[t];let n=e<t,[i,a,o]=n?rg(e,t,r):rg(t,e,r);if(!(a>=i))return[];let s=a-i+1,l=Array(s);if(n)if(o<0)for(let t=0;t<s;++t)l[t]=-((a-t)/o);else for(let t=0;t<s;++t)l[t]=(a-t)*o;else if(o<0)for(let t=0;t<s;++t)l[t]=-((i+t)/o);else for(let t=0;t<s;++t)l[t]=(i+t)*o;return l}(r[0],r[r.length-1],null==t?10:t)},r.tickFormat=function(t,r){var n=e();return function(t,e,r,n){var i,a,o=ry(t,e,r);switch((n=eR(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(eE(s)/3)))-eE(Math.abs(o))))||(n.precision=a),ts(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=Math.max(0,eE(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=o)))-eE(i))+1)||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=Math.max(0,-eE(Math.abs(o))))||(n.precision=a-("%"===n.type)*2)}return to(n)}(n[0],n[n.length-1],null==t?10:t,r)},r.nice=function(t){null==t&&(t=10);var n,i,a=e(),o=0,s=a.length-1,l=a[o],c=a[s],u=10;for(c<l&&(i=l,l=c,c=i,i=o,o=s,s=i);u-- >0;){if((i=rm(l,c,t))===n)return a[o]=l,a[s]=c,e(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;n=i}return r},r},UMr:()=>rh,w7C:()=>ik,zt:()=>iw,Ltv:()=>i_,UAC:()=>rz,DCK:()=>tc,TUC:()=>rV,Agd:()=>rU,t6C:()=>rN,wXd:()=>rI,ABi:()=>rW,Ui6:()=>r4,rGn:()=>rQ,ucG:()=>rP,YPH:()=>rq,Mol:()=>rZ,PGu:()=>rX,GuW:()=>rG,hkb:()=>eQ});var b=Array.prototype.find;function x(){return this.firstElementChild}var k=Array.prototype.filter;function w(){return Array.from(this.children)}function _(t){return Array(t.length)}function v(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function M(t,e,r,n,i,a){for(var o,s=0,l=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],n[s]=o):r[s]=new v(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function S(t,e,r,n,i,a,o){var s,l,c,u=new Map,h=e.length,f=a.length,p=Array(h);for(s=0;s<h;++s)(l=e[s])&&(p[s]=c=o.call(l,l.__data__,s,e)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<f;++s)c=o.call(t,a[s],s,a)+"",(l=u.get(c))?(n[s]=l,l.__data__=a[s],u.delete(c)):r[s]=new v(t,a[s]);for(s=0;s<h;++s)(l=e[s])&&u.get(p[s])===l&&(i[s]=l)}function A(t){return t.__data__}function T(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}v.prototype={constructor:v,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var $="http://www.w3.org/1999/xhtml";let C={svg:"http://www.w3.org/2000/svg",xhtml:$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function L(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),C.hasOwnProperty(e)?{space:C[e],local:t}:t}function O(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function E(t,e){return t.style.getPropertyValue(e)||O(t).getComputedStyle(t,null).getPropertyValue(e)}function K(t){return t.trim().split(/^|\s+/)}function R(t){return t.classList||new D(t)}function D(t){this._node=t,this._names=K(t.getAttribute("class")||"")}function N(t,e){for(var r=R(t),n=-1,i=e.length;++n<i;)r.add(e[n])}function P(t,e){for(var r=R(t),n=-1,i=e.length;++n<i;)r.remove(e[n])}function I(){this.textContent=""}function j(){this.innerHTML=""}function U(){this.nextSibling&&this.parentNode.appendChild(this)}function F(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function z(t){var e=L(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===$&&e.documentElement.namespaceURI===$?e.createElement(t):e.createElementNS(r,t)}})(e)}function B(){return null}function Y(){var t=this.parentNode;t&&t.removeChild(this)}function H(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function q(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function W(t){return function(){var e=this.__on;if(e){for(var r,n=0,i=-1,a=e.length;n<a;++n)(r=e[n],t.type&&r.type!==t.type||r.name!==t.name)?e[++i]=r:this.removeEventListener(r.type,r.listener,r.options);++i?e.length=i:delete this.__on}}}function X(t,e,r){return function(){var n,i=this.__on,a=function(t){e.call(this,t,this.__data__)};if(i){for(var o=0,s=i.length;o<s;++o)if((n=i[o]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),n.value=e;return}}this.addEventListener(t.type,a,r),n={type:t.type,name:t.name,value:e,listener:a,options:r},i?i.push(n):this.__on=[n]}}function G(t,e,r){var n=O(t),i=n.CustomEvent;"function"==typeof i?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}D.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Z=[null];function V(t,e){this._groups=t,this._parents=e}function Q(){return new V([[document.documentElement]],Z)}V.prototype=Q.prototype={constructor:V,select:function(t){"function"!=typeof t&&(t=p(t));for(var e=this._groups,r=e.length,n=Array(r),i=0;i<r;++i)for(var a,o,s=e[i],l=s.length,c=n[i]=Array(l),u=0;u<l;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),c[u]=o);return new V(n,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=g(t);for(var r=this._groups,n=r.length,i=[],a=[],o=0;o<n;++o)for(var s,l=r[o],c=l.length,u=0;u<c;++u)(s=l[u])&&(i.push(t.call(s,s.__data__,u,l)),a.push(s));return new V(i,a)},selectChild:function(t){var e;return this.select(null==t?x:(e="function"==typeof t?t:y(t),function(){return b.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?w:(e="function"==typeof t?t:y(t),function(){return k.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=m(t));for(var e=this._groups,r=e.length,n=Array(r),i=0;i<r;++i)for(var a,o=e[i],s=o.length,l=n[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new V(n,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,A);var r=e?S:M,n=this._parents,i=this._groups;"function"!=typeof t&&(b=t,t=function(){return b});for(var a=i.length,o=Array(a),s=Array(a),l=Array(a),c=0;c<a;++c){var u=n[c],h=i[c],f=h.length,p="object"==typeof(y=t.call(u,u&&u.__data__,c,n))&&"length"in y?y:Array.from(y),d=p.length,g=s[c]=Array(d),m=o[c]=Array(d);r(u,h,g,m,l[c]=Array(f),p,e);for(var y,b,x,k,w=0,_=0;w<d;++w)if(x=g[w]){for(w>=_&&(_=w+1);!(k=m[_])&&++_<d;);x._next=k||null}}return(o=new V(o,n))._enter=s,o._exit=l,o},enter:function(){return new V(this._enter||this._groups.map(_),this._parents)},exit:function(){return new V(this._exit||this._groups.map(_),this._parents)},join:function(t,e,r){var n=this.enter(),i=this,a=this.exit();return"function"==typeof t?(n=t(n))&&(n=n.selection()):n=n.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==r?a.remove():r(a),n&&i?n.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,i=r.length,a=n.length,o=Math.min(i,a),s=Array(i),l=0;l<o;++l)for(var c,u=r[l],h=n[l],f=u.length,p=s[l]=Array(f),d=0;d<f;++d)(c=u[d]||h[d])&&(p[d]=c);for(;l<i;++l)s[l]=r[l];return new V(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n,i=t[e],a=i.length-1,o=i[a];--a>=0;)(n=i[a])&&(o&&4^n.compareDocumentPosition(o)&&o.parentNode.insertBefore(n,o),o=n);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=T);for(var r=this._groups,n=r.length,i=Array(n),a=0;a<n;++a){for(var o,s=r[a],l=s.length,c=i[a]=Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(e)}return new V(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var i,a=e[r],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var r=L(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((null==e?r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?r.local?function(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}:function(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}:r.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(r,e))},style:function(t,e,r){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,r){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}:function(t,e,r){return function(){this.style.setProperty(t,e,r)}})(t,e,null==r?"":r)):E(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var r=K(t+"");if(arguments.length<2){for(var n=R(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?N:P)(this,t)}}:e?function(t){return function(){N(this,t)}}:function(t){return function(){P(this,t)}})(r,e))},text:function(t){return arguments.length?this.each(null==t?I:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?j:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(U)},lower:function(){return this.each(F)},append:function(t){var e="function"==typeof t?t:z(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r="function"==typeof t?t:z(t),n=null==e?B:"function"==typeof e?e:p(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})},remove:function(){return this.each(Y)},clone:function(t){return this.select(t?q:H)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var n,i,a=(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");return r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}}),o=a.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,c=0,u=s.length;c<u;++c)for(n=0,l=s[c];n<o;++n)if((i=a[n]).type===l.type&&i.name===l.name)return l.value}return}for(n=0,s=e?X:W;n<o;++n)this.each(s(a[n],e,r));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return G(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return G(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n,i=t[e],a=0,o=i.length;a<o;++a)(n=i[a])&&(yield n)}};var J={value:()=>{}};function tt(){for(var t,e=0,r=arguments.length,n={};e<r;++e){if(!(t=arguments[e]+"")||t in n||/[\s.]/.test(t))throw Error("illegal type: "+t);n[t]=[]}return new te(n)}function te(t){this._=t}function tr(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=J,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=r&&t.push({name:e,value:r}),t}te.prototype=tt.prototype={constructor:te,on:function(t,e){var r,n=this._,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((r=(t=i[a]).type)&&(r=function(t,e){for(var r,n=0,i=t.length;n<i;++n)if((r=t[n]).name===e)return r.value}(n[r],t.name)))return r;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++a<o;)if(r=(t=i[a]).type)n[r]=tr(n[r],t.name,e);else if(null==e)for(r in n)n[r]=tr(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new te(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,i=Array(r),a=0;a<r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(n=this._[t],a=0,r=n.length;a<r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}};var tn,ti,ta,to,ts,tl,tc,tu,th,tf=0,tp=0,td=0,tg=0,tm=0,ty=0,tb="object"==typeof performance&&performance.now?performance:Date,tx="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tk(){return tm||(tx(tw),tm=tb.now()+ty)}function tw(){tm=0}function t_(){this._call=this._time=this._next=null}function tv(t,e,r){var n=new t_;return n.restart(t,e,r),n}function tM(){tm=(tg=tb.now())+ty,tf=tp=0;try{tk(),++tf;for(var t,e=tu;e;)(t=tm-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tf}finally{tf=0,function(){for(var t,e,r=tu,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:tu=e);th=t,tA(n)}(),tm=0}}function tS(){var t=tb.now(),e=t-tg;e>1e3&&(ty-=e,tg=t)}function tA(t){!tf&&(tp&&(tp=clearTimeout(tp)),t-tm>24?(t<1/0&&(tp=setTimeout(tM,t-tb.now()-ty)),td&&(td=clearInterval(td))):(td||(tg=tb.now(),td=setInterval(tS,1e3)),tf=1,tx(tM)))}function tT(t,e,r){var n=new t_;return e=null==e?0:+e,n.restart(r=>{n.stop(),t(r+e)},e,r),n}t_.prototype=tv.prototype={constructor:t_,restart:function(t,e,r){if("function"!=typeof t)throw TypeError("callback is not a function");r=(null==r?tk():+r)+(null==e?0:+e),this._next||th===this||(th?th._next=this:tu=this,th=this),this._call=t,this._time=r,tA()},stop:function(){this._call&&(this._call=null,this._time=1/0,tA())}};var t$=tt("start","end","cancel","interrupt"),tC=[];function tL(t,e,r,n,i,a){var o=t.__transition;if(o){if(r in o)return}else t.__transition={};!function(t,e,r){var n,i=t.__transition;function a(l){var c,u,h,f;if(1!==r.state)return s();for(c in i)if((f=i[c]).name===r.name){if(3===f.state)return tT(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(tT(function(){3===r.state&&(r.state=4,r.timer.restart(o,r.delay,r.time),o(l))}),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(c=0,r.state=3,n=Array(h=r.tween.length),u=-1;c<h;++c)(f=r.tween[c].value.call(t,t.__data__,r.index,r.group))&&(n[++u]=f);n.length=u+1}}function o(e){for(var i=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(s),r.state=5,1),a=-1,o=n.length;++a<o;)n[a].call(t,i);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),s())}function s(){for(var n in r.state=6,r.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=r,r.timer=tv(function(t){r.state=1,r.timer.restart(a,r.delay,r.time),r.delay<=t&&a(t-r.delay)},0,r.time)}(t,r,{name:e,index:n,group:i,on:t$,tween:tC,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function tO(t,e){var r=tK(t,e);if(r.state>0)throw Error("too late; already scheduled");return r}function tE(t,e){var r=tK(t,e);if(r.state>3)throw Error("too late; already running");return r}function tK(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw Error("transition not found");return r}function tR(t,e){return t*=1,e*=1,function(r){return t*(1-r)+e*r}}var tD=180/Math.PI,tN={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tP(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),t*n<e*r&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*tD,skewX:Math.atan(l)*tD,scaleX:o,scaleY:s}}function tI(t,e,r,n){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s,l,c,u,h=[],f=[];return a=t(a),o=t(o),!function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push("translate(",null,e,null,r);s.push({i:l-4,x:tR(t,i)},{i:l-2,x:tR(n,a)})}else(i||a)&&o.push("translate("+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,h,f),s=a.rotate,l=o.rotate,s!==l?(s-l>180?l+=360:l-s>180&&(s+=360),f.push({i:h.push(i(h)+"rotate(",null,n)-2,x:tR(s,l)})):l&&h.push(i(h)+"rotate("+l+n),c=a.skewX,u=o.skewX,c!==u?f.push({i:h.push(i(h)+"skewX(",null,n)-2,x:tR(c,u)}):u&&h.push(i(h)+"skewX("+u+n),!function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:tR(t,r)},{i:s-2,x:tR(e,n)})}else(1!==r||1!==n)&&a.push(i(a)+"scale("+r+","+n+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,h,f),a=o=null,function(t){for(var e,r=-1,n=f.length;++r<n;)h[(e=f[r]).i]=e.x(t);return h.join("")}}}var tj=tI(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tN:tP(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tU=tI(function(t){return null==t?tN:(tn||(tn=document.createElementNS("http://www.w3.org/2000/svg","g")),tn.setAttribute("transform",t),t=tn.transform.baseVal.consolidate())?tP((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tN},", ",")",")");function tF(t,e,r){var n=t._id;return t.each(function(){var t=tE(this,n);(t.value||(t.value={}))[e]=r.apply(this,arguments)}),function(t){return tK(t,n).value[e]}}function tz(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function tB(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function tY(){}var tH="\\s*([+-]?\\d+)\\s*",tq="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tW="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tX=/^#([0-9a-f]{3,8})$/,tG=RegExp(`^rgb\\(${tH},${tH},${tH}\\)$`),tZ=RegExp(`^rgb\\(${tW},${tW},${tW}\\)$`),tV=RegExp(`^rgba\\(${tH},${tH},${tH},${tq}\\)$`),tQ=RegExp(`^rgba\\(${tW},${tW},${tW},${tq}\\)$`),tJ=RegExp(`^hsl\\(${tq},${tW},${tW}\\)$`),t0=RegExp(`^hsla\\(${tq},${tW},${tW},${tq}\\)$`),t1={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function t2(){return this.rgb().formatHex()}function t3(){return this.rgb().formatRgb()}function t5(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=tX.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?t6(e):3===r?new t7(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?t8(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?t8(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=tG.exec(t))?new t7(e[1],e[2],e[3],1):(e=tZ.exec(t))?new t7(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tV.exec(t))?t8(e[1],e[2],e[3],e[4]):(e=tQ.exec(t))?t8(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tJ.exec(t))?ea(e[1],e[2]/100,e[3]/100,1):(e=t0.exec(t))?ea(e[1],e[2]/100,e[3]/100,e[4]):t1.hasOwnProperty(t)?t6(t1[t]):"transparent"===t?new t7(NaN,NaN,NaN,0):null}function t6(t){return new t7(t>>16&255,t>>8&255,255&t,1)}function t8(t,e,r,n){return n<=0&&(t=e=r=NaN),new t7(t,e,r,n)}function t4(t){return(t instanceof tY||(t=t5(t)),t)?new t7((t=t.rgb()).r,t.g,t.b,t.opacity):new t7}function t9(t,e,r,n){return 1==arguments.length?t4(t):new t7(t,e,r,null==n?1:n)}function t7(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function et(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}`}function ee(){let t=er(this.opacity);return`${1===t?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${1===t?")":`, ${t})`}`}function er(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function en(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ei(t){return((t=en(t))<16?"0":"")+t.toString(16)}function ea(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new es(t,e,r,n)}function eo(t){if(t instanceof es)return new es(t.h,t.s,t.l,t.opacity);if(t instanceof tY||(t=t5(t)),!t)return new es;if(t instanceof es)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(o=e===a?(r-n)/s+(r<n)*6:r===a?(n-e)/s+2:(e-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new es(o,s,l,t.opacity)}function es(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function el(t){return(t=(t||0)%360)<0?t+360:t}function ec(t){return Math.max(0,Math.min(1,t||0))}function eu(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function eh(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}tz(tY,t5,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:t2,formatHex:t2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eo(this).formatHsl()},formatRgb:t3,toString:t3}),tz(t7,t9,tB(tY,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new t7(en(this.r),en(this.g),en(this.b),er(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:et,formatHex:et,formatHex8:function(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}${ei((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ee,toString:ee})),tz(es,function(t,e,r,n){return 1==arguments.length?eo(t):new es(t,e,r,null==n?1:n)},tB(tY,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new es(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new es(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new t7(eu(t>=240?t-240:t+120,i,n),eu(t,i,n),eu(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new es(el(this.h),ec(this.s),ec(this.l),er(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(){let t=er(this.opacity);return`${1===t?"hsl(":"hsla("}${el(this.h)}, ${100*ec(this.s)}%, ${100*ec(this.l)}%${1===t?")":`, ${t})`}`}}));let ef=t=>()=>t;function ep(t,e){return function(r){return t+r*e}}function ed(t,e){var r=e-t;return r?ep(t,r):ef(isNaN(t)?e:t)}let eg=function t(e){var r,n=1==(r=+e)?ed:function(t,e){var n,i,a;return e-t?(n=t,i=e,n=Math.pow(n,a=r),i=Math.pow(i,a)-n,a=1/a,function(t){return Math.pow(n+t*i,a)}):ef(isNaN(t)?e:t)};function i(t,e){var r=n((t=t9(t)).r,(e=t9(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=ed(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function em(t){return function(e){var r,n,i=e.length,a=Array(i),o=Array(i),s=Array(i);for(r=0;r<i;++r)n=t9(e[r]),a[r]=n.r||0,o[r]=n.g||0,s[r]=n.b||0;return a=t(a),o=t(o),s=t(s),n.opacity=1,function(t){return n.r=a(t),n.g=o(t),n.b=s(t),n+""}}}em(function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[n],a=t[n+1],o=n>0?t[n-1]:2*i-a,s=n<e-1?t[n+2]:2*a-i;return eh((r-n/e)*e,o,i,a,s)}}),em(function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),i=t[(n+e-1)%e],a=t[n%e],o=t[(n+1)%e],s=t[(n+2)%e];return eh((r-n/e)*e,i,a,o,s)}});var ey=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eb=RegExp(ey.source,"g");function ex(t,e){var r,n,i,a,o,s=ey.lastIndex=eb.lastIndex=0,l=-1,c=[],u=[];for(t+="",e+="";(i=ey.exec(t))&&(a=eb.exec(e));)(o=a.index)>s&&(o=e.slice(s,o),c[l]?c[l]+=o:c[++l]=o),(i=i[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,u.push({i:l,x:tR(i,a)})),s=eb.lastIndex;return s<e.length&&(o=e.slice(s),c[l]?c[l]+=o:c[++l]=o),c.length<2?u[0]?(r=u[0].x,function(t){return r(t)+""}):(n=e,function(){return n}):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function ek(t,e){var r;return("number"==typeof e?tR:e instanceof t5?eg:(r=t5(e))?(e=r,eg):ex)(t,e)}var ew=Q.prototype.constructor;function e_(t){return function(){this.style.removeProperty(t)}}var ev=0;function eM(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}var eS=Q.prototype;eM.prototype=(function(t){return Q().transition(t)}).prototype={constructor:eM,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=p(t));for(var n=this._groups,i=n.length,a=Array(i),o=0;o<i;++o)for(var s,l,c=n[o],u=c.length,h=a[o]=Array(u),f=0;f<u;++f)(s=c[f])&&(l=t.call(s,s.__data__,f,c))&&("__data__"in s&&(l.__data__=s.__data__),h[f]=l,tL(h[f],e,r,f,h,tK(s,r)));return new eM(a,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=g(t));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var l,c=n[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var f,p=t.call(l,l.__data__,h,c),d=tK(l,r),m=0,y=p.length;m<y;++m)(f=p[m])&&tL(f,e,r,m,p,d);a.push(p),o.push(l)}return new eM(a,o,e,r)},selectChild:eS.selectChild,selectChildren:eS.selectChildren,filter:function(t){"function"!=typeof t&&(t=m(t));for(var e=this._groups,r=e.length,n=Array(r),i=0;i<r;++i)for(var a,o=e[i],s=o.length,l=n[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new eM(n,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,r=t._groups,n=e.length,i=r.length,a=Math.min(n,i),o=Array(n),s=0;s<a;++s)for(var l,c=e[s],u=r[s],h=c.length,f=o[s]=Array(h),p=0;p<h;++p)(l=c[p]||u[p])&&(f[p]=l);for(;s<n;++s)o[s]=e[s];return new eM(o,this._parents,this._name,this._id)},selection:function(){return new ew(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=++ev,n=this._groups,i=n.length,a=0;a<i;++a)for(var o,s=n[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=tK(o,e);tL(o,t,r,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new eM(n,this._parents,t,r)},call:eS.call,nodes:eS.nodes,node:eS.node,size:eS.size,empty:eS.empty,each:eS.each,on:function(t,e){var r,n,i,a,o,s,l=this._id;return arguments.length<2?tK(this.node(),l).on.on(t):this.each((r=l,n=t,i=e,s=(n+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tO:tE,function(){var t=s(this,r),e=t.on;e!==a&&(o=(a=e).copy()).on(n,i),t.on=o}))},attr:function(t,e){var r=L(t),n="transform"===r?tU:ek;return this.attrTween(t,"function"==typeof e?(r.local?function(t,e,r){var n,i,a;return function(){var o,s,l=r(this);return null==l?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===n&&s===i?a:(i=s,a=e(n=o,l))}}:function(t,e,r){var n,i,a;return function(){var o,s,l=r(this);return null==l?void this.removeAttribute(t):(o=this.getAttribute(t))===(s=l+"")?null:o===n&&s===i?a:(i=s,a=e(n=o,l))}})(r,n,tF(this,"attr."+t,e)):null==e?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,e,r){var n,i,a=r+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===n?i:i=e(n=o,r)}}:function(t,e,r){var n,i,a=r+"";return function(){var o=this.getAttribute(t);return o===a?null:o===n?i:i=e(n=o,r)}})(r,n,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();var n=L(t);return this.tween(r,(n.local?function(t,e){var r,n;function i(){var i=e.apply(this,arguments);return i!==n&&(r=(n=i)&&function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}),r}return i._value=e,i}:function(t,e){var r,n;function i(){var i=e.apply(this,arguments);return i!==n&&(r=(n=i)&&function(e){this.setAttribute(t,i.call(this,e))}),r}return i._value=e,i})(n,e))},style:function(t,e,r){var n,i,a,o,s,l,c,u,h,f,p,d,g,m,y,b,x,k,w,_,v,M="transform"==(t+="")?tj:ek;return null==e?this.styleTween(t,(n=t,function(){var t=E(this,n),e=(this.style.removeProperty(n),E(this,n));return t===e?null:t===i&&e===a?o:o=M(i=t,a=e)})).on("end.style."+t,e_(t)):"function"==typeof e?this.styleTween(t,(s=t,l=tF(this,"style."+t,e),function(){var t=E(this,s),e=l(this),r=e+"";return null==e&&(this.style.removeProperty(s),r=e=E(this,s)),t===r?null:t===c&&r===u?h:(u=r,h=M(c=t,e))})).each((f=this._id,x="end."+(b="style."+(p=t)),function(){var t=tE(this,f),e=t.on,r=null==t.value[b]?y||(y=e_(p)):void 0;(e!==d||m!==r)&&(g=(d=e).copy()).on(x,m=r),t.on=g})):this.styleTween(t,(k=t,v=e+"",function(){var t=E(this,k);return t===v?null:t===w?_:_=M(w=t,e)}),r).on("end.style."+t,null)},styleTween:function(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();return this.tween(n,function(t,e,r){var n,i;function a(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&function(e){this.style.setProperty(t,a.call(this,e),r)}),n}return a._value=e,a}(t,e,null==r?"":r))},text:function(t){var e,r;return this.tween("text","function"==typeof t?(e=tF(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(r=null==t?"":t+"",function(){this.textContent=r}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,r;function n(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&function(t){this.textContent=n.call(this,t)}),e}return n._value=t,n}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n,i=tK(this.node(),r).tween,a=0,o=i.length;a<o;++a)if((n=i[a]).name===t)return n.value;return null}return this.each((null==e?function(t,e){var r,n;return function(){var i=tE(this,t),a=i.tween;if(a!==r){n=r=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===e){(n=n.slice()).splice(o,1);break}}i.tween=n}}:function(t,e,r){var n,i;if("function"!=typeof r)throw Error();return function(){var a=tE(this,t),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:e,value:r},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=s;break}l===c&&i.push(s)}a.tween=i}})(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tO(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tO(this,t).delay=e}})(e,t)):tK(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tE(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tE(this,t).duration=e}})(e,t)):tK(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tE(this,t).ease=e}}(e,t)):tK(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var r=t.apply(this,arguments);if("function"!=typeof r)throw Error();tE(this,e).ease=r}))},end:function(){var t,e,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){0==--i&&a()}};r.each(function(){var r=tE(this,n),i=r.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),r.on=e}),0===i&&a()})},[Symbol.iterator]:eS[Symbol.iterator]};var eA={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};Q.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var r,n,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a){if((r=a[i]).name!==e){o=!1;continue}n=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete a[i]}o&&delete t.__transition}}(this,t)})},Q.prototype.transition=function(t){var e,r;t instanceof eM?(e=t._id,t=t._name):(e=++ev,(r=eA).time=tk(),t=null==t?null:t+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o,s=n[a],l=s.length,c=0;c<l;++c)(o=s[c])&&tL(o,t,e,c,s,r||function(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return r}(o,e));return new eM(n,this._parents,t,e)};let{abs:eT,max:e$,min:eC}=Math;function eL(t){return{type:t}}function eO(t,e){if(!isFinite(t)||0===t)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function eE(t){return(t=eO(Math.abs(t)))?t[1]:NaN}["w","e"].map(eL),["n","s"].map(eL),["n","w","e","s","nw","ne","sw","se"].map(eL);var eK=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eR(t){var e;if(!(e=eK.exec(t)))throw Error("invalid format: "+t);return new eD({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function eD(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function eN(t,e){var r=eO(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}eR.prototype=eD.prototype,eD.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let eP={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>eN(100*t,e),r:eN,s:function(t,e){var r=eO(t,e);if(!r)return ti=void 0,t.toPrecision(e);var n=r[0],i=r[1],a=i-(ti=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return a===o?n:a>o?n+Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+Array(1-a).join("0")+eO(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function eI(t){return t}var ej=Array.prototype.map,eU=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function eF(t){var e=0,r=t.children,n=r&&r.length;if(n)for(;--n>=0;)e+=r[n].value;else e=1;t.value=e}function ez(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=eY)):void 0===e&&(e=eB);for(var r,n,i,a,o,s=new eW(t),l=[s];r=l.pop();)if((i=e(r.data))&&(o=(i=Array.from(i)).length))for(r.children=i,a=o-1;a>=0;--a)l.push(n=i[a]=new eW(i[a])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(eq)}function eB(t){return t.children}function eY(t){return Array.isArray(t)?t[1]:null}function eH(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function eq(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function eW(t){this.data=t,this.depth=this.height=0,this.parent=null}function eX(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}to=(ta=function(t){var e,r,n,i=void 0===t.grouping||void 0===t.thousands?eI:(e=ej.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(t.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?eI:(n=ej.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return n[+t]})}),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function f(t,e){var r=(t=eR(t)).fill,n=t.align,f=t.sign,p=t.symbol,d=t.zero,g=t.width,m=t.comma,y=t.precision,b=t.trim,x=t.type;"n"===x?(m=!0,x="g"):eP[x]||(void 0===y&&(y=12),b=!0,x="g"),(d||"0"===r&&"="===n)&&(d=!0,r="0",n="=");var k=(e&&void 0!==e.prefix?e.prefix:"")+("$"===p?a:"#"===p&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),w=("$"===p?o:/[%p]/.test(x)?c:"")+(e&&void 0!==e.suffix?e.suffix:""),_=eP[x],v=/[defgprs%]/.test(x);function M(t){var e,a,o,c=k,p=w;if("c"===x)p=_(t)+p,t="";else{var M=(t*=1)<0||1/t<0;if(t=isNaN(t)?h:_(Math.abs(t),y),b&&(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),M&&0==+t&&"+"!==f&&(M=!1),c=(M?"("===f?f:u:"-"===f||"("===f?"":f)+c,p=("s"!==x||isNaN(t)||void 0===ti?"":eU[8+ti/3])+p+(M&&"("===f?")":""),v){for(e=-1,a=t.length;++e<a;)if(48>(o=t.charCodeAt(e))||o>57){p=(46===o?s+t.slice(e+1):t.slice(e))+p,t=t.slice(0,e);break}}}m&&!d&&(t=i(t,1/0));var S=c.length+t.length+p.length,A=S<g?Array(g-S+1).join(r):"";switch(m&&d&&(t=i(A+t,A.length?g-p.length:1/0),A=""),n){case"<":t=c+t+p+A;break;case"=":t=c+A+t+p;break;case"^":t=A.slice(0,S=A.length>>1)+c+t+p+A.slice(S);break;default:t=A+c+t+p}return l(t)}return y=void 0===y?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,e){var r=3*Math.max(-8,Math.min(8,Math.floor(eE(e)/3))),n=Math.pow(10,-r),i=f(((t=eR(t)).type="f",t),{suffix:eU[8+r/3]});return function(t){return i(n*t)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,ts=ta.formatPrefix,eW.prototype=ez.prototype={constructor:eW,count:function(){return this.eachAfter(eF)},each:function(t,e){let r=-1;for(let n of this)t.call(e,n,++r,this);return this},eachAfter:function(t,e){for(var r,n,i,a=this,o=[a],s=[],l=-1;a=o.pop();)if(s.push(a),r=a.children)for(n=0,i=r.length;n<i;++n)o.push(r[n]);for(;a=s.pop();)t.call(e,a,++l,this);return this},eachBefore:function(t,e){for(var r,n,i=this,a=[i],o=-1;i=a.pop();)if(t.call(e,i,++o,this),r=i.children)for(n=r.length-1;n>=0;--n)a.push(r[n]);return this},find:function(t,e){let r=-1;for(let n of this)if(t.call(e,n,++r,this))return n},sum:function(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,n=e.children,i=n&&n.length;--i>=0;)r+=n[i].value;e.value=r})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;for(t=r.pop(),e=n.pop();t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)n.push(e=e.parent);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e},copy:function(){return ez(this).eachBefore(eH)},[Symbol.iterator]:function*(){var t,e,r,n,i=this,a=[i];do for(t=a.reverse(),a=[];i=t.pop();)if(yield i,e=i.children)for(r=0,n=e.length;r<n;++r)a.push(e[r]);while(a.length)}};let eG=function t(e){function r(t,r,n,i,a){!function(t,e,r,n,i,a){for(var o,s,l,c,u,h,f,p,d,g,m,y=[],b=e.children,x=0,k=0,w=b.length,_=e.value;x<w;){l=i-r,c=a-n;do u=b[k++].value;while(!u&&k<w);for(h=f=u,d=Math.max(f/(m=u*u*(g=Math.max(c/l,l/c)/(_*t))),m/h);k<w;++k){if(u+=s=b[k].value,s<h&&(h=s),s>f&&(f=s),(p=Math.max(f/(m=u*u*g),m/h))>d){u-=s;break}d=p}y.push(o={value:u,dice:l<c,children:b.slice(x,k)}),o.dice?function(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&&(n-e)/t.value;++s<l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}(o,r,n,i,_?n+=c*u/_:a):function(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&&(i-r)/t.value;++s<l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}(o,r,n,_?r+=l*u/_:i,a),_-=u,x=k}}(e,t,r,n,i,a)}return r.ratio=function(e){return t((e*=1)>1?e:1)},r}((1+Math.sqrt(5))/2);function eZ(){return 0}function eV(t){return function(){return t}}function eQ(){var t=eG,e=!1,r=1,n=1,i=[0],a=eZ,o=eZ,s=eZ,l=eZ,c=eZ;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(h),i=[0],e&&t.eachBefore(eX),t}function h(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,h=e.x1-r,f=e.y1-r;h<n&&(n=h=(n+h)/2),f<u&&(u=f=(u+f)/2),e.x0=n,e.y0=u,e.x1=h,e.y1=f,e.children&&(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,h-=s(e)-r,f-=l(e)-r,h<n&&(n=h=(n+h)/2),f<u&&(u=f=(u+f)/2),t(e,n,u,h,f))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=function(t){if("function"!=typeof t)throw Error();return t}(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a="function"==typeof t?t:eV(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:eV(+t),u):o},u.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:eV(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:eV(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c="function"==typeof t?t:eV(+t),u):c},u}let eJ=Math.PI/180,e0=180/Math.PI,e1=4/29,e2=6/29,e3=6/29*3*(6/29),e5=6/29*(6/29)*(6/29);function e6(t){if(t instanceof e8)return new e8(t.l,t.a,t.b,t.opacity);if(t instanceof rr)return rn(t);t instanceof t7||(t=t4(t));var e,r,n=rt(t.r),i=rt(t.g),a=rt(t.b),o=e4((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&&i===a?e=r=o:(e=e4((.4360747*n+.3850649*i+.1430804*a)/.96422),r=e4((.0139322*n+.0971045*i+.7141733*a)/.82521)),new e8(116*o-16,500*(e-o),200*(o-r),t.opacity)}function e8(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function e4(t){return t>e5?Math.pow(t,1/3):t/e3+e1}function e9(t){return t>e2?t*t*t:e3*(t-e1)}function e7(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function re(t,e,r,n){return 1==arguments.length?function(t){if(t instanceof rr)return new rr(t.h,t.c,t.l,t.opacity);if(t instanceof e8||(t=e6(t)),0===t.a&&0===t.b)return new rr(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*e0;return new rr(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new rr(t,e,r,null==n?1:n)}function rr(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function rn(t){if(isNaN(t.h))return new e8(t.l,0,0,t.opacity);var e=t.h*eJ;return new e8(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function ri(t){return function(e,r){var n=t((e=re(e)).h,(r=re(r)).h),i=ed(e.c,r.c),a=ed(e.l,r.l),o=ed(e.opacity,r.opacity);return function(t){return e.h=n(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}tz(e8,function(t,e,r,n){return 1==arguments.length?e6(t):new e8(t,e,r,null==n?1:n)},tB(tY,{brighter(t){return new e8(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new e8(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=.96422*e9(e),new t7(e7(3.1338561*e-1.6168667*(t=+e9(t))-.4906146*(r=.82521*e9(r))),e7(-.9787684*e+1.9161415*t+.033454*r),e7(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),tz(rr,re,tB(tY,{brighter(t){return new rr(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new rr(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return rn(this).rgb()}}));let ra=ri(function(t,e){var r=e-t;return r?ep(t,r>180||r<-180?r-360*Math.round(r/360):r):ef(isNaN(t)?e:t)});function ro(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}ri(ed);class rs extends Map{constructor(t,e=rc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(rl(this,t))}has(t){return super.has(rl(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function rl({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function rc(t){return null!==t&&"object"==typeof t?t.valueOf():t}let ru=Symbol("implicit");function rh(){var t=new rs,e=[],r=[],n=ru;function i(i){let a=t.get(i);if(void 0===a){if(n!==ru)return n;t.set(i,a=e.push(i)-1)}return r[a%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();for(let n of(e=[],t=new rs,r))t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return rh(e,r).unknown(n)},ro.apply(i,arguments),i}let rf=Math.sqrt(50),rp=Math.sqrt(10),rd=Math.sqrt(2);function rg(t,e,r){let n,i,a,o=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(o)),l=o/Math.pow(10,s),c=l>=rf?10:l>=rp?5:l>=rd?2:1;return(s<0?(n=Math.round(t*(a=Math.pow(10,-s)/c)),i=Math.round(e*a),n/a<t&&++n,i/a>e&&--i,a=-a):(n=Math.round(t/(a=Math.pow(10,s)*c)),i=Math.round(e/a),n*a<t&&++n,i*a>e&&--i),i<n&&.5<=r&&r<2)?rg(t,e,2*r):[n,i,a]}function rm(t,e,r){return rg(t*=1,e*=1,r*=1)[2]}function ry(t,e,r){e*=1,t*=1,r*=1;let n=e<t,i=n?rm(e,t,r):rm(t,e,r);return(n?-1:1)*(i<0?-(1/i):i)}function rb(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rx(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rk(t){let e,r,n;function i(t,n,a=0,o=t.length){if(a<o){if(0!==e(n,n))return o;do{let e=a+o>>>1;0>r(t[e],n)?a=e+1:o=e}while(a<o)}return a}return 2!==t.length?(e=rb,r=(e,r)=>rb(t(e),r),n=(e,r)=>t(e)-r):(e=t===rb||t===rx?t:rw,r=t,n=t),{left:i,center:function(t,e,r=0,a=t.length){let o=i(t,e,r,a-1);return o>r&&n(t[o-1],e)>-n(t[o],e)?o-1:o},right:function(t,n,i=0,a=t.length){if(i<a){if(0!==e(n,n))return a;do{let e=i+a>>>1;0>=r(t[e],n)?i=e+1:a=e}while(i<a)}return i}}}function rw(){return 0}let r_=rk(rb),rv=r_.right;r_.left,rk(function(t){return null===t?NaN:+t}).center;function rM(t,e){return t*=1,e*=1,function(r){return Math.round(t*(1-r)+e*r)}}function rS(t){return+t}var rA=[0,1];function rT(t){return t}function r$(t,e){var r;return(e-=t*=1)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r})}function rC(t,e,r){var n=t[0],i=t[1],a=e[0],o=e[1];return i<n?(n=r$(i,n),a=r(o,a)):(n=r$(n,i),a=r(a,o)),function(t){return a(n(t))}}function rL(t,e,r){var n=Math.min(t.length,e.length)-1,i=Array(n),a=Array(n),o=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<n;)i[o]=r$(t[o],t[o+1]),a[o]=r(e[o],e[o+1]);return function(e){var r=rv(t,e,1,n)-1;return a[r](i[r](e))}}function rO(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function rE(){return(function(){var t,e,r,n,i,a,o=rA,s=rA,l=function t(e,r){var n,i,a=typeof r;return null==r||"boolean"===a?ef(r):("number"===a?tR:"string"===a?(i=t5(r))?(r=i,eg):ex:r instanceof t5?eg:r instanceof Date?function(t,e){var r=new Date;return t*=1,e*=1,function(n){return r.setTime(t*(1-n)+e*n),r}}:!ArrayBuffer.isView(n=r)||n instanceof DataView?Array.isArray(r)?function(e,r){var n,i=r?r.length:0,a=e?Math.min(i,e.length):0,o=Array(a),s=Array(i);for(n=0;n<a;++n)o[n]=t(e[n],r[n]);for(;n<i;++n)s[n]=r[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?function(e,r){var n,i={},a={};for(n in(null===e||"object"!=typeof e)&&(e={}),(null===r||"object"!=typeof r)&&(r={}),r)n in e?i[n]=t(e[n],r[n]):a[n]=r[n];return function(t){for(n in i)a[n]=i[n](t);return a}}:tR:function(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r<n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}})(e,r)},c=rT;function u(){var t,e,r,l=Math.min(o.length,s.length);return c!==rT&&(t=o[0],e=o[l-1],t>e&&(r=t,t=e,e=r),c=function(r){return Math.max(t,Math.min(e,r))}),n=l>2?rL:rC,i=a=null,h}function h(e){return null==e||isNaN(e*=1)?r:(i||(i=n(o.map(t),s,l)))(t(c(e)))}return h.invert=function(r){return c(e((a||(a=n(s,o.map(t),tR)))(r)))},h.domain=function(t){return arguments.length?(o=Array.from(t,rS),u()):o.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=rM,u()},h.clamp=function(t){return arguments.length?(c=!!t||rT,u()):c!==rT},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(r=t,h):r},function(r,n){return t=r,e=n,u()}})()(rT,rT)}let rK=new Date,rR=new Date;function rD(t,e,r,n){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{let e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,a)=>{let o,s=[];if(r=i.ceil(r),a=null==a?1:Math.floor(a),!(r<n)||!(a>0))return s;do s.push(o=new Date(+r)),e(r,a),t(r);while(o<r&&r<n);return s},i.filter=r=>rD(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}),r&&(i.count=(e,n)=>(rK.setTime(+e),rR.setTime(+n),t(rK),t(rR),Math.floor(r(rK,rR))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let rN=rD(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);rN.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?rD(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):rN:null,rN.range;let rP=rD(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());rP.range;let rI=rD(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());rI.range;let rj=rD(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());rj.range;let rU=rD(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());rU.range;let rF=rD(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());rF.range;let rz=rD(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);rz.range;let rB=rD(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);rB.range;let rY=rD(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function rH(t){return rD(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}rY.range;let rq=rH(0),rW=rH(1),rX=rH(2),rG=rH(3),rZ=rH(4),rV=rH(5),rQ=rH(6);function rJ(t){return rD(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}rq.range,rW.range,rX.range,rG.range,rZ.range,rV.range,rQ.range;let r0=rJ(0),r1=rJ(1),r2=rJ(2),r3=rJ(3),r5=rJ(4),r6=rJ(5),r8=rJ(6);r0.range,r1.range,r2.range,r3.range,r5.range,r6.range,r8.range;let r4=rD(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());r4.range;let r9=rD(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());r9.range;let r7=rD(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());r7.every=t=>isFinite(t=Math.floor(t))&&t>0?rD(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,r7.range;let nt=rD(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function ne(t,e,r,n,i,a){let o=[[rP,1,1e3],[rP,5,5e3],[rP,15,15e3],[rP,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,r,n){let i=Math.abs(r-e)/n,a=rk(([,,t])=>t).right(o,i);if(a===o.length)return t.every(ry(e/31536e6,r/31536e6,n));if(0===a)return rN.every(Math.max(ry(e,r,n),1));let[s,l]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(l)}return[function(t,e,r){let n=e<t;n&&([t,e]=[e,t]);let i=r&&"function"==typeof r.range?r:s(t,e,r),a=i?i.range(t,+e+1):[];return n?a.reverse():a},s]}nt.every=t=>isFinite(t=Math.floor(t))&&t>0?rD(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,nt.range;let[nr,nn]=ne(nt,r9,r0,rY,rF,rj),[ni,na]=ne(r7,r4,rq,rz,rU,rI);function no(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ns(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function nl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var nc={"-":"",_:" ",0:"0"},nu=/^\s*\d+/,nh=/^%/,nf=/[\\^$*+?|[\]().{}]/g;function np(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a<r?Array(r-a+1).join(e)+i:i)}function nd(t){return t.replace(nf,"\\$&")}function ng(t){return RegExp("^(?:"+t.map(nd).join("|")+")","i")}function nm(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function ny(t,e,r){var n=nu.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function nb(t,e,r){var n=nu.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function nx(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function nk(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function nw(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function n_(t,e,r){var n=nu.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function nv(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nM(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function nS(t,e,r){var n=nu.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function nA(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function nT(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function n$(t,e,r){var n=nu.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function nC(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function nL(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function nO(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nE(t,e,r){var n=nu.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function nK(t,e,r){var n=nu.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function nR(t,e,r){var n=nh.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function nD(t,e,r){var n=nu.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function nN(t,e,r){var n=nu.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function nP(t,e){return np(t.getDate(),e,2)}function nI(t,e){return np(t.getHours(),e,2)}function nj(t,e){return np(t.getHours()%12||12,e,2)}function nU(t,e){return np(1+rz.count(r7(t),t),e,3)}function nF(t,e){return np(t.getMilliseconds(),e,3)}function nz(t,e){return nF(t,e)+"000"}function nB(t,e){return np(t.getMonth()+1,e,2)}function nY(t,e){return np(t.getMinutes(),e,2)}function nH(t,e){return np(t.getSeconds(),e,2)}function nq(t){var e=t.getDay();return 0===e?7:e}function nW(t,e){return np(rq.count(r7(t)-1,t),e,2)}function nX(t){var e=t.getDay();return e>=4||0===e?rZ(t):rZ.ceil(t)}function nG(t,e){return t=nX(t),np(rZ.count(r7(t),t)+(4===r7(t).getDay()),e,2)}function nZ(t){return t.getDay()}function nV(t,e){return np(rW.count(r7(t)-1,t),e,2)}function nQ(t,e){return np(t.getFullYear()%100,e,2)}function nJ(t,e){return np((t=nX(t)).getFullYear()%100,e,2)}function n0(t,e){return np(t.getFullYear()%1e4,e,4)}function n1(t,e){var r=t.getDay();return np((t=r>=4||0===r?rZ(t):rZ.ceil(t)).getFullYear()%1e4,e,4)}function n2(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+np(e/60|0,"0",2)+np(e%60,"0",2)}function n3(t,e){return np(t.getUTCDate(),e,2)}function n5(t,e){return np(t.getUTCHours(),e,2)}function n6(t,e){return np(t.getUTCHours()%12||12,e,2)}function n8(t,e){return np(1+rB.count(nt(t),t),e,3)}function n4(t,e){return np(t.getUTCMilliseconds(),e,3)}function n9(t,e){return n4(t,e)+"000"}function n7(t,e){return np(t.getUTCMonth()+1,e,2)}function it(t,e){return np(t.getUTCMinutes(),e,2)}function ie(t,e){return np(t.getUTCSeconds(),e,2)}function ir(t){var e=t.getUTCDay();return 0===e?7:e}function ii(t,e){return np(r0.count(nt(t)-1,t),e,2)}function ia(t){var e=t.getUTCDay();return e>=4||0===e?r5(t):r5.ceil(t)}function io(t,e){return t=ia(t),np(r5.count(nt(t),t)+(4===nt(t).getUTCDay()),e,2)}function is(t){return t.getUTCDay()}function il(t,e){return np(r1.count(nt(t)-1,t),e,2)}function ic(t,e){return np(t.getUTCFullYear()%100,e,2)}function iu(t,e){return np((t=ia(t)).getUTCFullYear()%100,e,2)}function ih(t,e){return np(t.getUTCFullYear()%1e4,e,4)}function ip(t,e){var r=t.getUTCDay();return np((t=r>=4||0===r?r5(t):r5.ceil(t)).getUTCFullYear()%1e4,e,4)}function id(){return"+0000"}function ig(){return"%"}function im(t){return+t}function iy(t){return Math.floor(t/1e3)}function ib(t){return new Date(t)}function ix(t){return t instanceof Date?+t:+new Date(+t)}function ik(){return ro.apply((function t(e,r,n,i,a,o,s,l,c,u){var h=rE(),f=h.invert,p=h.domain,d=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),x=u("%b %d"),k=u("%B"),w=u("%Y");function _(t){return(c(t)<t?d:l(t)<t?g:s(t)<t?m:o(t)<t?y:i(t)<t?a(t)<t?b:x:n(t)<t?k:w)(t)}return h.invert=function(t){return new Date(f(t))},h.domain=function(t){return arguments.length?p(Array.from(t,ix)):p().map(ib)},h.ticks=function(t){var r=p();return e(r[0],r[r.length-1],null==t?10:t)},h.tickFormat=function(t,e){return null==e?_:u(e)},h.nice=function(t){var e,n,i,a,o,s,l,c=p();return t&&"function"==typeof t.range||(t=r(c[0],c[c.length-1],null==t?10:t)),t?p((e=c,n=t,e=e.slice(),a=0,o=e.length-1,s=e[a],(l=e[o])<s&&(i=a,a=o,o=i,i=s,s=l,l=i),e[a]=n.floor(s),e[o]=n.ceil(l),e)):h},h.copy=function(){return rO(h,t(e,r,n,i,a,o,s,l,c,u))},h})(ni,na,r7,r4,rq,rz,rU,rI,rP,tc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}tc=(tl=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,l=t.shortMonths,c=ng(i),u=nm(i),h=ng(a),f=nm(a),p=ng(o),d=nm(o),g=ng(s),m=nm(s),y=ng(l),b=nm(l),x={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:nP,e:nP,f:nz,g:nJ,G:n1,H:nI,I:nj,j:nU,L:nF,m:nB,M:nY,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:im,s:iy,S:nH,u:nq,U:nW,V:nG,w:nZ,W:nV,x:null,X:null,y:nQ,Y:n0,Z:n2,"%":ig},k={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:n3,e:n3,f:n9,g:iu,G:ip,H:n5,I:n6,j:n8,L:n4,m:n7,M:it,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:im,s:iy,S:ie,u:ir,U:ii,V:io,w:is,W:il,x:null,X:null,y:ic,Y:ih,Z:id,"%":ig},w={a:function(t,e,r){var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=f.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=g.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return M(t,e,r,n)},d:nT,e:nT,f:nK,g:nv,G:n_,H:nC,I:nC,j:n$,L:nE,m:nA,M:nL,p:function(t,e,r){var n=c.exec(e.slice(r));return n?(t.p=u.get(n[0].toLowerCase()),r+n[0].length):-1},q:nS,Q:nD,s:nN,S:nO,u:nb,U:nx,V:nk,w:ny,W:nw,x:function(t,e,n){return M(t,r,e,n)},X:function(t,e,r){return M(t,n,e,r)},y:nv,Y:n_,Z:nM,"%":nR};function _(t,e){return function(r){var n,i,a,o=[],s=-1,l=0,c=t.length;for(r instanceof Date||(r=new Date(+r));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(i=nc[n=t.charAt(++s)])?n=t.charAt(++s):i="e"===n?" ":"0",(a=e[n])&&(n=a(r,i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join("")}}function v(t,e){return function(r){var n,i,a=nl(1900,void 0,1);if(M(a,t,r+="",0)!=r.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!e||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(n=(i=(n=ns(nl(a.y,0,1))).getUTCDay())>4||0===i?r1.ceil(n):r1(n),n=rB.offset(n,(a.V-1)*7),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(n=(i=(n=no(nl(a.y,0,1))).getDay())>4||0===i?rW.ceil(n):rW(n),n=rz.offset(n,(a.V-1)*7),a.y=n.getFullYear(),a.m=n.getMonth(),a.d=n.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:+("W"in a)),i="Z"in a?ns(nl(a.y,0,1)).getUTCDay():no(nl(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ns(a)):no(a)}}function M(t,e,r,n){for(var i,a,o=0,s=e.length,l=r.length;o<s;){if(n>=l)return -1;if(37===(i=e.charCodeAt(o++))){if(!(a=w[(i=e.charAt(o++))in nc?e.charAt(o++):i])||(n=a(t,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return x.x=_(r,x),x.X=_(n,x),x.c=_(e,x),k.x=_(r,k),k.X=_(n,k),k.c=_(e,k),{format:function(t){var e=_(t+="",x);return e.toString=function(){return t},e},parse:function(t){var e=v(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",k);return e.toString=function(){return t},e},utcParse:function(t){var e=v(t+="",!0);return e.toString=function(){return t},e}}}({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"]})).format,tl.parse,tl.utcFormat,tl.utcParse;let iw=function(t){for(var e=t.length/6|0,r=Array(e),n=0;n<e;)r[n]="#"+t.slice(6*n,6*++n);return r}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function i_(t){return"string"==typeof t?new V([[document.querySelector(t)]],[document.documentElement]):new V([[t]],Z)}function iv(t){return function(){return t}}let iM=Math.abs,iS=Math.atan2,iA=Math.cos,iT=Math.max,i$=Math.min,iC=Math.sin,iL=Math.sqrt,iO=Math.PI,iE=iO/2,iK=2*iO;function iR(t){return t>=1?iE:t<=-1?-iE:Math.asin(t)}let iD=Math.PI,iN=2*iD,iP=iN-1e-6;function iI(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class ij{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?iI:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return iI;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,i,a){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+a}`}arcTo(t,e,r,n,i){if(t*=1,e*=1,r*=1,n*=1,(i*=1)<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=r-t,l=n-e,c=a-t,u=o-e,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>1e-6)if(Math.abs(u*s-l*c)>1e-6&&i){let f=r-a,p=n-o,d=s*s+l*l,g=Math.sqrt(d),m=Math.sqrt(h),y=i*Math.tan((iD-Math.acos((d+h-(f*f+p*p))/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>1e-6&&this._append`L${t+b*c},${e+b*u}`,this._append`A${i},${i},0,0,${+(u*f>c*p)},${this._x1=t+x*s},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,n,i,a){if(t*=1,e*=1,r*=1,a=!!a,r<0)throw Error(`negative radius: ${r}`);let o=r*Math.cos(n),s=r*Math.sin(n),l=t+o,c=e+s,u=1^a,h=a?n-i:i-n;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,r&&(h<0&&(h=h%iN+iN),h>iP?this._append`A${r},${r},0,1,${u},${t-o},${e-s}A${r},${r},0,1,${u},${this._x1=l},${this._y1=c}`:h>1e-6&&this._append`A${r},${r},0,${+(h>=iD)},${u},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function iU(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new ij(e)}function iF(t){return t.innerRadius}function iz(t){return t.outerRadius}function iB(t){return t.startAngle}function iY(t){return t.endAngle}function iH(t){return t&&t.padAngle}function iq(t,e,r,n,i,a,o){var s=t-r,l=e-n,c=(o?a:-a)/iL(s*s+l*l),u=c*l,h=-c*s,f=t+u,p=e+h,d=r+u,g=n+h,m=(f+d)/2,y=(p+g)/2,b=d-f,x=g-p,k=b*b+x*x,w=i-a,_=f*g-d*p,v=(x<0?-1:1)*iL(iT(0,w*w*k-_*_)),M=(_*x-b*v)/k,S=(-_*b-x*v)/k,A=(_*x+b*v)/k,T=(-_*b+x*v)/k,$=M-m,C=S-y,L=A-m,O=T-y;return $*$+C*C>L*L+O*O&&(M=A,S=T),{cx:M,cy:S,x01:-u,y01:-h,x11:M*(i/w-1),y11:S*(i/w-1)}}function iW(){var t=iF,e=iz,r=iv(0),n=null,i=iB,a=iY,o=iH,s=null,l=iU(c);function c(){var c,u,h=+t.apply(this,arguments),f=+e.apply(this,arguments),p=i.apply(this,arguments)-iE,d=a.apply(this,arguments)-iE,g=iM(d-p),m=d>p;if(s||(s=c=l()),f<h&&(u=f,f=h,h=u),f>1e-12)if(g>iK-1e-12)s.moveTo(f*iA(p),f*iC(p)),s.arc(0,0,f,p,d,!m),h>1e-12&&(s.moveTo(h*iA(d),h*iC(d)),s.arc(0,0,h,d,p,m));else{var y,b,x=p,k=d,w=p,_=d,v=g,M=g,S=o.apply(this,arguments)/2,A=S>1e-12&&(n?+n.apply(this,arguments):iL(h*h+f*f)),T=i$(iM(f-h)/2,+r.apply(this,arguments)),$=T,C=T;if(A>1e-12){var L=iR(A/h*iC(S)),O=iR(A/f*iC(S));(v-=2*L)>1e-12?(L*=m?1:-1,w+=L,_-=L):(v=0,w=_=(p+d)/2),(M-=2*O)>1e-12?(O*=m?1:-1,x+=O,k-=O):(M=0,x=k=(p+d)/2)}var E=f*iA(x),K=f*iC(x),R=h*iA(_),D=h*iC(_);if(T>1e-12){var N,P=f*iA(k),I=f*iC(k),j=h*iA(w),U=h*iC(w);if(g<iO)if(N=function(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,h=s-a,f=h*l-u*c;if(!(f*f<1e-12))return f=(u*(e-a)-h*(t-i))/f,[t+f*l,e+f*c]}(E,K,j,U,P,I,R,D)){var F,z=E-N[0],B=K-N[1],Y=P-N[0],H=I-N[1],q=1/iC(((F=(z*Y+B*H)/(iL(z*z+B*B)*iL(Y*Y+H*H)))>1?0:F<-1?iO:Math.acos(F))/2),W=iL(N[0]*N[0]+N[1]*N[1]);$=i$(T,(h-W)/(q-1)),C=i$(T,(f-W)/(q+1))}else $=C=0}M>1e-12?C>1e-12?(y=iq(j,U,E,K,f,C,m),b=iq(P,I,R,D,f,C,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),C<T?s.arc(y.cx,y.cy,C,iS(y.y01,y.x01),iS(b.y01,b.x01),!m):(s.arc(y.cx,y.cy,C,iS(y.y01,y.x01),iS(y.y11,y.x11),!m),s.arc(0,0,f,iS(y.cy+y.y11,y.cx+y.x11),iS(b.cy+b.y11,b.cx+b.x11),!m),s.arc(b.cx,b.cy,C,iS(b.y11,b.x11),iS(b.y01,b.x01),!m))):(s.moveTo(E,K),s.arc(0,0,f,x,k,!m)):s.moveTo(E,K),h>1e-12&&v>1e-12?$>1e-12?(y=iq(R,D,P,I,h,-$,m),b=iq(E,K,j,U,h,-$,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),$<T?s.arc(y.cx,y.cy,$,iS(y.y01,y.x01),iS(b.y01,b.x01),!m):(s.arc(y.cx,y.cy,$,iS(y.y01,y.x01),iS(y.y11,y.x11),!m),s.arc(0,0,h,iS(y.cy+y.y11,y.cx+y.x11),iS(b.cy+b.y11,b.cx+b.x11),m),s.arc(b.cx,b.cy,$,iS(b.y11,b.x11),iS(b.y01,b.x01),!m))):s.arc(0,0,h,_,w,m):s.lineTo(R,D)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-iO/2;return[iA(n)*r,iC(n)*r]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:iv(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:iv(+t),c):e},c.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:iv(+t),c):r},c.padRadius=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:iv(+t),c):n},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:iv(+t),c):i},c.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:iv(+t),c):a},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:iv(+t),c):o},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}function iX(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function iG(t){this._context=t}function iZ(t){return new iG(t)}function iV(t){return t[0]}function iQ(t){return t[1]}function iJ(t,e){var r=iv(!0),n=null,i=iZ,a=null,o=iU(s);function s(s){var l,c,u,h=(s=iX(s)).length,f=!1;for(null==n&&(a=i(u=o())),l=0;l<=h;++l)!(l<h&&r(c=s[l],l,s))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(c,l,s),+e(c,l,s));if(u)return a=null,u+""||null}return t="function"==typeof t?t:void 0===t?iV:iv(t),e="function"==typeof e?e:void 0===e?iQ:iv(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:iv(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:iv(+t),s):e},s.defined=function(t){return arguments.length?(r="function"==typeof t?t:iv(!!t),s):r},s.curve=function(t){return arguments.length?(i=t,null!=n&&(a=i(n)),s):i},s.context=function(t){return arguments.length?(null==t?n=a=null:a=i(n=t),s):n},s}function i0(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function i1(t){return t}function i2(){var t=i1,e=i0,r=null,n=iv(0),i=iv(iK),a=iv(0);function o(o){var s,l,c,u,h,f=(o=iX(o)).length,p=0,d=Array(f),g=Array(f),m=+n.apply(this,arguments),y=Math.min(iK,Math.max(-iK,i.apply(this,arguments)-m)),b=Math.min(Math.abs(y)/f,a.apply(this,arguments)),x=b*(y<0?-1:1);for(s=0;s<f;++s)(h=g[d[s]=s]=+t(o[s],s,o))>0&&(p+=h);for(null!=e?d.sort(function(t,r){return e(g[t],g[r])}):null!=r&&d.sort(function(t,e){return r(o[t],o[e])}),s=0,c=p?(y-f*x)/p:0;s<f;++s,m=u)u=m+((h=g[l=d[s]])>0?h*c:0)+x,g[l]={data:o[l],index:s,value:h,startAngle:m,endAngle:u,padAngle:b};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:iv(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,r=null,o):e},o.sort=function(t){return arguments.length?(r=t,e=null,o):r},o.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:iv(+t),o):n},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:iv(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:iv(+t),o):a},o}function i3(){}function i5(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function i6(t){this._context=t}function i8(t){return new i6(t)}function i4(t){this._context=t}function i9(t){return new i4(t)}function i7(t){this._context=t}function at(t){return new i7(t)}ij.prototype,Array.prototype.slice,iG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},i6.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:i5(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:i5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},i4.prototype={areaStart:i3,areaEnd:i3,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)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:i5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},i7.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,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+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:i5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class ae{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function ar(t){return new ae(t,!0)}function an(t){return new ae(t,!1)}function ai(t,e){this._basis=new i6(t),this._beta=e}ai.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};let aa=function t(e){function r(t){return 1===e?new i6(t):new ai(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function ao(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function as(t,e){this._context=t,this._k=(1-e)/6}as.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:ao(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ao(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let al=function t(e){function r(t){return new as(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ac(t,e){this._context=t,this._k=(1-e)/6}ac.prototype={areaStart:i3,areaEnd:i3,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)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ao(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let au=function t(e){function r(t){return new ac(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ah(t,e){this._context=t,this._k=(1-e)/6}ah.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,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:ao(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let af=function t(e){function r(t){return new ah(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ap(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function ad(t,e){this._context=t,this._alpha=e}ad.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)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ap(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ag=function t(e){function r(t){return e?new ad(t,e):new as(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function am(t,e){this._context=t,this._alpha=e}am.prototype={areaStart:i3,areaEnd:i3,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)}},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ap(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ay=function t(e){function r(t){return e?new am(t,e):new ac(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ab(t,e){this._context=t,this._alpha=e}ab.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:ap(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ax=function t(e){function r(t){return e?new ab(t,e):new ah(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ak(t){this._context=t}function aw(t){return new ak(t)}function a_(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*n)/(n+i)))||0}function av(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function aM(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function aS(t){this._context=t}function aA(t){this._context=new aT(t)}function aT(t){this._context=t}function a$(t){return new aS(t)}function aC(t){return new aA(t)}function aL(t){this._context=t}function aO(t){var e,r,n=t.length-1,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(e=0,a[n-1]=(t[n]+i[n-1])/2;e<n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function aE(t){return new aL(t)}function aK(t,e){this._context=t,this._t=e}function aR(t){return new aK(t,.5)}function aD(t){return new aK(t,0)}function aN(t){return new aK(t,1)}function aP(t,e,r){this.k=t,this.x=e,this.y=r}ak.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},aS.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:aM(this,this._t0,av(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e*=1,(t*=1)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,aM(this,av(this,r=a_(this,t,e)),r);break;default:aM(this,this._t0,r=a_(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(aA.prototype=Object.create(aS.prototype)).point=function(t,e){aS.prototype.point.call(this,e,t)},aT.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},aL.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=aO(t),i=aO(e),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},aK.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},aP.prototype={constructor:aP,scale:function(t){return 1===t?this:new aP(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new aP(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new aP(1,0,0);aP.prototype},62079:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(96430),i=r(91117);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(a.re);if(!e)return;let r=e[1],i=parseInt(r,16),o=r.length,s=o%4==0,l=o>4,c=l?1:17,u=l?8:4,h=s?0:-1,f=l?255:15;return n.A.set({r:(i>>u*(h+3)&f)*c,g:(i>>u*(h+2)&f)*c,b:(i>>u*(h+1)&f)*c,a:s?(i&f)*c/255:1},t)},stringify:t=>{let{r:e,g:r,b:n,a}=t;return a<1?`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}${i.Y[Math.round(255*a)]}`:`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}`}};var o=r(19519);let s={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:t=>{let e=t.match(s.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return o.A.channel.clamp.h(.9*parseFloat(t));case"rad":return o.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return o.A.channel.clamp.h(360*parseFloat(t))}}return o.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(s.re);if(!r)return;let[,i,a,l,c,u]=r;return n.A.set({h:s._hue2deg(i),s:o.A.channel.clamp.s(parseFloat(a)),l:o.A.channel.clamp.l(parseFloat(l)),a:c?o.A.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{let{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%, ${i})`:`hsl(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%)`}},l={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:t=>{t=t.toLowerCase();let e=l.colors[t];if(e)return a.parse(e)},stringify:t=>{let e=a.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},c={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:t=>{let e=t.charCodeAt(0);if(114!==e&&82!==e)return;let r=t.match(c.re);if(!r)return;let[,i,a,s,l,u,h,f,p]=r;return n.A.set({r:o.A.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:o.A.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:o.A.channel.clamp.b(h?2.55*parseFloat(u):parseFloat(u)),a:f?o.A.channel.clamp.a(p?parseFloat(f)/100:parseFloat(f)):1},t)},stringify:t=>{let{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)}, ${o.A.lang.round(i)})`:`rgb(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)})`}},u={format:{keyword:l,hex:a,rgb:c,rgba:c,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;let e=a.parse(t)||c.parse(t)||s.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(i.Z.HSL)||void 0===t.data.r?s.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?a.stringify(t):c.stringify(t)}},62831:(t,e,r)=>{"use strict";r.d(e,{D:()=>o});var n=r(95631),i=r(14528),a=r(60830),o=(0,i.K)(t=>{let{securityLevel:e}=(0,n.D7)(),r=(0,a.Ltv)("body");if("sandbox"===e){let e=(0,a.Ltv)(`#i${t}`),n=e.node()?.contentDocument??document;r=(0,a.Ltv)(n.body)}return r.select(`#${t}`)},"selectSvgElement")},64299:(t,e,r)=>{"use strict";r.d(e,{IU:()=>T,U:()=>A,qV:()=>M});var n=r(83860),i=r(60833),a=r(99980),o=r(96137),s=r(94698),l=r(95631),c=r(5218),u=r(14528),h=r(60830),f=r(3288),p=(0,u.K)(async(t,e)=>{let r,n,u=(0,l.D7)(),{theme:p,themeVariables:d,handDrawnSeed:g}=u,{clusterBkg:m,clusterBorder:y,borderColorArray:b}=d,{labelStyles:x,nodeStyles:k,borderStyles:w,backgroundStyles:_}=(0,a.GX)(e),v=t.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look);(0,s.XE)(v,e.colorIndex,p,b);let M=(0,l._3)(u.flowchart.htmlLabels),S="LR"===e.direction,A=v.insert("g").attr("class","cluster-label swimlane-label"),T=await (0,o.GZ)(A,e.label,{style:e.labelStyle,useHtmlLabels:M,isNode:!0,width:e.width}),$=T.getBBox();if(M){let t=T.children[0],e=(0,h.Ltv)(T);$=t.getBoundingClientRect(),e.attr("width",$.width),e.attr("height",$.height)}let C=e.padding??0,L=e.width<=$.width+C?$.width+C:e.width;e.width<=$.width+C?e.diff=(L-e.width)/2-C:e.diff=-C;let O=e.height,E=e.y-O/2,K=e.y+O/2,R=e.x-L/2,D=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:E+O/3,N=4*!!S,P=$.height+2*N;if(S){let t=Math.max(P,$.height+2*N),i=R+t,o=Math.max(0,L-t);if("handDrawn"===e.look){let s=f.A.svg(v),l=(0,a.Fr)(e,{roughness:.7,fill:m,stroke:y,seed:g}),c=(0,a.Fr)(e,{roughness:.7,fill:"none",stroke:y,seed:g}),u=s.rectangle(R,E,t,O,l);r=v.insert(()=>u,":first-child").attr("class","swimlane-title");let h=s.rectangle(i,E,o,O,c);n=v.insert(()=>h,":first-child").attr("class","swimlane-body"),r.select("path:nth-child(2)").attr("style",w.join(";")),r.select("path").attr("style",_.join(";").replace("fill","stroke"))}else r=v.insert("rect",":first-child"),n=v.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",k).attr("x",R).attr("y",E).attr("width",t).attr("height",O).attr("fill",m).attr("stroke",y),n.attr("class","swimlane-body").attr("style",k).attr("x",i).attr("y",E).attr("width",o).attr("height",O).attr("fill","none").attr("stroke",y);let s=R+t/2,l=e.y;A.attr("transform",`translate(${s}, ${l}) rotate(-90) translate(${-$.width/2}, ${-$.height/2})`)}else{let t=Math.min(P,Math.max(0,D-E)),i=E+t,o=Math.max(0,K-i),s=e.x-L/2;if("handDrawn"===e.look){let l=f.A.svg(v),c=(0,a.Fr)(e,{roughness:.7,fill:m,stroke:y,fillWeight:3,seed:g}),u=(0,a.Fr)(e,{roughness:.7,fill:"none",stroke:y,seed:g}),h=l.rectangle(s,E,L,t,c);r=v.insert(()=>h,":first-child").attr("class","swimlane-title");let p=l.rectangle(s,i,L,o,u);n=v.insert(()=>p,":first-child").attr("class","swimlane-body"),r.select("path:nth-child(2)").attr("style",w.join(";")),r.select("path").attr("style",_.join(";").replace("fill","stroke"))}else r=v.insert("rect",":first-child"),n=v.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",k).attr("x",s).attr("y",E).attr("width",L).attr("height",t).attr("fill",m).attr("stroke",y),n.attr("class","swimlane-body").attr("style",k).attr("x",s).attr("y",i).attr("width",L).attr("height",o).attr("fill","none").attr("stroke",y);let l=e.x-$.width/2,c=E+(t-$.height)/2;A.attr("transform",`translate(${l}, ${c})`)}if(c.R.trace("Swimlane data ",e,JSON.stringify(e)),x){let t=A.select("span");t&&t.attr("style",x)}return e.offsetX=0,e.width=L,e.height=O,e.offsetY=$.height-C/2,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:v,labelBBox:$}},"swimlane"),d=(0,u.K)(async(t,e)=>{let r,u;c.R.info("Creating subgraph rect for ",e.id,e);let p=(0,l.D7)(),{theme:d,themeVariables:g,handDrawnSeed:m}=p,{clusterBkg:y,clusterBorder:b,borderColorArray:x}=g,{labelStyles:k,nodeStyles:w,borderStyles:_,backgroundStyles:v}=(0,a.GX)(e),M=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look);(0,s.XE)(M,e.colorIndex,d,x);let S=(0,l.E)(p),A=M.insert("g").attr("class","cluster-label "),T=(r="markdown"===e.labelType?await (0,o.GZ)(A,e.label,{style:e.labelStyle,useHtmlLabels:S,isNode:!0,width:e.width}):await (0,i.DA)(A,e.label,e.labelStyle||"",!1,!0)).getBBox();if((0,l.E)(p)){let t=r.children[0],e=(0,h.Ltv)(r);T=t.getBoundingClientRect(),e.attr("width",T.width),e.attr("height",T.height)}let $=e.width<=T.width+e.padding?T.width+e.padding:e.width;e.width<=T.width+e.padding?e.diff=($-e.width)/2-e.padding:e.diff=-e.padding;let C=e.height,L=e.x-$/2,O=e.y-C/2;if(c.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=f.A.svg(M),r=(0,a.Fr)(e,{roughness:.7,fill:y,stroke:b,fillWeight:3,seed:m}),n=t.path((0,i.FA)(L,O,$,C,0),r);(u=M.insert(()=>(c.R.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",_.join(";")),u.select("path").attr("style",v.join(";").replace("fill","stroke"))}else(u=M.insert("rect",":first-child")).attr("style",w).attr("rx",e.rx).attr("ry",e.ry).attr("x",L).attr("y",O).attr("width",$).attr("height",C);let{subGraphTitleTopMargin:E}=(0,n.Oi)(p);if(A.attr("transform",`translate(${e.x-T.width/2}, ${e.y-e.height/2+E})`),k){let t=A.select("span");t&&t.attr("style",k)}let K=u.node().getBBox();return e.offsetX=0,e.width=K.width,e.height=K.height,e.offsetY=T.height-e.padding/2,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:M,labelBBox:T}},"rect"),g=(0,u.K)((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=r.insert("rect",":first-child"),a=0*e.padding,o=a/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-o).attr("y",e.y-e.height/2-o).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");let s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),m=(0,u.K)(async(t,e)=>{let r,n=(0,l.D7)(),{theme:a,themeVariables:o,handDrawnSeed:c}=n,{altBackground:u,borderColorArray:p,compositeBackground:d,compositeTitleBackground:g,nodeBorder:m}=o,y=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look);(0,s.XE)(y,e.colorIndex,a,p);let b=y.insert("g",":first-child"),x=y.insert("g").attr("class","cluster-label"),k=y.append("rect"),w=await (0,i.DA)(x,e.label,e.labelStyle,void 0,!0),_=w.getBBox();if((0,l.E)(n)){let t=w.children[0],e=(0,h.Ltv)(w);_=t.getBoundingClientRect(),e.attr("width",_.width),e.attr("height",_.height)}let v=0*e.padding,M=(e.width<=_.width+e.padding?_.width+e.padding:e.width)+v;e.width<=_.width+e.padding?e.diff=(M-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height+v,A=e.height+v-_.height-6,T=e.x-M/2,$=e.y-S/2;e.width=M;let C=e.y-e.height/2-v/2+_.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),n=f.A.svg(y),a=e.rx||e.ry?n.path((0,i.FA)(T,$,M,S,10),{roughness:.7,fill:g,fillStyle:"solid",stroke:m,seed:c}):n.rectangle(T,$,M,S,{seed:c});r=y.insert(()=>a,":first-child");let o=n.rectangle(T,C,M,A,{fill:t?u:d,fillStyle:t?"hachure":"solid",stroke:m,seed:c});r=y.insert(()=>a,":first-child"),k=y.insert(()=>o),r.attr("class","outer"),k.attr("class","inner")}else(r=b.insert("rect",":first-child")).attr("class","outer").attr("x",T).attr("y",$).attr("width",M).attr("height",S).attr("data-look",e.look),k.attr("class","inner").attr("x",T).attr("y",C).attr("width",M).attr("height",A);return x.attr("transform",`translate(${e.x-_.width/2}, ${$+1-3*!(0,l.E)(n)})`),e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=_.height-e.padding/2,e.labelBBox=_,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:y,labelBBox:_}},"roundedWithTitle"),y=(0,u.K)(async(t,e)=>{let r;c.R.info("Creating subgraph rect for ",e.id,e);let s=(0,l.D7)(),{themeVariables:u,handDrawnSeed:p}=s,{clusterBkg:d,clusterBorder:g}=u,{labelStyles:m,nodeStyles:y,borderStyles:b,backgroundStyles:x}=(0,a.GX)(e),k=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),w=(0,l.E)(s),_=k.insert("g").attr("class","cluster-label "),v=await (0,o.GZ)(_,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0,width:e.width}),M=v.getBBox();if((0,l.E)(s)){let t=v.children[0],e=(0,h.Ltv)(v);M=t.getBoundingClientRect(),e.attr("width",M.width),e.attr("height",M.height)}let S=e.width<=M.width+e.padding?M.width+e.padding:e.width;e.width<=M.width+e.padding?e.diff=(S-e.width)/2-e.padding:e.diff=-e.padding;let A=e.height,T=e.x-S/2,$=e.y-A/2;if(c.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=f.A.svg(k),n=(0,a.Fr)(e,{roughness:.7,fill:d,stroke:g,fillWeight:4,seed:p}),o=t.path((0,i.FA)(T,$,S,A,e.rx),n);(r=k.insert(()=>(c.R.debug("Rough node insert CXC",o),o),":first-child")).select("path:nth-child(2)").attr("style",b.join(";")),r.select("path").attr("style",x.join(";").replace("fill","stroke"))}else(r=k.insert("rect",":first-child")).attr("style",y).attr("rx",e.rx).attr("ry",e.ry).attr("x",T).attr("y",$).attr("width",S).attr("height",A);let{subGraphTitleTopMargin:C}=(0,n.Oi)(s);if(_.attr("transform",`translate(${e.x-M.width/2}, ${e.y-e.height/2+C})`),m){let t=_.select("span");t&&t.attr("style",m)}let L=r.node().getBBox();return e.offsetX=0,e.width=L.width,e.height=L.height,e.offsetY=M.height-e.padding/2,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:k,labelBBox:M}},"kanbanSection"),b=(0,u.K)((t,e)=>{let r,{theme:n,themeVariables:a,handDrawnSeed:o}=(0,l.D7)(),{altBackground:c,nodeBorder:u,borderColorArray:h}=a,p=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look);(0,s.XE)(p,e.colorIndex,n,h);let d=p.insert("g",":first-child"),g=0*e.padding,m=e.width+g;e.diff=-e.padding;let y=e.height+g,b=e.x-m/2,x=e.y-y/2;if(e.width=m,"handDrawn"===e.look){let t=f.A.svg(p).rectangle(b,x,m,y,{fill:c??"#efefef",fillStyle:"solid",roughness:.5,strokeLineDash:[5],stroke:u,seed:o});r=p.insert(()=>t,":first-child").attr("class","divider")}else{r=d.insert("rect",":first-child");let t="outer";e.look,t="divider",r.attr("class",t).attr("x",b).attr("y",x).attr("width",m).attr("height",y).attr("data-look",e.look)}return e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:p,labelBBox:{}}},"divider"),x=(0,u.K)(async(t,e,r)=>{let u;c.R.info(`Creating ${r.cssClass} for `,e.id,e);let p=(0,l.D7)(),{theme:d,themeVariables:g,handDrawnSeed:m}=p,{borderColorArray:y}=g,{labelStyles:b,borderStyles:x}=(0,a.GX)(e),k=t.insert("g").attr("class","cluster "+r.cssClass+" "+e.cssClasses).attr("id",e.domId??e.id).attr("data-look",e.look);(0,s.XE)(k,e.colorIndex,d,y);let w=(0,l.E)(p),_=k.insert("g").attr("class","cluster-label"),v={width:0,height:0},M=e.label?.trim();if(M){let t;if(v=(t="markdown"===e.labelType?await (0,o.GZ)(_,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0,width:e.width}):await (0,i.DA)(_,e.label,e.labelStyle||"",!1,!0)).getBBox(),w){let e=t.children[0],r=(0,h.Ltv)(t);v=e.getBoundingClientRect(),r.attr("width",v.width),r.attr("height",v.height)}}let S=e.width<=v.width+e.padding?v.width+e.padding:e.width;e.width<=v.width+e.padding?e.diff=(S-e.width)/2-e.padding:e.diff=-e.padding;let A=e.height,T=e.x-S/2,$=e.y-A/2;if("handDrawn"===e.look){let t=f.A.svg(k),n=(0,a.Fr)(e,{roughness:r.roughness,fill:r.fill,stroke:r.stroke,strokeWidth:r.strokeWidth,seed:m,..."none"===r.fill?{fillWeight:0}:{fillStyle:"solid"},...r.strokeDash?{strokeLineDash:r.strokeDash}:{}}),o=t.path((0,i.FA)(T,$,S,A,r.rx),n);(u=k.insert(()=>o,":first-child")).select("path:nth-child(2)").attr("style",x.join(";"))}else(u=k.insert("rect",":first-child")).attr("rx",r.rx).attr("ry",r.rx).attr("x",T).attr("y",$).attr("width",S).attr("height",A).attr("fill",r.fill).attr("stroke",r.stroke).attr("stroke-width",r.strokeWidth+"px"),r.strokeDash&&u.attr("stroke-dasharray",r.strokeDash.join(", "));if(M){let{subGraphTitleTopMargin:t}=(0,n.Oi)(p);if(_.attr("transform",`translate(${e.x-v.width/2}, ${e.y-e.height/2+t})`),b){let t=_.select("span");t&&t.attr("style",b)}}let C=u.node().getBBox();return e.offsetX=0,e.width=C.width,e.height=C.height,e.offsetY=v.height-e.padding/2,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:k,labelBBox:v}},"createContainerGroup"),k=(0,u.K)(async(t,e)=>{let{themeVariables:r}=(0,l.D7)();return x(t,e,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:r.flowContainerStroke||r.secondaryBorderColor,strokeWidth:.75,roughness:.7})},"flowGroup"),w=(0,u.K)((t,e)=>{let r=t.boundaryType||"rect",n="package"===r?20:t.padding,i="package"===r?e.height+10:0,a=Math.max(t.width,e.width+n),o="package"===r?Math.max(t.height,i+2*t.padding):t.height,s=t.x-a/2,l=t.y-o/2;return{boundaryType:r,width:a,height:o,x:s,y:l,bodyY:l+i,bodyHeight:o-i,tabHeight:i,tabWidth:"package"===r?Math.min(a,Math.max(80,e.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),_={rect:d,squareRect:d,roundedWithTitle:m,noteGroup:g,divider:b,kanbanSection:y,flowGroup:k,usecaseSystemBoundary:(0,u.K)(async(t,e)=>{c.R.info("Creating usecase system boundary for ",e.id,e);let r=(0,l.D7)(),{theme:u,themeVariables:p,handDrawnSeed:d}=r,{clusterBkg:g,clusterBorder:m,borderColorArray:y}=p,{labelStyles:b,nodeStyles:x}=(0,a.GX)(e),{stylesMap:k}=(0,a.WW)(e),_=e.boundaryType||"rect",v=t.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${_} ${e.cssClasses}`).attr("id","string"==typeof e.domId?e.domId:e.id).attr("data-boundary-type",_).attr("data-look",e.look);(0,s.XE)(v,e.colorIndex,u,y);let M=(0,l.E)(r),S=v.insert("g").attr("class","cluster-label system-boundary-title"),A=await (0,o.GZ)(S,e.label,{style:b,useHtmlLabels:M,isNode:!0}),T=A.getBBox();if(M){let t=A.children[0],e=(0,h.Ltv)(A);T=t.getBoundingClientRect(),e.attr("width",T.width),e.attr("height",T.height)}let{width:$,height:C,x:L,y:O,bodyY:E,bodyHeight:K,tabHeight:R,tabWidth:D}=w(e,T);e.diff=e.width<=T.width+e.padding?($-e.width)/2-e.padding:-e.padding;let N=(0,a.Fr)(e,{fill:k.get("fill")||g,stroke:k.get("stroke")||m,strokeWidth:k.get("stroke-width")?.replace("px","")||1,seed:d});if("handDrawn"===e.look){let t=f.A.svg(v),e=t.rectangle(L,E,$,K,N);if(v.insert(()=>e,":first-child").attr("class","boundary-body label-container"),"package"===_){let e=t.rectangle(L,O,D,R,N);v.insert(()=>e,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else v.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",x).attr("x",L).attr("y",E).attr("width",$).attr("height",K),"package"===_&&v.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",x).attr("x",L).attr("y",O).attr("width",D).attr("height",R);let{subGraphTitleTopMargin:P}=(0,n.Oi)(r);return"package"===_?S.attr("transform",`translate(${L+(D-T.width)/2}, ${O+(R-T.height)/2})`):S.attr("transform",`translate(${e.x-T.width/2}, ${O+P})`),b&&(S.attr("style",b),S.select("span").attr("style",b)),e.offsetX=0,e.width=$,e.height=C,e.offsetY=T.height-e.padding/2,e.labelBBox=T,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:v,labelBBox:T}},"usecaseSystemBoundary"),swimlane:p},v=new Set(["noteGroup","divider"]),M=(0,u.K)(t=>!v.has(t??"rect"),"clusterPaintsTitle"),S=new Map,A=(0,u.K)(async(t,e)=>{let r=e.shape||"rect",n=await _[r](t,e);return S.set(e.id,n),n},"insertCluster"),T=(0,u.K)(()=>{S=new Map},"clear")},64516:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(62079),i=r(1203);let a=(t,e)=>{let r=n.A.parse(t),a={};for(let t in e)e[t]&&(a[t]=r[t]+e[t]);return(0,i.A)(t,a)}},67973:(t,e,r)=>{"use strict";r.d(e,{$V:()=>o,Av:()=>n,GX:()=>d,ML:()=>M,NA:()=>h,OG:()=>i,Qb:()=>m,R_:()=>s,Uw:()=>f,VP:()=>l,XZ:()=>k,ZR:()=>x,_u:()=>_,cT:()=>p,i1:()=>w,iq:()=>g,kj:()=>a,pj:()=>u,q:()=>y,ri:()=>v,vC:()=>c,x6:()=>b});let n="[object RegExp]",i="[object String]",a="[object Number]",o="[object Boolean]",s="[object Arguments]",l="[object Symbol]",c="[object Date]",u="[object Map]",h="[object Set]",f="[object Array]",p="[object ArrayBuffer]",d="[object Object]",g="[object DataView]",m="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",x="[object Uint32Array]",k="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",v="[object Float32Array]",M="[object Float64Array]"},77850:(t,e,r)=>{"use strict";e.J=function(t){if(!t)return n.BLANK_URL;var e,r=i(t.trim());do e=(r=i(r=r.replace(n.ctrlCharactersRegex,"").replace(n.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)}).replace(n.htmlCtrlEntityRegex,"").replace(n.ctrlCharactersRegex,"").replace(n.whitespaceEscapeCharsRegex,"").trim())).match(n.ctrlCharactersRegex)||r.match(n.htmlEntitiesRegex)||r.match(n.htmlCtrlEntityRegex)||r.match(n.whitespaceEscapeCharsRegex);while(e&&e.length>0);var a=r;if(!a)return n.BLANK_URL;if(n.relativeFirstCharacters.indexOf(a[0])>-1)return a;var o=a.trimStart(),s=o.match(n.urlSchemeRegex);if(!s)return a;var l=s[0].toLowerCase().trim();if(n.invalidProtocolRegex.test(l))return n.BLANK_URL;var c=o.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return c;if("http:"===l||"https:"===l){if(!URL.canParse(c))return n.BLANK_URL;var u=new URL(c);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return c};var n=r(18395);function i(t){try{return decodeURIComponent(t)}catch(e){return t}}},78096:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(62079),i=r(37245);let a=(t,e=100)=>{let r=n.A.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((t,e,r=50)=>{let{r:a,g:o,b:s,a:l}=n.A.parse(t),{r:c,g:u,b:h,a:f}=n.A.parse(e),p=r/100,d=2*p-1,g=l-f,m=((d*g==-1?d:(d+g)/(1+d*g))+1)/2,y=1-m;return(0,i.A)(a*m+c*y,o*m+u*y,s*m+h*y,l*p+f*(1-p))})(r,t,e)}},83860:(t,e,r)=>{"use strict";r.d(e,{IU:()=>h,Oi:()=>s,U7:()=>u,U_:()=>f,on:()=>c});var n=r(60833),i=r(58959),a=r(5218),o=r(14528),s=(0,o.K)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins"),l=new Map;async function c(t,e,r){let a,o;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let s=e.shape?n.nq[e.shape]:void 0;if(!s)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let n;"sandbox"===r.config.securityLevel?n="_top":e.linkTarget&&(n=e.linkTarget||"_blank"),a=t.insert("svg:a").attr("xlink:href",e.link).attr("target",n??null),o=await s(a,e,r)}else a=o=await s(t,e,r);return a.attr("data-look",(0,i.KL)(e.look)),e.tooltip&&o.attr("title",e.tooltip),l.set(e.id,a),e.haveCallback&&a.attr("class",a.attr("class")+" clickable"),a}(0,o.K)(c,"insertNode");var u=(0,o.K)((t,e)=>{l.set(e.id,t)},"setNodeElem"),h=(0,o.K)(()=>{l.clear()},"clear"),f=(0,o.K)(t=>{let e=l.get(t.id);a.R.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode")},90727:(t,e,r)=>{"use strict";function n(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}r.d(e,{i:()=>n})},90736:(t,e,r)=>{"use strict";r.d(e,{i:()=>i});var n=r(90727);function i(t){return(0,n.i)(t)}},91117:(t,e,r)=>{"use strict";r.d(e,{Y:()=>i,Z:()=>a});var n=r(19519);let i={};for(let t=0;t<=255;t++)i[t]=n.A.unit.dec2hex(t);let a={ALL:0,RGB:1,HSL:2}},91228:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(19519),i=r(62079);let a=t=>!((t=>{let{r:e,g:r,b:a}=i.A.parse(t),o=.2126*n.A.channel.toLinear(e)+.7152*n.A.channel.toLinear(r)+.0722*n.A.channel.toLinear(a);return n.A.lang.round(o)})(t)>=.5)},94698:(t,e,r)=>{"use strict";r.d(e,{Fx:()=>i,Hu:()=>c,Ic:()=>a,P1:()=>o,XE:()=>h,nw:()=>u,rq:()=>l});var n=r(14528),i=new Set(["redux-color","redux-dark-color"]),a=(0,n.K)(t=>Array.isArray(t)&&t.length>0,"hasPalette"),o=(0,n.K)((t,e)=>null!=t&&i.has(t)&&a(e),"isColorTheme"),s=/^[\w-]+$/,l=(0,n.K)(t=>{let e="string"==typeof t||"number"==typeof t?String(t):"";return s.test(e)?e:"classic"},"safeLook"),c=(0,n.K)(t=>a(t)?t.length:0,"paletteSlotCount"),u=(0,n.K)((t,e)=>a(e)?c(e):"number"==typeof t&&Number.isInteger(t)&&t>0&&t<=64?t:12,"colorSlotCount"),h=(0,n.K)((t,e,r,n)=>{if(void 0===e||!o(r,n))return;let i=e%c(n);t.attr("data-color-id",`color-${i}`)},"stampColorSlot")},95525:(t,e,r)=>{"use strict";function n(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from("string"==typeof t?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map(function(t){var e,r;return null!=(r=null==(e=t.match(/[\t ]/g))?void 0:e.length)?r:0})):t},[]);if(i.length){var a=RegExp("\n[ ]{".concat(Math.min.apply(Math,i),"}"),"g");n=n.map(function(t){return t.replace(a,"\n")})}n[0]=n[0].replace(/^\r?\n/,"");var o=n[0];return e.forEach(function(t,e){var r=o.match(/(?:^|\n)( *)$/),i=r?r[1]:"",a=t;"string"==typeof t&&t.includes("\n")&&(a=String(t).split("\n").map(function(t,e){return 0===e?t:"".concat(i).concat(t)}).join("\n")),o+=a+n[e+1]}),o}r.d(e,{T:()=>n})},96137:(t,e,r)=>{"use strict";r.d(e,{W6:()=>tZ,GZ:()=>t1,lT:()=>tU,O6:()=>tL});var n=r(41329),i=r(58959),a=r(95631),o=r(5218),s=r(14528);function l(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var c=l(),u={exec:()=>null};function h(t,e=""){let r="string"==typeof t?t:t.source,n={replace:(t,e)=>{let i="string"==typeof e?e:e.source;return i=i.replace(p.caret,"$1"),r=r.replace(t,i),n},getRegex:()=>new RegExp(r,e)};return n}var f=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),p={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:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},d=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,g=/(?:[*+-]|\d{1,9}[.)])/,m=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,y=h(m).replace(/bull/g,g).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(),b=h(m).replace(/bull/g,g).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(),x=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,k=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,w=h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",k).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_=h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,g).getRegex(),v="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",M=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,S=h("^ {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|/?>)[\\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",M).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),A=h(x).replace("hr",d).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",v).getRegex(),T={blockquote:h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",A).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:w,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:d,html:S,lheading:y,list:_,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:A,table:u,text:/^[^\n]+/},$=h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",d).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",v).getRegex(),C={...T,lheading:b,table:$,paragraph:h(x).replace("hr",d).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",v).getRegex()},L={...T,html:h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",M).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:u,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:h(x).replace("hr",d).replace("heading",` *#{1,6} *[^
|
|
15
|
+
]`).replace("lheading",y).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},O=/^( {2,}|\\)\n(?!\s*$)/,E=/[\p{P}\p{S}]/u,K=/[\s\p{P}\p{S}]/u,R=/[^\s\p{P}\p{S}]/u,D=h(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,K).getRegex(),N=/(?!~)[\p{P}\p{S}]/u,P=h(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",f?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),I=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,j=h(I,"u").replace(/punct/g,E).getRegex(),U=h(I,"u").replace(/punct/g,N).getRegex(),F="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",z=h(F,"gu").replace(/notPunctSpace/g,R).replace(/punctSpace/g,K).replace(/punct/g,E).getRegex(),B=h(F,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,N).getRegex(),Y=h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,R).replace(/punctSpace/g,K).replace(/punct/g,E).getRegex(),H=h(/\\(punct)/,"gu").replace(/punct/g,E).getRegex(),q=h(/^<(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(),W=h(M).replace("(?:--\x3e|$)","--\x3e").getRegex(),X=h("^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",W).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Z=h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),V=h(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",k).getRegex(),Q=h(/^!?\[(ref)\](?:\[\])?/).replace("ref",k).getRegex(),J=h("reflink|nolink(?!\\()","g").replace("reflink",V).replace("nolink",Q).getRegex(),tt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,te={_backpedal:u,anyPunctuation:H,autolink:q,blockSkip:P,br:O,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:u,emStrongLDelim:j,emStrongRDelimAst:z,emStrongRDelimUnd:Y,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Z,nolink:Q,punctuation:D,reflink:V,reflinkSearch:J,tag:X,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:u},tr={...te,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},tn={...te,emStrongRDelimAst:B,emStrongLDelim:U,url:h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tt).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:h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tt).getRegex()},ti={...tn,br:h(O).replace("{2,}","*").getRegex(),text:h(tn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ta={normal:T,gfm:C,pedantic:L},to={normal:te,gfm:tn,breaks:ti,pedantic:tr},ts={"&":"&","<":"<",">":">",'"':""","'":"'"},tl=t=>ts[t];function tc(t,e){if(e){if(p.escapeTest.test(t))return t.replace(p.escapeReplace,tl)}else if(p.escapeTestNoEncode.test(t))return t.replace(p.escapeReplaceNoEncode,tl);return t}function tu(t){try{t=encodeURI(t).replace(p.percentDecode,"%")}catch{return null}return t}function th(t,e){let r=t.replace(p.findPipe,(t,e,r)=>{let n=!1,i=e;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(p.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(p.slashPipe,"|");return r}function tf(t,e,r){let n=t.length;if(0===n)return"";let i=0;for(;i<n;){let a=t.charAt(n-i-1);if(a!==e||r)if(a!==e&&r)i++;else break;else i++}return t.slice(0,n-i)}function tp(t,e,r,n,i){let a=e.href,o=e.title||null,s=t[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:r,href:a,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}var td=class{options;rules;lexer;constructor(t){this.options=t||c}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:tf(t,`
|
|
16
|
+
`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],r=function(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(null===n)return e;let i=n[1];return e.split(`
|
|
17
|
+
`).map(t=>{let e=t.match(r.other.beginningSpace);if(null===e)return t;let[n]=e;return n.length>=i.length?t.slice(i.length):t}).join(`
|
|
18
|
+
`)}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=tf(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:tf(e[0],`
|
|
19
|
+
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=tf(e[0],`
|
|
20
|
+
`).split(`
|
|
21
|
+
`),r="",n="",i=[];for(;t.length>0;){let e=!1,a=[],o;for(o=0;o<t.length;o++)if(this.rules.other.blockquoteStart.test(t[o]))a.push(t[o]),e=!0;else if(e)break;else a.push(t[o]);t=t.slice(o);let s=a.join(`
|
|
22
|
+
`),l=s.replace(this.rules.other.blockquoteSetextReplace,`
|
|
23
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
24
|
+
${s}`:s,n=n?`${n}
|
|
25
|
+
${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===t.length)break;let u=i.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let e=u.raw+`
|
|
26
|
+
`+t.join(`
|
|
27
|
+
`),a=this.blockquote(e);i[i.length-1]=a,r=r.substring(0,r.length-u.raw.length)+a.raw,n=n.substring(0,n.length-u.text.length)+a.text;break}if(u?.type==="list"){let e=u.raw+`
|
|
28
|
+
`+t.join(`
|
|
29
|
+
`),a=this.list(e);i[i.length-1]=a,r=r.substring(0,r.length-u.raw.length)+a.raw,n=n.substring(0,n.length-u.raw.length)+a.raw,t=e.substring(i.at(-1).raw.length).split(`
|
|
30
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let a=this.rules.other.listItemRegex(r),o=!1;for(;t;){let r=!1,n="",s="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;n=e[0],t=t.substring(n.length);let l=e[2].split(`
|
|
31
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),c=t.split(`
|
|
32
|
+
`,1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,s=l.trimStart()):u?h=e[1].length+1:(h=(h=e[2].search(this.rules.other.nonSpaceChar))>4?1:h,s=l.slice(h),h+=e[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+`
|
|
33
|
+
`,t=t.substring(c.length+1),r=!0),!r){let e=this.rules.other.nextBulletRegex(h),r=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),a=this.rules.other.headingBeginRegex(h),o=this.rules.other.htmlBeginRegex(h);for(;t;){let f=t.split(`
|
|
34
|
+
`,1)[0],p;if(c=f,p=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||o.test(c)||e.test(c)||r.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=h||!c.trim())s+=`
|
|
35
|
+
`+p.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||r.test(l))break;s+=`
|
|
36
|
+
`+c}u||c.trim()||(u=!0),n+=f+`
|
|
37
|
+
`,t=t.substring(f.length+1),l=p.slice(h)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(o=!0));let f=null,p;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s))&&(p="[ ] "!==f[0],s=s.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:n,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=n}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let t=0;t<i.items.length;t++)if(this.lexer.state.top=!1,i.items[t].tokens=this.lexer.blockTokens(i.items[t].text,[]),!i.loose){let e=i.items[t].tokens.filter(t=>"space"===t.type);i.loose=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw))}if(i.loose)for(let t=0;t<i.items.length;t++)i.items[t].loose=!0;return i}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:r,title:n}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=th(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
38
|
+
`):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let t of n)this.rules.other.tableAlignRight.test(t)?a.align.push("right"):this.rules.other.tableAlignCenter.test(t)?a.align.push("center"):this.rules.other.tableAlignLeft.test(t)?a.align.push("left"):a.align.push(null);for(let t=0;t<r.length;t++)a.header.push({text:r[t],tokens:this.lexer.inline(r[t]),header:!0,align:a.align[t]});for(let t of i)a.rows.push(th(t,a.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:a.align[e]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t=e[1].charAt(e[1].length-1)===`
|
|
39
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=tf(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t){if(-1===t.indexOf(")"))return -1;let e=0;for(let r=0;r<t.length;r++)if("\\"===t[r])r++;else if("("===t[r])e++;else if(")"===t[r]&&--e<0)return r;return e>0?-2:-1}(e[2]);if(-2===t)return;if(t>-1){let r=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let r=e[2],n="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(r);t&&(r=t[1],n=t[3])}else n=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?r.slice(1):r.slice(1,-1)),tp(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let t=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=r[0].charAt(0);return{type:"text",raw:t,text:t}}return tp(r,t,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,i,a,o=r,s=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+r);null!=(n=l.exec(e));){if(!(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(a=[...i].length,n[3]||n[4]){o+=a;continue}if((n[5]||n[6])&&r%3&&!((r+a)%3)){s+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o+s);let e=[...n[0]][0].length,l=t.slice(0,r+n.index+e+a);if(Math.min(r,a)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(t),n=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return r&&n&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,r;return r="@"===e[2]?"mailto:"+(t=e[1]):t=e[1],{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,r;if("@"===e[2])r="mailto:"+(t=e[0]);else{let n;do n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(n!==e[0]);t=e[0],r="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},tg=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||c,this.options.tokenizer=this.options.tokenizer||new td,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 e={other:p,block:ta.normal,inline:to.normal};this.options.pedantic?(e.block=ta.pedantic,e.inline=to.pedantic):this.options.gfm&&(e.block=ta.gfm,this.options.breaks?e.inline=to.breaks:e.inline=to.gfm),this.tokenizer.rules=e}static get rules(){return{block:ta,inline:to}}static lex(e,r){return new t(r).lex(e)}static lexInline(e,r){return new t(r).inlineTokens(e)}lex(t){t=t.replace(p.carriageReturn,`
|
|
40
|
+
`),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],r=!1){for(this.options.pedantic&&(t=t.replace(p.tabCharGlobal," ").replace(p.spaceLine,""));t;){let n;if(this.options.extensions?.block?.some(r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let r=e.at(-1);1===n.raw.length&&void 0!==r?r.raw+=`
|
|
41
|
+
`:e.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
|
|
42
|
+
`)?"":`
|
|
43
|
+
`)+n.raw,r.text+=`
|
|
44
|
+
`+n.text,this.inlineQueue.at(-1).src=r.text):e.push(n);continue}if((n=this.tokenizer.fences(t))||(n=this.tokenizer.heading(t))||(n=this.tokenizer.hr(t))||(n=this.tokenizer.blockquote(t))||(n=this.tokenizer.list(t))||(n=this.tokenizer.html(t))){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
|
|
45
|
+
`)?"":`
|
|
46
|
+
`)+n.raw,r.text+=`
|
|
47
|
+
`+n.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},e.push(n));continue}if((n=this.tokenizer.table(t))||(n=this.tokenizer.lheading(t))){t=t.substring(n.raw.length),e.push(n);continue}let i=t;if(this.options.extensions?.startBlock){let e=1/0,r=t.slice(1),n;this.options.extensions.startBlock.forEach(t=>{"number"==typeof(n=t.call({lexer:this},r))&&n>=0&&(e=Math.min(e,n))}),e<1/0&&e>=0&&(i=t.substring(0,e+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){let a=e.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
|
|
48
|
+
`)?"":`
|
|
49
|
+
`)+n.raw,a.text+=`
|
|
50
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(n),r=i.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
|
|
51
|
+
`)?"":`
|
|
52
|
+
`)+n.raw,r.text+=`
|
|
53
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):e.push(n);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let r,n=t,i=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(n));)t.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(n));)r=i[2]?i[2].length:0,n=n.slice(0,i.index+r)+"["+"a".repeat(i[0].length-r-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o="";for(;t;){let r;if(a||(o=""),a=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if((r=this.tokenizer.escape(t))||(r=this.tokenizer.tag(t))||(r=this.tokenizer.link(t))){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if((r=this.tokenizer.emStrong(t,n,o))||(r=this.tokenizer.codespan(t))||(r=this.tokenizer.br(t))||(r=this.tokenizer.del(t))||(r=this.tokenizer.autolink(t))||!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let i=t;if(this.options.extensions?.startInline){let e=1/0,r=t.slice(1),n;this.options.extensions.startInline.forEach(t=>{"number"==typeof(n=t.call({lexer:this},r))&&n>=0&&(e=Math.min(e,n))}),e<1/0&&e>=0&&(i=t.substring(0,e+1))}if(r=this.tokenizer.inlineText(i)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),a=!0;let n=e.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}},tm=class{options;parser;constructor(t){this.options=t||c}space(t){return""}code({text:t,lang:e,escaped:r}){let n=(e||"").match(p.notSpaceStart)?.[0],i=t.replace(p.endingNewline,"")+`
|
|
54
|
+
`;return n?'<pre><code class="language-'+tc(n)+'">'+(r?i:tc(i,!0))+`</code></pre>
|
|
55
|
+
`:"<pre><code>"+(r?i:tc(i,!0))+`</code></pre>
|
|
56
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
57
|
+
${this.parser.parse(t)}</blockquote>
|
|
58
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
59
|
+
`}hr(t){return`<hr>
|
|
60
|
+
`}list(t){let e=t.ordered,r=t.start,n="";for(let e=0;e<t.items.length;e++){let r=t.items[e];n+=this.listitem(r)}let i=e?"ol":"ul";return"<"+i+(e&&1!==r?' start="'+r+'"':"")+`>
|
|
61
|
+
`+n+"</"+i+`>
|
|
62
|
+
`}listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=r+" "+tc(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
|
|
63
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
64
|
+
`}table(t){let e="",r="";for(let e=0;e<t.header.length;e++)r+=this.tablecell(t.header[e]);e+=this.tablerow({text:r});let n="";for(let e=0;e<t.rows.length;e++){let i=t.rows[e];r="";for(let t=0;t<i.length;t++)r+=this.tablecell(i[t]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
65
|
+
<thead>
|
|
66
|
+
`+e+`</thead>
|
|
67
|
+
`+n+`</table>
|
|
68
|
+
`}tablerow({text:t}){return`<tr>
|
|
69
|
+
${t}</tr>
|
|
70
|
+
`}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
|
|
71
|
+
`}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>${tc(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){let n=this.parser.parseInline(r),i=tu(t);if(null===i)return n;let a='<a href="'+(t=i)+'"';return e&&(a+=' title="'+tc(e)+'"'),a+=">"+n+"</a>"}image({href:t,title:e,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=tu(t);if(null===i)return tc(r);t=i;let a=`<img src="${t}" alt="${r}"`;return e&&(a+=` title="${tc(e)}"`),a+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:tc(t.text)}},ty=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""}},tb=class t{options;renderer;textRenderer;constructor(t){this.options=t||c,this.options.renderer=this.options.renderer||new tm,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ty}static parse(e,r){return new t(r).parse(e)}static parseInline(e,r){return new t(r).parseInline(e)}parse(t,e=!0){let r="";for(let n=0;n<t.length;n++){let i=t[n];if(this.options.extensions?.renderers?.[i.type]){let t=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){r+=t||"";continue}}switch(i.type){case"space":r+=this.renderer.space(i);continue;case"hr":r+=this.renderer.hr(i);continue;case"heading":r+=this.renderer.heading(i);continue;case"code":r+=this.renderer.code(i);continue;case"table":r+=this.renderer.table(i);continue;case"blockquote":r+=this.renderer.blockquote(i);continue;case"list":r+=this.renderer.list(i);continue;case"html":r+=this.renderer.html(i);continue;case"def":r+=this.renderer.def(i);continue;case"paragraph":r+=this.renderer.paragraph(i);continue;case"text":{let a=i,o=this.renderer.text(a);for(;n+1<t.length&&"text"===t[n+1].type;)a=t[++n],o+=`
|
|
72
|
+
`+this.renderer.text(a);e?r+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):r+=o;continue}default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}parseInline(t,e=this.renderer){let r="";for(let n=0;n<t.length;n++){let i=t[n];if(this.options.extensions?.renderers?.[i.type]){let t=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=t||"";continue}}switch(i.type){case"escape":case"text":r+=e.text(i);break;case"html":r+=e.html(i);break;case"link":r+=e.link(i);break;case"image":r+=e.image(i);break;case"strong":r+=e.strong(i);break;case"em":r+=e.em(i);break;case"codespan":r+=e.codespan(i);break;case"br":r+=e.br(i);break;case"del":r+=e.del(i);break;default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}},tx=class{options;block;constructor(t){this.options=t||c}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?tg.lex:tg.lexInline}provideParser(){return this.block?tb.parse:tb.parseInline}},tk=new class{defaults=l();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tb;Renderer=tm;TextRenderer=ty;Lexer=tg;Tokenizer=td;Hooks=tx;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let n of t)switch(r=r.concat(e.call(this,n)),n.type){case"table":for(let t of n.header)r=r.concat(this.walkTokens(t.tokens,e));for(let t of n.rows)for(let n of t)r=r.concat(this.walkTokens(n.tokens,e));break;case"list":r=r.concat(this.walkTokens(n.items,e));break;default:{let t=n;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(n=>{let i=t[n].flat(1/0);r=r.concat(this.walkTokens(i,e))}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let r=e.renderers[t.name];r?e.renderers[t.name]=function(...e){let n=t.renderer.apply(this,e);return!1===n&&(n=r.apply(this,e)),n}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let r=e[t.level];r?r.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),r.extensions=e),t.renderer){let e=this.defaults.renderer||new tm(this.defaults);for(let r in t.renderer){if(!(r in e))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=t.renderer[r],i=e[r];e[r]=(...t)=>{let r=n.apply(e,t);return!1===r&&(r=i.apply(e,t)),r||""}}r.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new td(this.defaults);for(let r in t.tokenizer){if(!(r in e))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=t.tokenizer[r],i=e[r];e[r]=(...t)=>{let r=n.apply(e,t);return!1===r&&(r=i.apply(e,t)),r}}r.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new tx;for(let r in t.hooks){if(!(r in e))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=t.hooks[r],i=e[r];tx.passThroughHooks.has(r)?e[r]=t=>{if(this.defaults.async&&tx.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await n.call(e,t);return i.call(e,r)})();let a=n.call(e,t);return i.call(e,a)}:e[r]=(...t)=>{if(this.defaults.async)return(async()=>{let r=await n.apply(e,t);return!1===r&&(r=await i.apply(e,t)),r})();let r=n.apply(e,t);return!1===r&&(r=i.apply(e,t)),r}}r.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,n=t.walkTokens;r.walkTokens=function(t){let r=[];return r.push(n.call(this,t)),e&&(r=r.concat(e.call(this,t))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return tg.lex(t,e??this.defaults)}parser(t,e){return tb.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let n={...r},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)return a(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 e>"u"||null===e)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let r=i.hooks?await i.hooks.preprocess(e):e,n=await (i.hooks?await i.hooks.provideLexer():t?tg.lex:tg.lexInline)(r,i),a=i.hooks?await i.hooks.processAllTokens(n):n;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await (i.hooks?await i.hooks.provideParser():t?tb.parse:tb.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(e=i.hooks.preprocess(e));let r=(i.hooks?i.hooks.provideLexer():t?tg.lex:tg.lexInline)(e,i);i.hooks&&(r=i.hooks.processAllTokens(r)),i.walkTokens&&this.walkTokens(r,i.walkTokens);let n=(i.hooks?i.hooks.provideParser():t?tb.parse:tb.parseInline)(r,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(t){return a(t)}}}onError(t,e){return r=>{if(r.message+=`
|
|
73
|
+
Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+tc(r.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function tw(t,e){return tk.parse(t,e)}tw.options=tw.setOptions=function(t){return tk.setOptions(t),tw.defaults=tk.defaults,c=tw.defaults,tw},tw.getDefaults=l,tw.defaults=c,tw.use=function(...t){return tk.use(...t),tw.defaults=tk.defaults,c=tw.defaults,tw},tw.walkTokens=function(t,e){return tk.walkTokens(t,e)},tw.parseInline=tk.parseInline,tw.Parser=tb,tw.parser=tb.parse,tw.Renderer=tm,tw.TextRenderer=ty,tw.Lexer=tg,tw.lexer=tg.lex,tw.Tokenizer=td,tw.Hooks=tx,tw.parse=tw,tw.options,tw.setOptions,tw.use,tw.walkTokens,tw.parseInline,tb.parse,tg.lex;var t_=r(95525),tv=r(60830),tM="u">typeof performance&&"function"==typeof performance.now,tS=(0,s.K)(()=>tM?performance.now():0,"now"),tA="\uD83E\uDDDC ",tT={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"};function t$(t,{markdownAutoWrap:e}){let r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,t_.T)(r)}function tC(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(t=>({content:t,type:"normal"}))??[])}function tL(t,e={}){let r=t$(t,e),n=tw.lexer(r),i=[[]],a=0;function o(t,e="normal"){"text"===t.type?t.text.split("\n").forEach((t,r)=>{0!==r&&(a++,i.push([])),t.split(" ").forEach(t=>{(t=t.replace(/'/g,"'"))&&i[a].push({content:t,type:e})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{o(e,t.type)}):"html"===t.type&&i[a].push({content:t.text,type:"normal"})}return(0,s.K)(o,"processNode"),n.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{o(t)}):"html"===t.type?i[a].push({content:t.text,type:"normal"}):i[a].push({content:t.raw,type:"normal"})}),i}function tO(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}function tE(t,{markdownAutoWrap:e}={}){let r=tw.lexer(t);function n(t){if("text"===t.type)return!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g," "):t.text.replace(/\n */g,"<br/>");if("strong"===t.type)return`<strong>${t.tokens?.map(n).join("")}</strong>`;if("em"===t.type)return`<em>${t.tokens?.map(n).join("")}</em>`;if("paragraph"===t.type)return`<p>${t.tokens?.map(n).join("")}</p>`;if("space"===t.type)return"";else if("html"===t.type)return`${t.text}`;else if("escape"===t.type)return t.text;return o.R.warn(`Unsupported markdown: ${t.type}`),t.raw}return(0,s.K)(n,"output"),r.map(n).join("")}(class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{(0,s.K)(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,e){if(!this.enabled)return e();let r=tS();try{return e()}finally{this.buckets[t]=(this.buckets[t]??0)+(tS()-r)}}async tick(t,e){if(!this.enabled)return e();let r=tS();try{return await e()}finally{this.buckets[t]=(this.buckets[t]??0)+(tS()-r)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let t=this.roots.at(-1),e=this.runLabel??t?.name;return t&&(this.records.push({label:e??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,e)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;let e={name:t,start:tS(),duration:-1,children:[]},r=this.stack.at(-1);if(r?r.children.push(e):this.roots.push(e),this.stack.push(e),tM&&"function"==typeof performance.mark)try{performance.mark(`${tA}${t} \u25B6`)}catch{}}end(){if(!this.enabled)return;let t=this.stack.pop();if(!t)return;let e=tS();if(t.duration=e-t.start,tM&&"function"==typeof performance.measure)try{performance.measure(`${tA}${t.name}`,{start:t.start,end:e,detail:{devtools:{dataType:"track-entry",track:"Mermaid render",trackGroup:"Mermaid",color:tT[t.name]??"primary",tooltipText:`${t.name} \u2014 ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,e){if(!this.enabled)return e();this.begin(t);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),e){if(!t)return;let r=t.duration,n=e&&e!==t.name?`${t.name} [${e}]`:t.name,i=["ms % phase"],a=(0,s.K)((t,e)=>{let n=" ".repeat(e),o=t.duration.toFixed(1).padStart(8),s=r>0?`${(t.duration/r*100).toFixed(0).padStart(3)}%`:" -";for(let r of(i.push(`${o} ${s} ${n}${t.name}`),t.children))a(r,e+1);if(t.children.length>0){let e=t.children.reduce((t,e)=>t+e.duration,0),r=t.duration-e;if(r>.5){let t=r.toFixed(1).padStart(8);i.push(`${t} ${n} (self)`)}}},"walk");a(t,0);let o=Object.keys(this.buckets);if(o.length>0)for(let t of(i.push("—— buckets (summed) ——"),o))i.push(`${this.buckets[t].toFixed(1).padStart(8)} ${t}`);console.log(`${tA}mermaid render profile \xb7 ${n}
|
|
74
|
+
${i.join("\n")}`)}}),globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"},(0,s.K)(t$,"preprocessMarkdown"),(0,s.K)(tC,"nonMarkdownToLines"),(0,s.K)(tL,"markdownToLines"),(0,s.K)(tO,"nonMarkdownToHTML"),(0,s.K)(tE,"markdownToHTML");var tK=function(t){var e=function(){},r=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function n(){this.reads=[],this.writes=[],this.raf=r.bind(t),e("initialized",this)}function i(t){t.scheduled||(t.scheduled=!0,t.raf(a.bind(null,t)),e("flush scheduled"))}function a(t){e("flush");var r,n=t.writes,a=t.reads;try{e("flushing reads",a.length),t.runTasks(a),e("flushing writes",n.length),t.runTasks(n)}catch(t){r=t}if(t.scheduled=!1,(a.length||n.length)&&i(t),r)if(e("task errored",r.message),t.catch)t.catch(r);else throw r}function o(t,e){var r=t.indexOf(e);return!!~r&&!!t.splice(r,1)}function l(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}return(0,s.K)(n,"FastDom"),n.prototype={constructor:n,runTasks:(0,s.K)(function(t){var r;for(e("run tasks");r=t.shift();)r()},"runTasks"),measure:(0,s.K)(function(t,r){e("measure");var n=r?t.bind(r):t;return this.reads.push(n),i(this),n},"measure"),mutate:(0,s.K)(function(t,r){e("mutate");var n=r?t.bind(r):t;return this.writes.push(n),i(this),n},"mutate"),clear:(0,s.K)(function(t){return e("clear",t),o(this.reads,t)||o(this.writes,t)},"clear"),extend:(0,s.K)(function(t){if(e("extend",t),"object"!=typeof t)throw Error("expected object");var r=Object.create(this);return l(r,t),r.fastdom=this,r.initialize&&r.initialize(),r},"extend"),catch:null},(0,s.K)(i,"scheduleFlush"),(0,s.K)(a,"flush"),(0,s.K)(o,"remove"),(0,s.K)(l,"mixin"),t.fastdom=t.fastdom||new n}("u">typeof window?window:globalThis),tR={initialize:(0,s.K)(function(){this._tasks=new Map},"initialize"),mutate:(0,s.K)(function(t,e){return tD(this,"mutate",t,e)},"mutate"),measure:(0,s.K)(function(t,e){return tD(this,"measure",t,e)},"measure"),clear:(0,s.K)(function(t){var e=this._tasks,r=e.get(t);this.fastdom.clear(r),e.delete(t)},"clear")};function tD(t,e,r,n){var i,a=t._tasks,o=t.fastdom,s=new Promise(function(t,l){i=o[e](function(){a.delete(s);try{t(n?r.call(n):r())}catch(t){l(t)}},n)});return a.set(s,i),s}(0,s.K)(tD,"create");var{initialize:tN,mutate:tP,measure:tI,clear:tj}=tR,tU=tK.extend({raf(t){"function"==typeof queueMicrotask?queueMicrotask(t):setTimeout(t,0)}}).extend(tR);function tF(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(t=>t.segment):[...t]}function tz(t,e){return tB(t,[],tF(e.content),e.type)}function tB(t,e,r,n){if(0===r.length)return[{content:e.join(""),type:n},{content:"",type:n}];let[i,...a]=r,o=[...e,i];return t([{content:o.join(""),type:n}])?tB(t,o,a,n):(0===e.length&&i&&(e.push(i),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}function tY(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return tH(t,e)}function tH(t,e,r=[],n=[]){if(0===t.length)return n.length>0&&r.push(n),r.length>0?r:[];let i="";" "===t[0].content&&(i=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},o=[...n];if(""!==i&&o.push({content:i,type:"normal"}),o.push(a),e(o))return tH(t,e,r,o);if(n.length>0)r.push(n),t.unshift(a);else if(a.content){let[n,i]=tz(e,a);r.push([n]),i.content&&t.unshift(i)}return tH(t,e,r)}function tq(t,e){e&&t.attr("style",e)}async function tW(t,e,r,n,i=!1,o=(0,a.zj)(),s=0){let l=t.append("foreignObject");l.attr("width",`${Math.min(10*r,16384)}px`),l.attr("height",`${Math.min(10*r,16384)}px`);let c=l.append("xhtml:div"),u=(0,a.Wi)(e.label)?await (0,a.dj)(e.label.replace(a.Y2.lineBreakRegex,"\n"),o):(0,a.jZ)(e.label,o),h=e.isNode?"nodeLabel":"edgeLabel",f=c.append("span");f.html(u),tq(f,e.labelStyle),f.attr("class",`${h} ${n}`),tq(c,e.labelStyle),c.style("display","table-cell"),c.style("white-space","nowrap"),c.style("line-height","1.5"),r!==1/0&&(c.style("max-width",r+"px"),c.style("text-align","center")),c.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&c.attr("class","labelBkg");let p=await tU.measure(()=>c.node().getBoundingClientRect());return p.width===r?(c.style("display","table"),c.style("white-space","break-spaces"),c.style("width",r+"px")):p.width<s&&(c.style("display","table"),c.style("width",s+"px"),c.style("text-align","center")),l.node()}function tX(t,e,r,n=!1){let i=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return n&&i.attr("text-anchor","middle"),i}function tG(t,e,r){let n=t.append("text"),i=tX(n,1,e);tJ(i,r);let a=i.node().getComputedTextLength();return n.remove(),a}function tZ(t,e,r){let n=t.append("text"),i=tX(n,1,e);tJ(i,[{content:r,type:"normal"}]);let a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}function tV(t,e,r,n=!1,i=!1){let a=e.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");i&&l.attr("text-anchor","middle");let c=0;for(let e of r){let r=(0,s.K)(e=>tG(a,1.1,e)<=t,"checkWidth");for(let t of r(e)?[e]:tY(e,r))tJ(tX(l,c,1.1,i),t),c++}if(!n)return l.node();{let t=l.node().getBBox();return o.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),a.node()}}function tQ(t){return t.replace(/&(amp|lt|gt);/g,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return t}})}function tJ(t,e){t.text(""),e.forEach((e,r)=>{let n=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?n.text(tQ(e.content)):n.text(" "+tQ(e.content))})}async function t0(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,i,o)=>(r.push((async()=>{let r=`${i}:${o}`;return await (0,n.dn)(r)?await (0,n.WY)(r,void 0,{class:"label-icon"}):`<i class='${(0,a.jZ)(t,e).replace(":"," ")}'></i>`})()),t));let i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}(0,s.K)(tF,"splitTextToChars"),(0,s.K)(tz,"splitWordToFitWidth"),(0,s.K)(tB,"splitWordToFitWidthRecursion"),(0,s.K)(tY,"splitLineToFitWidth"),(0,s.K)(tH,"splitLineToFitWidthRecursion"),(0,s.K)(tq,"applyStyle"),(0,s.K)(tW,"addHtmlSpan"),(0,s.K)(tX,"createTspan"),(0,s.K)(tG,"computeWidthOfText"),(0,s.K)(tZ,"computeDimensionOfText"),(0,s.K)(tV,"createFormattedText"),(0,s.K)(tQ,"decodeHTMLEntities"),(0,s.K)(tJ,"updateTextContentAndStyles"),(0,s.K)(t0,"replaceIconSubstring");var t1=(0,s.K)(async(t,e="",{style:r="",isTitle:n=!1,classes:s="",useHtmlLabels:l=!0,markdown:c=!0,isNode:u=!0,width:h=200,minWidth:f=0,addSvgBackground:p=!1}={},d)=>{if(o.R.debug("XYZ createText",e,r,n,s,l,u,"addSvgBackground: ",p),l){let n=c?tE(e,d):tO(e),o=await t0((0,i.Sm)(n),d),l=e.replace(/\\\\/g,"\\"),g={isNode:u,label:(0,a.Wi)(e)?l:o,labelStyle:r.replace("fill:","color:")};return await tW(t,g,h,s,p,d,f)}{let a=(0,i.Sm)(e.replace(/<br\s*\/?>/g,"<br/>")),o=tV(h,t,c?tL(a.replace("<br>","<br/>"),d):tC(a),!!e&&p,!u);if(u){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,tv.Ltv)(o).attr("style",t)}else{let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,tv.Ltv)(o).select("rect").attr("style",t.replace(/background:/g,"fill:"));let e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,tv.Ltv)(o).select("text").attr("style",e)}return n?(0,tv.Ltv)(o).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,tv.Ltv)(o).selectAll("tspan.text-outer-tspan").classed("row",!0),o}},"createText")},96430:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(19519),i=r(91117);class a{constructor(){this.type=i.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=i.Z.ALL}is(t){return this.type===t}}class o{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.Z.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:r,l:i}=t;void 0===e&&(t.h=n.A.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=n.A.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=n.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:r,b:i}=t;void 0===e&&(t.r=n.A.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=n.A.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=n.A.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}let s=new o({r:0,g:0,b:0,a:0},"transparent")},99980:(t,e,r)=>{"use strict";r.d(e,{Fr:()=>h,GX:()=>u,KX:()=>c,WW:()=>s,ue:()=>a});var n=r(95631),i=r(14528),a=(0,i.K)(t=>{let{handDrawnSeed:e}=(0,n.D7)();return{fill:t,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:.7,stroke:t,seed:e}},"solidStateFill"),o=(0,i.K)(t=>Array.isArray(t)?t:t?t.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),s=(0,i.K)(t=>{let e=l([...t.cssCompiledStyles||[],...t.cssStyles||[],...o(t.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),l=(0,i.K)(t=>{let e=new Map;return t.forEach(t=>{let[r,n]=t.split(":");e.set(r.trim(),n?.trim())}),e},"styles2Map"),c=(0,i.K)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),u=(0,i.K)(t=>{let{stylesArray:e}=s(t),r=[],n=[],i=[],a=[];return e.forEach(t=>{let e=t[0];c(e)?r.push(t.join(":")+" !important"):(n.push(t.join(":")+" !important"),e.includes("stroke")&&i.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}},"styles2String"),h=(0,i.K)((t,e)=>{let{themeVariables:r,handDrawnSeed:i}=(0,n.D7)(),{nodeBorder:a,mainBkg:o}=r,{stylesMap:l}=s(t);return Object.assign({roughness:.7,fill:l.get("fill")||o,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:l.get("stroke")||a,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:f(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),f=(0,i.K)(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(1===e.length){let t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray")}}]);
|