@next-bricks/ai-portal 0.32.9 → 0.33.0

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.
Files changed (93) hide show
  1. package/dist/bricks.json +23 -21
  2. package/dist/chunks/3554.206bf5f8.js +2 -0
  3. package/dist/chunks/3554.206bf5f8.js.map +1 -0
  4. package/dist/chunks/4937.be28e874.js +2 -0
  5. package/dist/chunks/4937.be28e874.js.map +1 -0
  6. package/dist/chunks/4957.f878df32.js +3 -0
  7. package/dist/chunks/4957.f878df32.js.LICENSE.txt +5 -0
  8. package/dist/chunks/4957.f878df32.js.map +1 -0
  9. package/dist/chunks/5521.ef48a4d3.js +2 -0
  10. package/dist/chunks/5521.ef48a4d3.js.map +1 -0
  11. package/dist/chunks/7367.26e21493.js +3 -0
  12. package/dist/chunks/7367.26e21493.js.LICENSE.txt +13 -0
  13. package/dist/chunks/7367.26e21493.js.map +1 -0
  14. package/dist/chunks/7525.b8ed4213.js +2 -0
  15. package/dist/chunks/7525.b8ed4213.js.map +1 -0
  16. package/dist/chunks/7824.c9360190.js +3 -0
  17. package/dist/chunks/{6677.2fea9748.js.LICENSE.txt → 7824.c9360190.js.LICENSE.txt} +4 -12
  18. package/dist/chunks/7824.c9360190.js.map +1 -0
  19. package/dist/chunks/8324.71f13678.js +2 -0
  20. package/dist/chunks/8324.71f13678.js.map +1 -0
  21. package/dist/chunks/833.ea1388c6.js +2 -0
  22. package/dist/chunks/833.ea1388c6.js.map +1 -0
  23. package/dist/chunks/8989.ddf83737.js +2 -0
  24. package/dist/chunks/{8989.9db8c4fb.js.map → 8989.ddf83737.js.map} +1 -1
  25. package/dist/chunks/9535.9827a039.js +2 -0
  26. package/dist/chunks/9535.9827a039.js.map +1 -0
  27. package/dist/chunks/entity-sdk-get.37c62d5f.js +3 -0
  28. package/dist/chunks/entity-sdk-get.37c62d5f.js.LICENSE.txt +1 -0
  29. package/dist/chunks/entity-sdk-get.37c62d5f.js.map +1 -0
  30. package/dist/chunks/entity-sdk-list.0b8120ce.js +3 -0
  31. package/dist/chunks/entity-sdk-list.0b8120ce.js.LICENSE.txt +1 -0
  32. package/dist/chunks/entity-sdk-list.0b8120ce.js.map +1 -0
  33. package/dist/chunks/main.0cbe3b18.js +2 -0
  34. package/dist/chunks/main.0cbe3b18.js.map +1 -0
  35. package/dist/examples.json +11 -11
  36. package/dist/index.7b4d5912.js +2 -0
  37. package/dist/index.7b4d5912.js.map +1 -0
  38. package/dist/manifest.json +155 -149
  39. package/dist/types.json +546 -817
  40. package/dist-types/bootstrap.d.ts +2 -0
  41. package/dist-types/chat-stream/ChatStream.d.ts +1 -1
  42. package/dist-types/cruise-canvas/CruiseCanvas.d.ts +1 -1
  43. package/dist-types/cruise-canvas/NodeJob/NodeJob.d.ts +2 -2
  44. package/dist-types/cruise-canvas/interfaces.d.ts +3 -11
  45. package/dist-types/cruise-canvas/reducers/interfaces.d.ts +1 -0
  46. package/dist-types/data-providers/entity-sdk-get.d.ts +1 -0
  47. package/dist-types/data-providers/entity-sdk-list.d.ts +1 -0
  48. package/dist-types/shared/TaskContext.d.ts +5 -3
  49. package/dist-types/shared/getAsyncConstructedView.d.ts +2 -0
  50. package/dist-types/shared/interfaces.d.ts +11 -5
  51. package/dist-types/shared/workers/tsxParser.d.ts +5 -0
  52. package/dist-types/shared/workers/tsxParser.worker.d.ts +1 -0
  53. package/package.json +2 -2
  54. package/dist/chunks/1194.5eabae99.js +0 -2
  55. package/dist/chunks/1194.5eabae99.js.map +0 -1
  56. package/dist/chunks/1370.e6adbca3.js +0 -2
  57. package/dist/chunks/1370.e6adbca3.js.map +0 -1
  58. package/dist/chunks/3554.d1b81183.js +0 -2
  59. package/dist/chunks/3554.d1b81183.js.map +0 -1
  60. package/dist/chunks/4937.59e921b9.js +0 -2
  61. package/dist/chunks/4937.59e921b9.js.map +0 -1
  62. package/dist/chunks/6677.2fea9748.js +0 -3
  63. package/dist/chunks/6677.2fea9748.js.map +0 -1
  64. package/dist/chunks/7525.6915bed7.js +0 -2
  65. package/dist/chunks/7525.6915bed7.js.map +0 -1
  66. package/dist/chunks/8989.9db8c4fb.js +0 -2
  67. package/dist/chunks/main.a5c3ae85.js +0 -2
  68. package/dist/chunks/main.a5c3ae85.js.map +0 -1
  69. package/dist/index.f9bad569.js +0 -2
  70. package/dist/index.f9bad569.js.map +0 -1
  71. package/dist-types/cruise-canvas/utils/converters/convertButton.d.ts +0 -3
  72. package/dist-types/cruise-canvas/utils/converters/convertDashboard.d.ts +0 -3
  73. package/dist-types/cruise-canvas/utils/converters/convertDescriptions.d.ts +0 -3
  74. package/dist-types/cruise-canvas/utils/converters/convertEvents.d.ts +0 -3
  75. package/dist-types/cruise-canvas/utils/converters/convertFlexLayout.d.ts +0 -3
  76. package/dist-types/cruise-canvas/utils/converters/convertForm.d.ts +0 -3
  77. package/dist-types/cruise-canvas/utils/converters/convertFormItem.d.ts +0 -3
  78. package/dist-types/cruise-canvas/utils/converters/convertList.d.ts +0 -3
  79. package/dist-types/cruise-canvas/utils/converters/convertModal.d.ts +0 -3
  80. package/dist-types/cruise-canvas/utils/converters/convertTable.d.ts +0 -3
  81. package/dist-types/cruise-canvas/utils/converters/convertView.d.ts +0 -3
  82. package/dist-types/cruise-canvas/utils/converters/expressions.d.ts +0 -13
  83. package/dist-types/cruise-canvas/utils/converters/findNearestCandidate.d.ts +0 -3
  84. package/dist-types/cruise-canvas/utils/converters/findObjectIdByUsedDataContexts.d.ts +0 -7
  85. package/dist-types/cruise-canvas/utils/converters/getModelObjectInstanceId.d.ts +0 -1
  86. package/dist-types/cruise-canvas/utils/converters/getPreGeneratedAttrViews.d.ts +0 -1
  87. package/dist-types/cruise-canvas/utils/converters/getPreGeneratedMetricGroups.d.ts +0 -6
  88. package/dist-types/cruise-canvas/utils/converters/interfaces.d.ts +0 -75
  89. package/dist-types/cruise-canvas/utils/converters/raw-data-generate/convert.d.ts +0 -5
  90. package/dist-types/cruise-canvas/utils/converters/raw-data-generate/getMemberAccessor.d.ts +0 -1
  91. package/dist-types/cruise-canvas/utils/converters/raw-data-generate/raw-data-interfaces.d.ts +0 -87
  92. package/dist-types/cruise-canvas/utils/converters/withBox.d.ts +0 -3
  93. package/dist-types/cruise-canvas/utils/isJsxView.d.ts +0 -3
@@ -1,3 +0,0 @@
1
- /*! For license information please see 6677.2fea9748.js.LICENSE.txt */
2
- (globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[6677],{521:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(39600),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i?r.A.Buffer:void 0,s=o?o.allocUnsafe:void 0;const l=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},943:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!n||!e)return e;const r=`${t}Comments`;return e[r]?"leading"===t?e[r]=n.concat(e[r]):e[r].push(...n):e[r]=n,e}},1548:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Function.prototype.toString;const i=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1740:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1942:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(45718),i=n(11028);const a=e=>(e=>{const{r:t,g:n,b:a}=i.A.parse(e),o=.2126*r.A.channel.toLinear(t)+.7152*r.A.channel.toLinear(n)+.0722*r.A.channel.toLinear(a);return r.A.lang.round(o)})(e)>=.5,o=e=>!a(e)},2460:(e,t,n)=>{"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{A:()=>r,X:()=>i})},4044:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(83516),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r.A?r.A.toStringTag:void 0;var l=Object.prototype.toString;var c=r.A?r.A.toStringTag:void 0;const u=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}(e):function(e){return l.call(e)}(e)}},5162:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(58084),i=n(68452),a=(0,r.K2)((e=>{const{securityLevel:t}=(0,r.D7)();let n=(0,i.Ltv)("body");if("sandbox"===t){const t=(0,i.Ltv)(`#i${e}`),r=t.node()?.contentDocument??document;n=(0,i.Ltv)(r.body)}return n.select(`#${e}`)}),"selectSvgElement")},5414:(e,t,n)=>{"use strict";n.d(t,{FN:()=>i,Mk:()=>r}),n(56550);const r=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e;const i=r[0];return t&&i?function(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}(n,t,i):n},i=e=>{let{transform:t}=e;return{...t,x:0}}},6096:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(26979);const i=function(e,t){for(var n=e.length;n--;)if((0,r.A)(e[n][0],t))return n;return-1};var a=Array.prototype.splice;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o.prototype.clear=function(){this.__data__=[],this.size=0},o.prototype.delete=function(e){var t=this.__data__,n=i(t,e);return!(n<0||(n==t.length-1?t.pop():a.call(t,n,1),--this.size,0))},o.prototype.get=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]},o.prototype.has=function(e){return i(this.__data__,e)>-1},o.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const s=o},6473:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(26979),i=n(31475),a=n(85378),o=n(97942);const s=function(e,t,n){if(!(0,o.A)(n))return!1;var s=typeof t;return!!("number"==s?(0,i.A)(n)&&(0,a.A)(t,n.length):"string"==s&&t in n)&&(0,r.A)(n[t],e)}},6944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const n=t.preserveComments?i:a;for(const t of n)null!=e[t]&&(e[t]=void 0);for(const t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);const r=Object.getOwnPropertySymbols(e);for(const t of r)e[t]=null};var r=n(79897);const i=["tokens","start","end","loc","raw","rawValue"],a=[...r.COMMENT_KEYS,"comments",...i]},7083:(e,t,n)=>{"use strict";function r(e,t,n){if(e&&e.length){const[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(const t of e){const[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function i(e,t){return e[0]===t[0]&&e[1]===t[1]}function a(e,t,n,a=1){const o=n,s=Math.max(t,.1),l=e[0]&&e[0][0]&&"number"==typeof e[0][0]?[e]:e,c=[0,0];if(o)for(const e of l)r(e,c,o);const u=function(e,t,n){const r=[];for(const t of e){const e=[...t];i(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}const a=[];t=Math.max(t,.1);const o=[];for(const e of r)for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];if(n[1]!==r[1]){const e=Math.min(n[1],r[1]);o.push({ymin:e,ymax:Math.max(n[1],r[1]),x:e===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(o.sort(((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!o.length)return a;let s=[],l=o[0].ymin,c=0;for(;s.length||o.length;){if(o.length){let e=-1;for(let t=0;t<o.length&&!(o[t].ymin>l);t++)e=t;o.splice(0,e+1).forEach((e=>{s.push({s:l,edge:e})}))}if(s=s.filter((e=>!(e.edge.ymax<=l))),s.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),(1!==n||c%t==0)&&s.length>1)for(let e=0;e<s.length;e+=2){const t=e+1;if(t>=s.length)break;const n=s[e].edge,r=s[t].edge;a.push([[Math.round(n.x),l],[Math.round(r.x),l]])}l+=n,s.forEach((e=>{e.edge.x=e.edge.x+n*e.edge.islope})),c++}return a}(l,s,a);if(o){for(const e of l)r(e,c,-o);!function(e,t,n){const i=[];e.forEach((e=>i.push(...e))),r(i,t,n)}(u,c,-o)}return u}function o(e,t){var n;const r=t.hachureAngle+90;let i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return t.roughness>=1&&((null===(n=t.randomizer)||void 0===n?void 0:n.next())||Math.random())>.7&&(o=i),a(e,i,r,o||1)}n.d(t,{A:()=>ie});class s{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const n=o(e,t);return{type:"fillSketch",ops:this.renderLines(n,t)}}renderLines(e,t){const n=[];for(const r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}}function l(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}class c extends s{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);const r=o(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,a=[],s=.5*n*Math.cos(i),c=.5*n*Math.sin(i);for(const[e,t]of r)l([e,t])&&a.push([[e[0]-s,e[1]+c],[...t]],[[e[0]+s,e[1]-c],[...t]]);return{type:"fillSketch",ops:this.renderLines(a,t)}}}class u extends s{fillPolygons(e,t){const n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}}class p{constructor(e){this.helper=e}fillPolygons(e,t){const n=o(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){const n=[];let r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);const a=r/4;for(const o of e){const e=l(o),s=e/r,c=Math.ceil(s)-1,u=e-c*r,p=(o[0][0]+o[1][0])/2-r/4,d=Math.min(o[0][1],o[1][1]);for(let e=0;e<c;e++){const o=d+u+e*r,s=p-a+2*Math.random()*a,l=o-a+2*Math.random()*a,c=this.helper.ellipse(s,l,i,i,t);n.push(...c.ops)}}return{type:"fillSketch",ops:n}}}class d{constructor(e){this.helper=e}fillPolygons(e,t){const n=o(e,t);return{type:"fillSketch",ops:this.dashedLine(n,t)}}dashedLine(e,t){const n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach((e=>{const a=l(e),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2;let c=e[0],u=e[1];c[0]>u[0]&&(c=e[1],u=e[0]);const p=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let e=0;e<o;e++){const a=e*(n+r),o=a+n,l=[c[0]+a*Math.cos(p)+s*Math.cos(p),c[1]+a*Math.sin(p)+s*Math.sin(p)],u=[c[0]+o*Math.cos(p)+s*Math.cos(p),c[1]+o*Math.sin(p)+s*Math.sin(p)];i.push(...this.helper.doubleLineOps(l[0],l[1],u[0],u[1],t))}})),i}}class h{constructor(e){this.helper=e}fillPolygons(e,t){const n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,i=o(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(i,r,t)}}zigzagLines(e,t,n){const r=[];return e.forEach((e=>{const i=l(e),a=Math.round(i/(2*t));let o=e[0],s=e[1];o[0]>s[0]&&(o=e[1],s=e[0]);const c=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let e=0;e<a;e++){const i=2*e*t,a=2*(e+1)*t,s=Math.sqrt(2*Math.pow(t,2)),l=[o[0]+i*Math.cos(c),o[1]+i*Math.sin(c)],u=[o[0]+a*Math.cos(c),o[1]+a*Math.sin(c)],p=[l[0]+s*Math.cos(c+Math.PI/4),l[1]+s*Math.sin(c+Math.PI/4)];r.push(...this.helper.doubleLineOps(l[0],l[1],p[0],p[1],n),...this.helper.doubleLineOps(p[0],p[1],u[0],u[1],n))}})),r}}const f={};class y{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const g={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 m(e,t){return e.type===t}function b(e){const t=[],n=function(e){const t=new Array;for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e);let r="BOD",i=0,a=n[i];for(;!m(a,2);){let o=0;const s=[];if("BOD"===r){if("M"!==a.text&&"m"!==a.text)return b("M0,0"+e);i++,o=g[a.text],r=a.text}else m(a,1)?o=g[r]:(i++,o=g[a.text],r=a.text);if(!(i+o<n.length))throw new Error("Path data ended short");for(let e=i;e<i+o;e++){const t=n[e];if(!m(t,1))throw new Error("Param not a number: "+r+","+t.text);s[s.length]=+t.text}if("number"!=typeof g[r])throw new Error("Bad segment: "+r);{const e={key:r,data:s};t.push(e),i+=o,a=n[i],"M"===r&&(r="L"),"m"===r&&(r="l")}}return t}function x(e){let t=0,n=0,r=0,i=0;const a=[];for(const{key:o,data:s}of e)switch(o){case"M":a.push({key:"M",data:[...s]}),[t,n]=s,[r,i]=s;break;case"m":t+=s[0],n+=s[1],a.push({key:"M",data:[t,n]}),r=t,i=n;break;case"L":a.push({key:"L",data:[...s]}),[t,n]=s;break;case"l":t+=s[0],n+=s[1],a.push({key:"L",data:[t,n]});break;case"C":a.push({key:"C",data:[...s]}),t=s[4],n=s[5];break;case"c":{const e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:"C",data:e}),t=e[4],n=e[5];break}case"Q":a.push({key:"Q",data:[...s]}),t=s[2],n=s[3];break;case"q":{const e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:"Q",data:e}),t=e[2],n=e[3];break}case"A":a.push({key:"A",data:[...s]}),t=s[5],n=s[6];break;case"a":t+=s[5],n+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case"H":a.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...s]}),n=s[0];break;case"v":n+=s[0],a.push({key:"V",data:[n]});break;case"S":a.push({key:"S",data:[...s]}),t=s[2],n=s[3];break;case"s":{const e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:"S",data:e}),t=e[2],n=e[3];break}case"T":a.push({key:"T",data:[...s]}),t=s[0],n=s[1];break;case"t":t+=s[0],n+=s[1],a.push({key:"T",data:[t,n]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=r,n=i}return a}function S(e){const t=[];let n="",r=0,i=0,a=0,o=0,s=0,l=0;for(const{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[r,i]=u,[a,o]=u;break;case"C":t.push({key:"C",data:[...u]}),r=u[4],i=u[5],s=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[r,i]=u;break;case"H":r=u[0],t.push({key:"L",data:[r,i]});break;case"V":i=u[0],t.push({key:"L",data:[r,i]});break;case"S":{let e=0,a=0;"C"===n||"S"===n?(e=r+(r-s),a=i+(i-l)):(e=r,a=i),t.push({key:"C",data:[e,a,...u]}),s=u[0],l=u[1],r=u[2],i=u[3];break}case"T":{const[e,a]=u;let o=0,c=0;"Q"===n||"T"===n?(o=r+(r-s),c=i+(i-l)):(o=r,c=i);const p=r+2*(o-r)/3,d=i+2*(c-i)/3,h=e+2*(o-e)/3,f=a+2*(c-a)/3;t.push({key:"C",data:[p,d,h,f,e,a]}),s=o,l=c,r=e,i=a;break}case"Q":{const[e,n,a,o]=u,c=r+2*(e-r)/3,p=i+2*(n-i)/3,d=a+2*(e-a)/3,h=o+2*(n-o)/3;t.push({key:"C",data:[c,p,d,h,a,o]}),s=e,l=n,r=a,i=o;break}case"A":{const e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],l=u[5],c=u[6];0===e||0===n?(t.push({key:"C",data:[r,i,l,c,l,c]}),r=l,i=c):r===l&&i===c||(v(r,i,l,c,e,n,a,o,s).forEach((function(e){t.push({key:"C",data:e})})),r=l,i=c);break}case"Z":t.push({key:"Z",data:[]}),r=a,i=o}n=c}return t}function T(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function v(e,t,n,r,i,a,o,s,l,c){const u=(p=o,Math.PI*p/180);var p;let d=[],h=0,f=0,y=0,g=0;if(c)[h,f,y,g]=c;else{[e,t]=T(e,t,-u),[n,r]=T(n,r,-u);const o=(e-n)/2,c=(t-r)/2;let p=o*o/(i*i)+c*c/(a*a);p>1&&(p=Math.sqrt(p),i*=p,a*=p);const d=i*i,m=a*a,b=d*m-d*c*c-m*o*o,x=d*c*c+m*o*o,S=(s===l?-1:1)*Math.sqrt(Math.abs(b/x));y=S*i*c/a+(e+n)/2,g=S*-a*o/i+(t+r)/2,h=Math.asin(parseFloat(((t-g)/a).toFixed(9))),f=Math.asin(parseFloat(((r-g)/a).toFixed(9))),e<y&&(h=Math.PI-h),n<y&&(f=Math.PI-f),h<0&&(h=2*Math.PI+h),f<0&&(f=2*Math.PI+f),l&&h>f&&(h-=2*Math.PI),!l&&f>h&&(f-=2*Math.PI)}let m=f-h;if(Math.abs(m)>120*Math.PI/180){const e=f,t=n,s=r;f=l&&f>h?h+120*Math.PI/180*1:h+120*Math.PI/180*-1,d=v(n=y+i*Math.cos(f),r=g+a*Math.sin(f),t,s,i,a,o,0,l,[f,e,y,g])}m=f-h;const b=Math.cos(h),x=Math.sin(h),S=Math.cos(f),k=Math.sin(f),w=Math.tan(m/4),E=4/3*i*w,A=4/3*a*w,C=[e,t],_=[e+E*x,t-A*b],P=[n+E*k,r-A*S],O=[n,r];if(_[0]=2*C[0]-_[0],_[1]=2*C[1]-_[1],c)return[_,P,O].concat(d);{d=[_,P,O].concat(d);const e=[];for(let t=0;t<d.length;t+=3){const n=T(d[t][0],d[t][1],u),r=T(d[t+1][0],d[t+1][1],u),i=T(d[t+2][0],d[t+2][1],u);e.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return e}}const k={randOffset:function(e,t){return F(e,t)},randOffsetWithRange:function(e,t,n){return N(e,t,n)},ellipse:function(e,t,n,r,i){return _(e,t,i,C(n,r,i)).opset},doubleLineOps:function(e,t,n,r,i){return B(e,t,n,r,i,!0)}};function w(e,t,n,r,i){return{type:"path",ops:B(e,t,n,r,i)}}function E(e,t,n){const r=(e||[]).length;if(r>2){const i=[];for(let t=0;t<r-1;t++)i.push(...B(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&i.push(...B(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:i}}return 2===r?w(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function A(e,t){if(e.length){const n="number"==typeof e[0][0]?[e]:e,r=j(n[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:j(n[0],1.5*(1+.22*t.roughness),D(t));for(let e=1;e<n.length;e++){const a=n[e];if(a.length){const e=j(a,1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:j(a,1.5*(1+.22*t.roughness),D(t));for(const t of e)"move"!==t.op&&r.push(t);for(const e of n)"move"!==e.op&&i.push(e)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function C(e,t,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),a=2*Math.PI/i;let o=Math.abs(e/2),s=Math.abs(t/2);const l=1-n.curveFitting;return o+=F(o*l,n),s+=F(s*l,n),{increment:a,rx:o,ry:s}}function _(e,t,n,r){const[i,a]=z(r.increment,e,t,r.rx,r.ry,1,r.increment*N(.1,N(.4,1,n),n),n);let o=$(i,null,n);if(!n.disableMultiStroke&&0!==n.roughness){const[i]=z(r.increment,e,t,r.rx,r.ry,1.5,0,n),a=$(i,null,n);o=o.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function P(e,t,n,r,i,a,o,s,l){const c=e,u=t;let p=Math.abs(n/2),d=Math.abs(r/2);p+=F(.01*p,l),d+=F(.01*d,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);const y=2*Math.PI/l.curveStepCount,g=Math.min(y/2,(f-h)/2),m=K(g,c,u,p,d,h,f,1,l);if(!l.disableMultiStroke){const e=K(g,c,u,p,d,h,f,1.5,l);m.push(...e)}return o&&(s?m.push(...B(c,u,c+p*Math.cos(h),u+d*Math.sin(h),l),...B(c,u,c+p*Math.cos(f),u+d*Math.sin(f),l)):m.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+p*Math.cos(h),u+d*Math.sin(h)]})),{type:"path",ops:m}}function O(e,t){const n=S(x(b(e))),r=[];let i=[0,0],a=[0,0];for(const{key:e,data:o}of n)switch(e){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":r.push(...B(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case"C":{const[e,n,i,s,l,c]=o;r.push(...U(e,n,i,s,l,c,a,t)),a=[l,c];break}case"Z":r.push(...B(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:"path",ops:r}}function L(e,t){const n=[];for(const r of e)if(r.length){const e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+F(e,t),r[0][1]+F(e,t)]});for(let a=1;a<i;a++)n.push({op:"lineTo",data:[r[a][0]+F(e,t),r[a][1]+F(e,t)]})}}return{type:"fillPath",ops:n}}function I(e,t){return function(e,t){let n=e.fillStyle||"hachure";if(!f[n])switch(n){case"zigzag":f[n]||(f[n]=new c(t));break;case"cross-hatch":f[n]||(f[n]=new u(t));break;case"dots":f[n]||(f[n]=new p(t));break;case"dashed":f[n]||(f[n]=new d(t));break;case"zigzag-line":f[n]||(f[n]=new h(t));break;default:n="hachure",f[n]||(f[n]=new s(t))}return f[n]}(t,k).fillPolygons(e,t)}function D(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function M(e){return e.randomizer||(e.randomizer=new y(e.seed||0)),e.randomizer.next()}function N(e,t,n,r=1){return n.roughness*r*(M(n)*(t-e)+e)}function F(e,t,n=1){return N(-e,e,t,n)}function B(e,t,n,r,i,a=!1){const o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=R(e,t,n,r,i,!0,!1);if(o)return s;const l=R(e,t,n,r,i,!0,!0);return s.concat(l)}function R(e,t,n,r,i,a,o){const s=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(s);let 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);const p=u/2,d=.2+.2*M(i);let h=i.bowing*i.maxRandomnessOffset*(r-t)/200,f=i.bowing*i.maxRandomnessOffset*(e-n)/200;h=F(h,i,c),f=F(f,i,c);const y=[],g=()=>F(p,i,c),m=()=>F(u,i,c),b=i.preserveVertices;return a&&(o?y.push({op:"move",data:[e+(b?0:g()),t+(b?0:g())]}):y.push({op:"move",data:[e+(b?0:F(u,i,c)),t+(b?0:F(u,i,c))]})),o?y.push({op:"bcurveTo",data:[h+e+(n-e)*d+g(),f+t+(r-t)*d+g(),h+e+2*(n-e)*d+g(),f+t+2*(r-t)*d+g(),n+(b?0:g()),r+(b?0:g())]}):y.push({op:"bcurveTo",data:[h+e+(n-e)*d+m(),f+t+(r-t)*d+m(),h+e+2*(n-e)*d+m(),f+t+2*(r-t)*d+m(),n+(b?0:m()),r+(b?0:m())]}),y}function j(e,t,n){if(!e.length)return[];const r=[];r.push([e[0][0]+F(t,n),e[0][1]+F(t,n)]),r.push([e[0][0]+F(t,n),e[0][1]+F(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+F(t,n),e[i][1]+F(t,n)]),i===e.length-1&&r.push([e[i][0]+F(t,n),e[i][1]+F(t,n)]);return $(r,null,n)}function $(e,t,n){const r=e.length,i=[];if(r>3){const a=[],o=1-n.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){const n=e[t];a[0]=[n[0],n[1]],a[1]=[n[0]+(o*e[t+1][0]-o*e[t-1][0])/6,n[1]+(o*e[t+1][1]-o*e[t-1][1])/6],a[2]=[e[t+1][0]+(o*e[t][0]-o*e[t+2][0])/6,e[t+1][1]+(o*e[t][1]-o*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+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(t&&2===t.length){const e=n.maxRandomnessOffset;i.push({op:"lineTo",data:[t[0]+F(e,n),t[1]+F(e,n)]})}}else 3===r?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===r&&i.push(...R(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return i}function z(e,t,n,r,i,a,o,s){const l=[],c=[];if(0===s.roughness){e/=4,c.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let a=0;a<=2*Math.PI;a+=e){const e=[t+r*Math.cos(a),n+i*Math.sin(a)];l.push(e),c.push(e)}c.push([t+r*Math.cos(0),n+i*Math.sin(0)]),c.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{const u=F(.5,s)-Math.PI/2;c.push([F(a,s)+t+.9*r*Math.cos(u-e),F(a,s)+n+.9*i*Math.sin(u-e)]);const p=2*Math.PI+u-.01;for(let o=u;o<p;o+=e){const e=[F(a,s)+t+r*Math.cos(o),F(a,s)+n+i*Math.sin(o)];l.push(e),c.push(e)}c.push([F(a,s)+t+r*Math.cos(u+2*Math.PI+.5*o),F(a,s)+n+i*Math.sin(u+2*Math.PI+.5*o)]),c.push([F(a,s)+t+.98*r*Math.cos(u+o),F(a,s)+n+.98*i*Math.sin(u+o)]),c.push([F(a,s)+t+.9*r*Math.cos(u+.5*o),F(a,s)+n+.9*i*Math.sin(u+.5*o)])}return[c,l]}function K(e,t,n,r,i,a,o,s,l){const c=a+F(.1,l),u=[];u.push([F(s,l)+t+.9*r*Math.cos(c-e),F(s,l)+n+.9*i*Math.sin(c-e)]);for(let a=c;a<=o;a+=e)u.push([F(s,l)+t+r*Math.cos(a),F(s,l)+n+i*Math.sin(a)]);return u.push([t+r*Math.cos(o),n+i*Math.sin(o)]),u.push([t+r*Math.cos(o),n+i*Math.sin(o)]),$(u,null,l)}function U(e,t,n,r,i,a,o,s){const l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let u=[0,0];const p=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let h=0;h<p;h++)0===h?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(d?0:F(c[0],s)),o[1]+(d?0:F(c[0],s))]}),u=d?[i,a]:[i+F(c[h],s),a+F(c[h],s)],l.push({op:"bcurveTo",data:[e+F(c[h],s),t+F(c[h],s),n+F(c[h],s),r+F(c[h],s),u[0],u[1]]});return l}function q(e){return[...e]}function W(e,t=0){const n=e.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(3===n)r.push(q(e[0]),q(e[1]),q(e[2]),q(e[2]));else{const n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);const i=[],a=1-t;r.push(q(n[0]));for(let e=1;e+2<n.length;e++){const t=n[e];i[0]=[t[0],t[1]],i[1]=[t[0]+(a*n[e+1][0]-a*n[e-1][0])/6,t[1]+(a*n[e+1][1]-a*n[e-1][1])/6],i[2]=[n[e+1][0]+(a*n[e][0]-a*n[e+2][0])/6,n[e+1][1]+(a*n[e][1]-a*n[e+2][1])/6],i[3]=[n[e+1][0],n[e+1][1]],r.push(i[1],i[2],i[3])}}return r}function Y(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function H(e,t,n){const r=Y(t,n);if(0===r)return Y(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),Y(e,V(t,n,i))}function V(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function X(e,t,n,r){const i=r||[];if(function(e,t){const n=e[t+0],r=e[t+1],i=e[t+2],a=e[t+3];let o=3*r[0]-2*n[0]-a[0];o*=o;let s=3*r[1]-2*n[1]-a[1];s*=s;let l=3*i[0]-2*a[0]-n[0];l*=l;let c=3*i[1]-2*a[1]-n[1];return c*=c,o<l&&(o=l),s<c&&(s=c),o+s}(e,t)<n){const n=e[t+0];i.length?(a=i[i.length-1],o=n,Math.sqrt(Y(a,o))>1&&i.push(n)):i.push(n),i.push(e[t+3])}else{const r=.5,a=e[t+0],o=e[t+1],s=e[t+2],l=e[t+3],c=V(a,o,r),u=V(o,s,r),p=V(s,l,r),d=V(c,u,r),h=V(u,p,r),f=V(d,h,r);X([a,c,d,f],0,n,i),X([f,h,p,l],0,n,i)}var a,o;return i}function G(e,t){return Z(e,0,e.length,t)}function Z(e,t,n,r,i){const a=i||[],o=e[t],s=e[n-1];let l=0,c=1;for(let r=t+1;r<n-1;++r){const t=H(e[r],o,s);t>l&&(l=t,c=r)}return Math.sqrt(l)>r?(Z(e,t,c+1,r,a),Z(e,c,n,r,a)):(a.length||a.push(o),a.push(s)),a}function J(e,t=.15,n){const r=[],i=(e.length-1)/3;for(let n=0;n<i;n++)X(e,3*n,t,r);return n&&n>0?Z(r,0,r.length,n):r}const Q="none";class ee{constructor(e){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=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){const a=this._o(i);return this._d("line",[w(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){const a=this._o(i),o=[],s=function(e,t,n,r,i){return function(e,t){return E(e,!0,t)}([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],i)}(e,t,n,r,a);if(a.fill){const i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];"solid"===a.fillStyle?o.push(L([i],a)):o.push(I([i],a))}return a.stroke!==Q&&o.push(s),this._d("rectangle",o,a)}ellipse(e,t,n,r,i){const a=this._o(i),o=[],s=C(n,r,a),l=_(e,t,a,s);if(a.fill)if("solid"===a.fillStyle){const n=_(e,t,a,s).opset;n.type="fillPath",o.push(n)}else o.push(I([l.estimatedPoints],a));return a.stroke!==Q&&o.push(l.opset),this._d("ellipse",o,a)}circle(e,t,n,r){const i=this.ellipse(e,t,n,n,r);return i.shape="circle",i}linearPath(e,t){const n=this._o(t);return this._d("linearPath",[E(e,!1,n)],n)}arc(e,t,n,r,i,a,o=!1,s){const l=this._o(s),c=[],u=P(e,t,n,r,i,a,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){const o=Object.assign({},l);o.disableMultiStroke=!0;const s=P(e,t,n,r,i,a,!0,!1,o);s.type="fillPath",c.push(s)}else c.push(function(e,t,n,r,i,a,o){const s=e,l=t;let c=Math.abs(n/2),u=Math.abs(r/2);c+=F(.01*c,o),u+=F(.01*u,o);let p=i,d=a;for(;p<0;)p+=2*Math.PI,d+=2*Math.PI;d-p>2*Math.PI&&(p=0,d=2*Math.PI);const h=(d-p)/o.curveStepCount,f=[];for(let e=p;e<=d;e+=h)f.push([s+c*Math.cos(e),l+u*Math.sin(e)]);return f.push([s+c*Math.cos(d),l+u*Math.sin(d)]),f.push([s,l]),I([f],o)}(e,t,n,r,i,a,l));return l.stroke!==Q&&c.push(u),this._d("arc",c,l)}curve(e,t){const n=this._o(t),r=[],i=A(e,n);if(n.fill&&n.fill!==Q)if("solid"===n.fillStyle){const t=A(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else{const t=[],i=e;if(i.length){const e="number"==typeof i[0][0]?[i]:i;for(const r of e)r.length<3?t.push(...r):3===r.length?t.push(...J(W([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...J(W(r),10,(1+n.roughness)/2))}t.length&&r.push(I([t],n))}return n.stroke!==Q&&r.push(i),this._d("curve",r,n)}polygon(e,t){const n=this._o(t),r=[],i=E(e,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(L([e],n)):r.push(I([e],n))),n.stroke!==Q&&r.push(i),this._d("polygon",r,n)}path(e,t){const n=this._o(t),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&"transparent"!==n.fill&&n.fill!==Q,a=n.stroke!==Q,o=!!(n.simplification&&n.simplification<1),s=function(e,t,n){const r=S(x(b(e))),i=[];let a=[],o=[0,0],s=[];const l=()=>{s.length>=4&&a.push(...J(s,1)),s=[]},c=()=>{l(),a.length&&(i.push(a),a=[])};for(const{key:e,data:t}of r)switch(e){case"M":c(),o=[t[0],t[1]],a.push(o);break;case"L":l(),a.push([t[0],t[1]]);break;case"C":if(!s.length){const e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case"Z":l(),a.push([o[0],o[1]])}if(c(),!n)return i;const u=[];for(const e of i){const t=G(e,n);t.length&&u.push(t)}return u}(e,0,o?4-4*(n.simplification||1):(1+n.roughness)/2),l=O(e,n);if(i)if("solid"===n.fillStyle)if(1===s.length){const t=O(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else r.push(L(s,n));else r.push(I(s,n));return a&&(o?s.forEach((e=>{r.push(E(e,!1,n))})):r.push(l)),this._d("path",r,n)}opsToPath(e,t){let n="";for(const r of e.ops){const e="number"==typeof t&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case"move":n+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){const t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(const e of t){let t=null;switch(e.type){case"path":t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Q};break;case"fillPath":t={d:this.opsToPath(e),stroke:Q,strokeWidth:0,fill:n.fill||Q};break;case"fillSketch":t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||Q,strokeWidth:n,fill:Q}}_mergedShape(e){return e.filter(((e,t)=>0===t||"move"!==e.op))}}class te{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new ee(t)}draw(e){const t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(const a of t)switch(a.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";const t="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(r,a,i,t),r.restore();break}case"fillSketch":this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r="nonzero"){e.beginPath();for(const r of t.ops){const t="number"==typeof n&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case"move":e.moveTo(t[0],t[1]);break;case"bcurveTo":e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case"lineTo":e.lineTo(t[0],t[1])}}"fillPath"===t.type?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){const a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){const a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){const a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){const i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){const n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){const n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,o=!1,s){const l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l),l}curve(e,t){const n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){const n=this.gen.path(e,t);return this.draw(n),n}}const ne="http://www.w3.org/2000/svg";class re{constructor(e,t){this.svg=e,this.gen=new ee(t)}draw(e){const t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(ne,"g"),a=e.options.fixedDecimalPlaceDigits;for(const o of t){let t=null;switch(o.type){case"path":t=r.createElementNS(ne,"path"),t.setAttribute("d",this.opsToPath(o,a)),t.setAttribute("stroke",n.stroke),t.setAttribute("stroke-width",n.strokeWidth+""),t.setAttribute("fill","none"),n.strokeLineDash&&t.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":t=r.createElementNS(ne,"path"),t.setAttribute("d",this.opsToPath(o,a)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",n.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(r,o,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const i=e.createElementNS(ne,"path");return i.setAttribute("d",this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",r+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){const a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){const a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){const a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){const i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){const n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){const n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,o=!1,s){const l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l)}curve(e,t){const n=this.gen.curve(e,t);return this.draw(n)}path(e,t){const n=this.gen.path(e,t);return this.draw(n)}}var ie={canvas:(e,t)=>new te(e,t),svg:(e,t)=>new re(e,t),generator:e=>new ee(e),newSeed:()=>ee.newSeed()}},8041:(e,t,n)=>{"use strict";t.J=void 0;var r=n(25552);function i(e){try{return decodeURIComponent(e)}catch(t){return e}}t.J=function(e){if(!e)return r.BLANK_URL;var t,n,a=i(e.trim());do{t=(a=i(a=(n=a,n.replace(r.ctrlCharactersRegex,"").replace(r.htmlEntitiesRegex,(function(e,t){return String.fromCharCode(t)}))).replace(r.htmlCtrlEntityRegex,"").replace(r.ctrlCharactersRegex,"").replace(r.whitespaceEscapeCharsRegex,"").trim())).match(r.ctrlCharactersRegex)||a.match(r.htmlEntitiesRegex)||a.match(r.htmlCtrlEntityRegex)||a.match(r.whitespaceEscapeCharsRegex)}while(t&&t.length>0);var o=a;if(!o)return r.BLANK_URL;if(function(e){return r.relativeFirstCharacters.indexOf(e[0])>-1}(o))return o;var s=o.trimStart(),l=s.match(r.urlSchemeRegex);if(!l)return o;var c=l[0].toLowerCase().trim();if(r.invalidProtocolRegex.test(c))return r.BLANK_URL;var u=s.replace(/\\/g,"/");if("mailto:"===c||c.includes("://"))return u;if("http:"===c||"https:"===c){if(!function(e){return URL.canParse(e)}(u))return r.BLANK_URL;var p=new URL(u);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return u}},8324:(e,t,n)=>{"use strict";n.d(t,{uV:()=>h,s_:()=>k});var r=n(96514),i=n(67566);const a={capture:!0,passive:!1};function o(e){e.preventDefault(),e.stopImmediatePropagation()}function s(e){return((e=Math.exp(e))+1/e)/2}const l=function e(t,n,r){function i(e,i){var a,o,l=e[0],c=e[1],u=e[2],p=i[0],d=i[1],h=i[2],f=p-l,y=d-c,g=f*f+y*y;if(g<1e-12)o=Math.log(h/u)/t,a=function(e){return[l+e*f,c+e*y,u*Math.exp(t*e*o)]};else{var m=Math.sqrt(g),b=(h*h-u*u+r*g)/(2*u*n*m),x=(h*h-u*u-r*g)/(2*h*n*m),S=Math.log(Math.sqrt(b*b+1)-b),T=Math.log(Math.sqrt(x*x+1)-x);o=(T-S)/t,a=function(e){var r,i=e*o,a=s(S),p=u/(n*m)*(a*(r=t*i+S,((r=Math.exp(2*r))-1)/(r+1))-function(e){return((e=Math.exp(e))-1/e)/2}(S));return[l+p*f,c+p*y,u*a/s(t*i+S)]}}return a.duration=1e3*o*t/Math.SQRT2,a}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4);function c(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var u=n(81310);const p=e=>()=>e;function d(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function h(e,t,n){this.k=e,this.x=t,this.y=n}h.prototype={constructor:h,scale:function(e){return 1===e?this:new h(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new h(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var f=new h(1,0,0);function y(e){e.stopImmediatePropagation()}function g(e){e.preventDefault(),e.stopImmediatePropagation()}function m(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function b(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function x(){return this.__zoom||f}function S(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function T(){return navigator.maxTouchPoints||"ontouchstart"in this}function v(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function k(){var e,t,n,s=m,k=b,w=v,E=S,A=T,C=[0,1/0],_=[[-1/0,-1/0],[1/0,1/0]],P=250,O=l,L=(0,r.A)("start","zoom","end"),I=0,D=10;function M(e){e.property("__zoom",x).on("wheel.zoom",z,{passive:!1}).on("mousedown.zoom",K).on("dblclick.zoom",U).filter(A).on("touchstart.zoom",q).on("touchmove.zoom",W).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function N(e,t){return(t=Math.max(C[0],Math.min(C[1],t)))===e.k?e:new h(t,e.x,e.y)}function F(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new h(e.k,r,i)}function B(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function R(e,t,n,r){e.on("start.zoom",(function(){j(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){j(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,i=arguments,a=j(e,i).event(r),o=k.apply(e,i),s=null==n?B(o):"function"==typeof n?n.apply(e,i):n,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=e.__zoom,u="function"==typeof t?t.apply(e,i):t,p=O(c.invert(s).concat(l/c.k),u.invert(s).concat(l/u.k));return function(e){if(1===e)e=u;else{var t=p(e),n=l/t[2];e=new h(n,s[0]-t[0]*n,s[1]-t[1]*n)}a.zoom(null,e)}}))}function j(e,t,n){return!n&&e.__zooming||new $(e,t)}function $(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=k.apply(e,t),this.taps=0}function z(e,...t){if(s.apply(this,arguments)){var n=j(this,t).event(e),r=this.__zoom,i=Math.max(C[0],Math.min(C[1],r.k*Math.pow(2,E.apply(this,arguments)))),a=c(e);if(n.wheel)n.mouse[0][0]===a[0]&&n.mouse[0][1]===a[1]||(n.mouse[1]=r.invert(n.mouse[0]=a)),clearTimeout(n.wheel);else{if(r.k===i)return;n.mouse=[a,r.invert(a)],(0,u.G)(this),n.start()}g(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),150),n.zoom("mouse",w(F(N(r,i),n.mouse[0],n.mouse[1]),n.extent,_))}}function K(e,...t){if(!n&&s.apply(this,arguments)){var r,l,p,d=e.currentTarget,h=j(this,t,!0).event(e),f=(0,i.A)(e.view).on("mousemove.zoom",(function(e){if(g(e),!h.moved){var t=e.clientX-b,n=e.clientY-x;h.moved=t*t+n*n>I}h.event(e).zoom("mouse",w(F(h.that.__zoom,h.mouse[0]=c(e,d),h.mouse[1]),h.extent,_))}),!0).on("mouseup.zoom",(function(e){var t,n,r,s;f.on("mousemove.zoom mouseup.zoom",null),t=e.view,n=h.moved,r=t.document.documentElement,s=(0,i.A)(t).on("dragstart.drag",null),n&&(s.on("click.drag",o,a),setTimeout((function(){s.on("click.drag",null)}),0)),"onselectstart"in r?s.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect),g(e),h.event(e).end()}),!0),m=c(e,d),b=e.clientX,x=e.clientY;l=(r=e.view).document.documentElement,p=(0,i.A)(r).on("dragstart.drag",o,a),"onselectstart"in l?p.on("selectstart.drag",o,a):(l.__noselect=l.style.MozUserSelect,l.style.MozUserSelect="none"),y(e),h.mouse=[m,this.__zoom.invert(m)],(0,u.G)(this),h.start()}}function U(e,...t){if(s.apply(this,arguments)){var n=this.__zoom,r=c(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(r),o=n.k*(e.shiftKey?.5:2),l=w(F(N(n,o),r,a),k.apply(this,t),_);g(e),P>0?(0,i.A)(this).transition().duration(P).call(R,l,r,e):(0,i.A)(this).call(M.transform,l,r,e)}}function q(n,...r){if(s.apply(this,arguments)){var i,a,o,l,p=n.touches,d=p.length,h=j(this,r,n.changedTouches.length===d).event(n);for(y(n),a=0;a<d;++a)l=[l=c(o=p[a],this),this.__zoom.invert(l),o.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,i=!0,h.taps=1+!!e);e&&(e=clearTimeout(e)),i&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),500)),(0,u.G)(this),h.start())}}function W(e,...t){if(this.__zooming){var n,r,i,a,o=j(this,t).event(e),s=e.changedTouches,l=s.length;for(g(e),n=0;n<l;++n)i=c(r=s[n],this),o.touch0&&o.touch0[2]===r.identifier?o.touch0[0]=i:o.touch1&&o.touch1[2]===r.identifier&&(o.touch1[0]=i);if(r=o.that.__zoom,o.touch1){var u=o.touch0[0],p=o.touch0[1],d=o.touch1[0],h=o.touch1[1],f=(f=d[0]-u[0])*f+(f=d[1]-u[1])*f,y=(y=h[0]-p[0])*y+(y=h[1]-p[1])*y;r=N(r,Math.sqrt(f/y)),i=[(u[0]+d[0])/2,(u[1]+d[1])/2],a=[(p[0]+h[0])/2,(p[1]+h[1])/2]}else{if(!o.touch0)return;i=o.touch0[0],a=o.touch0[1]}o.zoom("touch",w(F(r,i,a),o.extent,_))}}function Y(e,...r){if(this.__zooming){var a,o,s=j(this,r).event(e),l=e.changedTouches,u=l.length;for(y(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),a=0;a<u;++a)o=l[a],s.touch0&&s.touch0[2]===o.identifier?delete s.touch0:s.touch1&&s.touch1[2]===o.identifier&&delete s.touch1;if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0]);else if(s.end(),2===s.taps&&(o=c(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<D)){var p=(0,i.A)(this).on("dblclick.zoom");p&&p.apply(this,arguments)}}}return M.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",x),e!==i?R(e,t,n,r):i.interrupt().each((function(){j(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},M.scaleBy=function(e,t,n,r){M.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,r)},M.scaleTo=function(e,t,n,r){M.transform(e,(function(){var e=k.apply(this,arguments),r=this.__zoom,i=null==n?B(e):"function"==typeof n?n.apply(this,arguments):n,a=r.invert(i),o="function"==typeof t?t.apply(this,arguments):t;return w(F(N(r,o),i,a),e,_)}),n,r)},M.translateBy=function(e,t,n,r){M.transform(e,(function(){return w(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),k.apply(this,arguments),_)}),null,r)},M.translateTo=function(e,t,n,r,i){M.transform(e,(function(){var e=k.apply(this,arguments),i=this.__zoom,a=null==r?B(e):"function"==typeof r?r.apply(this,arguments):r;return w(f.translate(a[0],a[1]).scale(i.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,_)}),r,i)},$.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=(0,i.A)(this.that).datum();L.call(e,this.that,new d(e,{sourceEvent:this.sourceEvent,target:M,type:e,transform:this.that.__zoom,dispatch:L}),t)}},M.wheelDelta=function(e){return arguments.length?(E="function"==typeof e?e:p(+e),M):E},M.filter=function(e){return arguments.length?(s="function"==typeof e?e:p(!!e),M):s},M.touchable=function(e){return arguments.length?(A="function"==typeof e?e:p(!!e),M):A},M.extent=function(e){return arguments.length?(k="function"==typeof e?e:p([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),M):k},M.scaleExtent=function(e){return arguments.length?(C[0]=+e[0],C[1]=+e[1],M):[C[0],C[1]]},M.translateExtent=function(e){return arguments.length?(_[0][0]=+e[0][0],_[1][0]=+e[1][0],_[0][1]=+e[0][1],_[1][1]=+e[1][1],M):[[_[0][0],_[0][1]],[_[1][0],_[1][1]]]},M.constrain=function(e){return arguments.length?(w=e,M):w},M.duration=function(e){return arguments.length?(P=+e,M):P},M.interpolate=function(e){return arguments.length?(O=e,M):O},M.on=function(){var e=L.on.apply(L,arguments);return e===L?M:e},M.clickDistance=function(e){return arguments.length?(I=(e=+e)*e,M):Math.sqrt(I)},M.tapDistance=function(e){return arguments.length?(D=+e,M):D},M}h.prototype},8406:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(86330),i=n(57372),a=function(){var e=(0,r.A)((function*(e,t,n){return(yield i.http.post("api/gateway/cmdb.instance.PostSearchV3/v3/object/".concat(e,"/instance/_search"),t,n)).data}));return function(t,n,r){return e.apply(this,arguments)}}()},8968:(e,t,n)=>{"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from("string"==typeof e?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce((function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map((function(e){var t,n;return null!==(n=null===(t=e.match(/[\t ]/g))||void 0===t?void 0:t.length)&&void 0!==n?n:0}))):e}),[]);if(i.length){var a=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");r=r.map((function(e){return e.replace(a,"\n")}))}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return t.forEach((function(e,t){var n=o.match(/(?:^|\n)( *)$/),i=n?n[1]:"",a=e;"string"==typeof e&&e.includes("\n")&&(a=String(e).split("\n").map((function(e,t){return 0===t?e:""+i+e})).join("\n")),o+=a+r[t+1]})),o}n.d(t,{T:()=>r})},10010:(e,t,n)=>{"use strict";function r(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function i(e){return e.join(" ").trim()}n.d(t,{A:()=>i,q:()=>r})},10187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(60133),i=n(93806);t.default=function(e,t){if((0,r.isStatement)(e))return e;let n,a=!1;if((0,r.isClass)(e))a=!0,n="ClassDeclaration";else if((0,r.isFunction)(e))a=!0,n="FunctionDeclaration";else if((0,r.isAssignmentExpression)(e))return(0,i.expressionStatement)(e);if(a&&!e.id&&(n=!1),!n){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e}},10248:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(36713),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i&&r.A.process;const s=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}()},11028:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(63545),i=n(64607);const a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;const t=e.match(a.re);if(!t)return;const n=t[1],i=parseInt(n,16),o=n.length,s=o%4==0,l=o>4,c=l?1:17,u=l?8:4,p=s?0:-1,d=l?255:15;return r.A.set({r:(i>>u*(p+3)&d)*c,g:(i>>u*(p+2)&d)*c,b:(i>>u*(p+1)&d)*c,a:s?(i&d)*c/255:1},e)},stringify:e=>{const{r:t,g:n,b:r,a}=e;return a<1?`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}${i.Y[Math.round(255*a)]}`:`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}`}},o=a;var s=n(45718);const l={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(l.hueRe);if(t){const[,e,n]=t;switch(n){case"grad":return s.A.channel.clamp.h(.9*parseFloat(e));case"rad":return s.A.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(e))}}return s.A.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(104!==t&&72!==t)return;const n=e.match(l.re);if(!n)return;const[,i,a,o,c,u]=n;return r.A.set({h:l._hue2deg(i),s:s.A.channel.clamp.s(parseFloat(a)),l:s.A.channel.clamp.l(parseFloat(o)),a:c?s.A.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%, ${i})`:`hsl(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%)`}},c=l,u={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=u.colors[e];if(t)return o.parse(t)},stringify:e=>{const t=o.stringify(e);for(const e in u.colors)if(u.colors[e]===t)return e}},p=u,d={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(114!==t&&82!==t)return;const n=e.match(d.re);if(!n)return;const[,i,a,o,l,c,u,p,h]=n;return r.A.set({r:s.A.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:s.A.channel.clamp.g(l?2.55*parseFloat(o):parseFloat(o)),b:s.A.channel.clamp.b(u?2.55*parseFloat(c):parseFloat(c)),a:p?s.A.channel.clamp.a(h?parseFloat(p)/100:parseFloat(p)):1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)})`:`rgb(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)})`}},h=d,f={format:{keyword:u,hex:o,rgb:d,rgba:d,hsl:l,hsla:l},parse:e=>{if("string"!=typeof e)return e;const t=o.parse(e)||h.parse(e)||c.parse(e)||p.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(i.Z.HSL)||void 0===e.data.r?c.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?h.stringify(e):o.stringify(e)},y=f},11350:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){const n=(0,r.default)(e[t],e);return e[t]=n,n};var r=n(98999)},11515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("innerComments",e,t)};var r=n(30594)},12456:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildUndefinedNode=function(){return(0,r.unaryExpression)("void",(0,r.numericLiteral)(0),!0)};var r=n(93806)},12880:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var r=(0,n(58084).K2)((({flowchart:e})=>{const t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}}),"getSubGraphTitleMargins")},13269:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});const r=(0,n(50123).A)(Object,"create");var i=Object.prototype.hasOwnProperty;var a=Object.prototype.hasOwnProperty;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},o.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},o.prototype.get=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0},o.prototype.has=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)},o.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this};const s=o;var l=n(6096),c=n(25436);const u=function(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};function p(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}p.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(c.A||l.A),string:new s}},p.prototype.delete=function(e){var t=u(this,e).delete(e);return this.size-=t?1:0,t},p.prototype.get=function(e){return u(this,e).get(e)},p.prototype.has=function(e){return u(this,e).has(e)},p.prototype.set=function(e,t){var n=u(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const d=p},14007:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var r=n(41628),i=n(82364)},14151:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return e}},15937:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var p=1,d=1;function h(e){var t=e.match(n);t&&(p+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:p,column:d};return function(t){return t.position=new y(e),x(),t}}function y(e){this.start=e,this.end={line:p,column:d},this.source=l.source}y.prototype.content=e;var g=[];function m(t){var n=new Error(l.source+":"+p+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=p,n.column=d,n.source=e,!l.silent)throw n;g.push(n)}function b(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function x(){b(r)}function S(e){var t;for(e=e||[];t=T();)!1!==t&&e.push(t);return e}function T(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function v(){var e=f(),n=b(i);if(n){if(T(),!b(a))return m("property missing ':'");var r=b(o),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return b(s),l}}return x(),function(){var e,t=[];for(S(t);e=v();)!1!==e&&(t.push(e),S(t));return t}()}},16264:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Math.max;const i=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=r(i.length-t,0),s=Array(o);++a<o;)s[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(s),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,l)}}},16585:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(51662);function i(e){e.register(r.A),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}i.displayName="javascript",i.aliases=["js"]},16812:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0,n=!1){return l(e,t,n,new Map)};var r=n(49390),i=n(60133);const{hasOwn:a}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function o(e,t,n,r){return e&&"string"==typeof e.type?l(e,t,n,r):e}function s(e,t,n,r){return Array.isArray(e)?e.map((e=>o(e,t,n,r))):o(e,t,n,r)}function l(e,t=!0,n=!1,o){if(!e)return e;const{type:l}=e,u={type:e.type};if((0,i.isIdentifier)(e))u.name=e.name,a(e,"optional")&&"boolean"==typeof e.optional&&(u.optional=e.optional),a(e,"typeAnnotation")&&(u.typeAnnotation=t?s(e.typeAnnotation,!0,n,o):e.typeAnnotation),a(e,"decorators")&&(u.decorators=t?s(e.decorators,!0,n,o):e.decorators);else{if(!a(r.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const p of Object.keys(r.NODE_FIELDS[l]))a(e,p)&&(u[p]=t?(0,i.isFile)(e)&&"comments"===p?c(e.comments,t,n,o):s(e[p],!0,n,o):e[p])}return a(e,"loc")&&(u.loc=n?null:e.loc),a(e,"leadingComments")&&(u.leadingComments=c(e.leadingComments,t,n,o)),a(e,"innerComments")&&(u.innerComments=c(e.innerComments,t,n,o)),a(e,"trailingComments")&&(u.trailingComments=c(e.trailingComments,t,n,o)),a(e,"extra")&&(u.extra=Object.assign({},e.extra)),u}function c(e,t,n,r){return e&&t?e.map((e=>{const t=r.get(e);if(t)return t;const{type:i,value:a,loc:o}=e,s={type:i,value:a,loc:o};return n&&(s.loc=null),r.set(e,s),s})):e}},17627:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e+="";let t="";for(const n of e)t+=(0,i.isIdentifierChar)(n.codePointAt(0))?n:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})),(0,r.default)(t)||(t=`_${t}`),t||"_"};var r=n(78126),i=n(14007)},18218:(e,t,n)=>{"use strict";var r=n(65183);(0,r.default)("ArgumentPlaceholder",{}),(0,r.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}}),(0,r.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),(0,r.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,r.assertNodeType)("BlockStatement")},async:{validate:(0,r.assertValueType)("boolean"),default:!1}}}),(0,r.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,r.assertNodeType)("Identifier")}}}),(0,r.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,r.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,r.default)("TupleExpression",{fields:{elements:{validate:(0,r.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,r.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,r.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,r.assertNodeType)("Program")}},aliases:["Expression"]}),(0,r.default)("TopicReference",{aliases:["Expression"]}),(0,r.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,r.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,r.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,r.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]})},18271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(46676);t.default=function(e,t){return(0,r.default)(e,t,!0)}},18445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("leadingComments",e,t)};var r=n(30594)},19835:(e,t,n)=>{"use strict";n.d(t,{qy:()=>b,JW:()=>x});class r{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function i(e,t){const n={},i={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(i,e[a].normal);return new r(n,i,t)}r.prototype.property={},r.prototype.normal={},r.prototype.space=null;var a=n(46738),o=n(35772);const s={}.hasOwnProperty;function l(e){const t={},n={};let i;for(i in e.properties)if(s.call(e.properties,i)){const r=e.properties[i],s=new o.E(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[(0,a.S)(i)]=i,n[(0,a.S)(s.attribute)]=i}return new r(t,n,e.space)}const c=l({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),u=l({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function p(e,t){return t in e?e[t]:t}function d(e,t){return p(e,t.toLowerCase())}const h=l({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:d,properties:{xmlns:null,xmlnsXLink:null}});var f=n(41167);const y=l({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:f.booleanish,ariaAutoComplete:null,ariaBusy:f.booleanish,ariaChecked:f.booleanish,ariaColCount:f.number,ariaColIndex:f.number,ariaColSpan:f.number,ariaControls:f.spaceSeparated,ariaCurrent:null,ariaDescribedBy:f.spaceSeparated,ariaDetails:null,ariaDisabled:f.booleanish,ariaDropEffect:f.spaceSeparated,ariaErrorMessage:null,ariaExpanded:f.booleanish,ariaFlowTo:f.spaceSeparated,ariaGrabbed:f.booleanish,ariaHasPopup:null,ariaHidden:f.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:f.spaceSeparated,ariaLevel:f.number,ariaLive:null,ariaModal:f.booleanish,ariaMultiLine:f.booleanish,ariaMultiSelectable:f.booleanish,ariaOrientation:null,ariaOwns:f.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:f.number,ariaPressed:f.booleanish,ariaReadOnly:f.booleanish,ariaRelevant:null,ariaRequired:f.booleanish,ariaRoleDescription:f.spaceSeparated,ariaRowCount:f.number,ariaRowIndex:f.number,ariaRowSpan:f.number,ariaSelected:f.booleanish,ariaSetSize:f.number,ariaSort:null,ariaValueMax:f.number,ariaValueMin:f.number,ariaValueNow:f.number,ariaValueText:null,role:null}}),g=l({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:d,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:f.commaSeparated,acceptCharset:f.spaceSeparated,accessKey:f.spaceSeparated,action:null,allow:null,allowFullScreen:f.boolean,allowPaymentRequest:f.boolean,allowUserMedia:f.boolean,alt:null,as:null,async:f.boolean,autoCapitalize:null,autoComplete:f.spaceSeparated,autoFocus:f.boolean,autoPlay:f.boolean,capture:f.boolean,charSet:null,checked:f.boolean,cite:null,className:f.spaceSeparated,cols:f.number,colSpan:null,content:null,contentEditable:f.booleanish,controls:f.boolean,controlsList:f.spaceSeparated,coords:f.number|f.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:f.boolean,defer:f.boolean,dir:null,dirName:null,disabled:f.boolean,download:f.overloadedBoolean,draggable:f.booleanish,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:f.boolean,formTarget:null,headers:f.spaceSeparated,height:f.number,hidden:f.boolean,high:f.number,href:null,hrefLang:null,htmlFor:f.spaceSeparated,httpEquiv:f.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:f.boolean,itemId:null,itemProp:f.spaceSeparated,itemRef:f.spaceSeparated,itemScope:f.boolean,itemType:f.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:f.boolean,low:f.number,manifest:null,max:null,maxLength:f.number,media:null,method:null,min:null,minLength:f.number,multiple:f.boolean,muted:f.boolean,name:null,nonce:null,noModule:f.boolean,noValidate:f.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:f.boolean,optimum:f.number,pattern:null,ping:f.spaceSeparated,placeholder:null,playsInline:f.boolean,poster:null,preload:null,readOnly:f.boolean,referrerPolicy:null,rel:f.spaceSeparated,required:f.boolean,reversed:f.boolean,rows:f.number,rowSpan:f.number,sandbox:f.spaceSeparated,scope:null,scoped:f.boolean,seamless:f.boolean,selected:f.boolean,shape:null,size:f.number,sizes:null,slot:null,span:f.number,spellCheck:f.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:f.number,step:null,style:null,tabIndex:f.number,target:null,title:null,translate:null,type:null,typeMustMatch:f.boolean,useMap:null,value:f.booleanish,width:f.number,wrap:null,align:null,aLink:null,archive:f.spaceSeparated,axis:null,background:null,bgColor:null,border:f.number,borderColor:null,bottomMargin:f.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:f.boolean,declare:f.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:f.number,leftMargin:f.number,link:null,longDesc:null,lowSrc:null,marginHeight:f.number,marginWidth:f.number,noResize:f.boolean,noHref:f.boolean,noShade:f.boolean,noWrap:f.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:f.number,rules:null,scheme:null,scrolling:f.booleanish,standby:null,summary:null,text:null,topMargin:f.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:f.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:f.boolean,disableRemotePlayback:f.boolean,prefix:null,property:null,results:f.number,security:null,unselectable:null}}),m=l({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:p,properties:{about:f.commaOrSpaceSeparated,accentHeight:f.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:f.number,amplitude:f.number,arabicForm:null,ascent:f.number,attributeName:null,attributeType:null,azimuth:f.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:f.number,by:null,calcMode:null,capHeight:f.number,className:f.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:f.number,diffuseConstant:f.number,direction:null,display:null,dur:null,divisor:f.number,dominantBaseline:null,download:f.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:f.number,enableBackground:null,end:null,event:null,exponent:f.number,externalResourcesRequired:null,fill:null,fillOpacity:f.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:f.commaSeparated,g2:f.commaSeparated,glyphName:f.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:f.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:f.number,horizOriginX:f.number,horizOriginY:f.number,id:null,ideographic:f.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:f.number,k:f.number,k1:f.number,k2:f.number,k3:f.number,k4:f.number,kernelMatrix:f.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:f.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:f.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:f.number,overlineThickness:f.number,paintOrder:null,panose1:null,path:null,pathLength:f.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:f.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:f.number,pointsAtY:f.number,pointsAtZ:f.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:f.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:f.commaOrSpaceSeparated,rev:f.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:f.commaOrSpaceSeparated,requiredFeatures:f.commaOrSpaceSeparated,requiredFonts:f.commaOrSpaceSeparated,requiredFormats:f.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:f.number,specularExponent:f.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:f.number,strikethroughThickness:f.number,string:null,stroke:null,strokeDashArray:f.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:f.number,strokeOpacity:f.number,strokeWidth:null,style:null,surfaceScale:f.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:f.commaOrSpaceSeparated,tabIndex:f.number,tableValues:null,target:null,targetX:f.number,targetY:f.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:f.commaOrSpaceSeparated,to:null,transform:null,u1:null,u2:null,underlinePosition:f.number,underlineThickness:f.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:f.number,values:null,vAlphabetic:f.number,vMathematical:f.number,vectorEffect:null,vHanging:f.number,vIdeographic:f.number,version:null,vertAdvY:f.number,vertOriginX:f.number,vertOriginY:f.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:f.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),b=i([u,c,h,y,g],"html"),x=i([u,c,h,y,m],"svg")},20266:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e)&&("var"!==e.kind||e[i])};var r=n(60133),i=Symbol.for("var used to be block scoped")},21342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e,{kind:"var"})&&!e[i]};var r=n(60133),i=Symbol.for("var used to be block scoped")},21535:(e,t,n)=>{"use strict";n.d(t,{XX:()=>u,q7:()=>p,sO:()=>c});var r=n(54386),i=n(84857),a=n(65323),o=n(58084),s={common:o.Y2,getConfig:o.zj,insertCluster:i.U,insertEdge:r.Jo,insertEdgeLabel:r.jP,insertMarkers:r.g0,insertNode:i.on,interpolateToCurve:a.Ib,labelHelper:i.Zk,log:o.Rm,positionEdgeLabel:r.T_},l={},c=(0,o.K2)((e=>{for(const t of e)l[t.name]=t}),"registerLayoutLoaders");(0,o.K2)((()=>{c([{name:"dagre",loader:(0,o.K2)((async()=>await Promise.all([n.e(6530),n.e(4228),n.e(6161)]).then(n.bind(n,6161))),"loader")}])}),"registerDefaultLayoutLoaders")();var u=(0,o.K2)((async(e,t)=>{if(!(e.layoutAlgorithm in l))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const n=l[e.layoutAlgorithm];return(await n.loader()).render(e,t,s,{algorithm:n.algorithm})}),"render"),p=(0,o.K2)(((e="",{fallback:t="dagre"}={})=>{if(e in l)return e;if(t in l)return o.Rm.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)}),"getRegisteredLayoutAlgorithm")},22092:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});class r{constructor(e,t){this.property=e,this.attribute=t}}r.prototype.space=null,r.prototype.boolean=!1,r.prototype.booleanish=!1,r.prototype.overloadedBoolean=!1,r.prototype.number=!1,r.prototype.commaSeparated=!1,r.prototype.spaceSeparated=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.mustUseProperty=!1,r.prototype.defined=!1},22852:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){const l=[];let c=!0;for(const u of t)if((0,i.isEmptyStatement)(u)||(c=!1),(0,i.isExpression)(u))l.push(u);else if((0,i.isExpressionStatement)(u))l.push(u.expression);else if((0,i.isVariableDeclaration)(u)){if("var"!==u.kind)return;for(const e of u.declarations){const t=(0,r.default)(e);for(const e of Object.keys(t))n.push({kind:u.kind,id:(0,s.default)(t[e])});e.init&&l.push((0,a.assignmentExpression)("=",e.id,e.init))}c=!0}else if((0,i.isIfStatement)(u)){const t=u.consequent?e([u.consequent],n):(0,o.buildUndefinedNode)(),r=u.alternate?e([u.alternate],n):(0,o.buildUndefinedNode)();if(!t||!r)return;l.push((0,a.conditionalExpression)(u.test,t,r))}else if((0,i.isBlockStatement)(u)){const t=e(u.body,n);if(!t)return;l.push(t)}else{if(!(0,i.isEmptyStatement)(u))return;0===t.indexOf(u)&&(c=!0)}return c&&l.push((0,o.buildUndefinedNode)()),1===l.length?l[0]:(0,a.sequenceExpression)(l)};var r=n(46676),i=n(60133),a=n(93806),o=n(12456),s=n(16812)},22857:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[++r];if(!1===t(i[s],s,i))break}return e}},22937:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(36781),i=n(99271),a=n(26979);const o=function(e,t,n){(void 0!==n&&!(0,a.A)(e[t],n)||void 0===n&&!(t in e))&&(0,i.A)(e,t,n)};var s=n(22857),l=n(521),c=n(65246),u=n(80084),p=n(98250),d=n(88748),h=n(96956),f=n(40376),y=n(34517),g=n(50405),m=n(97942),b=n(4044),x=n(34878),S=n(47313),T=Function.prototype,v=Object.prototype,k=T.toString,w=v.hasOwnProperty,E=k.call(Object);var A=n(92888);const C=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var _=n(28078),P=n(81594);const O=function(e,t,n,r,i,a,s){var T,v=C(e,n),O=C(t,n),L=s.get(O);if(L)o(e,n,L);else{var I=a?a(v,O,n+"",e,t,s):void 0,D=void 0===I;if(D){var M=(0,h.A)(O),N=!M&&(0,y.A)(O),F=!M&&!N&&(0,A.A)(O);I=O,M||N||F?(0,h.A)(v)?I=v:(0,f.A)(v)?I=(0,u.A)(v):N?(D=!1,I=(0,l.A)(O,!0)):F?(D=!1,I=(0,c.A)(O,!0)):I=[]:function(e){if(!(0,S.A)(e)||"[object Object]"!=(0,b.A)(e))return!1;var t=(0,x.A)(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&k.call(n)==E}(O)||(0,d.A)(O)?(I=v,(0,d.A)(v)?(T=v,I=(0,_.A)(T,(0,P.A)(T))):(0,m.A)(v)&&!(0,g.A)(v)||(I=(0,p.A)(O))):D=!1}D&&(s.set(O,I),i(I,O,r,a,s),s.delete(O)),o(e,n,I)}},L=function e(t,n,i,a,l){t!==n&&(0,s.A)(n,(function(s,c){if(l||(l=new r.A),(0,m.A)(s))O(t,n,c,i,e,a,l);else{var u=a?a(C(t,c),s,c+"",t,n,l):void 0;void 0===u&&(u=s),o(t,c,u)}}),P.A)},I=(0,n(98050).A)((function(e,t,n){L(e,t,n)}))},23464:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",i="minute",a="hour",o="day",s="week",l="month",c="quarter",u="year",p="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|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,y={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(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},m={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:s,d:o,D:p,h:a,m:i,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",x={};x[b]=y;var S="$isDayjsObject",T=function(e){return e instanceof E||!(!e||!e[S])},v=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();x[a]&&(i=a),n&&(x[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},k=function(e,t){if(T(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},w=m;w.l=v,w.i=T,w.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function y(e){this.$L=v(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var g=y.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return w},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return k(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<k(e)},g.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!w.u(t)||t,d=w.p(e),h=function(e,t){var r=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(o)},f=function(e,t){return w.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},y=this.$W,g=this.$M,m=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case u:return c?h(1,0):h(31,11);case l:return c?h(1,g):h(0,g+1);case s:var x=this.$locale().weekStart||0,S=(y<x?y+7:y)-x;return h(c?m-S:m+(6-S),g);case o:case p:return f(b+"Hours",0);case a:return f(b+"Minutes",1);case i:return f(b+"Seconds",2);case r:return f(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=w.p(e),d="set"+(this.$u?"UTC":""),h=(s={},s[o]=d+"Date",s[p]=d+"Date",s[l]=d+"Month",s[u]=d+"FullYear",s[a]=d+"Hours",s[i]=d+"Minutes",s[r]=d+"Seconds",s[n]=d+"Milliseconds",s)[c],f=c===o?this.$D+(t-this.$W):t;if(c===l||c===u){var y=this.clone().set(p,1);y.$d[h](f),y.init(),this.$d=y.set(p,Math.min(this.$D,y.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[w.p(e)]()},g.add=function(n,c){var p,d=this;n=Number(n);var h=w.p(c),f=function(e){var t=k(d);return w.w(t.date(t.date()+Math.round(e*n)),d)};if(h===l)return this.set(l,this.$M+n);if(h===u)return this.set(u,this.$y+n);if(h===o)return f(1);if(h===s)return f(7);var y=(p={},p[i]=e,p[a]=t,p[r]=1e3,p)[h]||1,g=this.$d.getTime()+n*y;return w.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=w.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,p=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},h=function(e){return w.s(a%12||12,e,"0")},y=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return w.s(t.$y,4,"0");case"M":return s+1;case"MM":return w.s(s+1,2,"0");case"MMM":return p(n.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return w.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,l,2);case"ddd":return p(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return w.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return y(a,o,!0);case"A":return y(a,o,!1);case"m":return String(o);case"mm":return w.s(o,2,"0");case"s":return String(t.$s);case"ss":return w.s(t.$s,2,"0");case"SSS":return w.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,p,d){var h,f=this,y=w.p(p),g=k(n),m=(g.utcOffset()-this.utcOffset())*e,b=this-g,x=function(){return w.m(f,g)};switch(y){case u:h=x()/12;break;case l:h=x();break;case c:h=x()/3;break;case s:h=(b-m)/6048e5;break;case o:h=(b-m)/864e5;break;case a:h=b/t;break;case i:h=b/e;break;case r:h=b/1e3;break;default:h=b}return d?h:w.a(h)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return x[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=v(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return w.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},y}(),A=E.prototype;return k.prototype=A,[["$ms",n],["$s",r],["$m",i],["$H",a],["$W",o],["$M",l],["$y",u],["$D",p]].forEach((function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,E,k),e.$i=!0),k},k.locale=v,k.isDayjs=T,k.unix=function(e){return k(1e3*e)},k.en=x[b],k.Ls=x,k.p={},k}()},23640:(e,t,n)=>{"use strict";n.d(t,{A:()=>M});var r=n(69820);const i="object"==typeof self?self:globalThis,a=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[o,s]=t[a];switch(o){case 0:case-1:return n(s,a);case 1:{const e=n([],a);for(const t of s)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),a);case 4:{const{source:e,flags:t}=s;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of s)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of s)e.add(r(t));return e}case 7:{const{name:e,message:t}=s;return n(new i[e](t),a)}case 8:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(new i[o](s),a)};return r})(new Map,e)(0),o="",{toString:s}={},{keys:l}=Object,c=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=s.call(e).slice(8,-1);switch(n){case"Array":return[1,o];case"Object":return[2,o];case"Date":return[3,o];case"RegExp":return[4,o];case"Map":return[5,o];case"Set":return[6,o];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},u=([e,t])=>0===e&&("function"===t||"symbol"===t),p=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=c(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}const e=[],t=i([o,e],r);for(const t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());const n=[],p=i([o,n],r);for(const t of l(r))!e&&u(c(r[t]))||n.push([a(t),a(r[t])]);return p}case 3:return i([o,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{const t=[],n=i([o,t],r);for(const[n,i]of r)(e||!u(c(n))&&!u(c(i)))&&t.push([a(n),a(i)]);return n}case 6:{const t=[],n=i([o,t],r);for(const n of r)!e&&u(c(n))||t.push(a(n));return n}}const{message:p}=r;return i([o,{name:s,message:p}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},d="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?a(p(e,t)):structuredClone(e):(e,t)=>a(p(e,t)),h=(f(/[A-Za-z]/),f(/[\dA-Za-z]/));function f(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function y(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(37===a&&h(e.charCodeAt(n+1))&&h(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function g(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function m(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}f(/[#-'*+\--9=?A-Z^-~]/),f(/\d/),f(/[\dA-Fa-f]/),f(/[!-/:-@[-`{-~]/),f(/\p{P}|\p{S}/u),f(/\s/);var b=n(74269),x=n(44585);function S(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function T(e){const t=e.spread;return null==t?e.children.length>1:t}function v(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(k(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(k(t.slice(i),i>0,!1)),a.join("")}function k(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const w={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=y(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return S(e,t);const i={src:y(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const n={src:y(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return S(e,t);const i={href:y(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const n={href:y(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=T(n[r])}return t}(n):T(t),a={},o=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=(0,x.PW)(t.children[1]),o=(0,x.Y)(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length;let s=-1;const l=[];for(;++s<o;){const n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:v(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:E,yaml:E,definition:E,footnoteDefinition:E};function E(){}const A={}.hasOwnProperty,C={};function _(e,t){e.position&&(t.position=(0,x.G1)(e))}function P(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,d(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function O(e,t){const n=t.data||{},r=!("value"in t)||A.call(n,"hProperties")||A.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function L(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function I(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function D(e,t){const n=function(e,t){const n=t||C,r=new Map,i=new Map,a=new Map,o={...w,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=s.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=I(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=I(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:P,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:function(e,t){const n=e.type,r=s.handlers[n];if(A.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=d(n);return r.children=s.all(e),r}return d(e)}return(s.options.unknownHandler||O)(s,e,t)},options:n,patch:_,wrap:L};return(0,b.YR)(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),s}(e,t),i=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||g,r=e.options.footnoteBackLabel||m,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const a=e.all(i),o=String(i.identifier).toUpperCase(),c=y(o.toLowerCase());let u=0;const p=[],d=e.footnoteCounts.get(o);for(;void 0!==d&&++u<=d;){p.length>0&&p.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=a[a.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...p)}else a.push(...p);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...d(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&((0,r.ok)("children"in o),o.children.push({type:"text",value:"\n"},a)),o}function M(e,t){return e&&"run"in e?async function(n,r){const i=D(n,{file:r,...t});await e.run(i,r)}:function(n,r){return D(n,{file:r,...t||e})}}},24360:(e,t,n)=>{"use strict";n.d(t,{A:()=>F});var r=n(36469),i=n(69820);const a=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s={};function l(e,t){return((t||s).jsx?o:a).test(e)}const c=/[ \t\n\f\r]/g;function u(e){return""===e.replace(c,"")}var p=n(19835),d=n(61182);const h={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var f=n(10010),y=n(78052);const g=y.default||y;var m=n(44585),b=n(24435);const x={}.hasOwnProperty,S=new Map,T=/[A-Z]/g,v=/-([a-z])/g,k=new Set(["table","tbody","thead","tfoot","tr"]),w=new Set(["td","th"]),E="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function A(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=p.JW,e.schema=i),e.ancestors.push(t);const a=L(e,t.tagName,!1),o=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&x.call(t.properties,i)){const a=O(e,i,t.properties[i]);if(a){const[i,o]=a;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof o&&w.has(t.tagName)?r=o:n[i]=o}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let s=P(e,t);return k.has(t.tagName)&&(s=s.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&u(t.value):u(t));var t}))),C(e,o,a,t),_(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return(0,i.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}I(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=p.JW,e.schema=a),e.ancestors.push(t);const o=null===t.name?e.Fragment:L(e,t.name,!0),s=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type);const a=t.expression;(0,i.ok)("ObjectExpression"===a.type);const o=a.properties[0];(0,i.ok)("SpreadElement"===o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else I(e,t.position);else{const a=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type),o=e.evaluater.evaluateExpression(t.expression)}else I(e,t.position);else o=null===r.value||r.value;n[a]=o}return n}(e,t),l=P(e,t);return C(e,s,o,t),_(s,l),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);I(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return _(r,P(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function C(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function _(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function P(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:S;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}const s=A(e,a,o);void 0!==s&&n.push(s)}return n}function O(e,t,n){const i=(0,d.I)(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?(0,r.A)(n):(0,f.A)(n)),"style"===i.property){let t="object"==typeof n?n:function(e,t){const n={};try{g(t,(function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(v,M)),n[r]=t}))}catch(t){if(!e.ignoreInvalidStyle){const n=t,r=new b.o("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=E+"#cannot-parse-style-attribute",r}}return n}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)x.call(e,n)&&(t[D(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&i.space?h[i.property]||i.property:i.attribute,n]}}function L(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=l(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}(0,i.ok)(n,"always a result"),r=n}else r=l(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return x.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);I(e)}function I(e,t){const n=new b.o("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=E+"#cannot-handle-mdx-estrees-without-createevaluater",n}function D(e){let t=e.replace(T,N);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function M(e,t){return t.toUpperCase()}function N(e){return"-"+e.toLowerCase()}function F(e){this.compiler=function(t,n){return function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return function(n,r,i,a){const o=Array.isArray(i.children),s=(0,m.PW)(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,r=function(e,t,n,r){const o=Array.isArray(n.children)?a:i;return r?o(t,n,r):o(t,n)}}var i,a;const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?p.JW:p.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=A(o,e,void 0);return s&&"string"!=typeof s?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}(t,{filePath:n.path,...e})}}},24435:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(29993);class i extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let i="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?i=e:!a.cause&&e&&(o=!0,i=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=(0,r.L)(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}i.prototype.file="",i.prototype.name="",i.prototype.reason="",i.prototype.message="",i.prototype.stack="",i.prototype.column=void 0,i.prototype.line=void 0,i.prototype.ancestors=void 0,i.prototype.cause=void 0,i.prototype.fatal=void 0,i.prototype.place=void 0,i.prototype.ruleId=void 0,i.prototype.source=void 0},24586:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(11369);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},24919:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!r.VISITOR_KEYS[e.type])};var r=n(49390)},25002:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(60133);t.default=function(e){if((0,r.isExpressionStatement)(e)&&(e=e.expression),(0,r.isExpression)(e))return e;if((0,r.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,r.isFunction)(e)&&(e.type="FunctionExpression"),!(0,r.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}},25095:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var r={name:"mermaid",version:"11.9.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.0.0",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.0",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}},25436:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(50123),i=n(39600);const a=(0,r.A)(i.A,"Map")},25552:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BLANK_URL=t.relativeFirstCharacters=t.whitespaceEscapeCharsRegex=t.urlSchemeRegex=t.ctrlCharactersRegex=t.htmlCtrlEntityRegex=t.htmlEntitiesRegex=t.invalidProtocolRegex=void 0,t.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,t.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,t.htmlCtrlEntityRegex=/&(newline|tab);/gi,t.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,t.urlSchemeRegex=/^.+(:|&colon;)/gim,t.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,t.relativeFirstCharacters=[".","/"],t.BLANK_URL="about:blank"},26692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let n,a="";if((0,r.isObjectProperty)(t,{value:e})?n=i(t):(0,r.isObjectMethod)(e)||(0,r.isClassMethod)(e)?(n=i(e),"get"===e.kind?a="get ":"set"===e.kind&&(a="set ")):(0,r.isVariableDeclarator)(t,{init:e})?n=t.id:(0,r.isAssignmentExpression)(t,{operator:"=",right:e})&&(n=t.left),!n)return null;const o=(0,r.isLiteral)(n)?function(e){return(0,r.isNullLiteral)(e)?"null":(0,r.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,r.isTemplateLiteral)(e)?e.quasis.map((e=>e.value.raw)).join(""):void 0!==e.value?String(e.value):null}(n):(0,r.isIdentifier)(n)?n.name:(0,r.isPrivateName)(n)?n.id.name:null;return null==o?null:{name:a+o,originalNode:n}};var r=n(60133);function i(e){if(!e.computed||(0,r.isLiteral)(e.key))return e.key}},26979:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){return e===t||e!=e&&t!=t}},27057:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var r=n(58084),i={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function a(e,t){if(void 0===e||void 0===t)return{angle:0,deltaX:0,deltaY:0};e=o(e),t=o(t);const[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],s=i-n,l=a-r;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}(0,r.K2)(a,"calculateDeltaAndAngle");var o=(0,r.K2)((e=>Array.isArray(e)?{x:e[0],y:e[1]}:e),"pointTransformer"),s=(0,r.K2)((e=>({x:(0,r.K2)((function(t,n,r){let s=0;const l=o(r[0]).x<o(r[r.length-1]).x?"left":"right";if(0===n&&Object.hasOwn(i,e.arrowTypeStart)){const{angle:t,deltaX:n}=a(r[0],r[1]);s=i[e.arrowTypeStart]*Math.cos(t)*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(i,e.arrowTypeEnd)){const{angle:t,deltaX:n}=a(r[r.length-1],r[r.length-2]);s=i[e.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}const c=Math.abs(o(t).x-o(r[r.length-1]).x),u=Math.abs(o(t).y-o(r[r.length-1]).y),p=Math.abs(o(t).x-o(r[0]).x),d=Math.abs(o(t).y-o(r[0]).y),h=i[e.arrowTypeStart],f=i[e.arrowTypeEnd];if(c<f&&c>0&&u<f){let e=f+1-c;e*="right"===l?-1:1,s-=e}if(p<h&&p>0&&d<h){let e=h+1-p;e*="right"===l?-1:1,s+=e}return o(t).x+s}),"x"),y:(0,r.K2)((function(t,n,r){let s=0;const l=o(r[0]).y<o(r[r.length-1]).y?"down":"up";if(0===n&&Object.hasOwn(i,e.arrowTypeStart)){const{angle:t,deltaY:n}=a(r[0],r[1]);s=i[e.arrowTypeStart]*Math.abs(Math.sin(t))*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(i,e.arrowTypeEnd)){const{angle:t,deltaY:n}=a(r[r.length-1],r[r.length-2]);s=i[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}const c=Math.abs(o(t).y-o(r[r.length-1]).y),u=Math.abs(o(t).x-o(r[r.length-1]).x),p=Math.abs(o(t).y-o(r[0]).y),d=Math.abs(o(t).x-o(r[0]).x),h=i[e.arrowTypeStart],f=i[e.arrowTypeEnd];if(c<f&&c>0&&u<f){let e=f+1-c;e*="up"===l?-1:1,s-=e}if(p<h&&p>0&&d<h){let e=h+1-p;e*="up"===l?-1:1,s+=e}return o(t).y+s}),"y")})),"getLineFunctionsWithOffset")},27232:(e,t,n)=>{"use strict";var r=n(65183),i=n(74014),a=n(81587);const o=(0,r.defineAliasedType)("Miscellaneous");o("Noop",{visitor:[]}),o("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,r.assertNodeType)("Identifier")},expectedNode:{validate:(0,r.assertOneOf)(...i.PLACEHOLDERS)}},(0,a.patternLikeCommon)())}),o("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}})},27937:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const n of r.INHERIT_KEYS.optional)null==e[n]&&(e[n]=t[n]);for(const n of Object.keys(t))"_"===n[0]&&"__clone"!==n&&(e[n]=t[n]);for(const n of r.INHERIT_KEYS.force)e[n]=t[n];return(0,i.default)(e,t),e};var r=n(79897),i=n(64494)},28078:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(76124),i=n(99271);const a=function(e,t,n,a){var o=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=a?a(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?(0,i.A)(n,c,u):(0,r.A)(n,c,u)}return n}},28574:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(50123),i=n(39600);const a=(0,r.A)(i.A,"Set")},29993:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e?"position"in e||"type"in e?a(e.position):"start"in e||"end"in e?a(e):"line"in e||"column"in e?i(e):"":""}function i(e){return o(e&&e.line)+":"+o(e&&e.column)}function a(e){return i(e&&e.start)+"-"+i(e&&e.end)}function o(e){return e&&"number"==typeof e?e:1}n.d(t,{L:()=>r})},30561:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o});var r=n(77877);function i(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}var a=n(81034);const o=function e(t){var n=(0,a.uN)(t);function i(e,t){var i=n((e=(0,r.Qh)(e)).r,(t=(0,r.Qh)(t)).r),o=n(e.g,t.g),s=n(e.b,t.b),l=(0,a.Ay)(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=o(t),e.b=s(t),e.opacity=l(t),e+""}}return i.gamma=e,i}(1);function s(e){return function(t){var n,i,a=t.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n<a;++n)i=(0,r.Qh)(t[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=e(o),s=e(s),l=e(l),i.opacity=1,function(e){return i.r=o(e),i.g=s(e),i.b=l(e),i+""}}}s((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],o=e[r+1],s=r>0?e[r-1]:2*a-o,l=r<t-1?e[r+2]:2*o-a;return i((n-r/t)*t,s,a,o,l)}})),s((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),a=e[(r+t-1)%t],o=e[r%t],s=e[(r+1)%t],l=e[(r+2)%t];return i((n-r/t)*t,a,o,s,l)}}))},30594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){t&&n&&(t[e]=Array.from(new Set([].concat(t[e],n[e]).filter(Boolean))))}},30855:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},31085:(e,t,n)=>{"use strict";e.exports=n(73335)},31382:(e,t,n)=>{"use strict";function r(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}n.d(t,{A:()=>r})},31475:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(50405),i=n(47893);const a=function(e){return null!=e&&(0,i.A)(e.length)&&!(0,r.A)(e)}},31782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!(0,r.isMemberExpression)(e))return!1;const i=Array.isArray(t)?t:t.split("."),a=[];let o;for(o=e;(0,r.isMemberExpression)(o);o=o.object)a.push(o.property);if(a.push(o),a.length<i.length)return!1;if(!n&&a.length>i.length)return!1;for(let e=0,t=a.length-1;e<i.length;e++,t--){const n=a[t];let o;if((0,r.isIdentifier)(n))o=n.name;else if((0,r.isStringLiteral)(n))o=n.value;else{if(!(0,r.isThisExpression)(n))return!1;o="this"}if(i[e]!==o)return!1}return!0};var r=n(60133)},32553:(e,t,n)=>{"use strict";n.d(t,{H:()=>tn,r:()=>en});var r=n(58084);function i(e){return null==e}function a(e){return"object"==typeof e&&null!==e}function o(e){return Array.isArray(e)?e:i(e)?[]:[e]}function s(e,t){var n,r,i,a;if(t)for(n=0,r=(a=Object.keys(t)).length;n<r;n+=1)e[i=a[n]]=t[i];return e}function l(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r}function c(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}(0,r.K2)(i,"isNothing"),(0,r.K2)(a,"isObject"),(0,r.K2)(o,"toArray"),(0,r.K2)(s,"extend"),(0,r.K2)(l,"repeat"),(0,r.K2)(c,"isNegativeZero");var u={isNothing:i,isObject:a,toArray:o,repeat:l,isNegativeZero:c,extend:s};function p(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function d(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=p(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(0,r.K2)(p,"formatError"),(0,r.K2)(d,"YAMLException$1"),d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.toString=(0,r.K2)((function(e){return this.name+": "+p(this,e)}),"toString");var h=d;function f(e,t,n,r,i){var a="",o="",s=Math.floor(i/2)-1;return r-t>s&&(t=r-s+(a=" ... ").length),n-r>s&&(n=r+s-(o=" ...").length),{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function y(e,t){return u.repeat(" ",t-e.length)+e}function g(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],a=[],o=-1;n=r.exec(e.buffer);)a.push(n.index),i.push(n.index+n[0].length),e.position<=n.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var s,l,c="",p=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+p+3);for(s=1;s<=t.linesBefore&&!(o-s<0);s++)l=f(e.buffer,i[o-s],a[o-s],e.position-(i[o]-i[o-s]),d),c=u.repeat(" ",t.indent)+y((e.line-s+1).toString(),p)+" | "+l.str+"\n"+c;for(l=f(e.buffer,i[o],a[o],e.position,d),c+=u.repeat(" ",t.indent)+y((e.line+1).toString(),p)+" | "+l.str+"\n",c+=u.repeat("-",t.indent+p+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(o+s>=a.length);s++)l=f(e.buffer,i[o+s],a[o+s],e.position-(i[o]-i[o+s]),d),c+=u.repeat(" ",t.indent)+y((e.line+s+1).toString(),p)+" | "+l.str+"\n";return c.replace(/\n$/,"")}(0,r.K2)(f,"getLine"),(0,r.K2)(y,"padStart"),(0,r.K2)(g,"makeSnippet");var m=g,b=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function S(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}function T(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===b.indexOf(t))throw new h('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=S(t.styleAliases||null),-1===x.indexOf(this.kind))throw new h('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}(0,r.K2)(S,"compileStyleAliases"),(0,r.K2)(T,"Type$1");var v=T;function k(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function w(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for((0,r.K2)(i,"collectType"),e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(i);return n}function E(e){return this.extend(e)}(0,r.K2)(k,"compileList"),(0,r.K2)(w,"compileMap"),(0,r.K2)(E,"Schema$1"),E.prototype.extend=(0,r.K2)((function(e){var t=[],n=[];if(e instanceof v)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new h("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof v))throw new h("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new h("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new h("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof v))throw new h("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(E.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=k(r,"implicit"),r.compiledExplicit=k(r,"explicit"),r.compiledTypeMap=w(r.compiledImplicit,r.compiledExplicit),r}),"extend");var A=new E({explicit:[new v("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,r.K2)((function(e){return null!==e?e:""}),"construct")}),new v("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,r.K2)((function(e){return null!==e?e:[]}),"construct")}),new v("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,r.K2)((function(e){return null!==e?e:{}}),"construct")})]});function C(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function _(){return null}function P(e){return null===e}(0,r.K2)(C,"resolveYamlNull"),(0,r.K2)(_,"constructYamlNull"),(0,r.K2)(P,"isNull");var O=new v("tag:yaml.org,2002:null",{kind:"scalar",resolve:C,construct:_,predicate:P,represent:{canonical:(0,r.K2)((function(){return"~"}),"canonical"),lowercase:(0,r.K2)((function(){return"null"}),"lowercase"),uppercase:(0,r.K2)((function(){return"NULL"}),"uppercase"),camelcase:(0,r.K2)((function(){return"Null"}),"camelcase"),empty:(0,r.K2)((function(){return""}),"empty")},defaultStyle:"lowercase"});function L(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function I(e){return"true"===e||"True"===e||"TRUE"===e}function D(e){return"[object Boolean]"===Object.prototype.toString.call(e)}(0,r.K2)(L,"resolveYamlBoolean"),(0,r.K2)(I,"constructYamlBoolean"),(0,r.K2)(D,"isBoolean");var M=new v("tag:yaml.org,2002:bool",{kind:"scalar",resolve:L,construct:I,predicate:D,represent:{lowercase:(0,r.K2)((function(e){return e?"true":"false"}),"lowercase"),uppercase:(0,r.K2)((function(e){return e?"TRUE":"FALSE"}),"uppercase"),camelcase:(0,r.K2)((function(e){return e?"True":"False"}),"camelcase")},defaultStyle:"lowercase"});function N(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function F(e){return 48<=e&&e<=55}function B(e){return 48<=e&&e<=57}function R(e){if(null===e)return!1;var t,n=e.length,r=0,i=!1;if(!n)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===n)return!0;if("b"===(t=e[++r])){for(r++;r<n;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!N(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!F(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;r<n;r++)if("_"!==(t=e[r])){if(!B(e.charCodeAt(r)))return!1;i=!0}return!(!i||"_"===t)}function j(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)}function $(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!u.isNegativeZero(e)}(0,r.K2)(N,"isHexCode"),(0,r.K2)(F,"isOctCode"),(0,r.K2)(B,"isDecCode"),(0,r.K2)(R,"resolveYamlInteger"),(0,r.K2)(j,"constructYamlInteger"),(0,r.K2)($,"isInteger");var z=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:R,construct:j,predicate:$,represent:{binary:(0,r.K2)((function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)}),"binary"),octal:(0,r.K2)((function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)}),"octal"),decimal:(0,r.K2)((function(e){return e.toString(10)}),"decimal"),hexadecimal:(0,r.K2)((function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}),"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),K=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function U(e){return null!==e&&!(!K.test(e)||"_"===e[e.length-1])}function q(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)}(0,r.K2)(U,"resolveYamlFloat"),(0,r.K2)(q,"constructYamlFloat");var W=/^[-+]?[0-9]+e/;function Y(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(u.isNegativeZero(e))return"-0.0";return n=e.toString(10),W.test(n)?n.replace("e",".e"):n}function H(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||u.isNegativeZero(e))}(0,r.K2)(Y,"representYamlFloat"),(0,r.K2)(H,"isFloat");var V=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:U,construct:q,predicate:H,represent:Y,defaultStyle:"lowercase"}),X=A.extend({implicit:[O,M,z,V]}),G=X,Z=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),J=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Q(e){return null!==e&&(null!==Z.exec(e)||null!==J.exec(e))}function ee(e){var t,n,r,i,a,o,s,l,c=0,u=null;if(null===(t=Z.exec(e))&&(t=J.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(n,r,i,a,o,s,c)),u&&l.setTime(l.getTime()-u),l}function te(e){return e.toISOString()}(0,r.K2)(Q,"resolveYamlTimestamp"),(0,r.K2)(ee,"constructYamlTimestamp"),(0,r.K2)(te,"representYamlTimestamp");var ne=new v("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Q,construct:ee,instanceOf:Date,represent:te});function re(e){return"<<"===e||null===e}(0,r.K2)(re,"resolveYamlMerge");var ie=new v("tag:yaml.org,2002:merge",{kind:"scalar",resolve:re}),ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function oe(e){if(null===e)return!1;var t,n,r=0,i=e.length,a=ae;for(n=0;n<i;n++)if(!((t=a.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0}function se(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=ae,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|a.indexOf(r.charAt(t));return 0==(n=i%4*6)?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===n?(s.push(o>>10&255),s.push(o>>2&255)):12===n&&s.push(o>>4&255),new Uint8Array(s)}function le(e){var t,n,r="",i=0,a=e.length,o=ae;for(t=0;t<a;t++)t%3==0&&t&&(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[63&i]),i=(i<<8)+e[t];return 0==(n=a%3)?(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[63&i]):2===n?(r+=o[i>>10&63],r+=o[i>>4&63],r+=o[i<<2&63],r+=o[64]):1===n&&(r+=o[i>>2&63],r+=o[i<<4&63],r+=o[64],r+=o[64]),r}function ce(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}(0,r.K2)(oe,"resolveYamlBinary"),(0,r.K2)(se,"constructYamlBinary"),(0,r.K2)(le,"representYamlBinary"),(0,r.K2)(ce,"isBinary");var ue=new v("tag:yaml.org,2002:binary",{kind:"scalar",resolve:oe,construct:se,predicate:ce,represent:le}),pe=Object.prototype.hasOwnProperty,de=Object.prototype.toString;function he(e){if(null===e)return!0;var t,n,r,i,a,o=[],s=e;for(t=0,n=s.length;t<n;t+=1){if(r=s[t],a=!1,"[object Object]"!==de.call(r))return!1;for(i in r)if(pe.call(r,i)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==o.indexOf(i))return!1;o.push(i)}return!0}function fe(e){return null!==e?e:[]}(0,r.K2)(he,"resolveYamlOmap"),(0,r.K2)(fe,"constructYamlOmap");var ye=new v("tag:yaml.org,2002:omap",{kind:"sequence",resolve:he,construct:fe}),ge=Object.prototype.toString;function me(e){if(null===e)return!0;var t,n,r,i,a,o=e;for(a=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],"[object Object]"!==ge.call(r))return!1;if(1!==(i=Object.keys(r)).length)return!1;a[t]=[i[0],r[i[0]]]}return!0}function be(e){if(null===e)return[];var t,n,r,i,a,o=e;for(a=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}(0,r.K2)(me,"resolveYamlPairs"),(0,r.K2)(be,"constructYamlPairs");var xe=new v("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:me,construct:be}),Se=Object.prototype.hasOwnProperty;function Te(e){if(null===e)return!0;var t,n=e;for(t in n)if(Se.call(n,t)&&null!==n[t])return!1;return!0}function ve(e){return null!==e?e:{}}(0,r.K2)(Te,"resolveYamlSet"),(0,r.K2)(ve,"constructYamlSet");var ke=new v("tag:yaml.org,2002:set",{kind:"mapping",resolve:Te,construct:ve}),we=G.extend({implicit:[ne,ie],explicit:[ue,ye,xe,ke]}),Ee=Object.prototype.hasOwnProperty,Ae=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ce=/[\x85\u2028\u2029]/,_e=/[,\[\]\{\}]/,Pe=/^(?:!|!!|![a-z\-]+!)$/i,Oe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Le(e){return Object.prototype.toString.call(e)}function Ie(e){return 10===e||13===e}function De(e){return 9===e||32===e}function Me(e){return 9===e||32===e||10===e||13===e}function Ne(e){return 44===e||91===e||93===e||123===e||125===e}function Fe(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Be(e){return 120===e?2:117===e?4:85===e?8:0}function Re(e){return 48<=e&&e<=57?e-48:-1}function je(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function $e(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}(0,r.K2)(Le,"_class"),(0,r.K2)(Ie,"is_EOL"),(0,r.K2)(De,"is_WHITE_SPACE"),(0,r.K2)(Me,"is_WS_OR_EOL"),(0,r.K2)(Ne,"is_FLOW_INDICATOR"),(0,r.K2)(Fe,"fromHexCode"),(0,r.K2)(Be,"escapedHexLen"),(0,r.K2)(Re,"fromDecimalCode"),(0,r.K2)(je,"simpleEscapeSequence"),(0,r.K2)($e,"charFromCodepoint");var ze,Ke=new Array(256),Ue=new Array(256);for(ze=0;ze<256;ze++)Ke[ze]=je(ze)?1:0,Ue[ze]=je(ze);function qe(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||we,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function We(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=m(n),new h(t,n)}function Ye(e,t){throw We(e,t)}function He(e,t){e.onWarning&&e.onWarning.call(null,We(e,t))}(0,r.K2)(qe,"State$1"),(0,r.K2)(We,"generateError"),(0,r.K2)(Ye,"throwError"),(0,r.K2)(He,"throwWarning");var Ve={YAML:(0,r.K2)((function(e,t,n){var r,i,a;null!==e.version&&Ye(e,"duplication of %YAML directive"),1!==n.length&&Ye(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&Ye(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),a=parseInt(r[2],10),1!==i&&Ye(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,1!==a&&2!==a&&He(e,"unsupported YAML version of the document")}),"handleYamlDirective"),TAG:(0,r.K2)((function(e,t,n){var r,i;2!==n.length&&Ye(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],Pe.test(r)||Ye(e,"ill-formed tag handle (first argument) of the TAG directive"),Ee.call(e.tagMap,r)&&Ye(e,'there is a previously declared suffix for "'+r+'" tag handle'),Oe.test(i)||Ye(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){Ye(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}),"handleTagDirective")};function Xe(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)9===(o=s.charCodeAt(i))||32<=o&&o<=1114111||Ye(e,"expected valid JSON character");else Ae.test(s)&&Ye(e,"the stream contains non-printable characters");e.result+=s}}function Ge(e,t,n,r){var i,a,o,s;for(u.isObject(n)||Ye(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,s=(i=Object.keys(n)).length;o<s;o+=1)a=i[o],Ee.call(t,a)||(t[a]=n[a],r[a]=!0)}function Ze(e,t,n,r,i,a,o,s,l){var c,u;if(Array.isArray(i))for(c=0,u=(i=Array.prototype.slice.call(i)).length;c<u;c+=1)Array.isArray(i[c])&&Ye(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===Le(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===Le(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(a))for(c=0,u=a.length;c<u;c+=1)Ge(e,t,a[c],n);else Ge(e,t,a,n);else e.json||Ee.call(n,i)||!Ee.call(t,i)||(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,Ye(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[i]=a,delete n[i];return t}function Je(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Ye(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Qe(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;De(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!Ie(i))break;for(Je(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&He(e,"deficient indentation"),r}function et(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!Me(t)))}function tt(e,t){1===t?e.result+=" ":t>1&&(e.result+=u.repeat("\n",t-1))}function nt(e,t,n){var r,i,a,o,s,l,c,u,p=e.kind,d=e.result;if(Me(u=e.input.charCodeAt(e.position))||Ne(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Me(r=e.input.charCodeAt(e.position+1))||n&&Ne(r)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,o=!1;0!==u;){if(58===u){if(Me(r=e.input.charCodeAt(e.position+1))||n&&Ne(r))break}else if(35===u){if(Me(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&et(e)||n&&Ne(u))break;if(Ie(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,Qe(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=a,e.line=s,e.lineStart=l,e.lineIndent=c;break}}o&&(Xe(e,i,a,!1),tt(e,e.line-s),i=a=e.position,o=!1),De(u)||(a=e.position+1),u=e.input.charCodeAt(++e.position)}return Xe(e,i,a,!1),!!e.result||(e.kind=p,e.result=d,!1)}function rt(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(Xe(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else Ie(n)?(Xe(e,r,i,!0),tt(e,Qe(e,!1,t)),r=i=e.position):e.position===e.lineStart&&et(e)?Ye(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Ye(e,"unexpected end of the stream within a single quoted scalar")}function it(e,t){var n,r,i,a,o,s;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return Xe(e,n,e.position,!0),e.position++,!0;if(92===s){if(Xe(e,n,e.position,!0),Ie(s=e.input.charCodeAt(++e.position)))Qe(e,!1,t);else if(s<256&&Ke[s])e.result+=Ue[s],e.position++;else if((o=Be(s))>0){for(i=o,a=0;i>0;i--)(o=Fe(s=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+o:Ye(e,"expected hexadecimal character");e.result+=$e(a),e.position++}else Ye(e,"unknown escape sequence");n=r=e.position}else Ie(s)?(Xe(e,n,r,!0),tt(e,Qe(e,!1,t)),n=r=e.position):e.position===e.lineStart&&et(e)?Ye(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Ye(e,"unexpected end of the stream within a double quoted scalar")}function at(e,t){var n,r,i,a,o,s,l,c,u,p,d,h,f=!0,y=e.tag,g=e.anchor,m=Object.create(null);if(91===(h=e.input.charCodeAt(e.position)))o=93,c=!1,a=[];else{if(123!==h)return!1;o=125,c=!0,a={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),h=e.input.charCodeAt(++e.position);0!==h;){if(Qe(e,!0,t),(h=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=y,e.anchor=g,e.kind=c?"mapping":"sequence",e.result=a,!0;f?44===h&&Ye(e,"expected the node content, but found ','"):Ye(e,"missed comma between flow collection entries"),d=null,s=l=!1,63===h&&Me(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,Qe(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,dt(e,t,1,!1,!0),p=e.tag,u=e.result,Qe(e,!0,t),h=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==h||(s=!0,h=e.input.charCodeAt(++e.position),Qe(e,!0,t),dt(e,t,1,!1,!0),d=e.result),c?Ze(e,a,m,p,u,d,n,r,i):s?a.push(Ze(e,null,m,p,u,d,n,r,i)):a.push(u),Qe(e,!0,t),44===(h=e.input.charCodeAt(e.position))?(f=!0,h=e.input.charCodeAt(++e.position)):f=!1}Ye(e,"unexpected end of the stream within a flow collection")}function ot(e,t){var n,r,i,a,o=1,s=!1,l=!1,c=t,p=0,d=!1;if(124===(a=e.input.charCodeAt(e.position)))r=!1;else{if(62!==a)return!1;r=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===o?o=43===a?3:2:Ye(e,"repeat of a chomping mode identifier");else{if(!((i=Re(a))>=0))break;0===i?Ye(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Ye(e,"repeat of an indentation width identifier"):(c=t+i-1,l=!0)}if(De(a)){do{a=e.input.charCodeAt(++e.position)}while(De(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!Ie(a)&&0!==a)}for(;0!==a;){for(Je(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!l||e.lineIndent<c)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>c&&(c=e.lineIndent),Ie(a))p++;else{if(e.lineIndent<c){3===o?e.result+=u.repeat("\n",s?1+p:p):1===o&&s&&(e.result+="\n");break}for(r?De(a)?(d=!0,e.result+=u.repeat("\n",s?1+p:p)):d?(d=!1,e.result+=u.repeat("\n",p+1)):0===p?s&&(e.result+=" "):e.result+=u.repeat("\n",p):e.result+=u.repeat("\n",s?1+p:p),s=!0,l=!0,p=0,n=e.position;!Ie(a)&&0!==a;)a=e.input.charCodeAt(++e.position);Xe(e,n,e.position,!1)}}return!0}function st(e,t){var n,r,i=e.tag,a=e.anchor,o=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Ye(e,"tab characters must not be used in indentation")),45===r)&&Me(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,Qe(e,!0,-1)&&e.lineIndent<=t)o.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,dt(e,t,3,!1,!0),o.push(e.result),Qe(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)Ye(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=i,e.anchor=a,e.kind="sequence",e.result=o,!0)}function lt(e,t,n){var r,i,a,o,s,l,c,u=e.tag,p=e.anchor,d={},h=Object.create(null),f=null,y=null,g=null,m=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),c=e.input.charCodeAt(e.position);0!==c;){if(m||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Ye(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,63!==c&&58!==c||!Me(r)){if(o=e.line,s=e.lineStart,l=e.position,!dt(e,n,2,!1,!0))break;if(e.line===a){for(c=e.input.charCodeAt(e.position);De(c);)c=e.input.charCodeAt(++e.position);if(58===c)Me(c=e.input.charCodeAt(++e.position))||Ye(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Ze(e,d,h,f,y,null,o,s,l),f=y=g=null),b=!0,m=!1,i=!1,f=e.tag,y=e.result;else{if(!b)return e.tag=u,e.anchor=p,!0;Ye(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=p,!0;Ye(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(m&&(Ze(e,d,h,f,y,null,o,s,l),f=y=g=null),b=!0,m=!0,i=!0):m?(m=!1,i=!0):Ye(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;if((e.line===a||e.lineIndent>t)&&(m&&(o=e.line,s=e.lineStart,l=e.position),dt(e,t,4,!0,i)&&(m?y=e.result:g=e.result),m||(Ze(e,d,h,f,y,g,o,s,l),f=y=g=null),Qe(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==c)Ye(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Ze(e,d,h,f,y,null,o,s,l),b&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=d),b}function ct(e){var t,n,r,i,a=!1,o=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Ye(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(a=!0,i=e.input.charCodeAt(++e.position)):33===i?(o=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,a){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):Ye(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!Me(i);)33===i&&(o?Ye(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Pe.test(n)||Ye(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),_e.test(r)&&Ye(e,"tag suffix cannot contain flow indicator characters")}r&&!Oe.test(r)&&Ye(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){Ye(e,"tag name is malformed: "+r)}return a?e.tag=r:Ee.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:Ye(e,'undeclared tag handle "'+n+'"'),!0}function ut(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Ye(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Me(n)&&!Ne(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Ye(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function pt(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Me(r)&&!Ne(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Ye(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Ee.call(e.anchorMap,n)||Ye(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Qe(e,!0,-1),!0}function dt(e,t,n,r,i){var a,o,s,l,c,u,p,d,h,f=1,y=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=4===n||3===n,r&&Qe(e,!0,-1)&&(y=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;ct(e)||ut(e);)Qe(e,!0,-1)?(y=!0,s=a,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):s=!1;if(s&&(s=y||i),1!==f&&4!==n||(d=1===n||2===n?t:t+1,h=e.position-e.lineStart,1===f?s&&(st(e,h)||lt(e,h,d))||at(e,d)?g=!0:(o&&ot(e,d)||rt(e,d)||it(e,d)?g=!0:pt(e)?(g=!0,null===e.tag&&null===e.anchor||Ye(e,"alias node should not have any properties")):nt(e,d,1===n)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(g=s&&st(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Ye(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((p=e.implicitTypes[l]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Ee.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,l=0,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,u[l].tag.length)===u[l].tag){p=u[l];break}p||Ye(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&Ye(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Ye(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function ht(e){var t,n,r,i,a=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(Qe(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(o=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!Me(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&Ye(e,"directive name must not be less than one character in length");0!==i;){for(;De(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!Ie(i));break}if(Ie(i))break;for(t=e.position;0!==i&&!Me(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&Je(e),Ee.call(Ve,n)?Ve[n](e,n,r):He(e,'unknown document directive "'+n+'"')}Qe(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,Qe(e,!0,-1)):o&&Ye(e,"directives end mark is expected"),dt(e,e.lineIndent-1,4,!1,!0),Qe(e,!0,-1),e.checkLineBreaks&&Ce.test(e.input.slice(a,e.position))&&He(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&et(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Qe(e,!0,-1)):e.position<e.length-1&&Ye(e,"end of the stream or a document separator is expected")}function ft(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new qe(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,Ye(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)ht(n);return n.documents}function yt(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=ft(e,n);if("function"!=typeof t)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function gt(e,t){var n=ft(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new h("expected a single document in the stream, but found more")}}(0,r.K2)(Xe,"captureSegment"),(0,r.K2)(Ge,"mergeMappings"),(0,r.K2)(Ze,"storeMappingPair"),(0,r.K2)(Je,"readLineBreak"),(0,r.K2)(Qe,"skipSeparationSpace"),(0,r.K2)(et,"testDocumentSeparator"),(0,r.K2)(tt,"writeFoldedLines"),(0,r.K2)(nt,"readPlainScalar"),(0,r.K2)(rt,"readSingleQuotedScalar"),(0,r.K2)(it,"readDoubleQuotedScalar"),(0,r.K2)(at,"readFlowCollection"),(0,r.K2)(ot,"readBlockScalar"),(0,r.K2)(st,"readBlockSequence"),(0,r.K2)(lt,"readBlockMapping"),(0,r.K2)(ct,"readTagProperty"),(0,r.K2)(ut,"readAnchorProperty"),(0,r.K2)(pt,"readAlias"),(0,r.K2)(dt,"composeNode"),(0,r.K2)(ht,"readDocument"),(0,r.K2)(ft,"loadDocuments"),(0,r.K2)(yt,"loadAll$1"),(0,r.K2)(gt,"load$1");var mt=gt,bt=Object.prototype.toString,xt=Object.prototype.hasOwnProperty,St=65279,Tt={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},vt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],kt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function wt(e,t){var n,r,i,a,o,s,l;if(null===t)return{};for(n={},i=0,a=(r=Object.keys(t)).length;i<a;i+=1)o=r[i],s=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(l=e.compiledTypeMap.fallback[o])&&xt.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[o]=s;return n}function Et(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else{if(!(e<=4294967295))throw new h("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+u.repeat("0",r-t.length)+t}function At(e){this.schema=e.schema||we,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=u.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=wt(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 Ct(e,t){for(var n,r=u.repeat(" ",t),i=0,a=-1,o="",s=e.length;i<s;)-1===(a=e.indexOf("\n",i))?(n=e.slice(i),i=s):(n=e.slice(i,a+1),i=a+1),n.length&&"\n"!==n&&(o+=r),o+=n;return o}function _t(e,t){return"\n"+u.repeat(" ",e.indent*t)}function Pt(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function Ot(e){return 32===e||9===e}function Lt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==St||65536<=e&&e<=1114111}function It(e){return Lt(e)&&e!==St&&13!==e&&10!==e}function Dt(e,t,n){var r=It(e),i=r&&!Ot(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||It(t)&&!Ot(t)&&35===e||58===t&&i}function Mt(e){return Lt(e)&&e!==St&&!Ot(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function Nt(e){return!Ot(e)&&58!==e}function Ft(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function Bt(e){return/^\n* /.test(e)}function Rt(e,t,n,r,i,a,o,s){var l,c=0,u=null,p=!1,d=!1,h=-1!==r,f=-1,y=Mt(Ft(e,0))&&Nt(Ft(e,e.length-1));if(t||o)for(l=0;l<e.length;c>=65536?l+=2:l++){if(!Lt(c=Ft(e,l)))return 5;y=y&&Dt(c,u,s),u=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(10===(c=Ft(e,l)))p=!0,h&&(d=d||l-f-1>r&&" "!==e[f+1],f=l);else if(!Lt(c))return 5;y=y&&Dt(c,u,s),u=c}d=d||h&&l-f-1>r&&" "!==e[f+1]}return p||d?n>9&&Bt(e)?5:o?2===a?5:2:d?4:3:!y||o||i(e)?2===a?5:2:1}function jt(e,t,n,i,a){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==vt.indexOf(t)||kt.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),l=i||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return Pt(e,t)}switch((0,r.K2)(c,"testAmbiguity"),Rt(t,l,e.indent,s,c,e.quotingType,e.forceQuotes&&!i,a)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+$t(t,e.indent)+zt(Ct(t,o));case 4:return">"+$t(t,e.indent)+zt(Ct(Kt(t,s),o));case 5:return'"'+qt(t)+'"';default:throw new h("impossible error: invalid scalar style")}}()}function $t(e,t){var n=Bt(e)?String(t):"",r="\n"===e[e.length-1];return n+(!r||"\n"!==e[e.length-2]&&"\n"!==e?r?"":"-":"+")+"\n"}function zt(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Kt(e,t){for(var n,r,i,a=/(\n+)([^\n]*)/g,o=(n=-1!==(n=e.indexOf("\n"))?n:e.length,a.lastIndex=n,Ut(e.slice(0,n),t)),s="\n"===e[0]||" "===e[0];i=a.exec(e);){var l=i[1],c=i[2];r=" "===c[0],o+=l+(s||r||""===c?"":"\n")+Ut(c,t),s=r}return o}function Ut(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,a=0,o=0,s=0,l="";n=i.exec(e);)(s=n.index)-a>t&&(r=o>a?o:s,l+="\n"+e.slice(a,r),a=r+1),o=s;return l+="\n",e.length-a>t&&o>a?l+=e.slice(a,o)+"\n"+e.slice(o+1):l+=e.slice(a),l.slice(1)}function qt(e){for(var t,n="",r=0,i=0;i<e.length;r>=65536?i+=2:i++)r=Ft(e,i),!(t=Tt[r])&&Lt(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||Et(r);return n}function Wt(e,t,n){var r,i,a,o="",s=e.tag;for(r=0,i=n.length;r<i;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(Gt(e,t,a,!1,!1)||void 0===a&&Gt(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=s,e.dump="["+o+"]"}function Yt(e,t,n,r){var i,a,o,s="",l=e.tag;for(i=0,a=n.length;i<a;i+=1)o=n[i],e.replacer&&(o=e.replacer.call(n,String(i),o)),(Gt(e,t+1,o,!0,!0,!1,!0)||void 0===o&&Gt(e,t+1,null,!0,!0,!1,!0))&&(r&&""===s||(s+=_t(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function Ht(e,t,n){var r,i,a,o,s,l="",c=e.tag,u=Object.keys(n);for(r=0,i=u.length;r<i;r+=1)s="",""!==l&&(s+=", "),e.condenseFlow&&(s+='"'),o=n[a=u[r]],e.replacer&&(o=e.replacer.call(n,a,o)),Gt(e,t,a,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Gt(e,t,o,!1,!1)&&(l+=s+=e.dump));e.tag=c,e.dump="{"+l+"}"}function Vt(e,t,n,r){var i,a,o,s,l,c,u="",p=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new h("sortKeys must be a boolean or a function");for(i=0,a=d.length;i<a;i+=1)c="",r&&""===u||(c+=_t(e,t)),s=n[o=d[i]],e.replacer&&(s=e.replacer.call(n,o,s)),Gt(e,t+1,o,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=_t(e,t)),Gt(e,t+1,s,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=e.dump));e.tag=p,e.dump=u||"{}"}function Xt(e,t,n){var r,i,a,o,s,l;for(a=0,o=(i=n?e.explicitTypes:e.implicitTypes).length;a<o;a+=1)if(((s=i[a]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===bt.call(s.represent))r=s.represent(t,l);else{if(!xt.call(s.represent,l))throw new h("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');r=s.represent[l](t,l)}e.dump=r}return!0}return!1}function Gt(e,t,n,r,i,a,o){e.tag=null,e.dump=n,Xt(e,n,!1)||Xt(e,n,!0);var s,l=bt.call(e.dump),c=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var u,p,d="[object Object]"===l||"[object Array]"===l;if(d&&(p=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(i=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(d&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)r&&0!==Object.keys(e.dump).length?(Vt(e,t,e.dump,i),p&&(e.dump="&ref_"+u+e.dump)):(Ht(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===l)r&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?Yt(e,t-1,e.dump,i):Yt(e,t,e.dump,i),p&&(e.dump="&ref_"+u+e.dump)):(Wt(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new h("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&jt(e,e.dump,t,a,c)}null!==e.tag&&"?"!==e.tag&&(s=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),s="!"===e.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",e.dump=s+" "+e.dump)}return!0}function Zt(e,t){var n,r,i=[],a=[];for(Jt(e,i,a),n=0,r=a.length;n<r;n+=1)t.duplicates.push(i[a[n]]);t.usedDuplicates=new Array(r)}function Jt(e,t,n){var r,i,a;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===n.indexOf(i)&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)Jt(e[i],t,n);else for(i=0,a=(r=Object.keys(e)).length;i<a;i+=1)Jt(e[r[i]],t,n)}function Qt(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}(0,r.K2)(wt,"compileStyleMap"),(0,r.K2)(Et,"encodeHex"),(0,r.K2)(At,"State"),(0,r.K2)(Ct,"indentString"),(0,r.K2)(_t,"generateNextLine"),(0,r.K2)(Pt,"testImplicitResolving"),(0,r.K2)(Ot,"isWhitespace"),(0,r.K2)(Lt,"isPrintable"),(0,r.K2)(It,"isNsCharOrWhitespace"),(0,r.K2)(Dt,"isPlainSafe"),(0,r.K2)(Mt,"isPlainSafeFirst"),(0,r.K2)(Nt,"isPlainSafeLast"),(0,r.K2)(Ft,"codePointAt"),(0,r.K2)(Bt,"needIndentIndicator"),(0,r.K2)(Rt,"chooseScalarStyle"),(0,r.K2)(jt,"writeScalar"),(0,r.K2)($t,"blockHeader"),(0,r.K2)(zt,"dropEndingNewline"),(0,r.K2)(Kt,"foldString"),(0,r.K2)(Ut,"foldLine"),(0,r.K2)(qt,"escapeString"),(0,r.K2)(Wt,"writeFlowSequence"),(0,r.K2)(Yt,"writeBlockSequence"),(0,r.K2)(Ht,"writeFlowMapping"),(0,r.K2)(Vt,"writeBlockMapping"),(0,r.K2)(Xt,"detectType"),(0,r.K2)(Gt,"writeNode"),(0,r.K2)(Zt,"getDuplicateReferences"),(0,r.K2)(Jt,"inspectNode"),(0,r.K2)((function(e,t){var n=new At(t=t||{});n.noRefs||Zt(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Gt(n,0,r,!0,!0)?n.dump+"\n":""}),"dump$1"),(0,r.K2)(Qt,"renamed");var en=X,tn=mt;Qt("safeLoad","load"),Qt("safeLoadAll","loadAll"),Qt("safeDump","dump")},33242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1,!0)};var r=n(16812)},33346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;const n=r.PLACEHOLDERS_ALIAS[e];return!(null==n||!n.includes(t))};var r=n(49390)},34375:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!(0,r.default)(e.type,"Immutable")||!!(0,i.isIdentifier)(e)&&"undefined"===e.name};var r=n(42379),i=n(60133)},34517:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(39600);var i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i?r.A.Buffer:void 0;const s=(o?o.isBuffer:void 0)||function(){return!1}},34878:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(67244).A)(Object.getPrototypeOf,Object)},35349:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(60133),i=n(16812),a=n(55262);function o(e,t=e.key){let n;return"method"===e.kind?o.increment()+"":(n=(0,r.isIdentifier)(t)?t.name:(0,r.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,a.default)((0,i.default)(t))),e.computed&&(n=`[${n}]`),e.static&&(n=`static:${n}`),n)}o.uid=0,o.increment=function(){return o.uid>=Number.MAX_SAFE_INTEGER?o.uid=0:o.uid++}},35772:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(22092),i=n(41167);const a=Object.keys(i);class o extends r.R{constructor(e,t,n,r){let o=-1;if(super(e,t),s(this,"space",r),"number"==typeof n)for(;++o<a.length;){const e=a[o];s(this,a[o],(n&i[e])===i[e])}}}function s(e,t,n){n&&(e[t]=n)}o.prototype.defined=!0},36135:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(45718),i=n(11028);const a=(e,t)=>{const n=i.A.parse(e);for(const e in t)n[e]=r.A.channel.clamp[e](t[e]);return i.A.stringify(n)}},36469:(e,t,n)=>{"use strict";function r(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);const e=n.slice(i,r).trim();!e&&a||t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function i(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>i,q:()=>r})},36713:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},36781:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6096);var i=n(25436),a=n(13269);function o(e){var t=this.__data__=new r.A(e);this.size=t.size}o.prototype.clear=function(){this.__data__=new r.A,this.size=0},o.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},o.prototype.get=function(e){return this.__data__.get(e)},o.prototype.has=function(e){return this.__data__.has(e)},o.prototype.set=function(e,t){var n=this.__data__;if(n instanceof r.A){var o=n.__data__;if(!i.A||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a.A(o)}return n.set(e,t),this.size=n.size,this};const s=o},39600:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(36713),i="object"==typeof self&&self&&self.Object===Object&&self;const a=r.A||i||Function("return this")()},39645:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(13269);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r.A),n}i.Cache=r.A;const a=i},40376:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(31475),i=n(47313);const a=function(e){return(0,i.A)(e)&&(0,r.A)(e)}},41167:(e,t,n)=>{"use strict";n.r(t),n.d(t,{boolean:()=>i,booleanish:()=>a,commaOrSpaceSeparated:()=>u,commaSeparated:()=>c,number:()=>s,overloadedBoolean:()=>o,spaceSeparated:()=>l});let r=0;const i=p(),a=p(),o=p(),s=p(),l=p(),c=p(),u=p();function p(){return 2**++r}},41628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=u,t.isIdentifierName=function(e){let t=!0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(55296==(64512&r)&&n+1<e.length){const t=e.charCodeAt(++n);56320==(64512&t)&&(r=65536+((1023&r)<<10)+(1023&t))}if(t){if(t=!1,!c(r))return!1}else if(!u(r))return!1}return!t},t.isIdentifierStart=c;let n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const i=new RegExp("["+n+"]"),a=new RegExp("["+n+r+"]");n=r=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],s=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function l(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function c(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):l(e,o)))}function u(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&a.test(String.fromCharCode(e)):l(e,o)||l(e,s))))}},41748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n=!1){return e.object=(0,r.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!n,e};var r=n(93806)},42363:(e,t,n)=>{"use strict";var r=n(65183);const i=(0,r.defineAliasedType)("JSX");i("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,r.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),i("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),i("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,r.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,r.assertNodeType)("JSXClosingElement")},children:(0,r.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,r.assertValueType)("boolean"),optional:!0}})}),i("JSXEmptyExpression",{}),i("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression","JSXEmptyExpression")}}}),i("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),i("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}}),i("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,r.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),i("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,r.assertNodeType)("JSXIdentifier")},name:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),i("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,r.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,r.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),i("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,r.assertNodeType)("Expression")}}}),i("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}}}),i("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,r.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,r.assertNodeType)("JSXClosingFragment")},children:(0,r.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),i("JSXOpeningFragment",{aliases:["Immutable"]}),i("JSXClosingFragment",{aliases:["Immutable"]})},42379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(null==e)return!1;if(r.ALIAS_KEYS[t])return!1;const n=r.FLIPPED_ALIAS_KEYS[t];return!(null==n||!n.includes(e))};var r=n(49390)},43998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){"function"==typeof t&&(t={enter:t});const{enter:r,exit:a}=t;i(e,r,a,n,[])};var r=n(49390);function i(e,t,n,a,o){const s=r.VISITOR_KEYS[e.type];if(s){t&&t(e,o,a);for(const r of s){const s=e[r];if(Array.isArray(s))for(let l=0;l<s.length;l++){const c=s[l];c&&(o.push({node:e,key:r,index:l}),i(c,t,n,a,o),o.pop())}else s&&(o.push({node:e,key:r}),i(s,t,n,a,o),o.pop())}n&&n(e,o,a)}}},44466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){if("object"!=typeof t||"object"!=typeof n||null==t||null==n)return t===n;if(t.type!==n.type)return!1;const i=Object.keys(r.NODE_FIELDS[t.type]||t.type),a=r.VISITOR_KEYS[t.type];for(const r of i){const i=t[r],o=n[r];if(typeof i!=typeof o)return!1;if(null!=i||null!=o){if(null==i||null==o)return!1;if(Array.isArray(i)){if(!Array.isArray(o))return!1;if(i.length!==o.length)return!1;for(let t=0;t<i.length;t++)if(!e(i[t],o[t]))return!1}else if("object"!=typeof i||null!=a&&a.includes(r)){if(!e(i,o))return!1}else for(const e of Object.keys(i))if(i[e]!==o[e])return!1}}return!0};var r=n(49390)},44585:(e,t,n)=>{"use strict";n.d(t,{G1:()=>o,PW:()=>i,Y:()=>r});const r=a("end"),i=a("start");function a(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function o(e){const t=i(e),n=r(e);if(t&&n)return{start:t,end:n}}},44614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXIdentifier=t.JSXFragment=t.JSXExpressionContainer=t.JSXEmptyExpression=t.JSXElement=t.JSXClosingFragment=t.JSXClosingElement=t.JSXAttribute=t.IntersectionTypeAnnotation=t.InterpreterDirective=t.InterfaceTypeAnnotation=t.InterfaceExtends=t.InterfaceDeclaration=t.InferredPredicate=t.IndexedAccessType=t.ImportSpecifier=t.ImportNamespaceSpecifier=t.ImportExpression=t.ImportDefaultSpecifier=t.ImportDeclaration=t.ImportAttribute=t.Import=t.IfStatement=t.Identifier=t.GenericTypeAnnotation=t.FunctionTypeParam=t.FunctionTypeAnnotation=t.FunctionExpression=t.FunctionDeclaration=t.ForStatement=t.ForOfStatement=t.ForInStatement=t.File=t.ExpressionStatement=t.ExportSpecifier=t.ExportNamespaceSpecifier=t.ExportNamedDeclaration=t.ExportDefaultSpecifier=t.ExportDefaultDeclaration=t.ExportAllDeclaration=t.ExistsTypeAnnotation=t.EnumSymbolBody=t.EnumStringMember=t.EnumStringBody=t.EnumNumberMember=t.EnumNumberBody=t.EnumDefaultedMember=t.EnumDeclaration=t.EnumBooleanMember=t.EnumBooleanBody=t.EmptyTypeAnnotation=t.EmptyStatement=t.DoWhileStatement=t.DoExpression=t.DirectiveLiteral=t.Directive=t.Decorator=t.DeclaredPredicate=t.DeclareVariable=t.DeclareTypeAlias=t.DeclareOpaqueType=t.DeclareModuleExports=t.DeclareModule=t.DeclareInterface=t.DeclareFunction=t.DeclareExportDeclaration=t.DeclareExportAllDeclaration=t.DeclareClass=t.DecimalLiteral=t.DebuggerStatement=t.ContinueStatement=t.ConditionalExpression=t.ClassProperty=t.ClassPrivateProperty=t.ClassPrivateMethod=t.ClassMethod=t.ClassImplements=t.ClassExpression=t.ClassDeclaration=t.ClassBody=t.ClassAccessorProperty=t.CatchClause=t.CallExpression=t.BreakStatement=t.BooleanTypeAnnotation=t.BooleanLiteralTypeAnnotation=t.BooleanLiteral=t.BlockStatement=t.BindExpression=t.BinaryExpression=t.BigIntLiteral=t.AwaitExpression=t.AssignmentPattern=t.AssignmentExpression=t.ArrowFunctionExpression=t.ArrayTypeAnnotation=t.ArrayPattern=t.ArrayExpression=t.ArgumentPlaceholder=t.AnyTypeAnnotation=void 0,t.TSNumberKeyword=t.TSNullKeyword=t.TSNonNullExpression=t.TSNeverKeyword=t.TSNamespaceExportDeclaration=t.TSNamedTupleMember=t.TSModuleDeclaration=t.TSModuleBlock=t.TSMethodSignature=t.TSMappedType=t.TSLiteralType=t.TSIntrinsicKeyword=t.TSIntersectionType=t.TSInterfaceDeclaration=t.TSInterfaceBody=t.TSInstantiationExpression=t.TSInferType=t.TSIndexedAccessType=t.TSIndexSignature=t.TSImportType=t.TSImportEqualsDeclaration=t.TSFunctionType=t.TSExternalModuleReference=t.TSExpressionWithTypeArguments=t.TSExportAssignment=t.TSEnumMember=t.TSEnumDeclaration=t.TSEnumBody=t.TSDeclareMethod=t.TSDeclareFunction=t.TSConstructorType=t.TSConstructSignatureDeclaration=t.TSConditionalType=t.TSCallSignatureDeclaration=t.TSBooleanKeyword=t.TSBigIntKeyword=t.TSAsExpression=t.TSArrayType=t.TSAnyKeyword=t.SymbolTypeAnnotation=t.SwitchStatement=t.SwitchCase=t.Super=t.StringTypeAnnotation=t.StringLiteralTypeAnnotation=t.StringLiteral=t.StaticBlock=t.SpreadProperty=t.SpreadElement=t.SequenceExpression=t.ReturnStatement=t.RestProperty=t.RestElement=t.RegexLiteral=t.RegExpLiteral=t.RecordExpression=t.QualifiedTypeIdentifier=t.Program=t.PrivateName=t.Placeholder=t.PipelineTopicExpression=t.PipelinePrimaryTopicReference=t.PipelineBareFunction=t.ParenthesizedExpression=t.OptionalMemberExpression=t.OptionalIndexedAccessType=t.OptionalCallExpression=t.OpaqueType=t.ObjectTypeSpreadProperty=t.ObjectTypeProperty=t.ObjectTypeInternalSlot=t.ObjectTypeIndexer=t.ObjectTypeCallProperty=t.ObjectTypeAnnotation=t.ObjectProperty=t.ObjectPattern=t.ObjectMethod=t.ObjectExpression=t.NumericLiteral=t.NumberTypeAnnotation=t.NumberLiteralTypeAnnotation=t.NumberLiteral=t.NullableTypeAnnotation=t.NullLiteralTypeAnnotation=t.NullLiteral=t.Noop=t.NewExpression=t.ModuleExpression=t.MixedTypeAnnotation=t.MetaProperty=t.MemberExpression=t.LogicalExpression=t.LabeledStatement=t.JSXText=t.JSXSpreadChild=t.JSXSpreadAttribute=t.JSXOpeningFragment=t.JSXOpeningElement=t.JSXNamespacedName=t.JSXMemberExpression=void 0,t.YieldExpression=t.WithStatement=t.WhileStatement=t.VoidTypeAnnotation=t.Variance=t.VariableDeclarator=t.VariableDeclaration=t.V8IntrinsicIdentifier=t.UpdateExpression=t.UnionTypeAnnotation=t.UnaryExpression=t.TypeofTypeAnnotation=t.TypeParameterInstantiation=t.TypeParameterDeclaration=t.TypeParameter=t.TypeCastExpression=t.TypeAnnotation=t.TypeAlias=t.TupleTypeAnnotation=t.TupleExpression=t.TryStatement=t.TopicReference=t.ThrowStatement=t.ThisTypeAnnotation=t.ThisExpression=t.TemplateLiteral=t.TemplateElement=t.TaggedTemplateExpression=t.TSVoidKeyword=t.TSUnknownKeyword=t.TSUnionType=t.TSUndefinedKeyword=t.TSTypeReference=t.TSTypeQuery=t.TSTypePredicate=t.TSTypeParameterInstantiation=t.TSTypeParameterDeclaration=t.TSTypeParameter=t.TSTypeOperator=t.TSTypeLiteral=t.TSTypeAssertion=t.TSTypeAnnotation=t.TSTypeAliasDeclaration=t.TSTupleType=t.TSThisType=t.TSTemplateLiteralType=t.TSSymbolKeyword=t.TSStringKeyword=t.TSSatisfiesExpression=t.TSRestType=t.TSQualifiedName=t.TSPropertySignature=t.TSParenthesizedType=t.TSParameterProperty=t.TSOptionalType=t.TSObjectKeyword=void 0;var r=n(56223);function i(e){return r[e]}n(50231),t.ArrayExpression=i("arrayExpression"),t.AssignmentExpression=i("assignmentExpression"),t.BinaryExpression=i("binaryExpression"),t.InterpreterDirective=i("interpreterDirective"),t.Directive=i("directive"),t.DirectiveLiteral=i("directiveLiteral"),t.BlockStatement=i("blockStatement"),t.BreakStatement=i("breakStatement"),t.CallExpression=i("callExpression"),t.CatchClause=i("catchClause"),t.ConditionalExpression=i("conditionalExpression"),t.ContinueStatement=i("continueStatement"),t.DebuggerStatement=i("debuggerStatement"),t.DoWhileStatement=i("doWhileStatement"),t.EmptyStatement=i("emptyStatement"),t.ExpressionStatement=i("expressionStatement"),t.File=i("file"),t.ForInStatement=i("forInStatement"),t.ForStatement=i("forStatement"),t.FunctionDeclaration=i("functionDeclaration"),t.FunctionExpression=i("functionExpression"),t.Identifier=i("identifier"),t.IfStatement=i("ifStatement"),t.LabeledStatement=i("labeledStatement"),t.StringLiteral=i("stringLiteral"),t.NumericLiteral=i("numericLiteral"),t.NullLiteral=i("nullLiteral"),t.BooleanLiteral=i("booleanLiteral"),t.RegExpLiteral=i("regExpLiteral"),t.LogicalExpression=i("logicalExpression"),t.MemberExpression=i("memberExpression"),t.NewExpression=i("newExpression"),t.Program=i("program"),t.ObjectExpression=i("objectExpression"),t.ObjectMethod=i("objectMethod"),t.ObjectProperty=i("objectProperty"),t.RestElement=i("restElement"),t.ReturnStatement=i("returnStatement"),t.SequenceExpression=i("sequenceExpression"),t.ParenthesizedExpression=i("parenthesizedExpression"),t.SwitchCase=i("switchCase"),t.SwitchStatement=i("switchStatement"),t.ThisExpression=i("thisExpression"),t.ThrowStatement=i("throwStatement"),t.TryStatement=i("tryStatement"),t.UnaryExpression=i("unaryExpression"),t.UpdateExpression=i("updateExpression"),t.VariableDeclaration=i("variableDeclaration"),t.VariableDeclarator=i("variableDeclarator"),t.WhileStatement=i("whileStatement"),t.WithStatement=i("withStatement"),t.AssignmentPattern=i("assignmentPattern"),t.ArrayPattern=i("arrayPattern"),t.ArrowFunctionExpression=i("arrowFunctionExpression"),t.ClassBody=i("classBody"),t.ClassExpression=i("classExpression"),t.ClassDeclaration=i("classDeclaration"),t.ExportAllDeclaration=i("exportAllDeclaration"),t.ExportDefaultDeclaration=i("exportDefaultDeclaration"),t.ExportNamedDeclaration=i("exportNamedDeclaration"),t.ExportSpecifier=i("exportSpecifier"),t.ForOfStatement=i("forOfStatement"),t.ImportDeclaration=i("importDeclaration"),t.ImportDefaultSpecifier=i("importDefaultSpecifier"),t.ImportNamespaceSpecifier=i("importNamespaceSpecifier"),t.ImportSpecifier=i("importSpecifier"),t.ImportExpression=i("importExpression"),t.MetaProperty=i("metaProperty"),t.ClassMethod=i("classMethod"),t.ObjectPattern=i("objectPattern"),t.SpreadElement=i("spreadElement"),t.Super=i("super"),t.TaggedTemplateExpression=i("taggedTemplateExpression"),t.TemplateElement=i("templateElement"),t.TemplateLiteral=i("templateLiteral"),t.YieldExpression=i("yieldExpression"),t.AwaitExpression=i("awaitExpression"),t.Import=i("import"),t.BigIntLiteral=i("bigIntLiteral"),t.ExportNamespaceSpecifier=i("exportNamespaceSpecifier"),t.OptionalMemberExpression=i("optionalMemberExpression"),t.OptionalCallExpression=i("optionalCallExpression"),t.ClassProperty=i("classProperty"),t.ClassAccessorProperty=i("classAccessorProperty"),t.ClassPrivateProperty=i("classPrivateProperty"),t.ClassPrivateMethod=i("classPrivateMethod"),t.PrivateName=i("privateName"),t.StaticBlock=i("staticBlock"),t.ImportAttribute=i("importAttribute"),t.AnyTypeAnnotation=i("anyTypeAnnotation"),t.ArrayTypeAnnotation=i("arrayTypeAnnotation"),t.BooleanTypeAnnotation=i("booleanTypeAnnotation"),t.BooleanLiteralTypeAnnotation=i("booleanLiteralTypeAnnotation"),t.NullLiteralTypeAnnotation=i("nullLiteralTypeAnnotation"),t.ClassImplements=i("classImplements"),t.DeclareClass=i("declareClass"),t.DeclareFunction=i("declareFunction"),t.DeclareInterface=i("declareInterface"),t.DeclareModule=i("declareModule"),t.DeclareModuleExports=i("declareModuleExports"),t.DeclareTypeAlias=i("declareTypeAlias"),t.DeclareOpaqueType=i("declareOpaqueType"),t.DeclareVariable=i("declareVariable"),t.DeclareExportDeclaration=i("declareExportDeclaration"),t.DeclareExportAllDeclaration=i("declareExportAllDeclaration"),t.DeclaredPredicate=i("declaredPredicate"),t.ExistsTypeAnnotation=i("existsTypeAnnotation"),t.FunctionTypeAnnotation=i("functionTypeAnnotation"),t.FunctionTypeParam=i("functionTypeParam"),t.GenericTypeAnnotation=i("genericTypeAnnotation"),t.InferredPredicate=i("inferredPredicate"),t.InterfaceExtends=i("interfaceExtends"),t.InterfaceDeclaration=i("interfaceDeclaration"),t.InterfaceTypeAnnotation=i("interfaceTypeAnnotation"),t.IntersectionTypeAnnotation=i("intersectionTypeAnnotation"),t.MixedTypeAnnotation=i("mixedTypeAnnotation"),t.EmptyTypeAnnotation=i("emptyTypeAnnotation"),t.NullableTypeAnnotation=i("nullableTypeAnnotation"),t.NumberLiteralTypeAnnotation=i("numberLiteralTypeAnnotation"),t.NumberTypeAnnotation=i("numberTypeAnnotation"),t.ObjectTypeAnnotation=i("objectTypeAnnotation"),t.ObjectTypeInternalSlot=i("objectTypeInternalSlot"),t.ObjectTypeCallProperty=i("objectTypeCallProperty"),t.ObjectTypeIndexer=i("objectTypeIndexer"),t.ObjectTypeProperty=i("objectTypeProperty"),t.ObjectTypeSpreadProperty=i("objectTypeSpreadProperty"),t.OpaqueType=i("opaqueType"),t.QualifiedTypeIdentifier=i("qualifiedTypeIdentifier"),t.StringLiteralTypeAnnotation=i("stringLiteralTypeAnnotation"),t.StringTypeAnnotation=i("stringTypeAnnotation"),t.SymbolTypeAnnotation=i("symbolTypeAnnotation"),t.ThisTypeAnnotation=i("thisTypeAnnotation"),t.TupleTypeAnnotation=i("tupleTypeAnnotation"),t.TypeofTypeAnnotation=i("typeofTypeAnnotation"),t.TypeAlias=i("typeAlias"),t.TypeAnnotation=i("typeAnnotation"),t.TypeCastExpression=i("typeCastExpression"),t.TypeParameter=i("typeParameter"),t.TypeParameterDeclaration=i("typeParameterDeclaration"),t.TypeParameterInstantiation=i("typeParameterInstantiation"),t.UnionTypeAnnotation=i("unionTypeAnnotation"),t.Variance=i("variance"),t.VoidTypeAnnotation=i("voidTypeAnnotation"),t.EnumDeclaration=i("enumDeclaration"),t.EnumBooleanBody=i("enumBooleanBody"),t.EnumNumberBody=i("enumNumberBody"),t.EnumStringBody=i("enumStringBody"),t.EnumSymbolBody=i("enumSymbolBody"),t.EnumBooleanMember=i("enumBooleanMember"),t.EnumNumberMember=i("enumNumberMember"),t.EnumStringMember=i("enumStringMember"),t.EnumDefaultedMember=i("enumDefaultedMember"),t.IndexedAccessType=i("indexedAccessType"),t.OptionalIndexedAccessType=i("optionalIndexedAccessType"),t.JSXAttribute=i("jsxAttribute"),t.JSXClosingElement=i("jsxClosingElement"),t.JSXElement=i("jsxElement"),t.JSXEmptyExpression=i("jsxEmptyExpression"),t.JSXExpressionContainer=i("jsxExpressionContainer"),t.JSXSpreadChild=i("jsxSpreadChild"),t.JSXIdentifier=i("jsxIdentifier"),t.JSXMemberExpression=i("jsxMemberExpression"),t.JSXNamespacedName=i("jsxNamespacedName"),t.JSXOpeningElement=i("jsxOpeningElement"),t.JSXSpreadAttribute=i("jsxSpreadAttribute"),t.JSXText=i("jsxText"),t.JSXFragment=i("jsxFragment"),t.JSXOpeningFragment=i("jsxOpeningFragment"),t.JSXClosingFragment=i("jsxClosingFragment"),t.Noop=i("noop"),t.Placeholder=i("placeholder"),t.V8IntrinsicIdentifier=i("v8IntrinsicIdentifier"),t.ArgumentPlaceholder=i("argumentPlaceholder"),t.BindExpression=i("bindExpression"),t.Decorator=i("decorator"),t.DoExpression=i("doExpression"),t.ExportDefaultSpecifier=i("exportDefaultSpecifier"),t.RecordExpression=i("recordExpression"),t.TupleExpression=i("tupleExpression"),t.DecimalLiteral=i("decimalLiteral"),t.ModuleExpression=i("moduleExpression"),t.TopicReference=i("topicReference"),t.PipelineTopicExpression=i("pipelineTopicExpression"),t.PipelineBareFunction=i("pipelineBareFunction"),t.PipelinePrimaryTopicReference=i("pipelinePrimaryTopicReference"),t.TSParameterProperty=i("tsParameterProperty"),t.TSDeclareFunction=i("tsDeclareFunction"),t.TSDeclareMethod=i("tsDeclareMethod"),t.TSQualifiedName=i("tsQualifiedName"),t.TSCallSignatureDeclaration=i("tsCallSignatureDeclaration"),t.TSConstructSignatureDeclaration=i("tsConstructSignatureDeclaration"),t.TSPropertySignature=i("tsPropertySignature"),t.TSMethodSignature=i("tsMethodSignature"),t.TSIndexSignature=i("tsIndexSignature"),t.TSAnyKeyword=i("tsAnyKeyword"),t.TSBooleanKeyword=i("tsBooleanKeyword"),t.TSBigIntKeyword=i("tsBigIntKeyword"),t.TSIntrinsicKeyword=i("tsIntrinsicKeyword"),t.TSNeverKeyword=i("tsNeverKeyword"),t.TSNullKeyword=i("tsNullKeyword"),t.TSNumberKeyword=i("tsNumberKeyword"),t.TSObjectKeyword=i("tsObjectKeyword"),t.TSStringKeyword=i("tsStringKeyword"),t.TSSymbolKeyword=i("tsSymbolKeyword"),t.TSUndefinedKeyword=i("tsUndefinedKeyword"),t.TSUnknownKeyword=i("tsUnknownKeyword"),t.TSVoidKeyword=i("tsVoidKeyword"),t.TSThisType=i("tsThisType"),t.TSFunctionType=i("tsFunctionType"),t.TSConstructorType=i("tsConstructorType"),t.TSTypeReference=i("tsTypeReference"),t.TSTypePredicate=i("tsTypePredicate"),t.TSTypeQuery=i("tsTypeQuery"),t.TSTypeLiteral=i("tsTypeLiteral"),t.TSArrayType=i("tsArrayType"),t.TSTupleType=i("tsTupleType"),t.TSOptionalType=i("tsOptionalType"),t.TSRestType=i("tsRestType"),t.TSNamedTupleMember=i("tsNamedTupleMember"),t.TSUnionType=i("tsUnionType"),t.TSIntersectionType=i("tsIntersectionType"),t.TSConditionalType=i("tsConditionalType"),t.TSInferType=i("tsInferType"),t.TSParenthesizedType=i("tsParenthesizedType"),t.TSTypeOperator=i("tsTypeOperator"),t.TSIndexedAccessType=i("tsIndexedAccessType"),t.TSMappedType=i("tsMappedType"),t.TSTemplateLiteralType=i("tsTemplateLiteralType"),t.TSLiteralType=i("tsLiteralType"),t.TSExpressionWithTypeArguments=i("tsExpressionWithTypeArguments"),t.TSInterfaceDeclaration=i("tsInterfaceDeclaration"),t.TSInterfaceBody=i("tsInterfaceBody"),t.TSTypeAliasDeclaration=i("tsTypeAliasDeclaration"),t.TSInstantiationExpression=i("tsInstantiationExpression"),t.TSAsExpression=i("tsAsExpression"),t.TSSatisfiesExpression=i("tsSatisfiesExpression"),t.TSTypeAssertion=i("tsTypeAssertion"),t.TSEnumBody=i("tsEnumBody"),t.TSEnumDeclaration=i("tsEnumDeclaration"),t.TSEnumMember=i("tsEnumMember"),t.TSModuleDeclaration=i("tsModuleDeclaration"),t.TSModuleBlock=i("tsModuleBlock"),t.TSImportType=i("tsImportType"),t.TSImportEqualsDeclaration=i("tsImportEqualsDeclaration"),t.TSExternalModuleReference=i("tsExternalModuleReference"),t.TSNonNullExpression=i("tsNonNullExpression"),t.TSExportAssignment=i("tsExportAssignment"),t.TSNamespaceExportDeclaration=i("tsNamespaceExportDeclaration"),t.TSTypeAnnotation=i("tsTypeAnnotation"),t.TSTypeParameterInstantiation=i("tsTypeParameterInstantiation"),t.TSTypeParameterDeclaration=i("tsTypeParameterDeclaration"),t.TSTypeParameter=i("tsTypeParameter"),t.NumberLiteral=r.numberLiteral,t.RegexLiteral=r.regexLiteral,t.RestProperty=r.restProperty,t.SpreadProperty=r.spreadProperty},45632:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,j:()=>l});var r=n(31382);function i(e){return function(){this.style.removeProperty(e)}}function a(e,t,n){return function(){this.style.setProperty(e,t,n)}}function o(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function s(e,t,n){return arguments.length>1?this.each((null==t?i:"function"==typeof t?o:a)(e,t,null==n?"":n)):l(this.node(),e)}function l(e,t){return e.style.getPropertyValue(t)||(0,r.A)(e).getComputedStyle(e,null).getPropertyValue(t)}},45718:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},i)=>{if(!t)return 2.55*n;e/=360,t/=100;const a=(n/=100)<.5?n*(1+t):n+t-n*t,o=2*n-a;switch(i){case"r":return 255*r.hue2rgb(o,a,e+1/3);case"g":return 255*r.hue2rgb(o,a,e);case"b":return 255*r.hue2rgb(o,a,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;const i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if("l"===r)return 100*o;if(i===a)return 0;const s=i-a;if("s"===r)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case e:return 60*((t-n)/s+(t<n?6:0));case t:return 60*((n-e)/s+2);case n:return 60*((e-t)/s+4);default:return-1}}},i={channel:r,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}}},46025:(e,t,n)=>{"use strict";function r(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{A:()=>Rt});var i=n(69820);s(/[A-Za-z]/),s(/[\dA-Za-z]/),s(/[#-'*+\--9=?A-Z^-~]/),s(/\d/),s(/[\dA-Fa-f]/),s(/[!-/:-@[-`{-~]/);const a=s(/\p{P}|\p{S}/u),o=s(/\s/);function s(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}const l=function(e){if(null==e)return u;if("function"==typeof e)return c(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=l(e[n]);return c((function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}))}(e):function(e){const t=e;return c((function(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}))}(e);if("string"==typeof e)return t=e,c((function(e){return e&&e.type===t}));var t;throw new Error("Expected function, string, or object as test")};function c(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function u(){return!0}const p=[],d=!0,h=!1,f="skip";function y(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const a=l(i),o=r?-1:1;!function e(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,y,g=p;if((!t||a(i,s,l[l.length-1]||void 0))&&(g=function(e){return Array.isArray(e)?e:"number"==typeof e?[d,e]:null==e?p:[e]}(n(i,l)),g[0]===h))return g;if("children"in i&&i.children){const t=i;if(t.children&&g[0]!==f)for(u=(r?t.children.length:-1)+o,y=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,y)(),c[0]===h)return c;u="number"==typeof c[1]?c[1]:u+o}}return g}}(e,void 0,[])()}function g(e){return"function"==typeof e?e:function(){return e}}const m="phrasing",b=["autolink","link","image","label"];function x(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function S(e){this.config.enter.autolinkProtocol.call(this,e)}function T(e){this.config.exit.autolinkProtocol.call(this,e)}function v(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];(0,i.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function k(e){this.config.exit.autolinkEmail.call(this,e)}function w(e){this.exit(e)}function E(e){!function(e,t,n){const r=l((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([(i=e[0],"string"==typeof i?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i),g(e[1])])}var i;return t}(t);let a=-1;for(;++a<i.length;)y(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){const e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[a][0],o=i[a][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let p=r.exec(e.value);for(;p;){const n=p.index,i={index:p.index,input:p.input,stack:[...t,e]};let a=o(...p,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+p[0].length,c=!0),!r.global)break;p=r.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,A],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,C]],{ignore:["link","linkReference"]})}function A(e,t,n,i,a){let o="";if(!_(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const a=r(e,"(");let o=r(e,")");for(;-1!==i&&a>o;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),o++;return[e,n]}(n+i);if(!s[0])return!1;const l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function C(e,t,n,r){return!(!_(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function _(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||o(n)||a(n))&&(!t||47!==n)}function P(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function O(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function L(){this.buffer()}function I(e){const t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.label=t,n.identifier=P(this.sliceSerialize(e)).toLowerCase()}function D(e){this.exit(e)}function M(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function N(){this.buffer()}function F(e){const t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.label=t,n.identifier=P(this.sliceSerialize(e)).toLowerCase()}function B(e){this.exit(e)}function R(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),s(),o(),a+=i.move("]"),a}function j(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteDefinition"),s=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),s(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),$)),o(),a}function $(e,t,n){return 0===t?e:(n?"":" ")+e}R.peek=function(){return"["};const z=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function K(e){this.enter({type:"delete",children:[]},e)}function U(e){this.exit(e)}function q(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function W(e){return e.length}function Y(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function H(e,t,n){return">"+(n?"":" ")+e}function V(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function X(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&(V(a=n.stack,(o=n.unsafe[i]).inConstruct,!0)&&!V(a,o.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var a,o;return"\\\n"}function G(e,t,n){return(n?"":" ")+e}function Z(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function J(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),a=n.enter("emphasis"),o=n.createTracker(r);let s=o.move(i);return s+=o.move(n.containerPhrasing(e,{before:s,after:i,...o.current()})),s+=o.move(i),a(),s}q.peek=function(){return"~"},J.peek=function(e,t,n){return n.options.emphasis||"*"};var Q=n(74269),ee=n(66197);const te={};function ne(e,t){const n=t||te;return re(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function re(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ie(e.children,t,n)}return Array.isArray(e)?ie(e,t,n):""}function ie(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=re(e[i],t,n);return r.join("")}function ae(e){return e.value||""}function oe(e,t,n,r){const i=Z(n),a='"'===i?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),o(),c}function se(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,a(),"full"!==i&&c&&c===p?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(p+"]"),l}function le(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const e=n.unsafe[a],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function ce(e,t){const n=ne(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function ue(e,t,n,r){const i=Z(n),a='"'===i?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(ce(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=o.move("<");return r+=o.move(n.containerPhrasing(e,{before:r,after:">",...o.current()})),r+=o.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),s(),c}function pe(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,a(),"full"!==i&&c&&c===p?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(p+"]"),l}function de(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function he(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}ae.peek=function(){return"<"},oe.peek=function(){return"!"},se.peek=function(){return"!"},le.peek=function(){return"`"},ue.peek=function(e,t,n){return ce(e,n)?"<":"["},pe.peek=function(){return"["};const fe=function(e){if(null==e)return ge;if("function"==typeof e)return ye(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=fe(e[n]);return ye((function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}))}(e):function(e){const t=e;return ye((function(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}))}(e);if("string"==typeof e)return t=e,ye((function(e){return e&&e.type===t}));var t;throw new Error("Expected function, string, or object as test")};function ye(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function ge(){return!0}const me=fe(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function be(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),a=n.enter("strong"),o=n.createTracker(r);let s=o.move(i+i);return s+=o.move(n.containerPhrasing(e,{before:s,after:i,...o.current()})),s+=o.move(i+i),a(),s}be.peek=function(e,t,n){return n.options.strong||"*"};const xe={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),H);return i(),o},break:X,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),a=e.value||"",o="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(a,G);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}(a,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),a&&(u+=s.move(a+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const i=Z(n),a='"'===i?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),o(),c},emphasis:J,hardBreak:X,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(function(e,t){let n=!1;return(0,Q.YR)(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,ee.dc})),Boolean((!e.depth||e.depth<3)&&ne(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),o=n.containerPhrasing(e,{...a.current(),before:"\n",after:"\n"});return r(),t(),o+"\n"+(1===i?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");a.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...a.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c},html:ae,image:oe,imageReference:se,inlineCode:le,link:ue,linkReference:pe,list:function(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):de(n);const s=e.ordered?"."===o?")":".":function(e){const t=de(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&o===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),he(n)===o&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let a=n.bulletCurrent||de(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?a:a+" ".repeat(o-a.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o},root:function(e,t,n,r){return(e.children.some((function(e){return me(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:be,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(he(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Se(e){const t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Te(e){this.exit(e),this.data.inTable=void 0}function ve(e){this.enter({type:"tableRow",children:[]},e)}function ke(e){this.exit(e)}function we(e){this.enter({type:"tableCell",children:[]},e)}function Ee(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ae));const n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function Ae(e,t){return"|"===t?t:e}function Ce(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=xe.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const a=[],o=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return o(),a}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){const i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){const i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||W,i=[],a=[],o=[],s=[];let l=0,c=-1;for(;++c<e.length;){const n=[],i=[];let p=-1;for(e[c].length>l&&(l=e[c].length);++p<e[c].length;){const a=null==(u=e[c][p])?"":String(u);if(!1!==t.alignDelimiters){const e=r(a);i[p]=e,(void 0===s[p]||e>s[p])&&(s[p]=e)}n.push(a)}a[c]=n,o[c]=i}var u;let p=-1;if("object"==typeof n&&"length"in n)for(;++p<l;)i[p]=Y(n[p]);else{const e=Y(n);for(;++p<l;)i[p]=e}p=-1;const d=[],h=[];for(;++p<l;){const e=i[p];let n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let a=!1===t.alignDelimiters?1:Math.max(1,s[p]-n.length-r.length);const o=n+"-".repeat(a)+r;!1!==t.alignDelimiters&&(a=n.length+a+r.length,a>s[p]&&(s[p]=a),h[p]=a),d[p]=o}a.splice(1,0,d),o.splice(1,0,h),c=-1;const f=[];for(;++c<a.length;){const e=a[c],n=o[c];p=-1;const r=[];for(;++p<l;){const a=e[p]||"";let o="",c="";if(!1!==t.alignDelimiters){const e=s[p]-(n[p]||0),t=i[p];114===t?o=" ".repeat(e):99===t?e%2?(o=" ".repeat(e/2+.5),c=" ".repeat(e/2-.5)):(o=" ".repeat(e/2),c=o):c=" ".repeat(e)}!1===t.delimiterStart||p||r.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===a||!1===t.delimiterStart&&!p||r.push(" "),!1!==t.alignDelimiters&&r.push(o),r.push(a),!1!==t.alignDelimiters&&r.push(c),!1!==t.padding&&r.push(" "),!1===t.delimiterEnd&&p===l-1||r.push("|")}f.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const a=[],s=t.enter("tableRow");for(;++i<r.length;)a[i]=o(r[i],0,t,n);return s(),a}}function _e(e){const t=this.stack[this.stack.length-2];(0,i.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function Pe(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===e.type);const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,a=-1;for(;++a<r.length;){const e=r[a];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Oe(e,t,n,r){const i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=xe.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+o}))),l}const Le={}.hasOwnProperty;function Ie(e,t){let n;for(n in t){const r=(Le.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let a;if(i)for(a in i){Le.call(r,a)||(r[a]=[]);const e=i[a];De(r[a],Array.isArray(e)?e:e?[e]:[])}}}function De(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);!function(e,t,n,r){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}(e,0,0,r)}const Me=je(/[A-Za-z]/),Ne=je(/[\dA-Za-z]/);function Fe(e){return null!==e&&(e<0||32===e)}je(/[#-'*+\--9=?A-Z^-~]/),je(/\d/),je(/[\dA-Fa-f]/),je(/[!-/:-@[-`{-~]/);const Be=je(/\p{P}|\p{S}/u),Re=je(/\s/);function je(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}const $e={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},ze={tokenize:function(e,t,n){let r,i,a;return o;function o(t){return 46===t||95===t?e.check(Ue,l,s)(t):null===t||Fe(t)||Re(t)||45!==t&&Be(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function l(e){return i||r||!a?n(e):t(e)}},partial:!0},Ke={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?a(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(Ue,t,a)(o):null===o||Fe(o)||Re(o)?t(o):(e.consume(o),i)}function a(t){return 41===t&&r++,e.consume(t),i}},partial:!0},Ue={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),a):93===o?(e.consume(o),i):60===o||null===o||Fe(o)||Re(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||Fe(e)||Re(e)?t(e):r(e)}function a(e){return Me(e)?o(e):n(e)}function o(t){return 59===t?(e.consume(t),r):Me(t)?(e.consume(t),o):n(t)}},partial:!0},qe={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Ne(e)?n(e):t(e)}},partial:!0},We={tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!Ge.call(r,r.previous)||et(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($e,e.attempt(ze,e.attempt(Ke,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Ge},Ye={tokenize:function(e,t,n){const r=this;let i="",a=!1;return function(t){return 72!==t&&104!==t||!Ze.call(r,r.previous)||et(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o)};function o(t){if(Me(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),a?l:(a=!0,s)):n(t)}function l(t){return null===t||function(e){return null!==e&&(e<32||127===e)}(t)||Fe(t)||Re(t)||Be(t)?n(t):e.attempt(ze,e.attempt(Ke,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Ze},He={tokenize:function(e,t,n){const r=this;let i,a;return function(t){return Qe(t)&&Je.call(r,r.previous)&&!et(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)):n(t)};function o(t){return Qe(t)?(e.consume(t),o):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(qe,c,l)(t):45===t||95===t||Ne(t)?(a=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(o){return a&&i&&Me(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:Je},Ve={};let Xe=48;for(;Xe<123;)Ve[Xe]=He,Xe++,58===Xe?Xe=65:91===Xe&&(Xe=97);function Ge(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Fe(e)}function Ze(e){return!Me(e)}function Je(e){return!(47===e||Qe(e))}function Qe(e){return 43===e||45===e||46===e||95===e||Ne(e)}function et(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function tt(e){return null!==e&&(e<0||32===e)}function nt(e){return-2===e||-1===e||32===e}function rt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function it(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return nt(r)?(e.enter(n),o(r)):t(r)};function o(r){return nt(r)&&a++<i?(e.consume(r),o):(e.exit(n),t(r))}}Ve[43]=He,Ve[45]=He,Ve[46]=He,Ve[95]=He,Ve[72]=[He,Ye],Ve[104]=[He,Ye],Ve[87]=[He,We],Ve[119]=[He,We],rt(/[A-Za-z]/),rt(/[\dA-Za-z]/),rt(/[#-'*+\--9=?A-Z^-~]/),rt(/\d/),rt(/[\dA-Fa-f]/),rt(/[!-/:-@[-`{-~]/),rt(/\p{P}|\p{S}/u),rt(/\s/);const at={tokenize:function(e,t,n){return function(t){return nt(t)?it(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||function(e){return null!==e&&e<-2}(e)?t(e):n(e)}},partial:!0};function ot(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const st={tokenize:function(e,t,n){const r=this;return it(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function lt(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!o||!o._balanced)return n(i);const s=ot(r.sliceSerialize({start:o.end,end:r.now()}));return 94===s.codePointAt(0)&&a.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function ct(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function ut(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!a||null===s||91===s||tt(s))return n(s);if(93===s){e.exit("chunkString");const a=e.exit("gfmFootnoteCallString");return i.includes(ot(r.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return tt(s)||(a=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function pt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!o||null===t||91===t||tt(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return a=ot(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return tt(t)||(o=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(a)||i.push(a),it(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function dt(e,t,n){return e.check(at,t,e.attempt(st,t,n))}function ht(e){e.exit("gfmFootnoteDefinition")}function ft(e,t,n,r){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}mt(/[A-Za-z]/),mt(/[\dA-Za-z]/),mt(/[#-'*+\--9=?A-Z^-~]/),mt(/\d/),mt(/[\dA-Fa-f]/),mt(/[!-/:-@[-`{-~]/);const yt=mt(/\p{P}|\p{S}/u),gt=mt(/\s/);function mt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function bt(e){return null===e||function(e){return null!==e&&(e<0||32===e)}(e)||gt(e)?1:yt(e)?2:void 0}function xt(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function St(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const i=this.previous,a=this.events;let o=0;return function(t){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(a){const l=bt(i);if(126===a)return o>1?r(a):(e.consume(a),o++,s);if(o<2&&!t)return r(a);const c=e.exit("strikethroughSequenceTemporary"),u=bt(a);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(a)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&ft(o,o.length,0,xt(s,e.slice(r+1,n),t)),ft(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),ft(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}function Tt(e){return null!==e&&e<-2}function vt(e){return null!==e&&(e<0||32===e)}function kt(e){return-2===e||-1===e||32===e}function wt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Et(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return kt(r)?(e.enter(n),o(r)):t(r)};function o(r){return kt(r)&&a++<i?(e.consume(r),o):(e.exit(n),t(r))}}wt(/[A-Za-z]/),wt(/[\dA-Za-z]/),wt(/[#-'*+\--9=?A-Z^-~]/),wt(/\d/),wt(/[\dA-Fa-f]/),wt(/[!-/:-@[-`{-~]/),wt(/\p{P}|\p{S}/u),wt(/\s/);class At{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function Ct(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function _t(e,t,n){const r=this;let i,a=0,o=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,a="tableHead"===i||"tableRow"===i?S:s;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,o+=1),l(e)}(t)}function l(t){return null===t?n(t):Tt(t)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):kt(t)?Et(e,l,"whitespace")(t):(o+=1,i&&(i=!1,a+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||vt(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,kt(t)?Et(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?f(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):x(t)}function h(t){return kt(t)?Et(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):45===t?(o+=1,y(t)):null===t||Tt(t)?b(t):x(t)}function y(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):x(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):(e.exit("tableDelimiterFiller"),m(t))}function m(t){return kt(t)?Et(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?d(n):(null===n||Tt(n))&&i&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter("tableRow"),T(t)}function T(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),T):null===n||Tt(n)?(e.exit("tableRow"),t(n)):kt(n)?Et(e,T,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||vt(t)?(e.exit("data"),T(t)):(e.consume(t),92===t?k:v)}function k(t){return 92===t||124===t?(e.consume(t),v):v(t)}}function Pt(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,p=0;const d=new At;for(;++a<e.length;){const h=e[a],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==p&&(Lt(d,t,p,n,r),r=void 0,p=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(a,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(o=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(a,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],i=Ot(d,t,l,s,void 0,i)),l=c,c=[l[1],a,0,0])):(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Ot(d,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableHead"===f.type?(u=!0,p=a):"tableRow"===f.type||"tableDelimiterRow"===f.type?(p=a,0!==l[1]?(c[0]=c[1],i=Ot(d,t,l,s,a,i)):0!==c[1]&&(i=Ot(d,t,c,s,a,i)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=a)}for(0!==p&&Lt(d,t,p,n,r),d.consume(t.events),a=-1;++a<t.events.length;){const e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Ct(t.events,a))}return e}function Ot(e,t,n,r,i,a){const o=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(a.end=Object.assign({},It(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const s=It(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){const i=It(t.events,n[2]),a=It(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},It(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Lt(e,t,n,r,i){const a=[],o=It(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function It(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}function Dt(e){return-2===e||-1===e||32===e}function Mt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}Mt(/[A-Za-z]/),Mt(/[\dA-Za-z]/),Mt(/[#-'*+\--9=?A-Z^-~]/),Mt(/\d/),Mt(/[\dA-Fa-f]/),Mt(/[!-/:-@[-`{-~]/),Mt(/\p{P}|\p{S}/u),Mt(/\s/);const Nt={tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return function(e){return null!==e&&(e<0||32===e)}(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return function(e){return null!==e&&e<-2}(r)?t(r):Dt(r)?e.check({tokenize:Ft},t,n)(r):n(r)}}};function Ft(e,t,n){return function(e,t,n){const r=Number.POSITIVE_INFINITY;let i=0;return function(r){return Dt(r)?(e.enter(n),a(r)):t(r)};function a(o){return Dt(o)&&i++<r?(e.consume(o),a):(e.exit(n),t(o))}}(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const Bt={};function Rt(e){const t=e||Bt,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return function(e){const t={};let n=-1;for(;++n<e.length;)Ie(t,e[n]);return t}([{text:Ve},{document:{91:{tokenize:pt,continuation:{tokenize:dt},exit:ht}},text:{91:{tokenize:ut},93:{add:"after",tokenize:lt,resolveTo:ct}}},St(e),{flow:{null:{tokenize:_t,resolveAll:Pt}}},{text:{91:Nt}}])}(t)),i.push([{transforms:[E],enter:{literalAutolink:x,literalAutolinkEmail:S,literalAutolinkHttp:S,literalAutolinkWww:S},exit:{literalAutolink:w,literalAutolinkEmail:k,literalAutolinkHttp:T,literalAutolinkWww:v}},{enter:{gfmFootnoteDefinition:O,gfmFootnoteDefinitionLabelString:L,gfmFootnoteCall:M,gfmFootnoteCallString:N},exit:{gfmFootnoteDefinition:D,gfmFootnoteDefinitionLabelString:I,gfmFootnoteCall:B,gfmFootnoteCallString:F}},{canContainEols:["delete"],enter:{strikethrough:K},exit:{strikethrough:U}},{enter:{table:Se,tableData:we,tableHeader:we,tableRow:ve},exit:{codeText:Ee,table:Te,tableData:ke,tableHeader:ke,tableRow:ke}},{exit:{taskListCheckValueChecked:_e,taskListCheckValueUnchecked:_e,paragraph:Pe}}]),a.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:m,notInConstruct:b},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:m,notInConstruct:b},{character:":",before:"[ps]",after:"\\/",inConstruct:m,notInConstruct:b}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:j,footnoteReference:R}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:z}],handlers:{delete:q}},Ce(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Oe}}]}}(t))}},46248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!0,!0)};var r=n(16812)},46676:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(60133);function i(e,t,n,a){const o=[].concat(e),s=Object.create(null);for(;o.length;){const e=o.shift();if(!e)continue;if(a&&((0,r.isAssignmentExpression)(e)||(0,r.isUnaryExpression)(e)||(0,r.isUpdateExpression)(e)))continue;if((0,r.isIdentifier)(e)){t?(s[e.name]=s[e.name]||[]).push(e):s[e.name]=e;continue}if((0,r.isExportDeclaration)(e)&&!(0,r.isExportAllDeclaration)(e)){(0,r.isDeclaration)(e.declaration)&&o.push(e.declaration);continue}if(n){if((0,r.isFunctionDeclaration)(e)){o.push(e.id);continue}if((0,r.isFunctionExpression)(e))continue}const l=i.keys[e.type];if(l)for(let t=0;t<l.length;t++){const n=e[l[t]];n&&(Array.isArray(n)?o.push(...n):o.push(n))}}return s}i.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},46691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("trailingComments",e,t)};var r=n(30594)},46738:(e,t,n)=>{"use strict";function r(e){return e.toLowerCase()}n.d(t,{S:()=>r})},47313:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},47845:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return function(){return e}}},47893:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},47964:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(85944);const i=(e,t)=>(0,r.A)(e,"l",t)},48204:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[].concat(e),n=Object.create(null);for(;t.length;){const e=t.pop();if(e)switch(e.type){case"ArrayPattern":t.push(...e.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(e.left);break;case"ObjectPattern":t.push(...e.properties);break;case"ObjectProperty":t.push(e.value);break;case"RestElement":case"UpdateExpression":t.push(e.argument);break;case"UnaryExpression":"delete"===e.operator&&t.push(e.argument);break;case"Identifier":n[e.name]=e}}return n}},48518:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(69740),i=n(86330),a=n(57372),o=function(){var e=(0,i.A)((function*(e,t,n,i){return(yield a.http.get("api/gateway/cmdb.instance.GetDetail/object/".concat(e,"/instance/").concat(t),(0,r.A)((0,r.A)({},i),{},{params:n}))).data}));return function(t,n,r,i){return e.apply(this,arguments)}}()},48778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isImportDefaultSpecifier)(e)||(0,r.isIdentifier)(e.imported||e.exported,{name:"default"})};var r=n(60133)},49390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return r.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return r.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return a.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return r.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return r.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return r.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return r.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return i.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return i.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return r.VISITOR_KEYS}}),n(81587),n(94520),n(42363),n(27232),n(18218),n(94831);var r=n(65183),i=n(74014),a=n(81720);Object.keys(a.DEPRECATED_ALIASES).forEach((e=>{r.FLIPPED_ALIAS_KEYS[e]=r.FLIPPED_ALIAS_KEYS[a.DEPRECATED_ALIASES[e]]}));for(const{types:e,set:t}of r.allExpandedTypes)for(const n of e){const e=r.FLIPPED_ALIAS_KEYS[n];e?e.forEach(t.add,t):t.add(n)}t.TYPES=[].concat(Object.keys(r.VISITOR_KEYS),Object.keys(r.FLIPPED_ALIAS_KEYS),Object.keys(r.DEPRECATED_KEYS))},50123:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(50405);const i=n(39600).A["__core-js_shared__"];var a,o=(a=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";var s=n(97942),l=n(1548),c=/^\[object .+?Constructor\]$/,u=Function.prototype,p=Object.prototype,d=u.toString,h=p.hasOwnProperty,f=RegExp("^"+d.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const y=function(e){return!(!(0,s.A)(e)||(t=e,o&&o in t))&&((0,r.A)(e)?f:c).test((0,l.A)(e));var t},g=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return y(n)?n:void 0}},50231:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r="",i=e){if(n.has(i))return;n.add(i);const{internal:a,trace:o}=function(){const{stackTraceLimit:e,prepareStackTrace:t}=Error;let n;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){n=t},(new Error).stack,Error.stackTraceLimit=e,Error.prepareStackTrace=t,!n)return{internal:!1,trace:""};const r=n.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(r[1].getFileName()),trace:r.map((e=>` at ${e}`)).join("\n")}}();a||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`\n${o}`)};const n=new Set},50405:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(4044),i=n(97942);const a=function(e){if(!(0,i.A)(e))return!1;var t=(0,r.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},50695:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(14151),i=n(16264),a=n(97649);const o=function(e,t){return(0,a.A)((0,i.A)(e,t,r.A),e+"")}},51157:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});const r=document.createElement("i");function i(e){const t="&"+e+";";r.innerHTML=t;const n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}},51662:(e,t,n)=>{"use strict";function r(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}n.d(t,{A:()=>r}),r.displayName="clike",r.aliases=[]},52636:(e,t,n)=>{"use strict";n.d(t,{A:()=>ne});const{entries:r,setPrototypeOf:i,isFrozen:a,getPrototypeOf:o,getOwnPropertyDescriptor:s}=Object;let{freeze:l,seal:c,create:u}=Object,{apply:p,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),p||(p=function(e,t,n){return e.apply(t,n)}),d||(d=function(e,t){return new e(...t)});const h=_(Array.prototype.forEach),f=_(Array.prototype.lastIndexOf),y=_(Array.prototype.pop),g=_(Array.prototype.push),m=_(Array.prototype.splice),b=_(String.prototype.toLowerCase),x=_(String.prototype.toString),S=_(String.prototype.match),T=_(String.prototype.replace),v=_(String.prototype.indexOf),k=_(String.prototype.trim),w=_(Object.prototype.hasOwnProperty),E=_(RegExp.prototype.test),A=(C=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(C,t)});var C;function _(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return p(e,t,r)}}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;i&&i(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(a(t)||(t[r]=e),i=e)}e[i]=!0}return e}function O(e){for(let t=0;t<e.length;t++)w(e,t)||(e[t]=null);return e}function L(e){const t=u(null);for(const[n,i]of r(e))w(e,n)&&(Array.isArray(i)?t[n]=O(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=L(i):t[n]=i);return t}function I(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}e=o(e)}return function(){return null}}const D=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=l(["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"]),F=l(["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"]),B=l(["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"]),R=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),j=l(["#text"]),$=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),z=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),K=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),U=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=c(/<%[\w\W]*|[\w\W]*%>/gm),Y=c(/\$\{[\w\W]*/gm),H=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),V=c(/^aria-[\-\w]+$/),X=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=c(/^(?:\w+script|data):/i),Z=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=c(/^html$/i),Q=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:V,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:Q,DATA_ATTR:H,DOCTYPE_NAME:J,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:G,MUSTACHE_EXPR:q,TMPLIT_EXPR:Y});const te=function(){return"undefined"==typeof window?null:window};var ne=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const a=i,o=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:c,Node:p,Element:d,NodeFilter:C,NamedNodeMap:_=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:O,DOMParser:q,trustedTypes:W}=t,Y=d.prototype,H=I(Y,"cloneNode"),V=I(Y,"remove"),G=I(Y,"nextSibling"),Z=I(Y,"childNodes"),Q=I(Y,"parentNode");if("function"==typeof c){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let ne,re="";const{implementation:ie,createNodeIterator:ae,createDocumentFragment:oe,getElementsByTagName:se}=i,{importNode:le}=a;let ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof Q&&ie&&void 0!==ie.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:pe,TMPLIT_EXPR:de,DATA_ATTR:he,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:me}=ee;let{IS_ALLOWED_URI:be}=ee,xe=null;const Se=P({},[...D,...M,...N,...B,...j]);let Te=null;const ve=P({},[...$,...z,...K,...U]);let ke=Object.seal(u(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}})),we=null,Ee=null,Ae=!0,Ce=!0,_e=!1,Pe=!0,Oe=!1,Le=!0,Ie=!1,De=!1,Me=!1,Ne=!1,Fe=!1,Be=!1,Re=!0,je=!1,$e=!0,ze=!1,Ke={},Ue=null;const qe=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let We=null;const Ye=P({},["audio","video","img","source","image","track"]);let He=null;const Ve=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Je=Ze,Qe=!1,et=null;const tt=P({},[Xe,Ge,Ze],x);let nt=P({},["mi","mo","mn","ms","mtext"]),rt=P({},["annotation-xml"]);const it=P({},["title","style","font","a","script"]);let at=null;const ot=["application/xhtml+xml","text/html"];let st=null,lt=null;const ct=i.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=L(e),at=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===at?x:b,xe=w(e,"ALLOWED_TAGS")?P({},e.ALLOWED_TAGS,st):Se,Te=w(e,"ALLOWED_ATTR")?P({},e.ALLOWED_ATTR,st):ve,et=w(e,"ALLOWED_NAMESPACES")?P({},e.ALLOWED_NAMESPACES,x):tt,He=w(e,"ADD_URI_SAFE_ATTR")?P(L(Ve),e.ADD_URI_SAFE_ATTR,st):Ve,We=w(e,"ADD_DATA_URI_TAGS")?P(L(Ye),e.ADD_DATA_URI_TAGS,st):Ye,Ue=w(e,"FORBID_CONTENTS")?P({},e.FORBID_CONTENTS,st):qe,we=w(e,"FORBID_TAGS")?P({},e.FORBID_TAGS,st):L({}),Ee=w(e,"FORBID_ATTR")?P({},e.FORBID_ATTR,st):L({}),Ke=!!w(e,"USE_PROFILES")&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,_e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,Le=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Ne=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Re=!1!==e.SANITIZE_DOM,je=e.SANITIZE_NAMED_PROPS||!1,$e=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||X,Je=e.NAMESPACE||Ze,nt=e.MATHML_TEXT_INTEGRATION_POINTS||nt,rt=e.HTML_INTEGRATION_POINTS||rt,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Ce=!1),Fe&&(Ne=!0),Ke&&(xe=P({},j),Te=[],!0===Ke.html&&(P(xe,D),P(Te,$)),!0===Ke.svg&&(P(xe,M),P(Te,z),P(Te,U)),!0===Ke.svgFilters&&(P(xe,N),P(Te,z),P(Te,U)),!0===Ke.mathMl&&(P(xe,B),P(Te,K),P(Te,U))),e.ADD_TAGS&&(xe===Se&&(xe=L(xe)),P(xe,e.ADD_TAGS,st)),e.ADD_ATTR&&(Te===ve&&(Te=L(Te)),P(Te,e.ADD_ATTR,st)),e.ADD_URI_SAFE_ATTR&&P(He,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(Ue===qe&&(Ue=L(Ue)),P(Ue,e.FORBID_CONTENTS,st)),$e&&(xe["#text"]=!0),Ie&&P(xe,["html","head","body"]),xe.table&&(P(xe,["tbody"]),delete we.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(W,o)),null!==ne&&"string"==typeof re&&(re=ne.createHTML(""));l&&l(e),lt=e}},dt=P({},[...M,...N,...F]),ht=P({},[...B,...R]),ft=function(e){g(n.removed,{element:e});try{Q(e).removeChild(e)}catch(t){V(e)}},yt=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ne||Fe)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},gt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=S(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===at&&Je===Ze&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ne?ne.createHTML(e):e;if(Je===Ze)try{t=(new q).parseFromString(r,at)}catch(e){}if(!t||!t.documentElement){t=ie.createDocument(Je,"template",null);try{t.documentElement.innerHTML=Qe?re:r}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),Je===Ze?se.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:a},mt=function(e){return ae.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT|C.SHOW_PROCESSING_INSTRUCTION|C.SHOW_CDATA_SECTION,null)},bt=function(e){return e instanceof O&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof _)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},xt=function(e){return"function"==typeof p&&e instanceof p};function St(e,t,r){h(e,(e=>{e.call(n,t,r,lt)}))}const Tt=function(e){let t=null;if(St(ce.beforeSanitizeElements,e,null),bt(e))return ft(e),!0;const r=st(e.nodeName);if(St(ce.uponSanitizeElement,e,{tagName:r,allowedTags:xe}),Le&&e.hasChildNodes()&&!xt(e.firstElementChild)&&E(/<[/\w!]/g,e.innerHTML)&&E(/<[/\w!]/g,e.textContent))return ft(e),!0;if(7===e.nodeType)return ft(e),!0;if(Le&&8===e.nodeType&&E(/<[/\w]/g,e.data))return ft(e),!0;if(!xe[r]||we[r]){if(!we[r]&&kt(r)){if(ke.tagNameCheck instanceof RegExp&&E(ke.tagNameCheck,r))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(r))return!1}if($e&&!Ue[r]){const t=Q(e)||e.parentNode,n=Z(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const i=H(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,G(e))}}return ft(e),!0}return e instanceof d&&!function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});const n=b(e.tagName),r=b(t.tagName);return!!et[e.namespaceURI]&&(e.namespaceURI===Ge?t.namespaceURI===Ze?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||nt[r]):Boolean(dt[n]):e.namespaceURI===Xe?t.namespaceURI===Ze?"math"===n:t.namespaceURI===Ge?"math"===n&&rt[r]:Boolean(ht[n]):e.namespaceURI===Ze?!(t.namespaceURI===Ge&&!rt[r])&&!(t.namespaceURI===Xe&&!nt[r])&&!ht[n]&&(it[n]||!dt[n]):!("application/xhtml+xml"!==at||!et[e.namespaceURI]))}(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!E(/<\/no(script|embed|frames)/i,e.innerHTML)?(Oe&&3===e.nodeType&&(t=e.textContent,h([ue,pe,de],(e=>{t=T(t,e," ")})),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),St(ce.afterSanitizeElements,e,null),!1):(ft(e),!0)},vt=function(e,t,n){if(Re&&("id"===t||"name"===t)&&(n in i||n in ct))return!1;if(Ce&&!Ee[t]&&E(he,t));else if(Ae&&E(fe,t));else if(!Te[t]||Ee[t]){if(!(kt(e)&&(ke.tagNameCheck instanceof RegExp&&E(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&E(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&E(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(He[t]);else if(E(be,T(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!We[e])if(_e&&!E(ye,T(n,ge,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&S(e,me)},wt=function(e){St(ce.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||bt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let i=t.length;for(;i--;){const a=t[i],{name:o,namespaceURI:s,value:l}=a,c=st(o),u=l;let p="value"===o?u:k(u);if(r.attrName=c,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,St(ce.uponSanitizeAttribute,e,r),p=r.attrValue,!je||"id"!==c&&"name"!==c||(yt(o,e),p="user-content-"+p),Le&&E(/((--!?|])>)|<\/(style|title)/i,p)){yt(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){yt(o,e);continue}if(!Pe&&E(/\/>/i,p)){yt(o,e);continue}Oe&&h([ue,pe,de],(e=>{p=T(p,e," ")}));const d=st(e.nodeName);if(vt(d,c,p)){if(ne&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(s);else switch(W.getAttributeType(d,c)){case"TrustedHTML":p=ne.createHTML(p);break;case"TrustedScriptURL":p=ne.createScriptURL(p)}if(p!==u)try{s?e.setAttributeNS(s,o,p):e.setAttribute(o,p),bt(e)?ft(e):y(n.removed)}catch(t){yt(o,e)}}else yt(o,e)}St(ce.afterSanitizeAttributes,e,null)},Et=function e(t){let n=null;const r=mt(t);for(St(ce.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)St(ce.uponSanitizeShadowNode,n,null),Tt(n),wt(n),n.content instanceof s&&e(n.content);St(ce.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,o=null,l=null;if(Qe=!e,Qe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xt(e)){if("function"!=typeof e.toString)throw A("toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!n.isSupported)return e;if(De||pt(t),n.removed=[],"string"==typeof e&&(ze=!1),ze){if(e.nodeName){const t=st(e.nodeName);if(!xe[t]||we[t])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)r=gt("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Ne&&!Oe&&!Ie&&-1===e.indexOf("<"))return ne&&Be?ne.createHTML(e):e;if(r=gt(e),!r)return Ne?null:Be?re:""}r&&Me&&ft(r.firstChild);const c=mt(ze?e:r);for(;o=c.nextNode();)Tt(o),wt(o),o.content instanceof s&&Et(o.content);if(ze)return e;if(Ne){if(Fe)for(l=oe.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(Te.shadowroot||Te.shadowrootmode)&&(l=le.call(a,l,!0)),l}let u=Ie?r.outerHTML:r.innerHTML;return Ie&&xe["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&E(J,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),Oe&&h([ue,pe,de],(e=>{u=T(u,e," ")})),ne&&Be?ne.createHTML(u):u},n.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),De=!0},n.clearConfig=function(){lt=null,De=!1},n.isValidAttribute=function(e,t,n){lt||pt({});const r=st(e),i=st(t);return vt(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&g(ce[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=f(ce[e],t);return-1===n?void 0:m(ce[e],n,1)[0]}return y(ce[e])},n.removeHooks=function(e){ce[e]=[]},n.removeAllHooks=function(){ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()},53349:(e,t,n)=>{"use strict";n.d(t,{f:()=>G});var r={};n.r(r),n.d(r,{boolean:()=>c,booleanish:()=>u,commaOrSpaceSeparated:()=>y,commaSeparated:()=>f,number:()=>d,overloadedBoolean:()=>p,spaceSeparated:()=>h});class i{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function a(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new i(n,r,t)}function o(e){return e.toLowerCase()}i.prototype.normal={},i.prototype.property={},i.prototype.space=void 0;class s{constructor(e,t){this.attribute=t,this.property=e}}s.prototype.attribute="",s.prototype.booleanish=!1,s.prototype.boolean=!1,s.prototype.commaOrSpaceSeparated=!1,s.prototype.commaSeparated=!1,s.prototype.defined=!1,s.prototype.mustUseProperty=!1,s.prototype.number=!1,s.prototype.overloadedBoolean=!1,s.prototype.property="",s.prototype.spaceSeparated=!1,s.prototype.space=void 0;let l=0;const c=g(),u=g(),p=g(),d=g(),h=g(),f=g(),y=g();function g(){return 2**++l}const m=Object.keys(r);class b extends s{constructor(e,t,n,i){let a=-1;if(super(e,t),x(this,"space",i),"number"==typeof n)for(;++a<m.length;){const e=m[a];x(this,m[a],(n&r[e])===r[e])}}}function x(e,t,n){n&&(e[t]=n)}function S(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new b(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[o(r)]=r,n[o(a.attribute)]=r}return new i(t,n,e.space)}b.prototype.defined=!0;const T=S({properties:{ariaActiveDescendant:null,ariaAtomic:u,ariaAutoComplete:null,ariaBusy:u,ariaChecked:u,ariaColCount:d,ariaColIndex:d,ariaColSpan:d,ariaControls:h,ariaCurrent:null,ariaDescribedBy:h,ariaDetails:null,ariaDisabled:u,ariaDropEffect:h,ariaErrorMessage:null,ariaExpanded:u,ariaFlowTo:h,ariaGrabbed:u,ariaHasPopup:null,ariaHidden:u,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:h,ariaLevel:d,ariaLive:null,ariaModal:u,ariaMultiLine:u,ariaMultiSelectable:u,ariaOrientation:null,ariaOwns:h,ariaPlaceholder:null,ariaPosInSet:d,ariaPressed:u,ariaReadOnly:u,ariaRelevant:null,ariaRequired:u,ariaRoleDescription:h,ariaRowCount:d,ariaRowIndex:d,ariaRowSpan:d,ariaSelected:u,ariaSetSize:d,ariaSort:null,ariaValueMax:d,ariaValueMin:d,ariaValueNow:d,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function v(e,t){return t in e?e[t]:t}function k(e,t){return v(e,t.toLowerCase())}const w=S({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:f,acceptCharset:h,accessKey:h,action:null,allow:null,allowFullScreen:c,allowPaymentRequest:c,allowUserMedia:c,alt:null,as:null,async:c,autoCapitalize:null,autoComplete:h,autoFocus:c,autoPlay:c,blocking:h,capture:null,charSet:null,checked:c,cite:null,className:h,cols:d,colSpan:null,content:null,contentEditable:u,controls:c,controlsList:h,coords:d|f,crossOrigin:null,data:null,dateTime:null,decoding:null,default:c,defer:c,dir:null,dirName:null,disabled:c,download:p,draggable:u,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:c,formTarget:null,headers:h,height:d,hidden:p,high:d,href:null,hrefLang:null,htmlFor:h,httpEquiv:h,id:null,imageSizes:null,imageSrcSet:null,inert:c,inputMode:null,integrity:null,is:null,isMap:c,itemId:null,itemProp:h,itemRef:h,itemScope:c,itemType:h,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:c,low:d,manifest:null,max:null,maxLength:d,media:null,method:null,min:null,minLength:d,multiple:c,muted:c,name:null,nonce:null,noModule:c,noValidate:c,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:c,optimum:d,pattern:null,ping:h,placeholder:null,playsInline:c,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:c,referrerPolicy:null,rel:h,required:c,reversed:c,rows:d,rowSpan:d,sandbox:h,scope:null,scoped:c,seamless:c,selected:c,shadowRootClonable:c,shadowRootDelegatesFocus:c,shadowRootMode:null,shape:null,size:d,sizes:null,slot:null,span:d,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:null,start:d,step:null,style:null,tabIndex:d,target:null,title:null,translate:null,type:null,typeMustMatch:c,useMap:null,value:u,width:d,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:h,axis:null,background:null,bgColor:null,border:d,borderColor:null,bottomMargin:d,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:c,declare:c,event:null,face:null,frame:null,frameBorder:null,hSpace:d,leftMargin:d,link:null,longDesc:null,lowSrc:null,marginHeight:d,marginWidth:d,noResize:c,noHref:c,noShade:c,noWrap:c,object:null,profile:null,prompt:null,rev:null,rightMargin:d,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:d,valueType:null,version:null,vAlign:null,vLink:null,vSpace:d,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:c,disableRemotePlayback:c,prefix:null,property:null,results:d,security:null,unselectable:null},space:"html",transform:k}),E=S({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:y,accentHeight:d,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:d,amplitude:d,arabicForm:null,ascent:d,attributeName:null,attributeType:null,azimuth:d,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:d,by:null,calcMode:null,capHeight:d,className:h,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:d,diffuseConstant:d,direction:null,display:null,dur:null,divisor:d,dominantBaseline:null,download:c,dx:null,dy:null,edgeMode:null,editable:null,elevation:d,enableBackground:null,end:null,event:null,exponent:d,externalResourcesRequired:null,fill:null,fillOpacity:d,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:f,g2:f,glyphName:f,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:d,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:d,horizOriginX:d,horizOriginY:d,id:null,ideographic:d,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:d,k:d,k1:d,k2:d,k3:d,k4:d,kernelMatrix:y,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:d,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:d,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:d,overlineThickness:d,paintOrder:null,panose1:null,path:null,pathLength:d,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:h,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:d,pointsAtY:d,pointsAtZ:d,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:y,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:y,rev:y,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:y,requiredFeatures:y,requiredFonts:y,requiredFormats:y,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:d,specularExponent:d,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:d,strikethroughThickness:d,string:null,stroke:null,strokeDashArray:y,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:d,strokeOpacity:d,strokeWidth:null,style:null,surfaceScale:d,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:y,tabIndex:d,tableValues:null,target:null,targetX:d,targetY:d,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:y,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:d,underlineThickness:d,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:d,values:null,vAlphabetic:d,vMathematical:d,vectorEffect:null,vHanging:d,vIdeographic:d,version:null,vertAdvY:d,vertOriginX:d,vertOriginY:d,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:d,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:v}),A=S({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),C=S({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:k}),_=S({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),P=a([T,w,A,C,_],"html"),O=a([T,E,A,C,_],"svg");var L=n(36469);const I=/[#.]/g,D=/[A-Z]/g,M=/-[a-z]/g,N=/^data[-\w.:]+$/i;function F(e){return"-"+e.toLowerCase()}function B(e){return e.charAt(1).toUpperCase()}var R=n(10010);function j(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,i,...a){let o;if(null==n){o={type:"root",children:[]};const e=i;a.unshift(e)}else{o=function(e,t){const n=e||"",r={};let i,a,o=0;for(;o<n.length;){I.lastIndex=o;const e=I.exec(n),t=n.slice(o,e?e.index:n.length);t&&(i?"#"===i?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:a=t,o+=t.length),e&&(i=e[0],o++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}(n,t);const s=o.tagName.toLowerCase(),l=r?r.get(s):void 0;if(o.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const e of n){const n=t[e];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;const e=n;for(const t of e)if("number"!=typeof t&&"string"!=typeof t)return!0}}return!(!("children"in e)||!Array.isArray(e.children))}(i))a.unshift(i);else for(const[t,n]of Object.entries(i))$(e,o.properties,t,n)}for(const e of a)z(o.children,e);return"element"===o.type&&"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]),o}}function $(e,t,n,r){const i=function(e,t){const n=o(t);let r=t,i=s;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&N.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(M,B);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!M.test(e)){let n=e.replace(D,F);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=b}return new i(r,t)}(e,n);let a;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;a=r}else a="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?(0,R.q)(r):i.commaSeparated?(0,L.q)(r):i.commaOrSpaceSeparated?(0,R.q)((0,L.q)(r).join(" ")):K(i,i.property,r):Array.isArray(r)?[...r]:"style"===i.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(a)){const e=[];for(const t of a)e.push(K(i,i.property,t));a=e}"className"===i.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function z(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)z(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?z(e,t.children):e.push(t)}}function K(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||o(n)===o(t)))return!0}return n}const U=j(P,"div"),q=j(O,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),W={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Y(e,t){const n=function(e,t){switch(e.nodeType){case 1:return function(e,t){const n=e.namespaceURI,r=n===W.svg?q:U,i=n===W.html?e.tagName.toLowerCase():e.tagName,a=n===W.html&&"template"===i?e.content:e,o=e.getAttributeNames(),s={};let l=-1;for(;++l<o.length;)s[o[l]]=e.getAttribute(o[l])||"";return r(i,s,V(a,t))}(e,t);case 3:return function(e){return{type:"text",value:e.nodeValue||""}}(e);case 8:return function(e){return{type:"comment",value:e.nodeValue||""}}(e);case 9:case 11:return H(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function H(e,t){return{type:"root",children:V(e,t)}}function V(e,t){const n=e.childNodes,r=[];let i=-1;for(;++i<n.length;){const e=Y(n[i],t);void 0!==e&&r.push(e)}return r}const X=new DOMParser;function G(e,t){return Y(t?.fragment?function(e){const t=document.createElement("template");return t.innerHTML=e,t.content}(e):X.parseFromString(e,"text/html"),{})||{type:"root",children:[]}}},53358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isFunctionDeclaration)(e)||(0,r.isClassDeclaration)(e)||(0,i.default)(e)};var r=n(60133),i=n(20266)},53373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},53972:(e,t,n)=>{"use strict";function r(){return[]}function i(e){return null==e?r:function(){return this.querySelectorAll(e)}}n.d(t,{A:()=>i})},54386:(e,t,n)=>{"use strict";n.d(t,{IU:()=>m,Jo:()=>_,T_:()=>T,g0:()=>L,jP:()=>x});var r=n(27057),i=n(84857),a=n(12880),o=n(97996),s=n(60347),l=n(65323),c=n(58084),u=n(68452),p=n(7083),d=(0,c.K2)(((e,t,n,r,i,a)=>{t.arrowTypeStart&&f(e,"start",t.arrowTypeStart,n,r,i,a),t.arrowTypeEnd&&f(e,"end",t.arrowTypeEnd,n,r,i,a)}),"addEdgeMarkers"),h={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},f=(0,c.K2)(((e,t,n,r,i,a,o)=>{const s=h[n];if(!s)return void c.Rm.warn(`Unknown arrow type: ${n}`);const l=`${i}_${a}-${s.type}${"start"===t?"Start":"End"}`;if(o&&""!==o.trim()){const n=`${l}_${o.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(n)){const e=document.getElementById(l);if(e){const t=e.cloneNode(!0);t.id=n,t.querySelectorAll("path, circle, line").forEach((e=>{e.setAttribute("stroke",o),s.fill&&e.setAttribute("fill",o)})),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${n})`)}else e.attr(`marker-${t}`,`url(${r}#${l})`)}),"addEdgeMarker"),y=new Map,g=new Map,m=(0,c.K2)((()=>{y.clear(),g.clear()}),"clear"),b=(0,c.K2)((e=>e?e.reduce(((e,t)=>e+";"+t),""):""),"getLabelStyles"),x=(0,c.K2)((async(e,t)=>{let n=(0,c._3)((0,c.D7)().flowchart.htmlLabels);const r=await(0,s.GZ)(e,t.label,{style:b(t.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1});c.Rm.info("abc82",t,t.labelType);const a=e.insert("g").attr("class","edgeLabel"),o=a.insert("g").attr("class","label");o.node().appendChild(r);let l,p=r.getBBox();if(n){const e=r.children[0],t=(0,u.Ltv)(r);p=e.getBoundingClientRect(),t.attr("width",p.width),t.attr("height",p.height)}if(o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),y.set(t.id,a),t.width=p.width,t.height=p.height,t.startLabelLeft){const n=await(0,i.DA)(t.startLabelLeft,b(t.labelStyle)),r=e.insert("g").attr("class","edgeTerminals"),a=r.insert("g").attr("class","inner");l=a.node().appendChild(n);const o=n.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),g.get(t.id)||g.set(t.id,{}),g.get(t.id).startLeft=r,S(l,t.startLabelLeft)}if(t.startLabelRight){const n=await(0,i.DA)(t.startLabelRight,b(t.labelStyle)),r=e.insert("g").attr("class","edgeTerminals"),a=r.insert("g").attr("class","inner");l=r.node().appendChild(n),a.node().appendChild(n);const o=n.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),g.get(t.id)||g.set(t.id,{}),g.get(t.id).startRight=r,S(l,t.startLabelRight)}if(t.endLabelLeft){const n=await(0,i.DA)(t.endLabelLeft,b(t.labelStyle)),r=e.insert("g").attr("class","edgeTerminals"),a=r.insert("g").attr("class","inner");l=a.node().appendChild(n);const o=n.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),r.node().appendChild(n),g.get(t.id)||g.set(t.id,{}),g.get(t.id).endLeft=r,S(l,t.endLabelLeft)}if(t.endLabelRight){const n=await(0,i.DA)(t.endLabelRight,b(t.labelStyle)),r=e.insert("g").attr("class","edgeTerminals"),a=r.insert("g").attr("class","inner");l=a.node().appendChild(n);const o=n.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),r.node().appendChild(n),g.get(t.id)||g.set(t.id,{}),g.get(t.id).endRight=r,S(l,t.endLabelRight)}return r}),"insertEdgeLabel");function S(e,t){(0,c.D7)().flowchart.htmlLabels&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}(0,c.K2)(S,"setTerminalWidth");var T=(0,c.K2)(((e,t)=>{c.Rm.debug("Moving label abc88 ",e.id,e.label,y.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath;const r=(0,c.D7)(),{subGraphTitleTotalMargin:i}=(0,a.O)(r);if(e.label){const r=y.get(e.id);let a=e.x,o=e.y;if(n){const r=l._K.calcLabelPosition(n);c.Rm.debug("Moving label "+e.label+" from (",a,",",o,") to (",r.x,",",r.y,") abc88"),t.updatedPath&&(a=r.x,o=r.y)}r.attr("transform",`translate(${a}, ${o+i/2})`)}if(e.startLabelLeft){const t=g.get(e.id).startLeft;let r=e.x,i=e.y;if(n){const t=l._K.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.startLabelRight){const t=g.get(e.id).startRight;let r=e.x,i=e.y;if(n){const t=l._K.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelLeft){const t=g.get(e.id).endLeft;let r=e.x,i=e.y;if(n){const t=l._K.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}if(e.endLabelRight){const t=g.get(e.id).endRight;let r=e.x,i=e.y;if(n){const t=l._K.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",n);r=t.x,i=t.y}t.attr("transform",`translate(${r}, ${i})`)}}),"positionEdgeLabel"),v=(0,c.K2)(((e,t)=>{const n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s}),"outsideNode"),k=(0,c.K2)(((e,t,n)=>{c.Rm.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(t)}\n insidePoint : ${JSON.stringify(n)}\n node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2;let s=n.x<t.x?o-a:o+a;const l=e.height/2,u=Math.abs(t.y-n.y),p=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*o>Math.abs(r-t.x)*l){let e=n.y<t.y?t.y-l-i:i-l-t.y;s=p*e/u;const r={x:n.x<t.x?n.x+s:n.x-p+s,y:n.y<t.y?n.y+u-e:n.y-u+e};return 0===s&&(r.x=t.x,r.y=t.y),0===p&&(r.x=t.x),0===u&&(r.y=t.y),c.Rm.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${p}, r ${s}`,r),r}{s=n.x<t.x?t.x-o-r:r-o-t.x;let e=u*s/p,i=n.x<t.x?n.x+p-s:n.x-p+s,a=n.y<t.y?n.y+e:n.y-e;return c.Rm.debug(`sides calc abc89, Q ${u}, q ${e}, R ${p}, r ${s}`,{_x:i,_y:a}),0===s&&(i=t.x,a=t.y),0===p&&(i=t.x),0===u&&(a=t.y),{x:i,y:a}}}),"intersection"),w=(0,c.K2)(((e,t)=>{c.Rm.warn("abc88 cutPathAtIntersect",e,t);let n=[],r=e[0],i=!1;return e.forEach((e=>{if(c.Rm.info("abc88 checking point",e,t),v(t,e)||i)c.Rm.warn("abc88 outside",e,r),r=e,i||n.push(e);else{const a=k(t,r,e);c.Rm.debug("abc88 inside",e,r,a),c.Rm.debug("abc88 intersection",a,t);let o=!1;n.forEach((e=>{o=o||e.x===a.x&&e.y===a.y})),n.some((e=>e.x===a.x&&e.y===a.y))?c.Rm.warn("abc88 no intersect",a,n):n.push(a),i=!0}})),c.Rm.debug("returning points",n),n}),"cutPathAtIntersect");function E(e){const t=[],n=[];for(let r=1;r<e.length-1;r++){const i=e[r-1],a=e[r],o=e[r+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}(0,c.K2)(E,"extractCornerPoints");var A=(0,c.K2)((function(e,t,n){const r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}}),"findAdjacentPoint"),C=(0,c.K2)((function(e){const{cornerPointPositions:t}=E(e),n=[];for(let r=0;r<e.length;r++)if(t.includes(r)){const t=e[r-1],i=e[r+1],a=e[r],o=A(t,a,5),s=A(i,a,5),l=s.x-o.x,u=s.y-o.y;n.push(o);const p=2*Math.sqrt(2);let d={x:a.x,y:a.y};if(Math.abs(i.x-t.x)>10&&Math.abs(i.y-t.y)>=10){c.Rm.debug("Corner point fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y));const e=5;d=a.x===o.x?{x:l<0?o.x-e+p:o.x+e-p,y:u<0?o.y-p:o.y+p}:{x:l<0?o.x-p:o.x+p,y:u<0?o.y-e+p:o.y+e-p}}else c.Rm.debug("Corner point skipping fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y));n.push(d,s)}else n.push(e[r]);return n}),"fixCorners"),_=(0,c.K2)((function(e,t,n,i,a,s,l){const{handDrawnSeed:h}=(0,c.D7)();let f=t.points,y=!1;const g=a;var m=s;const b=[];for(const e in t.cssCompiledStyles)(0,o.KX)(e)||b.push(t.cssCompiledStyles[e]);m.intersect&&g.intersect&&(f=f.slice(1,t.points.length-1),f.unshift(g.intersect(f[0])),c.Rm.debug("Last point APA12",t.start,"--\x3e",t.end,f[f.length-1],m,m.intersect(f[f.length-1])),f.push(m.intersect(f[f.length-1]))),t.toCluster&&(c.Rm.info("to cluster abc88",n.get(t.toCluster)),f=w(t.points,n.get(t.toCluster).node),y=!0),t.fromCluster&&(c.Rm.debug("from cluster abc88",n.get(t.fromCluster),JSON.stringify(f,null,2)),f=w(f.reverse(),n.get(t.fromCluster).node).reverse(),y=!0);let x=f.filter((e=>!Number.isNaN(e.y)));x=C(x);let S=u.qrM;switch(S=u.lUB,t.curve){case"linear":S=u.lUB;break;case"basis":default:S=u.qrM;break;case"cardinal":S=u.y8u;break;case"bumpX":S=u.Wi0;break;case"bumpY":S=u.PGM;break;case"catmullRom":S=u.oDi;break;case"monotoneX":S=u.nVG;break;case"monotoneY":S=u.uxU;break;case"natural":S=u.Xf2;break;case"step":S=u.GZz;break;case"stepAfter":S=u.UPb;break;case"stepBefore":S=u.dyv}const{x:T,y:v}=(0,r.R)(t),k=(0,u.n8j)().x(T).y(v).curve(S);let E,A;switch(t.thickness){case"normal":default:E="edge-thickness-normal";break;case"thick":E="edge-thickness-thick";break;case"invisible":E="edge-thickness-invisible"}switch(t.pattern){case"solid":default:E+=" edge-pattern-solid";break;case"dotted":E+=" edge-pattern-dotted";break;case"dashed":E+=" edge-pattern-dashed"}let _=k(x);const P=Array.isArray(t.style)?t.style:t.style?[t.style]:[];let O=P.find((e=>e?.startsWith("stroke:")));if("handDrawn"===t.look){const n=p.A.svg(e);Object.assign([],x);const r=n.path(_,{roughness:.3,seed:h});E+=" transition",A=(0,u.Ltv)(r).select("path").attr("id",t.id).attr("class"," "+E+(t.classes?" "+t.classes:"")).attr("style",P?P.reduce(((e,t)=>e+";"+t),""):"");let i=A.attr("d");A.attr("d",i),e.node().appendChild(A.node())}else{const n=b.join(";"),r=P?P.reduce(((e,t)=>e+t+";"),""):"";let i="";t.animate&&(i=" edge-animation-fast"),t.animation&&(i=" edge-animation-"+t.animation);const a=n?n+";"+r+";":r;A=e.append("path").attr("d",_).attr("id",t.id).attr("class"," "+E+(t.classes?" "+t.classes:"")+(i??"")).attr("style",a),O=a.match(/stroke:([^;]+)/)?.[1]}let L="";((0,c.D7)().flowchart.arrowMarkerAbsolute||(0,c.D7)().state.arrowMarkerAbsolute)&&(L=(0,c.ID)(!0)),c.Rm.info("arrowTypeStart",t.arrowTypeStart),c.Rm.info("arrowTypeEnd",t.arrowTypeEnd),d(A,t,L,l,i,O);let I={};return y&&(I.updatedPath=f),I.originalPath=t.points,I}),"insertEdge"),P=(0,c.K2)(((e,t,n,r)=>{t.forEach((t=>{O[t](e,n,r)}))}),"insertMarkers"),O={extension:(0,c.K2)(((e,t,n)=>{c.Rm.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")}),"extension"),composition:(0,c.K2)(((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"composition"),aggregation:(0,c.K2)(((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"aggregation"),dependency:(0,c.K2)(((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}),"dependency"),lollipop:(0,c.K2)(((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)}),"lollipop"),point:(0,c.K2)(((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"point"),circle:(0,c.K2)(((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"circle"),cross:(0,c.K2)(((e,t,n)=>{e.append("marker").attr("id",n+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")}),"cross"),barb:(0,c.K2)(((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}),"barb"),only_one:(0,c.K2)(((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",n+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")}),"only_one"),zero_or_one:(0,c.K2)(((e,t,n)=>{const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("d","M9,0 L9,18");const i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).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"),one_or_more:(0,c.K2)(((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",n+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")}),"one_or_more"),zero_or_more:(0,c.K2)(((e,t,n)=>{const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).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"),requirement_arrow:(0,c.K2)(((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d","M0,0\n L20,10\n M20,10\n L0,20")}),"requirement_arrow"),requirement_contains:(0,c.K2)(((e,t,n)=>{const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");r.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),r.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),r.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)}),"requirement_contains")},L=P},54538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const n=Array.from(t),a=new Map,o=new Map,s=new Set,l=[];for(let t=0;t<n.length;t++){const c=n[t];if(c&&!l.includes(c)){if((0,r.isAnyTypeAnnotation)(c))return[c];if((0,r.isFlowBaseAnnotation)(c))o.set(c.type,c);else if((0,r.isUnionTypeAnnotation)(c))s.has(c.types)||(n.push(...c.types),s.add(c.types));else if((0,r.isGenericTypeAnnotation)(c)){const t=i(c.id);if(a.has(t)){let n=a.get(t);n.typeParameters?c.typeParameters&&(n.typeParameters.params.push(...c.typeParameters.params),n.typeParameters.params=e(n.typeParameters.params)):n=c.typeParameters}else a.set(t,c)}else l.push(c)}}for(const[,e]of o)l.push(e);for(const[,e]of a)l.push(e);return l};var r=n(60133);function i(e){return(0,r.isIdentifier)(e)?e.name:`${e.id.name}.${i(e.qualification)}`}},55262:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,i.default,t),e};var r=n(72148),i=n(6944)},55467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)&&!i.has(e)};var r=n(78126);const i=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"])},55527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WHILE_TYPES=t.USERWHITESPACABLE_TYPES=t.UNARYLIKE_TYPES=t.TYPESCRIPT_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.TSENTITYNAME_TYPES=t.TSBASETYPE_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.STANDARDIZED_TYPES=t.SCOPABLE_TYPES=t.PUREISH_TYPES=t.PROPERTY_TYPES=t.PRIVATE_TYPES=t.PATTERN_TYPES=t.PATTERNLIKE_TYPES=t.OBJECTMEMBER_TYPES=t.MODULESPECIFIER_TYPES=t.MODULEDECLARATION_TYPES=t.MISCELLANEOUS_TYPES=t.METHOD_TYPES=t.LVAL_TYPES=t.LOOP_TYPES=t.LITERAL_TYPES=t.JSX_TYPES=t.IMPORTOREXPORTDECLARATION_TYPES=t.IMMUTABLE_TYPES=t.FUNCTION_TYPES=t.FUNCTIONPARENT_TYPES=t.FOR_TYPES=t.FORXSTATEMENT_TYPES=t.FLOW_TYPES=t.FLOWTYPE_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.EXPRESSION_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.EXPORTDECLARATION_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.DECLARATION_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.CLASS_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.BINARY_TYPES=t.ACCESSOR_TYPES=void 0;var r=n(49390);t.STANDARDIZED_TYPES=r.FLIPPED_ALIAS_KEYS.Standardized,t.EXPRESSION_TYPES=r.FLIPPED_ALIAS_KEYS.Expression,t.BINARY_TYPES=r.FLIPPED_ALIAS_KEYS.Binary,t.SCOPABLE_TYPES=r.FLIPPED_ALIAS_KEYS.Scopable,t.BLOCKPARENT_TYPES=r.FLIPPED_ALIAS_KEYS.BlockParent,t.BLOCK_TYPES=r.FLIPPED_ALIAS_KEYS.Block,t.STATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.Statement,t.TERMINATORLESS_TYPES=r.FLIPPED_ALIAS_KEYS.Terminatorless,t.COMPLETIONSTATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.CompletionStatement,t.CONDITIONAL_TYPES=r.FLIPPED_ALIAS_KEYS.Conditional,t.LOOP_TYPES=r.FLIPPED_ALIAS_KEYS.Loop,t.WHILE_TYPES=r.FLIPPED_ALIAS_KEYS.While,t.EXPRESSIONWRAPPER_TYPES=r.FLIPPED_ALIAS_KEYS.ExpressionWrapper,t.FOR_TYPES=r.FLIPPED_ALIAS_KEYS.For,t.FORXSTATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.ForXStatement,t.FUNCTION_TYPES=r.FLIPPED_ALIAS_KEYS.Function,t.FUNCTIONPARENT_TYPES=r.FLIPPED_ALIAS_KEYS.FunctionParent,t.PUREISH_TYPES=r.FLIPPED_ALIAS_KEYS.Pureish,t.DECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.Declaration,t.PATTERNLIKE_TYPES=r.FLIPPED_ALIAS_KEYS.PatternLike,t.LVAL_TYPES=r.FLIPPED_ALIAS_KEYS.LVal,t.TSENTITYNAME_TYPES=r.FLIPPED_ALIAS_KEYS.TSEntityName,t.LITERAL_TYPES=r.FLIPPED_ALIAS_KEYS.Literal,t.IMMUTABLE_TYPES=r.FLIPPED_ALIAS_KEYS.Immutable,t.USERWHITESPACABLE_TYPES=r.FLIPPED_ALIAS_KEYS.UserWhitespacable,t.METHOD_TYPES=r.FLIPPED_ALIAS_KEYS.Method,t.OBJECTMEMBER_TYPES=r.FLIPPED_ALIAS_KEYS.ObjectMember,t.PROPERTY_TYPES=r.FLIPPED_ALIAS_KEYS.Property,t.UNARYLIKE_TYPES=r.FLIPPED_ALIAS_KEYS.UnaryLike,t.PATTERN_TYPES=r.FLIPPED_ALIAS_KEYS.Pattern,t.CLASS_TYPES=r.FLIPPED_ALIAS_KEYS.Class;const i=t.IMPORTOREXPORTDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;t.EXPORTDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.ExportDeclaration,t.MODULESPECIFIER_TYPES=r.FLIPPED_ALIAS_KEYS.ModuleSpecifier,t.ACCESSOR_TYPES=r.FLIPPED_ALIAS_KEYS.Accessor,t.PRIVATE_TYPES=r.FLIPPED_ALIAS_KEYS.Private,t.FLOW_TYPES=r.FLIPPED_ALIAS_KEYS.Flow,t.FLOWTYPE_TYPES=r.FLIPPED_ALIAS_KEYS.FlowType,t.FLOWBASEANNOTATION_TYPES=r.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,t.FLOWDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.FlowDeclaration,t.FLOWPREDICATE_TYPES=r.FLIPPED_ALIAS_KEYS.FlowPredicate,t.ENUMBODY_TYPES=r.FLIPPED_ALIAS_KEYS.EnumBody,t.ENUMMEMBER_TYPES=r.FLIPPED_ALIAS_KEYS.EnumMember,t.JSX_TYPES=r.FLIPPED_ALIAS_KEYS.JSX,t.MISCELLANEOUS_TYPES=r.FLIPPED_ALIAS_KEYS.Miscellaneous,t.TYPESCRIPT_TYPES=r.FLIPPED_ALIAS_KEYS.TypeScript,t.TSTYPEELEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.TSTypeElement,t.TSTYPE_TYPES=r.FLIPPED_ALIAS_KEYS.TSType,t.TSBASETYPE_TYPES=r.FLIPPED_ALIAS_KEYS.TSBaseType,t.MODULEDECLARATION_TYPES=i},55827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e||!e.length)return;const n=[],i=(0,r.default)(e,n);if(i){for(const e of n)t.push(e);return i}};var r=n(22852)},56223:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(e=[]){const t={type:"ArrayExpression",elements:e},n=s.ArrayExpression;return o(n.elements,t,"elements",e,1),t},t.arrayPattern=function(e){const t={type:"ArrayPattern",elements:e},n=s.ArrayPattern;return o(n.elements,t,"elements",e,1),t},t.arrayTypeAnnotation=function(e){const t={type:"ArrayTypeAnnotation",elementType:e},n=s.ArrayTypeAnnotation;return o(n.elementType,t,"elementType",e,1),t},t.arrowFunctionExpression=function(e,t,n=!1){const r={type:"ArrowFunctionExpression",params:e,body:t,async:n,expression:null},i=s.ArrowFunctionExpression;return o(i.params,r,"params",e,1),o(i.body,r,"body",t,1),o(i.async,r,"async",n),r},t.assignmentExpression=function(e,t,n){const r={type:"AssignmentExpression",operator:e,left:t,right:n},i=s.AssignmentExpression;return o(i.operator,r,"operator",e),o(i.left,r,"left",t,1),o(i.right,r,"right",n,1),r},t.assignmentPattern=function(e,t){const n={type:"AssignmentPattern",left:e,right:t},r=s.AssignmentPattern;return o(r.left,n,"left",e,1),o(r.right,n,"right",t,1),n},t.awaitExpression=function(e){const t={type:"AwaitExpression",argument:e},n=s.AwaitExpression;return o(n.argument,t,"argument",e,1),t},t.bigIntLiteral=function(e){const t={type:"BigIntLiteral",value:e},n=s.BigIntLiteral;return o(n.value,t,"value",e),t},t.binaryExpression=function(e,t,n){const r={type:"BinaryExpression",operator:e,left:t,right:n},i=s.BinaryExpression;return o(i.operator,r,"operator",e),o(i.left,r,"left",t,1),o(i.right,r,"right",n,1),r},t.bindExpression=function(e,t){const n={type:"BindExpression",object:e,callee:t},r=s.BindExpression;return o(r.object,n,"object",e,1),o(r.callee,n,"callee",t,1),n},t.blockStatement=function(e,t=[]){const n={type:"BlockStatement",body:e,directives:t},r=s.BlockStatement;return o(r.body,n,"body",e,1),o(r.directives,n,"directives",t,1),n},t.booleanLiteral=function(e){const t={type:"BooleanLiteral",value:e},n=s.BooleanLiteral;return o(n.value,t,"value",e),t},t.booleanLiteralTypeAnnotation=function(e){const t={type:"BooleanLiteralTypeAnnotation",value:e},n=s.BooleanLiteralTypeAnnotation;return o(n.value,t,"value",e),t},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(e=null){const t={type:"BreakStatement",label:e},n=s.BreakStatement;return o(n.label,t,"label",e,1),t},t.callExpression=function(e,t){const n={type:"CallExpression",callee:e,arguments:t},r=s.CallExpression;return o(r.callee,n,"callee",e,1),o(r.arguments,n,"arguments",t,1),n},t.catchClause=function(e=null,t){const n={type:"CatchClause",param:e,body:t},r=s.CatchClause;return o(r.param,n,"param",e,1),o(r.body,n,"body",t,1),n},t.classAccessorProperty=function(e,t=null,n=null,r=null,i=!1,a=!1){const l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:n,decorators:r,computed:i,static:a},c=s.ClassAccessorProperty;return o(c.key,l,"key",e,1),o(c.value,l,"value",t,1),o(c.typeAnnotation,l,"typeAnnotation",n,1),o(c.decorators,l,"decorators",r,1),o(c.computed,l,"computed",i),o(c.static,l,"static",a),l},t.classBody=function(e){const t={type:"ClassBody",body:e},n=s.ClassBody;return o(n.body,t,"body",e,1),t},t.classDeclaration=function(e=null,t=null,n,r=null){const i={type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:r},a=s.ClassDeclaration;return o(a.id,i,"id",e,1),o(a.superClass,i,"superClass",t,1),o(a.body,i,"body",n,1),o(a.decorators,i,"decorators",r,1),i},t.classExpression=function(e=null,t=null,n,r=null){const i={type:"ClassExpression",id:e,superClass:t,body:n,decorators:r},a=s.ClassExpression;return o(a.id,i,"id",e,1),o(a.superClass,i,"superClass",t,1),o(a.body,i,"body",n,1),o(a.decorators,i,"decorators",r,1),i},t.classImplements=function(e,t=null){const n={type:"ClassImplements",id:e,typeParameters:t},r=s.ClassImplements;return o(r.id,n,"id",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.classMethod=function(e="method",t,n,r,i=!1,a=!1,l=!1,c=!1){const u={type:"ClassMethod",kind:e,key:t,params:n,body:r,computed:i,static:a,generator:l,async:c},p=s.ClassMethod;return o(p.kind,u,"kind",e),o(p.key,u,"key",t,1),o(p.params,u,"params",n,1),o(p.body,u,"body",r,1),o(p.computed,u,"computed",i),o(p.static,u,"static",a),o(p.generator,u,"generator",l),o(p.async,u,"async",c),u},t.classPrivateMethod=function(e="method",t,n,r,i=!1){const a={type:"ClassPrivateMethod",kind:e,key:t,params:n,body:r,static:i},l=s.ClassPrivateMethod;return o(l.kind,a,"kind",e),o(l.key,a,"key",t,1),o(l.params,a,"params",n,1),o(l.body,a,"body",r,1),o(l.static,a,"static",i),a},t.classPrivateProperty=function(e,t=null,n=null,r=!1){const i={type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:r},a=s.ClassPrivateProperty;return o(a.key,i,"key",e,1),o(a.value,i,"value",t,1),o(a.decorators,i,"decorators",n,1),o(a.static,i,"static",r),i},t.classProperty=function(e,t=null,n=null,r=null,i=!1,a=!1){const l={type:"ClassProperty",key:e,value:t,typeAnnotation:n,decorators:r,computed:i,static:a},c=s.ClassProperty;return o(c.key,l,"key",e,1),o(c.value,l,"value",t,1),o(c.typeAnnotation,l,"typeAnnotation",n,1),o(c.decorators,l,"decorators",r,1),o(c.computed,l,"computed",i),o(c.static,l,"static",a),l},t.conditionalExpression=function(e,t,n){const r={type:"ConditionalExpression",test:e,consequent:t,alternate:n},i=s.ConditionalExpression;return o(i.test,r,"test",e,1),o(i.consequent,r,"consequent",t,1),o(i.alternate,r,"alternate",n,1),r},t.continueStatement=function(e=null){const t={type:"ContinueStatement",label:e},n=s.ContinueStatement;return o(n.label,t,"label",e,1),t},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){const t={type:"DecimalLiteral",value:e},n=s.DecimalLiteral;return o(n.value,t,"value",e),t},t.declareClass=function(e,t=null,n=null,r){const i={type:"DeclareClass",id:e,typeParameters:t,extends:n,body:r},a=s.DeclareClass;return o(a.id,i,"id",e,1),o(a.typeParameters,i,"typeParameters",t,1),o(a.extends,i,"extends",n,1),o(a.body,i,"body",r,1),i},t.declareExportAllDeclaration=function(e,t=null){const n={type:"DeclareExportAllDeclaration",source:e,attributes:t},r=s.DeclareExportAllDeclaration;return o(r.source,n,"source",e,1),o(r.attributes,n,"attributes",t,1),n},t.declareExportDeclaration=function(e=null,t=null,n=null,r=null){const i={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:n,attributes:r},a=s.DeclareExportDeclaration;return o(a.declaration,i,"declaration",e,1),o(a.specifiers,i,"specifiers",t,1),o(a.source,i,"source",n,1),o(a.attributes,i,"attributes",r,1),i},t.declareFunction=function(e){const t={type:"DeclareFunction",id:e},n=s.DeclareFunction;return o(n.id,t,"id",e,1),t},t.declareInterface=function(e,t=null,n=null,r){const i={type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:r},a=s.DeclareInterface;return o(a.id,i,"id",e,1),o(a.typeParameters,i,"typeParameters",t,1),o(a.extends,i,"extends",n,1),o(a.body,i,"body",r,1),i},t.declareModule=function(e,t,n=null){const r={type:"DeclareModule",id:e,body:t,kind:n},i=s.DeclareModule;return o(i.id,r,"id",e,1),o(i.body,r,"body",t,1),o(i.kind,r,"kind",n),r},t.declareModuleExports=function(e){const t={type:"DeclareModuleExports",typeAnnotation:e},n=s.DeclareModuleExports;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.declareOpaqueType=function(e,t=null,n=null){const r={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:n},i=s.DeclareOpaqueType;return o(i.id,r,"id",e,1),o(i.typeParameters,r,"typeParameters",t,1),o(i.supertype,r,"supertype",n,1),r},t.declareTypeAlias=function(e,t=null,n){const r={type:"DeclareTypeAlias",id:e,typeParameters:t,right:n},i=s.DeclareTypeAlias;return o(i.id,r,"id",e,1),o(i.typeParameters,r,"typeParameters",t,1),o(i.right,r,"right",n,1),r},t.declareVariable=function(e){const t={type:"DeclareVariable",id:e},n=s.DeclareVariable;return o(n.id,t,"id",e,1),t},t.declaredPredicate=function(e){const t={type:"DeclaredPredicate",value:e},n=s.DeclaredPredicate;return o(n.value,t,"value",e,1),t},t.decorator=function(e){const t={type:"Decorator",expression:e},n=s.Decorator;return o(n.expression,t,"expression",e,1),t},t.directive=function(e){const t={type:"Directive",value:e},n=s.Directive;return o(n.value,t,"value",e,1),t},t.directiveLiteral=function(e){const t={type:"DirectiveLiteral",value:e},n=s.DirectiveLiteral;return o(n.value,t,"value",e),t},t.doExpression=function(e,t=!1){const n={type:"DoExpression",body:e,async:t},r=s.DoExpression;return o(r.body,n,"body",e,1),o(r.async,n,"async",t),n},t.doWhileStatement=function(e,t){const n={type:"DoWhileStatement",test:e,body:t},r=s.DoWhileStatement;return o(r.test,n,"test",e,1),o(r.body,n,"body",t,1),n},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){const t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},n=s.EnumBooleanBody;return o(n.members,t,"members",e,1),t},t.enumBooleanMember=function(e){const t={type:"EnumBooleanMember",id:e,init:null},n=s.EnumBooleanMember;return o(n.id,t,"id",e,1),t},t.enumDeclaration=function(e,t){const n={type:"EnumDeclaration",id:e,body:t},r=s.EnumDeclaration;return o(r.id,n,"id",e,1),o(r.body,n,"body",t,1),n},t.enumDefaultedMember=function(e){const t={type:"EnumDefaultedMember",id:e},n=s.EnumDefaultedMember;return o(n.id,t,"id",e,1),t},t.enumNumberBody=function(e){const t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},n=s.EnumNumberBody;return o(n.members,t,"members",e,1),t},t.enumNumberMember=function(e,t){const n={type:"EnumNumberMember",id:e,init:t},r=s.EnumNumberMember;return o(r.id,n,"id",e,1),o(r.init,n,"init",t,1),n},t.enumStringBody=function(e){const t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},n=s.EnumStringBody;return o(n.members,t,"members",e,1),t},t.enumStringMember=function(e,t){const n={type:"EnumStringMember",id:e,init:t},r=s.EnumStringMember;return o(r.id,n,"id",e,1),o(r.init,n,"init",t,1),n},t.enumSymbolBody=function(e){const t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},n=s.EnumSymbolBody;return o(n.members,t,"members",e,1),t},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){const t={type:"ExportAllDeclaration",source:e},n=s.ExportAllDeclaration;return o(n.source,t,"source",e,1),t},t.exportDefaultDeclaration=function(e){const t={type:"ExportDefaultDeclaration",declaration:e},n=s.ExportDefaultDeclaration;return o(n.declaration,t,"declaration",e,1),t},t.exportDefaultSpecifier=function(e){const t={type:"ExportDefaultSpecifier",exported:e},n=s.ExportDefaultSpecifier;return o(n.exported,t,"exported",e,1),t},t.exportNamedDeclaration=function(e=null,t=[],n=null){const r={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:n},i=s.ExportNamedDeclaration;return o(i.declaration,r,"declaration",e,1),o(i.specifiers,r,"specifiers",t,1),o(i.source,r,"source",n,1),r},t.exportNamespaceSpecifier=function(e){const t={type:"ExportNamespaceSpecifier",exported:e},n=s.ExportNamespaceSpecifier;return o(n.exported,t,"exported",e,1),t},t.exportSpecifier=function(e,t){const n={type:"ExportSpecifier",local:e,exported:t},r=s.ExportSpecifier;return o(r.local,n,"local",e,1),o(r.exported,n,"exported",t,1),n},t.expressionStatement=function(e){const t={type:"ExpressionStatement",expression:e},n=s.ExpressionStatement;return o(n.expression,t,"expression",e,1),t},t.file=function(e,t=null,n=null){const r={type:"File",program:e,comments:t,tokens:n},i=s.File;return o(i.program,r,"program",e,1),o(i.comments,r,"comments",t,1),o(i.tokens,r,"tokens",n),r},t.forInStatement=function(e,t,n){const r={type:"ForInStatement",left:e,right:t,body:n},i=s.ForInStatement;return o(i.left,r,"left",e,1),o(i.right,r,"right",t,1),o(i.body,r,"body",n,1),r},t.forOfStatement=function(e,t,n,r=!1){const i={type:"ForOfStatement",left:e,right:t,body:n,await:r},a=s.ForOfStatement;return o(a.left,i,"left",e,1),o(a.right,i,"right",t,1),o(a.body,i,"body",n,1),o(a.await,i,"await",r),i},t.forStatement=function(e=null,t=null,n=null,r){const i={type:"ForStatement",init:e,test:t,update:n,body:r},a=s.ForStatement;return o(a.init,i,"init",e,1),o(a.test,i,"test",t,1),o(a.update,i,"update",n,1),o(a.body,i,"body",r,1),i},t.functionDeclaration=function(e=null,t,n,r=!1,i=!1){const a={type:"FunctionDeclaration",id:e,params:t,body:n,generator:r,async:i},l=s.FunctionDeclaration;return o(l.id,a,"id",e,1),o(l.params,a,"params",t,1),o(l.body,a,"body",n,1),o(l.generator,a,"generator",r),o(l.async,a,"async",i),a},t.functionExpression=function(e=null,t,n,r=!1,i=!1){const a={type:"FunctionExpression",id:e,params:t,body:n,generator:r,async:i},l=s.FunctionExpression;return o(l.id,a,"id",e,1),o(l.params,a,"params",t,1),o(l.body,a,"body",n,1),o(l.generator,a,"generator",r),o(l.async,a,"async",i),a},t.functionTypeAnnotation=function(e=null,t,n=null,r){const i={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:r},a=s.FunctionTypeAnnotation;return o(a.typeParameters,i,"typeParameters",e,1),o(a.params,i,"params",t,1),o(a.rest,i,"rest",n,1),o(a.returnType,i,"returnType",r,1),i},t.functionTypeParam=function(e=null,t){const n={type:"FunctionTypeParam",name:e,typeAnnotation:t},r=s.FunctionTypeParam;return o(r.name,n,"name",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.genericTypeAnnotation=function(e,t=null){const n={type:"GenericTypeAnnotation",id:e,typeParameters:t},r=s.GenericTypeAnnotation;return o(r.id,n,"id",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.identifier=function(e){const t={type:"Identifier",name:e},n=s.Identifier;return o(n.name,t,"name",e),t},t.ifStatement=function(e,t,n=null){const r={type:"IfStatement",test:e,consequent:t,alternate:n},i=s.IfStatement;return o(i.test,r,"test",e,1),o(i.consequent,r,"consequent",t,1),o(i.alternate,r,"alternate",n,1),r},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){const n={type:"ImportAttribute",key:e,value:t},r=s.ImportAttribute;return o(r.key,n,"key",e,1),o(r.value,n,"value",t,1),n},t.importDeclaration=function(e,t){const n={type:"ImportDeclaration",specifiers:e,source:t},r=s.ImportDeclaration;return o(r.specifiers,n,"specifiers",e,1),o(r.source,n,"source",t,1),n},t.importDefaultSpecifier=function(e){const t={type:"ImportDefaultSpecifier",local:e},n=s.ImportDefaultSpecifier;return o(n.local,t,"local",e,1),t},t.importExpression=function(e,t=null){const n={type:"ImportExpression",source:e,options:t},r=s.ImportExpression;return o(r.source,n,"source",e,1),o(r.options,n,"options",t,1),n},t.importNamespaceSpecifier=function(e){const t={type:"ImportNamespaceSpecifier",local:e},n=s.ImportNamespaceSpecifier;return o(n.local,t,"local",e,1),t},t.importSpecifier=function(e,t){const n={type:"ImportSpecifier",local:e,imported:t},r=s.ImportSpecifier;return o(r.local,n,"local",e,1),o(r.imported,n,"imported",t,1),n},t.indexedAccessType=function(e,t){const n={type:"IndexedAccessType",objectType:e,indexType:t},r=s.IndexedAccessType;return o(r.objectType,n,"objectType",e,1),o(r.indexType,n,"indexType",t,1),n},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e,t=null,n=null,r){const i={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:r},a=s.InterfaceDeclaration;return o(a.id,i,"id",e,1),o(a.typeParameters,i,"typeParameters",t,1),o(a.extends,i,"extends",n,1),o(a.body,i,"body",r,1),i},t.interfaceExtends=function(e,t=null){const n={type:"InterfaceExtends",id:e,typeParameters:t},r=s.InterfaceExtends;return o(r.id,n,"id",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.interfaceTypeAnnotation=function(e=null,t){const n={type:"InterfaceTypeAnnotation",extends:e,body:t},r=s.InterfaceTypeAnnotation;return o(r.extends,n,"extends",e,1),o(r.body,n,"body",t,1),n},t.interpreterDirective=function(e){const t={type:"InterpreterDirective",value:e},n=s.InterpreterDirective;return o(n.value,t,"value",e),t},t.intersectionTypeAnnotation=function(e){const t={type:"IntersectionTypeAnnotation",types:e},n=s.IntersectionTypeAnnotation;return o(n.types,t,"types",e,1),t},t.jSXAttribute=t.jsxAttribute=function(e,t=null){const n={type:"JSXAttribute",name:e,value:t},r=s.JSXAttribute;return o(r.name,n,"name",e,1),o(r.value,n,"value",t,1),n},t.jSXClosingElement=t.jsxClosingElement=function(e){const t={type:"JSXClosingElement",name:e},n=s.JSXClosingElement;return o(n.name,t,"name",e,1),t},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e,t=null,n,r=null){const i={type:"JSXElement",openingElement:e,closingElement:t,children:n,selfClosing:r},a=s.JSXElement;return o(a.openingElement,i,"openingElement",e,1),o(a.closingElement,i,"closingElement",t,1),o(a.children,i,"children",n,1),o(a.selfClosing,i,"selfClosing",r),i},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){const t={type:"JSXExpressionContainer",expression:e},n=s.JSXExpressionContainer;return o(n.expression,t,"expression",e,1),t},t.jSXFragment=t.jsxFragment=function(e,t,n){const r={type:"JSXFragment",openingFragment:e,closingFragment:t,children:n},i=s.JSXFragment;return o(i.openingFragment,r,"openingFragment",e,1),o(i.closingFragment,r,"closingFragment",t,1),o(i.children,r,"children",n,1),r},t.jSXIdentifier=t.jsxIdentifier=function(e){const t={type:"JSXIdentifier",name:e},n=s.JSXIdentifier;return o(n.name,t,"name",e),t},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){const n={type:"JSXMemberExpression",object:e,property:t},r=s.JSXMemberExpression;return o(r.object,n,"object",e,1),o(r.property,n,"property",t,1),n},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){const n={type:"JSXNamespacedName",namespace:e,name:t},r=s.JSXNamespacedName;return o(r.namespace,n,"namespace",e,1),o(r.name,n,"name",t,1),n},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t,n=!1){const r={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:n},i=s.JSXOpeningElement;return o(i.name,r,"name",e,1),o(i.attributes,r,"attributes",t,1),o(i.selfClosing,r,"selfClosing",n),r},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){const t={type:"JSXSpreadAttribute",argument:e},n=s.JSXSpreadAttribute;return o(n.argument,t,"argument",e,1),t},t.jSXSpreadChild=t.jsxSpreadChild=function(e){const t={type:"JSXSpreadChild",expression:e},n=s.JSXSpreadChild;return o(n.expression,t,"expression",e,1),t},t.jSXText=t.jsxText=function(e){const t={type:"JSXText",value:e},n=s.JSXText;return o(n.value,t,"value",e),t},t.labeledStatement=function(e,t){const n={type:"LabeledStatement",label:e,body:t},r=s.LabeledStatement;return o(r.label,n,"label",e,1),o(r.body,n,"body",t,1),n},t.logicalExpression=function(e,t,n){const r={type:"LogicalExpression",operator:e,left:t,right:n},i=s.LogicalExpression;return o(i.operator,r,"operator",e),o(i.left,r,"left",t,1),o(i.right,r,"right",n,1),r},t.memberExpression=function(e,t,n=!1,r=null){const i={type:"MemberExpression",object:e,property:t,computed:n,optional:r},a=s.MemberExpression;return o(a.object,i,"object",e,1),o(a.property,i,"property",t,1),o(a.computed,i,"computed",n),o(a.optional,i,"optional",r),i},t.metaProperty=function(e,t){const n={type:"MetaProperty",meta:e,property:t},r=s.MetaProperty;return o(r.meta,n,"meta",e,1),o(r.property,n,"property",t,1),n},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){const t={type:"ModuleExpression",body:e},n=s.ModuleExpression;return o(n.body,t,"body",e,1),t},t.newExpression=function(e,t){const n={type:"NewExpression",callee:e,arguments:t},r=s.NewExpression;return o(r.callee,n,"callee",e,1),o(r.arguments,n,"arguments",t,1),n},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){const t={type:"NullableTypeAnnotation",typeAnnotation:e},n=s.NullableTypeAnnotation;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.numberLiteral=function(e){return(0,i.default)("NumberLiteral","NumericLiteral","The node type "),l(e)},t.numberLiteralTypeAnnotation=function(e){const t={type:"NumberLiteralTypeAnnotation",value:e},n=s.NumberLiteralTypeAnnotation;return o(n.value,t,"value",e),t},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=l,t.objectExpression=function(e){const t={type:"ObjectExpression",properties:e},n=s.ObjectExpression;return o(n.properties,t,"properties",e,1),t},t.objectMethod=function(e="method",t,n,r,i=!1,a=!1,l=!1){const c={type:"ObjectMethod",kind:e,key:t,params:n,body:r,computed:i,generator:a,async:l},u=s.ObjectMethod;return o(u.kind,c,"kind",e),o(u.key,c,"key",t,1),o(u.params,c,"params",n,1),o(u.body,c,"body",r,1),o(u.computed,c,"computed",i),o(u.generator,c,"generator",a),o(u.async,c,"async",l),c},t.objectPattern=function(e){const t={type:"ObjectPattern",properties:e},n=s.ObjectPattern;return o(n.properties,t,"properties",e,1),t},t.objectProperty=function(e,t,n=!1,r=!1,i=null){const a={type:"ObjectProperty",key:e,value:t,computed:n,shorthand:r,decorators:i},l=s.ObjectProperty;return o(l.key,a,"key",e,1),o(l.value,a,"value",t,1),o(l.computed,a,"computed",n),o(l.shorthand,a,"shorthand",r),o(l.decorators,a,"decorators",i,1),a},t.objectTypeAnnotation=function(e,t=[],n=[],r=[],i=!1){const a={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:r,exact:i},l=s.ObjectTypeAnnotation;return o(l.properties,a,"properties",e,1),o(l.indexers,a,"indexers",t,1),o(l.callProperties,a,"callProperties",n,1),o(l.internalSlots,a,"internalSlots",r,1),o(l.exact,a,"exact",i),a},t.objectTypeCallProperty=function(e){const t={type:"ObjectTypeCallProperty",value:e,static:null},n=s.ObjectTypeCallProperty;return o(n.value,t,"value",e,1),t},t.objectTypeIndexer=function(e=null,t,n,r=null){const i={type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:r,static:null},a=s.ObjectTypeIndexer;return o(a.id,i,"id",e,1),o(a.key,i,"key",t,1),o(a.value,i,"value",n,1),o(a.variance,i,"variance",r,1),i},t.objectTypeInternalSlot=function(e,t,n,r,i){const a={type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:r,method:i},l=s.ObjectTypeInternalSlot;return o(l.id,a,"id",e,1),o(l.value,a,"value",t,1),o(l.optional,a,"optional",n),o(l.static,a,"static",r),o(l.method,a,"method",i),a},t.objectTypeProperty=function(e,t,n=null){const r={type:"ObjectTypeProperty",key:e,value:t,variance:n,kind:null,method:null,optional:null,proto:null,static:null},i=s.ObjectTypeProperty;return o(i.key,r,"key",e,1),o(i.value,r,"value",t,1),o(i.variance,r,"variance",n,1),r},t.objectTypeSpreadProperty=function(e){const t={type:"ObjectTypeSpreadProperty",argument:e},n=s.ObjectTypeSpreadProperty;return o(n.argument,t,"argument",e,1),t},t.opaqueType=function(e,t=null,n=null,r){const i={type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:r},a=s.OpaqueType;return o(a.id,i,"id",e,1),o(a.typeParameters,i,"typeParameters",t,1),o(a.supertype,i,"supertype",n,1),o(a.impltype,i,"impltype",r,1),i},t.optionalCallExpression=function(e,t,n){const r={type:"OptionalCallExpression",callee:e,arguments:t,optional:n},i=s.OptionalCallExpression;return o(i.callee,r,"callee",e,1),o(i.arguments,r,"arguments",t,1),o(i.optional,r,"optional",n),r},t.optionalIndexedAccessType=function(e,t){const n={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},r=s.OptionalIndexedAccessType;return o(r.objectType,n,"objectType",e,1),o(r.indexType,n,"indexType",t,1),n},t.optionalMemberExpression=function(e,t,n=!1,r){const i={type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:r},a=s.OptionalMemberExpression;return o(a.object,i,"object",e,1),o(a.property,i,"property",t,1),o(a.computed,i,"computed",n),o(a.optional,i,"optional",r),i},t.parenthesizedExpression=function(e){const t={type:"ParenthesizedExpression",expression:e},n=s.ParenthesizedExpression;return o(n.expression,t,"expression",e,1),t},t.pipelineBareFunction=function(e){const t={type:"PipelineBareFunction",callee:e},n=s.PipelineBareFunction;return o(n.callee,t,"callee",e,1),t},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){const t={type:"PipelineTopicExpression",expression:e},n=s.PipelineTopicExpression;return o(n.expression,t,"expression",e,1),t},t.placeholder=function(e,t){const n={type:"Placeholder",expectedNode:e,name:t},r=s.Placeholder;return o(r.expectedNode,n,"expectedNode",e),o(r.name,n,"name",t,1),n},t.privateName=function(e){const t={type:"PrivateName",id:e},n=s.PrivateName;return o(n.id,t,"id",e,1),t},t.program=function(e,t=[],n="script",r=null){const i={type:"Program",body:e,directives:t,sourceType:n,interpreter:r},a=s.Program;return o(a.body,i,"body",e,1),o(a.directives,i,"directives",t,1),o(a.sourceType,i,"sourceType",n),o(a.interpreter,i,"interpreter",r,1),i},t.qualifiedTypeIdentifier=function(e,t){const n={type:"QualifiedTypeIdentifier",id:e,qualification:t},r=s.QualifiedTypeIdentifier;return o(r.id,n,"id",e,1),o(r.qualification,n,"qualification",t,1),n},t.recordExpression=function(e){const t={type:"RecordExpression",properties:e},n=s.RecordExpression;return o(n.properties,t,"properties",e,1),t},t.regExpLiteral=c,t.regexLiteral=function(e,t=""){return(0,i.default)("RegexLiteral","RegExpLiteral","The node type "),c(e,t)},t.restElement=u,t.restProperty=function(e){return(0,i.default)("RestProperty","RestElement","The node type "),u(e)},t.returnStatement=function(e=null){const t={type:"ReturnStatement",argument:e},n=s.ReturnStatement;return o(n.argument,t,"argument",e,1),t},t.sequenceExpression=function(e){const t={type:"SequenceExpression",expressions:e},n=s.SequenceExpression;return o(n.expressions,t,"expressions",e,1),t},t.spreadElement=p,t.spreadProperty=function(e){return(0,i.default)("SpreadProperty","SpreadElement","The node type "),p(e)},t.staticBlock=function(e){const t={type:"StaticBlock",body:e},n=s.StaticBlock;return o(n.body,t,"body",e,1),t},t.stringLiteral=function(e){const t={type:"StringLiteral",value:e},n=s.StringLiteral;return o(n.value,t,"value",e),t},t.stringLiteralTypeAnnotation=function(e){const t={type:"StringLiteralTypeAnnotation",value:e},n=s.StringLiteralTypeAnnotation;return o(n.value,t,"value",e),t},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(e=null,t){const n={type:"SwitchCase",test:e,consequent:t},r=s.SwitchCase;return o(r.test,n,"test",e,1),o(r.consequent,n,"consequent",t,1),n},t.switchStatement=function(e,t){const n={type:"SwitchStatement",discriminant:e,cases:t},r=s.SwitchStatement;return o(r.discriminant,n,"discriminant",e,1),o(r.cases,n,"cases",t,1),n},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){const n={type:"TaggedTemplateExpression",tag:e,quasi:t},r=s.TaggedTemplateExpression;return o(r.tag,n,"tag",e,1),o(r.quasi,n,"quasi",t,1),n},t.templateElement=function(e,t=!1){const n={type:"TemplateElement",value:e,tail:t},r=s.TemplateElement;return o(r.value,n,"value",e),o(r.tail,n,"tail",t),n},t.templateLiteral=function(e,t){const n={type:"TemplateLiteral",quasis:e,expressions:t},r=s.TemplateLiteral;return o(r.quasis,n,"quasis",e,1),o(r.expressions,n,"expressions",t,1),n},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){const t={type:"ThrowStatement",argument:e},n=s.ThrowStatement;return o(n.argument,t,"argument",e,1),t},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e,t=null,n=null){const r={type:"TryStatement",block:e,handler:t,finalizer:n},i=s.TryStatement;return o(i.block,r,"block",e,1),o(i.handler,r,"handler",t,1),o(i.finalizer,r,"finalizer",n,1),r},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){const t={type:"TSArrayType",elementType:e},n=s.TSArrayType;return o(n.elementType,t,"elementType",e,1),t},t.tSAsExpression=t.tsAsExpression=function(e,t){const n={type:"TSAsExpression",expression:e,typeAnnotation:t},r=s.TSAsExpression;return o(r.expression,n,"expression",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(e=null,t,n=null){const r={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n},i=s.TSCallSignatureDeclaration;return o(i.typeParameters,r,"typeParameters",e,1),o(i.parameters,r,"parameters",t,1),o(i.typeAnnotation,r,"typeAnnotation",n,1),r},t.tSConditionalType=t.tsConditionalType=function(e,t,n,r){const i={type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:r},a=s.TSConditionalType;return o(a.checkType,i,"checkType",e,1),o(a.extendsType,i,"extendsType",t,1),o(a.trueType,i,"trueType",n,1),o(a.falseType,i,"falseType",r,1),i},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(e=null,t,n=null){const r={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n},i=s.TSConstructSignatureDeclaration;return o(i.typeParameters,r,"typeParameters",e,1),o(i.parameters,r,"parameters",t,1),o(i.typeAnnotation,r,"typeAnnotation",n,1),r},t.tSConstructorType=t.tsConstructorType=function(e=null,t,n=null){const r={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:n},i=s.TSConstructorType;return o(i.typeParameters,r,"typeParameters",e,1),o(i.parameters,r,"parameters",t,1),o(i.typeAnnotation,r,"typeAnnotation",n,1),r},t.tSDeclareFunction=t.tsDeclareFunction=function(e=null,t=null,n,r=null){const i={type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:r},a=s.TSDeclareFunction;return o(a.id,i,"id",e,1),o(a.typeParameters,i,"typeParameters",t,1),o(a.params,i,"params",n,1),o(a.returnType,i,"returnType",r,1),i},t.tSDeclareMethod=t.tsDeclareMethod=function(e=null,t,n=null,r,i=null){const a={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:n,params:r,returnType:i},l=s.TSDeclareMethod;return o(l.decorators,a,"decorators",e,1),o(l.key,a,"key",t,1),o(l.typeParameters,a,"typeParameters",n,1),o(l.params,a,"params",r,1),o(l.returnType,a,"returnType",i,1),a},t.tSEnumBody=t.tsEnumBody=function(e){const t={type:"TSEnumBody",members:e},n=s.TSEnumBody;return o(n.members,t,"members",e,1),t},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){const n={type:"TSEnumDeclaration",id:e,members:t},r=s.TSEnumDeclaration;return o(r.id,n,"id",e,1),o(r.members,n,"members",t,1),n},t.tSEnumMember=t.tsEnumMember=function(e,t=null){const n={type:"TSEnumMember",id:e,initializer:t},r=s.TSEnumMember;return o(r.id,n,"id",e,1),o(r.initializer,n,"initializer",t,1),n},t.tSExportAssignment=t.tsExportAssignment=function(e){const t={type:"TSExportAssignment",expression:e},n=s.TSExportAssignment;return o(n.expression,t,"expression",e,1),t},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e,t=null){const n={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},r=s.TSExpressionWithTypeArguments;return o(r.expression,n,"expression",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){const t={type:"TSExternalModuleReference",expression:e},n=s.TSExternalModuleReference;return o(n.expression,t,"expression",e,1),t},t.tSFunctionType=t.tsFunctionType=function(e=null,t,n=null){const r={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:n},i=s.TSFunctionType;return o(i.typeParameters,r,"typeParameters",e,1),o(i.parameters,r,"parameters",t,1),o(i.typeAnnotation,r,"typeAnnotation",n,1),r},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){const n={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},r=s.TSImportEqualsDeclaration;return o(r.id,n,"id",e,1),o(r.moduleReference,n,"moduleReference",t,1),n},t.tSImportType=t.tsImportType=function(e,t=null,n=null){const r={type:"TSImportType",argument:e,qualifier:t,typeParameters:n},i=s.TSImportType;return o(i.argument,r,"argument",e,1),o(i.qualifier,r,"qualifier",t,1),o(i.typeParameters,r,"typeParameters",n,1),r},t.tSIndexSignature=t.tsIndexSignature=function(e,t=null){const n={type:"TSIndexSignature",parameters:e,typeAnnotation:t},r=s.TSIndexSignature;return o(r.parameters,n,"parameters",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){const n={type:"TSIndexedAccessType",objectType:e,indexType:t},r=s.TSIndexedAccessType;return o(r.objectType,n,"objectType",e,1),o(r.indexType,n,"indexType",t,1),n},t.tSInferType=t.tsInferType=function(e){const t={type:"TSInferType",typeParameter:e},n=s.TSInferType;return o(n.typeParameter,t,"typeParameter",e,1),t},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e,t=null){const n={type:"TSInstantiationExpression",expression:e,typeParameters:t},r=s.TSInstantiationExpression;return o(r.expression,n,"expression",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.tSInterfaceBody=t.tsInterfaceBody=function(e){const t={type:"TSInterfaceBody",body:e},n=s.TSInterfaceBody;return o(n.body,t,"body",e,1),t},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e,t=null,n=null,r){const i={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:r},a=s.TSInterfaceDeclaration;return o(a.id,i,"id",e,1),o(a.typeParameters,i,"typeParameters",t,1),o(a.extends,i,"extends",n,1),o(a.body,i,"body",r,1),i},t.tSIntersectionType=t.tsIntersectionType=function(e){const t={type:"TSIntersectionType",types:e},n=s.TSIntersectionType;return o(n.types,t,"types",e,1),t},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){const t={type:"TSLiteralType",literal:e},n=s.TSLiteralType;return o(n.literal,t,"literal",e,1),t},t.tSMappedType=t.tsMappedType=function(e,t=null,n=null){const r={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:n},i=s.TSMappedType;return o(i.typeParameter,r,"typeParameter",e,1),o(i.typeAnnotation,r,"typeAnnotation",t,1),o(i.nameType,r,"nameType",n,1),r},t.tSMethodSignature=t.tsMethodSignature=function(e,t=null,n,r=null){const i={type:"TSMethodSignature",key:e,typeParameters:t,parameters:n,typeAnnotation:r,kind:null},a=s.TSMethodSignature;return o(a.key,i,"key",e,1),o(a.typeParameters,i,"typeParameters",t,1),o(a.parameters,i,"parameters",n,1),o(a.typeAnnotation,i,"typeAnnotation",r,1),i},t.tSModuleBlock=t.tsModuleBlock=function(e){const t={type:"TSModuleBlock",body:e},n=s.TSModuleBlock;return o(n.body,t,"body",e,1),t},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){const n={type:"TSModuleDeclaration",id:e,body:t,kind:null},r=s.TSModuleDeclaration;return o(r.id,n,"id",e,1),o(r.body,n,"body",t,1),n},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t,n=!1){const r={type:"TSNamedTupleMember",label:e,elementType:t,optional:n},i=s.TSNamedTupleMember;return o(i.label,r,"label",e,1),o(i.elementType,r,"elementType",t,1),o(i.optional,r,"optional",n),r},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){const t={type:"TSNamespaceExportDeclaration",id:e},n=s.TSNamespaceExportDeclaration;return o(n.id,t,"id",e,1),t},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){const t={type:"TSNonNullExpression",expression:e},n=s.TSNonNullExpression;return o(n.expression,t,"expression",e,1),t},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){const t={type:"TSOptionalType",typeAnnotation:e},n=s.TSOptionalType;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSParameterProperty=t.tsParameterProperty=function(e){const t={type:"TSParameterProperty",parameter:e},n=s.TSParameterProperty;return o(n.parameter,t,"parameter",e,1),t},t.tSParenthesizedType=t.tsParenthesizedType=function(e){const t={type:"TSParenthesizedType",typeAnnotation:e},n=s.TSParenthesizedType;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSPropertySignature=t.tsPropertySignature=function(e,t=null){const n={type:"TSPropertySignature",key:e,typeAnnotation:t},r=s.TSPropertySignature;return o(r.key,n,"key",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSQualifiedName=t.tsQualifiedName=function(e,t){const n={type:"TSQualifiedName",left:e,right:t},r=s.TSQualifiedName;return o(r.left,n,"left",e,1),o(r.right,n,"right",t,1),n},t.tSRestType=t.tsRestType=function(e){const t={type:"TSRestType",typeAnnotation:e},n=s.TSRestType;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){const n={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},r=s.TSSatisfiesExpression;return o(r.expression,n,"expression",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSTemplateLiteralType=t.tsTemplateLiteralType=function(e,t){const n={type:"TSTemplateLiteralType",quasis:e,types:t},r=s.TSTemplateLiteralType;return o(r.quasis,n,"quasis",e,1),o(r.types,n,"types",t,1),n},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){const t={type:"TSTupleType",elementTypes:e},n=s.TSTupleType;return o(n.elementTypes,t,"elementTypes",e,1),t},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e,t=null,n){const r={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:n},i=s.TSTypeAliasDeclaration;return o(i.id,r,"id",e,1),o(i.typeParameters,r,"typeParameters",t,1),o(i.typeAnnotation,r,"typeAnnotation",n,1),r},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){const t={type:"TSTypeAnnotation",typeAnnotation:e},n=s.TSTypeAnnotation;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){const n={type:"TSTypeAssertion",typeAnnotation:e,expression:t},r=s.TSTypeAssertion;return o(r.typeAnnotation,n,"typeAnnotation",e,1),o(r.expression,n,"expression",t,1),n},t.tSTypeLiteral=t.tsTypeLiteral=function(e){const t={type:"TSTypeLiteral",members:e},n=s.TSTypeLiteral;return o(n.members,t,"members",e,1),t},t.tSTypeOperator=t.tsTypeOperator=function(e){const t={type:"TSTypeOperator",typeAnnotation:e,operator:null},n=s.TSTypeOperator;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSTypeParameter=t.tsTypeParameter=function(e=null,t=null,n){const r={type:"TSTypeParameter",constraint:e,default:t,name:n},i=s.TSTypeParameter;return o(i.constraint,r,"constraint",e,1),o(i.default,r,"default",t,1),o(i.name,r,"name",n),r},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){const t={type:"TSTypeParameterDeclaration",params:e},n=s.TSTypeParameterDeclaration;return o(n.params,t,"params",e,1),t},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){const t={type:"TSTypeParameterInstantiation",params:e},n=s.TSTypeParameterInstantiation;return o(n.params,t,"params",e,1),t},t.tSTypePredicate=t.tsTypePredicate=function(e,t=null,n=null){const r={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:n},i=s.TSTypePredicate;return o(i.parameterName,r,"parameterName",e,1),o(i.typeAnnotation,r,"typeAnnotation",t,1),o(i.asserts,r,"asserts",n),r},t.tSTypeQuery=t.tsTypeQuery=function(e,t=null){const n={type:"TSTypeQuery",exprName:e,typeParameters:t},r=s.TSTypeQuery;return o(r.exprName,n,"exprName",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.tSTypeReference=t.tsTypeReference=function(e,t=null){const n={type:"TSTypeReference",typeName:e,typeParameters:t},r=s.TSTypeReference;return o(r.typeName,n,"typeName",e,1),o(r.typeParameters,n,"typeParameters",t,1),n},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){const t={type:"TSUnionType",types:e},n=s.TSUnionType;return o(n.types,t,"types",e,1),t},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(e=[]){const t={type:"TupleExpression",elements:e},n=s.TupleExpression;return o(n.elements,t,"elements",e,1),t},t.tupleTypeAnnotation=function(e){const t={type:"TupleTypeAnnotation",types:e},n=s.TupleTypeAnnotation;return o(n.types,t,"types",e,1),t},t.typeAlias=function(e,t=null,n){const r={type:"TypeAlias",id:e,typeParameters:t,right:n},i=s.TypeAlias;return o(i.id,r,"id",e,1),o(i.typeParameters,r,"typeParameters",t,1),o(i.right,r,"right",n,1),r},t.typeAnnotation=function(e){const t={type:"TypeAnnotation",typeAnnotation:e},n=s.TypeAnnotation;return o(n.typeAnnotation,t,"typeAnnotation",e,1),t},t.typeCastExpression=function(e,t){const n={type:"TypeCastExpression",expression:e,typeAnnotation:t},r=s.TypeCastExpression;return o(r.expression,n,"expression",e,1),o(r.typeAnnotation,n,"typeAnnotation",t,1),n},t.typeParameter=function(e=null,t=null,n=null){const r={type:"TypeParameter",bound:e,default:t,variance:n,name:null},i=s.TypeParameter;return o(i.bound,r,"bound",e,1),o(i.default,r,"default",t,1),o(i.variance,r,"variance",n,1),r},t.typeParameterDeclaration=function(e){const t={type:"TypeParameterDeclaration",params:e},n=s.TypeParameterDeclaration;return o(n.params,t,"params",e,1),t},t.typeParameterInstantiation=function(e){const t={type:"TypeParameterInstantiation",params:e},n=s.TypeParameterInstantiation;return o(n.params,t,"params",e,1),t},t.typeofTypeAnnotation=function(e){const t={type:"TypeofTypeAnnotation",argument:e},n=s.TypeofTypeAnnotation;return o(n.argument,t,"argument",e,1),t},t.unaryExpression=function(e,t,n=!0){const r={type:"UnaryExpression",operator:e,argument:t,prefix:n},i=s.UnaryExpression;return o(i.operator,r,"operator",e),o(i.argument,r,"argument",t,1),o(i.prefix,r,"prefix",n),r},t.unionTypeAnnotation=function(e){const t={type:"UnionTypeAnnotation",types:e},n=s.UnionTypeAnnotation;return o(n.types,t,"types",e,1),t},t.updateExpression=function(e,t,n=!1){const r={type:"UpdateExpression",operator:e,argument:t,prefix:n},i=s.UpdateExpression;return o(i.operator,r,"operator",e),o(i.argument,r,"argument",t,1),o(i.prefix,r,"prefix",n),r},t.v8IntrinsicIdentifier=function(e){const t={type:"V8IntrinsicIdentifier",name:e},n=s.V8IntrinsicIdentifier;return o(n.name,t,"name",e),t},t.variableDeclaration=function(e,t){const n={type:"VariableDeclaration",kind:e,declarations:t},r=s.VariableDeclaration;return o(r.kind,n,"kind",e),o(r.declarations,n,"declarations",t,1),n},t.variableDeclarator=function(e,t=null){const n={type:"VariableDeclarator",id:e,init:t},r=s.VariableDeclarator;return o(r.id,n,"id",e,1),o(r.init,n,"init",t,1),n},t.variance=function(e){const t={type:"Variance",kind:e},n=s.Variance;return o(n.kind,t,"kind",e),t},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){const n={type:"WhileStatement",test:e,body:t},r=s.WhileStatement;return o(r.test,n,"test",e,1),o(r.body,n,"body",t,1),n},t.withStatement=function(e,t){const n={type:"WithStatement",object:e,body:t},r=s.WithStatement;return o(r.object,n,"object",e,1),o(r.body,n,"body",t,1),n},t.yieldExpression=function(e=null,t=!1){const n={type:"YieldExpression",argument:e,delegate:t},r=s.YieldExpression;return o(r.argument,n,"argument",e,1),o(r.delegate,n,"delegate",t),n};var r=n(88765),i=n(50231),a=n(65183);const{validateInternal:o}=r,{NODE_FIELDS:s}=a;function l(e){const t={type:"NumericLiteral",value:e},n=s.NumericLiteral;return o(n.value,t,"value",e),t}function c(e,t=""){const n={type:"RegExpLiteral",pattern:e,flags:t},r=s.RegExpLiteral;return o(r.pattern,n,"pattern",e),o(r.flags,n,"flags",t),n}function u(e){const t={type:"RestElement",argument:e},n=s.RestElement;return o(n.argument,t,"argument",e,1),t}function p(e){const t={type:"SpreadElement",argument:e},n=s.SpreadElement;return o(n.argument,t,"argument",e,1),t}},56461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(93806);t.default=function(e){switch(e){case"string":return(0,r.stringTypeAnnotation)();case"number":return(0,r.numberTypeAnnotation)();case"undefined":return(0,r.voidTypeAnnotation)();case"boolean":return(0,r.booleanTypeAnnotation)();case"function":return(0,r.genericTypeAnnotation)((0,r.identifier)("Function"));case"object":return(0,r.genericTypeAnnotation)((0,r.identifier)("Object"));case"symbol":return(0,r.genericTypeAnnotation)((0,r.identifier)("Symbol"));case"bigint":return(0,r.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}},56550:(e,t,n)=>{"use strict";n.d(t,{$$:()=>y,Es:()=>h,KG:()=>m,Ks:()=>C,Ll:()=>s,Re:()=>w,Sw:()=>a,TW:()=>d,WQ:()=>k,YG:()=>T,YN:()=>g,ZC:()=>x,_q:()=>f,ag:()=>P,e_:()=>A,jn:()=>i,kx:()=>E,l6:()=>o,lk:()=>b,sb:()=>u,wz:()=>c,xZ:()=>p,zk:()=>l});var r=n(18769);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function o(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function l(e){var t,n;return e?o(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=l(e);return e instanceof t}function u(e){return!o(e)&&e instanceof l(e).HTMLElement}function p(e){return e instanceof l(e).SVGElement}function d(e){return e?o(e)?e.document:s(e)?c(e)?e:u(e)||p(e)?e.ownerDocument:document:document:document}const h=a?r.useLayoutEffect:r.useEffect;function f(e){const t=(0,r.useRef)(e);return h((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function y(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function g(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return h((()=>{n.current!==e&&(n.current=e)}),t),n}function m(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function b(e){const t=f(e),n=(0,r.useRef)(null),i=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,i]}function x(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let S={};function T(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==S[e]?0:S[e]+1;return S[e]=n,e+"-"+n}),[e,t])}function v(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const k=v(1),w=v(-1);function E(e){if(!e)return!1;const{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function A(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=l(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const C=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[C.Translate.toString(e),C.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),_="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function P(e){return e.matches(_)?e:e.querySelector(_)}},57166:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(n&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===n.type)return!1;const i=r.default.keys[t.type];if(i)for(let n=0;n<i.length;n++){const r=t[i[n]];if(Array.isArray(r)){if(r.includes(e))return!0}else if(r===e)return!0}return!1};var r=n(46676)},58084:(e,t,n)=>{"use strict";n.d(t,{C0:()=>w,VA:()=>g,K2:()=>y,xA:()=>ue,hH:()=>L,Dl:()=>je,IU:()=>tt,Wt:()=>Ge,Y2:()=>ze,a$:()=>qe,sb:()=>J,ME:()=>dt,UI:()=>X,Ch:()=>A,mW:()=>E,DB:()=>v,_3:()=>Pe,EJ:()=>T,m7:()=>at,iN:()=>rt,zj:()=>le,D7:()=>ut,Gs:()=>bt,J$:()=>P,ab:()=>st,Q2:()=>oe,P$:()=>$,ID:()=>_e,Wi:()=>Re,H1:()=>ge,Rm:()=>b,QO:()=>Ie,Js:()=>mt,Xd:()=>C,VJ:()=>$e,cL:()=>pe,$i:()=>G,jZ:()=>ve,oB:()=>ht,wZ:()=>ie,EI:()=>it,SV:()=>nt,Nk:()=>se,XV:()=>pt,ke:()=>ot,He:()=>x,UU:()=>re,ot:()=>We,mj:()=>ft,tM:()=>Xe,H$:()=>q,B6:()=>ae});var r=n(23464),i=n(11028),a=n(36135);const o=(e,t)=>{const n=i.A.parse(e),r={};for(const e in t)t[e]&&(r[e]=n[e]+t[e]);return(0,a.A)(e,r)};var s=n(62209);const l=(e,t=100)=>{const n=i.A.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,((e,t,n=50)=>{const{r,g:a,b:o,a:l}=i.A.parse(e),{r:c,g:u,b:p,a:d}=i.A.parse(t),h=n/100,f=2*h-1,y=l-d,g=((f*y==-1?f:(f+y)/(1+f*y))+1)/2,m=1-g,b=r*g+c*m,x=a*g+u*m,S=o*g+p*m,T=l*h+d*(1-h);return(0,s.A)(b,x,S,T)})(n,e,t)};var c,u=n(87708),p=n(47964),d=n(1942),h=n(52636),f=Object.defineProperty,y=(e,t)=>f(e,"name",{value:t,configurable:!0}),g=(e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})},m={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},b={trace:y(((...e)=>{}),"trace"),debug:y(((...e)=>{}),"debug"),info:y(((...e)=>{}),"info"),warn:y(((...e)=>{}),"warn"),error:y(((...e)=>{}),"error"),fatal:y(((...e)=>{}),"fatal")},x=y((function(e="fatal"){let t=m.fatal;"string"==typeof e?e.toLowerCase()in m&&(t=m[e]):"number"==typeof e&&(t=e),b.trace=()=>{},b.debug=()=>{},b.info=()=>{},b.warn=()=>{},b.error=()=>{},b.fatal=()=>{},t<=m.fatal&&(b.fatal=console.error?console.error.bind(console,S("FATAL"),"color: orange"):console.log.bind(console,"",S("FATAL"))),t<=m.error&&(b.error=console.error?console.error.bind(console,S("ERROR"),"color: orange"):console.log.bind(console,"",S("ERROR"))),t<=m.warn&&(b.warn=console.warn?console.warn.bind(console,S("WARN"),"color: orange"):console.log.bind(console,"",S("WARN"))),t<=m.info&&(b.info=console.info?console.info.bind(console,S("INFO"),"color: lightblue"):console.log.bind(console,"",S("INFO"))),t<=m.debug&&(b.debug=console.debug?console.debug.bind(console,S("DEBUG"),"color: lightgreen"):console.log.bind(console,"",S("DEBUG"))),t<=m.trace&&(b.trace=console.debug?console.debug.bind(console,S("TRACE"),"color: lightgreen"):console.log.bind(console,"",S("TRACE")))}),"setLogLevel"),S=y((e=>`%c${r().format("ss.SSS")} : ${e} : `),"format"),T=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,v=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,k=/\s*%%.*\n/gm,w=class extends Error{static{y(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}},E={},A=y((function(e,t){e=e.replace(T,"").replace(v,"").replace(k,"\n");for(const[n,{detector:r}]of Object.entries(E))if(r(e,t))return n;throw new w(`No diagram type detected matching given configuration for text: ${e}`)}),"detectType"),C=y(((...e)=>{for(const{id:t,detector:n,loader:r}of e)_(t,n,r)}),"registerLazyLoadedDiagrams"),_=y(((e,t,n)=>{E[e]&&b.warn(`Detector with key ${e} already exists. Overwriting.`),E[e]={detector:t,loader:n},b.debug(`Detector with key ${e} added${n?" with loader":""}`)}),"addDetector"),P=y((e=>E[e].loader),"getDiagramLoader"),O=y(((e,t,{depth:n=2,clobber:r=!1}={})=>{const i={depth:n,clobber:r};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach((t=>O(e,t,i))),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach((t=>{e.includes(t)||e.push(t)})),e):void 0===e||n<=0?null!=e&&"object"==typeof e&&"object"==typeof t?Object.assign(e,t):t:(void 0!==t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).forEach((i=>{"object"!=typeof t[i]||void 0!==e[i]&&"object"!=typeof e[i]?(r||"object"!=typeof e[i]&&"object"!=typeof t[i])&&(e[i]=t[i]):(void 0===e[i]&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=O(e[i],t[i],{depth:n-1,clobber:r}))})),e)}),"assignWithDepth"),L=O,I="#ffffff",D="#f2f2f2",M=y(((e,t)=>o(e,t?{s:-40,l:10}:{s:-40,l:-10})),"mkBorder"),N=class{static{y(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||o(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||o(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||M(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||M(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||M(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||l(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||l(this.tertiaryColor),this.lineColor=this.lineColor||l(this.background),this.arrowheadColor=this.arrowheadColor||l(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,u.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||l(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,p.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||(0,u.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(this.mainBkg,10)):(this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,p.A)(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,u.A)(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,u.A)(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||l(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||(0,p.A)(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||(0,u.A)(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||o(this.mainBkg,{h:180,s:-15,l:e*(5+3*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||o(this.mainBkg,{h:180,s:-15,l:e*(8+3*t)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||o(this.primaryColor,{h:64}),this.fillType3=this.fillType3||o(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||o(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||o(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||o(this.primaryColor,{h:128}),this.fillType7=this.fillType7||o(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||o(this.primaryColor,{l:-10}),this.pie5=this.pie5||o(this.secondaryColor,{l:-10}),this.pie6=this.pie6||o(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||o(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||o(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||o(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||o(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||o(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||o(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||o(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||o(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||o(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||o(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||o(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||o(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||o(this.primaryColor,{h:-30}),this.git4=this.git4||o(this.primaryColor,{h:-60}),this.git5=this.git5||o(this.primaryColor,{h:-90}),this.git6=this.git6||o(this.primaryColor,{h:60}),this.git7=this.git7||o(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||l(this.git0),this.gitInv1=this.gitInv1||l(this.git1),this.gitInv2=this.gitInv2||l(this.git2),this.gitInv3=this.gitInv3||l(this.git3),this.gitInv4=this.gitInv4||l(this.git4),this.gitInv5=this.gitInv5||l(this.git5),this.gitInv6=this.gitInv6||l(this.git6),this.gitInv7=this.gitInv7||l(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||I,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach((t=>{this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}},F=y((e=>{const t=new N;return t.calculate(e),t}),"getThemeVariables"),B=class{static{y(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,p.A)(this.primaryColor,16),this.tertiaryColor=o(this.primaryColor,{h:-160}),this.primaryBorderColor=l(this.background),this.secondaryBorderColor=M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=M(this.tertiaryColor,this.darkMode),this.primaryTextColor=l(this.primaryColor),this.secondaryTextColor=l(this.secondaryColor),this.tertiaryTextColor=l(this.tertiaryColor),this.lineColor=l(this.background),this.textColor=l(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,p.A)(l("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,s.A)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,u.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,u.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,s.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,s.A)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,p.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,p.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,p.A)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=o(this.primaryColor,{h:64}),this.fillType3=o(this.secondaryColor,{h:64}),this.fillType4=o(this.primaryColor,{h:-64}),this.fillType5=o(this.secondaryColor,{h:-64}),this.fillType6=o(this.primaryColor,{h:128}),this.fillType7=o(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||l(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||(0,p.A)(this["cScale"+e],10);for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||o(this.mainBkg,{h:30,s:-30,l:-(4*e-10)}),this["surfacePeer"+e]=this["surfacePeer"+e]||o(this.mainBkg,{h:30,s:-30,l:-(4*e-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||o(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||o(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||o(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||o(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||o(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||o(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,p.A)(this.secondaryColor,20),this.git1=(0,p.A)(this.pie2||this.secondaryColor,20),this.git2=(0,p.A)(this.pie3||this.tertiaryColor,20),this.git3=(0,p.A)(this.pie4||o(this.primaryColor,{h:-30}),20),this.git4=(0,p.A)(this.pie5||o(this.primaryColor,{h:-60}),20),this.git5=(0,p.A)(this.pie6||o(this.primaryColor,{h:-90}),10),this.git6=(0,p.A)(this.pie7||o(this.primaryColor,{h:60}),10),this.git7=(0,p.A)(this.pie8||o(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||l(this.git0),this.gitInv1=this.gitInv1||l(this.git1),this.gitInv2=this.gitInv2||l(this.git2),this.gitInv3=this.gitInv3||l(this.git3),this.gitInv4=this.gitInv4||l(this.git4),this.gitInv5=this.gitInv5||l(this.git5),this.gitInv6=this.gitInv6||l(this.git6),this.gitInv7=this.gitInv7||l(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||l(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||l(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||(0,p.A)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,p.A)(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach((t=>{this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}},R=y((e=>{const t=new B;return t.calculate(e),t}),"getThemeVariables"),j=class{static{y(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=o(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=o(this.primaryColor,{h:-160}),this.primaryBorderColor=M(this.primaryColor,this.darkMode),this.secondaryBorderColor=M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=M(this.tertiaryColor,this.darkMode),this.primaryTextColor=l(this.primaryColor),this.secondaryTextColor=l(this.secondaryColor),this.tertiaryTextColor=l(this.tertiaryColor),this.lineColor=l(this.background),this.textColor=l(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=(0,s.A)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,u.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,u.A)(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,u.A)(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||(0,u.A)(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||o(this["cScale"+e],{h:180});for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||o(this.mainBkg,{h:30,l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||o(this.mainBkg,{h:30,l:-(7+5*e)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||l(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||l(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,p.A)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,p.A)(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||(0,p.A)(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=o(this.primaryColor,{h:64}),this.fillType3=o(this.secondaryColor,{h:64}),this.fillType4=o(this.primaryColor,{h:-64}),this.fillType5=o(this.secondaryColor,{h:-64}),this.fillType6=o(this.primaryColor,{h:128}),this.fillType7=o(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||o(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||o(this.primaryColor,{l:-10}),this.pie5=this.pie5||o(this.secondaryColor,{l:-30}),this.pie6=this.pie6||o(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||o(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||o(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||o(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||o(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||o(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||o(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||o(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||o(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||o(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||o(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||o(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||o(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||o(this.primaryColor,{h:-30}),this.git4=this.git4||o(this.primaryColor,{h:-60}),this.git5=this.git5||o(this.primaryColor,{h:-90}),this.git6=this.git6||o(this.primaryColor,{h:60}),this.git7=this.git7||o(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,u.A)(l(this.git0),25),this.gitInv1=this.gitInv1||l(this.git1),this.gitInv2=this.gitInv2||l(this.git2),this.gitInv3=this.gitInv3||l(this.git3),this.gitInv4=this.gitInv4||l(this.git4),this.gitInv5=this.gitInv5||l(this.git5),this.gitInv6=this.gitInv6||l(this.git6),this.gitInv7=this.gitInv7||l(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||l(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||l(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||I,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(e){if(Object.keys(this).forEach((e=>{"calculated"===this[e]&&(this[e]=void 0)})),"object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach((t=>{this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}},$=y((e=>{const t=new j;return t.calculate(e),t}),"getThemeVariables"),z=class{static{y(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,p.A)("#cde498",10),this.primaryBorderColor=M(this.primaryColor,this.darkMode),this.secondaryBorderColor=M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=M(this.tertiaryColor,this.darkMode),this.primaryTextColor=l(this.primaryColor),this.secondaryTextColor=l(this.secondaryColor),this.tertiaryTextColor=l(this.primaryColor),this.lineColor=l(this.background),this.textColor=l(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,u.A)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,u.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,u.A)(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,u.A)(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||(0,u.A)(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||o(this["cScale"+e],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||o(this.mainBkg,{h:30,s:-30,l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||o(this.mainBkg,{h:30,s:-30,l:-(8+5*e)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,p.A)(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=o(this.primaryColor,{h:64}),this.fillType3=o(this.secondaryColor,{h:64}),this.fillType4=o(this.primaryColor,{h:-64}),this.fillType5=o(this.secondaryColor,{h:-64}),this.fillType6=o(this.primaryColor,{h:128}),this.fillType7=o(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||o(this.primaryColor,{l:-30}),this.pie5=this.pie5||o(this.secondaryColor,{l:-30}),this.pie6=this.pie6||o(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||o(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||o(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||o(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||o(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||o(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||o(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||o(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||o(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||o(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||o(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||o(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||o(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||o(this.primaryColor,{h:-30}),this.git4=this.git4||o(this.primaryColor,{h:-60}),this.git5=this.git5||o(this.primaryColor,{h:-90}),this.git6=this.git6||o(this.primaryColor,{h:60}),this.git7=this.git7||o(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,p.A)(this.git0,25),this.git1=(0,p.A)(this.git1,25),this.git2=(0,p.A)(this.git2,25),this.git3=(0,p.A)(this.git3,25),this.git4=(0,p.A)(this.git4,25),this.git5=(0,p.A)(this.git5,25),this.git6=(0,p.A)(this.git6,25),this.git7=(0,p.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||l(this.git0),this.gitInv1=this.gitInv1||l(this.git1),this.gitInv2=this.gitInv2||l(this.git2),this.gitInv3=this.gitInv3||l(this.git3),this.gitInv4=this.gitInv4||l(this.git4),this.gitInv5=this.gitInv5||l(this.git5),this.gitInv6=this.gitInv6||l(this.git6),this.gitInv7=this.gitInv7||l(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||l(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||l(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||I,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach((t=>{this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}},K=y((e=>{const t=new z;return t.calculate(e),t}),"getThemeVariables"),U=class{static{y(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,p.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=o(this.primaryColor,{h:-160}),this.primaryBorderColor=M(this.primaryColor,this.darkMode),this.secondaryBorderColor=M(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=M(this.tertiaryColor,this.darkMode),this.primaryTextColor=l(this.primaryColor),this.secondaryTextColor=l(this.secondaryColor),this.tertiaryTextColor=l(this.tertiaryColor),this.lineColor=l(this.background),this.textColor=l(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,p.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,p.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||l(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||(0,p.A)(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||(0,u.A)(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||o(this.mainBkg,{l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||o(this.mainBkg,{l:-(8+5*e)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=(0,p.A)(this.contrast,30),this.sectionBkgColor2=(0,p.A)(this.contrast,30),this.taskBorderColor=(0,u.A)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,p.A)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,u.A)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=o(this.primaryColor,{h:64}),this.fillType3=o(this.secondaryColor,{h:64}),this.fillType4=o(this.primaryColor,{h:-64}),this.fillType5=o(this.secondaryColor,{h:-64}),this.fillType6=o(this.primaryColor,{h:128}),this.fillType7=o(this.secondaryColor,{h:128});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||o(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||o(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||o(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||o(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||o(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||o(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,p.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,u.A)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||o(this.primaryColor,{h:-30}),this.git4=this.pie5||o(this.primaryColor,{h:-60}),this.git5=this.pie6||o(this.primaryColor,{h:-90}),this.git6=this.pie7||o(this.primaryColor,{h:60}),this.git7=this.pie8||o(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||l(this.git0),this.gitInv1=this.gitInv1||l(this.git1),this.gitInv2=this.gitInv2||l(this.git2),this.gitInv3=this.gitInv3||l(this.git3),this.gitInv4=this.gitInv4||l(this.git4),this.gitInv5=this.gitInv5||l(this.git5),this.gitInv6=this.gitInv6||l(this.git6),this.gitInv7=this.gitInv7||l(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||I,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach((t=>{this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}},q={base:{getThemeVariables:F},dark:{getThemeVariables:R},default:{getThemeVariables:$},forest:{getThemeVariables:K},neutral:{getThemeVariables:y((e=>{const t=new U;return t.calculate(e),t}),"getThemeVariables")}},W={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Y={...W,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:q.default.getThemeVariables(),sequence:{...W.sequence,messageFont:y((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont"),noteFont:y((function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}}),"noteFont"),actorFont:y((function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}),"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...W.gantt,tickInterval:void 0,useWidth:void 0},c4:{...W.c4,useWidth:void 0,personFont:y((function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}}),"personFont"),flowchart:{...W.flowchart,inheritDir:!1},external_personFont:y((function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}}),"external_personFont"),systemFont:y((function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}}),"systemFont"),external_systemFont:y((function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}}),"external_systemFont"),system_dbFont:y((function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}}),"system_dbFont"),external_system_dbFont:y((function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}}),"external_system_dbFont"),system_queueFont:y((function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}}),"system_queueFont"),external_system_queueFont:y((function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}}),"external_system_queueFont"),containerFont:y((function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}}),"containerFont"),external_containerFont:y((function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}}),"external_containerFont"),container_dbFont:y((function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}}),"container_dbFont"),external_container_dbFont:y((function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}}),"external_container_dbFont"),container_queueFont:y((function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}}),"container_queueFont"),external_container_queueFont:y((function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}}),"external_container_queueFont"),componentFont:y((function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}}),"componentFont"),external_componentFont:y((function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}}),"external_componentFont"),component_dbFont:y((function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}}),"component_dbFont"),external_component_dbFont:y((function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}}),"external_component_dbFont"),component_queueFont:y((function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}}),"component_queueFont"),external_component_queueFont:y((function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}}),"external_component_queueFont"),boundaryFont:y((function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}}),"boundaryFont"),messageFont:y((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont")},pie:{...W.pie,useWidth:984},xyChart:{...W.xyChart,useWidth:void 0},requirement:{...W.requirement,useWidth:void 0},packet:{...W.packet},radar:{...W.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},H=y(((e,t="")=>Object.keys(e).reduce(((n,r)=>Array.isArray(e[r])?n:"object"==typeof e[r]&&null!==e[r]?[...n,t+r,...H(e[r],"")]:[...n,t+r]),[])),"keyify"),V=new Set(H(Y,"")),X=Y,G=y((e=>{if(b.debug("sanitizeDirective called with",e),"object"==typeof e&&null!=e)if(Array.isArray(e))e.forEach((e=>G(e)));else{for(const t of Object.keys(e)){if(b.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!V.has(t)||null==e[t]){b.debug("sanitize deleting key: ",t),delete e[t];continue}if("object"==typeof e[t]){b.debug("sanitizing object",t),G(e[t]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)t.includes(r)&&(b.debug("sanitizing css option",t),e[t]=Z(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const n=e.themeVariables[t];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}b.debug("After sanitization",e)}}),"sanitizeDirective"),Z=y((e=>{let t=0,n=0;for(const r of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";"{"===r?t++:"}"===r&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e}),"sanitizeCss"),J=Object.freeze(X),Q=L({},J),ee=[],te=L({},J),ne=y(((e,t)=>{let n=L({},e),r={};for(const e of t)ce(e),r=L(r,e);if(n=L(n,r),r.theme&&r.theme in q){const e=L({},c),t=L(e.themeVariables||{},r.themeVariables);n.theme&&n.theme in q&&(n.themeVariables=q[n.theme].getThemeVariables(t))}return ye(te=n),te}),"updateCurrentConfig"),re=y((e=>(Q=L({},J),Q=L(Q,e),e.theme&&q[e.theme]&&(Q.themeVariables=q[e.theme].getThemeVariables(e.themeVariables)),ne(Q,ee),Q)),"setSiteConfig"),ie=y((e=>{c=L({},e)}),"saveConfigFromInitialize"),ae=y((e=>(Q=L(Q,e),ne(Q,ee),Q)),"updateSiteConfig"),oe=y((()=>L({},Q)),"getSiteConfig"),se=y((e=>(ye(e),L(te,e),le())),"setConfig"),le=y((()=>L({},te)),"getConfig"),ce=y((e=>{e&&(["secure",...Q.secure??[]].forEach((t=>{Object.hasOwn(e,t)&&(b.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])})),Object.keys(e).forEach((t=>{t.startsWith("__")&&delete e[t]})),Object.keys(e).forEach((t=>{"string"==typeof e[t]&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],"object"==typeof e[t]&&ce(e[t])})))}),"sanitize"),ue=y((e=>{G(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),ee.push(e),ne(Q,ee)}),"addDirective"),pe=y(((e=Q)=>{ne(e,ee=[])}),"reset"),de={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},he={},fe=y((e=>{he[e]||(b.warn(de[e]),he[e]=!0)}),"issueWarning"),ye=y((e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&fe("LAZY_LOAD_DEPRECATED")}),"checkConfig"),ge=/<br\s*\/?>/gi,me=y((e=>e?Ce(e).replace(/\\n/g,"#br#").split("#br#"):[""]),"getRows"),be=(()=>{let e=!1;return()=>{e||(xe(),e=!0)}})();function xe(){const e="data-temp-href-target";h.A.addHook("beforeSanitizeAttributes",(t=>{t instanceof Element&&"A"===t.tagName&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")})),h.A.addHook("afterSanitizeAttributes",(t=>{t instanceof Element&&"A"===t.tagName&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),"_blank"===t.getAttribute("target")&&t.setAttribute("rel","noopener"))}))}y(xe,"setupDompurifyHooks");var Se=y((e=>(be(),h.A.sanitize(e))),"removeScript"),Te=y(((e,t)=>{if(!1!==t.flowchart?.htmlLabels){const n=t.securityLevel;"antiscript"===n||"strict"===n?e=Se(e):"loose"!==n&&(e=(e=(e=Ce(e)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),e=Ae(e))}return e}),"sanitizeMore"),ve=y(((e,t)=>e?e=t.dompurifyConfig?h.A.sanitize(Te(e,t),t.dompurifyConfig).toString():h.A.sanitize(Te(e,t),{FORBID_TAGS:["style"]}).toString():e),"sanitizeText"),ke=y(((e,t)=>"string"==typeof e?ve(e,t):e.flat().map((e=>ve(e,t)))),"sanitizeTextOrArray"),we=y((e=>ge.test(e)),"hasBreaks"),Ee=y((e=>e.split(ge)),"splitBreaks"),Ae=y((e=>e.replace(/#br#/g,"<br/>")),"placeholderToBreak"),Ce=y((e=>e.replace(ge,"#br#")),"breakToPlaceholder"),_e=y((e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t}),"getUrl"),Pe=y((e=>!1!==e&&!["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Oe=y((function(...e){const t=e.filter((e=>!isNaN(e)));return Math.max(...t)}),"getMax"),Le=y((function(...e){const t=e.filter((e=>!isNaN(e)));return Math.min(...t)}),"getMin"),Ie=y((function(e){const t=e.split(/(,)/),n=[];for(let e=0;e<t.length;e++){let r=t[e];if(","===r&&e>0&&e+1<t.length){const i=t[e-1],a=t[e+1];Me(i,a)&&(r=i+","+a,e++,n.pop())}n.push(Ne(r))}return n.join("")}),"parseGenericTypes"),De=y(((e,t)=>Math.max(0,e.split(t).length-1)),"countOccurrence"),Me=y(((e,t)=>{const n=De(e,"~"),r=De(t,"~");return 1===n&&1===r}),"shouldCombineSets"),Ne=y((e=>{const t=De(e,"~");let n=!1;if(t<=1)return e;t%2!=0&&e.startsWith("~")&&(e=e.substring(1),n=!0);const r=[...e];let i=r.indexOf("~"),a=r.lastIndexOf("~");for(;-1!==i&&-1!==a&&i!==a;)r[i]="<",r[a]=">",i=r.indexOf("~"),a=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")}),"processSet"),Fe=y((()=>void 0!==window.MathMLElement),"isMathMLSupported"),Be=/\$\$(.*)\$\$/g,Re=y((e=>(e.match(Be)?.length??0)>0),"hasKatex"),je=y((async(e,t)=>{e=await $e(e,t);const n=document.createElement("div");n.innerHTML=e,n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const r=document.querySelector("body");r?.insertAdjacentElement("beforeend",n);const i={width:n.clientWidth,height:n.clientHeight};return n.remove(),i}),"calculateMathMLDimensions"),$e=y((async(e,t)=>{if(!Re(e))return e;if(!(Fe()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Be,"MathML is unsupported in this environment.");{const{default:r}=await n.e(9263).then(n.bind(n,9263)),i=t.forceLegacyMathML||!Fe()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(ge).map((e=>Re(e)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>`:`<div>${e}</div>`)).join("").replace(Be,((e,t)=>r.renderToString(t,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,"")))}}),"renderKatex"),ze={getRows:me,sanitizeText:ve,sanitizeTextOrArray:ke,hasBreaks:we,splitBreaks:Ee,lineBreakRegex:ge,removeScript:Se,getUrl:_e,evaluate:Pe,getMax:Oe,getMin:Le},Ke=y((function(e,t){for(let n of t)e.attr(n[0],n[1])}),"d3Attrs"),Ue=y((function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r}),"calculateSvgSizeAttrs"),qe=y((function(e,t,n,r){const i=Ue(t,n,r);Ke(e,i)}),"configureSvgSize"),We=y((function(e,t,n,r){const i=t.node().getBBox(),a=i.width,o=i.height;b.info(`SVG bounds: ${a}x${o}`,i);let s=0,l=0;b.info(`Graph bounds: ${s}x${l}`,e),s=a+2*n,l=o+2*n,b.info(`Calculated bounds: ${s}x${l}`),qe(t,l,s,r);const c=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr("viewBox",c)}),"setupGraphViewbox"),Ye={},He=y(((e,t,n)=>{let r="";return e in Ye&&Ye[e]?r=Ye[e](n):b.warn(`No theme found for ${e}`),` & {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n fill: ${n.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${n.errorBkgColor};\n }\n & .error-text {\n fill: ${n.errorTextColor};\n stroke: ${n.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 1px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${n.lineColor};\n stroke: ${n.lineColor};\n }\n & .marker.cross {\n stroke: ${n.lineColor};\n }\n\n & svg {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${r}\n\n ${t}\n`}),"getStyles"),Ve=y(((e,t)=>{void 0!==t&&(Ye[e]=t)}),"addStylesForDiagram"),Xe=He,Ge={};g(Ge,{clear:()=>tt,getAccDescription:()=>at,getAccTitle:()=>rt,getDiagramTitle:()=>st,setAccDescription:()=>it,setAccTitle:()=>nt,setDiagramTitle:()=>ot});var Ze="",Je="",Qe="",et=y((e=>ve(e,le())),"sanitizeText"),tt=y((()=>{Ze="",Qe="",Je=""}),"clear"),nt=y((e=>{Ze=et(e).replace(/^\s+/g,"")}),"setAccTitle"),rt=y((()=>Ze),"getAccTitle"),it=y((e=>{Qe=et(e).replace(/\n\s+/g,"\n")}),"setAccDescription"),at=y((()=>Qe),"getAccDescription"),ot=y((e=>{Je=et(e)}),"setDiagramTitle"),st=y((()=>Je),"getDiagramTitle"),lt=b,ct=x,ut=le,pt=se,dt=J,ht=y((e=>ve(e,ut())),"sanitizeText"),ft=We,yt=y((()=>Ge),"getCommonDb"),gt={},mt=y(((e,t,n)=>{gt[e]&&lt.warn(`Diagram with id ${e} already registered. Overwriting.`),gt[e]=t,n&&_(e,n),Ve(e,t.styles),t.injectUtils?.(lt,ct,ut,ht,ft,yt(),(()=>{}))}),"registerDiagram"),bt=y((e=>{if(e in gt)return gt[e];throw new xt(e)}),"getDiagram"),xt=class extends Error{static{y(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}}},58126:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return function(t){return e(t)}}},58135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return $.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return F.default}});var i=n(80737),a=n(76977),o=n(86503),s=n(82985),l=n(73289);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(56461),u=n(95414),p=n(84534),d=n(12456);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=n(93806);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var f=n(16812),y=n(74780),g=n(99042),m=n(46248),b=n(33242),x=n(89456),S=n(943),T=n(11515),v=n(18445),k=n(64494),w=n(46691),E=n(73890),A=n(55527);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}));var C=n(79897);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var _=n(11350),P=n(95847),O=n(98999),L=n(93544),I=n(25002),D=n(17627),M=n(35349),N=n(10187),F=n(62485),B=n(49390);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))}));var R=n(41748),j=n(27937),$=n(66948),z=n(6944),K=n(55262),U=n(54538),q=n(48204),W=n(46676),Y=n(18271),H=n(26692),V=n(43998);Object.keys(V).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===V[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return V[e]}}))}));var X=n(72148),G=n(86293),Z=n(80947),J=n(57166),Q=n(53358),ee=n(34375),te=n(20266),ne=n(24919),re=n(44466),ie=n(33346),ae=n(93380),oe=n(88143),se=n(48778),le=n(42379),ce=n(55467),ue=n(78126),pe=n(21342),de=n(31782),he=n(88765),fe=n(90550),ye=n(60133);Object.keys(ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ye[e]}}))}));var ge=n(50231),me=n(55827);t.react={isReactComponent:i.default,isCompatTag:a.default,buildChildren:o.default},t.toSequenceExpression=me.default},60133:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&("ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t)))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBinary=function(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBlock=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockParent=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,r.default)(e,t))},t.isClass=function(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isCompletionStatement=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditional=function(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBody=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumMember=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpression=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpressionWrapper=function(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,r.default)(e,t))},t.isFlow=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowPredicate=function(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowType=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFor=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForXStatement=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunction=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionParent=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,r.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isImmutable=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportOrExportDeclaration=a,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,r.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSX=function(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,r.default)(e,t))},t.isLVal=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isLiteral=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isLoop=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isMethod=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMiscellaneous=function(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleDeclaration=function(e,t){return(0,i.default)("isModuleDeclaration","isImportOrExportDeclaration"),a(e,t)},t.isModuleExpression=function(e,t){return!!e&&"ModuleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleSpecifier=function(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,i.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectMember=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPattern=function(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPatternLike=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isPrivate=function(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,r.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,r.default)(e,t))},t.isProperty=function(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPureish=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,i.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestProperty=function(e,t){return(0,i.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isScopable=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,i.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isStandardized=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStatement=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBaseType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEntityName=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSEnumBody=function(e,t){return!!e&&"TSEnumBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTemplateLiteralType=function(e,t){return!!e&&"TSTemplateLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeElement=function(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTerminatorless=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeScript=function(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryLike=function(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUserWhitespacable=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,r.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isWhile=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,r.default)(e,t))};var r=n(86293),i=n(50231);function a(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)}},60347:(e,t,n)=>{"use strict";n.d(t,{W6:()=>Ze,GZ:()=>tt,WY:()=>Re,pC:()=>Ne,hE:()=>et,Gc:()=>Ie});var r=n(65323),i=n(58084);const a=(e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name),o=Object.freeze({left:0,top:0,width:16,height:16}),s=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),l=Object.freeze({...o,...s}),c=Object.freeze({...l,body:"",hidden:!1});function u(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(const r in c)r in s?r in e&&!(r in n)&&(n[r]=s[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function p(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let a={};function o(e){a=u(r[e]||i[e],a)}return o(t),n.forEach(o),u(e,a)}const d=Object.freeze({width:null,height:null}),h=Object.freeze({...d,...s}),f=/(-?[0-9.]*[0-9]+[0-9.]*)/g,y=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function g(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const r=e.split(f);if(null===r||!r.length)return e;const i=[];let a=r.shift(),o=y.test(a);for(;;){if(o){const e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),void 0===a)return i.join("");o=!o}}const m=/\sid="(\S+)"/g,b="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let x=0;var S=n(68452);var T={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function v(e){T=e}var k={exec:()=>null};function w(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(E.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var E={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+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},A=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,_=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,P=w(_).replace(/bull/g,C).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(),O=w(_).replace(/bull/g,C).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(),L=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,I=/(?!\s*\])(?:\\.|[^\[\]\\])+/,D=w(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",I).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),M=w(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),N="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",F=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,B=w("^ {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[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",F).replace("tag",N).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),R=w(L).replace("hr",A).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",N).getRegex(),j={blockquote:w(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",R).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:D,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:A,html:B,lheading:P,list:M,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:R,table:k,text:/^[^\n]+/},$=w("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\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",N).getRegex(),z={...j,lheading:O,table:$,paragraph:w(L).replace("hr",A).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",N).getRegex()},K={...j,html:w("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",F).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:k,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:w(L).replace("hr",A).replace("heading"," *#{1,6} *[^\n]").replace("lheading",P).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U=/^( {2,}|\\)\n(?!\s*$)/,q=/[\p{P}\p{S}]/u,W=/[\s\p{P}\p{S}]/u,Y=/[^\s\p{P}\p{S}]/u,H=w(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,W).getRegex(),V=/(?!~)[\p{P}\p{S}]/u,X=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,G=w(X,"u").replace(/punct/g,q).getRegex(),Z=w(X,"u").replace(/punct/g,V).getRegex(),J="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Q=w(J,"gu").replace(/notPunctSpace/g,Y).replace(/punctSpace/g,W).replace(/punct/g,q).getRegex(),ee=w(J,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,V).getRegex(),te=w("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Y).replace(/punctSpace/g,W).replace(/punct/g,q).getRegex(),ne=w(/\\(punct)/,"gu").replace(/punct/g,q).getRegex(),re=w(/^<(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(),ie=w(F).replace("(?:--\x3e|$)","--\x3e").getRegex(),ae=w("^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",ie).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),oe=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,se=w(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",oe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),le=w(/^!?\[(label)\]\[(ref)\]/).replace("label",oe).replace("ref",I).getRegex(),ce=w(/^!?\[(ref)\](?:\[\])?/).replace("ref",I).getRegex(),ue={_backpedal:k,anyPunctuation:ne,autolink:re,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:U,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:k,emStrongLDelim:G,emStrongRDelimAst:Q,emStrongRDelimUnd:te,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:se,nolink:ce,punctuation:H,reflink:le,reflinkSearch:w("reflink|nolink(?!\\()","g").replace("reflink",le).replace("nolink",ce).getRegex(),tag:ae,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:k},pe={...ue,link:w(/^!?\[(label)\]\((.*?)\)/).replace("label",oe).getRegex(),reflink:w(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",oe).getRegex()},de={...ue,emStrongRDelimAst:ee,emStrongLDelim:Z,url:w(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},he={...de,br:w(U).replace("{2,}","*").getRegex(),text:w(de.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},fe={normal:j,gfm:z,pedantic:K},ye={normal:ue,gfm:de,breaks:he,pedantic:pe},ge={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},me=e=>ge[e];function be(e,t){if(t){if(E.escapeTest.test(e))return e.replace(E.escapeReplace,me)}else if(E.escapeTestNoEncode.test(e))return e.replace(E.escapeReplaceNoEncode,me);return e}function xe(e){try{e=encodeURI(e).replace(E.percentDecode,"%")}catch{return null}return e}function Se(e,t){let n=e.replace(E.findPipe,((e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(E.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(E.slashPipe,"|");return n}function Te(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n){if(a===t||!n)break;i++}else i++}return e.slice(0,r-i)}function ve(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var ke=class{options;rules;lexer;constructor(e){this.options=e||T}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Te(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split("\n").map((e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e})).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Te(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Te(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Te(t[0],"\n").split("\n"),n="",r="",i=[];for(;e.length>0;){let t,a=!1,o=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))o.push(e[t]),a=!0;else{if(a)break;o.push(e[t])}e=e.slice(t);let s=o.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${s}`:s,r=r?`${r}\n${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===e.length)break;let u=i.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if("list"!==u?.type);else{let t=u,a=t.raw+"\n"+e.join("\n"),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],u=!l.trim(),p=0;if(this.options.pedantic?(p=2,s=l.trimStart()):u?p=t[1].length+1:(p=t[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,s=l.slice(p),p+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),i=this.rules.other.fencesBeginRegex(p),a=this.rules.other.headingBeginRegex(p),o=this.rules.other.htmlBeginRegex(p);for(;e;){let d,h=e.split("\n",1)[0];if(c=h,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),d=c):d=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||o.test(c)||t.test(c)||n.test(c))break;if(d.search(this.rules.other.nonSpaceChar)>=p||!c.trim())s+="\n"+d.slice(p);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;s+="\n"+c}!u&&!c.trim()&&(u=!0),r+=h+"\n",e=e.substring(h.length+1),l=d.slice(p)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let d,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(s),h&&(d="[ ] "!==h[0],s=s.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:r,task:!!h,checked:d,loose:!1,text:s,tokens:[]}),i.raw+=r}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 e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>this.rules.other.anyLine.test(e.raw)));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Se(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Se(e,a.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]}))));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Te(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ve(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ve(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,a=[...r[0]].length-1,o=a,s=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=l.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(i=[...n].length,r[3]||r[4]){o+=i;continue}if((r[5]||r[6])&&a%3&&!((a+i)%3)){s+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+s);let t=[...r[0]][0].length,l=e.slice(0,a+r.index+t+i);if(Math.min(a,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},we=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||T,this.options.tokenizer=this.options.tokenizer||new ke,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 t={other:E,block:fe.normal,inline:ye.normal};this.options.pedantic?(t.block=fe.pedantic,t.inline=ye.pedantic):this.options.gfm&&(t.block=fe.gfm,this.options.breaks?t.inline=ye.breaks:t.inline=ye.gfm),this.tokenizer.rules=t}static get rules(){return{block:fe,inline:ye}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(E.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(E.tabCharGlobal," ").replace(E.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach((e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))})),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&"paragraph"===a?.type?(a.raw+="\n"+r.raw,a.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length)}else if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,a="";for(;e;){let r;if(i||(a=""),i=!1,this.options.extensions?.inline?.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,a)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach((e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))})),n<1/0&&n>=0&&(o=e.substring(0,n+1))}if(r=this.tokenizer.inlineText(o)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(a=r.raw.slice(-1)),i=!0;let n=t.at(-1);"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},Ee=class{options;parser;constructor(e){this.options=e||T}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(E.notSpaceStart)?.[0],i=e.replace(E.endingNewline,"")+"\n";return r?'<pre><code class="language-'+be(r)+'">'+(n?i:be(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:be(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+be(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${be(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=xe(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+be(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=xe(e);if(null===i)return be(n);let a=`<img src="${e=i}" alt="${n}"`;return t&&(a+=` title="${be(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:be(e.text)}},Ae=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Ce=class e{options;renderer;textRenderer;constructor(e){this.options=e||T,this.options.renderer=this.options.renderer||new Ee,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ae}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}let a=i;switch(a.type){case"space":n+=this.renderer.space(a);continue;case"hr":n+=this.renderer.hr(a);continue;case"heading":n+=this.renderer.heading(a);continue;case"code":n+=this.renderer.code(a);continue;case"table":n+=this.renderer.table(a);continue;case"blockquote":n+=this.renderer.blockquote(a);continue;case"list":n+=this.renderer.list(a);continue;case"html":n+=this.renderer.html(a);continue;case"paragraph":n+=this.renderer.paragraph(a);continue;case"text":{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&"text"===e[r+1].type;)i=e[++r],o+="\n"+this.renderer.text(i);n+=t?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):o;continue}default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}let a=i;switch(a.type){case"escape":case"text":n+=t.text(a);break;case"html":n+=t.html(a);break;case"link":n+=t.link(a);break;case"image":n+=t.image(a);break;case"strong":n+=t.strong(a);break;case"em":n+=t.em(a);break;case"codespan":n+=t.codespan(a);break;case"br":n+=t.br(a);break;case"del":n+=t.del(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},_e=class{options;block;constructor(e){this.options=e||T}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?we.lex:we.lexInline}provideParser(){return this.block?Ce.parse:Ce.parseInline}},Pe=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ce;Renderer=Ee;TextRenderer=Ae;Lexer=we;Tokenizer=ke;Hooks=_e;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Ee(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ke(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new _e;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];_e.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then((e=>a.call(t,e)));let n=i.call(t,e);return a.call(t,n)}:t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return we.lex(e,t??this.defaults)}parser(e,t){return Ce.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?we.lex:we.lexInline,s=i.hooks?i.hooks.provideParser():e?Ce.parse:Ce.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then((e=>o(e,i))).then((e=>i.hooks?i.hooks.processAllTokens(e):e)).then((e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then((()=>e)):e)).then((e=>s(e,i))).then((e=>i.hooks?i.hooks.postprocess(e):e)).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=s(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+be(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Oe(e,t){return Pe.parse(e,t)}Oe.options=Oe.setOptions=function(e){return Pe.setOptions(e),Oe.defaults=Pe.defaults,v(Oe.defaults),Oe},Oe.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Oe.defaults=T,Oe.use=function(...e){return Pe.use(...e),Oe.defaults=Pe.defaults,v(Oe.defaults),Oe},Oe.walkTokens=function(e,t){return Pe.walkTokens(e,t)},Oe.parseInline=Pe.parseInline,Oe.Parser=Ce,Oe.parser=Ce.parse,Oe.Renderer=Ee,Oe.TextRenderer=Ae,Oe.Lexer=we,Oe.lexer=we.lex,Oe.Tokenizer=ke,Oe.Hooks=_e,Oe.parse=Oe,Oe.options,Oe.setOptions,Oe.use,Oe.walkTokens,Oe.parseInline,Ce.parse,we.lex;var Le=n(8968),Ie={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},De=new Map,Me=new Map,Ne=(0,i.K2)((e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.Rm.debug("Registering icon pack:",t.name),"loader"in t)Me.set(t.name,t.loader);else{if(!("icons"in t))throw i.Rm.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');De.set(t.name,t.icons)}}}),"registerIconPacks"),Fe=(0,i.K2)((async(e,t)=>{const n=((e,t,n,r="")=>{const i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const e=i.pop(),n=i.pop(),o={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!a(o)?null:o}const o=i[0],s=o.split("-");if(s.length>1){const e={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!a(e)?null:e}if(n&&""===r){const e={provider:r,prefix:"",name:o};return t&&!a(e,n)?null:e}return null})(e,!0,void 0!==t);if(!n)throw new Error(`Invalid icon name: ${e}`);const r=n.prefix||t;if(!r)throw new Error(`Icon name must contain a prefix: ${e}`);let o=De.get(r);if(!o){const e=Me.get(r);if(!e)throw new Error(`Icon set not found: ${n.prefix}`);try{o={...await e(),prefix:r},De.set(r,o)}catch(e){throw i.Rm.error(e),new Error(`Failed to load icon set: ${n.prefix}`)}}const s=function(e,t){if(e.icons[t])return p(e,t,[]);const n=function(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);return(t||Object.keys(n).concat(Object.keys(r))).forEach((function e(t){if(n[t])return i[t]=[];if(!(t in i)){i[t]=null;const n=r[t]&&r[t].parent,a=n&&e(n);a&&(i[t]=[n].concat(a))}return i[t]})),i}(e,[t])[t];return n?p(e,t,n):null}(o,n.name);if(!s)throw new Error(`Icon not found: ${e}`);return s}),"getRegisteredIconData"),Be=(0,i.K2)((async e=>{try{return await Fe(e),!0}catch{return!1}}),"isIconAvailable"),Re=(0,i.K2)((async(e,t,n)=>{let r;try{r=await Fe(e,t?.fallbackPrefix)}catch(e){i.Rm.error(e),r=Ie}const a=function(e,t){const n={...l,...e},r={...h,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,r].forEach((e=>{const t=[],n=e.hFlip,r=e.vFlip;let o,s=e.rotate;switch(n?r?s+=2:(t.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),t.push("scale(-1 1)"),i.top=i.left=0):r&&(t.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),t.push("scale(1 -1)"),i.top=i.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:o=i.height/2+i.top,t.unshift("rotate(90 "+o.toString()+" "+o.toString()+")");break;case 2:t.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:o=i.width/2+i.left,t.unshift("rotate(-90 "+o.toString()+" "+o.toString()+")")}s%2==1&&(i.left!==i.top&&(o=i.left,i.left=i.top,i.top=o),i.width!==i.height&&(o=i.width,i.width=i.height,i.height=o)),t.length&&(a=function(e,t){const n=function(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),a=e.indexOf("</"+t);if(-1===i||-1===a)break;const o=e.indexOf(">",a);if(-1===o)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}(e);return r=n.defs,i=t+n.content+"</g>",r?"<defs>"+r+"</defs>"+i:i;var r,i}(a,'<g transform="'+t.join(" ")+'">'))}));const o=r.width,s=r.height,c=i.width,u=i.height;let p,d;null===o?(d=null===s?"1em":"auto"===s?u:s,p=g(d,c/u)):(p="auto"===o?c:o,d=null===s?g(p,u/c):"auto"===s?u:s);const f={},y=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};y("width",p),y("height",d);const m=[i.left,i.top,c,u];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:a}}(r,t);return function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(function(e,t=b){const n=[];let r;for(;r=m.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const r="function"==typeof t?t(n):t+(x++).toString(),a=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")})),e=e.replace(new RegExp(i,"g"),"")}(a.body),{...a.attributes,...n})}),"getIconSVG");function je(e,{markdownAutoWrap:t}){const n=e.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"),r=(0,Le.T)(n);return!1===t?r.replace(/ /g,"&nbsp;"):r}function $e(e,t={}){const n=je(e,t),r=Oe.lexer(n),a=[[]];let o=0;function s(e,t="normal"){"text"===e.type?e.text.split("\n").forEach(((e,n)=>{0!==n&&(o++,a.push([])),e.split(" ").forEach((e=>{(e=e.replace(/&#39;/g,"'"))&&a[o].push({content:e,type:t})}))})):"strong"===e.type||"em"===e.type?e.tokens.forEach((t=>{s(t,e.type)})):"html"===e.type&&a[o].push({content:e.text,type:"normal"})}return(0,i.K2)(s,"processNode"),r.forEach((e=>{"paragraph"===e.type?e.tokens?.forEach((e=>{s(e)})):"html"===e.type&&a[o].push({content:e.text,type:"normal"})})),a}function ze(e,{markdownAutoWrap:t}={}){const n=Oe.lexer(e);function r(e){return"text"===e.type?!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):e.text.replace(/\n */g,"<br/>"):"strong"===e.type?`<strong>${e.tokens?.map(r).join("")}</strong>`:"em"===e.type?`<em>${e.tokens?.map(r).join("")}</em>`:"paragraph"===e.type?`<p>${e.tokens?.map(r).join("")}</p>`:"space"===e.type?"":"html"===e.type?`${e.text}`:"escape"===e.type?e.text:`Unsupported markdown: ${e.type}`}return(0,i.K2)(r,"output"),n.map(r).join("")}function Ke(e){return Intl.Segmenter?[...(new Intl.Segmenter).segment(e)].map((e=>e.segment)):[...e]}function Ue(e,t){return qe(e,[],Ke(t.content),t.type)}function qe(e,t,n,r){if(0===n.length)return[{content:t.join(""),type:r},{content:"",type:r}];const[i,...a]=n,o=[...t,i];return e([{content:o.join(""),type:r}])?qe(e,o,a,r):(0===t.length&&i&&(t.push(i),n.shift()),[{content:t.join(""),type:r},{content:n.join(""),type:r}])}function We(e,t){if(e.some((({content:e})=>e.includes("\n"))))throw new Error("splitLineToFitWidth does not support newlines in the line");return Ye(e,t)}function Ye(e,t,n=[],r=[]){if(0===e.length)return r.length>0&&n.push(r),n.length>0?n:[];let i="";" "===e[0].content&&(i=" ",e.shift());const a=e.shift()??{content:" ",type:"normal"},o=[...r];if(""!==i&&o.push({content:i,type:"normal"}),o.push(a),t(o))return Ye(e,t,n,o);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){const[r,i]=Ue(t,a);n.push([r]),i.content&&e.unshift(i)}return Ye(e,t,n)}function He(e,t){t&&e.attr("style",t)}async function Ve(e,t,n,r,a=!1){const o=e.append("foreignObject");o.attr("width",10*n+"px"),o.attr("height",10*n+"px");const s=o.append("xhtml:div");let l=t.label;t.label&&(0,i.Wi)(t.label)&&(l=await(0,i.VJ)(t.label.replace(i.Y2.lineBreakRegex,"\n"),(0,i.D7)()));const c=t.isNode?"nodeLabel":"edgeLabel",u=s.append("span");u.html(l),He(u,t.labelStyle),u.attr("class",`${c} ${r}`),He(s,t.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",n+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&s.attr("class","labelBkg");let p=s.node().getBoundingClientRect();return p.width===n&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",n+"px"),p=s.node().getBoundingClientRect()),o.node()}function Xe(e,t,n){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em")}function Ge(e,t,n){const r=e.append("text"),i=Xe(r,1,t);Qe(i,n);const a=i.node().getComputedTextLength();return r.remove(),a}function Ze(e,t,n){const r=e.append("text"),i=Xe(r,1,t);Qe(i,[{content:n,type:"normal"}]);const a=i.node()?.getBoundingClientRect();return a&&r.remove(),a}function Je(e,t,n,r=!1){const a=t.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),s=a.append("text").attr("y","-10.1");let l=0;for(const t of n){const n=(0,i.K2)((t=>Ge(a,1.1,t)<=e),"checkWidth"),r=n(t)?[t]:We(t,n);for(const e of r)Qe(Xe(s,l,1.1),e),l++}if(r){const e=s.node().getBBox(),t=2;return o.attr("x",e.x-t).attr("y",e.y-t).attr("width",e.width+2*t).attr("height",e.height+2*t),a.node()}return s.node()}function Qe(e,t){e.text(""),t.forEach(((t,n)=>{const r=e.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===n?r.text(t.content):r.text(" "+t.content)}))}async function et(e){const t=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,((e,n,r)=>(t.push((async()=>{const t=`${n}:${r}`;return await Be(t)?await Re(t,void 0,{class:"label-icon"}):`<i class='${(0,i.oB)(e).replace(":"," ")}'></i>`})()),e)));const n=await Promise.all(t);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(()=>n.shift()??""))}(0,i.K2)(je,"preprocessMarkdown"),(0,i.K2)($e,"markdownToLines"),(0,i.K2)(ze,"markdownToHTML"),(0,i.K2)(Ke,"splitTextToChars"),(0,i.K2)(Ue,"splitWordToFitWidth"),(0,i.K2)(qe,"splitWordToFitWidthRecursion"),(0,i.K2)(We,"splitLineToFitWidth"),(0,i.K2)(Ye,"splitLineToFitWidthRecursion"),(0,i.K2)(He,"applyStyle"),(0,i.K2)(Ve,"addHtmlSpan"),(0,i.K2)(Xe,"createTspan"),(0,i.K2)(Ge,"computeWidthOfText"),(0,i.K2)(Ze,"computeDimensionOfText"),(0,i.K2)(Je,"createFormattedText"),(0,i.K2)(Qe,"updateTextContentAndStyles"),(0,i.K2)(et,"replaceIconSubstring");var tt=(0,i.K2)((async(e,t="",{style:n="",isTitle:a=!1,classes:o="",useHtmlLabels:s=!0,isNode:l=!0,width:c=200,addSvgBackground:u=!1}={},p)=>{if(i.Rm.debug("XYZ createText",t,n,a,o,s,l,"addSvgBackground: ",u),s){const a=ze(t,p),s=await et((0,r.Sm)(a)),d=t.replace(/\\\\/g,"\\"),h={isNode:l,label:(0,i.Wi)(t)?d:s,labelStyle:n.replace("fill:","color:")};return await Ve(e,h,c,o,u)}{const r=Je(c,e,$e(t.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),p),!!t&&u);if(l){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));const e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,S.Ltv)(r).attr("style",e)}else{const e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,S.Ltv)(r).select("rect").attr("style",e.replace(/background:/g,"fill:"));const t=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,S.Ltv)(r).select("text").attr("style",t)}return r}}),"createText")},60798:(e,t,n)=>{"use strict";n.d(t,{L:()=>Se});var r=n(51662);function i(e){e.register(r.A),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}function a(e){e.register(i),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(e)}function o(e){e.register(a),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}function s(e){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=e.languages.bash[i[o]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(e)}function l(e){e.register(r.A),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",a="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(a),u=RegExp(l(i+" "+a+" "+o+" "+s)),p=l(a+" "+o+" "+s),d=l(i+" "+a+" "+s),h=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),f=r(/\((?:[^()]|<<self>>)*\)/.source,2),y=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[y,h]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,g]),b=/\[\s*(?:,\s*)*\]/.source,x=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,b]),S=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,f,b]),T=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[S]),v=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[T,m,b]),k={keyword:u,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[y,v]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[y]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:k},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:k},{pattern:n(/(\bwhere\s+)<<0>>/.source,[y]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[x]),lookbehind:!0,inside:k},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[v,d,y]),inside:k}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[y]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[y]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:k},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[v,m]),inside:k,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[v]),lookbehind:!0,inside:k,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[y,h]),inside:{function:n(/^<<0>>/.source,[y]),generic:{pattern:RegExp(h),alias:"class-name",inside:k}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,g,y,v,u.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,f]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(v),greedy:!0,inside:k},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var C=E+"|"+w,_=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[C]),P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),O=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,L=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,P]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[O,L]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[O]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[P]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var I=/:[^}\r\n]+/.source,D=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,I]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[C]),2),F=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,I]);function B(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,I]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:B(M,D)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[F]),lookbehind:!0,greedy:!0,inside:B(F,N)}],char:{pattern:RegExp(w),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}i.displayName="c",i.aliases=[],a.displayName="cpp",a.aliases=[],o.displayName="arduino",o.aliases=["ino"],s.displayName="bash",s.aliases=["sh","shell"],l.displayName="csharp",l.aliases=["cs","dotnet"];var c=n(87850);function u(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}function p(e){!function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(e)}function d(e){e.register(r.A),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}function h(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}function f(e){e.register(r.A),function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}function y(e){!function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",i=RegExp(r+"-"+r),a={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":a}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":a}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(e)}u.displayName="css",u.aliases=[],p.displayName="diff",p.aliases=[],d.displayName="go",d.aliases=[],h.displayName="ini",h.aliases=[],f.displayName="java",f.aliases=[],y.displayName="regex",y.aliases=[];var g=n(16585);function m(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}function b(e){e.register(r.A),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(e)}function x(e){e.register(u),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}function S(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}function T(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}function v(e){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+i+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}function k(e){e.register(c.A),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var i=t[n];if("code"===i.type){var a=i.content[1],o=i.content[3];if(a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content){var s=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());o.alias?"string"==typeof o.alias?o.alias=[o.alias,l]:o.alias.push(l):o.alias=[l]}}else e(i.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],o=/language-(.+)/.exec(a);if(o){n=o[1];break}}var s=e.languages[n];if(s)t.content=e.highlight(t.content.value,s,n);else if(n&&"none"!==n&&e.plugins.autoloader){var l="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=l,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(l);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}})),RegExp(e.languages.markup.tag.pattern.source,"gi"),String.fromCodePoint||String.fromCharCode,e.languages.md=e.languages.markdown}(e)}function w(e){e.register(i),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}function E(e){!function(e){var t=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,t+/\s*/.source+t].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}(e)}function A(e){e.register(c.A),function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,a){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"==typeof a&&!a(e))return e;for(var i,s=o.length;-1!==n.code.indexOf(i=t(r,s));)++s;return o[s]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,a=Object.keys(n.tokenStack);!function o(s){for(var l=0;l<s.length&&!(i>=a.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=a[i],p=n.tokenStack[u],d="string"==typeof c?c:c.content,h=t(r,u),f=d.indexOf(h);if(f>-1){++i;var y=d.substring(0,f),g=new e.Token(r,e.tokenize(p,n.grammar),"language-"+r,p),m=d.substring(f+h.length),b=[];y&&b.push.apply(b,o([y])),b.push(g),m&&b.push.apply(b,o([m])),"string"==typeof c?s.splice.apply(s,[l,1].concat(b)):c.content=b}}else c.content&&o(c.content)}return s}(n.tokens)}}}})}(e)}function C(e){e.register(A),function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(e)}function _(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}function P(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}function O(e){e.register(r.A),function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(e)}function L(e){!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(e)}function I(e){e.register(u),function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}function D(e){e.register(u),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}function M(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}function N(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach((function(t){t.inside.interpolation.inside=e.languages.swift}))}function F(e){e.register(g.A),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(e)}function B(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}function R(e){e.register(B),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}m.displayName="json",m.aliases=["webmanifest"],b.displayName="kotlin",b.aliases=["kt","kts"],x.displayName="less",x.aliases=[],S.displayName="lua",S.aliases=[],T.displayName="makefile",T.aliases=[],v.displayName="yaml",v.aliases=["yml"],k.displayName="markdown",k.aliases=["md"],w.displayName="objectivec",w.aliases=["objc"],E.displayName="perl",E.aliases=[],A.displayName="markup-templating",A.aliases=[],C.displayName="php",C.aliases=[],_.displayName="python",_.aliases=["py"],P.displayName="r",P.aliases=[],O.displayName="ruby",O.aliases=["rb"],L.displayName="rust",L.aliases=[],I.displayName="sass",I.aliases=[],D.displayName="scss",D.aliases=[],M.displayName="sql",M.aliases=[],N.displayName="swift",N.aliases=[],F.displayName="typescript",F.aliases=["ts"],B.displayName="basic",B.aliases=[],R.displayName="vbnet",R.aliases=[];var j=n(19835),$=n(61182),z=n(46738);const K=/[#.]/g;var U=n(10010),q=n(36469);const W=new Set(["menu","submit","reset","button"]),Y={}.hasOwnProperty;function H(e,t,n,r){const i=(0,$.I)(e,n);let a,o=-1;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;a=r}else a="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?(0,U.q)(r):i.commaSeparated?(0,q.q)(r):i.commaOrSpaceSeparated?(0,U.q)((0,q.q)(r).join(" ")):X(i,i.property,r):Array.isArray(r)?r.concat():"style"===i.property?function(e){const t=[];let n;for(n in e)Y.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(a)){const e=[];for(;++o<a.length;)e[o]=X(i,i.property,a[o]);a=e}"className"===i.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function V(e,t){let n=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)V(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?V(e,t.children):e.push(t)}}function X(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||(0,z.S)(n)===(0,z.S)(t)))return!0}return n}const G=(Q=j.qy,function(e,t,...n){let r,i=-1;if(null==e)r={type:"root",children:[]},n.unshift(t);else if(r=function(e){const t=e||"",n={};let r,i,a=0;for(;a<t.length;){K.lastIndex=a;const e=K.exec(t),o=t.slice(a,e?e.index:t.length);o&&(r?"#"===r?n.id=o:Array.isArray(n.className)?n.className.push(o):n.className=[o]:i=o,a+=o.length),e&&(r=e[0],a++)}return{type:"element",tagName:i||"div",properties:n,children:[]}}(e),r.tagName=r.tagName.toLowerCase(),a=t,o=r.tagName,null==a||"object"!=typeof a||Array.isArray(a)||"input"!==o&&a.type&&"string"==typeof a.type&&("children"in a&&Array.isArray(a.children)||("button"===o?!W.has(a.type.toLowerCase()):"value"in a)))n.unshift(t);else{let e;for(e in t)Y.call(t,e)&&H(Q,r.properties,e,t[e])}for(var a,o;++i<n.length;)V(r.children,n[i]);return"element"===r.type&&"template"===r.tagName&&(r.content={type:"root",children:r.children},r.children=[]),r}),Z=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],J={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Q;function ee(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function te(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function ne(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||ee(e)}var re=n(51157);const ie=String.fromCharCode,ae=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function oe(e,t={}){const n="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,r=[];let i,a,o=0,s=-1,l="";t.position&&("start"in t.position||"indent"in t.position?(a=t.position.indent,i=t.position.start):i=t.position);let c,u=(i?i.line:0)||1,p=(i?i.column:0)||1,d=f();for(o--;++o<=e.length;)if(10===c&&(p=(a?a[s]:0)||1),c=e.charCodeAt(o),38===c){const i=e.charCodeAt(o+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||n&&i===n){l+=ie(c),p++;continue}const a=o+1;let s,u=a,m=a;if(35===i){m=++u;const t=e.charCodeAt(m);88===t||120===t?(s="hexadecimal",m=++u):s="decimal"}else s="named";let b="",x="",S="";const T="named"===s?ne:"decimal"===s?ee:te;for(m--;++m<=e.length;){const t=e.charCodeAt(m);if(!T(t))break;S+=ie(t),"named"===s&&Z.includes(S)&&(b=S,x=(0,re.s)(S))}let v=59===e.charCodeAt(m);if(v){m++;const e="named"===s&&(0,re.s)(S);e&&(b=S,x=e)}let k=1+m-a,w="";if(v||!1!==t.nonTerminated)if(S)if("named"===s){if(v&&!x)y(5,1);else if(b!==S&&(m=u+b.length,k=1+m-u,v=!1),!v){const n=b?1:3;if(t.attribute){const t=e.charCodeAt(m);61===t?(y(n,k),x=""):ne(t)?x="":y(n,k)}else y(n,k)}w=x}else{v||y(2,k);let e=Number.parseInt(S,"hexadecimal"===s?16:10);if((h=e)>=55296&&h<=57343||h>1114111)y(7,k),w=ie(65533);else if(e in J)y(6,k),w=J[e];else{let t="";se(e)&&y(6,k),e>65535&&(e-=65536,t+=ie(e>>>10|55296),e=56320|1023&e),w=t+ie(e)}}else"named"!==s&&y(4,k);if(w){g(),d=f(),o=m-1,p+=m-a+1,r.push(w);const n=f();n.offset++,t.reference&&t.reference.call(t.referenceContext,w,{start:d,end:n},e.slice(a-1,m)),d=n}else S=e.slice(a-1,m),l+=S,p+=S.length,o=m-1}else 10===c&&(u++,s++,p=0),Number.isNaN(c)?g():(l+=ie(c),p++);var h;return r.join("");function f(){return{line:u,column:p,offset:o+((i?i.offset:0)||0)}}function y(e,n){let r;t.warning&&(r=f(),r.column+=n,r.offset+=n,t.warning.call(t.warningContext,ae[e],r,e))}function g(){l&&(r.push(l),t.text&&t.text.call(t.textContext,l,{start:d,end:f()}),l="")}}function se(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}var le=0,ce={},ue={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++le}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},ue.util.type(t)){case"Object":if(i=ue.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=ue.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}}},languages:{plain:ce,plaintext:ce,text:ce,txt:ce,extend:function(e,t){var n=ue.util.clone(ue.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||ue.languages)[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var l=r[e];return r[e]=a,ue.languages.DFS(ue.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=ue.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],l=ue.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,o,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(ue.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=ue.tokenize(r.code,r.grammar),ue.hooks.run("after-tokenize",r),pe.stringify(ue.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new fe;return ye(i,i.head,e),he(e,i,t,i.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=ue.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=ue.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:pe};function pe(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function de(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function he(e,t,n,r,i,a){for(var o in n)if(n.hasOwnProperty(o)&&n[o]){var s=n[o];s=Array.isArray(s)?s:[s];for(var l=0;l<s.length;++l){if(a&&a.cause==o+","+l)return;var c=s[l],u=c.inside,p=!!c.lookbehind,d=!!c.greedy,h=c.alias;if(d&&!c.pattern.global){var f=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,f+"g")}for(var y=c.pattern||c,g=r.next,m=i;g!==t.tail&&!(a&&m>=a.reach);m+=g.value.length,g=g.next){var b=g.value;if(t.length>e.length)return;if(!(b instanceof pe)){var x,S=1;if(d){if(!(x=de(y,m,e,p))||x.index>=e.length)break;var T=x.index,v=x.index+x[0].length,k=m;for(k+=g.value.length;T>=k;)k+=(g=g.next).value.length;if(m=k-=g.value.length,g.value instanceof pe)continue;for(var w=g;w!==t.tail&&(k<v||"string"==typeof w.value);w=w.next)S++,k+=w.value.length;S--,b=e.slice(m,k),x.index-=m}else if(!(x=de(y,0,b,p)))continue;T=x.index;var E=x[0],A=b.slice(0,T),C=b.slice(T+E.length),_=m+b.length;a&&_>a.reach&&(a.reach=_);var P=g.prev;if(A&&(P=ye(t,P,A),m+=A.length),ge(t,P,S),g=ye(t,P,new pe(o,u?ue.tokenize(E,u):E,h,E)),C&&ye(t,g,C),S>1){var O={cause:o+","+l,reach:_};he(e,t,n,g.prev,m,O),a&&O.reach>a.reach&&(a.reach=O.reach)}}}}}}function fe(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function ye(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function ge(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}const me=ue,be={}.hasOwnProperty;function xe(){}xe.prototype=me;const Se=new xe;Se.highlight=function(e,t){if("string"!=typeof e)throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&"object"==typeof t)n=t;else{if(r=t,"string"!=typeof r)throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(!be.call(Se.languages,r))throw new Error("Unknown language: `"+r+"` is not registered");n=Se.languages[r]}return{type:"root",children:me.highlight.call(Se,e,n,r)}},Se.register=function(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");be.call(Se.languages,e.displayName)||e(Se)},Se.alias=function(e,t){const n=Se.languages;let r,i={};for(r in"string"==typeof e?t&&(i[e]=t):i=e,i)if(be.call(i,r)){const e=i[r],t="string"==typeof e?[e]:e;let a=-1;for(;++a<t.length;)n[t[a]]=n[r]}},Se.registered=function(e){if("string"!=typeof e)throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return be.call(Se.languages,e)},Se.listLanguages=function(){const e=Se.languages,t=[];let n;for(n in e)be.call(e,n)&&"object"==typeof e[n]&&t.push(n);return t},Se.util.encode=function(e){return e},Se.Token.stringify=function e(t,n){if("string"==typeof t)return{type:"text",value:t};if(Array.isArray(t)){const r=[];let i=-1;for(;++i<t.length;)""!==t[i]&&null!==t[i]&&void 0!==t[i]&&r.push(e(t[i],n));return r}const r={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n};return t.alias&&r.classes.push(..."string"==typeof t.alias?[t.alias]:t.alias),Se.hooks.run("wrap",r),G(r.tag+"."+r.classes.join("."),function(e){let t;for(t in e)be.call(e,t)&&(e[t]=oe(e[t]));return e}(r.attributes),r.content)},Se.register(r.A),Se.register(i),Se.register(a),Se.register(o),Se.register(s),Se.register(l),Se.register(c.A),Se.register(u),Se.register(p),Se.register(d),Se.register(h),Se.register(f),Se.register(y),Se.register(g.A),Se.register(m),Se.register(b),Se.register(x),Se.register(S),Se.register(T),Se.register(v),Se.register(k),Se.register(w),Se.register(E),Se.register(A),Se.register(C),Se.register(_),Se.register(P),Se.register(O),Se.register(L),Se.register(I),Se.register(D),Se.register(M),Se.register(N),Se.register(F),Se.register(B),Se.register(R)},61182:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(46738),i=n(35772),a=n(22092);const o=/^data[-\w.:]+$/i,s=/-[a-z]/g,l=/[A-Z]/g;function c(e,t){const n=(0,r.S)(t);let c=t,d=a.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&o.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(s,p);c="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!s.test(e)){let n=e.replace(l,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}d=i.E}return new d(c,t)}function u(e){return"-"+e.toLowerCase()}function p(e){return e.charAt(1).toUpperCase()}},61444:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(74720),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");function o(e,t){var n,o,s,l=i.lastIndex=a.lastIndex=0,c=-1,u=[],p=[];for(e+="",t+="";(n=i.exec(e))&&(o=a.exec(t));)(s=o.index)>l&&(s=t.slice(l,s),u[c]?u[c]+=s:u[++c]=s),(n=n[0])===(o=o[0])?u[c]?u[c]+=o:u[++c]=o:(u[++c]=null,p.push({i:c,x:(0,r.A)(n,o)})),l=a.lastIndex;return l<t.length&&(s=t.slice(l),u[c]?u[c]+=s:u[++c]=s),u.length<2?p[0]?function(e){return function(t){return e(t)+""}}(p[0].x):function(e){return function(){return e}}(t):(t=p.length,function(e){for(var n,r=0;r<t;++r)u[(n=p[r]).i]=n.x(e);return u.join("")})}},61758:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(50123);const i=function(){try{var e=(0,r.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},62209:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(45718),i=n(63545),a=n(11028),o=n(36135);const s=(e,t,n=0,s=1)=>{if("number"!=typeof e)return(0,o.A)(e,{a:t});const l=i.A.set({r:r.A.channel.clamp.r(e),g:r.A.channel.clamp.g(t),b:r.A.channel.clamp.b(n),a:r.A.channel.clamp.a(s)});return a.A.stringify(l)}},62474:(e,t,n)=>{"use strict";function r(e){return function(){return this.matches(e)}}function i(e){return function(t){return t.matches(e)}}n.d(t,{A:()=>r,j:()=>i})},62485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(78126),i=n(93806);t.default=function e(t){if(void 0===t)return(0,i.identifier)("undefined");if(!0===t||!1===t)return(0,i.booleanLiteral)(t);if(null===t)return(0,i.nullLiteral)();if("string"==typeof t)return(0,i.stringLiteral)(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=(0,i.numericLiteral)(Math.abs(t));else{let n;n=Number.isNaN(t)?(0,i.numericLiteral)(0):(0,i.numericLiteral)(1),e=(0,i.binaryExpression)("/",n,(0,i.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,i.unaryExpression)("-",e)),e}if("bigint"==typeof t)return t<0?(0,i.unaryExpression)("-",(0,i.bigIntLiteral)((-t).toString())):(0,i.bigIntLiteral)(t.toString());if(function(e){return"[object RegExp]"===a(e)}(t)){const e=t.source,n=/\/([a-z]*)$/.exec(t.toString())[1];return(0,i.regExpLiteral)(e,n)}if(Array.isArray(t))return(0,i.arrayExpression)(t.map(e));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(t)){const n=[];for(const a of Object.keys(t)){let o,s=!1;(0,r.default)(a)?"__proto__"===a?(s=!0,o=(0,i.stringLiteral)(a)):o=(0,i.identifier)(a):o=(0,i.stringLiteral)(a),n.push((0,i.objectProperty)(o,e(t[a]),s))}return(0,i.objectExpression)(n)}throw new Error("don't know how to turn this value into a node")};const a=Function.call.bind(Object.prototype.toString)},63545:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(45718),i=n(64607);const a=class{constructor(){this.type=i.Z.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=i.Z.ALL}is(e){return this.type===e}},o=new class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new a}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=i.Z.ALL,this}_ensureHSL(){const e=this.data,{h:t,s:n,l:i}=e;void 0===t&&(e.h=r.A.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=r.A.channel.rgb2hsl(e,"s")),void 0===i&&(e.l=r.A.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:t,g:n,b:i}=e;void 0===t&&(e.r=r.A.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=r.A.channel.hsl2rgb(e,"g")),void 0===i&&(e.b=r.A.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,t=e.r;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"r")):t}get g(){const e=this.data,t=e.g;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"g")):t}get b(){const e=this.data,t=e.b;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"b")):t}get h(){const e=this.data,t=e.h;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"h")):t}get s(){const e=this.data,t=e.s;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"s")):t}get l(){const e=this.data,t=e.l;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}({r:0,g:0,b:0,a:0},"transparent")},63869:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(16585),i=n(87850);function a(e){e.register(r.A),e.register(i.A),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=a(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var l=o(i);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(l+=o(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=o(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&s(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(e)}a.displayName="jsx",a.aliases=[]},64494:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,t),(0,i.default)(e,t),(0,a.default)(e,t),e};var r=n(46691),i=n(18445),a=n(11515)},64607:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i,Z:()=>a});var r=n(45718);const i={};for(let e=0;e<=255;e++)i[e]=r.A.unit.dec2hex(e);const a={ALL:0,RGB:1,HSL:2}},65183:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allExpandedTypes=t.VISITOR_KEYS=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0,t.arrayOf=f,t.arrayOfType=y,t.assertEach=g,t.assertNodeOrValueType=function(...e){function t(t,n,a){const o=d(a);for(const s of e)if(o===s||(0,r.default)(s,a))return void(0,i.validateChild)(t,n,a);throw new TypeError(`Property ${n} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==a?void 0:a.type)}`)}return t.oneOfNodeOrValueTypes=e,t},t.assertNodeType=b,t.assertOneOf=function(...e){function t(t,n,r){if(!e.includes(r))throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(r)}`)}return t.oneOf=e,t},t.assertOptionalChainStart=function(){return function(e){var t;let n=e;for(;e;){const{type:e}=n;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(n.optional)return;n=n.object}else{if(n.optional)return;n=n.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=n)?void 0:t.type}`)}},t.assertShape=function(e){const t=Object.keys(e);function n(n,r,a){const o=[];for(const r of t)try{(0,i.validateField)(n,r,a[r],e[r])}catch(e){if(e instanceof TypeError){o.push(e.message);continue}throw e}if(o.length)throw new TypeError(`Property ${r} of ${n.type} expected to have the following:\n${o.join("\n")}`)}return n.shapeOf=e,n},t.assertValueType=x,t.chain=S,t.default=w,t.defineAliasedType=function(...e){return(t,n={})=>{let r=n.aliases;var i;r||(n.inherits&&(r=null==(i=k[n.inherits].aliases)?void 0:i.slice()),null!=r||(r=[]),n.aliases=r);const a=e.filter((e=>!r.includes(e)));r.unshift(...a),w(t,n)}},t.validate=h,t.validateArrayOfType=function(...e){return h(y(...e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(...e){return{validate:b(...e),optional:!0}},t.validateType=function(...e){return h(b(...e))};var r=n(80947),i=n(88765);const a=t.VISITOR_KEYS={},o=t.ALIAS_KEYS={},s=t.FLIPPED_ALIAS_KEYS={},l=t.NODE_FIELDS={},c=t.BUILDER_KEYS={},u=t.DEPRECATED_KEYS={},p=t.NODE_PARENT_VALIDATIONS={};function d(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function h(e){return{validate:e}}function f(e){return S(x("array"),g(e))}function y(...e){return f(b(...e))}function g(e){function t(t,n,r){if(!Array.isArray(r))return;let i=0;const a={toString:()=>`${n}[${i}]`};for(;i<r.length;i++){const n=r[i];e(t,a,n)}}return t.each=e,t}const m=t.allExpandedTypes=[];function b(...e){const t=new Set;function n(n,a,o){const s=null==o?void 0:o.type;if(null!=s){if(t.has(s))return void(0,i.validateChild)(n,a,o);if("Placeholder"===s)for(const t of e)if((0,r.default)(t,o))return void(0,i.validateChild)(n,a,o)}throw new TypeError(`Property ${a} of ${n.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s)}`)}return m.push({types:e,set:t}),n.oneOfNodeTypes=e,n}function x(e){function t(t,n,r){if(d(r)!==e)throw new TypeError(`Property ${n} expected type of ${e} but got ${d(r)}`)}return t.type=e,t}function S(...e){function t(...t){for(const n of e)n(...t)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&"array"===e[0].type&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}const T=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),v=new Set(["default","optional","deprecated","validate"]),k={};function w(e,t={}){const n=t.inherits&&k[t.inherits]||{};let r=t.fields;if(!r&&(r={},n.fields)){const e=Object.getOwnPropertyNames(n.fields);for(const t of e){const e=n.fields[t],i=e.default;if(Array.isArray(i)?i.length>0:i&&"object"==typeof i)throw new Error("field defaults can only be primitives or empty arrays currently");r[t]={default:Array.isArray(i)?[]:i,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const i=t.visitor||n.visitor||[],h=t.aliases||n.aliases||[],f=t.builder||n.builder||t.visitor||[];for(const n of Object.keys(t))if(!T.has(n))throw new Error(`Unknown type option "${n}" on ${e}`);t.deprecatedAlias&&(u[t.deprecatedAlias]=e);for(const e of i.concat(f))r[e]=r[e]||{};for(const t of Object.keys(r)){const n=r[t];void 0===n.default||f.includes(t)||(n.optional=!0),void 0===n.default?n.default=null:n.validate||null==n.default||(n.validate=x(d(n.default)));for(const r of Object.keys(n))if(!v.has(r))throw new Error(`Unknown field key "${r}" on ${e}.${t}`)}a[e]=t.visitor=i,c[e]=t.builder=f,l[e]=t.fields=r,o[e]=t.aliases=h,h.forEach((t=>{s[t]=s[t]||[],s[t].push(e)})),t.validate&&(p[e]=t.validate),k[e]=t}},65246:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(88724);const i=function(e,t){var n=t?(0,r.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},65323:(e,t,n)=>{"use strict";n.d(t,{$C:()=>C,$t:()=>U,C4:()=>W,I5:()=>K,Ib:()=>y,KL:()=>V,Sm:()=>Y,Un:()=>N,_K:()=>q,bH:()=>I,dq:()=>$,pe:()=>l,rY:()=>H,ru:()=>M,sM:()=>E,vU:()=>h,yT:()=>P});var r=n(58084),i=n(8041),a=n(68452),o=n(39645),s=n(22937),l="​",c={curveBasis:a.qrM,curveBasisClosed:a.Yu4,curveBasisOpen:a.IA3,curveBumpX:a.Wi0,curveBumpY:a.PGM,curveBundle:a.OEq,curveCardinalClosed:a.olC,curveCardinalOpen:a.IrU,curveCardinal:a.y8u,curveCatmullRomClosed:a.Q7f,curveCatmullRomOpen:a.cVp,curveCatmullRom:a.oDi,curveLinear:a.lUB,curveLinearClosed:a.Lx9,curveMonotoneX:a.nVG,curveMonotoneY:a.uxU,curveNatural:a.Xf2,curveStep:a.GZz,curveStepAfter:a.UPb,curveStepBefore:a.dyv},u=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,p=(0,r.K2)((function(e,t){const n=d(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(n)){const e=n.map((e=>e.args));(0,r.$i)(e),i=(0,r.hH)(i,[...e])}else i=n.args;if(!i)return;let a=(0,r.Ch)(e,t);const o="config";return void 0!==i[o]&&("flowchart-v2"===a&&(a="flowchart"),i[a]=i[o],delete i[o]),i}),"detectInit"),d=(0,r.K2)((function(e,t=null){try{const n=new RegExp(`[%]{2}(?![{]${u.source})(?=[}][%]{2}).*\n`,"ig");let i;e=e.trim().replace(n,"").replace(/'/gm,'"'),r.Rm.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);const a=[];for(;null!==(i=r.DB.exec(e));)if(i.index===r.DB.lastIndex&&r.DB.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){const e=i[1]?i[1]:i[2],t=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;a.push({type:e,args:t})}return 0===a.length?{type:e,args:null}:1===a.length?a[0]:a}catch(n){return r.Rm.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}}),"detectDirective"),h=(0,r.K2)((function(e){return e.replace(r.DB,"")}),"removeDirectives"),f=(0,r.K2)((function(e,t){for(const[n,r]of t.entries())if(r.match(e))return n;return-1}),"isSubstringInArray");function y(e,t){if(!e)return t;const n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return c[n]??t}function g(e,t){const n=e.trim();if(n)return"loose"!==t.securityLevel?(0,i.J)(n):n}(0,r.K2)(y,"interpolateToCurve"),(0,r.K2)(g,"formatUrl");var m=(0,r.K2)(((e,...t)=>{const n=e.split("."),i=n.length-1,a=n[i];let o=window;for(let t=0;t<i;t++)if(o=o[n[t]],!o)return void r.Rm.error(`Function name: ${e} not found in window`);o[a](...t)}),"runFunc");function b(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function x(e){let t,n=0;return e.forEach((e=>{n+=b(e,t),t=e})),v(e,n/2)}function S(e){return 1===e.length?e[0]:x(e)}(0,r.K2)(b,"distance"),(0,r.K2)(x,"traverseEdge"),(0,r.K2)(S,"calcLabelPosition");var T=(0,r.K2)(((e,t=2)=>{const n=Math.pow(10,t);return Math.round(e*n)/n}),"roundNumber"),v=(0,r.K2)(((e,t)=>{let n,r=t;for(const t of e){if(n){const e=b(t,n);if(0===e)return n;if(e<r)r-=e;else{const i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:T((1-i)*n.x+i*t.x,5),y:T((1-i)*n.y+i*t.y,5)}}}n=t}throw new Error("Could not find a suitable point for the given distance")}),"calculatePoint"),k=(0,r.K2)(((e,t,n)=>{r.Rm.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());const i=v(t,25),a=e?10:5,o=Math.atan2(t[0].y-i.y,t[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(t[0].x+i.x)/2,s.y=-Math.cos(o)*a+(t[0].y+i.y)/2,s}),"calcCardinalityPosition");function w(e,t,n){const i=structuredClone(n);r.Rm.info("our points",i),"start_left"!==t&&"start_right"!==t&&i.reverse();const a=v(i,25+e),o=10+.5*e,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return"start_left"===t?(l.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):"end_right"===t?(l.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):"end_left"===t?(l.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(l.x=Math.sin(s)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2),l}function E(e){let t="",n="";for(const r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}(0,r.K2)(w,"calcTerminalLabelPosition"),(0,r.K2)(E,"getStylesFromArray");var A=0,C=(0,r.K2)((()=>(A++,"id-"+Math.random().toString(36).substr(2,12)+"-"+A)),"generateId");function _(e){let t="";for(let n=0;n<e;n++)t+="0123456789abcdef".charAt(Math.floor(16*Math.random()));return t}(0,r.K2)(_,"makeRandomHex");var P=(0,r.K2)((e=>_(e.length)),"random"),O=(0,r.K2)((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"),L=(0,r.K2)((function(e,t){const n=t.text.replace(r.Y2.lineBreakRegex," "),[,i]=K(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",i),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),void 0!==t.class&&a.attr("class",t.class);const o=a.append("tspan");return o.attr("x",t.x+2*t.textMargin),o.attr("fill",t.fill),o.text(n),a}),"drawSimpleText"),I=(0,o.A)(((e,t,n)=>{if(!e)return e;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),r.Y2.lineBreakRegex.test(e))return e;const i=e.split(" ").filter(Boolean),a=[];let o="";return i.forEach(((e,r)=>{const s=N(`${e} `,n),l=N(o,n);if(s>t){const{hyphenatedStrings:r,remainingWord:i}=D(e,t,"-",n);a.push(o,...r),o=i}else l+s>=t?(a.push(o),o=e):o=[o,e].filter(Boolean).join(" ");r+1===i.length&&a.push(o)})),a.filter((e=>""!==e)).join(n.joinWith)}),((e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`)),D=(0,o.A)(((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const i=[...e],a=[];let o="";return i.forEach(((e,s)=>{const l=`${o}${e}`;if(N(l,r)>=t){const e=s+1,t=i.length===e,r=`${l}${n}`;a.push(t?l:r),o=""}else o=l})),{hyphenatedStrings:a,remainingWord:o}}),((e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`));function M(e,t){return B(e,t).height}function N(e,t){return B(e,t).width}(0,r.K2)(M,"calculateTextHeight"),(0,r.K2)(N,"calculateTextWidth");var F,B=(0,o.A)(((e,t)=>{const{fontSize:n=12,fontFamily:i="Arial",fontWeight:o=400}=t;if(!e)return{width:0,height:0};const[,s]=K(n),c=["sans-serif",i],u=e.split(r.Y2.lineBreakRegex),p=[],d=(0,a.Ltv)("body");if(!d.remove)return{width:0,height:0,lineHeight:0};const h=d.append("svg");for(const e of c){let t=0;const n={width:0,height:0,lineHeight:0};for(const r of u){const i=O();i.text=r||l;const a=L(h,i).style("font-size",s).style("font-weight",o).style("font-family",e),c=(a._groups||a)[0][0].getBBox();if(0===c.width&&0===c.height)throw new Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,c.width)),t=Math.round(c.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}p.push(n)}return h.remove(),p[isNaN(p[1].height)||isNaN(p[1].width)||isNaN(p[1].lineHeight)||p[0].height>p[1].height&&p[0].width>p[1].width&&p[0].lineHeight>p[1].lineHeight?0:1]}),((e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`)),R=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{(0,r.K2)(this,"InitIDGenerator")}},j=(0,r.K2)((function(e){return F=F||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),F.innerHTML=e,unescape(F.textContent)}),"entityDecode");function $(e){return"str"in e}(0,r.K2)($,"isDetailedError");var z=(0,r.K2)(((e,t,n,r)=>{if(!r)return;const i=e.node()?.getBBox();i&&e.append("text").text(r).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)}),"insertTitle"),K=(0,r.K2)((e=>{if("number"==typeof e)return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]}),"parseFontSize");function U(e,t){return(0,s.A)({},e,t)}(0,r.K2)(U,"cleanAndMerge");var q={assignWithDepth:r.hH,wrapLabel:I,calculateTextHeight:M,calculateTextWidth:N,calculateTextDimensions:B,cleanAndMerge:U,detectInit:p,detectDirective:d,isSubstringInArray:f,interpolateToCurve:y,calcLabelPosition:S,calcCardinalityPosition:k,calcTerminalLabelPosition:w,formatUrl:g,getStylesFromArray:E,generateId:C,random:P,runFunc:m,entityDecode:j,insertTitle:z,parseFontSize:K,InitIDGenerator:R},W=(0,r.K2)((function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)})),t=t.replace(/classDef.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)})),t=t.replace(/#\w+;/g,(function(e){const t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl°°"+t+"¶ß":"fl°"+t+"¶ß"})),t}),"encodeEntities"),Y=(0,r.K2)((function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")}),"decodeEntities"),H=(0,r.K2)(((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:""}${e}_${t}_${n}${i?`_${i}`:""}`),"getEdgeId");function V(e){return e??null}(0,r.K2)(V,"handleUndefinedAttr")},65399:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(69538);function i(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.A.hasOwnProperty(t)?{space:r.A[t],local:e}:e}},66197:(e,t,n)=>{"use strict";n.d(t,{dc:()=>l,VG:()=>u});const r=function(e){if(null==e)return a;if("function"==typeof e)return i(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i((function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}))}(e):function(e){const t=e;return i((function(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}))}(e);if("string"==typeof e)return t=e,i((function(e){return e&&e.type===t}));var t;throw new Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function a(){return!0}const o=[],s=!0,l=!1,c="skip";function u(e,t,n,i){let a;"function"==typeof t&&"function"!=typeof n?(i=n,n=t):a=t;const u=r(a),p=i?-1:1;!function e(r,a,d){const h=r&&"object"==typeof r?r:{};if("string"==typeof h.type){const e="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0;Object.defineProperty(f,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return f;function f(){let h,f,y,g=o;if((!t||u(r,a,d[d.length-1]||void 0))&&(g=function(e){return Array.isArray(e)?e:"number"==typeof e?[s,e]:null==e?o:[e]}(n(r,d)),g[0]===l))return g;if("children"in r&&r.children){const t=r;if(t.children&&g[0]!==c)for(f=(i?t.children.length:-1)+p,y=d.concat(t);f>-1&&f<t.children.length;){const n=t.children[f];if(h=e(n,f,y)(),h[0]===l)return h;f="number"==typeof h[1]?h[1]:f+p}}return g}}(e,void 0,[])()}},66948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,r.memberExpression)(t,e.object),e};var r=n(93806),i=n(58135)},67244:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){return function(n){return e(t(n))}}},67367:(e,t,n)=>{"use strict";n.d(t,{A:()=>Wt});var r=n(32553),i=n(21535),a=(n(54386),n(27057),n(84857),n(12880),n(97996),n(60347)),o=n(65323),s=n(25095),l=n(5162),c=n(58084),u=n(8968),p=n(68452),d="comm",h="rule",f="decl",y=Math.abs,g=String.fromCharCode;function m(e){return e.trim()}function b(e,t,n){return e.replace(t,n)}function x(e,t,n){return e.indexOf(t,n)}function S(e,t){return 0|e.charCodeAt(t)}function T(e,t,n){return e.slice(t,n)}function v(e){return e.length}function k(e,t){return t.push(e),e}function w(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function E(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case f:return e.return=e.return||e.value;case d:return"";case"@keyframes":return e.return=e.value+"{"+w(e.children,r)+"}";case h:if(!v(e.value=e.props.join(",")))return""}return v(n=w(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var A=1,C=1,_=0,P=0,O=0,L="";function I(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:A,column:C,length:o,return:"",siblings:s}}function D(){return O=P>0?S(L,--P):0,C--,10===O&&(C=1,A--),O}function M(){return O=P<_?S(L,P++):0,C++,10===O&&(C=1,A++),O}function N(){return S(L,P)}function F(){return P}function B(e,t){return T(L,e,t)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function j(e){return m(B(P-1,K(91===e?e+2:40===e?e+1:e)))}function $(e){for(;(O=N())&&O<33;)M();return R(e)>2||R(O)>3?"":" "}function z(e,t){for(;--t&&M()&&!(O<48||O>102||O>57&&O<65||O>70&&O<97););return B(e,F()+(t<6&&32==N()&&32==M()))}function K(e){for(;M();)switch(O){case e:return P;case 34:case 39:34!==e&&39!==e&&K(O);break;case 40:41===e&&K(e);break;case 92:M()}return P}function U(e,t){for(;M()&&e+O!==57&&(e+O!==84||47!==N()););return"/*"+B(t,P-1)+"*"+g(47===e?e:M())}function q(e){for(;!R(N());)M();return B(e,P)}function W(e){return function(e){return L="",e}(Y("",null,null,null,[""],e=function(e){return A=C=1,_=v(L=e),P=0,[]}(e),0,[0],e))}function Y(e,t,n,r,i,a,o,s,l){for(var c=0,u=0,p=o,d=0,h=0,f=0,m=1,w=1,E=1,A=0,C="",_=i,P=a,O=r,L=C;w;)switch(f=A,A=M()){case 40:if(108!=f&&58==S(L,p-1)){-1!=x(L+=b(j(A),"&","&\f"),"&\f",y(c?s[c-1]:0))&&(E=-1);break}case 34:case 39:case 91:L+=j(A);break;case 9:case 10:case 13:case 32:L+=$(f);break;case 92:L+=z(F()-1,7);continue;case 47:switch(N()){case 42:case 47:k(V(U(M(),F()),t,n,l),l),5!=R(f||1)&&5!=R(N()||1)||!v(L)||" "===T(L,-1,void 0)||(L+=" ");break;default:L+="/"}break;case 123*m:s[c++]=v(L)*E;case 125*m:case 59:case 0:switch(A){case 0:case 125:w=0;case 59+u:-1==E&&(L=b(L,/\f/g,"")),h>0&&(v(L)-p||0===m&&47===f)&&k(h>32?X(L+";",r,n,p-1,l):X(b(L," ","")+";",r,n,p-2,l),l);break;case 59:L+=";";default:if(k(O=H(L,t,n,c,u,i,s,C,_=[],P=[],p,a),a),123===A)if(0===u)Y(L,t,O,O,_,a,p,s,P);else{switch(d){case 99:if(110===S(L,3))break;case 108:if(97===S(L,2))break;default:u=0;case 100:case 109:case 115:}u?Y(e,O,O,r&&k(H(e,O,O,0,0,i,s,C,i,_=[],p,P),P),i,P,p,s,r?_:P):Y(L,O,O,O,[""],P,0,s,P)}}c=u=h=0,m=E=1,C=L="",p=o;break;case 58:p=1+v(L),h=f;default:if(m<1)if(123==A)--m;else if(125==A&&0==m++&&125==D())continue;switch(L+=g(A),A*m){case 38:E=u>0?1:(L+="\f",-1);break;case 44:s[c++]=(v(L)-1)*E,E=1;break;case 64:45===N()&&(L+=j(M())),d=N(),u=p=v(C=L+=q(F())),A++;break;case 45:45===f&&2==v(L)&&(m=0)}}return a}function H(e,t,n,r,i,a,o,s,l,c,u,p){for(var d=i-1,f=0===i?a:[""],g=function(e){return e.length}(f),x=0,S=0,v=0;x<r;++x)for(var k=0,w=T(e,d+1,d=y(S=o[x])),E=e;k<g;++k)(E=m(S>0?f[k]+" "+w:b(w,/&\f/g,f[k])))&&(l[v++]=E);return I(e,t,n,0===i?h:s,l,c,u,p)}function V(e,t,n,r){return I(e,t,n,d,g(O),T(e,2,-2),0,r)}function X(e,t,n,r,i){return I(e,t,n,f,T(e,0,r),T(e,r+1,-1),r,i)}var G=n(52636),Z=n(75992),J={id:"c4",detector:(0,c.K2)((e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(3816).then(n.bind(n,3816));return{id:"c4",diagram:e}}),"loader")},Q="flowchart",ee={id:Q,detector:(0,c.K2)(((e,t)=>"dagre-wrapper"!==t?.flowchart?.defaultRenderer&&"elk"!==t?.flowchart?.defaultRenderer&&/^\s*graph/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(8633).then(n.bind(n,38633));return{id:Q,diagram:e}}),"loader")},te="flowchart-v2",ne={id:te,detector:(0,c.K2)(((e,t)=>"dagre-d3"!==t?.flowchart?.defaultRenderer&&("elk"===t?.flowchart?.defaultRenderer&&(t.layout="elk"),!(!/^\s*graph/.test(e)||"dagre-wrapper"!==t?.flowchart?.defaultRenderer)||/^\s*flowchart/.test(e))),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(8633).then(n.bind(n,38633));return{id:te,diagram:e}}),"loader")},re={id:"er",detector:(0,c.K2)((e=>/^\s*erDiagram/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(2260).then(n.bind(n,92260));return{id:"er",diagram:e}}),"loader")},ie="gitGraph",ae={id:ie,detector:(0,c.K2)((e=>/^\s*gitGraph/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(6530),n.e(3744),n.e(879)]).then(n.bind(n,30879));return{id:ie,diagram:e}}),"loader")},oe="gantt",se={id:oe,detector:(0,c.K2)((e=>/^\s*gantt/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(4281).then(n.bind(n,34281));return{id:oe,diagram:e}}),"loader")},le="info",ce={id:le,detector:(0,c.K2)((e=>/^\s*info/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(6530),n.e(3744),n.e(2508)]).then(n.bind(n,72508));return{id:le,diagram:e}}),"loader")},ue={id:"pie",detector:(0,c.K2)((e=>/^\s*pie/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(6530),n.e(3744),n.e(8231)]).then(n.bind(n,38231));return{id:"pie",diagram:e}}),"loader")},pe="quadrantChart",de={id:pe,detector:(0,c.K2)((e=>/^\s*quadrantChart/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(3935).then(n.bind(n,53935));return{id:pe,diagram:e}}),"loader")},he="xychart",fe={id:he,detector:(0,c.K2)((e=>/^\s*xychart-beta/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(9634).then(n.bind(n,49634));return{id:he,diagram:e}}),"loader")},ye="requirement",ge={id:ye,detector:(0,c.K2)((e=>/^\s*requirement(Diagram)?/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(9034).then(n.bind(n,89034));return{id:ye,diagram:e}}),"loader")},me="sequence",be={id:me,detector:(0,c.K2)((e=>/^\s*sequenceDiagram/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(4474).then(n.bind(n,84474));return{id:me,diagram:e}}),"loader")},xe="class",Se={id:xe,detector:(0,c.K2)(((e,t)=>"dagre-wrapper"!==t?.class?.defaultRenderer&&/^\s*classDiagram/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(3208),n.e(3419)]).then(n.bind(n,23419));return{id:xe,diagram:e}}),"loader")},Te="classDiagram",ve={id:Te,detector:(0,c.K2)(((e,t)=>!(!/^\s*classDiagram/.test(e)||"dagre-wrapper"!==t?.class?.defaultRenderer)||/^\s*classDiagram-v2/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(3208),n.e(5727)]).then(n.bind(n,45727));return{id:Te,diagram:e}}),"loader")},ke="state",we={id:ke,detector:(0,c.K2)(((e,t)=>"dagre-wrapper"!==t?.state?.defaultRenderer&&/^\s*stateDiagram/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(6530),n.e(4228),n.e(8348),n.e(7842)]).then(n.bind(n,97842));return{id:ke,diagram:e}}),"loader")},Ee="stateDiagram",Ae={id:Ee,detector:(0,c.K2)(((e,t)=>!!/^\s*stateDiagram-v2/.test(e)||!(!/^\s*stateDiagram/.test(e)||"dagre-wrapper"!==t?.state?.defaultRenderer)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(8348),n.e(5548)]).then(n.bind(n,35548));return{id:Ee,diagram:e}}),"loader")},Ce="journey",_e={id:Ce,detector:(0,c.K2)((e=>/^\s*journey/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(6023).then(n.bind(n,46023));return{id:Ce,diagram:e}}),"loader")},Pe={draw:(0,c.K2)(((e,t,n)=>{c.Rm.debug("rendering svg for syntax error\n");const r=(0,l.D)(t),i=r.append("g");r.attr("viewBox","0 0 2412 512"),(0,c.a$)(r,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)}),"draw")},Oe=Pe,Le={db:{},renderer:Pe,parser:{parse:(0,c.K2)((()=>{}),"parse")}},Ie="flowchart-elk",De={id:Ie,detector:(0,c.K2)(((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&"elk"===t?.flowchart?.defaultRenderer)&&(t.layout="elk",!0)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(8633).then(n.bind(n,38633));return{id:Ie,diagram:e}}),"loader")},Me="timeline",Ne={id:Me,detector:(0,c.K2)((e=>/^\s*timeline/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(5807).then(n.bind(n,95807));return{id:Me,diagram:e}}),"loader")},Fe="mindmap",Be={id:Fe,detector:(0,c.K2)((e=>/^\s*mindmap/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(8936),n.e(2432)]).then(n.bind(n,72432));return{id:Fe,diagram:e}}),"loader")},Re="kanban",je={id:Re,detector:(0,c.K2)((e=>/^\s*kanban/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(9831).then(n.bind(n,9831));return{id:Re,diagram:e}}),"loader")},$e="sankey",ze={id:$e,detector:(0,c.K2)((e=>/^\s*sankey-beta/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await n.e(5936).then(n.bind(n,85936));return{id:$e,diagram:e}}),"loader")},Ke="packet",Ue={id:Ke,detector:(0,c.K2)((e=>/^\s*packet(-beta)?/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(6530),n.e(3744),n.e(5384)]).then(n.bind(n,55384));return{id:Ke,diagram:e}}),"loader")},qe="radar",We={id:qe,detector:(0,c.K2)((e=>/^\s*radar-beta/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(6530),n.e(3744),n.e(1931)]).then(n.bind(n,51931));return{id:qe,diagram:e}}),"loader")},Ye="block",He={id:Ye,detector:(0,c.K2)((e=>/^\s*block-beta/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(6530),n.e(5307)]).then(n.bind(n,15307));return{id:Ye,diagram:e}}),"loader")},Ve="architecture",Xe={id:Ve,detector:(0,c.K2)((e=>/^\s*architecture/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(6530),n.e(3744),n.e(8936),n.e(7302)]).then(n.bind(n,7302));return{id:Ve,diagram:e}}),"loader")},Ge="treemap",Ze={id:Ge,detector:(0,c.K2)((e=>/^\s*treemap/.test(e)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:e}=await Promise.all([n.e(6530),n.e(3744),n.e(8588)]).then(n.bind(n,98588));return{id:Ge,diagram:e}}),"loader")},Je=!1,Qe=(0,c.K2)((()=>{Je||(Je=!0,(0,c.Js)("error",Le,(e=>"error"===e.toLowerCase().trim())),(0,c.Js)("---",{db:{clear:(0,c.K2)((()=>{}),"clear")},styles:{},renderer:{draw:(0,c.K2)((()=>{}),"draw")},parser:{parse:(0,c.K2)((()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}),"parse")},init:(0,c.K2)((()=>null),"init")},(e=>e.toLowerCase().trimStart().startsWith("---"))),(0,c.Xd)(De,Be,Xe),(0,c.Xd)(J,je,ve,Se,re,se,ce,ue,ge,be,ne,ee,Ne,ae,Ae,we,_e,de,ze,Ue,fe,He,We,Ze))}),"addDiagrams"),et=(0,c.K2)((async()=>{c.Rm.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(c.mW).map((async([e,{detector:t,loader:n}])=>{if(n)try{(0,c.Gs)(e)}catch{try{const{diagram:e,id:r}=await n();(0,c.Js)(r,e,t)}catch(t){throw c.Rm.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete c.mW[e],t}}})))).filter((e=>"rejected"===e.status));if(e.length>0){c.Rm.error(`Failed to load ${e.length} external diagrams`);for(const t of e)c.Rm.error(t);throw new Error(`Failed to load ${e.length} external diagrams`)}}),"loadRegisteredDiagrams");function tt(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function nt(e,t,n,r){if(void 0!==e.insert){if(n){const t=`chart-desc-${r}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){const n=`chart-title-${r}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(0,c.K2)(tt,"setA11yDiagramInfo"),(0,c.K2)(nt,"addSVGa11yTitleDescription");var rt=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{(0,c.K2)(this,"Diagram")}static async fromText(t,n={}){const r=(0,c.zj)(),i=(0,c.Ch)(t,r);t=(0,o.C4)(t)+"\n";try{(0,c.Gs)(i)}catch{const e=(0,c.J$)(i);if(!e)throw new c.C0(`Diagram ${i} not found.`);const{id:t,diagram:n}=await e();(0,c.Js)(t,n)}const{db:a,parser:s,renderer:l,init:u}=(0,c.Gs)(i);return s.parser&&(s.parser.yy=a),a.clear?.(),u?.(r),n.title&&a.setDiagramTitle?.(n.title),await s.parse(t),new e(i,t,a,s,l)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},it=[],at=(0,c.K2)((()=>{it.forEach((e=>{e()})),it=[]}),"attachFunctions"),ot=(0,c.K2)((e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart()),"cleanupComments");function st(e){const t=e.match(c.EJ);if(!t)return{text:e,metadata:{}};let n=(0,r.H)(t[1],{schema:r.r})??{};n="object"!=typeof n||Array.isArray(n)?{}:n;const i={};return n.displayMode&&(i.displayMode=n.displayMode.toString()),n.title&&(i.title=n.title.toString()),n.config&&(i.config=n.config),{text:e.slice(t[0].length),metadata:i}}(0,c.K2)(st,"extractFrontMatter");var lt=(0,c.K2)((e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,((e,t,n)=>"<"+t+n.replace(/="([^"]*)"/g,"='$1'")+">"))),"cleanupText"),ct=(0,c.K2)((e=>{const{text:t,metadata:n}=st(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||(a.gantt={}),a.gantt.displayMode=r),{title:i,config:a,text:t}}),"processFrontmatter"),ut=(0,c.K2)((e=>{const t=o._K.detectInit(e)??{},n=o._K.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some((({type:e})=>"wrap"===e)):"wrap"===n?.type&&(t.wrap=!0),{text:(0,o.vU)(e),directive:t}}),"processDirectives");function pt(e){const t=lt(e),n=ct(t),r=ut(n.text),i=(0,o.$t)(n.config,r.directive);return{code:e=ot(r.text),title:n.title,config:i}}function dt(e){const t=(new TextEncoder).encode(e),n=Array.from(t,(e=>String.fromCodePoint(e))).join("");return btoa(n)}(0,c.K2)(pt,"preprocessDiagram"),(0,c.K2)(dt,"toBase64");var ht=["foreignobject"],ft=["dominant-baseline"];function yt(e){const t=pt(e);return(0,c.cL)(),(0,c.xA)(t.config??{}),t}async function gt(e,t){Qe();try{const{code:t,config:n}=yt(e);return{diagramType:(await Ct(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}(0,c.K2)(yt,"processAndSetConfigs"),(0,c.K2)(gt,"parse");var mt=(0,c.K2)(((e,t,n=[])=>`\n.${e} ${t} { ${n.join(" !important; ")} !important; }`),"cssImportantStyles"),bt=(0,c.K2)(((e,t=new Map)=>{let n="";if(void 0!==e.themeCSS&&(n+=`\n${e.themeCSS}`),void 0!==e.fontFamily&&(n+=`\n:root { --mermaid-font-family: ${e.fontFamily}}`),void 0!==e.altFontFamily&&(n+=`\n:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const r=e.htmlLabels??e.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach((e=>{(0,Z.A)(e.styles)||r.forEach((t=>{n+=mt(e.id,t,e.styles)})),(0,Z.A)(e.textStyles)||(n+=mt(e.id,"tspan",(e?.textStyles||[]).map((e=>e.replace("color","fill")))))}))}return n}),"createCssStyles"),xt=(0,c.K2)(((e,t,n,r)=>{const i=bt(e,n);return w(W(`${r}{${(0,c.tM)(t,i,e.themeVariables)}}`),E)}),"createUserStyles"),St=(0,c.K2)(((e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(0,o.Sm)(r),r=r.replace(/<br>/g,"<br/>"),r}),"cleanUpSvgCode"),Tt=(0,c.K2)(((e="",t)=>`<iframe style="width:100%;height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${dt(`<body style="margin:0">${e}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`),"putIntoIFrame"),vt=(0,c.K2)(((e,t,n,r,i)=>{const a=e.append("div");a.attr("id",n),r&&a.attr("style",r);const o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),e}),"appendDivSvgG");function kt(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,c.K2)(kt,"sandboxedIframe");var wt=(0,c.K2)(((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()}),"removeExistingElements"),Et=(0,c.K2)((async function(e,t,n){Qe();const r=yt(t);t=r.code;const i=(0,c.zj)();c.Rm.debug(i),t.length>(i?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const a="#"+e,o="i"+e,l="#"+o,u="d"+e,d="#"+u,h=(0,c.K2)((()=>{const e=y?l:d,t=(0,p.Ltv)(e).node();t&&"remove"in t&&t.remove()}),"removeTempElements");let f=(0,p.Ltv)("body");const y="sandbox"===i.securityLevel,g="loose"===i.securityLevel,m=i.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),y){const e=kt((0,p.Ltv)(n),o);f=(0,p.Ltv)(e.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=(0,p.Ltv)(n);vt(f,e,u,`font-family: ${m}`,"http://www.w3.org/1999/xlink")}else{if(wt(document,e,u,o),y){const e=kt((0,p.Ltv)("body"),o);f=(0,p.Ltv)(e.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=(0,p.Ltv)("body");vt(f,e,u)}let b,x;try{b=await rt.fromText(t,{title:r.title})}catch(e){if(i.suppressErrorRendering)throw h(),e;b=await rt.fromText("error"),x=e}const S=f.select(d).node(),T=b.type,v=S.firstChild,k=v.firstChild,w=b.renderer.getClasses?.(t,b),E=xt(i,T,w,a),A=document.createElement("style");A.innerHTML=E,v.insertBefore(A,k);try{await b.renderer.draw(t,e,s.n.version,b)}catch(n){throw i.suppressErrorRendering?h():Oe.draw(t,e,s.n.version),n}const C=f.select(`${d} svg`),_=b.db.getAccTitle?.(),P=b.db.getAccDescription?.();_t(T,C,_,P),f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let O=f.select(d).node().innerHTML;if(c.Rm.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),O=St(O,y,(0,c._3)(i.arrowMarkerAbsolute)),y){const e=f.select(d+" svg").node();O=Tt(O,e)}else g||(O=G.A.sanitize(O,{ADD_TAGS:ht,ADD_ATTR:ft,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(at(),x)throw x;return h(),{diagramType:T,svg:O,bindFunctions:b.db.bindFunctions}}),"render");function At(e={}){const t=(0,c.hH)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,c.wZ)(t),t?.theme&&t.theme in c.H$?t.themeVariables=c.H$[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=c.H$.default.getThemeVariables(t.themeVariables));const n="object"==typeof t?(0,c.UU)(t):(0,c.Q2)();(0,c.He)(n.logLevel),Qe()}(0,c.K2)(At,"initialize");var Ct=(0,c.K2)(((e,t={})=>{const{code:n}=pt(e);return rt.fromText(n,t)}),"getDiagramFromText");function _t(e,t,n,r){tt(t,e),nt(t,n,r,t.attr("id"))}(0,c.K2)(_t,"addA11yInfo");var Pt=Object.freeze({render:Et,parse:gt,getDiagramFromText:Ct,initialize:At,getConfig:c.zj,setConfig:c.Nk,getSiteConfig:c.Q2,updateSiteConfig:c.B6,reset:(0,c.K2)((()=>{(0,c.cL)()}),"reset"),globalReset:(0,c.K2)((()=>{(0,c.cL)(c.sb)}),"globalReset"),defaultConfig:c.sb});(0,c.He)((0,c.zj)().logLevel),(0,c.cL)((0,c.zj)());var Ot=(0,c.K2)(((e,t,n)=>{c.Rm.warn(e),(0,o.dq)(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))}),"handleError"),Lt=(0,c.K2)((async function(e={querySelector:".mermaid"}){try{await It(e)}catch(t){if((0,o.dq)(t)&&c.Rm.error(t.str),qt.parseError&&qt.parseError(t),!e.suppressErrors)throw c.Rm.error("Use the suppressErrors option to suppress these errors"),t}}),"run"),It=(0,c.K2)((async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){const r=Pt.getConfig();let i;if(c.Rm.debug((e?"":"No ")+"Callback function found"),n)i=n;else{if(!t)throw new Error("Nodes and querySelector are both undefined");i=document.querySelectorAll(t)}c.Rm.debug(`Found ${i.length} diagrams`),void 0!==r?.startOnLoad&&(c.Rm.debug("Start On Load: "+r?.startOnLoad),Pt.updateSiteConfig({startOnLoad:r?.startOnLoad}));const a=new o._K.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const l=[];for(const t of Array.from(i)){if(c.Rm.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");const n=`mermaid-${a.next()}`;s=t.innerHTML,s=(0,u.T)(o._K.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=o._K.detectInit(s);r&&c.Rm.debug("Detected early reinit: ",r);try{const{svg:r,bindFunctions:i}=await Kt(n,s,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){Ot(e,l,qt.parseError)}}if(l.length>0)throw l[0]}),"runThrowsErrors"),Dt=(0,c.K2)((function(e){Pt.initialize(e)}),"initialize"),Mt=(0,c.K2)((async function(e,t,n){c.Rm.warn("mermaid.init is deprecated. Please use run instead."),e&&Dt(e);const r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof t?r.querySelector=t:t&&(t instanceof HTMLElement?r.nodes=[t]:r.nodes=t),await Lt(r)}),"init"),Nt=(0,c.K2)((async(e,{lazyLoad:t=!0}={})=>{Qe(),(0,c.Xd)(...e),!1===t&&await et()}),"registerExternalDiagrams"),Ft=(0,c.K2)((function(){if(qt.startOnLoad){const{startOnLoad:e}=Pt.getConfig();e&&qt.run().catch((e=>c.Rm.error("Mermaid failed to initialize",e)))}}),"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",Ft,!1);var Bt=(0,c.K2)((function(e){qt.parseError=e}),"setParseErrorHandler"),Rt=[],jt=!1,$t=(0,c.K2)((async()=>{if(!jt){for(jt=!0;Rt.length>0;){const e=Rt.shift();if(e)try{await e()}catch(e){c.Rm.error("Error executing queue",e)}}jt=!1}}),"executeQueue"),zt=(0,c.K2)((async(e,t)=>new Promise(((n,r)=>{const i=(0,c.K2)((()=>new Promise(((i,a)=>{Pt.parse(e,t).then((e=>{i(e),n(e)}),(e=>{c.Rm.error("Error parsing",e),qt.parseError?.(e),a(e),r(e)}))}))),"performCall");Rt.push(i),$t().catch(r)}))),"parse"),Kt=(0,c.K2)(((e,t,n)=>new Promise(((r,i)=>{const a=(0,c.K2)((()=>new Promise(((a,o)=>{Pt.render(e,t,n).then((e=>{a(e),r(e)}),(e=>{c.Rm.error("Error parsing",e),qt.parseError?.(e),o(e),i(e)}))}))),"performCall");Rt.push(a),$t().catch(i)}))),"render"),Ut=(0,c.K2)((()=>Object.keys(c.mW).map((e=>({id:e})))),"getRegisteredDiagramsMetadata"),qt={startOnLoad:!0,mermaidAPI:Pt,parse:zt,render:Kt,init:Mt,run:Lt,registerExternalDiagrams:Nt,registerLayoutLoaders:i.sO,initialize:Dt,parseError:void 0,contentLoaded:Ft,setParseErrorHandler:Bt,detectType:c.Ch,registerIconPacks:a.pC,getRegisteredDiagramsMetadata:Ut},Wt=qt},67566:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(97810);function i(e){return"string"==typeof e?new r.LN([[document.querySelector(e)]],[document.documentElement]):new r.LN([[e]],r.zr)}},68233:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>()=>e},68282:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(71140);const i=(0,n(67244).A)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;const o=function(e){if(!(0,r.A)(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},68452:(e,t,n)=>{"use strict";function r(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function a(e){return e}n.d(t,{JLW:()=>Xr,l78:()=>b,tlR:()=>m,qrM:()=>li,Yu4:()=>ui,IA3:()=>di,Wi0:()=>fi,PGM:()=>yi,OEq:()=>mi,y8u:()=>Si,olC:()=>vi,IrU:()=>wi,oDi:()=>Ci,Q7f:()=>Pi,cVp:()=>Li,lUB:()=>Jr,Lx9:()=>Di,nVG:()=>zi,uxU:()=>Ki,Xf2:()=>Wi,GZz:()=>Hi,UPb:()=>Xi,dyv:()=>Vi,GPZ:()=>D,Sk5:()=>R,bEH:()=>be,n8j:()=>ti,T9B:()=>r,jkA:()=>i,rLf:()=>ii,WH:()=>Ee,m4Y:()=>it,UMr:()=>we,w7C:()=>Sr,zt:()=>Tr,Ltv:()=>vr.A,UAC:()=>St,DCK:()=>Jt,TUC:()=>Pt,Agd:()=>bt,t6C:()=>ft,wXd:()=>gt,ABi:()=>Et,Ui6:()=>jt,rGn:()=>Ot,ucG:()=>yt,YPH:()=>wt,Mol:()=>_t,PGu:()=>At,GuW:()=>Ct,hkb:()=>G});var o=1,s=2,l=3,c=4,u=1e-6;function p(e){return"translate("+e+",0)"}function d(e){return"translate(0,"+e+")"}function h(e){return t=>+e(t)}function f(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function y(){return!this.__axis}function g(e,t){var n=[],r=null,i=null,g=6,m=6,b=3,x="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,S=e===o||e===c?-1:1,T=e===c||e===s?"x":"y",v=e===o||e===l?p:d;function k(p){var d=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,k=null==i?t.tickFormat?t.tickFormat.apply(t,n):a:i,w=Math.max(g,0)+b,E=t.range(),A=+E[0]+x,C=+E[E.length-1]+x,_=(t.bandwidth?f:h)(t.copy(),x),P=p.selection?p.selection():p,O=P.selectAll(".domain").data([null]),L=P.selectAll(".tick").data(d,t).order(),I=L.exit(),D=L.enter().append("g").attr("class","tick"),M=L.select("line"),N=L.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(D),M=M.merge(D.append("line").attr("stroke","currentColor").attr(T+"2",S*g)),N=N.merge(D.append("text").attr("fill","currentColor").attr(T,S*w).attr("dy",e===o?"0em":e===l?"0.71em":"0.32em")),p!==P&&(O=O.transition(p),L=L.transition(p),M=M.transition(p),N=N.transition(p),I=I.transition(p).attr("opacity",u).attr("transform",(function(e){return isFinite(e=_(e))?v(e+x):this.getAttribute("transform")})),D.attr("opacity",u).attr("transform",(function(e){var t=this.parentNode.__axis;return v((t&&isFinite(t=t(e))?t:_(e))+x)}))),I.remove(),O.attr("d",e===c||e===s?m?"M"+S*m+","+A+"H"+x+"V"+C+"H"+S*m:"M"+x+","+A+"V"+C:m?"M"+A+","+S*m+"V"+x+"H"+C+"V"+S*m:"M"+A+","+x+"H"+C),L.attr("opacity",1).attr("transform",(function(e){return v(_(e)+x)})),M.attr(T+"2",S*g),N.attr(T,S*w).text(k),P.filter(y).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===s?"start":e===c?"end":"middle"),P.each((function(){this.__axis=_}))}return k.scale=function(e){return arguments.length?(t=e,k):t},k.ticks=function(){return n=Array.from(arguments),k},k.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),k):n.slice()},k.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),k):r&&r.slice()},k.tickFormat=function(e){return arguments.length?(i=e,k):i},k.tickSize=function(e){return arguments.length?(g=m=+e,k):g},k.tickSizeInner=function(e){return arguments.length?(g=+e,k):g},k.tickSizeOuter=function(e){return arguments.length?(m=+e,k):m},k.tickPadding=function(e){return arguments.length?(b=+e,k):b},k.offset=function(e){return arguments.length?(x=+e,k):x},k}function m(e){return g(o,e)}function b(e){return g(l,e)}n(81310);const{abs:x,max:S,min:T}=Math;function v(e){return{type:e}}function k(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function w(e){return(e=k(Math.abs(e)))?e[1]:NaN}["w","e"].map(v),["n","s"].map(v),["n","w","e","s","nw","ne","sw","se"].map(v);var E,A=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function C(e){if(!(t=A.exec(e)))throw new Error("invalid format: "+e);var t;return new _({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function _(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function P(e,t){var n=k(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}C.prototype=_.prototype,_.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};const O={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>P(100*e,t),r:P,s:function(e,t){var n=k(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(E=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+k(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function L(e){return e}var I,D,M,N=Array.prototype.map,F=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function B(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function R(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=$)):void 0===t&&(t=j);for(var n,r,i,a,o,s=new U(e),l=[s];n=l.pop();)if((i=t(n.data))&&(o=(i=Array.from(i)).length))for(n.children=i,a=o-1;a>=0;--a)l.push(r=i[a]=new U(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(K)}function j(e){return e.children}function $(e){return Array.isArray(e)?e[1]:null}function z(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function K(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function U(e){this.data=e,this.depth=this.height=0,this.parent=null}function q(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function W(e,t,n,r,i){for(var a,o=e.children,s=-1,l=o.length,c=e.value&&(r-t)/e.value;++s<l;)(a=o[s]).y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*c}function Y(e,t,n,r,i){for(var a,o=e.children,s=-1,l=o.length,c=e.value&&(i-n)/e.value;++s<l;)(a=o[s]).x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*c}I=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?L:(t=N.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?L:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(N.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=C(e)).fill,n=e.align,p=e.sign,d=e.symbol,h=e.zero,f=e.width,y=e.comma,g=e.precision,m=e.trim,b=e.type;"n"===b?(y=!0,b="g"):O[b]||(void 0===g&&(g=12),m=!0,b="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var x="$"===d?i:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",S="$"===d?a:/[%p]/.test(b)?l:"",T=O[b],v=/[defgprs%]/.test(b);function k(e){var i,a,l,d=x,k=S;if("c"===b)k=T(e)+k,e="";else{var w=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:T(Math.abs(e),g),m&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),w&&0==+e&&"+"!==p&&(w=!1),d=(w?"("===p?p:c:"-"===p||"("===p?"":p)+d,k=("s"===b?F[8+E/3]:"")+k+(w&&"("===p?")":""),v)for(i=-1,a=e.length;++i<a;)if(48>(l=e.charCodeAt(i))||l>57){k=(46===l?o+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}y&&!h&&(e=r(e,1/0));var A=d.length+e.length+k.length,C=A<f?new Array(f-A+1).join(t):"";switch(y&&h&&(e=r(C+e,C.length?f-k.length:1/0),C=""),n){case"<":e=d+e+k+C;break;case"=":e=d+C+e+k;break;case"^":e=C.slice(0,A=C.length>>1)+d+e+k+C.slice(A);break;default:e=C+d+e+k}return s(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:p,formatPrefix:function(e,t){var n=p(((e=C(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(w(t)/3))),i=Math.pow(10,-r),a=F[8+r/3];return function(e){return n(i*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),D=I.format,M=I.formatPrefix,U.prototype=R.prototype={constructor:U,count:function(){return this.eachAfter(B)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,a=this,o=[a],s=[],l=-1;a=o.pop();)if(s.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)o.push(n[r]);for(;a=s.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,a=[i],o=-1;i=a.pop();)if(e.call(t,i,++o,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return R(this).eachBefore(z)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,a=[i];do{for(e=a.reverse(),a=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)a.push(t[n])}while(a.length)}};const H=function e(t){function n(e,n,r,i,a){!function(e,t,n,r,i,a){for(var o,s,l,c,u,p,d,h,f,y,g,m=[],b=t.children,x=0,S=0,T=b.length,v=t.value;x<T;){l=i-n,c=a-r;do{u=b[S++].value}while(!u&&S<T);for(p=d=u,g=u*u*(y=Math.max(c/l,l/c)/(v*e)),f=Math.max(d/g,g/p);S<T;++S){if(u+=s=b[S].value,s<p&&(p=s),s>d&&(d=s),g=u*u*y,(h=Math.max(d/g,g/p))>f){u-=s;break}f=h}m.push(o={value:u,dice:l<c,children:b.slice(x,S)}),o.dice?W(o,n,r,i,v?r+=c*u/v:a):Y(o,n,r,v?n+=l*u/v:i,a),v-=u,x=S}}(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}((1+Math.sqrt(5))/2);function V(){return 0}function X(e){return function(){return e}}function G(){var e=H,t=!1,n=1,r=1,i=[0],a=V,o=V,s=V,l=V,c=V;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(p),i=[0],t&&e.eachBefore(q),e}function p(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,p=t.x1-n,d=t.y1-n;p<r&&(r=p=(r+p)/2),d<u&&(u=d=(u+d)/2),t.x0=r,t.y0=u,t.x1=p,t.y1=d,t.children&&(n=i[t.depth+1]=a(t)/2,r+=c(t)-n,u+=o(t)-n,(p-=s(t)-n)<r&&(r=p=(r+p)/2),(d-=l(t)-n)<u&&(u=d=(u+d)/2),e(t,r,u,p,d))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw new Error;return e}(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a="function"==typeof e?e:X(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o="function"==typeof e?e:X(+e),u):o},u.paddingRight=function(e){return arguments.length?(s="function"==typeof e?e:X(+e),u):s},u.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:X(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:X(+e),u):c},u}var Z=n(2460),J=n(77877);const Q=Math.PI/180,ee=180/Math.PI,te=.96422,ne=.82521,re=4/29,ie=6/29,ae=3*ie*ie,oe=ie*ie*ie;function se(e){if(e instanceof le)return new le(e.l,e.a,e.b,e.opacity);if(e instanceof fe)return ye(e);e instanceof J.Gw||(e=(0,J.b)(e));var t,n,r=de(e.r),i=de(e.g),a=de(e.b),o=ce((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?t=n=o:(t=ce((.4360747*r+.3850649*i+.1430804*a)/te),n=ce((.0139322*r+.0971045*i+.7141733*a)/ne)),new le(116*o-16,500*(t-o),200*(o-n),e.opacity)}function le(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ce(e){return e>oe?Math.pow(e,1/3):e/ae+re}function ue(e){return e>ie?e*e*e:ae*(e-re)}function pe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function de(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function he(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof fe)return new fe(e.h,e.c,e.l,e.opacity);if(e instanceof le||(e=se(e)),0===e.a&&0===e.b)return new fe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ee;return new fe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new fe(e,t,n,null==r?1:r)}function fe(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ye(e){if(isNaN(e.h))return new le(e.l,0,0,e.opacity);var t=e.h*Q;return new le(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}(0,Z.A)(le,(function(e,t,n,r){return 1===arguments.length?se(e):new le(e,t,n,null==r?1:r)}),(0,Z.X)(J.Q1,{brighter(e){return new le(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new le(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=te*ue(t),e=1*ue(e),n=ne*ue(n),new J.Gw(pe(3.1338561*t-1.6168667*e-.4906146*n),pe(-.9787684*t+1.9161415*e+.033454*n),pe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),(0,Z.A)(fe,he,(0,Z.X)(J.Q1,{brighter(e){return new fe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new fe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ye(this).rgb()}}));var ge=n(81034);function me(e){return function(t,n){var r=e((t=he(t)).h,(n=he(n)).h),i=(0,ge.Ay)(t.c,n.c),a=(0,ge.Ay)(t.l,n.l),o=(0,ge.Ay)(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+""}}}const be=me(ge.lG);function xe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}me(ge.Ay);class Se extends Map{constructor(e,t=ve){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(Te(this,e))}has(e){return super.has(Te(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function Te({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ve(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const ke=Symbol("implicit");function we(){var e=new Se,t=[],n=[],r=ke;function i(i){let a=e.get(i);if(void 0===a){if(r!==ke)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Se;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return we(t,n).unknown(r)},xe.apply(i,arguments),i}function Ee(){var e,t,n=we().unknown(void 0),r=n.domain,i=n.range,a=0,o=1,s=!1,l=0,c=0,u=.5;function p(){var n=r().length,p=o<a,d=p?o:a,h=p?a:o;e=(h-d)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),d+=(h-d-e*(n-l))*u,t=e*(1-l),s&&(d=Math.round(d),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(i);++r<i;)a[r]=e+r*n;return a}(n).map((function(t){return d+e*t}));return i(p?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),p()):r()},n.range=function(e){return arguments.length?([a,o]=e,a=+a,o=+o,p()):[a,o]},n.rangeRound=function(e){return[a,o]=e,a=+a,o=+o,s=!0,p()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,p()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),p()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),p()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,p()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),p()):u},n.copy=function(){return Ee(r(),[a,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},xe.apply(p(),arguments)}const Ae=Math.sqrt(50),Ce=Math.sqrt(10),_e=Math.sqrt(2);function Pe(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=Ae?10:a>=Ce?5:a>=_e?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?Pe(e,t,2*n):[s,l,c]}function Oe(e,t,n){return Pe(e=+e,t=+t,n=+n)[2]}function Le(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?Oe(t,e,n):Oe(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Ie(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function De(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Me(e){let t,n,r;function i(e,r,i=0,a=e.length){if(i<a){if(0!==t(r,r))return a;do{const t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}return 2!==e.length?(t=Ie,n=(t,n)=>Ie(e(t),n),r=(t,n)=>e(t)-n):(t=e===Ie||e===De?e:Ne,n=e,r=e),{left:i,center:function(e,t,n=0,a=e.length){const o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o},right:function(e,r,i=0,a=e.length){if(i<a){if(0!==t(r,r))return a;do{const t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}}}function Ne(){return 0}const Fe=Me(Ie),Be=Fe.right,Re=(Fe.left,Me((function(e){return null===e?NaN:+e})).center,Be);var je=n(30561);function $e(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=He(e[n],t[n]);for(;n<r;++n)o[n]=t[n];return function(e){for(n=0;n<i;++n)o[n]=a[n](e);return o}}function ze(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var Ke=n(74720);function Ue(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=He(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var qe=n(61444),We=n(68233);function Ye(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}}function He(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?(0,We.A)(t):("number"===i?Ke.A:"string"===i?(n=(0,J.Ay)(t))?(t=n,je.Ay):qe.A:t instanceof J.Ay?je.Ay:t instanceof Date?ze:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?$e:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Ue:Ke.A:Ye))(e,t)}function Ve(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Xe(e){return+e}var Ge=[0,1];function Ze(e){return e}function Je(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function Qe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Je(i,r),a=n(o,a)):(r=Je(r,i),a=n(a,o)),function(e){return a(r(e))}}function et(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Je(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=Re(e,t,1,r)-1;return a[n](i[n](t))}}function tt(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function nt(){return function(){var e,t,n,r,i,a,o=Ge,s=Ge,l=He,c=Ze;function u(){var e,t,n,l=Math.min(o.length,s.length);return c!==Ze&&(e=o[0],t=o[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?et:Qe,i=a=null,p}function p(t){return null==t||isNaN(t=+t)?n:(i||(i=r(o.map(e),s,l)))(e(c(t)))}return p.invert=function(n){return c(t((a||(a=r(s,o.map(e),Ke.A)))(n)))},p.domain=function(e){return arguments.length?(o=Array.from(e,Xe),u()):o.slice()},p.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},p.rangeRound=function(e){return s=Array.from(e),l=Ve,u()},p.clamp=function(e){return arguments.length?(c=!!e||Ze,u()):c!==Ze},p.interpolate=function(e){return arguments.length?(l=e,u()):l},p.unknown=function(e){return arguments.length?(n=e,p):n},function(n,r){return e=n,t=r,u()}}()(Ze,Ze)}function rt(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)==(t=+t))return[e];const r=t<e,[i,a,o]=r?Pe(t,e,n):Pe(e,t,n);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let e=0;e<s;++e)l[e]=(a-e)/-o;else for(let e=0;e<s;++e)l[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)l[e]=(i+e)/-o;else for(let e=0;e<s;++e)l[e]=(i+e)*o;return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,a=Le(e,t,n);switch((r=C(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(w(t)/3)))-w(Math.abs(e)))}(a,o))||(r.precision=i),M(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,w(t)-w(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-w(Math.abs(e)))}(a))||(r.precision=i-2*("%"===r.type))}return D(r)}(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,a=t(),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=Oe(l,c,n))===r)return a[o]=l,a[s]=c,t(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function it(){var e=nt();return e.copy=function(){return tt(e,it())},xe.apply(e,arguments),rt(e)}const at=1e3,ot=6e4,st=36e5,lt=864e5,ct=6048e5,ut=31536e6,pt=new Date,dt=new Date;function ht(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,a)=>{const o=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return o;let s;do{o.push(s=new Date(+n)),t(n,a),e(n)}while(s<n&&n<r);return o},i.filter=n=>ht((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(pt.setTime(+t),dt.setTime(+r),e(pt),e(dt),Math.floor(n(pt,dt))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const ft=ht((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));ft.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?ht((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):ft:null),ft.range;const yt=ht((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*at)}),((e,t)=>(t-e)/at),(e=>e.getUTCSeconds())),gt=(yt.range,ht((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*at)}),((e,t)=>{e.setTime(+e+t*ot)}),((e,t)=>(t-e)/ot),(e=>e.getMinutes()))),mt=(gt.range,ht((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*ot)}),((e,t)=>(t-e)/ot),(e=>e.getUTCMinutes()))),bt=(mt.range,ht((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*at-e.getMinutes()*ot)}),((e,t)=>{e.setTime(+e+t*st)}),((e,t)=>(t-e)/st),(e=>e.getHours()))),xt=(bt.range,ht((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*st)}),((e,t)=>(t-e)/st),(e=>e.getUTCHours()))),St=(xt.range,ht((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ot)/lt),(e=>e.getDate()-1))),Tt=(St.range,ht((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/lt),(e=>e.getUTCDate()-1))),vt=(Tt.range,ht((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/lt),(e=>Math.floor(e/lt))));function kt(e){return ht((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ot)/ct))}vt.range;const wt=kt(0),Et=kt(1),At=kt(2),Ct=kt(3),_t=kt(4),Pt=kt(5),Ot=kt(6);function Lt(e){return ht((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/ct))}wt.range,Et.range,At.range,Ct.range,_t.range,Pt.range,Ot.range;const It=Lt(0),Dt=Lt(1),Mt=Lt(2),Nt=Lt(3),Ft=Lt(4),Bt=Lt(5),Rt=Lt(6),jt=(It.range,Dt.range,Mt.range,Nt.range,Ft.range,Bt.range,Rt.range,ht((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()))),$t=(jt.range,ht((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()))),zt=($t.range,ht((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear())));zt.every=e=>isFinite(e=Math.floor(e))&&e>0?ht((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,zt.range;const Kt=ht((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function Ut(e,t,n,r,i,a){const o=[[yt,1,at],[yt,5,5e3],[yt,15,15e3],[yt,30,3e4],[a,1,ot],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,st],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,lt],[r,2,1728e5],[n,1,ct],[t,1,2592e6],[t,3,7776e6],[e,1,ut]];function s(t,n,r){const i=Math.abs(n-t)/r,a=Me((([,,e])=>e)).right(o,i);if(a===o.length)return e.every(Le(t/ut,n/ut,r));if(0===a)return ft.every(Math.max(Le(t,n,r),1));const[s,l]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a},s]}Kt.every=e=>isFinite(e=Math.floor(e))&&e>0?ht((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,Kt.range;const[qt,Wt]=Ut(Kt,$t,It,vt,xt,mt),[Yt,Ht]=Ut(zt,jt,wt,St,bt,gt);function Vt(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Xt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Gt(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Zt,Jt,Qt={"-":"",_:" ",0:"0"},en=/^\s*\d+/,tn=/^%/,nn=/[\\^$*+?|[\]().{}]/g;function rn(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function an(e){return e.replace(nn,"\\$&")}function on(e){return new RegExp("^(?:"+e.map(an).join("|")+")","i")}function sn(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function ln(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function cn(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function un(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function pn(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function dn(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function hn(e,t,n){var r=en.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function fn(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yn(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function gn(e,t,n){var r=en.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function mn(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function bn(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function xn(e,t,n){var r=en.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Sn(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Tn(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function vn(e,t,n){var r=en.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function kn(e,t,n){var r=en.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function wn(e,t,n){var r=en.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function En(e,t,n){var r=tn.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function An(e,t,n){var r=en.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Cn(e,t,n){var r=en.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function _n(e,t){return rn(e.getDate(),t,2)}function Pn(e,t){return rn(e.getHours(),t,2)}function On(e,t){return rn(e.getHours()%12||12,t,2)}function Ln(e,t){return rn(1+St.count(zt(e),e),t,3)}function In(e,t){return rn(e.getMilliseconds(),t,3)}function Dn(e,t){return In(e,t)+"000"}function Mn(e,t){return rn(e.getMonth()+1,t,2)}function Nn(e,t){return rn(e.getMinutes(),t,2)}function Fn(e,t){return rn(e.getSeconds(),t,2)}function Bn(e){var t=e.getDay();return 0===t?7:t}function Rn(e,t){return rn(wt.count(zt(e)-1,e),t,2)}function jn(e){var t=e.getDay();return t>=4||0===t?_t(e):_t.ceil(e)}function $n(e,t){return e=jn(e),rn(_t.count(zt(e),e)+(4===zt(e).getDay()),t,2)}function zn(e){return e.getDay()}function Kn(e,t){return rn(Et.count(zt(e)-1,e),t,2)}function Un(e,t){return rn(e.getFullYear()%100,t,2)}function qn(e,t){return rn((e=jn(e)).getFullYear()%100,t,2)}function Wn(e,t){return rn(e.getFullYear()%1e4,t,4)}function Yn(e,t){var n=e.getDay();return rn((e=n>=4||0===n?_t(e):_t.ceil(e)).getFullYear()%1e4,t,4)}function Hn(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rn(t/60|0,"0",2)+rn(t%60,"0",2)}function Vn(e,t){return rn(e.getUTCDate(),t,2)}function Xn(e,t){return rn(e.getUTCHours(),t,2)}function Gn(e,t){return rn(e.getUTCHours()%12||12,t,2)}function Zn(e,t){return rn(1+Tt.count(Kt(e),e),t,3)}function Jn(e,t){return rn(e.getUTCMilliseconds(),t,3)}function Qn(e,t){return Jn(e,t)+"000"}function er(e,t){return rn(e.getUTCMonth()+1,t,2)}function tr(e,t){return rn(e.getUTCMinutes(),t,2)}function nr(e,t){return rn(e.getUTCSeconds(),t,2)}function rr(e){var t=e.getUTCDay();return 0===t?7:t}function ir(e,t){return rn(It.count(Kt(e)-1,e),t,2)}function ar(e){var t=e.getUTCDay();return t>=4||0===t?Ft(e):Ft.ceil(e)}function or(e,t){return e=ar(e),rn(Ft.count(Kt(e),e)+(4===Kt(e).getUTCDay()),t,2)}function sr(e){return e.getUTCDay()}function lr(e,t){return rn(Dt.count(Kt(e)-1,e),t,2)}function cr(e,t){return rn(e.getUTCFullYear()%100,t,2)}function ur(e,t){return rn((e=ar(e)).getUTCFullYear()%100,t,2)}function pr(e,t){return rn(e.getUTCFullYear()%1e4,t,4)}function dr(e,t){var n=e.getUTCDay();return rn((e=n>=4||0===n?Ft(e):Ft.ceil(e)).getUTCFullYear()%1e4,t,4)}function hr(){return"+0000"}function fr(){return"%"}function yr(e){return+e}function gr(e){return Math.floor(+e/1e3)}function mr(e){return new Date(e)}function br(e){return e instanceof Date?+e:+new Date(+e)}function xr(e,t,n,r,i,a,o,s,l,c){var u=nt(),p=u.invert,d=u.domain,h=c(".%L"),f=c(":%S"),y=c("%I:%M"),g=c("%I %p"),m=c("%a %d"),b=c("%b %d"),x=c("%B"),S=c("%Y");function T(e){return(l(e)<e?h:s(e)<e?f:o(e)<e?y:a(e)<e?g:r(e)<e?i(e)<e?m:b:n(e)<e?x:S)(e)}return u.invert=function(e){return new Date(p(e))},u.domain=function(e){return arguments.length?d(Array.from(e,br)):d().map(mr)},u.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?T:c(t)},u.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,a=e[r],o=e[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),e[r]=t.floor(a),e[i]=t.ceil(o),e}(n,e)):u},u.copy=function(){return tt(u,xr(e,t,n,r,i,a,o,s,l,c))},u}function Sr(){return xe.apply(xr(Yt,Ht,zt,jt,wt,St,bt,gt,yt,Jt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}Zt=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=on(i),u=sn(i),p=on(a),d=sn(a),h=on(o),f=sn(o),y=on(s),g=sn(s),m=on(l),b=sn(l),x={a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:_n,e:_n,f:Dn,g:qn,G:Yn,H:Pn,I:On,j:Ln,L:In,m:Mn,M:Nn,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:yr,s:gr,S:Fn,u:Bn,U:Rn,V:$n,w:zn,W:Kn,x:null,X:null,y:Un,Y:Wn,Z:Hn,"%":fr},S={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Vn,e:Vn,f:Qn,g:ur,G:dr,H:Xn,I:Gn,j:Zn,L:Jn,m:er,M:tr,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:yr,s:gr,S:nr,u:rr,U:ir,V:or,w:sr,W:lr,x:null,X:null,y:cr,Y:pr,Z:hr,"%":fr},T={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return w(e,t,n,r)},d:bn,e:bn,f:wn,g:fn,G:hn,H:Sn,I:Sn,j:xn,L:kn,m:mn,M:Tn,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:gn,Q:An,s:Cn,S:vn,u:cn,U:un,V:pn,w:ln,W:dn,x:function(e,t,r){return w(e,n,t,r)},X:function(e,t,n){return w(e,r,t,n)},y:fn,Y:hn,Z:yn,"%":En};function v(e,t){return function(n){var r,i,a,o=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(o.push(e.slice(l,s)),null!=(i=Qt[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(a=t[r])&&(r=a(n,i)),o.push(r),l=s+1);return o.push(e.slice(l,s)),o.join("")}}function k(e,t){return function(n){var r,i,a=Gt(1900,void 0,1);if(w(a,e,n+="",0)!=n.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(t&&!("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?(i=(r=Xt(Gt(a.y,0,1))).getUTCDay(),r=i>4||0===i?Dt.ceil(r):Dt(r),r=Tt.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Vt(Gt(a.y,0,1))).getDay(),r=i>4||0===i?Et.ceil(r):Et(r),r=St.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.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?1:0),i="Z"in a?Xt(Gt(a.y,0,1)).getUTCDay():Vt(Gt(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,Xt(a)):Vt(a)}}function w(e,t,n,r){for(var i,a,o=0,s=t.length,l=n.length;o<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(o++))){if(i=t.charAt(o++),!(a=T[i in Qt?t.charAt(o++):i])||(r=a(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return x.x=v(n,x),x.X=v(r,x),x.c=v(t,x),S.x=v(n,S),S.X=v(r,S),S.c=v(t,S),{format:function(e){var t=v(e+="",x);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=v(e+="",S);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}({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"]}),Jt=Zt.format,Zt.parse,Zt.utcFormat,Zt.utcParse;const Tr=function(e){for(var t=new Array(10),n=0;n<10;)t[n]="#"+e.slice(6*n,6*++n);return t}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var vr=n(67566);function kr(e){return function(){return e}}const wr=Math.abs,Er=Math.atan2,Ar=Math.cos,Cr=Math.max,_r=Math.min,Pr=Math.sin,Or=Math.sqrt,Lr=1e-12,Ir=Math.PI,Dr=Ir/2,Mr=2*Ir;function Nr(e){return e>=1?Dr:e<=-1?-Dr:Math.asin(e)}const Fr=Math.PI,Br=2*Fr,Rr=1e-6,jr=Br-Rr;function $r(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class zr{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?$r:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return $r;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,l=r-t,c=a-e,u=o-t,p=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(p>Rr)if(Math.abs(u*s-l*c)>Rr&&i){let d=n-a,h=r-o,f=s*s+l*l,y=d*d+h*h,g=Math.sqrt(f),m=Math.sqrt(p),b=i*Math.tan((Fr-Math.acos((f+p-y)/(2*g*m)))/2),x=b/m,S=b/g;Math.abs(x-1)>Rr&&this._append`L${e+x*c},${t+x*u}`,this._append`A${i},${i},0,0,${+(u*d>c*h)},${this._x1=e+S*s},${this._y1=t+S*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,i,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,c=t+s,u=1^a,p=a?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Rr||Math.abs(this._y1-c)>Rr)&&this._append`L${l},${c}`,n&&(p<0&&(p=p%Br+Br),p>jr?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:p>Rr&&this._append`A${n},${n},0,${+(p>=Fr)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Kr(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new zr(t)}function Ur(e){return e.innerRadius}function qr(e){return e.outerRadius}function Wr(e){return e.startAngle}function Yr(e){return e.endAngle}function Hr(e){return e&&e.padAngle}function Vr(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/Or(s*s+l*l),u=c*l,p=-c*s,d=e+u,h=t+p,f=n+u,y=r+p,g=(d+f)/2,m=(h+y)/2,b=f-d,x=y-h,S=b*b+x*x,T=i-a,v=d*y-f*h,k=(x<0?-1:1)*Or(Cr(0,T*T*S-v*v)),w=(v*x-b*k)/S,E=(-v*b-x*k)/S,A=(v*x+b*k)/S,C=(-v*b+x*k)/S,_=w-g,P=E-m,O=A-g,L=C-m;return _*_+P*P>O*O+L*L&&(w=A,E=C),{cx:w,cy:E,x01:-u,y01:-p,x11:w*(i/T-1),y11:E*(i/T-1)}}function Xr(){var e=Ur,t=qr,n=kr(0),r=null,i=Wr,a=Yr,o=Hr,s=null,l=Kr(c);function c(){var c,u,p,d=+e.apply(this,arguments),h=+t.apply(this,arguments),f=i.apply(this,arguments)-Dr,y=a.apply(this,arguments)-Dr,g=wr(y-f),m=y>f;if(s||(s=c=l()),h<d&&(u=h,h=d,d=u),h>Lr)if(g>Mr-Lr)s.moveTo(h*Ar(f),h*Pr(f)),s.arc(0,0,h,f,y,!m),d>Lr&&(s.moveTo(d*Ar(y),d*Pr(y)),s.arc(0,0,d,y,f,m));else{var b,x,S=f,T=y,v=f,k=y,w=g,E=g,A=o.apply(this,arguments)/2,C=A>Lr&&(r?+r.apply(this,arguments):Or(d*d+h*h)),_=_r(wr(h-d)/2,+n.apply(this,arguments)),P=_,O=_;if(C>Lr){var L=Nr(C/d*Pr(A)),I=Nr(C/h*Pr(A));(w-=2*L)>Lr?(v+=L*=m?1:-1,k-=L):(w=0,v=k=(f+y)/2),(E-=2*I)>Lr?(S+=I*=m?1:-1,T-=I):(E=0,S=T=(f+y)/2)}var D=h*Ar(S),M=h*Pr(S),N=d*Ar(k),F=d*Pr(k);if(_>Lr){var B,R=h*Ar(T),j=h*Pr(T),$=d*Ar(v),z=d*Pr(v);if(g<Ir)if(B=function(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,p=s-a,d=p*l-u*c;if(!(d*d<Lr))return[e+(d=(u*(t-a)-p*(e-i))/d)*l,t+d*c]}(D,M,$,z,R,j,N,F)){var K=D-B[0],U=M-B[1],q=R-B[0],W=j-B[1],Y=1/Pr(((p=(K*q+U*W)/(Or(K*K+U*U)*Or(q*q+W*W)))>1?0:p<-1?Ir:Math.acos(p))/2),H=Or(B[0]*B[0]+B[1]*B[1]);P=_r(_,(d-H)/(Y-1)),O=_r(_,(h-H)/(Y+1))}else P=O=0}E>Lr?O>Lr?(b=Vr($,z,D,M,h,O,m),x=Vr(R,j,N,F,h,O,m),s.moveTo(b.cx+b.x01,b.cy+b.y01),O<_?s.arc(b.cx,b.cy,O,Er(b.y01,b.x01),Er(x.y01,x.x01),!m):(s.arc(b.cx,b.cy,O,Er(b.y01,b.x01),Er(b.y11,b.x11),!m),s.arc(0,0,h,Er(b.cy+b.y11,b.cx+b.x11),Er(x.cy+x.y11,x.cx+x.x11),!m),s.arc(x.cx,x.cy,O,Er(x.y11,x.x11),Er(x.y01,x.x01),!m))):(s.moveTo(D,M),s.arc(0,0,h,S,T,!m)):s.moveTo(D,M),d>Lr&&w>Lr?P>Lr?(b=Vr(N,F,R,j,d,-P,m),x=Vr(D,M,$,z,d,-P,m),s.lineTo(b.cx+b.x01,b.cy+b.y01),P<_?s.arc(b.cx,b.cy,P,Er(b.y01,b.x01),Er(x.y01,x.x01),!m):(s.arc(b.cx,b.cy,P,Er(b.y01,b.x01),Er(b.y11,b.x11),!m),s.arc(0,0,d,Er(b.cy+b.y11,b.cx+b.x11),Er(x.cy+x.y11,x.cx+x.x11),m),s.arc(x.cx,x.cy,P,Er(x.y11,x.x11),Er(x.y01,x.x01),!m))):s.arc(0,0,d,k,v,m):s.lineTo(N,F)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ir/2;return[Ar(r)*n,Pr(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:kr(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:kr(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:kr(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:kr(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:kr(+e),c):i},c.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:kr(+e),c):a},c.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:kr(+e),c):o},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}function Gr(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Zr(e){this._context=e}function Jr(e){return new Zr(e)}function Qr(e){return e[0]}function ei(e){return e[1]}function ti(e,t){var n=kr(!0),r=null,i=Jr,a=null,o=Kr(s);function s(s){var l,c,u,p=(s=Gr(s)).length,d=!1;for(null==r&&(a=i(u=o())),l=0;l<=p;++l)!(l<p&&n(c=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(c,l,s),+t(c,l,s));if(u)return a=null,u+""||null}return e="function"==typeof e?e:void 0===e?Qr:kr(e),t="function"==typeof t?t:void 0===t?ei:kr(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:kr(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:kr(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:kr(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=r&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(null==e?r=a=null:a=i(r=e),s):r},s}function ni(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function ri(e){return e}function ii(){var e=ri,t=ni,n=null,r=kr(0),i=kr(Mr),a=kr(0);function o(o){var s,l,c,u,p,d=(o=Gr(o)).length,h=0,f=new Array(d),y=new Array(d),g=+r.apply(this,arguments),m=Math.min(Mr,Math.max(-Mr,i.apply(this,arguments)-g)),b=Math.min(Math.abs(m)/d,a.apply(this,arguments)),x=b*(m<0?-1:1);for(s=0;s<d;++s)(p=y[f[s]=s]=+e(o[s],s,o))>0&&(h+=p);for(null!=t?f.sort((function(e,n){return t(y[e],y[n])})):null!=n&&f.sort((function(e,t){return n(o[e],o[t])})),s=0,c=h?(m-d*x)/h:0;s<d;++s,g=u)l=f[s],u=g+((p=y[l])>0?p*c:0)+x,y[l]={data:o[l],index:s,value:p,startAngle:g,endAngle:u,padAngle:b};return y}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:kr(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:kr(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:kr(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:kr(+e),o):a},o}function ai(){}function oi(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function si(e){this._context=e}function li(e){return new si(e)}function ci(e){this._context=e}function ui(e){return new ci(e)}function pi(e){this._context=e}function di(e){return new pi(e)}zr.prototype,Array.prototype.slice,Zr.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},si.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:oi(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:oi(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ci.prototype={areaStart:ai,areaEnd:ai,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:oi(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},pi.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:oi(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class hi{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function fi(e){return new hi(e,!0)}function yi(e){return new hi(e,!1)}function gi(e,t){this._basis=new si(e),this._beta=t}gi.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*o),this._beta*t[l]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const mi=function e(t){function n(e){return 1===t?new si(e):new gi(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function bi(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function xi(e,t){this._context=e,this._k=(1-t)/6}xi.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:bi(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:bi(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Si=function e(t){function n(e){return new xi(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ti(e,t){this._context=e,this._k=(1-t)/6}Ti.prototype={areaStart:ai,areaEnd:ai,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bi(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const vi=function e(t){function n(e){return new Ti(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ki(e,t){this._context=e,this._k=(1-t)/6}ki.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bi(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const wi=function e(t){function n(e){return new ki(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ei(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Lr){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Lr){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Ai(e,t){this._context=e,this._alpha=t}Ai.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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ei(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ci=function e(t){function n(e){return t?new Ai(e,t):new xi(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function _i(e,t){this._context=e,this._alpha=t}_i.prototype={areaStart:ai,areaEnd:ai,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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ei(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Pi=function e(t){function n(e){return t?new _i(e,t):new Ti(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Oi(e,t){this._context=e,this._alpha=t}Oi.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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:Ei(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Li=function e(t){function n(e){return t?new Oi(e,t):new ki(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ii(e){this._context=e}function Di(e){return new Ii(e)}function Mi(e){return e<0?-1:1}function Ni(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Mi(a)+Mi(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Fi(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Bi(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Ri(e){this._context=e}function ji(e){this._context=new $i(e)}function $i(e){this._context=e}function zi(e){return new Ri(e)}function Ki(e){return new ji(e)}function Ui(e){this._context=e}function qi(e){var t,n,r=e.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Wi(e){return new Ui(e)}function Yi(e,t){this._context=e,this._t=t}function Hi(e){return new Yi(e,.5)}function Vi(e){return new Yi(e,0)}function Xi(e){return new Yi(e,1)}Ii.prototype={areaStart:ai,areaEnd:ai,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Ri.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:Bi(this,this._t0,Fi(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Bi(this,Fi(this,n=Ni(this,e,t)),n);break;default:Bi(this,this._t0,n=Ni(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(ji.prototype=Object.create(Ri.prototype)).point=function(e,t){Ri.prototype.point.call(this,t,e)},$i.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}},Ui.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=qi(e),i=qi(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Yi.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},n(8324)},69538:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,g:()=>r});var r="http://www.w3.org/1999/xhtml";const i={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},69740:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(24586);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},69820:(e,t,n)=>{"use strict";function r(){}n.d(t,{ok:()=>r})},71140:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Object.prototype;const i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},72148:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(49390);const i=Symbol(),a=Symbol();function o(e,t,n){if(!e)return!1;const s=r.VISITOR_KEYS[e.type];if(!s)return!1;const l=t(e,n=n||{});if(void 0!==l)switch(l){case i:return!1;case a:return!0}for(const r of s){const i=e[r];if(i)if(Array.isArray(i)){for(const e of i)if(o(e,t,n))return!0}else if(o(i,t,n))return!0}return!1}o.skip=i,o.stop=a},72591:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},o=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=a[c]||0,p="".concat(c," ").concat(u);a[c]=u+1;var d=n(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var f=i(h,r);r.byIndex=s,t.splice(s,0,{identifier:p,updater:f,references:1})}o.push(p)}return o}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var a=r(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var s=n(a[o]);t[s].references--}for(var l=r(e,i),c=0;c<a.length;c++){var u=n(a[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=l}}},73289:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertAccessor=function(e,t){a("Accessor",e,t)},t.assertAnyTypeAnnotation=function(e,t){a("AnyTypeAnnotation",e,t)},t.assertArgumentPlaceholder=function(e,t){a("ArgumentPlaceholder",e,t)},t.assertArrayExpression=function(e,t){a("ArrayExpression",e,t)},t.assertArrayPattern=function(e,t){a("ArrayPattern",e,t)},t.assertArrayTypeAnnotation=function(e,t){a("ArrayTypeAnnotation",e,t)},t.assertArrowFunctionExpression=function(e,t){a("ArrowFunctionExpression",e,t)},t.assertAssignmentExpression=function(e,t){a("AssignmentExpression",e,t)},t.assertAssignmentPattern=function(e,t){a("AssignmentPattern",e,t)},t.assertAwaitExpression=function(e,t){a("AwaitExpression",e,t)},t.assertBigIntLiteral=function(e,t){a("BigIntLiteral",e,t)},t.assertBinary=function(e,t){a("Binary",e,t)},t.assertBinaryExpression=function(e,t){a("BinaryExpression",e,t)},t.assertBindExpression=function(e,t){a("BindExpression",e,t)},t.assertBlock=function(e,t){a("Block",e,t)},t.assertBlockParent=function(e,t){a("BlockParent",e,t)},t.assertBlockStatement=function(e,t){a("BlockStatement",e,t)},t.assertBooleanLiteral=function(e,t){a("BooleanLiteral",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t){a("BooleanLiteralTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t){a("BooleanTypeAnnotation",e,t)},t.assertBreakStatement=function(e,t){a("BreakStatement",e,t)},t.assertCallExpression=function(e,t){a("CallExpression",e,t)},t.assertCatchClause=function(e,t){a("CatchClause",e,t)},t.assertClass=function(e,t){a("Class",e,t)},t.assertClassAccessorProperty=function(e,t){a("ClassAccessorProperty",e,t)},t.assertClassBody=function(e,t){a("ClassBody",e,t)},t.assertClassDeclaration=function(e,t){a("ClassDeclaration",e,t)},t.assertClassExpression=function(e,t){a("ClassExpression",e,t)},t.assertClassImplements=function(e,t){a("ClassImplements",e,t)},t.assertClassMethod=function(e,t){a("ClassMethod",e,t)},t.assertClassPrivateMethod=function(e,t){a("ClassPrivateMethod",e,t)},t.assertClassPrivateProperty=function(e,t){a("ClassPrivateProperty",e,t)},t.assertClassProperty=function(e,t){a("ClassProperty",e,t)},t.assertCompletionStatement=function(e,t){a("CompletionStatement",e,t)},t.assertConditional=function(e,t){a("Conditional",e,t)},t.assertConditionalExpression=function(e,t){a("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t){a("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t){a("DebuggerStatement",e,t)},t.assertDecimalLiteral=function(e,t){a("DecimalLiteral",e,t)},t.assertDeclaration=function(e,t){a("Declaration",e,t)},t.assertDeclareClass=function(e,t){a("DeclareClass",e,t)},t.assertDeclareExportAllDeclaration=function(e,t){a("DeclareExportAllDeclaration",e,t)},t.assertDeclareExportDeclaration=function(e,t){a("DeclareExportDeclaration",e,t)},t.assertDeclareFunction=function(e,t){a("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t){a("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t){a("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t){a("DeclareModuleExports",e,t)},t.assertDeclareOpaqueType=function(e,t){a("DeclareOpaqueType",e,t)},t.assertDeclareTypeAlias=function(e,t){a("DeclareTypeAlias",e,t)},t.assertDeclareVariable=function(e,t){a("DeclareVariable",e,t)},t.assertDeclaredPredicate=function(e,t){a("DeclaredPredicate",e,t)},t.assertDecorator=function(e,t){a("Decorator",e,t)},t.assertDirective=function(e,t){a("Directive",e,t)},t.assertDirectiveLiteral=function(e,t){a("DirectiveLiteral",e,t)},t.assertDoExpression=function(e,t){a("DoExpression",e,t)},t.assertDoWhileStatement=function(e,t){a("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t){a("EmptyStatement",e,t)},t.assertEmptyTypeAnnotation=function(e,t){a("EmptyTypeAnnotation",e,t)},t.assertEnumBody=function(e,t){a("EnumBody",e,t)},t.assertEnumBooleanBody=function(e,t){a("EnumBooleanBody",e,t)},t.assertEnumBooleanMember=function(e,t){a("EnumBooleanMember",e,t)},t.assertEnumDeclaration=function(e,t){a("EnumDeclaration",e,t)},t.assertEnumDefaultedMember=function(e,t){a("EnumDefaultedMember",e,t)},t.assertEnumMember=function(e,t){a("EnumMember",e,t)},t.assertEnumNumberBody=function(e,t){a("EnumNumberBody",e,t)},t.assertEnumNumberMember=function(e,t){a("EnumNumberMember",e,t)},t.assertEnumStringBody=function(e,t){a("EnumStringBody",e,t)},t.assertEnumStringMember=function(e,t){a("EnumStringMember",e,t)},t.assertEnumSymbolBody=function(e,t){a("EnumSymbolBody",e,t)},t.assertExistsTypeAnnotation=function(e,t){a("ExistsTypeAnnotation",e,t)},t.assertExportAllDeclaration=function(e,t){a("ExportAllDeclaration",e,t)},t.assertExportDeclaration=function(e,t){a("ExportDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t){a("ExportDefaultDeclaration",e,t)},t.assertExportDefaultSpecifier=function(e,t){a("ExportDefaultSpecifier",e,t)},t.assertExportNamedDeclaration=function(e,t){a("ExportNamedDeclaration",e,t)},t.assertExportNamespaceSpecifier=function(e,t){a("ExportNamespaceSpecifier",e,t)},t.assertExportSpecifier=function(e,t){a("ExportSpecifier",e,t)},t.assertExpression=function(e,t){a("Expression",e,t)},t.assertExpressionStatement=function(e,t){a("ExpressionStatement",e,t)},t.assertExpressionWrapper=function(e,t){a("ExpressionWrapper",e,t)},t.assertFile=function(e,t){a("File",e,t)},t.assertFlow=function(e,t){a("Flow",e,t)},t.assertFlowBaseAnnotation=function(e,t){a("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t){a("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t){a("FlowPredicate",e,t)},t.assertFlowType=function(e,t){a("FlowType",e,t)},t.assertFor=function(e,t){a("For",e,t)},t.assertForInStatement=function(e,t){a("ForInStatement",e,t)},t.assertForOfStatement=function(e,t){a("ForOfStatement",e,t)},t.assertForStatement=function(e,t){a("ForStatement",e,t)},t.assertForXStatement=function(e,t){a("ForXStatement",e,t)},t.assertFunction=function(e,t){a("Function",e,t)},t.assertFunctionDeclaration=function(e,t){a("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t){a("FunctionExpression",e,t)},t.assertFunctionParent=function(e,t){a("FunctionParent",e,t)},t.assertFunctionTypeAnnotation=function(e,t){a("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t){a("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t){a("GenericTypeAnnotation",e,t)},t.assertIdentifier=function(e,t){a("Identifier",e,t)},t.assertIfStatement=function(e,t){a("IfStatement",e,t)},t.assertImmutable=function(e,t){a("Immutable",e,t)},t.assertImport=function(e,t){a("Import",e,t)},t.assertImportAttribute=function(e,t){a("ImportAttribute",e,t)},t.assertImportDeclaration=function(e,t){a("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t){a("ImportDefaultSpecifier",e,t)},t.assertImportExpression=function(e,t){a("ImportExpression",e,t)},t.assertImportNamespaceSpecifier=function(e,t){a("ImportNamespaceSpecifier",e,t)},t.assertImportOrExportDeclaration=function(e,t){a("ImportOrExportDeclaration",e,t)},t.assertImportSpecifier=function(e,t){a("ImportSpecifier",e,t)},t.assertIndexedAccessType=function(e,t){a("IndexedAccessType",e,t)},t.assertInferredPredicate=function(e,t){a("InferredPredicate",e,t)},t.assertInterfaceDeclaration=function(e,t){a("InterfaceDeclaration",e,t)},t.assertInterfaceExtends=function(e,t){a("InterfaceExtends",e,t)},t.assertInterfaceTypeAnnotation=function(e,t){a("InterfaceTypeAnnotation",e,t)},t.assertInterpreterDirective=function(e,t){a("InterpreterDirective",e,t)},t.assertIntersectionTypeAnnotation=function(e,t){a("IntersectionTypeAnnotation",e,t)},t.assertJSX=function(e,t){a("JSX",e,t)},t.assertJSXAttribute=function(e,t){a("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t){a("JSXClosingElement",e,t)},t.assertJSXClosingFragment=function(e,t){a("JSXClosingFragment",e,t)},t.assertJSXElement=function(e,t){a("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t){a("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t){a("JSXExpressionContainer",e,t)},t.assertJSXFragment=function(e,t){a("JSXFragment",e,t)},t.assertJSXIdentifier=function(e,t){a("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t){a("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t){a("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t){a("JSXOpeningElement",e,t)},t.assertJSXOpeningFragment=function(e,t){a("JSXOpeningFragment",e,t)},t.assertJSXSpreadAttribute=function(e,t){a("JSXSpreadAttribute",e,t)},t.assertJSXSpreadChild=function(e,t){a("JSXSpreadChild",e,t)},t.assertJSXText=function(e,t){a("JSXText",e,t)},t.assertLVal=function(e,t){a("LVal",e,t)},t.assertLabeledStatement=function(e,t){a("LabeledStatement",e,t)},t.assertLiteral=function(e,t){a("Literal",e,t)},t.assertLogicalExpression=function(e,t){a("LogicalExpression",e,t)},t.assertLoop=function(e,t){a("Loop",e,t)},t.assertMemberExpression=function(e,t){a("MemberExpression",e,t)},t.assertMetaProperty=function(e,t){a("MetaProperty",e,t)},t.assertMethod=function(e,t){a("Method",e,t)},t.assertMiscellaneous=function(e,t){a("Miscellaneous",e,t)},t.assertMixedTypeAnnotation=function(e,t){a("MixedTypeAnnotation",e,t)},t.assertModuleDeclaration=function(e,t){(0,i.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),a("ModuleDeclaration",e,t)},t.assertModuleExpression=function(e,t){a("ModuleExpression",e,t)},t.assertModuleSpecifier=function(e,t){a("ModuleSpecifier",e,t)},t.assertNewExpression=function(e,t){a("NewExpression",e,t)},t.assertNoop=function(e,t){a("Noop",e,t)},t.assertNullLiteral=function(e,t){a("NullLiteral",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t){a("NullLiteralTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t){a("NullableTypeAnnotation",e,t)},t.assertNumberLiteral=function(e,t){(0,i.default)("assertNumberLiteral","assertNumericLiteral"),a("NumberLiteral",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t){a("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t){a("NumberTypeAnnotation",e,t)},t.assertNumericLiteral=function(e,t){a("NumericLiteral",e,t)},t.assertObjectExpression=function(e,t){a("ObjectExpression",e,t)},t.assertObjectMember=function(e,t){a("ObjectMember",e,t)},t.assertObjectMethod=function(e,t){a("ObjectMethod",e,t)},t.assertObjectPattern=function(e,t){a("ObjectPattern",e,t)},t.assertObjectProperty=function(e,t){a("ObjectProperty",e,t)},t.assertObjectTypeAnnotation=function(e,t){a("ObjectTypeAnnotation",e,t)},t.assertObjectTypeCallProperty=function(e,t){a("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t){a("ObjectTypeIndexer",e,t)},t.assertObjectTypeInternalSlot=function(e,t){a("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeProperty=function(e,t){a("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t){a("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t){a("OpaqueType",e,t)},t.assertOptionalCallExpression=function(e,t){a("OptionalCallExpression",e,t)},t.assertOptionalIndexedAccessType=function(e,t){a("OptionalIndexedAccessType",e,t)},t.assertOptionalMemberExpression=function(e,t){a("OptionalMemberExpression",e,t)},t.assertParenthesizedExpression=function(e,t){a("ParenthesizedExpression",e,t)},t.assertPattern=function(e,t){a("Pattern",e,t)},t.assertPatternLike=function(e,t){a("PatternLike",e,t)},t.assertPipelineBareFunction=function(e,t){a("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t){a("PipelinePrimaryTopicReference",e,t)},t.assertPipelineTopicExpression=function(e,t){a("PipelineTopicExpression",e,t)},t.assertPlaceholder=function(e,t){a("Placeholder",e,t)},t.assertPrivate=function(e,t){a("Private",e,t)},t.assertPrivateName=function(e,t){a("PrivateName",e,t)},t.assertProgram=function(e,t){a("Program",e,t)},t.assertProperty=function(e,t){a("Property",e,t)},t.assertPureish=function(e,t){a("Pureish",e,t)},t.assertQualifiedTypeIdentifier=function(e,t){a("QualifiedTypeIdentifier",e,t)},t.assertRecordExpression=function(e,t){a("RecordExpression",e,t)},t.assertRegExpLiteral=function(e,t){a("RegExpLiteral",e,t)},t.assertRegexLiteral=function(e,t){(0,i.default)("assertRegexLiteral","assertRegExpLiteral"),a("RegexLiteral",e,t)},t.assertRestElement=function(e,t){a("RestElement",e,t)},t.assertRestProperty=function(e,t){(0,i.default)("assertRestProperty","assertRestElement"),a("RestProperty",e,t)},t.assertReturnStatement=function(e,t){a("ReturnStatement",e,t)},t.assertScopable=function(e,t){a("Scopable",e,t)},t.assertSequenceExpression=function(e,t){a("SequenceExpression",e,t)},t.assertSpreadElement=function(e,t){a("SpreadElement",e,t)},t.assertSpreadProperty=function(e,t){(0,i.default)("assertSpreadProperty","assertSpreadElement"),a("SpreadProperty",e,t)},t.assertStandardized=function(e,t){a("Standardized",e,t)},t.assertStatement=function(e,t){a("Statement",e,t)},t.assertStaticBlock=function(e,t){a("StaticBlock",e,t)},t.assertStringLiteral=function(e,t){a("StringLiteral",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t){a("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t){a("StringTypeAnnotation",e,t)},t.assertSuper=function(e,t){a("Super",e,t)},t.assertSwitchCase=function(e,t){a("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t){a("SwitchStatement",e,t)},t.assertSymbolTypeAnnotation=function(e,t){a("SymbolTypeAnnotation",e,t)},t.assertTSAnyKeyword=function(e,t){a("TSAnyKeyword",e,t)},t.assertTSArrayType=function(e,t){a("TSArrayType",e,t)},t.assertTSAsExpression=function(e,t){a("TSAsExpression",e,t)},t.assertTSBaseType=function(e,t){a("TSBaseType",e,t)},t.assertTSBigIntKeyword=function(e,t){a("TSBigIntKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t){a("TSBooleanKeyword",e,t)},t.assertTSCallSignatureDeclaration=function(e,t){a("TSCallSignatureDeclaration",e,t)},t.assertTSConditionalType=function(e,t){a("TSConditionalType",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t){a("TSConstructSignatureDeclaration",e,t)},t.assertTSConstructorType=function(e,t){a("TSConstructorType",e,t)},t.assertTSDeclareFunction=function(e,t){a("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t){a("TSDeclareMethod",e,t)},t.assertTSEntityName=function(e,t){a("TSEntityName",e,t)},t.assertTSEnumBody=function(e,t){a("TSEnumBody",e,t)},t.assertTSEnumDeclaration=function(e,t){a("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t){a("TSEnumMember",e,t)},t.assertTSExportAssignment=function(e,t){a("TSExportAssignment",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t){a("TSExpressionWithTypeArguments",e,t)},t.assertTSExternalModuleReference=function(e,t){a("TSExternalModuleReference",e,t)},t.assertTSFunctionType=function(e,t){a("TSFunctionType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t){a("TSImportEqualsDeclaration",e,t)},t.assertTSImportType=function(e,t){a("TSImportType",e,t)},t.assertTSIndexSignature=function(e,t){a("TSIndexSignature",e,t)},t.assertTSIndexedAccessType=function(e,t){a("TSIndexedAccessType",e,t)},t.assertTSInferType=function(e,t){a("TSInferType",e,t)},t.assertTSInstantiationExpression=function(e,t){a("TSInstantiationExpression",e,t)},t.assertTSInterfaceBody=function(e,t){a("TSInterfaceBody",e,t)},t.assertTSInterfaceDeclaration=function(e,t){a("TSInterfaceDeclaration",e,t)},t.assertTSIntersectionType=function(e,t){a("TSIntersectionType",e,t)},t.assertTSIntrinsicKeyword=function(e,t){a("TSIntrinsicKeyword",e,t)},t.assertTSLiteralType=function(e,t){a("TSLiteralType",e,t)},t.assertTSMappedType=function(e,t){a("TSMappedType",e,t)},t.assertTSMethodSignature=function(e,t){a("TSMethodSignature",e,t)},t.assertTSModuleBlock=function(e,t){a("TSModuleBlock",e,t)},t.assertTSModuleDeclaration=function(e,t){a("TSModuleDeclaration",e,t)},t.assertTSNamedTupleMember=function(e,t){a("TSNamedTupleMember",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t){a("TSNamespaceExportDeclaration",e,t)},t.assertTSNeverKeyword=function(e,t){a("TSNeverKeyword",e,t)},t.assertTSNonNullExpression=function(e,t){a("TSNonNullExpression",e,t)},t.assertTSNullKeyword=function(e,t){a("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t){a("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t){a("TSObjectKeyword",e,t)},t.assertTSOptionalType=function(e,t){a("TSOptionalType",e,t)},t.assertTSParameterProperty=function(e,t){a("TSParameterProperty",e,t)},t.assertTSParenthesizedType=function(e,t){a("TSParenthesizedType",e,t)},t.assertTSPropertySignature=function(e,t){a("TSPropertySignature",e,t)},t.assertTSQualifiedName=function(e,t){a("TSQualifiedName",e,t)},t.assertTSRestType=function(e,t){a("TSRestType",e,t)},t.assertTSSatisfiesExpression=function(e,t){a("TSSatisfiesExpression",e,t)},t.assertTSStringKeyword=function(e,t){a("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t){a("TSSymbolKeyword",e,t)},t.assertTSTemplateLiteralType=function(e,t){a("TSTemplateLiteralType",e,t)},t.assertTSThisType=function(e,t){a("TSThisType",e,t)},t.assertTSTupleType=function(e,t){a("TSTupleType",e,t)},t.assertTSType=function(e,t){a("TSType",e,t)},t.assertTSTypeAliasDeclaration=function(e,t){a("TSTypeAliasDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t){a("TSTypeAnnotation",e,t)},t.assertTSTypeAssertion=function(e,t){a("TSTypeAssertion",e,t)},t.assertTSTypeElement=function(e,t){a("TSTypeElement",e,t)},t.assertTSTypeLiteral=function(e,t){a("TSTypeLiteral",e,t)},t.assertTSTypeOperator=function(e,t){a("TSTypeOperator",e,t)},t.assertTSTypeParameter=function(e,t){a("TSTypeParameter",e,t)},t.assertTSTypeParameterDeclaration=function(e,t){a("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameterInstantiation=function(e,t){a("TSTypeParameterInstantiation",e,t)},t.assertTSTypePredicate=function(e,t){a("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t){a("TSTypeQuery",e,t)},t.assertTSTypeReference=function(e,t){a("TSTypeReference",e,t)},t.assertTSUndefinedKeyword=function(e,t){a("TSUndefinedKeyword",e,t)},t.assertTSUnionType=function(e,t){a("TSUnionType",e,t)},t.assertTSUnknownKeyword=function(e,t){a("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t){a("TSVoidKeyword",e,t)},t.assertTaggedTemplateExpression=function(e,t){a("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t){a("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t){a("TemplateLiteral",e,t)},t.assertTerminatorless=function(e,t){a("Terminatorless",e,t)},t.assertThisExpression=function(e,t){a("ThisExpression",e,t)},t.assertThisTypeAnnotation=function(e,t){a("ThisTypeAnnotation",e,t)},t.assertThrowStatement=function(e,t){a("ThrowStatement",e,t)},t.assertTopicReference=function(e,t){a("TopicReference",e,t)},t.assertTryStatement=function(e,t){a("TryStatement",e,t)},t.assertTupleExpression=function(e,t){a("TupleExpression",e,t)},t.assertTupleTypeAnnotation=function(e,t){a("TupleTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t){a("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t){a("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t){a("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t){a("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t){a("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t){a("TypeParameterInstantiation",e,t)},t.assertTypeScript=function(e,t){a("TypeScript",e,t)},t.assertTypeofTypeAnnotation=function(e,t){a("TypeofTypeAnnotation",e,t)},t.assertUnaryExpression=function(e,t){a("UnaryExpression",e,t)},t.assertUnaryLike=function(e,t){a("UnaryLike",e,t)},t.assertUnionTypeAnnotation=function(e,t){a("UnionTypeAnnotation",e,t)},t.assertUpdateExpression=function(e,t){a("UpdateExpression",e,t)},t.assertUserWhitespacable=function(e,t){a("UserWhitespacable",e,t)},t.assertV8IntrinsicIdentifier=function(e,t){a("V8IntrinsicIdentifier",e,t)},t.assertVariableDeclaration=function(e,t){a("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t){a("VariableDeclarator",e,t)},t.assertVariance=function(e,t){a("Variance",e,t)},t.assertVoidTypeAnnotation=function(e,t){a("VoidTypeAnnotation",e,t)},t.assertWhile=function(e,t){a("While",e,t)},t.assertWhileStatement=function(e,t){a("WhileStatement",e,t)},t.assertWithStatement=function(e,t){a("WithStatement",e,t)},t.assertYieldExpression=function(e,t){a("YieldExpression",e,t)};var r=n(80947),i=n(50231);function a(e,t,n){if(!(0,r.default)(e,t,n))throw new Error(`Expected type "${e}" with option ${JSON.stringify(n)}, but instead got "${t.type}".`)}},73335:(e,t,n)=>{"use strict";var r=n(18769),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},73656:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},73890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.COMMENT_KEYS.forEach((t=>{e[t]=null})),e};var r=n(79897)},74014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var r=n(65183);const i=t.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],a=t.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const e of i){const t=r.ALIAS_KEYS[e];null!=t&&t.length&&(a[e]=t)}const o=t.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(a).forEach((e=>{a[e].forEach((t=>{hasOwnProperty.call(o,t)||(o[t]=[]),o[t].push(e)}))}))},74269:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(66197);function i(e,t,n,i){let a,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,a=n):(o=t,s=n,a=i),(0,r.VG)(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)}),a)}},74650:(e,t,n)=>{"use strict";function r(e){return"children"in e?a(e):"value"in e?e.value:""}function i(e){return"text"===e.type?e.value:"children"in e?a(e):""}function a(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=i(e.children[t]);return n.join("")}n.d(t,{d:()=>r})},74720:(e,t,n)=>{"use strict";function r(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}n.d(t,{A:()=>r})},74780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1)};var r=n(16812)},75992:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(68282),i=n(97342),a=n(88748),o=n(96956),s=n(31475),l=n(34517),c=n(71140),u=n(92888),p=Object.prototype.hasOwnProperty;const d=function(e){if(null==e)return!0;if((0,s.A)(e)&&((0,o.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,l.A)(e)||(0,u.A)(e)||(0,a.A)(e)))return!e.length;var t=(0,i.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,c.A)(e))return!(0,r.A)(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},76124:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(99271),i=n(26979),a=Object.prototype.hasOwnProperty;const o=function(e,t,n){var o=e[t];a.call(e,t)&&(0,i.A)(o,n)&&(void 0!==n||t in e)||(0,r.A)(e,t,n)}},76977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},77252:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(88748),i=n(96956),a=n(34517),o=n(85378),s=n(92888),l=Object.prototype.hasOwnProperty;const c=function(e,t){var n=(0,i.A)(e),c=!n&&(0,r.A)(e),u=!n&&!c&&(0,a.A)(e),p=!n&&!c&&!u&&(0,s.A)(e),d=n||c||u||p,h=d?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],f=h.length;for(var y in e)!t&&!l.call(e,y)||d&&("length"==y||u&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||(0,o.A)(y,f))||h.push(y);return h}},77877:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>S,Gw:()=>E,Q1:()=>i,Qh:()=>w,b:()=>k});var r=n(2460);function i(){}var a=.7,o=1/a,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,p=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),d=new RegExp(`^rgb\\(${c},${c},${c}\\)$`),h=new RegExp(`^rgba\\(${s},${s},${s},${l}\\)$`),f=new RegExp(`^rgba\\(${c},${c},${c},${l}\\)$`),y=new RegExp(`^hsl\\(${l},${c},${c}\\)$`),g=new RegExp(`^hsla\\(${l},${c},${c},${l}\\)$`),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function S(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=u.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?T(t):3===n?new E(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?v(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?v(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=p.exec(e))?new E(t[1],t[2],t[3],1):(t=d.exec(e))?new E(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?v(t[1],t[2],t[3],t[4]):(t=f.exec(e))?v(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=y.exec(e))?L(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?L(t[1],t[2]/100,t[3]/100,t[4]):m.hasOwnProperty(e)?T(m[e]):"transparent"===e?new E(NaN,NaN,NaN,0):null}function T(e){return new E(e>>16&255,e>>8&255,255&e,1)}function v(e,t,n,r){return r<=0&&(e=t=n=NaN),new E(e,t,n,r)}function k(e){return e instanceof i||(e=S(e)),e?new E((e=e.rgb()).r,e.g,e.b,e.opacity):new E}function w(e,t,n,r){return 1===arguments.length?k(e):new E(e,t,n,null==r?1:r)}function E(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function A(){return`#${O(this.r)}${O(this.g)}${O(this.b)}`}function C(){const e=_(this.opacity);return`${1===e?"rgb(":"rgba("}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${1===e?")":`, ${e})`}`}function _(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function P(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function O(e){return((e=P(e))<16?"0":"")+e.toString(16)}function L(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new D(e,t,n,r)}function I(e){if(e instanceof D)return new D(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=S(e)),!e)return new D;if(e instanceof D)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,l=o-a,c=(o+a)/2;return l?(s=t===o?(n-r)/l+6*(n<r):n===o?(r-t)/l+2:(t-n)/l+4,l/=c<.5?o+a:2-o-a,s*=60):l=c>0&&c<1?0:s,new D(s,l,c,e.opacity)}function D(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function M(e){return(e=(e||0)%360)<0?e+360:e}function N(e){return Math.max(0,Math.min(1,e||0))}function F(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}(0,r.A)(i,S,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:b,formatHex:b,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return I(this).formatHsl()},formatRgb:x,toString:x}),(0,r.A)(E,w,(0,r.X)(i,{brighter(e){return e=null==e?o:Math.pow(o,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?a:Math.pow(a,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new E(P(this.r),P(this.g),P(this.b),_(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:A,formatHex:A,formatHex8:function(){return`#${O(this.r)}${O(this.g)}${O(this.b)}${O(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:C,toString:C})),(0,r.A)(D,(function(e,t,n,r){return 1===arguments.length?I(e):new D(e,t,n,null==r?1:r)}),(0,r.X)(i,{brighter(e){return e=null==e?o:Math.pow(o,e),new D(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?a:Math.pow(a,e),new D(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new E(F(e>=240?e-240:e+120,i,r),F(e,i,r),F(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new D(M(this.h),N(this.s),N(this.l),_(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=_(this.opacity);return`${1===e?"hsl(":"hsla("}${M(this.h)}, ${100*N(this.s)}%, ${100*N(this.l)}%${1===e?")":`, ${e})`}`}}))},78052:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15937));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),a="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,i=e.value;a?t(r,i,e):i&&((n=n||{})[r]=i)}})),n}},78126:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){return"string"==typeof e&&((!t||!(0,r.isKeyword)(e)&&!(0,r.isStrictReservedWord)(e,!0))&&(0,r.isIdentifierName)(e))};var r=n(14007)},79897:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const n=t.LOGICAL_OPERATORS=["||","&&","??"],r=(t.UPDATE_OPERATORS=["++","--"],t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="]),i=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],a=t.COMPARISON_BINARY_OPERATORS=[...i,"in","instanceof"],o=t.BOOLEAN_BINARY_OPERATORS=[...a,...r],s=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...s,...o,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...s.map((e=>e+"=")),...n.map((e=>e+"="))],t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),c=t.NUMBER_UNARY_OPERATORS=["+","-","~"],u=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...c,...u],t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},80084:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},80672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readCodePoint=c,t.readInt=l,t.readStringContents=function(e,t,n,r,i,s){const l=n,c=r,u=i;let p="",d=null,h=n;const{length:f}=t;for(;;){if(n>=f){s.unterminated(l,c,u),p+=t.slice(h,n);break}const y=t.charCodeAt(n);if(a(e,y,t,n)){p+=t.slice(h,n);break}if(92===y){p+=t.slice(h,n);const a=o(t,n,r,i,"template"===e,s);null!==a.ch||d?p+=a.ch:d={pos:n,lineStart:r,curLine:i},({pos:n,lineStart:r,curLine:i}=a),h=n}else 8232===y||8233===y?(++i,r=++n):10===y||13===y?"template"===e?(p+=t.slice(h,n)+"\n",++n,13===y&&10===t.charCodeAt(n)&&++n,++i,h=r=n):s.unterminated(l,c,u):++n}return{pos:n,str:p,firstInvalidLoc:d,lineStart:r,curLine:i,containsInvalid:!!d}};var n=function(e){return e>=48&&e<=57};const r={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},i={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function a(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function o(e,t,n,r,i,a){const o=!i;t++;const l=e=>({pos:t,ch:e,lineStart:n,curLine:r}),u=e.charCodeAt(t++);switch(u){case 110:return l("\n");case 114:return l("\r");case 120:{let i;return({code:i,pos:t}=s(e,t,n,r,2,!1,o,a)),l(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=c(e,t,n,r,o,a)),l(null===i?null:String.fromCodePoint(i))}case 116:return l("\t");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++r;case 8232:case 8233:return l("");case 56:case 57:if(i)return l(null);a.strictNumericEscape(t-1,n,r);default:if(u>=48&&u<=55){const o=t-1;let s=/^[0-7]+/.exec(e.slice(o,t+2))[0],c=parseInt(s,8);c>255&&(s=s.slice(0,-1),c=parseInt(s,8)),t+=s.length-1;const u=e.charCodeAt(t);if("0"!==s||56===u||57===u){if(i)return l(null);a.strictNumericEscape(o,n,r)}return l(String.fromCharCode(c))}return l(String.fromCharCode(u))}}function s(e,t,n,r,i,a,o,s){const c=t;let u;return({n:u,pos:t}=l(e,t,n,r,16,i,a,!1,s,!o)),null===u&&(o?s.invalidEscapeSequence(c,n,r):t=c-1),{code:u,pos:t}}function l(e,t,a,o,s,l,c,u,p,d){const h=t,f=16===s?r.hex:r.decBinOct,y=16===s?i.hex:10===s?i.dec:8===s?i.oct:i.bin;let g=!1,m=0;for(let r=0,i=null==l?1/0:l;r<i;++r){const r=e.charCodeAt(t);let i;if(95!==r||"bail"===u){if(i=r>=97?r-97+10:r>=65?r-65+10:n(r)?r-48:1/0,i>=s){if(i<=9&&d)return{n:null,pos:t};if(i<=9&&p.invalidDigit(t,a,o,s))i=0;else{if(!c)break;i=0,g=!0}}++t,m=m*s+i}else{const n=e.charCodeAt(t-1),r=e.charCodeAt(t+1);if(u){if(Number.isNaN(r)||!y(r)||f.has(n)||f.has(r)){if(d)return{n:null,pos:t};p.unexpectedNumericSeparator(t,a,o)}}else{if(d)return{n:null,pos:t};p.numericSeparatorInEscapeSequence(t,a,o)}++t}}return t===h||null!=l&&t-h!==l||g?{n:null,pos:t}:{n:m,pos:t}}function c(e,t,n,r,i,a){let o;if(123===e.charCodeAt(t)){if(++t,({code:o,pos:t}=s(e,t,n,r,e.indexOf("}",t)-t,!0,i,a)),++t,null!==o&&o>1114111){if(!i)return{code:null,pos:t};a.invalidCodePoint(t,n,r)}}else({code:o,pos:t}=s(e,t,n,r,4,!1,i,a));return{code:o,pos:t}}},80737:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=(0,n(90550).default)("React.Component");t.default=r},80947:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return!!t&&((0,i.default)(t.type,e)?void 0===n||(0,r.default)(t,n):!n&&"Placeholder"===t.type&&e in o.FLIPPED_ALIAS_KEYS&&(0,a.default)(t.expectedNode,e))};var r=n(86293),i=n(42379),a=n(33346),o=n(49390)},81034:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,lG:()=>a,uN:()=>o});var r=n(68233);function i(e,t){return function(n){return e+n*t}}function a(e,t){var n=t-e;return n?i(e,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.A)(isNaN(e)?t:e)}function o(e){return 1==(e=+e)?s:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):(0,r.A)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.A)(isNaN(e)?t:e)}},81310:(e,t,n)=>{"use strict";n.d(t,{G:()=>I});var r,i,a=n(97810),o=n(96514),s=0,l=0,c=0,u=0,p=0,d=0,h="object"==typeof performance&&performance.now?performance:Date,f="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function y(){return p||(f(g),p=h.now()+d)}function g(){p=0}function m(){this._call=this._time=this._next=null}function b(e,t,n){var r=new m;return r.restart(e,t,n),r}function x(){p=(u=h.now())+d,s=l=0;try{!function(){y(),++s;for(var e,t=r;t;)(e=p-t._time)>=0&&t._call.call(void 0,e),t=t._next;--s}()}finally{s=0,function(){for(var e,t,n=r,a=1/0;n;)n._call?(a>n._time&&(a=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);i=e,T(a)}(),p=0}}function S(){var e=h.now(),t=e-u;t>1e3&&(d-=t,u=e)}function T(e){s||(l&&(l=clearTimeout(l)),e-p>24?(e<1/0&&(l=setTimeout(x,e-h.now()-d)),c&&(c=clearInterval(c))):(c||(u=h.now(),c=setInterval(S,1e3)),s=1,f(x)))}function v(e,t,n){var r=new m;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}m.prototype=b.prototype={constructor:m,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?y():+n)+(null==t?0:+t),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=e,this._time=n,T()},stop:function(){this._call&&(this._call=null,this._time=1/0,T())}};var k=(0,o.A)("start","end","cancel","interrupt"),w=[],E=2,A=5,C=6;function _(e,t,n,r,i,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(l){var c,u,p,d;if(1!==n.state)return s();for(c in i)if((d=i[c]).name===n.name){if(3===d.state)return v(a);4===d.state?(d.state=C,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[c]):+c<t&&(d.state=C,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[c])}if(v((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))})),n.state=E,n.on.call("start",e,e.__data__,n.index,n.group),n.state===E){for(n.state=3,r=new Array(p=n.tween.length),c=0,u=-1;c<p;++c)(d=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=d);r.length=u+1}}function o(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=A,1),a=-1,o=r.length;++a<o;)r[a].call(e,i);n.state===A&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=C,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=b((function(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}),0,n.time)}(e,n,{name:t,index:r,group:i,on:k,tween:w,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function P(e,t){var n=L(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function O(e,t){var n=L(e,t);if(n.state>3)throw new Error("too late; already running");return n}function L(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function I(e,t){var n,r,i,a=e.__transition,o=!0;if(a){for(i in t=null==t?null:t+"",a)(n=a[i]).name===t?(r=n.state>E&&n.state<A,n.state=C,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete e.__transition}}var D,M=n(74720),N=180/Math.PI,F={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function B(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*N,skewX:Math.atan(l)*N,scaleX:o,scaleY:s}}function R(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(a,o){var s=[],l=[];return a=e(a),o=e(o),function(e,r,i,a,o,s){if(e!==i||r!==a){var l=o.push("translate(",null,t,null,n);s.push({i:l-4,x:(0,M.A)(e,i)},{i:l-2,x:(0,M.A)(r,a)})}else(i||a)&&o.push("translate("+i+t+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(e,t,n,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,M.A)(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(a.rotate,o.rotate,s,l),function(e,t,n,a){e!==t?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,M.A)(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(a.skewX,o.skewX,s,l),function(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:(0,M.A)(e,n)},{i:s-2,x:(0,M.A)(t,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(e){for(var t,n=-1,r=l.length;++n<r;)s[(t=l[n]).i]=t.x(e);return s.join("")}}}var j=R((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?F:B(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),$=R((function(e){return null==e?F:(D||(D=document.createElementNS("http://www.w3.org/2000/svg","g")),D.setAttribute("transform",e),(e=D.transform.baseVal.consolidate())?B((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):F)}),", ",")",")"),z=n(65399);function K(e,t){var n,r;return function(){var i=O(this,e),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===t){(r=r.slice()).splice(o,1);break}i.tween=r}}function U(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=O(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=s;break}l===c&&i.push(s)}a.tween=i}}function q(e,t,n){var r=e._id;return e.each((function(){var e=O(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return L(e,r).value[t]}}function W(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Y(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function H(){}var V=.7,X=1/V,G="\\s*([+-]?\\d+)\\s*",Z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",J="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q=/^#([0-9a-f]{3,8})$/,ee=new RegExp(`^rgb\\(${G},${G},${G}\\)$`),te=new RegExp(`^rgb\\(${J},${J},${J}\\)$`),ne=new RegExp(`^rgba\\(${G},${G},${G},${Z}\\)$`),re=new RegExp(`^rgba\\(${J},${J},${J},${Z}\\)$`),ie=new RegExp(`^hsl\\(${Z},${J},${J}\\)$`),ae=new RegExp(`^hsla\\(${Z},${J},${J},${Z}\\)$`),oe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function se(){return this.rgb().formatHex()}function le(){return this.rgb().formatRgb()}function ce(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Q.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ue(t):3===n?new de(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?pe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?pe(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ee.exec(e))?new de(t[1],t[2],t[3],1):(t=te.exec(e))?new de(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ne.exec(e))?pe(t[1],t[2],t[3],t[4]):(t=re.exec(e))?pe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ie.exec(e))?be(t[1],t[2]/100,t[3]/100,1):(t=ae.exec(e))?be(t[1],t[2]/100,t[3]/100,t[4]):oe.hasOwnProperty(e)?ue(oe[e]):"transparent"===e?new de(NaN,NaN,NaN,0):null}function ue(e){return new de(e>>16&255,e>>8&255,255&e,1)}function pe(e,t,n,r){return r<=0&&(e=t=n=NaN),new de(e,t,n,r)}function de(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function he(){return`#${me(this.r)}${me(this.g)}${me(this.b)}`}function fe(){const e=ye(this.opacity);return`${1===e?"rgb(":"rgba("}${ge(this.r)}, ${ge(this.g)}, ${ge(this.b)}${1===e?")":`, ${e})`}`}function ye(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ge(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function me(e){return((e=ge(e))<16?"0":"")+e.toString(16)}function be(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Se(e,t,n,r)}function xe(e){if(e instanceof Se)return new Se(e.h,e.s,e.l,e.opacity);if(e instanceof H||(e=ce(e)),!e)return new Se;if(e instanceof Se)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Se(o,s,l,e.opacity)}function Se(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Te(e){return(e=(e||0)%360)<0?e+360:e}function ve(e){return Math.max(0,Math.min(1,e||0))}function ke(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}W(H,ce,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:se,formatHex:se,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return xe(this).formatHsl()},formatRgb:le,toString:le}),W(de,(function(e,t,n,r){return 1===arguments.length?((i=e)instanceof H||(i=ce(i)),i?new de((i=i.rgb()).r,i.g,i.b,i.opacity):new de):new de(e,t,n,null==r?1:r);var i}),Y(H,{brighter(e){return e=null==e?X:Math.pow(X,e),new de(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?V:Math.pow(V,e),new de(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new de(ge(this.r),ge(this.g),ge(this.b),ye(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:he,formatHex:he,formatHex8:function(){return`#${me(this.r)}${me(this.g)}${me(this.b)}${me(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fe,toString:fe})),W(Se,(function(e,t,n,r){return 1===arguments.length?xe(e):new Se(e,t,n,null==r?1:r)}),Y(H,{brighter(e){return e=null==e?X:Math.pow(X,e),new Se(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?V:Math.pow(V,e),new Se(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new de(ke(e>=240?e-240:e+120,i,r),ke(e,i,r),ke(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Se(Te(this.h),ve(this.s),ve(this.l),ye(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ye(this.opacity);return`${1===e?"hsl(":"hsla("}${Te(this.h)}, ${100*ve(this.s)}%, ${100*ve(this.l)}%${1===e?")":`, ${e})`}`}}));var we=n(30561),Ee=n(61444);function Ae(e,t){var n;return("number"==typeof t?M.A:t instanceof ce?we.Ay:(n=ce(t))?(t=n,we.Ay):Ee.A)(e,t)}function Ce(e){return function(){this.removeAttribute(e)}}function _e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Pe(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttribute(e);return o===a?null:o===r?i:i=t(r=o,n)}}function Oe(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===a?null:o===r?i:i=t(r=o,n)}}function Le(e,t,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttribute(e))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=t(r=o,l));this.removeAttribute(e)}}function Ie(e,t,n){var r,i,a;return function(){var o,s,l=n(this);if(null!=l)return(o=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:o===r&&s===i?a:(i=s,a=t(r=o,l));this.removeAttributeNS(e.space,e.local)}}function De(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function Me(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function Ne(e,t){return function(){P(this,e).delay=+t.apply(this,arguments)}}function Fe(e,t){return t=+t,function(){P(this,e).delay=t}}function Be(e,t){return function(){O(this,e).duration=+t.apply(this,arguments)}}function Re(e,t){return t=+t,function(){O(this,e).duration=t}}var je=n(62474),$e=n(94715),ze=n(53972),Ke=a.Ay.prototype.constructor,Ue=n(45632);function qe(e){return function(){this.style.removeProperty(e)}}var We=0;function Ye(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function He(){return++We}var Ve=a.Ay.prototype;Ye.prototype=function(e){return(0,a.Ay)().transition(e)}.prototype={constructor:Ye,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,$e.A)(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,l,c=r[o],u=c.length,p=a[o]=new Array(u),d=0;d<u;++d)(s=c[d])&&(l=e.call(s,s.__data__,d,c))&&("__data__"in s&&(l.__data__=s.__data__),p[d]=l,_(p[d],t,n,d,p,L(s,n)));return new Ye(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,ze.A)(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,p=0;p<u;++p)if(l=c[p]){for(var d,h=e.call(l,l.__data__,p,c),f=L(l,n),y=0,g=h.length;y<g;++y)(d=h[y])&&_(d,t,n,y,h,f);a.push(h),o.push(l)}return new Ye(a,o,t,n)},selectChild:Ve.selectChild,selectChildren:Ve.selectChildren,filter:function(e){"function"!=typeof e&&(e=(0,je.A)(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a,o=t[i],s=o.length,l=r[i]=[],c=0;c<s;++c)(a=o[c])&&e.call(a,a.__data__,c,o)&&l.push(a);return new Ye(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var l,c=t[s],u=n[s],p=c.length,d=o[s]=new Array(p),h=0;h<p;++h)(l=c[h]||u[h])&&(d[h]=l);for(;s<r;++s)o[s]=t[s];return new Ye(o,this._parents,this._name,this._id)},selection:function(){return new Ke(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=He(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=L(o,t);_(o,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ye(r,this._parents,e,n)},call:Ve.call,nodes:Ve.nodes,node:Ve.node,size:Ve.size,empty:Ve.empty,each:Ve.each,on:function(e,t){var n=this._id;return arguments.length<2?L(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,a=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?P:O;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}(n,e,t))},attr:function(e,t){var n=(0,z.A)(e),r="transform"===n?$:Ae;return this.attrTween(e,"function"==typeof t?(n.local?Ie:Le)(n,r,q(this,"attr."+e,t)):null==t?(n.local?_e:Ce)(n):(n.local?Oe:Pe)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=(0,z.A)(e);return this.tween(n,(r.local?De:Me)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?j:Ae;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var a=(0,Ue.j)(this,e),o=(this.style.removeProperty(e),(0,Ue.j)(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}(e,r)).on("end.style."+e,qe(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,a;return function(){var o=(0,Ue.j)(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=(0,Ue.j)(this,e)),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}(e,r,q(this,"style."+e,t))).each(function(e,t){var n,r,i,a,o="style."+t,s="end."+o;return function(){var l=O(this,e),c=l.on,u=null==l.value[o]?a||(a=qe(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,a=n+"";return function(){var o=(0,Ue.j)(this,e);return o===a?null:o===r?i:i=t(r=o,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,a,n)),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(q(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=L(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===e)return r.value;return null}return this.each((null==t?K:U)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Ne:Fe)(t,e)):L(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Be:Re)(t,e)):L(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){O(this,e).ease=t}}(t,e)):L(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;O(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},l={value:function(){0==--i&&a()}};n.each((function(){var n=O(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t})),0===i&&a()}))},[Symbol.iterator]:Ve[Symbol.iterator]};var Xe={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Ge(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}a.Ay.prototype.interrupt=function(e){return this.each((function(){I(this,e)}))},a.Ay.prototype.transition=function(e){var t,n;e instanceof Ye?(t=e._id,e=e._name):(t=He(),(n=Xe).time=y(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],l=s.length,c=0;c<l;++c)(o=s[c])&&_(o,e,t,c,s,n||Ge(o,t));return new Ye(r,this._parents,e,t)}},81380:(e,t,n)=>{"use strict";n.d(t,{Mp:()=>Fe,vL:()=>X,AN:()=>ae,fp:()=>v,Sj:()=>P,fF:()=>ze,PM:()=>$e,zM:()=>qe,MS:()=>g,FR:()=>m});var r=n(18769),i=n.n(r),a=n(59435),o=n(56550);const s={display:"none"};function l(e){let{id:t,value:n}=e;return i().createElement("div",{id:t,style:s},n)}function c(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return i().createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const u=(0,r.createContext)(null),p={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},d={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function h(e){let{announcements:t=d,container:n,hiddenTextDescribedById:s,screenReaderInstructions:h=p}=e;const{announce:f,announcement:y}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),g=(0,o.YG)("DndLiveRegion"),[m,b]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{b(!0)}),[]),function(e){const t=(0,r.useContext)(u);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;f(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&f(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;f(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;f(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;f(t.onDragCancel({active:n,over:r}))}})),[f,t])),!m)return null;const x=i().createElement(i().Fragment,null,i().createElement(l,{id:s,value:h.draggable}),i().createElement(c,{id:g,announcement:y}));return n?(0,a.createPortal)(x,n):x}var f;function y(){}function g(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(f||(f={}));const b=Object.freeze({x:0,y:0});function x(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function S(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function T(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const v=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=T(t,t.left,t.top),a=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=(o=T(r),s=i,Math.sqrt(Math.pow(o.x-s.x,2)+Math.pow(o.y-s.y,2)));a.push({id:t,data:{droppableContainer:e,value:n}})}}var o,s;return a.sort(x)};function k(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){const n=t.width*t.height,r=e.width*e.height,i=o*s;return Number((i/(n+r-i)).toFixed(4))}return 0}const w=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,a=n.get(r);if(a){const n=k(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(S)};function E(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const C=A(1);const _={ignoreTransform:!1};function P(e,t){void 0===t&&(t=_);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,o.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:i,scaleY:a,x:o,y:s}=r,l=e.left-o-(1-i)*parseFloat(n),c=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,p=a?e.height/a:e.height;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l}}(n,t,r))}const{top:r,left:i,width:a,height:s,bottom:l,right:c}=n;return{top:r,left:i,width:a,height:s,bottom:l,right:c}}function O(e){return P(e,{ignoreTransform:!0})}function L(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if((0,o.wz)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,o.sb)(i)||(0,o.xZ)(i))return n;if(n.includes(i))return n;const a=(0,o.zk)(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=(0,o.zk)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,a)&&n.push(i),function(e,t){return void 0===t&&(t=(0,o.zk)(e).getComputedStyle(e)),"fixed"===t.position}(i,a)?n:r(i.parentNode)}(e):n}function I(e){const[t]=L(e,1);return null!=t?t:null}function D(e){return o.Sw&&e?(0,o.l6)(e)?e:(0,o.Ll)(e)?(0,o.wz)(e)||e===(0,o.TW)(e).scrollingElement?window:(0,o.sb)(e)?e:null:null:null}function M(e){return(0,o.l6)(e)?e.scrollX:e.scrollLeft}function N(e){return(0,o.l6)(e)?e.scrollY:e.scrollTop}function F(e){return{x:M(e),y:N(e)}}var B;function R(e){return!(!o.Sw||!e)&&e===document.scrollingElement}function j(e){const t={x:0,y:0},n=R(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(B||(B={}));const $={x:.2,y:.2};function z(e,t,n,r,i){let{top:a,left:o,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=$);const{isTop:c,isBottom:u,isLeft:p,isRight:d}=j(e),h={x:0,y:0},f={x:0,y:0},y=t.height*i.y,g=t.width*i.x;return!c&&a<=t.top+y?(h.y=B.Backward,f.y=r*Math.abs((t.top+y-a)/y)):!u&&l>=t.bottom-y&&(h.y=B.Forward,f.y=r*Math.abs((t.bottom-y-l)/y)),!d&&s>=t.right-g?(h.x=B.Forward,f.x=r*Math.abs((t.right-g-s)/g)):!p&&o<=t.left+g&&(h.x=B.Backward,f.x=r*Math.abs((t.left+g-o)/g)),{direction:h,speed:f}}function K(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function U(e){return e.reduce(((e,t)=>(0,o.WQ)(e,F(t))),b)}const q=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+M(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+N(t)),0)}]];class W{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=L(t),r=U(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of q)for(const a of t)Object.defineProperty(this,a,{get:()=>{const t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Y{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function H(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var V,X;function G(e){e.preventDefault()}function Z(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(V||(V={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(X||(X={}));const J={start:[X.Space,X.Enter],cancel:[X.Esc],end:[X.Space,X.Enter,X.Tab]},Q=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case X.Right:return{...n,x:n.x+25};case X.Left:return{...n,x:n.x-25};case X.Down:return{...n,y:n.y+25};case X.Up:return{...n,y:n.y-25}}};class ee{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Y((0,o.TW)(t)),this.windowListeners=new Y((0,o.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(V.Resize,this.handleCancel),this.windowListeners.add(V.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(V.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=P),!e)return;const{top:n,left:r,bottom:i,right:a}=t(e);I(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(b)}handleKeyDown(e){if((0,o.kx)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=J,coordinateGetter:a=Q,scrollBehavior:s="smooth"}=r,{code:l}=e;if(i.end.includes(l))return void this.handleEnd(e);if(i.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:b;this.referenceCoordinates||(this.referenceCoordinates=u);const p=a(e,{active:t,context:n.current,currentCoordinates:u});if(p){const t=(0,o.Re)(p,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:a,isRight:o,isLeft:l,isBottom:c,maxScroll:u,minScroll:d}=j(n),h=K(n),f={x:Math.min(i===X.Right?h.right-h.width/2:h.right,Math.max(i===X.Right?h.left:h.left+h.width/2,p.x)),y:Math.min(i===X.Down?h.bottom-h.height/2:h.bottom,Math.max(i===X.Down?h.top:h.top+h.height/2,p.y))},y=i===X.Right&&!o||i===X.Left&&!l,g=i===X.Down&&!c||i===X.Up&&!a;if(y&&f.x!==p.x){const e=n.scrollLeft+t.x,a=i===X.Right&&e<=u.x||i===X.Left&&e>=d.x;if(a&&!t.y)return void n.scrollTo({left:e,behavior:s});r.x=a?n.scrollLeft-e:i===X.Right?n.scrollLeft-u.x:n.scrollLeft-d.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(g&&f.y!==p.y){const e=n.scrollTop+t.y,a=i===X.Down&&e<=u.y||i===X.Up&&e>=d.y;if(a&&!t.x)return void n.scrollTo({top:e,behavior:s});r.y=a?n.scrollTop-e:i===X.Down?n.scrollTop-u.y:n.scrollTop-d.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,o.WQ)((0,o.Re)(p,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function te(e){return Boolean(e&&"distance"in e)}function ne(e){return Boolean(e&&"delay"in e)}ee.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=J,onActivation:i}=t,{active:a}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const t=a.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class re{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,o.zk)(e);return e instanceof t?e:(0,o.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=(0,o.TW)(a),this.documentListeners=new Y(this.document),this.listeners=new Y(n),this.windowListeners=new Y((0,o.zk)(a)),this.initialCoordinates=null!=(r=(0,o.e_)(i))?r:b,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(V.Resize,this.handleCancel),this.windowListeners.add(V.DragStart,G),this.windowListeners.add(V.VisibilityChange,this.handleCancel),this.windowListeners.add(V.ContextMenu,G),this.documentListeners.add(V.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ne(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(te(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(V.Click,Z,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(V.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!r)return;const l=null!=(t=(0,o.e_)(e))?t:b,c=(0,o.Re)(r,l);if(!n&&s){if(te(s)){if(null!=s.tolerance&&H(c,s.tolerance))return this.handleCancel();if(H(c,s.distance))return this.handleStart()}return ne(s)&&H(c,s.tolerance)?this.handleCancel():void this.handlePending(s,c)}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===X.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ie={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ae extends re{constructor(e){const{event:t}=e,n=(0,o.TW)(t.target);super(e,ie,n)}}ae.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const oe={move:{name:"mousemove"},end:{name:"mouseup"}};var se;!function(e){e[e.RightClick=2]="RightClick"}(se||(se={})),class extends re{constructor(e){super(e,oe,(0,o.TW)(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==se.RightClick&&(null==r||r({event:n}),!0)}}];const le={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var ce,ue;(class extends re{constructor(e){super(e,le)}static setup(){return window.addEventListener(le.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(le.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ce||(ce={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ue||(ue={}));const pe={x:{[B.Backward]:!1,[B.Forward]:!1},y:{[B.Backward]:!1,[B.Forward]:!1}};var de,he;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(de||(de={})),function(e){e.Optimized="optimized"}(he||(he={}));const fe=new Map;function ye(e,t){return(0,o.KG)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function ge(e){let{callback:t,disabled:n}=e;const i=(0,o._q)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function me(e){return new W(P(e),e)}function be(e,t,n){void 0===t&&(t=me);const[i,a]=(0,r.useState)(null);function s(){a((r=>{if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const a=t(e);return JSON.stringify(r)===JSON.stringify(a)?r:a}))}const l=function(e){let{callback:t,disabled:n}=e;const i=(0,o._q)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){s();break}}}}),c=ge({callback:s});return(0,o.Es)((()=>{s(),e?(null==c||c.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==l||l.disconnect())}),[e]),i}const xe=[];function Se(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==b;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,o.Re)(e,n.current):b}function Te(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const ve=[];const ke=[{sensor:ae,options:{}},{sensor:ee,options:{}}],we={current:{}},Ee={draggable:{measure:O},droppable:{measure:O,strategy:de.WhileDragging,frequency:he.Optimized},dragOverlay:{measure:P}};class Ae extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Ce={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ae,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:y},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ee,measureDroppableContainers:y,windowRect:null,measuringScheduled:!1},_e={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:y,draggableNodes:new Map,over:null,measureDroppableContainers:y},Pe=(0,r.createContext)(_e),Oe=(0,r.createContext)(Ce);function Le(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ae}}}function Ie(e,t){switch(t.type){case f.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case f.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case f.DragEnd:case f.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case f.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Ae(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case f.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new Ae(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case f.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Ae(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function De(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:a}=(0,r.useContext)(Pe),s=(0,o.ZC)(i),l=(0,o.ZC)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!i&&s&&null!=l){if(!(0,o.kx)(s))return;if(document.activeElement===s.target)return;const e=a.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,o.ag)(e);if(t){t.focus();break}}}))}}),[i,t,a,l,s]),null}const Me=(0,r.createContext)({...b,scaleX:1,scaleY:1});var Ne;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ne||(Ne={}));const Fe=(0,r.memo)((function(e){var t,n,s,l;let{id:c,accessibility:p,autoScroll:d=!0,children:y,sensors:g=ke,collisionDetection:m=w,measuring:x,modifiers:S,...T}=e;const v=(0,r.useReducer)(Ie,void 0,Le),[k,A]=v,[_,O]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[M,N]=(0,r.useState)(Ne.Uninitialized),j=M===Ne.Initialized,{draggable:{active:$,nodes:K,translate:q},droppable:{containers:Y}}=k,H=null!=$?K.get($):null,V=(0,r.useRef)({initial:null,translated:null}),X=(0,r.useMemo)((()=>{var e;return null!=$?{id:$,data:null!=(e=null==H?void 0:H.data)?e:we,rect:V}:null}),[$,H]),G=(0,r.useRef)(null),[Z,J]=(0,r.useState)(null),[Q,ee]=(0,r.useState)(null),te=(0,o.YN)(T,Object.values(T)),ne=(0,o.YG)("DndDescribedBy",c),re=(0,r.useMemo)((()=>Y.getEnabled()),[Y]),ie=(ae=x,(0,r.useMemo)((()=>({draggable:{...Ee.draggable,...null==ae?void 0:ae.draggable},droppable:{...Ee.droppable,...null==ae?void 0:ae.droppable},dragOverlay:{...Ee.dragOverlay,...null==ae?void 0:ae.dragOverlay}})),[null==ae?void 0:ae.draggable,null==ae?void 0:ae.droppable,null==ae?void 0:ae.dragOverlay]));var ae;const{droppableRects:oe,measureDroppableContainers:se,measuringScheduled:le}=function(e,t){let{dragging:n,dependencies:i,config:a}=t;const[s,l]=(0,r.useState)(null),{frequency:c,measure:u,strategy:p}=a,d=(0,r.useRef)(e),h=function(){switch(p){case de.Always:return!1;case de.BeforeDragging:return n;default:return!n}}(),f=(0,o.YN)(h),y=(0,r.useCallback)((function(e){void 0===e&&(e=[]),f.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[f]),g=(0,r.useRef)(null),m=(0,o.KG)((t=>{if(h&&!n)return fe;if(!t||t===fe||d.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new W(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,s,n,h,u]);return(0,r.useEffect)((()=>{d.current=e}),[e]),(0,r.useEffect)((()=>{h||y()}),[n,h]),(0,r.useEffect)((()=>{s&&s.length>0&&l(null)}),[JSON.stringify(s)]),(0,r.useEffect)((()=>{h||"number"!=typeof c||null!==g.current||(g.current=setTimeout((()=>{y(),g.current=null}),c))}),[c,h,y,...i]),{droppableRects:m,measureDroppableContainers:y,measuringScheduled:null!=s}}(re,{dragging:j,dependencies:[q.x,q.y],config:ie.droppable}),he=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,o.KG)((e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(K,$),me=(0,r.useMemo)((()=>Q?(0,o.e_)(Q):null),[Q]),Ae=function(){const e=!1===(null==Z?void 0:Z.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=j&&!e&&!t;return"object"==typeof d?{...d,enabled:n}:{enabled:n}}(),Ce=function(e,t){return ye(e,t)}(he,ie.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:i,config:a=!0}=e;const s=(0,r.useRef)(!1),{x:l,y:c}="boolean"==typeof a?{x:a,y:a}:a;(0,o.Es)((()=>{if(!l&&!c||!t)return void(s.current=!1);if(s.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=E(n(e),i);if(l||(r.x=0),c||(r.y=0),s.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=I(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,l,c,i,n])}({activeNode:null!=$?K.get($):null,config:Ae.layoutShiftCompensation,initialRect:Ce,measure:ie.draggable.measure});const _e=be(he,ie.draggable.measure,Ce),Fe=be(he?he.parentElement:null),Be=(0,r.useRef)({activatorEvent:null,active:null,activeNode:he,collisionRect:null,collisions:null,droppableRects:oe,draggableNodes:K,draggingNode:null,draggingNodeRect:null,droppableContainers:Y,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Re=Y.getNodeFor(null==(t=Be.current.over)?void 0:t.id),je=function(e){let{measure:t}=e;const[n,i]=(0,r.useState)(null),a=ge({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,o.sb)(n)){i((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),s=(0,r.useCallback)((e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,o.sb)(t)?t:e}(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),i(n?t(n):null)}),[t,a]),[l,c]=(0,o.lk)(s);return(0,r.useMemo)((()=>({nodeRef:l,rect:n,setRef:c})),[n,l,c])}({measure:ie.dragOverlay.measure}),$e=null!=(n=je.nodeRef.current)?n:he,ze=j?null!=(s=je.rect)?s:_e:null,Ke=Boolean(je.nodeRef.current&&je.rect),Ue=E(qe=Ke?null:_e,ye(qe));var qe;const We=Te($e?(0,o.zk)($e):null),Ye=function(e){const t=(0,r.useRef)(e),n=(0,o.KG)((n=>e?n&&n!==xe&&e&&t.current&&e.parentNode===t.current.parentNode?n:L(e):xe),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(j?null!=Re?Re:he:null),He=function(e,t){void 0===t&&(t=P);const[n]=e,i=Te(n?(0,o.zk)(n):null),[a,s]=(0,r.useState)(ve);function l(){s((()=>e.length?e.map((e=>R(e)?i:new W(t(e),e))):ve))}const c=ge({callback:l});return(0,o.Es)((()=>{null==c||c.disconnect(),l(),e.forEach((e=>null==c?void 0:c.observe(e)))}),[e]),a}(Ye),Ve=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}(S,{transform:{x:q.x-Ue.x,y:q.y-Ue.y,scaleX:1,scaleY:1},activatorEvent:Q,active:X,activeNodeRect:_e,containerNodeRect:Fe,draggingNodeRect:ze,over:Be.current.over,overlayNodeRect:je.rect,scrollableAncestors:Ye,scrollableAncestorRects:He,windowRect:We}),Xe=me?(0,o.WQ)(me,q):null,Ge=function(e){const[t,n]=(0,r.useState)(null),i=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=D(e.target);t&&n((e=>e?(e.set(t,F(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=i.current;if(e!==t){r(t);const o=e.map((e=>{const t=D(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,F(t)]):null})).filter((e=>null!=e));n(o.length?new Map(o):null),i.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=D(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,o.WQ)(e,t)),b):U(e):b),[e,t])}(Ye),Ze=Se(Ge),Je=Se(Ge,[_e]),Qe=(0,o.WQ)(Ve,Ze),et=ze?C(ze,Ve):null,tt=X&&et?m({active:X,collisionRect:et,droppableRects:oe,droppableContainers:re,pointerCoordinates:Xe}):null,nt=function(e){if(!e||0===e.length)return null;const[t]=e;return t.id}(tt),[rt,it]=(0,r.useState)(null),at=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Ke?Ve:(0,o.WQ)(Ve,Je),null!=(l=null==rt?void 0:rt.rect)?l:null,_e),ot=(0,r.useRef)(null),st=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==G.current)return;const i=K.get(G.current);if(!i)return;const o=e.nativeEvent,s=new n({active:G.current,activeNode:i,event:o,options:r,context:Be,onAbort(e){if(!K.get(e))return;const{onDragAbort:t}=te.current,n={id:e};null==t||t(n),_({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!K.get(e))return;const{onDragPending:i}=te.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(a),_({type:"onDragPending",event:a})},onStart(e){const t=G.current;if(null==t)return;const n=K.get(t);if(!n)return;const{onDragStart:r}=te.current,i={activatorEvent:o,active:{id:t,data:n.data,rect:V}};(0,a.unstable_batchedUpdates)((()=>{null==r||r(i),N(Ne.Initializing),A({type:f.DragStart,initialCoordinates:e,active:t}),_({type:"onDragStart",event:i}),J(ot.current),ee(o)}))},onMove(e){A({type:f.DragMove,coordinates:e})},onEnd:l(f.DragEnd),onCancel:l(f.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=Be.current;let s=null;if(t&&i){const{cancelDrop:a}=te.current;s={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===f.DragEnd&&"function"==typeof a&&await Promise.resolve(a(s))&&(e=f.DragCancel)}G.current=null,(0,a.unstable_batchedUpdates)((()=>{A({type:e}),N(Ne.Uninitialized),it(null),J(null),ee(null),ot.current=null;const t=e===f.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=te.current[t];null==e||e(s),_({type:t,event:s})}}))}}ot.current=s}),[K]),lt=(0,r.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,a=K.get(r);if(null!==G.current||!a||i.dndKit||i.defaultPrevented)return;const o={active:a};!0===e(n,t.options,o)&&(i.dndKit={capturedBy:t.sensor},G.current=r,st(n,t))}),[K,st]),ct=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(g,lt);!function(e){(0,r.useEffect)((()=>{if(!o.Sw)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(g),(0,o.Es)((()=>{_e&&M===Ne.Initializing&&N(Ne.Initialized)}),[_e,M]),(0,r.useEffect)((()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:i}=Be.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:Qe.x,y:Qe.y},over:i};(0,a.unstable_batchedUpdates)((()=>{null==e||e(o),_({type:"onDragMove",event:o})}))}),[Qe.x,Qe.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=Be.current;if(!e||null==G.current||!t||!i)return;const{onDragOver:o}=te.current,s=r.get(nt),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:l};(0,a.unstable_batchedUpdates)((()=>{it(l),null==o||o(c),_({type:"onDragOver",event:c})}))}),[nt]),(0,o.Es)((()=>{Be.current={activatorEvent:Q,active:X,activeNode:he,collisionRect:et,collisions:tt,droppableRects:oe,draggableNodes:K,draggingNode:$e,draggingNodeRect:ze,droppableContainers:Y,over:rt,scrollableAncestors:Ye,scrollAdjustedTranslate:Qe},V.current={initial:ze,translated:et}}),[X,he,tt,et,K,$e,ze,oe,Y,rt,Ye,Qe]),function(e){let{acceleration:t,activator:n=ce.Pointer,canScroll:i,draggingRect:a,enabled:s,interval:l=5,order:c=ue.TreeOrder,pointerCoordinates:u,scrollableAncestors:p,scrollableAncestorRects:d,delta:h,threshold:f}=e;const y=function(e){let{delta:t,disabled:n}=e;const r=(0,o.ZC)(t);return(0,o.KG)((e=>{if(n||!r||!e)return pe;const i=Math.sign(t.x-r.x),a=Math.sign(t.y-r.y);return{x:{[B.Backward]:e.x[B.Backward]||-1===i,[B.Forward]:e.x[B.Forward]||1===i},y:{[B.Backward]:e.y[B.Backward]||-1===a,[B.Forward]:e.y[B.Forward]||1===a}}}),[n,t,r])}({delta:h,disabled:!s}),[g,m]=(0,o.$$)(),b=(0,r.useRef)({x:0,y:0}),x=(0,r.useRef)({x:0,y:0}),S=(0,r.useMemo)((()=>{switch(n){case ce.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ce.DraggableRect:return a}}),[n,a,u]),T=(0,r.useRef)(null),v=(0,r.useCallback)((()=>{const e=T.current;if(!e)return;const t=b.current.x*x.current.x,n=b.current.y*x.current.y;e.scrollBy(t,n)}),[]),k=(0,r.useMemo)((()=>c===ue.TreeOrder?[...p].reverse():p),[c,p]);(0,r.useEffect)((()=>{if(s&&p.length&&S){for(const e of k){if(!1===(null==i?void 0:i(e)))continue;const n=p.indexOf(e),r=d[n];if(!r)continue;const{direction:a,speed:o}=z(e,r,S,t,f);for(const e of["x","y"])y[e][a[e]]||(o[e]=0,a[e]=0);if(o.x>0||o.y>0)return m(),T.current=e,g(v,l),b.current=o,void(x.current=a)}b.current={x:0,y:0},x.current={x:0,y:0},m()}else m()}),[t,v,i,m,s,l,JSON.stringify(S),JSON.stringify(y),g,p,k,d,JSON.stringify(f)])}({...Ae,delta:q,draggingRect:et,pointerCoordinates:Xe,scrollableAncestors:Ye,scrollableAncestorRects:He});const ut=(0,r.useMemo)((()=>({active:X,activeNode:he,activeNodeRect:_e,activatorEvent:Q,collisions:tt,containerNodeRect:Fe,dragOverlay:je,draggableNodes:K,droppableContainers:Y,droppableRects:oe,over:rt,measureDroppableContainers:se,scrollableAncestors:Ye,scrollableAncestorRects:He,measuringConfiguration:ie,measuringScheduled:le,windowRect:We})),[X,he,_e,Q,tt,Fe,je,K,Y,oe,rt,se,Ye,He,ie,le,We]),pt=(0,r.useMemo)((()=>({activatorEvent:Q,activators:ct,active:X,activeNodeRect:_e,ariaDescribedById:{draggable:ne},dispatch:A,draggableNodes:K,over:rt,measureDroppableContainers:se})),[Q,ct,X,_e,A,ne,K,rt,se]);return i().createElement(u.Provider,{value:O},i().createElement(Pe.Provider,{value:pt},i().createElement(Oe.Provider,{value:ut},i().createElement(Me.Provider,{value:at},y)),i().createElement(De,{disabled:!1===(null==p?void 0:p.restoreFocus)})),i().createElement(h,{...p,hiddenTextDescribedById:ne}))})),Be=(0,r.createContext)(null),Re="button",je="Draggable";function $e(e){let{id:t,data:n,disabled:i=!1,attributes:a}=e;const s=(0,o.YG)(je),{activators:l,activatorEvent:c,active:u,activeNodeRect:p,ariaDescribedById:d,draggableNodes:h,over:f}=(0,r.useContext)(Pe),{role:y=Re,roleDescription:g="draggable",tabIndex:m=0}=null!=a?a:{},b=(null==u?void 0:u.id)===t,x=(0,r.useContext)(b?Me:Be),[S,T]=(0,o.lk)(),[v,k]=(0,o.lk)(),w=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(l,t),E=(0,o.YN)(n);return(0,o.Es)((()=>(h.set(t,{id:t,key:s,node:S,activatorNode:v,data:E}),()=>{const e=h.get(t);e&&e.key===s&&h.delete(t)})),[h,t]),{active:u,activatorEvent:c,activeNodeRect:p,attributes:(0,r.useMemo)((()=>({role:y,tabIndex:m,"aria-disabled":i,"aria-pressed":!(!b||y!==Re)||void 0,"aria-roledescription":g,"aria-describedby":d.draggable})),[i,y,m,b,g,d.draggable]),isDragging:b,listeners:i?void 0:w,node:S,over:f,setNodeRef:T,setActivatorNodeRef:k,transform:x}}function ze(){return(0,r.useContext)(Oe)}const Ke="Droppable",Ue={timeout:25};function qe(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:a}=e;const s=(0,o.YG)(Ke),{active:l,dispatch:c,over:u,measureDroppableContainers:p}=(0,r.useContext)(Pe),d=(0,r.useRef)({disabled:n}),h=(0,r.useRef)(!1),y=(0,r.useRef)(null),g=(0,r.useRef)(null),{disabled:m,updateMeasurementsFor:b,timeout:x}={...Ue,...a},S=(0,o.YN)(null!=b?b:i),T=ge({callback:(0,r.useCallback)((()=>{h.current?(null!=g.current&&clearTimeout(g.current),g.current=setTimeout((()=>{p(Array.isArray(S.current)?S.current:[S.current]),g.current=null}),x)):h.current=!0}),[x]),disabled:m||!l}),v=(0,r.useCallback)(((e,t)=>{T&&(t&&(T.unobserve(t),h.current=!1),e&&T.observe(e))}),[T]),[k,w]=(0,o.lk)(v),E=(0,o.YN)(t);return(0,r.useEffect)((()=>{T&&k.current&&(T.disconnect(),h.current=!1,T.observe(k.current))}),[k,T]),(0,r.useEffect)((()=>(c({type:f.RegisterDroppable,element:{id:i,key:s,disabled:n,node:k,rect:y,data:E}}),()=>c({type:f.UnregisterDroppable,key:s,id:i}))),[i]),(0,r.useEffect)((()=>{n!==d.current.disabled&&(c({type:f.SetDroppableDisabled,id:i,key:s,disabled:n}),d.current.disabled=n)}),[i,s,n,c]),{active:l,rect:y,isOver:(null==u?void 0:u.id)===i,node:k,over:u,setNodeRef:w}}},81587:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.patternLikeCommon=t.importAttributes=t.functionTypeAnnotationCommon=t.functionDeclarationCommon=t.functionCommon=t.classMethodOrPropertyCommon=t.classMethodOrDeclareMethodCommon=void 0,n(80947),n(78126),n(14007);var r=n(80672),i=n(79897),a=n(65183);const o=(0,a.defineAliasedType)("Standardized");o("ArrayExpression",{fields:{elements:{validate:(0,a.arrayOf)((0,a.assertNodeOrValueType)("null","Expression","SpreadElement")),default:[]}},visitor:["elements"],aliases:["Expression"]}),o("AssignmentExpression",{fields:{operator:{validate:(0,a.assertValueType)("string")},left:{validate:(0,a.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,a.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),o("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,a.assertOneOf)(...i.BINARY_OPERATORS)},left:{validate:function(){const e=(0,a.assertNodeType)("Expression"),t=(0,a.assertNodeType)("Expression","PrivateName");return Object.assign((function(n,r,i){("in"===n.operator?t:e)(n,r,i)}),{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,a.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),o("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),o("Directive",{visitor:["value"],fields:{value:{validate:(0,a.assertNodeType)("DirectiveLiteral")}}}),o("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),o("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,a.arrayOfType)("Directive"),default:[]},body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),o("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),o("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,a.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,a.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),o("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),o("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Expression")},alternate:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),o("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),o("DebuggerStatement",{aliases:["Statement"]}),o("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),o("EmptyStatement",{aliases:["Statement"]}),o("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),o("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,a.assertNodeType)("Program")},comments:{validate:Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,a.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:!0}}}),o("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,a.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,a.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},update:{validate:(0,a.assertNodeType)("Expression"),optional:!0},body:{validate:(0,a.assertNodeType)("Statement")}}});const s=()=>({params:(0,a.validateArrayOfType)("Identifier","Pattern","RestElement"),generator:{default:!1},async:{default:!1}});t.functionCommon=s;const l=()=>({returnType:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});t.functionTypeAnnotationCommon=l;const c=()=>Object.assign({},s(),{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}});t.functionDeclarationCommon=c,o("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},c(),l(),{body:{validate:(0,a.assertNodeType)("BlockStatement")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:void 0}),o("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},s(),l(),{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const u=()=>({typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}});t.patternLikeCommon=u,o("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},u(),{name:{validate:(0,a.assertValueType)("string")}}),validate:void 0}),o("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,a.assertNodeType)("Statement")}}}),o("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,a.assertNodeType)("Identifier")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("StringLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,a.chain)((0,a.assertValueType)("number"),Object.assign((function(e,t,n){(1/n<0||!Number.isFinite(n))&&new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${n}) instead.`)}),{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),o("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,a.assertValueType)("string")},flags:{validate:(0,a.assertValueType)("string"),default:""}}}),o("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,a.assertOneOf)(...i.LOGICAL_OPERATORS)},left:{validate:(0,a.assertNodeType)("Expression")},right:{validate:(0,a.assertNodeType)("Expression")}}}),o("MemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,a.assertNodeType)("Expression","Super")},property:{validate:function(){const e=(0,a.assertNodeType)("Identifier","PrivateName"),t=(0,a.assertNodeType)("Expression"),n=function(n,r,i){(n.computed?t:e)(n,r,i)};return n.oneOfNodeTypes=["Expression","Identifier","PrivateName"],n}()},computed:{default:!1}},{optional:{validate:(0,a.assertValueType)("boolean"),optional:!0}})}),o("NewExpression",{inherits:"CallExpression"}),o("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,a.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,a.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,a.arrayOfType)("Directive"),default:[]},body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),o("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,a.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),o("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},s(),l(),{kind:Object.assign({validate:(0,a.assertOneOf)("method","get","set")},{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,a.assertNodeType)("Expression"),n=function(n,r,i){(n.computed?t:e)(n,r,i)};return n.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],n}()},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),o("ObjectProperty",{builder:["key","value","computed","shorthand","decorators"],fields:{computed:{default:!1},key:{validate:function(){const e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,a.assertNodeType)("Expression");return Object.assign((function(n,r,i){(n.computed?t:e)(n,r,i)}),{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,a.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,a.assertValueType)("boolean"),default:!1},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:void 0}),o("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},u(),{argument:{validate:(0,a.assertNodeType)("LVal")}}),validate:void 0}),o("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression"),optional:!0}}}),o("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,a.validateArrayOfType)("Expression")},aliases:["Expression"]}),o("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}}}),o("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},consequent:(0,a.validateArrayOfType)("Statement")}}),o("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,a.assertNodeType)("Expression")},cases:(0,a.validateArrayOfType)("SwitchCase")}}),o("ThisExpression",{aliases:["Expression"]}),o("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),o("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,a.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,a.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,a.assertNodeType)("BlockStatement")}}}),o("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...i.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),o("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...i.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),o("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},kind:{validate:(0,a.assertOneOf)("var","let","const","using","await using")},declarations:(0,a.validateArrayOfType)("VariableDeclarator")},validate:void 0}),o("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:(0,a.assertNodeType)("LVal")},definite:{optional:!0,validate:(0,a.assertValueType)("boolean")},init:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),o("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},u(),{left:{validate:(0,a.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,a.assertNodeType)("Expression")},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}})}),o("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},u(),{elements:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeOrValueType)("null","PatternLike","LVal")))}})}),o("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},s(),l(),{expression:{validate:(0,a.assertValueType)("boolean")},body:{validate:(0,a.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),o("ClassBody",{visitor:["body"],fields:{body:(0,a.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),o("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,a.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,a.assertNodeType)("Expression")},superTypeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,a.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,a.assertNodeType)("InterfaceExtends"),optional:!0}}}),o("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,a.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,a.assertNodeType)("Expression")},superTypeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,a.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,a.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,a.assertValueType)("boolean"),optional:!0}},validate:void 0});const p=t.importAttributes={attributes:{optional:!0,validate:(0,a.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,a.arrayOfType)("ImportAttribute")}};o("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,a.assertNodeType)("StringLiteral")},exportKind:(0,a.validateOptional)((0,a.assertOneOf)("type","value"))},p)}),o("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,a.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,a.validateOptional)((0,a.assertOneOf)("value"))}}),o("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:(0,a.assertNodeType)("Declaration")}},p,{specifiers:{default:[],validate:(0,a.arrayOf)(function(){const e=(0,a.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier");return(0,a.assertNodeType)("ExportSpecifier"),e}())},source:{validate:(0,a.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,a.validateOptional)((0,a.assertOneOf)("type","value"))})}),o("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")},exported:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,a.assertOneOf)("type","value"),optional:!0}}}),o("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,a.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")},await:{default:!1}}}),o("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},p,{module:{optional:!0,validate:(0,a.assertValueType)("boolean")},phase:{default:null,validate:(0,a.assertOneOf)("source","defer")},specifiers:(0,a.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,a.assertNodeType)("StringLiteral")},importKind:{validate:(0,a.assertOneOf)("type","typeof","value"),optional:!0}})}),o("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")}}}),o("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")}}}),o("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")},imported:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,a.assertOneOf)("type","typeof","value"),optional:!0}}}),o("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,a.assertOneOf)("source","defer")},source:{validate:(0,a.assertNodeType)("Expression")},options:{validate:(0,a.assertNodeType)("Expression"),optional:!0}}}),o("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,a.assertNodeType)("Identifier")},property:{validate:(0,a.assertNodeType)("Identifier")}}});const d=()=>({abstract:{validate:(0,a.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,a.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},key:{validate:(0,a.chain)(function(){const e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,a.assertNodeType)("Expression");return function(n,r,i){(n.computed?t:e)(n,r,i)}}(),(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});t.classMethodOrPropertyCommon=d;const h=()=>Object.assign({},s(),d(),{params:(0,a.validateArrayOfType)("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:(0,a.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,a.chain)((0,a.assertValueType)("string"),(0,a.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}});t.classMethodOrDeclareMethodCommon=h,o("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},h(),l(),{body:{validate:(0,a.assertNodeType)("BlockStatement")}})}),o("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},u(),{properties:(0,a.validateArrayOfType)("RestElement","ObjectProperty")})}),o("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),o("Super",{aliases:["Expression"]}),o("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,a.assertNodeType)("Expression")},quasi:{validate:(0,a.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),o("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,a.chain)((0,a.assertShape)({raw:{validate:(0,a.assertValueType)("string")},cooked:{validate:(0,a.assertValueType)("string"),optional:!0}}),(function(e){const t=e.value.raw;let n=!1;const i=()=>{throw new Error("Internal @babel/types error.")},{str:a,firstInvalidLoc:o}=(0,r.readStringContents)("template",t,0,0,0,{unterminated(){n=!0},strictNumericEscape:i,invalidEscapeSequence:i,numericSeparatorInEscapeSequence:i,unexpectedNumericSeparator:i,invalidDigit:i,invalidCodePoint:i});if(!n)throw new Error("Invalid raw");e.value.cooked=o?null:a}))},tail:{default:!1}}}),o("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,a.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression","TSType")),(function(e,t,n){if(e.quasis.length!==n.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.\nExpected ${n.length+1} quasis but got ${e.quasis.length}`)}))}}}),o("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,a.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),o("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),o("Import",{aliases:["Expression"]}),o("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,a.assertNodeType)("Identifier")}}}),o("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},property:{validate:function(){const e=(0,a.assertNodeType)("Identifier"),t=(0,a.assertNodeType)("Expression");return Object.assign((function(n,r,i){(n.computed?t:e)(n,r,i)}),{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:(0,a.assertValueType)("boolean")}}}),o("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,a.assertNodeType)("Expression")},arguments:(0,a.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:(0,a.assertValueType)("boolean")},typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,a.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),o("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},d(),{value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}})}),o("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},d(),{key:{validate:(0,a.chain)(function(){const e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,a.assertNodeType)("Expression");return function(n,r,i){(n.computed?t:e)(n,r,i)}}(),(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}})}),o("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,a.assertNodeType)("PrivateName")},value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,a.assertValueType)("boolean"),default:!1},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}}}),o("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},h(),l(),{kind:{validate:(0,a.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,a.assertNodeType)("PrivateName")},body:{validate:(0,a.assertNodeType)("BlockStatement")}})}),o("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,a.assertNodeType)("Identifier")}}}),o("StaticBlock",{visitor:["body"],fields:{body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),o("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,a.assertNodeType)("StringLiteral")}}})},81594:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(77252),i=n(97942),a=n(71140);var o=Object.prototype.hasOwnProperty;const s=function(e){if(!(0,i.A)(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=(0,a.A)(e),n=[];for(var r in e)("constructor"!=r||!t&&o.call(e,r))&&n.push(r);return n};var l=n(31475);const c=function(e){return(0,l.A)(e)?(0,r.A)(e,!0):s(e)}},81720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_ALIASES=void 0,t.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}},82364:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return n.has(e)},t.isReservedWord=a,t.isStrictBindOnlyReservedWord=s,t.isStrictBindReservedWord=function(e,t){return o(e,t)||s(e)},t.isStrictReservedWord=o;const n=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),r=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),i=new Set(["eval","arguments"]);function a(e,t){return t&&"await"===e||"enum"===e}function o(e,t){return a(e,t)||r.has(e)}function s(e){return i.has(e)}},82985:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,r.default)(e)){var t;const n=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${n}"`)}};var r=n(24919)},83091:(e,t,n)=>{"use strict";function r(e){if(e)throw e}n.d(t,{l:()=>w});var i=n(89710),a=n(69820);function o(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}var s=n(24435);const l=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');h(e);let n,r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},c=function(e){if(h(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},u=function(e){h(e);let t,n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1);else if(t){i=n+1;break}}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},p=function(...e){let t,n=-1;for(;++n<e.length;)h(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){h(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",a=0):(i=i.slice(0,r),a=i.length-1-i.lastIndexOf("/")),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},d="/";function h(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const f=function(){return"/"};function y(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const g=["history","path","basename","stem","extname","dirname"];class m{constructor(e){let t;t=e?y(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=f(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<g.length;){const e=g[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)g.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?l(this.path):void 0}set basename(e){x(e,"basename"),b(e,"basename"),this.path=p(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?c(this.path):void 0}set dirname(e){S(this.basename,"dirname"),this.path=p(e||"",this.basename)}get extname(){return"string"==typeof this.path?u(this.path):void 0}set extname(e){if(b(e,"extname"),S(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=p(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){y(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!y(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),x(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?l(this.path,this.extname):void 0}set stem(e){x(e,"stem"),b(e,"stem"),this.path=p(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new s.o(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function b(e,t){if(e&&e.includes(d))throw new Error("`"+t+"` cannot be a path: did not expect `"+d+"`")}function x(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function S(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const T=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,t);const i=Object.getOwnPropertyNames(n);for(const e of i){const t=Object.getOwnPropertyDescriptor(n,e);t&&Object.defineProperty(r,e,t)}return r},v={}.hasOwnProperty;class k extends T{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(a,...o){const s=e[++n];let l=-1;if(a)r(a);else{for(;++l<t.length;)null!==o[l]&&void 0!==o[l]||(o[l]=t[l]);t=o,s?function(e,t){let n;return function(...t){const a=e.length>t.length;let o;a&&t.push(r);try{o=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(o instanceof Promise?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...r){n||(n=!0,t(e,...r))}function i(e){r(null,e)}}(s,i)(...o):r(null,...o)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new k;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(i(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(C("data",this.frozen),this.namespace[e]=t,this):v.call(this.namespace,e)&&this.namespace[e]||void 0:e?(C("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=O(e),n=this.parser||this.Parser;return E("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),E("process",this.parser||this.Parser),A("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=O(e),s=n.parse(o);function l(e,n){e||!n?i(e):r?r(n):((0,a.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(s,o,(function(e,t,r){if(e||!t||!r)return l(e);const i=t,a=n.stringify(i,r);var o;"string"==typeof(o=a)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?r.value=a:r.result=a,l(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),E("processSync",this.parser||this.Parser),A("processSync",this.compiler||this.Compiler),this.process(e,(function(e,i){n=!0,r(e),t=i})),P("processSync","process",n),(0,a.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){_(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){(0,a.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");const s=O(t);r.run(e,s,(function(t,r,s){const l=r||e;t?o(t):i?i(l):((0,a.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,l,s))}))}}runSync(e,t){let n,i=!1;return this.run(e,t,(function(e,t){r(e),n=t,i=!0})),P("runSync","run",i),(0,a.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();const n=O(t),r=this.compiler||this.Compiler;return A("stringify",r),_(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(C("use",this.frozen),null==e);else if("function"==typeof e)c(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):s(e)}return this;function a(e){if("function"==typeof e)c(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else s(e)}}function s(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(r.settings=i(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)a(e[t])}}function c(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...s]=t;const l=n[a][1];o(l)&&o(r)&&(r=i(!0,l,r)),n[a]=[e,r,...s]}}}}const w=(new k).freeze();function E(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function A(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function C(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _(e){if(!o(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function P(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function O(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new m(e)}},83516:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(39600).A.Symbol},84534:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map((e=>(0,a.isTSTypeAnnotation)(e)?e.typeAnnotation:e)),n=(0,i.default)(t);return 1===n.length?n[0]:(0,r.tsUnionType)(n)};var r=n(93806),i=n(99227),a=n(60133)},84857:(e,t,n)=>{"use strict";n.d(t,{DA:()=>S,IU:()=>P,U:()=>_,U7:()=>Tt,U_:()=>kt,Zk:()=>u,aP:()=>bt,gh:()=>vt,lC:()=>d,on:()=>St});var r=n(12880),i=n(97996),a=n(60347),o=n(65323),s=n(58084),l=n(68452),c=n(7083),u=(0,s.K2)((async(e,t,n)=>{let r;const i=t.useHtmlLabels||(0,s._3)((0,s.D7)()?.htmlLabels);r=n||"node default";const c=e.insert("g").attr("class",r).attr("id",t.domId||t.id),u=c.insert("g").attr("class","label").attr("style",(0,o.KL)(t.labelStyle));let p;p=void 0===t.label?"":"string"==typeof t.label?t.label:t.label[0];const d=await(0,a.GZ)(u,(0,s.jZ)((0,o.Sm)(p),(0,s.D7)()),{useHtmlLabels:i,width:t.width||(0,s.D7)().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let h=d.getBBox();const f=(t?.padding??0)/2;if(i){const e=d.children[0],t=(0,l.Ltv)(d),n=e.getElementsByTagName("img");if(n){const e=""===p.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map((t=>new Promise((n=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",e){const e=(0,s.D7)().fontSize?(0,s.D7)().fontSize:window.getComputedStyle(document.body).fontSize,n=5,[r=s.UI.fontSize]=(0,o.I5)(e),i=r*n+"px";t.style.minWidth=i,t.style.maxWidth=i}else t.style.width="100%";n(t)}(0,s.K2)(r,"setupImage"),setTimeout((()=>{t.complete&&r()})),t.addEventListener("error",r),t.addEventListener("load",r)})))))}h=e.getBoundingClientRect(),t.attr("width",h.width),t.attr("height",h.height)}return i?u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):u.attr("transform","translate(0, "+-h.height/2+")"),t.centerLabel&&u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:c,bbox:h,halfPadding:f,label:u}}),"labelHelper"),p=(0,s.K2)((async(e,t,n)=>{const r=n.useHtmlLabels||(0,s._3)((0,s.D7)()?.flowchart?.htmlLabels),i=e.insert("g").attr("class","label").attr("style",n.labelStyle||""),c=await(0,a.GZ)(i,(0,s.jZ)((0,o.Sm)(t),(0,s.D7)()),{useHtmlLabels:r,width:n.width||(0,s.D7)()?.flowchart?.wrappingWidth,style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img});let u=c.getBBox();const p=n.padding/2;if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){const e=c.children[0],t=(0,l.Ltv)(c);u=e.getBoundingClientRect(),t.attr("width",u.width),t.attr("height",u.height)}return r?i.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):i.attr("transform","translate(0, "+-u.height/2+")"),n.centerLabel&&i.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:e,bbox:u,halfPadding:p,label:i}}),"insertLabel"),d=(0,s.K2)(((e,t)=>{const n=t.node().getBBox();e.width=n.width,e.height=n.height}),"updateNodeBounds"),h=(0,s.K2)(((e,t)=>("handDrawn"===e.look?"rough-node":"node")+" "+e.cssClasses+" "+(t||"")),"getNodeClasses");function f(e){const t=e.map(((e,t)=>`${0===t?"M":"L"}${e.x},${e.y}`));return t.push("Z"),t.join(" ")}function y(e,t,n,r,i,a){const o=[],s=n-e,l=r-t,c=s/a,u=2*Math.PI/c,p=t+l/2;for(let t=0;t<=50;t++){const n=e+t/50*s,r=p+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}function g(e,t,n,r,i,a){const o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){const r=s+i*l,a=e+n*Math.cos(r),c=t+n*Math.sin(r);o.push({x:-a,y:-c})}return o}(0,s.K2)(f,"createPathFromPoints"),(0,s.K2)(y,"generateFullSineWavePoints"),(0,s.K2)(g,"generateCirclePoints");var m=(0,s.K2)(((e,t)=>{var n,r,i=e.x,a=e.y,o=t.x-i,s=t.y-a,l=e.width/2,c=e.height/2;return Math.abs(s)*l>Math.abs(o)*c?(s<0&&(c=-c),n=0===s?0:c*o/s,r=c):(o<0&&(l=-l),n=l,r=0===o?0:l*s/o),{x:i+n,y:a+r}}),"intersectRect");function b(e,t){t&&e.attr("style",t)}async function x(e){const t=(0,l.Ltv)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=t.append("xhtml:div");let r=e.label;e.label&&(0,s.Wi)(e.label)&&(r=await(0,s.VJ)(e.label.replace(s.Y2.lineBreakRegex,"\n"),(0,s.D7)()));const i=e.isNode?"nodeLabel":"edgeLabel";return n.html('<span class="'+i+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+r+"</span>"),b(n,e.labelStyle),n.style("display","inline-block"),n.style("padding-right","1px"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}(0,s.K2)(b,"applyStyle"),(0,s.K2)(x,"addHtmlLabel");var S=(0,s.K2)((async(e,t,n,r)=>{let i=e||"";if("object"==typeof i&&(i=i[0]),(0,s._3)((0,s.D7)().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),s.Rm.info("vertexText"+i);const e={isNode:r,label:(0,o.Sm)(i).replace(/fa[blrs]?:fa-[\w-]+/g,(e=>`<i class='${e.replace(":"," ")}'></i>`)),labelStyle:t?t.replace("fill:","color:"):t};return await x(e)}{const e=document.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("style",t.replace("color:","fill:"));let r=[];r="string"==typeof i?i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?i:[];for(const t of r){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),n?r.setAttribute("class","title-row"):r.setAttribute("class","row"),r.textContent=t.trim(),e.appendChild(r)}return e}}),"createLabel"),T=(0,s.K2)(((e,t,n,r,i)=>["M",e+i,t,"H",e+n-i,"A",i,i,0,0,1,e+n,t+i,"V",t+r-i,"A",i,i,0,0,1,e+n-i,t+r,"H",e+i,"A",i,i,0,0,1,e,t+r-i,"V",t+i,"A",i,i,0,0,1,e+i,t,"Z"].join(" ")),"createRoundedRectPathD"),v=(0,s.K2)((async(e,t)=>{s.Rm.info("Creating subgraph rect for ",t.id,t);const n=(0,s.D7)(),{themeVariables:o,handDrawnSeed:u}=n,{clusterBkg:p,clusterBorder:d}=o,{labelStyles:h,nodeStyles:f,borderStyles:y,backgroundStyles:g}=(0,i.GX)(t),b=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),x=(0,s._3)(n.flowchart.htmlLabels),S=b.insert("g").attr("class","cluster-label "),v=await(0,a.GZ)(S,t.label,{style:t.labelStyle,useHtmlLabels:x,isNode:!0});let k=v.getBBox();if((0,s._3)(n.flowchart.htmlLabels)){const e=v.children[0],t=(0,l.Ltv)(v);k=e.getBoundingClientRect(),t.attr("width",k.width),t.attr("height",k.height)}const w=t.width<=k.width+t.padding?k.width+t.padding:t.width;t.width<=k.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;const E=t.height,A=t.x-w/2,C=t.y-E/2;let _;if(s.Rm.trace("Data ",t,JSON.stringify(t)),"handDrawn"===t.look){const e=c.A.svg(b),n=(0,i.Fr)(t,{roughness:.7,fill:p,stroke:d,fillWeight:3,seed:u}),r=e.path(T(A,C,w,E,0),n);_=b.insert((()=>(s.Rm.debug("Rough node insert CXC",r),r)),":first-child"),_.select("path:nth-child(2)").attr("style",y.join(";")),_.select("path").attr("style",g.join(";").replace("fill","stroke"))}else _=b.insert("rect",":first-child"),_.attr("style",f).attr("rx",t.rx).attr("ry",t.ry).attr("x",A).attr("y",C).attr("width",w).attr("height",E);const{subGraphTitleTopMargin:P}=(0,r.O)(n);if(S.attr("transform",`translate(${t.x-k.width/2}, ${t.y-t.height/2+P})`),h){const e=S.select("span");e&&e.attr("style",h)}const O=_.node().getBBox();return t.offsetX=0,t.width=O.width,t.height=O.height,t.offsetY=k.height-t.padding/2,t.intersect=function(e){return m(t,e)},{cluster:b,labelBBox:k}}),"rect"),k=(0,s.K2)(((e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return m(t,e)},{cluster:n,labelBBox:{width:0,height:0}}}),"noteGroup"),w=(0,s.K2)((async(e,t)=>{const n=(0,s.D7)(),{themeVariables:r,handDrawnSeed:i}=n,{altBackground:a,compositeBackground:o,compositeTitleBackground:u,nodeBorder:p}=r,d=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),h=d.insert("g",":first-child"),f=d.insert("g").attr("class","cluster-label");let y=d.append("rect");const g=f.node().appendChild(await S(t.label,t.labelStyle,void 0,!0));let b=g.getBBox();if((0,s._3)(n.flowchart.htmlLabels)){const e=g.children[0],t=(0,l.Ltv)(g);b=e.getBoundingClientRect(),t.attr("width",b.width),t.attr("height",b.height)}const x=0*t.padding,v=x/2,k=(t.width<=b.width+t.padding?b.width+t.padding:t.width)+x;t.width<=b.width+t.padding?t.diff=(k-t.width)/2-t.padding:t.diff=-t.padding;const w=t.height+x,E=t.height+x-b.height-6,A=t.x-k/2,C=t.y-w/2;t.width=k;const _=t.y-t.height/2-v+b.height+2;let P;if("handDrawn"===t.look){const e=t.cssClasses.includes("statediagram-cluster-alt"),n=c.A.svg(d),r=t.rx||t.ry?n.path(T(A,C,k,w,10),{roughness:.7,fill:u,fillStyle:"solid",stroke:p,seed:i}):n.rectangle(A,C,k,w,{seed:i});P=d.insert((()=>r),":first-child");const s=n.rectangle(A,_,k,E,{fill:e?a:o,fillStyle:e?"hachure":"solid",stroke:p,seed:i});P=d.insert((()=>r),":first-child"),y=d.insert((()=>s))}else{P=h.insert("rect",":first-child");const e="outer";P.attr("class",e).attr("x",A).attr("y",C).attr("width",k).attr("height",w).attr("data-look",t.look),y.attr("class","inner").attr("x",A).attr("y",_).attr("width",k).attr("height",E)}f.attr("transform",`translate(${t.x-b.width/2}, ${C+1-((0,s._3)(n.flowchart.htmlLabels)?0:3)})`);const O=P.node().getBBox();return t.height=O.height,t.offsetX=0,t.offsetY=b.height-t.padding/2,t.labelBBox=b,t.intersect=function(e){return m(t,e)},{cluster:d,labelBBox:b}}),"roundedWithTitle"),E=(0,s.K2)((async(e,t)=>{s.Rm.info("Creating subgraph rect for ",t.id,t);const n=(0,s.D7)(),{themeVariables:o,handDrawnSeed:u}=n,{clusterBkg:p,clusterBorder:d}=o,{labelStyles:h,nodeStyles:f,borderStyles:y,backgroundStyles:g}=(0,i.GX)(t),b=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),x=(0,s._3)(n.flowchart.htmlLabels),S=b.insert("g").attr("class","cluster-label "),v=await(0,a.GZ)(S,t.label,{style:t.labelStyle,useHtmlLabels:x,isNode:!0,width:t.width});let k=v.getBBox();if((0,s._3)(n.flowchart.htmlLabels)){const e=v.children[0],t=(0,l.Ltv)(v);k=e.getBoundingClientRect(),t.attr("width",k.width),t.attr("height",k.height)}const w=t.width<=k.width+t.padding?k.width+t.padding:t.width;t.width<=k.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;const E=t.height,A=t.x-w/2,C=t.y-E/2;let _;if(s.Rm.trace("Data ",t,JSON.stringify(t)),"handDrawn"===t.look){const e=c.A.svg(b),n=(0,i.Fr)(t,{roughness:.7,fill:p,stroke:d,fillWeight:4,seed:u}),r=e.path(T(A,C,w,E,t.rx),n);_=b.insert((()=>(s.Rm.debug("Rough node insert CXC",r),r)),":first-child"),_.select("path:nth-child(2)").attr("style",y.join(";")),_.select("path").attr("style",g.join(";").replace("fill","stroke"))}else _=b.insert("rect",":first-child"),_.attr("style",f).attr("rx",t.rx).attr("ry",t.ry).attr("x",A).attr("y",C).attr("width",w).attr("height",E);const{subGraphTitleTopMargin:P}=(0,r.O)(n);if(S.attr("transform",`translate(${t.x-k.width/2}, ${t.y-t.height/2+P})`),h){const e=S.select("span");e&&e.attr("style",h)}const O=_.node().getBBox();return t.offsetX=0,t.width=O.width,t.height=O.height,t.offsetY=k.height-t.padding/2,t.intersect=function(e){return m(t,e)},{cluster:b,labelBBox:k}}),"kanbanSection"),A={rect:v,squareRect:v,roundedWithTitle:w,noteGroup:k,divider:(0,s.K2)(((e,t)=>{const n=(0,s.D7)(),{themeVariables:r,handDrawnSeed:i}=n,{nodeBorder:a}=r,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),l=o.insert("g",":first-child"),u=0*t.padding,p=t.width+u;t.diff=-t.padding;const d=t.height+u,h=t.x-p/2,f=t.y-d/2;let y;if(t.width=p,"handDrawn"===t.look){const e=c.A.svg(o).rectangle(h,f,p,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});y=o.insert((()=>e),":first-child")}else{y=l.insert("rect",":first-child");const e="divider";y.attr("class",e).attr("x",h).attr("y",f).attr("width",p).attr("height",d).attr("data-look",t.look)}const g=y.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return m(t,e)},{cluster:o,labelBBox:{}}}),"divider"),kanbanSection:E},C=new Map,_=(0,s.K2)((async(e,t)=>{const n=t.shape||"rect",r=await A[n](e,t);return C.set(t.id,r),r}),"insertCluster"),P=(0,s.K2)((()=>{C=new Map}),"clear");function O(e,t){return e.intersect(t)}(0,s.K2)(O,"intersectNode");var L=O;function I(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,l=Math.sqrt(t*t*s*s+n*n*o*o),c=Math.abs(t*n*o/l);r.x<i&&(c=-c);var u=Math.abs(t*n*s/l);return r.y<a&&(u=-u),{x:i+c,y:a+u}}(0,s.K2)(I,"intersectEllipse");var D=I;function M(e,t,n){return D(e,t,t,n)}(0,s.K2)(M,"intersectCircle");var N=M;function F(e,t,n,r){var i,a,o,s,l,c,u,p,d,h,f,y,g;if(i=t.y-e.y,o=e.x-t.x,l=t.x*e.y-e.x*t.y,d=i*n.x+o*n.y+l,h=i*r.x+o*r.y+l,!(0!==d&&0!==h&&B(d,h)||(a=r.y-n.y,s=n.x-r.x,c=r.x*n.y-n.x*r.y,u=a*e.x+s*e.y+c,p=a*t.x+s*t.y+c,0!==u&&0!==p&&B(u,p)||0==(f=i*s-a*o))))return y=Math.abs(f/2),{x:(g=o*c-s*l)<0?(g-y)/f:(g+y)/f,y:(g=a*l-i*c)<0?(g-y)/f:(g+y)/f}}function B(e,t){return e*t>0}(0,s.K2)(F,"intersectLine"),(0,s.K2)(B,"sameSign");var R=F;function j(e,t,n){let r=e.x,i=e.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof t.forEach?t.forEach((function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)})):(o=Math.min(o,t.x),s=Math.min(s,t.y));let l=r-e.width/2-o,c=i-e.height/2-s;for(let r=0;r<t.length;r++){let i=t[r],o=t[r<t.length-1?r+1:0],s=R(e,n,{x:l+i.x,y:c+i.y},{x:l+o.x,y:c+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort((function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,l=Math.sqrt(o*o+s*s);return a<l?-1:a===l?0:1})),a[0]):e}(0,s.K2)(j,"intersectPolygon");var $={node:L,circle:N,ellipse:D,polygon:j,rect:m};function z(e,t){const{labelStyles:n}=(0,i.GX)(t);t.labelStyle=n;const r=h(t);let a=r;r||(a="anchor");const l=e.insert("g").attr("class",a).attr("id",t.domId||t.id),{cssStyles:u}=t,p=c.A.svg(l),f=(0,i.Fr)(t,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==t.look&&(f.roughness=0);const y=p.circle(0,0,2,f),g=l.insert((()=>y),":first-child");return g.attr("class","anchor").attr("style",(0,o.KL)(u)),d(t,g),t.intersect=function(e){return s.Rm.info("Circle intersect",t,1,e),$.circle(t,1,e)},l}function K(e,t,n,r,i,a,o){const s=(e+n)/2,l=(t+r)/2,c=Math.atan2(r-t,n-e),u=(n-e)/2/i,p=(r-t)/2/a,d=Math.sqrt(u**2+p**2);if(d>1)throw new Error("The given radii are too small to create an arc between the points.");const h=Math.sqrt(1-d**2),f=s+h*a*Math.sin(c)*(o?-1:1),y=l-h*i*Math.cos(c)*(o?-1:1),g=Math.atan2((t-y)/a,(e-f)/i);let m=Math.atan2((r-y)/a,(n-f)/i)-g;o&&m<0&&(m+=2*Math.PI),!o&&m>0&&(m-=2*Math.PI);const b=[];for(let e=0;e<20;e++){const t=g+e/19*m,n=f+i*Math.cos(t),r=y+a*Math.sin(t);b.push({x:n,y:r})}return b}async function U(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=o.width+t.padding+20,l=o.height+t.padding,p=l/2,y=p/(2.5+l/50),{cssStyles:g}=t,m=[{x:s/2,y:-l/2},{x:-s/2,y:-l/2},...K(-s/2,-l/2,-s/2,l/2,y,p,!1),{x:s/2,y:l/2},...K(s/2,l/2,s/2,-l/2,y,p,!0)],b=c.A.svg(a),x=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(x.roughness=0,x.fillStyle="solid");const S=f(m),T=b.path(S,x),v=a.insert((()=>T),":first-child");return v.attr("class","basic label-container"),g&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",g),r&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",r),v.attr("transform",`translate(${y/2}, 0)`),d(t,v),t.intersect=function(e){return $.polygon(t,m,e)},a}function q(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map((function(e){return e.x+","+e.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+n/2+")")}async function W(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=o.height+t.padding,l=o.width+t.padding+12,p=-s,y=[{x:12,y:p},{x:l,y:p},{x:l,y:0},{x:0,y:0},{x:0,y:p+12},{x:12,y:p}];let g;const{cssStyles:m}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=(0,i.Fr)(t,{}),r=f(y),o=e.path(r,n);g=a.insert((()=>o),":first-child").attr("transform",`translate(${-l/2}, ${s/2})`),m&&g.attr("style",m)}else g=q(a,l,s,y);return r&&g.attr("style",r),d(t,g),t.intersect=function(e){return $.polygon(t,y,e)},a}function Y(e,t){const{nodeStyles:n}=(0,i.GX)(t);t.label="";const r=e.insert("g").attr("class",h(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,o=Math.max(28,t.width??0),s=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],l=c.A.svg(r),u=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(u.roughness=0,u.fillStyle="solid");const p=f(s),d=l.path(p,u),y=r.insert((()=>d),":first-child");return a&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",a),n&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",n),t.width=28,t.height=28,t.intersect=function(e){return $.polygon(t,s,e)},r}async function H(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:l,halfPadding:p}=await u(e,t,h(t)),f=l.width/2+p;let y;const{cssStyles:g}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=(0,i.Fr)(t,{}),r=e.circle(0,0,2*f,n);y=a.insert((()=>r),":first-child"),y.attr("class","basic label-container").attr("style",(0,o.KL)(g))}else y=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",r).attr("r",f).attr("cx",0).attr("cy",0);return d(t,y),t.intersect=function(e){return s.Rm.info("Circle intersect",t,f,e),$.circle(t,f,e)},a}function V(e){const t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=2*e;return`M ${-r/2*t},${r/2*n} L ${r/2*t},${-r/2*n}\n M ${r/2*t},${r/2*n} L ${-r/2*t},${-r/2*n}`}function X(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n,t.label="";const a=e.insert("g").attr("class",h(t)).attr("id",t.domId??t.id),o=Math.max(30,t?.width??0),{cssStyles:l}=t,u=c.A.svg(a),p=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const f=u.circle(0,0,2*o,p),y=V(o),g=u.path(y,p),m=a.insert((()=>f),":first-child");return m.insert((()=>g)),l&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",l),r&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",r),d(t,m),t.intersect=function(e){return s.Rm.info("crossedCircle intersect",t,{radius:o,point:e}),$.circle(t,o,e)},a}function G(e,t,n,r=100,i=0,a=180){const o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){const r=s+i*l,a=e+n*Math.cos(r),c=t+n*Math.sin(r);o.push({x:-a,y:-c})}return o}async function Z(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=o.width+(t.padding??0),p=o.height+(t.padding??0),y=Math.max(5,.1*p),{cssStyles:g}=t,m=[...G(l/2,-p/2,y,30,-90,0),{x:-l/2-y,y},...G(l/2+2*y,-y,y,20,-180,-270),...G(l/2+2*y,y,y,20,-90,-180),{x:-l/2-y,y:-p/2},...G(l/2,p/2,y,20,0,90)],b=[{x:l/2,y:-p/2-y},{x:-l/2,y:-p/2-y},...G(l/2,-p/2,y,20,-90,0),{x:-l/2-y,y:-y},...G(l/2+.1*l,-y,y,20,-180,-270),...G(l/2+.1*l,y,y,20,-90,-180),{x:-l/2-y,y:p/2},...G(l/2,p/2,y,20,0,90),{x:-l/2,y:p/2+y},{x:l/2,y:p/2+y}],x=c.A.svg(a),S=(0,i.Fr)(t,{fill:"none"});"handDrawn"!==t.look&&(S.roughness=0,S.fillStyle="solid");const T=f(m).replace("Z",""),v=x.path(T,S),k=f(b),w=x.path(k,{...S}),E=a.insert("g",":first-child");return E.insert((()=>w),":first-child").attr("stroke-opacity",0),E.insert((()=>v),":first-child"),E.attr("class","text"),g&&"handDrawn"!==t.look&&E.selectAll("path").attr("style",g),r&&"handDrawn"!==t.look&&E.selectAll("path").attr("style",r),E.attr("transform",`translate(${y}, 0)`),s.attr("transform",`translate(${-l/2+y-(o.x-(o.left??0))},${-p/2+(t.padding??0)/2-(o.y-(o.top??0))})`),d(t,E),t.intersect=function(e){return $.polygon(t,b,e)},a}function J(e,t,n,r=100,i=0,a=180){const o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){const r=s+i*l,a=e+n*Math.cos(r),c=t+n*Math.sin(r);o.push({x:a,y:c})}return o}async function Q(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=o.width+(t.padding??0),p=o.height+(t.padding??0),y=Math.max(5,.1*p),{cssStyles:g}=t,m=[...J(l/2,-p/2,y,20,-90,0),{x:l/2+y,y:-y},...J(l/2+2*y,-y,y,20,-180,-270),...J(l/2+2*y,y,y,20,-90,-180),{x:l/2+y,y:p/2},...J(l/2,p/2,y,20,0,90)],b=[{x:-l/2,y:-p/2-y},{x:l/2,y:-p/2-y},...J(l/2,-p/2,y,20,-90,0),{x:l/2+y,y:-y},...J(l/2+2*y,-y,y,20,-180,-270),...J(l/2+2*y,y,y,20,-90,-180),{x:l/2+y,y:p/2},...J(l/2,p/2,y,20,0,90),{x:l/2,y:p/2+y},{x:-l/2,y:p/2+y}],x=c.A.svg(a),S=(0,i.Fr)(t,{fill:"none"});"handDrawn"!==t.look&&(S.roughness=0,S.fillStyle="solid");const T=f(m).replace("Z",""),v=x.path(T,S),k=f(b),w=x.path(k,{...S}),E=a.insert("g",":first-child");return E.insert((()=>w),":first-child").attr("stroke-opacity",0),E.insert((()=>v),":first-child"),E.attr("class","text"),g&&"handDrawn"!==t.look&&E.selectAll("path").attr("style",g),r&&"handDrawn"!==t.look&&E.selectAll("path").attr("style",r),E.attr("transform",`translate(${-y}, 0)`),s.attr("transform",`translate(${-l/2+(t.padding??0)/2-(o.x-(o.left??0))},${-p/2+(t.padding??0)/2-(o.y-(o.top??0))})`),d(t,E),t.intersect=function(e){return $.polygon(t,b,e)},a}function ee(e,t,n,r=100,i=0,a=180){const o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){const r=s+i*l,a=e+n*Math.cos(r),c=t+n*Math.sin(r);o.push({x:-a,y:-c})}return o}async function te(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=o.width+(t.padding??0),p=o.height+(t.padding??0),y=Math.max(5,.1*p),{cssStyles:g}=t,m=[...ee(l/2,-p/2,y,30,-90,0),{x:-l/2-y,y},...ee(l/2+2*y,-y,y,20,-180,-270),...ee(l/2+2*y,y,y,20,-90,-180),{x:-l/2-y,y:-p/2},...ee(l/2,p/2,y,20,0,90)],b=[...ee(-l/2+y+y/2,-p/2,y,20,-90,-180),{x:l/2-y/2,y},...ee(-l/2-y/2,-y,y,20,0,90),...ee(-l/2-y/2,y,y,20,-90,0),{x:l/2-y/2,y:-y},...ee(-l/2+y+y/2,p/2,y,30,-180,-270)],x=[{x:l/2,y:-p/2-y},{x:-l/2,y:-p/2-y},...ee(l/2,-p/2,y,20,-90,0),{x:-l/2-y,y:-y},...ee(l/2+2*y,-y,y,20,-180,-270),...ee(l/2+2*y,y,y,20,-90,-180),{x:-l/2-y,y:p/2},...ee(l/2,p/2,y,20,0,90),{x:-l/2,y:p/2+y},{x:l/2-y-y/2,y:p/2+y},...ee(-l/2+y+y/2,-p/2,y,20,-90,-180),{x:l/2-y/2,y},...ee(-l/2-y/2,-y,y,20,0,90),...ee(-l/2-y/2,y,y,20,-90,0),{x:l/2-y/2,y:-y},...ee(-l/2+y+y/2,p/2,y,30,-180,-270)],S=c.A.svg(a),T=(0,i.Fr)(t,{fill:"none"});"handDrawn"!==t.look&&(T.roughness=0,T.fillStyle="solid");const v=f(m).replace("Z",""),k=S.path(v,T),w=f(b).replace("Z",""),E=S.path(w,T),A=f(x),C=S.path(A,{...T}),_=a.insert("g",":first-child");return _.insert((()=>C),":first-child").attr("stroke-opacity",0),_.insert((()=>k),":first-child"),_.insert((()=>E),":first-child"),_.attr("class","text"),g&&"handDrawn"!==t.look&&_.selectAll("path").attr("style",g),r&&"handDrawn"!==t.look&&_.selectAll("path").attr("style",r),_.attr("transform",`translate(${y-y/4}, 0)`),s.attr("transform",`translate(${-l/2+(t.padding??0)/2-(o.x-(o.left??0))},${-p/2+(t.padding??0)/2-(o.y-(o.top??0))})`),d(t,_),t.intersect=function(e){return $.polygon(t,x,e)},a}async function ne(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=Math.max(80,1.25*(o.width+2*(t.padding??0)),t?.width??0),l=Math.max(20,o.height+2*(t.padding??0),t?.height??0),p=l/2,{cssStyles:y}=t,m=c.A.svg(a),b=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(b.roughness=0,b.fillStyle="solid");const x=s-p,S=l/4,T=[{x,y:0},{x:S,y:0},{x:0,y:l/2},{x:S,y:l},{x,y:l},...g(-x,-l/2,p,50,270,90)],v=f(T),k=m.path(v,b),w=a.insert((()=>k),":first-child");return w.attr("class","basic label-container"),y&&"handDrawn"!==t.look&&w.selectChildren("path").attr("style",y),r&&"handDrawn"!==t.look&&w.selectChildren("path").attr("style",r),w.attr("transform",`translate(${-s/2}, ${-l/2})`),d(t,w),t.intersect=function(e){return $.polygon(t,T,e)},a}(0,s.K2)(z,"anchor"),(0,s.K2)(K,"generateArcPoints"),(0,s.K2)(U,"bowTieRect"),(0,s.K2)(q,"insertPolygonShape"),(0,s.K2)(W,"card"),(0,s.K2)(Y,"choice"),(0,s.K2)(H,"circle"),(0,s.K2)(V,"createLine"),(0,s.K2)(X,"crossedCircle"),(0,s.K2)(G,"generateCirclePoints"),(0,s.K2)(Z,"curlyBraceLeft"),(0,s.K2)(J,"generateCirclePoints"),(0,s.K2)(Q,"curlyBraceRight"),(0,s.K2)(ee,"generateCirclePoints"),(0,s.K2)(te,"curlyBraces"),(0,s.K2)(ne,"curvedTrapezoid");var re=(0,s.K2)(((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,"l0,"+-r].join(" ")),"createCylinderPathD"),ie=(0,s.K2)(((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,"l0,"+-r].join(" ")),"createOuterCylinderPathD"),ae=(0,s.K2)(((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(" ")),"createInnerCylinderPathD");async function oe(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:s,label:l}=await u(e,t,h(t)),p=Math.max(s.width+t.padding,t.width??0),f=p/2,y=f/(2.5+p/50),g=Math.max(s.height+y+t.padding,t.height??0);let m;const{cssStyles:b}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=ie(0,0,p,g,f,y),r=ae(0,y,p,g,f,y),o=e.path(n,(0,i.Fr)(t,{})),s=e.path(r,(0,i.Fr)(t,{fill:"none"}));m=a.insert((()=>s),":first-child"),m=a.insert((()=>o),":first-child"),m.attr("class","basic label-container"),b&&m.attr("style",b)}else{const e=re(0,0,p,g,f,y);m=a.insert("path",":first-child").attr("d",e).attr("class","basic label-container").attr("style",(0,o.KL)(b)).attr("style",r)}return m.attr("label-offset-y",y),m.attr("transform",`translate(${-p/2}, ${-(g/2+y)})`),d(t,m),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-s.height/2+(t.padding??0)/1.5-(s.y-(s.top??0))})`),t.intersect=function(e){const n=$.rect(t,e),r=n.x-(t.x??0);if(0!=f&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-y)){let i=y*y*(1-r*r/(f*f));i>0&&(i=Math.sqrt(i)),i=y-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},a}async function se(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=o.width+t.padding,p=o.height+t.padding,f=.2*p,y=-l/2,g=-p/2-f/2,{cssStyles:m}=t,b=c.A.svg(a),x=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(x.roughness=0,x.fillStyle="solid");const S=[{x:y,y:g+f},{x:-y,y:g+f},{x:-y,y:-g},{x:y,y:-g},{x:y,y:g},{x:-y,y:g},{x:-y,y:g+f}],T=b.polygon(S.map((e=>[e.x,e.y])),x),v=a.insert((()=>T),":first-child");return v.attr("class","basic label-container"),m&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",m),r&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",r),s.attr("transform",`translate(${y+(t.padding??0)/2-(o.x-(o.left??0))}, ${g+f+(t.padding??0)/2-(o.y-(o.top??0))})`),d(t,v),t.intersect=function(e){return $.rect(t,e)},a}async function le(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:l,halfPadding:p}=await u(e,t,h(t)),f=l.width/2+p+5,y=l.width/2+p;let g;const{cssStyles:m}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=(0,i.Fr)(t,{roughness:.2,strokeWidth:2.5}),r=(0,i.Fr)(t,{roughness:.2,strokeWidth:1.5}),s=e.circle(0,0,2*f,n),l=e.circle(0,0,2*y,r);g=a.insert("g",":first-child"),g.attr("class",(0,o.KL)(t.cssClasses)).attr("style",(0,o.KL)(m)),g.node()?.appendChild(s),g.node()?.appendChild(l)}else{g=a.insert("g",":first-child");const e=g.insert("circle",":first-child"),t=g.insert("circle");g.attr("class","basic label-container").attr("style",r),e.attr("class","outer-circle").attr("style",r).attr("r",f).attr("cx",0).attr("cy",0),t.attr("class","inner-circle").attr("style",r).attr("r",y).attr("cx",0).attr("cy",0)}return d(t,g),t.intersect=function(e){return s.Rm.info("DoubleCircle intersect",t,f,e),$.circle(t,f,e)},a}function ce(e,t,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:a}=(0,i.GX)(t);t.label="",t.labelStyle=r;const o=e.insert("g").attr("class",h(t)).attr("id",t.domId??t.id),{cssStyles:l}=t,u=c.A.svg(o),{nodeBorder:p}=n,f=(0,i.Fr)(t,{fillStyle:"solid"});"handDrawn"!==t.look&&(f.roughness=0);const y=u.circle(0,0,14,f),g=o.insert((()=>y),":first-child");return g.selectAll("path").attr("style",`fill: ${p} !important;`),l&&l.length>0&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",l),a&&"handDrawn"!==t.look&&g.selectAll("path").attr("style",a),d(t,g),t.intersect=function(e){return s.Rm.info("filledCircle intersect",t,{radius:7,point:e}),$.circle(t,7,e)},o}async function ue(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:l}=await u(e,t,h(t)),p=o.width+(t.padding??0),y=p+o.height,g=p+o.height,m=[{x:0,y:-y},{x:g,y:-y},{x:g/2,y:0}],{cssStyles:b}=t,x=c.A.svg(a),S=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(S.roughness=0,S.fillStyle="solid");const T=f(m),v=x.path(T,S),k=a.insert((()=>v),":first-child").attr("transform",`translate(${-y/2}, ${y/2})`);return b&&"handDrawn"!==t.look&&k.selectChildren("path").attr("style",b),r&&"handDrawn"!==t.look&&k.selectChildren("path").attr("style",r),t.width=p,t.height=y,d(t,k),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-y/2+(t.padding??0)/2+(o.y-(o.top??0))})`),t.intersect=function(e){return s.Rm.info("Triangle intersect",t,m,e),$.polygon(t,m,e)},a}function pe(e,t,{dir:n,config:{state:r,themeVariables:a}}){const{nodeStyles:o}=(0,i.GX)(t);t.label="";const s=e.insert("g").attr("class",h(t)).attr("id",t.domId??t.id),{cssStyles:l}=t;let u=Math.max(70,t?.width??0),p=Math.max(10,t?.height??0);"LR"===n&&(u=Math.max(10,t?.width??0),p=Math.max(70,t?.height??0));const f=-1*u/2,y=-1*p/2,g=c.A.svg(s),m=(0,i.Fr)(t,{stroke:a.lineColor,fill:a.lineColor});"handDrawn"!==t.look&&(m.roughness=0,m.fillStyle="solid");const b=g.rectangle(f,y,u,p,m),x=s.insert((()=>b),":first-child");l&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",l),o&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",o),d(t,x);const S=r?.padding??0;return t.width&&t.height&&(t.width+=S/2||0,t.height+=S/2||0),t.intersect=function(e){return $.rect(t,e)},s}async function de(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),l=Math.max(80,o.width+2*(t.padding??0),t?.width??0),p=Math.max(50,o.height+2*(t.padding??0),t?.height??0),y=p/2,{cssStyles:m}=t,b=c.A.svg(a),x=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(x.roughness=0,x.fillStyle="solid");const S=[{x:-l/2,y:-p/2},{x:l/2-y,y:-p/2},...g(-l/2+y,0,y,50,90,270),{x:l/2-y,y:p/2},{x:-l/2,y:p/2}],T=f(S),v=b.path(T,x),k=a.insert((()=>v),":first-child");return k.attr("class","basic label-container"),m&&"handDrawn"!==t.look&&k.selectChildren("path").attr("style",m),r&&"handDrawn"!==t.look&&k.selectChildren("path").attr("style",r),d(t,k),t.intersect=function(e){return s.Rm.info("Pill intersect",t,{radius:y,point:e}),$.polygon(t,S,e)},a}(0,s.K2)(oe,"cylinder"),(0,s.K2)(se,"dividedRectangle"),(0,s.K2)(le,"doublecircle"),(0,s.K2)(ce,"filledCircle"),(0,s.K2)(ue,"flippedTriangle"),(0,s.K2)(pe,"forkJoin"),(0,s.K2)(de,"halfRoundedRectangle");var he=(0,s.K2)(((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" ")),"createHexagonPathD");async function fe(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=o.height+t.padding,l=s/4,p=o.width+2*l+t.padding,f=[{x:l,y:0},{x:p-l,y:0},{x:p,y:-s/2},{x:p-l,y:-s},{x:l,y:-s},{x:0,y:-s/2}];let y;const{cssStyles:g}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=(0,i.Fr)(t,{}),r=he(0,0,p,s,l),o=e.path(r,n);y=a.insert((()=>o),":first-child").attr("transform",`translate(${-p/2}, ${s/2})`),g&&y.attr("style",g)}else y=q(a,p,s,f);return r&&y.attr("style",r),t.width=p,t.height=s,d(t,y),t.intersect=function(e){return $.polygon(t,f,e)},a}async function ye(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.label="",t.labelStyle=n;const{shapeSvg:a}=await u(e,t,h(t)),o=Math.max(30,t?.width??0),l=Math.max(30,t?.height??0),{cssStyles:p}=t,y=c.A.svg(a),g=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const m=[{x:0,y:0},{x:o,y:0},{x:0,y:l},{x:o,y:l}],b=f(m),x=y.path(b,g),S=a.insert((()=>x),":first-child");return S.attr("class","basic label-container"),p&&"handDrawn"!==t.look&&S.selectChildren("path").attr("style",p),r&&"handDrawn"!==t.look&&S.selectChildren("path").attr("style",r),S.attr("transform",`translate(${-o/2}, ${-l/2})`),d(t,S),t.intersect=function(e){return s.Rm.info("Pill intersect",t,{points:m}),$.polygon(t,m,e)},a}async function ge(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:o}=(0,i.GX)(t);t.labelStyle=o;const l=t.assetHeight??48,p=t.assetWidth??48,h=Math.max(l,p),f=r?.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:y,bbox:g,label:m}=await u(e,t,"icon-shape default"),b="t"===t.pos,x=h,S=h,{nodeBorder:T}=n,{stylesMap:v}=(0,i.WW)(t),k=-S/2,w=-x/2,E=t.label?8:0,A=c.A.svg(y),C=(0,i.Fr)(t,{stroke:"none",fill:"none"});"handDrawn"!==t.look&&(C.roughness=0,C.fillStyle="solid");const _=A.rectangle(k,w,S,x,C),P=Math.max(S,g.width),O=x+g.height+E,L=A.rectangle(-P/2,-O/2,P,O,{...C,fill:"transparent",stroke:"none"}),I=y.insert((()=>_),":first-child"),D=y.insert((()=>L));if(t.icon){const e=y.append("g");e.html(`<g>${await(0,a.WY)(t.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);const n=e.node().getBBox(),r=n.width,i=n.height,o=n.x,s=n.y;e.attr("transform",`translate(${-r/2-o},${b?g.height/2+E/2-i/2-s:-g.height/2-E/2-i/2-s})`),e.attr("style",`color: ${v.get("stroke")??T};`)}return m.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${b?-O/2:O/2-g.height})`),I.attr("transform",`translate(0,${b?g.height/2+E/2:-g.height/2-E/2})`),d(t,D),t.intersect=function(e){if(s.Rm.info("iconSquare intersect",t,e),!t.label)return $.rect(t,e);const n=t.x??0,r=t.y??0,i=t.height??0;let a=[];return a=b?[{x:n-g.width/2,y:r-i/2},{x:n+g.width/2,y:r-i/2},{x:n+g.width/2,y:r-i/2+g.height+E},{x:n+S/2,y:r-i/2+g.height+E},{x:n+S/2,y:r+i/2},{x:n-S/2,y:r+i/2},{x:n-S/2,y:r-i/2+g.height+E},{x:n-g.width/2,y:r-i/2+g.height+E}]:[{x:n-S/2,y:r-i/2},{x:n+S/2,y:r-i/2},{x:n+S/2,y:r-i/2+x},{x:n+g.width/2,y:r-i/2+x},{x:n+g.width/2/2,y:r+i/2},{x:n-g.width/2,y:r+i/2},{x:n-g.width/2,y:r-i/2+x},{x:n-S/2,y:r-i/2+x}],$.polygon(t,a,e)},y}async function me(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:o}=(0,i.GX)(t);t.labelStyle=o;const l=t.assetHeight??48,p=t.assetWidth??48,h=Math.max(l,p),f=r?.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:y,bbox:g,label:m}=await u(e,t,"icon-shape default"),b=t.label?8:0,x="t"===t.pos,{nodeBorder:S,mainBkg:T}=n,{stylesMap:v}=(0,i.WW)(t),k=c.A.svg(y),w=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(w.roughness=0,w.fillStyle="solid");const E=v.get("fill");w.stroke=E??T;const A=y.append("g");t.icon&&A.html(`<g>${await(0,a.WY)(t.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);const C=A.node().getBBox(),_=C.width,P=C.height,O=C.x,L=C.y,I=Math.max(_,P)*Math.SQRT2+40,D=k.circle(0,0,I,w),M=Math.max(I,g.width),N=I+g.height+b,F=k.rectangle(-M/2,-N/2,M,N,{...w,fill:"transparent",stroke:"none"}),B=y.insert((()=>D),":first-child"),R=y.insert((()=>F));return A.attr("transform",`translate(${-_/2-O},${x?g.height/2+b/2-P/2-L:-g.height/2-b/2-P/2-L})`),A.attr("style",`color: ${v.get("stroke")??S};`),m.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${x?-N/2:N/2-g.height})`),B.attr("transform",`translate(0,${x?g.height/2+b/2:-g.height/2-b/2})`),d(t,R),t.intersect=function(e){return s.Rm.info("iconSquare intersect",t,e),$.rect(t,e)},y}async function be(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:o}=(0,i.GX)(t);t.labelStyle=o;const l=t.assetHeight??48,p=t.assetWidth??48,h=Math.max(l,p),f=r?.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:y,bbox:g,halfPadding:m,label:b}=await u(e,t,"icon-shape default"),x="t"===t.pos,S=h+2*m,v=h+2*m,{nodeBorder:k,mainBkg:w}=n,{stylesMap:E}=(0,i.WW)(t),A=-v/2,C=-S/2,_=t.label?8:0,P=c.A.svg(y),O=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(O.roughness=0,O.fillStyle="solid");const L=E.get("fill");O.stroke=L??w;const I=P.path(T(A,C,v,S,5),O),D=Math.max(v,g.width),M=S+g.height+_,N=P.rectangle(-D/2,-M/2,D,M,{...O,fill:"transparent",stroke:"none"}),F=y.insert((()=>I),":first-child").attr("class","icon-shape2"),B=y.insert((()=>N));if(t.icon){const e=y.append("g");e.html(`<g>${await(0,a.WY)(t.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);const n=e.node().getBBox(),r=n.width,i=n.height,o=n.x,s=n.y;e.attr("transform",`translate(${-r/2-o},${x?g.height/2+_/2-i/2-s:-g.height/2-_/2-i/2-s})`),e.attr("style",`color: ${E.get("stroke")??k};`)}return b.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${x?-M/2:M/2-g.height})`),F.attr("transform",`translate(0,${x?g.height/2+_/2:-g.height/2-_/2})`),d(t,B),t.intersect=function(e){if(s.Rm.info("iconSquare intersect",t,e),!t.label)return $.rect(t,e);const n=t.x??0,r=t.y??0,i=t.height??0;let a=[];return a=x?[{x:n-g.width/2,y:r-i/2},{x:n+g.width/2,y:r-i/2},{x:n+g.width/2,y:r-i/2+g.height+_},{x:n+v/2,y:r-i/2+g.height+_},{x:n+v/2,y:r+i/2},{x:n-v/2,y:r+i/2},{x:n-v/2,y:r-i/2+g.height+_},{x:n-g.width/2,y:r-i/2+g.height+_}]:[{x:n-v/2,y:r-i/2},{x:n+v/2,y:r-i/2},{x:n+v/2,y:r-i/2+S},{x:n+g.width/2,y:r-i/2+S},{x:n+g.width/2/2,y:r+i/2},{x:n-g.width/2,y:r+i/2},{x:n-g.width/2,y:r-i/2+S},{x:n-v/2,y:r-i/2+S}],$.polygon(t,a,e)},y}async function xe(e,t,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:o}=(0,i.GX)(t);t.labelStyle=o;const l=t.assetHeight??48,p=t.assetWidth??48,h=Math.max(l,p),f=r?.wrappingWidth;t.width=Math.max(h,f??0);const{shapeSvg:y,bbox:g,halfPadding:m,label:b}=await u(e,t,"icon-shape default"),x="t"===t.pos,S=h+2*m,v=h+2*m,{nodeBorder:k,mainBkg:w}=n,{stylesMap:E}=(0,i.WW)(t),A=-v/2,C=-S/2,_=t.label?8:0,P=c.A.svg(y),O=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(O.roughness=0,O.fillStyle="solid");const L=E.get("fill");O.stroke=L??w;const I=P.path(T(A,C,v,S,.1),O),D=Math.max(v,g.width),M=S+g.height+_,N=P.rectangle(-D/2,-M/2,D,M,{...O,fill:"transparent",stroke:"none"}),F=y.insert((()=>I),":first-child"),B=y.insert((()=>N));if(t.icon){const e=y.append("g");e.html(`<g>${await(0,a.WY)(t.icon,{height:h,width:h,fallbackPrefix:""})}</g>`);const n=e.node().getBBox(),r=n.width,i=n.height,o=n.x,s=n.y;e.attr("transform",`translate(${-r/2-o},${x?g.height/2+_/2-i/2-s:-g.height/2-_/2-i/2-s})`),e.attr("style",`color: ${E.get("stroke")??k};`)}return b.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${x?-M/2:M/2-g.height})`),F.attr("transform",`translate(0,${x?g.height/2+_/2:-g.height/2-_/2})`),d(t,B),t.intersect=function(e){if(s.Rm.info("iconSquare intersect",t,e),!t.label)return $.rect(t,e);const n=t.x??0,r=t.y??0,i=t.height??0;let a=[];return a=x?[{x:n-g.width/2,y:r-i/2},{x:n+g.width/2,y:r-i/2},{x:n+g.width/2,y:r-i/2+g.height+_},{x:n+v/2,y:r-i/2+g.height+_},{x:n+v/2,y:r+i/2},{x:n-v/2,y:r+i/2},{x:n-v/2,y:r-i/2+g.height+_},{x:n-g.width/2,y:r-i/2+g.height+_}]:[{x:n-v/2,y:r-i/2},{x:n+v/2,y:r-i/2},{x:n+v/2,y:r-i/2+S},{x:n+g.width/2,y:r-i/2+S},{x:n+g.width/2/2,y:r+i/2},{x:n-g.width/2,y:r+i/2},{x:n-g.width/2,y:r-i/2+S},{x:n-v/2,y:r-i/2+S}],$.polygon(t,a,e)},y}async function Se(e,t,{config:{flowchart:n}}){const r=new Image;r.src=t?.img??"",await r.decode();const a=Number(r.naturalWidth.toString().replace("px","")),o=Number(r.naturalHeight.toString().replace("px",""));t.imageAspectRatio=a/o;const{labelStyles:l}=(0,i.GX)(t);t.labelStyle=l;const p=n?.wrappingWidth;t.defaultWidth=n?.wrappingWidth;const h=Math.max(t.label?p??0:0,t?.assetWidth??a),f="on"===t.constraint&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:h,y="on"===t.constraint?f/t.imageAspectRatio:t?.assetHeight??o;t.width=Math.max(f,p??0);const{shapeSvg:g,bbox:m,label:b}=await u(e,t,"image-shape default"),x="t"===t.pos,S=-f/2,T=-y/2,v=t.label?8:0,k=c.A.svg(g),w=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(w.roughness=0,w.fillStyle="solid");const E=k.rectangle(S,T,f,y,w),A=Math.max(f,m.width),C=y+m.height+v,_=k.rectangle(-A/2,-C/2,A,C,{...w,fill:"none",stroke:"none"}),P=g.insert((()=>E),":first-child"),O=g.insert((()=>_));if(t.img){const e=g.append("image");e.attr("href",t.img),e.attr("width",f),e.attr("height",y),e.attr("preserveAspectRatio","none"),e.attr("transform",`translate(${-f/2},${x?C/2-y:-C/2})`)}return b.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-y/2-m.height/2-v/2:y/2-m.height/2+v/2})`),P.attr("transform",`translate(0,${x?m.height/2+v/2:-m.height/2-v/2})`),d(t,O),t.intersect=function(e){if(s.Rm.info("iconSquare intersect",t,e),!t.label)return $.rect(t,e);const n=t.x??0,r=t.y??0,i=t.height??0;let a=[];return a=x?[{x:n-m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2+m.height+v},{x:n+f/2,y:r-i/2+m.height+v},{x:n+f/2,y:r+i/2},{x:n-f/2,y:r+i/2},{x:n-f/2,y:r-i/2+m.height+v},{x:n-m.width/2,y:r-i/2+m.height+v}]:[{x:n-f/2,y:r-i/2},{x:n+f/2,y:r-i/2},{x:n+f/2,y:r-i/2+y},{x:n+m.width/2,y:r-i/2+y},{x:n+m.width/2/2,y:r+i/2},{x:n-m.width/2,y:r+i/2},{x:n-m.width/2,y:r-i/2+y},{x:n-f/2,y:r-i/2+y}],$.polygon(t,a,e)},g}async function Te(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=Math.max(o.width+2*(t.padding??0),t?.width??0),l=Math.max(o.height+2*(t.padding??0),t?.height??0),p=[{x:0,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:-3*l/6,y:-l}];let y;const{cssStyles:g}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=(0,i.Fr)(t,{}),r=f(p),o=e.path(r,n);y=a.insert((()=>o),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),g&&y.attr("style",g)}else y=q(a,s,l,p);return r&&y.attr("style",r),t.width=s,t.height=l,d(t,y),t.intersect=function(e){return $.polygon(t,p,e)},a}async function ve(e,t,n){const{labelStyles:r,nodeStyles:a}=(0,i.GX)(t);t.labelStyle=r;const{shapeSvg:s,bbox:l}=await u(e,t,h(t)),p=Math.max(l.width+2*n.labelPaddingX,t?.width||0),f=Math.max(l.height+2*n.labelPaddingY,t?.height||0),y=-p/2,g=-f/2;let m,{rx:b,ry:x}=t;const{cssStyles:S}=t;if(n?.rx&&n.ry&&(b=n.rx,x=n.ry),"handDrawn"===t.look){const e=c.A.svg(s),n=(0,i.Fr)(t,{}),r=b||x?e.path(T(y,g,p,f,b||0),n):e.rectangle(y,g,p,f,n);m=s.insert((()=>r),":first-child"),m.attr("class","basic label-container").attr("style",(0,o.KL)(S))}else m=s.insert("rect",":first-child"),m.attr("class","basic label-container").attr("style",a).attr("rx",(0,o.KL)(b)).attr("ry",(0,o.KL)(x)).attr("x",y).attr("y",g).attr("width",p).attr("height",f);return d(t,m),t.intersect=function(e){return $.rect(t,e)},s}async function ke(e,t){const{shapeSvg:n,bbox:r,label:i}=await u(e,t,"label"),a=n.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),n.attr("class","label edgeLabel"),i.attr("transform",`translate(${-r.width/2-(r.x-(r.left??0))}, ${-r.height/2-(r.y-(r.top??0))})`),d(t,a),t.intersect=function(e){return $.rect(t,e)},n}async function we(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=Math.max(o.width+(t.padding??0),t?.width??0),l=Math.max(o.height+(t.padding??0),t?.height??0),p=[{x:0,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:-3*l/6,y:-l}];let y;const{cssStyles:g}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=(0,i.Fr)(t,{}),r=f(p),o=e.path(r,n);y=a.insert((()=>o),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),g&&y.attr("style",g)}else y=q(a,s,l,p);return r&&y.attr("style",r),t.width=s,t.height=l,d(t,y),t.intersect=function(e){return $.polygon(t,p,e)},a}async function Ee(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=Math.max(o.width+(t.padding??0),t?.width??0),l=Math.max(o.height+(t.padding??0),t?.height??0),p=[{x:-3*l/6,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:0,y:-l}];let y;const{cssStyles:g}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=(0,i.Fr)(t,{}),r=f(p),o=e.path(r,n);y=a.insert((()=>o),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),g&&y.attr("style",g)}else y=q(a,s,l,p);return r&&y.attr("style",r),t.width=s,t.height=l,d(t,y),t.intersect=function(e){return $.polygon(t,p,e)},a}function Ae(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.label="",t.labelStyle=n;const a=e.insert("g").attr("class",h(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,l=Math.max(35,t?.width??0),u=Math.max(35,t?.height??0),p=[{x:l,y:0},{x:0,y:u+3.5},{x:l-14,y:u+3.5},{x:0,y:2*u},{x:l,y:u-3.5},{x:14,y:u-3.5}],y=c.A.svg(a),g=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const m=f(p),b=y.path(m,g),x=a.insert((()=>b),":first-child");return o&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",o),r&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",r),x.attr("transform",`translate(-${l/2},${-u})`),d(t,x),t.intersect=function(e){return s.Rm.info("lightningBolt intersect",t,e),$.polygon(t,p,e)},a}(0,s.K2)(fe,"hexagon"),(0,s.K2)(ye,"hourglass"),(0,s.K2)(ge,"icon"),(0,s.K2)(me,"iconCircle"),(0,s.K2)(be,"iconRounded"),(0,s.K2)(xe,"iconSquare"),(0,s.K2)(Se,"imageSquare"),(0,s.K2)(Te,"inv_trapezoid"),(0,s.K2)(ve,"drawRect"),(0,s.K2)(ke,"labelRect"),(0,s.K2)(we,"lean_left"),(0,s.K2)(Ee,"lean_right"),(0,s.K2)(Ae,"lightningBolt");var Ce=(0,s.K2)(((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,"l0,"+-r,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(" ")),"createCylinderPathD"),_e=(0,s.K2)(((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,"l0,"+-r,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(" ")),"createOuterCylinderPathD"),Pe=(0,s.K2)(((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(" ")),"createInnerCylinderPathD");async function Oe(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:s,label:l}=await u(e,t,h(t)),p=Math.max(s.width+(t.padding??0),t.width??0),f=p/2,y=f/(2.5+p/50),g=Math.max(s.height+y+(t.padding??0),t.height??0),m=.1*g;let b;const{cssStyles:x}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=_e(0,0,p,g,f,y,m),r=Pe(0,y,p,g,f,y),o=(0,i.Fr)(t,{}),s=e.path(n,o),l=e.path(r,o);a.insert((()=>l),":first-child").attr("class","line"),b=a.insert((()=>s),":first-child"),b.attr("class","basic label-container"),x&&b.attr("style",x)}else{const e=Ce(0,0,p,g,f,y,m);b=a.insert("path",":first-child").attr("d",e).attr("class","basic label-container").attr("style",(0,o.KL)(x)).attr("style",r)}return b.attr("label-offset-y",y),b.attr("transform",`translate(${-p/2}, ${-(g/2+y)})`),d(t,b),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-s.height/2+y-(s.y-(s.top??0))})`),t.intersect=function(e){const n=$.rect(t,e),r=n.x-(t.x??0);if(0!=f&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-y)){let i=y*y*(1-r*r/(f*f));i>0&&(i=Math.sqrt(i)),i=y-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},a}async function Le(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=Math.max(o.width+2*(t.padding??0),t?.width??0),p=Math.max(o.height+2*(t.padding??0),t?.height??0),f=p/4,g=p+f,{cssStyles:m}=t,b=c.A.svg(a),x=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(x.roughness=0,x.fillStyle="solid");const S=[{x:-l/2-l/2*.1,y:-g/2},{x:-l/2-l/2*.1,y:g/2},...y(-l/2-l/2*.1,g/2,l/2+l/2*.1,g/2,f,.8),{x:l/2+l/2*.1,y:-g/2},{x:-l/2-l/2*.1,y:-g/2},{x:-l/2,y:-g/2},{x:-l/2,y:g/2*1.1},{x:-l/2,y:-g/2}],T=b.polygon(S.map((e=>[e.x,e.y])),x),v=a.insert((()=>T),":first-child");return v.attr("class","basic label-container"),m&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",m),r&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",r),v.attr("transform",`translate(0,${-f/2})`),s.attr("transform",`translate(${-l/2+(t.padding??0)+l/2*.1/2-(o.x-(o.left??0))},${-p/2+(t.padding??0)-f/2-(o.y-(o.top??0))})`),d(t,v),t.intersect=function(e){return $.polygon(t,S,e)},a}async function Ie(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=Math.max(o.width+2*(t.padding??0),t?.width??0),p=Math.max(o.height+2*(t.padding??0),t?.height??0),y=-l/2,g=-p/2,{cssStyles:m}=t,b=c.A.svg(a),x=(0,i.Fr)(t,{}),S=[{x:y-5,y:g+5},{x:y-5,y:g+p+5},{x:y+l-5,y:g+p+5},{x:y+l-5,y:g+p},{x:y+l,y:g+p},{x:y+l,y:g+p-5},{x:y+l+5,y:g+p-5},{x:y+l+5,y:g-5},{x:y+5,y:g-5},{x:y+5,y:g},{x:y,y:g},{x:y,y:g+5}],T=[{x:y,y:g+5},{x:y+l-5,y:g+5},{x:y+l-5,y:g+p},{x:y+l,y:g+p},{x:y+l,y:g},{x:y,y:g}];"handDrawn"!==t.look&&(x.roughness=0,x.fillStyle="solid");const v=f(S),k=b.path(v,x),w=f(T),E=b.path(w,{...x,fill:"none"}),A=a.insert((()=>E),":first-child");return A.insert((()=>k),":first-child"),A.attr("class","basic label-container"),m&&"handDrawn"!==t.look&&A.selectAll("path").attr("style",m),r&&"handDrawn"!==t.look&&A.selectAll("path").attr("style",r),s.attr("transform",`translate(${-o.width/2-5-(o.x-(o.left??0))}, ${-o.height/2+5-(o.y-(o.top??0))})`),d(t,A),t.intersect=function(e){return $.polygon(t,S,e)},a}async function De(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=Math.max(o.width+2*(t.padding??0),t?.width??0),p=Math.max(o.height+2*(t.padding??0),t?.height??0),g=p/4,m=p+g,b=-l/2,x=-m/2,{cssStyles:S}=t,T=y(b-5,x+m+5,b+l-5,x+m+5,g,.8),v=T?.[T.length-1],k=[{x:b-5,y:x+5},{x:b-5,y:x+m+5},...T,{x:b+l-5,y:v.y-5},{x:b+l,y:v.y-5},{x:b+l,y:v.y-10},{x:b+l+5,y:v.y-10},{x:b+l+5,y:x-5},{x:b+5,y:x-5},{x:b+5,y:x},{x:b,y:x},{x:b,y:x+5}],w=[{x:b,y:x+5},{x:b+l-5,y:x+5},{x:b+l-5,y:v.y-5},{x:b+l,y:v.y-5},{x:b+l,y:x},{x:b,y:x}],E=c.A.svg(a),A=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(A.roughness=0,A.fillStyle="solid");const C=f(k),_=E.path(C,A),P=f(w),O=E.path(P,A),L=a.insert((()=>_),":first-child");return L.insert((()=>O)),L.attr("class","basic label-container"),S&&"handDrawn"!==t.look&&L.selectAll("path").attr("style",S),r&&"handDrawn"!==t.look&&L.selectAll("path").attr("style",r),L.attr("transform",`translate(0,${-g/2})`),s.attr("transform",`translate(${-o.width/2-5-(o.x-(o.left??0))}, ${-o.height/2+5-g/2-(o.y-(o.top??0))})`),d(t,L),t.intersect=function(e){return $.polygon(t,k,e)},a}async function Me(e,t,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:a}=(0,i.GX)(t);t.labelStyle=r,t.useHtmlLabels||!1!==(0,s.zj)().flowchart?.htmlLabels||(t.centerLabel=!0);const{shapeSvg:o,bbox:l,label:p}=await u(e,t,h(t)),f=Math.max(l.width+2*(t.padding??0),t?.width??0),y=Math.max(l.height+2*(t.padding??0),t?.height??0),g=-f/2,m=-y/2,{cssStyles:b}=t,x=c.A.svg(o),S=(0,i.Fr)(t,{fill:n.noteBkgColor,stroke:n.noteBorderColor});"handDrawn"!==t.look&&(S.roughness=0,S.fillStyle="solid");const T=x.rectangle(g,m,f,y,S),v=o.insert((()=>T),":first-child");return v.attr("class","basic label-container"),b&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",b),a&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",a),p.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-l.height/2-(l.y-(l.top??0))})`),d(t,v),t.intersect=function(e){return $.rect(t,e)},o}(0,s.K2)(Oe,"linedCylinder"),(0,s.K2)(Le,"linedWaveEdgedRect"),(0,s.K2)(Ie,"multiRect"),(0,s.K2)(De,"multiWaveEdgedRectangle"),(0,s.K2)(Me,"note");var Ne=(0,s.K2)(((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,"Z"].join(" ")),"createDecisionBoxPathD");async function Fe(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),l=o.width+t.padding+(o.height+t.padding),p=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let f;const{cssStyles:y}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=(0,i.Fr)(t,{}),r=Ne(0,0,l),o=e.path(r,n);f=a.insert((()=>o),":first-child").attr("transform",`translate(${-l/2}, ${l/2})`),y&&f.attr("style",y)}else f=q(a,l,l,p);return r&&f.attr("style",r),d(t,f),t.intersect=function(e){return s.Rm.debug("APA12 Intersect called SPLIT\npoint:",e,"\nnode:\n",t,"\nres:",$.polygon(t,p,e)),$.polygon(t,p,e)},a}async function Be(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=-Math.max(o.width+(t.padding??0),t?.width??0)/2,p=-Math.max(o.height+(t.padding??0),t?.height??0)/2,y=p/2,g=[{x:l+y,y:p},{x:l,y:0},{x:l+y,y:-p},{x:-l,y:-p},{x:-l,y:p}],{cssStyles:m}=t,b=c.A.svg(a),x=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(x.roughness=0,x.fillStyle="solid");const S=f(g),T=b.path(S,x),v=a.insert((()=>T),":first-child");return v.attr("class","basic label-container"),m&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",m),r&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",r),v.attr("transform",`translate(${-y/2},0)`),s.attr("transform",`translate(${-y/2-o.width/2-(o.x-(o.left??0))}, ${-o.height/2-(o.y-(o.top??0))})`),d(t,v),t.intersect=function(e){return $.polygon(t,g,e)},a}async function Re(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);let a;t.labelStyle=n,a=t.cssClasses?"node "+t.cssClasses:"node default";const o=e.insert("g").attr("class",a).attr("id",t.domId||t.id),u=o.insert("g"),p=o.insert("g").attr("class","label").attr("style",r),h=t.description,f=t.label,y=p.node().appendChild(await S(f,t.labelStyle,!0,!0));let g={width:0,height:0};if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){const e=y.children[0],t=(0,l.Ltv)(y);g=e.getBoundingClientRect(),t.attr("width",g.width),t.attr("height",g.height)}s.Rm.info("Text 2",h);const m=h||[],b=y.getBBox(),x=p.node().appendChild(await S(m.join?m.join("<br/>"):m,t.labelStyle,!0,!0)),v=x.children[0],k=(0,l.Ltv)(x);g=v.getBoundingClientRect(),k.attr("width",g.width),k.attr("height",g.height);const w=(t.padding||0)/2;(0,l.Ltv)(x).attr("transform","translate( "+(g.width>b.width?0:(b.width-g.width)/2)+", "+(b.height+w+5)+")"),(0,l.Ltv)(y).attr("transform","translate( "+(g.width<b.width?0:-(b.width-g.width)/2)+", 0)"),g=p.node().getBBox(),p.attr("transform","translate("+-g.width/2+", "+(-g.height/2-w+3)+")");const E=g.width+(t.padding||0),A=g.height+(t.padding||0),C=-g.width/2-w,_=-g.height/2-w;let P,O;if("handDrawn"===t.look){const e=c.A.svg(o),n=(0,i.Fr)(t,{}),r=e.path(T(C,_,E,A,t.rx||0),n),a=e.line(-g.width/2-w,-g.height/2-w+b.height+w,g.width/2+w,-g.height/2-w+b.height+w,n);O=o.insert((()=>(s.Rm.debug("Rough node insert CXC",r),a)),":first-child"),P=o.insert((()=>(s.Rm.debug("Rough node insert CXC",r),r)),":first-child")}else P=u.insert("rect",":first-child"),O=u.insert("line"),P.attr("class","outer title-state").attr("style",r).attr("x",-g.width/2-w).attr("y",-g.height/2-w).attr("width",g.width+(t.padding||0)).attr("height",g.height+(t.padding||0)),O.attr("class","divider").attr("x1",-g.width/2-w).attr("x2",g.width/2+w).attr("y1",-g.height/2-w+b.height+w).attr("y2",-g.height/2-w+b.height+w);return d(t,P),t.intersect=function(e){return $.rect(t,e)},o}async function je(e,t){return ve(e,t,{rx:5,ry:5,classes:"",labelPaddingX:1*(t?.padding||0),labelPaddingY:1*(t?.padding||0)})}async function $e(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:s,label:l}=await u(e,t,h(t)),p=t?.padding??0,f=Math.max(s.width+2*(t.padding??0),t?.width??0),y=Math.max(s.height+2*(t.padding??0),t?.height??0),g=-s.width/2-p,m=-s.height/2-p,{cssStyles:b}=t,x=c.A.svg(a),S=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(S.roughness=0,S.fillStyle="solid");const T=[{x:g,y:m},{x:g+f+8,y:m},{x:g+f+8,y:m+y},{x:g-8,y:m+y},{x:g-8,y:m},{x:g,y:m},{x:g,y:m+y}],v=x.polygon(T.map((e=>[e.x,e.y])),S),k=a.insert((()=>v),":first-child");return k.attr("class","basic label-container").attr("style",(0,o.KL)(b)),r&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",r),b&&"handDrawn"!==t.look&&k.selectAll("path").attr("style",r),l.attr("transform",`translate(${-f/2+4+(t.padding??0)-(s.x-(s.left??0))},${-y/2+(t.padding??0)-(s.y-(s.top??0))})`),d(t,k),t.intersect=function(e){return $.rect(t,e)},a}async function ze(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=Math.max(o.width+2*(t.padding??0),t?.width??0),p=Math.max(o.height+2*(t.padding??0),t?.height??0),y=-l/2,g=-p/2,{cssStyles:m}=t,b=c.A.svg(a),x=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(x.roughness=0,x.fillStyle="solid");const S=[{x:y,y:g},{x:y,y:g+p},{x:y+l,y:g+p},{x:y+l,y:g-p/2}],T=f(S),v=b.path(T,x),k=a.insert((()=>v),":first-child");return k.attr("class","basic label-container"),m&&"handDrawn"!==t.look&&k.selectChildren("path").attr("style",m),r&&"handDrawn"!==t.look&&k.selectChildren("path").attr("style",r),k.attr("transform",`translate(0, ${p/4})`),s.attr("transform",`translate(${-l/2+(t.padding??0)-(o.x-(o.left??0))}, ${-p/4+(t.padding??0)-(o.y-(o.top??0))})`),d(t,k),t.intersect=function(e){return $.polygon(t,S,e)},a}async function Ke(e,t){return ve(e,t,{rx:0,ry:0,classes:"",labelPaddingX:2*(t?.padding||0),labelPaddingY:1*(t?.padding||0)})}async function Ue(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:s}=await u(e,t,h(t)),l=s.height+t.padding,p=s.width+l/4+t.padding;let f;const{cssStyles:y}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=(0,i.Fr)(t,{}),r=T(-p/2,-l/2,p,l,l/2),s=e.path(r,n);f=a.insert((()=>s),":first-child"),f.attr("class","basic label-container").attr("style",(0,o.KL)(y))}else f=a.insert("rect",":first-child"),f.attr("class","basic label-container").attr("style",r).attr("rx",l/2).attr("ry",l/2).attr("x",-p/2).attr("y",-l/2).attr("width",p).attr("height",l);return d(t,f),t.intersect=function(e){return $.rect(t,e)},a}async function qe(e,t){return ve(e,t,{rx:5,ry:5,classes:"flowchart-node"})}function We(e,t,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:a}=(0,i.GX)(t);t.labelStyle=r;const{cssStyles:o}=t,{lineColor:s,stateBorder:l,nodeBorder:u}=n,p=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),h=c.A.svg(p),f=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const y=h.circle(0,0,14,{...f,stroke:s,strokeWidth:2}),g=l??u,m=h.circle(0,0,5,{...f,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),b=p.insert((()=>y),":first-child");return b.insert((()=>m)),o&&b.selectAll("path").attr("style",o),a&&b.selectAll("path").attr("style",a),d(t,b),t.intersect=function(e){return $.circle(t,7,e)},p}function Ye(e,t,{config:{themeVariables:n}}){const{lineColor:r}=n,a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let o;if("handDrawn"===t.look){const e=c.A.svg(a).circle(0,0,14,(0,i.ue)(r));o=a.insert((()=>e)),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else o=a.insert("circle",":first-child"),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return d(t,o),t.intersect=function(e){return $.circle(t,7,e)},a}async function He(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:s}=await u(e,t,h(t)),l=(t?.padding||0)/2,p=s.width+t.padding,f=s.height+t.padding,y=-s.width/2-l,g=-s.height/2-l,m=[{x:0,y:0},{x:p,y:0},{x:p,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:p+8,y:0},{x:p+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if("handDrawn"===t.look){const e=c.A.svg(a),n=(0,i.Fr)(t,{}),r=e.rectangle(y-8,g,p+16,f,n),s=e.line(y,g,y,g+f,n),l=e.line(y+p,g,y+p,g+f,n);a.insert((()=>s),":first-child"),a.insert((()=>l),":first-child");const u=a.insert((()=>r),":first-child"),{cssStyles:h}=t;u.attr("class","basic label-container").attr("style",(0,o.KL)(h)),d(t,u)}else{const e=q(a,p,f,m);r&&e.attr("style",r),d(t,e)}return t.intersect=function(e){return $.polygon(t,m,e)},a}async function Ve(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=Math.max(o.width+2*(t.padding??0),t?.width??0),l=Math.max(o.height+2*(t.padding??0),t?.height??0),p=-s/2,y=-l/2,g=.2*l,m=.2*l,{cssStyles:b}=t,x=c.A.svg(a),S=(0,i.Fr)(t,{}),T=[{x:p-g/2,y},{x:p+s+g/2,y},{x:p+s+g/2,y:y+l},{x:p-g/2,y:y+l}],v=[{x:p+s-g/2,y:y+l},{x:p+s+g/2,y:y+l},{x:p+s+g/2,y:y+l-m}];"handDrawn"!==t.look&&(S.roughness=0,S.fillStyle="solid");const k=f(T),w=x.path(k,S),E=f(v),A=x.path(E,{...S,fillStyle:"solid"}),C=a.insert((()=>A),":first-child");return C.insert((()=>w),":first-child"),C.attr("class","basic label-container"),b&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",b),r&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",r),d(t,C),t.intersect=function(e){return $.polygon(t,T,e)},a}async function Xe(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=Math.max(o.width+2*(t.padding??0),t?.width??0),p=Math.max(o.height+2*(t.padding??0),t?.height??0),g=p/4,m=.2*l,b=.2*p,x=p+g,{cssStyles:S}=t,T=c.A.svg(a),v=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(v.roughness=0,v.fillStyle="solid");const k=[{x:-l/2-l/2*.1,y:x/2},...y(-l/2-l/2*.1,x/2,l/2+l/2*.1,x/2,g,.8),{x:l/2+l/2*.1,y:-x/2},{x:-l/2-l/2*.1,y:-x/2}],w=-l/2+l/2*.1,E=-x/2-.4*b,A=[{x:w+l-m,y:1.4*(E+p)},{x:w+l,y:E+p-b},{x:w+l,y:.9*(E+p)},...y(w+l,1.3*(E+p),w+l-m,1.5*(E+p),.03*-p,.5)],C=f(k),_=T.path(C,v),P=f(A),O=T.path(P,{...v,fillStyle:"solid"}),L=a.insert((()=>O),":first-child");return L.insert((()=>_),":first-child"),L.attr("class","basic label-container"),S&&"handDrawn"!==t.look&&L.selectAll("path").attr("style",S),r&&"handDrawn"!==t.look&&L.selectAll("path").attr("style",r),L.attr("transform",`translate(0,${-g/2})`),s.attr("transform",`translate(${-l/2+(t.padding??0)-(o.x-(o.left??0))},${-p/2+(t.padding??0)-g/2-(o.y-(o.top??0))})`),d(t,L),t.intersect=function(e){return $.polygon(t,k,e)},a}async function Ge(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=Math.max(o.width+t.padding,t?.width||0),l=Math.max(o.height+t.padding,t?.height||0),c=-s/2,p=-l/2,f=a.insert("rect",":first-child");return f.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",c).attr("y",p).attr("width",s).attr("height",l),d(t,f),t.intersect=function(e){return $.rect(t,e)},a}(0,s.K2)(Fe,"question"),(0,s.K2)(Be,"rect_left_inv_arrow"),(0,s.K2)(Re,"rectWithTitle"),(0,s.K2)(je,"roundedRect"),(0,s.K2)($e,"shadedProcess"),(0,s.K2)(ze,"slopedRect"),(0,s.K2)(Ke,"squareRect"),(0,s.K2)(Ue,"stadium"),(0,s.K2)(qe,"state"),(0,s.K2)(We,"stateEnd"),(0,s.K2)(Ye,"stateStart"),(0,s.K2)(He,"subroutine"),(0,s.K2)(Ve,"taggedRect"),(0,s.K2)(Xe,"taggedWaveEdgedRectangle"),(0,s.K2)(Ge,"text");var Ze=(0,s.K2)(((e,t,n,r,i,a)=>`M${e},${t}\n a${i},${a} 0,0,1 0,${-r}\n l${n},0\n a${i},${a} 0,0,1 0,${r}\n M${n},${-r}\n a${i},${a} 0,0,0 0,${r}\n l${-n},0`),"createCylinderPathD"),Je=(0,s.K2)(((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(" ")),"createOuterCylinderPathD"),Qe=(0,s.K2)(((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(" ")),"createInnerCylinderPathD");async function et(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:s,label:l,halfPadding:p}=await u(e,t,h(t)),f="neo"===t.look?2*p:p,y=s.height+f,g=y/2,m=g/(2.5+y/50),b=s.width+m+f,{cssStyles:x}=t;let S;if("handDrawn"===t.look){const e=c.A.svg(a),n=Je(0,0,b,y,m,g),r=Qe(0,0,b,y,m,g),o=e.path(n,(0,i.Fr)(t,{})),s=e.path(r,(0,i.Fr)(t,{fill:"none"}));S=a.insert((()=>s),":first-child"),S=a.insert((()=>o),":first-child"),S.attr("class","basic label-container"),x&&S.attr("style",x)}else{const e=Ze(0,0,b,y,m,g);S=a.insert("path",":first-child").attr("d",e).attr("class","basic label-container").attr("style",(0,o.KL)(x)).attr("style",r),S.attr("class","basic label-container"),x&&S.selectAll("path").attr("style",x),r&&S.selectAll("path").attr("style",r)}return S.attr("label-offset-x",m),S.attr("transform",`translate(${-b/2}, ${y/2} )`),l.attr("transform",`translate(${-s.width/2-m-(s.x-(s.left??0))}, ${-s.height/2-(s.y-(s.top??0))})`),d(t,S),t.intersect=function(e){const n=$.rect(t,e),r=n.y-(t.y??0);if(0!=g&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-m)){let i=m*m*(1-r*r/(g*g));0!=i&&(i=Math.sqrt(Math.abs(i))),i=m-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},a}async function tt(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=o.width+t.padding,l=o.height+t.padding,p=[{x:-3*l/6,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:0,y:-l}];let y;const{cssStyles:g}=t;if("handDrawn"===t.look){const e=c.A.svg(a),n=(0,i.Fr)(t,{}),r=f(p),o=e.path(r,n);y=a.insert((()=>o),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),g&&y.attr("style",g)}else y=q(a,s,l,p);return r&&y.attr("style",r),t.width=s,t.height=l,d(t,y),t.intersect=function(e){return $.polygon(t,p,e)},a}async function nt(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=Math.max(60,o.width+2*(t.padding??0),t?.width??0),l=Math.max(20,o.height+2*(t.padding??0),t?.height??0),{cssStyles:p}=t,y=c.A.svg(a),g=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const m=[{x:-s/2*.8,y:-l/2},{x:s/2*.8,y:-l/2},{x:s/2,y:-l/2*.6},{x:s/2,y:l/2},{x:-s/2,y:l/2},{x:-s/2,y:-l/2*.6}],b=f(m),x=y.path(b,g),S=a.insert((()=>x),":first-child");return S.attr("class","basic label-container"),p&&"handDrawn"!==t.look&&S.selectChildren("path").attr("style",p),r&&"handDrawn"!==t.look&&S.selectChildren("path").attr("style",r),d(t,S),t.intersect=function(e){return $.polygon(t,m,e)},a}async function rt(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:l}=await u(e,t,h(t)),p=(0,s._3)((0,s.D7)().flowchart?.htmlLabels),y=o.width+(t.padding??0),g=y+o.height,m=y+o.height,b=[{x:0,y:0},{x:m,y:0},{x:m/2,y:-g}],{cssStyles:x}=t,S=c.A.svg(a),T=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(T.roughness=0,T.fillStyle="solid");const v=f(b),k=S.path(v,T),w=a.insert((()=>k),":first-child").attr("transform",`translate(${-g/2}, ${g/2})`);return x&&"handDrawn"!==t.look&&w.selectChildren("path").attr("style",x),r&&"handDrawn"!==t.look&&w.selectChildren("path").attr("style",r),t.width=y,t.height=g,d(t,w),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${g/2-(o.height+(t.padding??0)/(p?2:1)-(o.y-(o.top??0)))})`),t.intersect=function(e){return s.Rm.info("Triangle intersect",t,b,e),$.polygon(t,b,e)},a}async function it(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=Math.max(o.width+2*(t.padding??0),t?.width??0),p=Math.max(o.height+2*(t.padding??0),t?.height??0),g=p/8,m=p+g,{cssStyles:b}=t,x=70-l,S=x>0?x/2:0,T=c.A.svg(a),v=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(v.roughness=0,v.fillStyle="solid");const k=[{x:-l/2-S,y:m/2},...y(-l/2-S,m/2,l/2+S,m/2,g,.8),{x:l/2+S,y:-m/2},{x:-l/2-S,y:-m/2}],w=f(k),E=T.path(w,v),A=a.insert((()=>E),":first-child");return A.attr("class","basic label-container"),b&&"handDrawn"!==t.look&&A.selectAll("path").attr("style",b),r&&"handDrawn"!==t.look&&A.selectAll("path").attr("style",r),A.attr("transform",`translate(0,${-g/2})`),s.attr("transform",`translate(${-l/2+(t.padding??0)-(o.x-(o.left??0))},${-p/2+(t.padding??0)-g-(o.y-(o.top??0))})`),d(t,A),t.intersect=function(e){return $.polygon(t,k,e)},a}async function at(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o}=await u(e,t,h(t)),s=Math.max(o.width+2*(t.padding??0),t?.width??0),l=Math.max(o.height+2*(t.padding??0),t?.height??0),p=s/l;let g=s,m=l;g>m*p?m=g/p:g=m*p,g=Math.max(g,100),m=Math.max(m,50);const b=Math.min(.2*m,m/4),x=m+2*b,{cssStyles:S}=t,T=c.A.svg(a),v=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(v.roughness=0,v.fillStyle="solid");const k=[{x:-g/2,y:x/2},...y(-g/2,x/2,g/2,x/2,b,1),{x:g/2,y:-x/2},...y(g/2,-x/2,-g/2,-x/2,b,-1)],w=f(k),E=T.path(w,v),A=a.insert((()=>E),":first-child");return A.attr("class","basic label-container"),S&&"handDrawn"!==t.look&&A.selectAll("path").attr("style",S),r&&"handDrawn"!==t.look&&A.selectAll("path").attr("style",r),d(t,A),t.intersect=function(e){return $.polygon(t,k,e)},a}async function ot(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const{shapeSvg:a,bbox:o,label:s}=await u(e,t,h(t)),l=Math.max(o.width+2*(t.padding??0),t?.width??0),p=Math.max(o.height+2*(t.padding??0),t?.height??0),f=-l/2,y=-p/2,{cssStyles:g}=t,m=c.A.svg(a),b=(0,i.Fr)(t,{}),x=[{x:f-5,y:y-5},{x:f-5,y:y+p},{x:f+l,y:y+p},{x:f+l,y:y-5}],S=`M${f-5},${y-5} L${f+l},${y-5} L${f+l},${y+p} L${f-5},${y+p} L${f-5},${y-5}\n M${f-5},${y} L${f+l},${y}\n M${f},${y-5} L${f},${y+p}`;"handDrawn"!==t.look&&(b.roughness=0,b.fillStyle="solid");const T=m.path(S,b),v=a.insert((()=>T),":first-child");return v.attr("transform","translate(2.5, 2.5)"),v.attr("class","basic label-container"),g&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",g),r&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",r),s.attr("transform",`translate(${-o.width/2+2.5-(o.x-(o.left??0))}, ${-o.height/2+2.5-(o.y-(o.top??0))})`),d(t,v),t.intersect=function(e){return $.polygon(t,x,e)},a}async function st(e,t){const n=t;if(n.alias&&(t.label=n.alias),"handDrawn"===t.look){const{themeVariables:n}=(0,s.zj)(),{background:r}=n,i={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${r}`]};await st(e,i)}const r=(0,s.zj)();t.useHtmlLabels=r.htmlLabels;let a=r.er?.diagramPadding??10,u=r.er?.entityPadding??6;const{cssStyles:p}=t,{labelStyles:f,nodeStyles:y}=(0,i.GX)(t);if(0===n.attributes.length&&t.label){const n={rx:0,ry:0,labelPaddingX:a,labelPaddingY:1.5*a,classes:""};(0,o.Un)(t.label,r)+2*n.labelPaddingX<r.er.minEntityWidth&&(t.width=r.er.minEntityWidth);const i=await ve(e,t,n);if(!(0,s._3)(r.htmlLabels)){const e=i.select("text"),t=e.node()?.getBBox();e.attr("transform",`translate(${-t.width/2}, 0)`)}return i}r.htmlLabels||(a*=1.25,u*=1.25);let g=h(t);g||(g="node default");const m=e.insert("g").attr("class",g).attr("id",t.domId||t.id),b=await lt(m,t.label??"",r,0,0,["name"],f);b.height+=u;let x=0;const S=[],T=[];let v=0,k=0,w=0,E=0,A=!0,C=!0;for(const e of n.attributes){const t=await lt(m,e.type,r,0,x,["attribute-type"],f);v=Math.max(v,t.width+a);const n=await lt(m,e.name,r,0,x,["attribute-name"],f);k=Math.max(k,n.width+a);const i=await lt(m,e.keys.join(),r,0,x,["attribute-keys"],f);w=Math.max(w,i.width+a);const o=await lt(m,e.comment,r,0,x,["attribute-comment"],f);E=Math.max(E,o.width+a);const s=Math.max(t.height,n.height,i.height,o.height)+u;T.push({yOffset:x,rowHeight:s}),x+=s}let _=4;w<=a&&(A=!1,w=0,_--),E<=a&&(C=!1,E=0,_--);const P=m.node().getBBox();if(b.width+2*a-(v+k+w+E)>0){const e=b.width+2*a-(v+k+w+E);v+=e/_,k+=e/_,w>0&&(w+=e/_),E>0&&(E+=e/_)}const O=v+k+w+E,L=c.A.svg(m),I=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(I.roughness=0,I.fillStyle="solid");let D=0;T.length>0&&(D=T.reduce(((e,t)=>e+(t?.rowHeight??0)),0));const M=Math.max(P.width+2*a,t?.width||0,O),N=Math.max((D??0)+b.height,t?.height||0),F=-M/2,B=-N/2;m.selectAll("g:not(:first-child)").each(((e,t,n)=>{const r=(0,l.Ltv)(n[t]),i=r.attr("transform");let o=0,s=0;if(i){const e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]),r.attr("class").includes("attribute-name")?o+=v:r.attr("class").includes("attribute-keys")?o+=v+k:r.attr("class").includes("attribute-comment")&&(o+=v+k+w))}r.attr("transform",`translate(${F+a/2+o}, ${s+B+b.height+u/2})`)})),m.select(".name").attr("transform","translate("+-b.width/2+", "+(B+u/2)+")");const R=L.rectangle(F,B,M,N,I),j=m.insert((()=>R),":first-child").attr("style",p.join("")),{themeVariables:z}=(0,s.zj)(),{rowEven:K,rowOdd:U,nodeBorder:q}=z;S.push(0);for(const[e,t]of T.entries()){const n=(e+1)%2==0&&0!==t.yOffset,r=L.rectangle(F,b.height+B+t?.yOffset,M,t?.rowHeight,{...I,fill:n?K:U,stroke:q});m.insert((()=>r),"g.label").attr("style",p.join("")).attr("class","row-rect-"+(n?"even":"odd"))}let W=L.line(F,b.height+B,M+F,b.height+B,I);m.insert((()=>W)).attr("class","divider"),W=L.line(v+F,b.height+B,v+F,N+B,I),m.insert((()=>W)).attr("class","divider"),A&&(W=L.line(v+k+F,b.height+B,v+k+F,N+B,I),m.insert((()=>W)).attr("class","divider")),C&&(W=L.line(v+k+w+F,b.height+B,v+k+w+F,N+B,I),m.insert((()=>W)).attr("class","divider"));for(const e of S)W=L.line(F,b.height+B+e,M+F,b.height+B+e,I),m.insert((()=>W)).attr("class","divider");if(d(t,j),y&&"handDrawn"!==t.look){const e=y.split(";"),t=e?.filter((e=>e.includes("stroke")))?.map((e=>`${e}`)).join("; ");m.selectAll("path").attr("style",t??""),m.selectAll(".row-rect-even path").attr("style",y)}return t.intersect=function(e){return $.rect(t,e)},m}async function lt(e,t,n,r=0,i=0,c=[],u=""){const p=e.insert("g").attr("class",`label ${c.join(" ")}`).attr("transform",`translate(${r}, ${i})`).attr("style",u);t!==(0,s.QO)(t)&&(t=(t=(0,s.QO)(t)).replaceAll("<","&lt;").replaceAll(">","&gt;"));const d=p.node().appendChild(await(0,a.GZ)(p,t,{width:(0,o.Un)(t,n)+100,style:u,useHtmlLabels:n.htmlLabels},n));if(t.includes("&lt;")||t.includes("&gt;")){let e=d.children[0];for(e.textContent=e.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let h=d.getBBox();if((0,s._3)(n.htmlLabels)){const e=d.children[0];e.style.textAlign="start";const t=(0,l.Ltv)(d);h=e.getBoundingClientRect(),t.attr("width",h.width),t.attr("height",h.height)}return h}async function ct(e,t,n,r,i=n.class.padding??12){const a=r?0:3,o=e.insert("g").attr("class",h(t)).attr("id",t.domId||t.id);let s=null,l=null,c=null,u=null,p=0,d=0,f=0;if(s=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const e=t.annotations[0];await ut(s,{text:`«${e}»`},0),p=s.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await ut(l,t,0,["font-weight: bolder"]);const y=l.node().getBBox();d=y.height,c=o.insert("g").attr("class","members-group text");let g=0;for(const e of t.members)g+=await ut(c,e,g,[e.parseClassifier()])+a;f=c.node().getBBox().height,f<=0&&(f=i/2),u=o.insert("g").attr("class","methods-group text");let m=0;for(const e of t.methods)m+=await ut(u,e,m,[e.parseClassifier()])+a;let b=o.node().getBBox();if(null!==s){const e=s.node().getBBox();s.attr("transform",`translate(${-e.width/2})`)}return l.attr("transform",`translate(${-y.width/2}, ${p})`),b=o.node().getBBox(),c.attr("transform",`translate(0, ${p+d+2*i})`),b=o.node().getBBox(),u.attr("transform",`translate(0, ${p+d+(f?f+4*i:2*i)})`),b=o.node().getBBox(),{shapeSvg:o,bbox:b}}async function ut(e,t,n,r=[]){const i=e.insert("g").attr("class","label").attr("style",r.join("; ")),c=(0,s.zj)();let u="useHtmlLabels"in t?t.useHtmlLabels:(0,s._3)(c.htmlLabels)??!0,p="";p="text"in t?t.text:t.label,!u&&p.startsWith("\\")&&(p=p.substring(1)),(0,s.Wi)(p)&&(u=!0);const d=await(0,a.GZ)(i,(0,s.oB)((0,o.Sm)(p)),{width:(0,o.Un)(p,c)+50,classes:"markdown-node-label",useHtmlLabels:u},c);let h,f=1;if(u){const e=d.children[0],t=(0,l.Ltv)(d);f=e.innerHTML.split("<br>").length,e.innerHTML.includes("</math>")&&(f+=e.innerHTML.split("<mrow>").length-1);const n=e.getElementsByTagName("img");if(n){const e=""===p.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map((t=>new Promise((n=>{function r(){if(t.style.display="flex",t.style.flexDirection="column",e){const e=c.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,n=5,r=parseInt(e,10)*n+"px";t.style.minWidth=r,t.style.maxWidth=r}else t.style.width="100%";n(t)}(0,s.K2)(r,"setupImage"),setTimeout((()=>{t.complete&&r()})),t.addEventListener("error",r),t.addEventListener("load",r)})))))}h=e.getBoundingClientRect(),t.attr("width",h.width),t.attr("height",h.height)}else{r.includes("font-weight: bolder")&&(0,l.Ltv)(d).selectAll("tspan").attr("font-weight",""),f=d.children.length;const e=d.children[0];(""===d.textContent||d.textContent.includes("&gt"))&&(e.textContent=p[0]+p.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim()," "===p[1]&&(e.textContent=e.textContent[0]+" "+e.textContent.substring(1))),"undefined"===e.textContent&&(e.textContent=""),h=d.getBBox()}return i.attr("transform","translate(0,"+(-h.height/(2*f)+n)+")"),h.height}async function pt(e,t){const n=(0,s.D7)(),r=n.class.padding??12,a=r,o=t.useHtmlLabels??(0,s._3)(n.htmlLabels)??!0,u=t;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];const{shapeSvg:p,bbox:h}=await ct(e,t,n,o,a),{labelStyles:f,nodeStyles:y}=(0,i.GX)(t);t.labelStyle=f,t.cssStyles=u.styles||"";const g=u.styles?.join(";")||y||"";t.cssStyles||(t.cssStyles=g.replaceAll("!important","").split(";"));const m=0===u.members.length&&0===u.methods.length&&!n.class?.hideEmptyMembersBox,b=c.A.svg(p),x=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(x.roughness=0,x.fillStyle="solid");const S=h.width;let T=h.height;0===u.members.length&&0===u.methods.length?T+=a:u.members.length>0&&0===u.methods.length&&(T+=2*a);const v=-S/2,k=-T/2,w=b.rectangle(v-r,k-r-(m?r:0===u.members.length&&0===u.methods.length?-r/2:0),S+2*r,T+2*r+(m?2*r:0===u.members.length&&0===u.methods.length?-r:0),x),E=p.insert((()=>w),":first-child");E.attr("class","basic label-container");const A=E.node().getBBox();p.selectAll(".text").each(((e,t,n)=>{const i=(0,l.Ltv)(n[t]),a=i.attr("transform");let s=0;if(a){const e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(s=parseFloat(e[2]))}let c=s+k+r-(m?r:0===u.members.length&&0===u.methods.length?-r/2:0);o||(c-=4);let d=v;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(d=-i.node()?.getBBox().width/2||0,p.selectAll("text").each((function(e,t,n){"middle"===window.getComputedStyle(n[t]).textAnchor&&(d=0)}))),i.attr("transform",`translate(${d}, ${c})`)}));const C=p.select(".annotation-group").node().getBBox().height-(m?r/2:0)||0,_=p.select(".label-group").node().getBBox().height-(m?r/2:0)||0,P=p.select(".members-group").node().getBBox().height-(m?r/2:0)||0;if(u.members.length>0||u.methods.length>0||m){const e=b.line(A.x,C+_+k+r,A.x+A.width,C+_+k+r,x);p.insert((()=>e)).attr("class","divider").attr("style",g)}if(m||u.members.length>0||u.methods.length>0){const e=b.line(A.x,C+_+P+k+2*a+r,A.x+A.width,C+_+P+k+r+2*a,x);p.insert((()=>e)).attr("class","divider").attr("style",g)}if("handDrawn"!==u.look&&p.selectAll("path").attr("style",g),E.select(":nth-child(2)").attr("style",g),p.selectAll(".divider").select("path").attr("style",g),t.labelStyle?p.selectAll("span").attr("style",t.labelStyle):p.selectAll("span").attr("style",g),!o){const e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(g);if(t){const e=t[0].replace("color","fill");p.selectAll("tspan").attr("style",e)}else if(f){const t=e.exec(f);if(t){const e=t[0].replace("color","fill");p.selectAll("tspan").attr("style",e)}}}return d(t,E),t.intersect=function(e){return $.rect(t,e)},p}async function dt(e,t){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(t);t.labelStyle=n;const a=t,o=t,s="verifyMethod"in t,u=h(t),p=e.insert("g").attr("class",u).attr("id",t.domId??t.id);let f;f=s?await ht(p,`&lt;&lt;${a.type}&gt;&gt;`,0,t.labelStyle):await ht(p,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let y=f;const g=await ht(p,a.name,y,t.labelStyle+"; font-weight: bold;");y+=g+20,s?(y+=await ht(p,a.requirementId?`id: ${a.requirementId}`:"",y,t.labelStyle),y+=await ht(p,a.text?`Text: ${a.text}`:"",y,t.labelStyle),y+=await ht(p,a.risk?`Risk: ${a.risk}`:"",y,t.labelStyle),await ht(p,a.verifyMethod?`Verification: ${a.verifyMethod}`:"",y,t.labelStyle)):(y+=await ht(p,o.type?`Type: ${o.type}`:"",y,t.labelStyle),await ht(p,o.docRef?`Doc Ref: ${o.docRef}`:"",y,t.labelStyle));const m=(p.node()?.getBBox().width??200)+20,b=(p.node()?.getBBox().height??200)+20,x=-m/2,S=-b/2,T=c.A.svg(p),v=(0,i.Fr)(t,{});"handDrawn"!==t.look&&(v.roughness=0,v.fillStyle="solid");const k=T.rectangle(x,S,m,b,v),w=p.insert((()=>k),":first-child");if(w.attr("class","basic label-container").attr("style",r),p.selectAll(".label").each(((e,t,n)=>{const r=(0,l.Ltv)(n[t]),i=r.attr("transform");let a=0,o=0;if(i){const e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(a=parseFloat(e[1]),o=parseFloat(e[2]))}const s=o-b/2;let c=x+10;0!==t&&1!==t||(c=a),r.attr("transform",`translate(${c}, ${s+20})`)})),y>f+g+20){const e=T.line(x,S+f+g+20,x+m,S+f+g+20,v);p.insert((()=>e)).attr("style",r)}return d(t,w),t.intersect=function(e){return $.rect(t,e)},p}async function ht(e,t,n,r=""){if(""===t)return 0;const i=e.insert("g").attr("class","label").attr("style",r),c=(0,s.D7)(),u=c.htmlLabels??!0,p=await(0,a.GZ)(i,(0,s.oB)((0,o.Sm)(t)),{width:(0,o.Un)(t,c)+50,classes:"markdown-node-label",useHtmlLabels:u,style:r},c);let d;if(u){const e=p.children[0],t=(0,l.Ltv)(p);d=e.getBoundingClientRect(),t.attr("width",d.width),t.attr("height",d.height)}else{const e=p.children[0];for(const t of e.children)t.textContent=t.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),r&&t.setAttribute("style",r);d=p.getBBox(),d.height+=6}return i.attr("transform",`translate(${-d.width/2},${-d.height/2+n})`),d.height}(0,s.K2)(et,"tiltedCylinder"),(0,s.K2)(tt,"trapezoid"),(0,s.K2)(nt,"trapezoidalPentagon"),(0,s.K2)(rt,"triangle"),(0,s.K2)(it,"waveEdgedRectangle"),(0,s.K2)(at,"waveRectangle"),(0,s.K2)(ot,"windowPane"),(0,s.K2)(st,"erBox"),(0,s.K2)(lt,"addText"),(0,s.K2)(ct,"textHelper"),(0,s.K2)(ut,"addText"),(0,s.K2)(pt,"classBox"),(0,s.K2)(dt,"requirementBox"),(0,s.K2)(ht,"addText");var ft=(0,s.K2)((e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}}),"colorFromPriority");async function yt(e,t,{config:n}){const{labelStyles:r,nodeStyles:a}=(0,i.GX)(t);t.labelStyle=r||"";const o=t.width;t.width=(t.width??200)-10;const{shapeSvg:s,bbox:l,label:f}=await u(e,t,h(t)),y=t.padding||10;let g,m="";"ticket"in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(m=n?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),g=s.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",m).attr("target","_blank"));const b={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let x,S;({label:x,bbox:S}=g?await p(g,"ticket"in t&&t.ticket||"",b):await p(s,"ticket"in t&&t.ticket||"",b));const{label:v,bbox:k}=await p(s,"assigned"in t&&t.assigned||"",b);t.width=o;const w=t?.width||0,E=Math.max(S.height,k.height)/2,A=Math.max(l.height+20,t?.height||0)+E,C=-w/2,_=-A/2;let P;f.attr("transform","translate("+(y-w/2)+", "+(-E-l.height/2)+")"),x.attr("transform","translate("+(y-w/2)+", "+(-E+l.height/2)+")"),v.attr("transform","translate("+(y+w/2-k.width-20)+", "+(-E+l.height/2)+")");const{rx:O,ry:L}=t,{cssStyles:I}=t;if("handDrawn"===t.look){const e=c.A.svg(s),n=(0,i.Fr)(t,{}),r=O||L?e.path(T(C,_,w,A,O||0),n):e.rectangle(C,_,w,A,n);P=s.insert((()=>r),":first-child"),P.attr("class","basic label-container").attr("style",I||null)}else{P=s.insert("rect",":first-child"),P.attr("class","basic label-container __APA__").attr("style",a).attr("rx",O??5).attr("ry",L??5).attr("x",C).attr("y",_).attr("width",w).attr("height",A);const e="priority"in t&&t.priority;if(e){const t=s.append("line"),n=C+2,r=_+Math.floor((O??0)/2),i=_+A-Math.floor((O??0)/2);t.attr("x1",n).attr("y1",r).attr("x2",n).attr("y2",i).attr("stroke-width","4").attr("stroke",ft(e))}}return d(t,P),t.height=A,t.intersect=function(e){return $.rect(t,e)},s}(0,s.K2)(yt,"kanbanItem");var gt=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Ke},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:je},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Ue},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:He},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:oe},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:H},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Fe},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:fe},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Ee},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:we},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:tt},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Te},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:le},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Ge},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:W},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:$e},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Ye},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:We},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:pe},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:ye},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Z},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Q},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:te},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Ae},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:it},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:de},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:et},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Oe},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:ne},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:se},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:rt},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:ot},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ce},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:nt},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:ue},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:ze},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:De},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Ie},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:U},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:X},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Xe},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Ve},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:at},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Be},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Le}],mt=(0,s.K2)((()=>{const e={state:qe,choice:Y,note:Me,rectWithTitle:Re,labelRect:ke,iconSquare:xe,iconCircle:me,icon:ge,iconRounded:be,imageSquare:Se,anchor:z,kanbanItem:yt,classBox:pt,erBox:st,requirementBox:dt},t=[...Object.entries(e),...gt.flatMap((e=>[e.shortName,..."aliases"in e?e.aliases:[],..."internalAliases"in e?e.internalAliases:[]].map((t=>[t,e.handler]))))];return Object.fromEntries(t)}),"generateShapeMap")();function bt(e){return e in mt}(0,s.K2)(bt,"isValidShape");var xt=new Map;async function St(e,t,n){let r,i;"rect"===t.shape&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?mt[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;"sandbox"===n.config.securityLevel?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),r=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),i=await a(r,t,n)}else i=await a(e,t,n),r=i;return t.tooltip&&i.attr("title",t.tooltip),xt.set(t.id,r),t.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}(0,s.K2)(St,"insertNode");var Tt=(0,s.K2)(((e,t)=>{xt.set(t.id,e)}),"setNodeElem"),vt=(0,s.K2)((()=>{xt.clear()}),"clear"),kt=(0,s.K2)((e=>{const t=xt.get(e.id);s.Rm.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n}),"positionNode")},85378:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;const i=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},85944:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(45718),i=n(11028);const a=(e,t,n)=>{const a=i.A.parse(e),o=a[t],s=r.A.channel.clamp[t](o+n);return o!==s&&(a[t]=s),i.A.stringify(a)}},86293:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=Object.keys(t);for(const r of n)if(e[r]!==t[r])return!1;return!0}},86330:(e,t,n)=>{"use strict";function r(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,l,"next",e)}function l(e){r(o,i,a,s,l,"throw",e)}s(void 0)}))}}n.d(t,{A:()=>i})},86503:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let n=0;n<e.children.length;n++){let a=e.children[n];(0,r.isJSXText)(a)?(0,i.default)(a,t):((0,r.isJSXExpressionContainer)(a)&&(a=a.expression),(0,r.isJSXEmptyExpression)(a)||t.push(a))}return t};var r=n(60133),i=n(90132)},87046:(e,t,n)=>{"use strict";n.d(t,{_G:()=>d,be:()=>s,gB:()=>y,gl:()=>v});var r=n(18769),i=n.n(r),a=n(81380),o=n(56550);function s(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function c(e){return null!==e&&e>=0}const u=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const a=s(t,r,n),o=t[i],l=a[i];return l&&o?{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}:null},p={scaleX:1,scaleY:1},d=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:a,overIndex:o}=e;const s=null!=(t=a[n])?t:r;if(!s)return null;if(i===n){const e=a[o];return e?{x:0,y:n<o?e.top+e.height-(s.top+s.height):e.top-s.top,...p}:null}const l=function(e,t,n){const r=e[t],i=e[t-1],a=e[t+1];return r?n<t?i?r.top-(i.top+i.height):a?a.top-(r.top+r.height):0:a?a.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}(a,i,n);return i>n&&i<=o?{x:0,y:-s.height-l,...p}:i<n&&i>=o?{x:0,y:s.height+l,...p}:{x:0,y:0,...p}},h="Sortable",f=i().createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:u,disabled:{draggable:!1,droppable:!1}});function y(e){let{children:t,id:n,items:s,strategy:c=u,disabled:p=!1}=e;const{active:d,dragOverlay:y,droppableRects:g,over:m,measureDroppableContainers:b}=(0,a.fF)(),x=(0,o.YG)(h,n),S=Boolean(null!==y.rect),T=(0,r.useMemo)((()=>s.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[s]),v=null!=d,k=d?T.indexOf(d.id):-1,w=m?T.indexOf(m.id):-1,E=(0,r.useRef)(T),A=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(T,E.current),C=-1!==w&&-1===k||A,_=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(p);(0,o.Es)((()=>{A&&v&&b(T)}),[A,T,v,b]),(0,r.useEffect)((()=>{E.current=T}),[T]);const P=(0,r.useMemo)((()=>({activeIndex:k,containerId:x,disabled:_,disableTransforms:C,items:T,overIndex:w,useDragOverlay:S,sortedRects:l(T,g),strategy:c})),[k,x,_.draggable,_.droppable,C,T,w,g,S,c]);return i().createElement(f.Provider,{value:P},t)}const g=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return s(n,r,i).indexOf(t)},m=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!r||s!==a&&i===o||!n&&(o===i||t!==l))},b={duration:200,easing:"ease"},x="transform",S=o.Ks.Transition.toString({property:x,duration:0,easing:"linear"}),T={roleDescription:"sortable"};function v(e){let{animateLayoutChanges:t=m,attributes:n,disabled:i,data:s,getNewIndex:l=g,id:u,strategy:p,resizeObserverConfig:d,transition:h=b}=e;const{items:y,containerId:v,activeIndex:k,disabled:w,disableTransforms:E,sortedRects:A,overIndex:C,useDragOverlay:_,strategy:P}=(0,r.useContext)(f),O=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(i,w),L=y.indexOf(u),I=(0,r.useMemo)((()=>({sortable:{containerId:v,index:L,items:y},...s})),[v,s,L,y]),D=(0,r.useMemo)((()=>y.slice(y.indexOf(u))),[y,u]),{rect:M,node:N,isOver:F,setNodeRef:B}=(0,a.zM)({id:u,data:I,disabled:O.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...d}}),{active:R,activatorEvent:j,activeNodeRect:$,attributes:z,setNodeRef:K,listeners:U,isDragging:q,over:W,setActivatorNodeRef:Y,transform:H}=(0,a.PM)({id:u,data:I,attributes:{...T,...n},disabled:O.draggable}),V=(0,o.jn)(B,K),X=Boolean(R),G=X&&!E&&c(k)&&c(C),Z=!_&&q,J=Z&&G?H:null,Q=G?null!=J?J:(null!=p?p:P)({rects:A,activeNodeRect:$,activeIndex:k,overIndex:C,index:L}):null,ee=c(k)&&c(C)?l({id:u,items:y,activeIndex:k,overIndex:C}):L,te=null==R?void 0:R.id,ne=(0,r.useRef)({activeId:te,items:y,newIndex:ee,containerId:v}),re=y!==ne.current.items,ie=t({active:R,containerId:v,isDragging:q,isSorting:X,id:u,index:L,items:y,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:h,wasDragging:null!=ne.current.activeId}),ae=function(e){let{disabled:t,index:n,node:i,rect:s}=e;const[l,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,o.Es)((()=>{if(!t&&n!==u.current&&i.current){const e=s.current;if(e){const t=(0,a.Sj)(i.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)}),[t,n,i,s]),(0,r.useEffect)((()=>{l&&c(null)}),[l]),l}({disabled:!ie,index:L,node:N,rect:M});return(0,r.useEffect)((()=>{X&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),v!==ne.current.containerId&&(ne.current.containerId=v),y!==ne.current.items&&(ne.current.items=y)}),[X,ee,v,y]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:R,activeIndex:k,attributes:z,data:I,rect:M,index:L,newIndex:ee,items:y,isOver:F,isSorting:X,isDragging:q,listeners:U,node:N,overIndex:C,over:W,setNodeRef:V,setActivatorNodeRef:Y,setDroppableNodeRef:B,setDraggableNodeRef:K,transform:null!=ae?ae:Q,transition:ae||re&&ne.current.newIndex===L?S:Z&&!(0,o.kx)(j)||!h?void 0:X||ie?o.Ks.Transition.toString({...h,property:x}):void 0}}a.vL.Down,a.vL.Right,a.vL.Up,a.vL.Left},87708:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(85944);const i=(e,t)=>(0,r.A)(e,"l",-t)},87850:(e,t,n)=>{"use strict";function r(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&amp;/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var a={};a[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}n.d(t,{A:()=>r}),r.displayName="markup",r.aliases=["atom","html","mathml","rss","ssml","svg","xml"]},88128:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},88143:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(!(0,r.isBlockStatement)(e)||!(0,r.isFunction)(t)&&!(0,r.isCatchClause)(t))&&(!(!(0,r.isPattern)(e)||!(0,r.isFunction)(t)&&!(0,r.isCatchClause)(t))||(0,r.isScopable)(e))};var r=n(60133)},88724:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(97913);const i=function(e){var t=new e.constructor(e.byteLength);return new r.A(t).set(new r.A(e)),t}},88748:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(4044),i=n(47313);const a=function(e){return(0,i.A)(e)&&"[object Arguments]"==(0,r.A)(e)};var o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable;const c=a(function(){return arguments}())?a:function(e){return(0,i.A)(e)&&s.call(e,"callee")&&!l.call(e,"callee")}},88765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!e)return;const o=r.NODE_FIELDS[e.type];if(!o)return;i(e,t,n,o[t]),a(e,t,n)},t.validateChild=a,t.validateField=i,t.validateInternal=function(e,t,n,i,a){if(null!=e&&e.validate&&(!e.optional||null!=i)&&(e.validate(t,n,i),a)){var o;const e=i.type;if(null==e)return;null==(o=r.NODE_PARENT_VALIDATIONS[e])||o.call(r.NODE_PARENT_VALIDATIONS,t,n,i)}};var r=n(49390);function i(e,t,n,r){null!=r&&r.validate&&(r.optional&&null==n||r.validate(e,t,n))}function a(e,t,n){var i;const a=null==n?void 0:n.type;null!=a&&(null==(i=r.NODE_PARENT_VALIDATIONS[a])||i.call(r.NODE_PARENT_VALIDATIONS,e,t,n))}},89456:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){return(0,r.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:n}])};var r=n(943)},89515:(e,t,n)=>{"use strict";function r(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}n.d(t,{A:()=>r}),r.displayName="mermaid",r.aliases=[]},89710:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,p=arguments[0],d=1,h=arguments.length,f=!1;for("boolean"==typeof p&&(f=p,p=arguments[1]||{},d=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});d<h;++d)if(null!=(t=arguments[d]))for(n in t)r=l(p,n),p!==(i=l(t,n))&&(f&&i&&(o(i)||(c=a(i)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&o(r)?r:{},s(p,{name:n,newValue:e(f,u,i)})):void 0!==i&&s(p,{name:n,newValue:i}));return p}},90132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.value.split(/\r\n|\n|\r/);let a=0;for(let e=0;e<n.length;e++)/[^ \t]/.exec(n[e])&&(a=e);let o="";for(let e=0;e<n.length;e++){const t=n[e],r=0===e,i=e===n.length-1,s=e===a;let l=t.replace(/\t/g," ");r||(l=l.replace(/^ +/,"")),i||(l=l.replace(/ +$/,"")),l&&(s||(l+=" "),o+=l)}o&&t.push((0,i.inherits)((0,r.stringLiteral)(o),e))};var r=n(93806),i=n(58135)},90550:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=e.split(".");return e=>(0,r.default)(e,n,t)};var r=n(31782)},92888:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(4044),i=n(47893),a=n(47313),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var s=n(58126),l=n(10248),c=l.A&&l.A.isTypedArray;const u=c?(0,s.A)(c):function(e){return(0,a.A)(e)&&(0,i.A)(e.length)&&!!o[(0,r.A)(e)]}},93051:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},93380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e&&!!t.computed;case"ObjectProperty":return t.key===e?!!t.computed:!n||"ObjectPattern"!==n.type;case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":return t.key!==e||!!t.computed;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":return(null==n||!n.source)&&t.local===e;case"TSEnumMember":return t.id!==e}return!0}},93544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){return!e.computed&&(0,r.isIdentifier)(t)&&(t=(0,i.stringLiteral)(t.name)),t};var r=n(60133),i=n(93806)},93806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56223);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var i=n(44614);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))},94520:(e,t,n)=>{"use strict";var r=n(81587),i=n(65183);const a=(0,i.defineAliasedType)("Flow"),o=e=>{const t="DeclareClass"===e;a(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),implements:(0,i.validateOptional)((0,i.arrayOfType)("ClassImplements"))}:{},{body:(0,i.validateType)("ObjectTypeAnnotation")})})};a("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),a("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,i.validateType)("FlowType")}}),a("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),a("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("boolean"))}}),a("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),a("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),o("DeclareClass"),a("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),predicate:(0,i.validateOptionalType)("DeclaredPredicate")}}),o("DeclareInterface"),a("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier","StringLiteral"),body:(0,i.validateType)("BlockStatement"),kind:(0,i.validateOptional)((0,i.assertOneOf)("CommonJS","ES"))}}),a("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),a("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),a("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateOptionalType)("FlowType")}}),a("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier")}}),a("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,i.validateOptionalType)("Flow"),specifiers:(0,i.validateOptional)((0,i.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,i.validateOptionalType)("StringLiteral"),default:(0,i.validateOptional)((0,i.assertValueType)("boolean"))},r.importAttributes)}),a("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,i.validateType)("StringLiteral"),exportKind:(0,i.validateOptional)((0,i.assertOneOf)("type","value"))},r.importAttributes)}),a("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,i.validateType)("Flow")}}),a("ExistsTypeAnnotation",{aliases:["FlowType"]}),a("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),params:(0,i.validateArrayOfType)("FunctionTypeParam"),rest:(0,i.validateOptionalType)("FunctionTypeParam"),this:(0,i.validateOptionalType)("FunctionTypeParam"),returnType:(0,i.validateType)("FlowType")}}),a("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,i.validateOptionalType)("Identifier"),typeAnnotation:(0,i.validateType)("FlowType"),optional:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),a("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,i.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),a("InferredPredicate",{aliases:["FlowPredicate"]}),a("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,i.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterInstantiation")}}),o("InterfaceDeclaration"),a("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,i.validateOptional)((0,i.arrayOfType)("InterfaceExtends")),body:(0,i.validateType)("ObjectTypeAnnotation")}}),a("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),a("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),a("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),a("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),a("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("number"))}}),a("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),a("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,i.validate)((0,i.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,i.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,i.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,i.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,i.assertValueType)("boolean"),default:!1},inexact:(0,i.validateOptional)((0,i.assertValueType)("boolean"))}}),a("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,i.validateType)("Identifier"),value:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean")),static:(0,i.validate)((0,i.assertValueType)("boolean")),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),a("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean"))}}),a("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,i.validateOptionalType)("Identifier"),key:(0,i.validateType)("FlowType"),value:(0,i.validateType)("FlowType"),static:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance")}}),a("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,i.validateType)("Identifier","StringLiteral"),value:(0,i.validateType)("FlowType"),kind:(0,i.validate)((0,i.assertOneOf)("init","get","set")),static:(0,i.validate)((0,i.assertValueType)("boolean")),proto:(0,i.validate)((0,i.assertValueType)("boolean")),optional:(0,i.validate)((0,i.assertValueType)("boolean")),variance:(0,i.validateOptionalType)("Variance"),method:(0,i.validate)((0,i.assertValueType)("boolean"))}}),a("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,i.validateType)("FlowType")}}),a("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,i.validateOptionalType)("FlowType"),impltype:(0,i.validateType)("FlowType")}}),a("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,i.validateType)("Identifier"),qualification:(0,i.validateType)("Identifier","QualifiedTypeIdentifier")}}),a("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,i.validate)((0,i.assertValueType)("string"))}}),a("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),a("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),a("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),a("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),a("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,i.validateType)("FlowType")}}),a("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,i.validateType)("Identifier"),typeParameters:(0,i.validateOptionalType)("TypeParameterDeclaration"),right:(0,i.validateType)("FlowType")}}),a("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,i.validateType)("FlowType")}}),a("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,i.validateType)("Expression"),typeAnnotation:(0,i.validateType)("TypeAnnotation")}}),a("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,i.validate)((0,i.assertValueType)("string")),bound:(0,i.validateOptionalType)("TypeAnnotation"),default:(0,i.validateOptionalType)("FlowType"),variance:(0,i.validateOptionalType)("Variance")}}),a("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("TypeParameter"))}}),a("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),a("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,i.validate)((0,i.arrayOfType)("FlowType"))}}),a("Variance",{builder:["kind"],fields:{kind:(0,i.validate)((0,i.assertOneOf)("minus","plus"))}}),a("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),a("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,i.validateType)("Identifier"),body:(0,i.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),a("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),a("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),a("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,i.validate)((0,i.assertValueType)("boolean")),members:(0,i.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),a("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,i.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,i.validate)((0,i.assertValueType)("boolean"))}}),a("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("BooleanLiteral")}}),a("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("NumericLiteral")}}),a("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,i.validateType)("Identifier"),init:(0,i.validateType)("StringLiteral")}}),a("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,i.validateType)("Identifier")}}),a("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType")}}),a("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,i.validateType)("FlowType"),indexType:(0,i.validateType)("FlowType"),optional:(0,i.validate)((0,i.assertValueType)("boolean"))}})},94715:(e,t,n)=>{"use strict";function r(){}function i(e){return null==e?r:function(){return this.querySelector(e)}}n.d(t,{A:()=>i})},94831:(e,t,n)=>{"use strict";var r=n(65183),i=n(81587),a=n(80947);const o=(0,r.defineAliasedType)("TypeScript"),s=(0,r.assertValueType)("boolean"),l=()=>({returnType:{validate:(0,r.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});o("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,r.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,r.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,r.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,r.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,r.arrayOfType)("Decorator"),optional:!0}}}),o("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,i.functionDeclarationCommon)(),l())}),o("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,i.classMethodOrDeclareMethodCommon)(),l())}),o("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,r.validateType)("TSEntityName"),right:(0,r.validateType)("Identifier")}});const c=()=>({typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,r.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")}),u={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:c()};o("TSCallSignatureDeclaration",u),o("TSConstructSignatureDeclaration",u);const p=()=>({key:(0,r.validateType)("Expression"),computed:{default:!1},optional:(0,r.validateOptional)(s)});o("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},p(),{readonly:(0,r.validateOptional)(s),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,r.assertOneOf)("get","set")}})}),o("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},c(),p(),{kind:{validate:(0,r.assertOneOf)("method","get","set")}})}),o("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,r.validateOptional)(s),static:(0,r.validateOptional)(s),parameters:(0,r.validateArrayOfType)("Identifier"),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")}});const d=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of d)o(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});o("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const h={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};o("TSFunctionType",Object.assign({},h,{fields:c()})),o("TSConstructorType",Object.assign({},h,{fields:Object.assign({},c(),{abstract:(0,r.validateOptional)(s)})})),o("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,r.validateType)("Identifier","TSThisType"),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),asserts:(0,r.validateOptional)(s)}}),o("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,r.validateType)("TSEntityName","TSImportType"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,r.validateArrayOfType)("TSTypeElement")}}),o("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,r.validateType)("TSType")}}),o("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,r.validateArrayOfType)("TSType","TSNamedTupleMember")}}),o("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,r.validateType)("Identifier"),optional:{validate:s,default:!1},elementType:(0,r.validateType)("TSType")}});const f={aliases:["TSType"],visitor:["types"],fields:{types:(0,r.validateArrayOfType)("TSType")}};o("TSUnionType",f),o("TSIntersectionType",f),o("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,r.validateType)("TSType"),extendsType:(0,r.validateType)("TSType"),trueType:(0,r.validateType)("TSType"),falseType:(0,r.validateType)("TSType")}}),o("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,r.validateType)("TSTypeParameter")}}),o("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),o("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,r.validate)((0,r.assertValueType)("string")),typeAnnotation:(0,r.validateType)("TSType")}}),o("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,r.validateType)("TSType"),indexType:(0,r.validateType)("TSType")}}),o("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,r.validateType)("TSTypeParameter")},{readonly:(0,r.validateOptional)((0,r.assertOneOf)(!0,!1,"+","-")),optional:(0,r.validateOptional)((0,r.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,r.validateOptionalType)("TSType"),nameType:(0,r.validateOptionalType)("TSType")})}),o("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,r.validateArrayOfType)("TemplateElement"),types:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TSType")),(function(e,t,n){if(e.quasis.length!==n.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.\nExpected ${n.length+1} quasis but got ${e.quasis.length}`)}))}}}),o("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const e=(0,r.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,r.assertOneOf)("-"),n=(0,r.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function i(r,i,o){(0,a.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):n(r,i,o)}return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i}()}}}),o("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),o("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,r.validateOptional)(s),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,r.validateOptional)((0,r.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,r.validateType)("TSInterfaceBody")}}),o("TSInterfaceBody",{visitor:["body"],fields:{body:(0,r.validateArrayOfType)("TSTypeElement")}}),o("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,r.validateOptional)(s),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,r.validateType)("TSType")}}),o("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,r.validateType)("Expression"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}});const y={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,r.validateType)("Expression"),typeAnnotation:(0,r.validateType)("TSType")}};o("TSAsExpression",y),o("TSSatisfiesExpression",y),o("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,r.validateType)("TSType"),expression:(0,r.validateType)("Expression")}}),o("TSEnumBody",{visitor:["members"],fields:{members:(0,r.validateArrayOfType)("TSEnumMember")}}),o("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,r.validateOptional)(s),const:(0,r.validateOptional)(s),id:(0,r.validateType)("Identifier"),members:(0,r.validateArrayOfType)("TSEnumMember"),initializer:(0,r.validateOptionalType)("Expression"),body:(0,r.validateOptionalType)("TSEnumBody")}}),o("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,r.validateType)("Identifier","StringLiteral"),initializer:(0,r.validateOptionalType)("Expression")}}),o("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,r.assertOneOf)("global","module","namespace")},declare:(0,r.validateOptional)(s)},{global:(0,r.validateOptional)(s)},{id:(0,r.validateType)("Identifier","StringLiteral"),body:(0,r.validateType)("TSModuleBlock","TSModuleDeclaration")})}),o("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,r.validateArrayOfType)("Statement")}}),o("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,r.validateType)("StringLiteral"),qualifier:(0,r.validateOptionalType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,r.assertNodeType)("ObjectExpression"),optional:!0}}}),o("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,r.validate)(s)},{id:(0,r.validateType)("Identifier"),moduleReference:(0,r.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,r.assertOneOf)("type","value"),optional:!0}})}),o("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,r.validateType)("StringLiteral")}}),o("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),o("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),o("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier")}}),o("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,r.assertNodeType)("TSType")}}}),o("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,r.validateArrayOfType)("TSType")}}),o("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,r.validateArrayOfType)("TSTypeParameter")}}),o("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,r.assertValueType)("string")},in:{validate:(0,r.assertValueType)("boolean"),optional:!0},out:{validate:(0,r.assertValueType)("boolean"),optional:!0},const:{validate:(0,r.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,r.assertNodeType)("TSType"),optional:!0},default:{validate:(0,r.assertNodeType)("TSType"),optional:!0}}})},95414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,i.default)(e);return 1===t.length?t[0]:(0,r.unionTypeAnnotation)(t)};var r=n(93806),i=n(54538)},95847:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"eval"!==(e=(0,r.default)(e))&&"arguments"!==e||(e="_"+e),e};var r=n(17627)},96514:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r={value:()=>{}};function i(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new a(r)}function a(e){this._=e}function o(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function s(e,t,n){for(var i=0,a=e.length;i<a;++i)if(e[i].name===t){e[i]=r,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}a.prototype=i.prototype={constructor:a,on:function(e,t){var n,r,i=this._,a=(r=i,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),l=-1,c=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++l<c;)if(n=(e=a[l]).type)i[n]=s(i[n],e.name,t);else if(null==t)for(n in i)i[n]=s(i[n],e.name,null);return this}for(;++l<c;)if((n=(e=a[l]).type)&&(n=o(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new a(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(r=this._[e]).length;a<n;++a)r[a].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};const l=i},96956:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=Array.isArray},97238:(e,t,n)=>{"use strict";function r(e,t,n){function r(n,r){var i;Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r);for(const e in o.prototype)e in n||Object.defineProperty(n,e,{value:o.prototype[e].bind(n)});n._zod.constr=o,n._zod.def=r}const i=n?.Parent??Object;class a extends i{}function o(e){var t;const i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(const e of i._zod.deferred)e();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}n.d(t,{EB:()=>Yt,bz:()=>fn,YO:()=>Sn,k5:()=>Cn,eu:()=>Pn,re:()=>vn,Yj:()=>Wt,KC:()=>wn}),Object.freeze({status:"aborted"}),Symbol("zod_brand");class i extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const a={};function o(e){return e&&Object.assign(a,e),a}const s=/^[cC][^\s-]{8,}$/,l=/^[0-9a-z]+$/,c=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,u=/^[0-9a-vA-V]{20}$/,p=/^[A-Za-z0-9]{27}$/,d=/^[a-zA-Z0-9_-]{21}$/,h=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,f=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,y=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,g=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,m=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,b=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,x=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,S=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,T=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,v=/^[A-Za-z0-9_-]*$/,k=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,w=/^\+(?:[0-9]){6,14}[0-9]$/,E="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",A=new RegExp(`^${E}$`);function C(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}const _=/^[^A-Z]*$/,P=/^[^a-z]*$/;function O(e,t){return"bigint"==typeof t?t.toString():t}function L(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function I(e){return null==e}function D(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function M(e,t,n){Object.defineProperty(e,t,{get(){{const r=n();return e[t]=r,r}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function N(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function F(...e){const t={};for(const n of e){const e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function B(e){return JSON.stringify(e)}const R="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function j(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const $=L((()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}}));function z(e){if(!1===j(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!1!==j(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}const K=new Set(["string","number","symbol"]);function U(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function q(e,t,n){const r=new e._zod.constr(t??e._zod.def);return t&&!n?.parent||(r._zod.parent=e),r}function W(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}function Y(e,t=0){for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1}function H(e,t){return t.map((t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t}))}function V(e){return"string"==typeof e?e:e?.message}function X(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=V(e.inst?._zod.def?.error?.(e))??V(t?.error?.(e))??V(n.customError?.(e))??V(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function G(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function Z(...e){const[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}new Set(["string","number","bigint","boolean","symbol","undefined"]),Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,Number.MAX_VALUE,Number.MAX_VALUE;const J=r("$ZodCheck",((e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])})),Q=r("$ZodCheckMaxLength",((e,t)=>{var n;J.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!I(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(e._zod.bag.maximum=t.maximum)})),e._zod.check=n=>{const r=n.value;if(r.length<=t.maximum)return;const i=G(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}})),ee=r("$ZodCheckMinLength",((e,t)=>{var n;J.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!I(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)})),e._zod.check=n=>{const r=n.value;if(r.length>=t.minimum)return;const i=G(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}})),te=r("$ZodCheckLengthEquals",((e,t)=>{var n;J.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!I(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{const n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length})),e._zod.check=n=>{const r=n.value,i=r.length;if(i===t.length)return;const a=G(r),o=i>t.length;n.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}})),ne=r("$ZodCheckStringFormat",((e,t)=>{var n,r;J.init(e,t),e._zod.onattach.push((e=>{const n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))})),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})})),re=r("$ZodCheckRegex",((e,t)=>{ne.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}})),ie=r("$ZodCheckLowerCase",((e,t)=>{t.pattern??(t.pattern=_),ne.init(e,t)})),ae=r("$ZodCheckUpperCase",((e,t)=>{t.pattern??(t.pattern=P),ne.init(e,t)})),oe=r("$ZodCheckIncludes",((e,t)=>{J.init(e,t);const n=U(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push((e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)})),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}})),se=r("$ZodCheckStartsWith",((e,t)=>{J.init(e,t);const n=new RegExp(`^${U(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push((e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)})),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}})),le=r("$ZodCheckEndsWith",((e,t)=>{J.init(e,t);const n=new RegExp(`.*${U(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push((e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)})),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}})),ce=r("$ZodCheckOverwrite",((e,t)=>{J.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}));class ue{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter((e=>e)),n=Math.min(...t.map((e=>e.length-e.trimStart().length))),r=t.map((e=>e.slice(n))).map((e=>" ".repeat(2*this.indent)+e));for(const e of r)this.content.push(e)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map((e=>` ${e}`))].join("\n"))}}const pe=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,O,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},de=r("$ZodError",pe),he=r("$ZodError",pe,{Parent:Error}),fe=e=>(t,n,r,a)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new i;if(l.issues.length){const t=new(a?.Err??e)(l.issues.map((e=>X(e,s,o()))));throw R(t,a?.callee),t}return l.value},ye=e=>async(t,n,r,i)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){const t=new(i?.Err??e)(s.issues.map((e=>X(e,a,o()))));throw R(t,i?.callee),t}return s.value},ge=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new i;return s.issues.length?{success:!1,error:new(e??de)(s.issues.map((e=>X(e,a,o()))))}:{success:!0,data:s.value}},me=ge(he),be=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map((e=>X(e,i,o()))))}:{success:!0,data:a.value}},xe=be(he),Se={major:4,minor:0,patch:13},Te=r("$ZodType",((e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Se;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const t of r)for(const n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push((()=>{e._zod.run=e._zod.parse}));else{const t=(e,t,n)=>{let r,a=Y(e);for(const o of t){if(o._zod.def.when){if(!o._zod.def.when(e))continue}else if(a)continue;const t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&!1===n?.async)throw new i;if(r||s instanceof Promise)r=(r??Promise.resolve()).then((async()=>{await s,e.issues.length!==t&&(a||(a=Y(e,t)))}));else{if(e.issues.length===t)continue;a||(a=Y(e,t))}}return r?r.then((()=>e)):e};e._zod.run=(n,a)=>{const o=e._zod.parse(n,a);if(o instanceof Promise){if(!1===a.async)throw new i;return o.then((e=>t(e,r,a)))}return t(o,r,a)}}e["~standard"]={validate:t=>{try{const n=me(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return xe(e,t).then((e=>e.success?{value:e.data}:{issues:e.error?.issues}))}},vendor:"zod",version:1}})),ve=r("$ZodString",((e,t)=>{var n;Te.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(n=e._zod.bag,new RegExp(`^${n?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*"}$`)),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(r){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}})),ke=r("$ZodStringFormat",((e,t)=>{ne.init(e,t),ve.init(e,t)})),we=r("$ZodGUID",((e,t)=>{t.pattern??(t.pattern=f),ke.init(e,t)})),Ee=r("$ZodUUID",((e,t)=>{if(t.version){const e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=y(e))}else t.pattern??(t.pattern=y());ke.init(e,t)})),Ae=r("$ZodEmail",((e,t)=>{t.pattern??(t.pattern=g),ke.init(e,t)})),Ce=r("$ZodURL",((e,t)=>{ke.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:k.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),void(t.normalize?n.value=i.href:n.value=r)}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}})),_e=r("$ZodEmoji",((e,t)=>{t.pattern??(t.pattern=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),ke.init(e,t)})),Pe=r("$ZodNanoID",((e,t)=>{t.pattern??(t.pattern=d),ke.init(e,t)})),Oe=r("$ZodCUID",((e,t)=>{t.pattern??(t.pattern=s),ke.init(e,t)})),Le=r("$ZodCUID2",((e,t)=>{t.pattern??(t.pattern=l),ke.init(e,t)})),Ie=r("$ZodULID",((e,t)=>{t.pattern??(t.pattern=c),ke.init(e,t)})),De=r("$ZodXID",((e,t)=>{t.pattern??(t.pattern=u),ke.init(e,t)})),Me=r("$ZodKSUID",((e,t)=>{t.pattern??(t.pattern=p),ke.init(e,t)})),Ne=r("$ZodISODateTime",((e,t)=>{t.pattern??(t.pattern=function(e){const t=C({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${E}T(?:${r})$`)}(t)),ke.init(e,t)})),Fe=r("$ZodISODate",((e,t)=>{t.pattern??(t.pattern=A),ke.init(e,t)})),Be=r("$ZodISOTime",((e,t)=>{t.pattern??(t.pattern=new RegExp(`^${C(t)}$`)),ke.init(e,t)})),Re=r("$ZodISODuration",((e,t)=>{t.pattern??(t.pattern=h),ke.init(e,t)})),je=r("$ZodIPv4",((e,t)=>{t.pattern??(t.pattern=m),ke.init(e,t),e._zod.onattach.push((e=>{e._zod.bag.format="ipv4"}))})),$e=r("$ZodIPv6",((e,t)=>{t.pattern??(t.pattern=b),ke.init(e,t),e._zod.onattach.push((e=>{e._zod.bag.format="ipv6"})),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}})),ze=r("$ZodCIDRv4",((e,t)=>{t.pattern??(t.pattern=x),ke.init(e,t)})),Ke=r("$ZodCIDRv6",((e,t)=>{t.pattern??(t.pattern=S),ke.init(e,t),e._zod.check=n=>{const[r,i]=n.value.split("/");try{if(!i)throw new Error;const e=Number(i);if(`${e}`!==i)throw new Error;if(e<0||e>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}}));function Ue(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const qe=r("$ZodBase64",((e,t)=>{t.pattern??(t.pattern=T),ke.init(e,t),e._zod.onattach.push((e=>{e._zod.bag.contentEncoding="base64"})),e._zod.check=n=>{Ue(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}})),We=r("$ZodBase64URL",((e,t)=>{t.pattern??(t.pattern=v),ke.init(e,t),e._zod.onattach.push((e=>{e._zod.bag.contentEncoding="base64url"})),e._zod.check=n=>{(function(e){if(!v.test(e))return!1;const t=e.replace(/[-_]/g,(e=>"-"===e?"+":"/"));return Ue(t.padEnd(4*Math.ceil(t.length/4),"="))})(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}})),Ye=r("$ZodE164",((e,t)=>{t.pattern??(t.pattern=w),ke.init(e,t)})),He=r("$ZodJWT",((e,t)=>{ke.init(e,t),e._zod.check=n=>{(function(e,t=null){try{const n=e.split(".");if(3!==n.length)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&"JWT"!==i?.typ||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}})(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}})),Ve=r("$ZodAny",((e,t)=>{Te.init(e,t),e._zod.parse=e=>e})),Xe=r("$ZodUnknown",((e,t)=>{Te.init(e,t),e._zod.parse=e=>e})),Ge=r("$ZodNever",((e,t)=>{Te.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}));function Ze(e,t,n){e.issues.length&&t.issues.push(...H(n,e.issues)),t.value[n]=e.value}const Je=r("$ZodArray",((e,t)=>{Te.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const a=[];for(let e=0;e<i.length;e++){const o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then((t=>Ze(t,n,e)))):Ze(s,n,e)}return a.length?Promise.all(a).then((()=>n)):n}}));function Qe(e,t,n,r){e.issues.length&&t.issues.push(...H(n,e.issues)),void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const et=r("$ZodObject",((e,t)=>{Te.init(e,t);const n=L((()=>{const e=Object.keys(t.shape);for(const n of e)if(!(t.shape[n]instanceof Te))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const n=(r=t.shape,Object.keys(r).filter((e=>"optional"===r[e]._zod.optin&&"optional"===r[e]._zod.optout)));var r;return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}}));let r;M(e._zod,"propValues",(()=>{const e=t.shape,n={};for(const t in e){const r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(const e of r.values)n[t].add(e)}}return n}));const i=j,o=!a.jitless,s=o&&$.value,l=t.catchall;let c;e._zod.parse=(a,u)=>{c??(c=n.value);const p=a.value;if(!i(p))return a.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),a;const d=[];if(o&&s&&!1===u?.async&&!0!==u.jitless)r||(r=(e=>{const t=new ue(["shape","payload","ctx"]),r=n.value,i=e=>{const t=B(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const a=Object.create(null);let o=0;for(const e of r.keys)a[e]="key_"+o++;t.write("const newResult = {}");for(const e of r.keys){const n=a[e],r=B(e);t.write(`const ${n} = ${i(e)};`),t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${r}, ...iss.path] : [${r}]\n })));\n }\n \n if (${n}.value === undefined) {\n if (${r} in input) {\n newResult[${r}] = undefined;\n }\n } else {\n newResult[${r}] = ${n}.value;\n }\n `)}t.write("payload.value = newResult;"),t.write("return payload;");const s=t.compile();return(t,n)=>s(e,t,n)})(t.shape)),a=r(a,u);else{a.value={};const e=c.shape;for(const t of c.keys){const n=e[t]._zod.run({value:p[t],issues:[]},u);n instanceof Promise?d.push(n.then((e=>Qe(e,a,t,p)))):Qe(n,a,t,p)}}if(!l)return d.length?Promise.all(d).then((()=>a)):a;const h=[],f=c.keySet,y=l._zod,g=y.def.type;for(const e of Object.keys(p)){if(f.has(e))continue;if("never"===g){h.push(e);continue}const t=y.run({value:p[e],issues:[]},u);t instanceof Promise?d.push(t.then((t=>Qe(t,a,e,p)))):Qe(t,a,e,p)}return h.length&&a.issues.push({code:"unrecognized_keys",keys:h,input:p,inst:e}),d.length?Promise.all(d).then((()=>a)):a}}));function tt(e,t,n,r){for(const n of e)if(0===n.issues.length)return t.value=n.value,t;const i=e.filter((e=>!Y(e)));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map((e=>e.issues.map((e=>X(e,r,o())))))}),t)}const nt=r("$ZodUnion",((e,t)=>{Te.init(e,t),M(e._zod,"optin",(()=>t.options.some((e=>"optional"===e._zod.optin))?"optional":void 0)),M(e._zod,"optout",(()=>t.options.some((e=>"optional"===e._zod.optout))?"optional":void 0)),M(e._zod,"values",(()=>{if(t.options.every((e=>e._zod.values)))return new Set(t.options.flatMap((e=>Array.from(e._zod.values))))})),M(e._zod,"pattern",(()=>{if(t.options.every((e=>e._zod.pattern))){const e=t.options.map((e=>e._zod.pattern));return new RegExp(`^(${e.map((e=>D(e.source))).join("|")})$`)}}));const n=1===t.options.length,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1;const s=[];for(const e of t.options){const t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(0===t.issues.length)return t;s.push(t)}}return o?Promise.all(s).then((t=>tt(t,i,e,a))):tt(s,i,e,a)}})),rt=r("$ZodIntersection",((e,t)=>{Te.init(e,t),e._zod.parse=(e,n)=>{const r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then((([t,n])=>at(e,t,n))):at(e,i,a)}}));function it(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(z(e)&&z(t)){const n=Object.keys(t),r=Object.keys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const n of r){const r=it(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=it(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function at(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Y(e))return e;const r=it(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const ot=r("$ZodEnum",((e,t)=>{Te.init(e,t);const n=function(e){const t=Object.values(e).filter((e=>"number"==typeof e));return Object.entries(e).filter((([e,n])=>-1===t.indexOf(+e))).map((([e,t])=>t))}(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter((e=>K.has(typeof e))).map((e=>"string"==typeof e?U(e):e.toString())).join("|")})$`),e._zod.parse=(t,i)=>{const a=t.value;return r.has(a)||t.issues.push({code:"invalid_value",values:n,input:a,inst:e}),t}})),st=r("$ZodLiteral",((e,t)=>{if(Te.init(e,t),0===t.values.length)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map((e=>"string"==typeof e?U(e):e?U(e.toString()):String(e))).join("|")})$`),e._zod.parse=(n,r)=>{const i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}})),lt=r("$ZodTransform",((e,t)=>{Te.init(e,t),e._zod.parse=(e,n)=>{const r=t.transform(e.value,e);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then((t=>(e.value=t,e)));if(r instanceof Promise)throw new i;return e.value=r,e}}));function ct(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}const ut=r("$ZodOptional",((e,t)=>{Te.init(e,t),e._zod.optin="optional",e._zod.optout="optional",M(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0)),M(e._zod,"pattern",(()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${D(e.source)})?$`):void 0})),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then((t=>ct(t,e.value))):ct(r,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,n)}})),pt=r("$ZodNullable",((e,t)=>{Te.init(e,t),M(e._zod,"optin",(()=>t.innerType._zod.optin)),M(e._zod,"optout",(()=>t.innerType._zod.optout)),M(e._zod,"pattern",(()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${D(e.source)}|null)$`):void 0})),M(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0)),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)})),dt=r("$ZodDefault",((e,t)=>{Te.init(e,t),e._zod.optin="optional",M(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>{if(void 0===e.value)return e.value=t.defaultValue,e;const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then((e=>ht(e,t))):ht(r,t)}}));function ht(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const ft=r("$ZodPrefault",((e,t)=>{Te.init(e,t),e._zod.optin="optional",M(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))})),yt=r("$ZodNonOptional",((e,t)=>{Te.init(e,t),M(e._zod,"values",(()=>{const e=t.innerType._zod.values;return e?new Set([...e].filter((e=>void 0!==e))):void 0})),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then((t=>gt(t,e))):gt(i,e)}}));function gt(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const mt=r("$ZodCatch",((e,t)=>{Te.init(e,t),M(e._zod,"optin",(()=>t.innerType._zod.optin)),M(e._zod,"optout",(()=>t.innerType._zod.optout)),M(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>{const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then((r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map((e=>X(e,n,o())))},input:e.value}),e.issues=[]),e))):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map((e=>X(e,n,o())))},input:e.value}),e.issues=[]),e)}})),bt=r("$ZodPipe",((e,t)=>{Te.init(e,t),M(e._zod,"values",(()=>t.in._zod.values)),M(e._zod,"optin",(()=>t.in._zod.optin)),M(e._zod,"optout",(()=>t.out._zod.optout)),M(e._zod,"propValues",(()=>t.in._zod.propValues)),e._zod.parse=(e,n)=>{const r=t.in._zod.run(e,n);return r instanceof Promise?r.then((e=>xt(e,t,n))):xt(r,t,n)}}));function xt(e,t,n){return e.issues.length?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const St=r("$ZodReadonly",((e,t)=>{Te.init(e,t),M(e._zod,"propValues",(()=>t.innerType._zod.propValues)),M(e._zod,"values",(()=>t.innerType._zod.values)),M(e._zod,"optin",(()=>t.innerType._zod.optin)),M(e._zod,"optout",(()=>t.innerType._zod.optout)),e._zod.parse=(e,n)=>{const r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Tt):Tt(r)}}));function Tt(e){return e.value=Object.freeze(e.value),e}const vt=r("$ZodCustom",((e,t)=>{J.init(e,t),Te.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then((t=>kt(t,n,r,e)));kt(i,n,r,e)}}));function kt(e,t,n,r){if(!e){const e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Z(e))}}Symbol("ZodOutput"),Symbol("ZodInput");class wt{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){const n=t[0];if(this._map.set(e,n),n&&"object"==typeof n&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function Et(){return new wt}const At=Et();function Ct(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...W(t)})}function _t(e,t){return new Q({check:"max_length",...W(t),maximum:e})}function Pt(e,t){return new ee({check:"min_length",...W(t),minimum:e})}function Ot(e,t){return new te({check:"length_equals",...W(t),length:e})}function Lt(e){return new ce({check:"overwrite",tx:e})}const It=r("ZodISODateTime",((e,t)=>{Ne.init(e,t),Yt.init(e,t)}));const Dt=r("ZodISODate",((e,t)=>{Fe.init(e,t),Yt.init(e,t)}));const Mt=r("ZodISOTime",((e,t)=>{Be.init(e,t),Yt.init(e,t)}));const Nt=r("ZodISODuration",((e,t)=>{Re.init(e,t),Yt.init(e,t)}));const Ft=(e,t)=>{de.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>function(e,t){const n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(const t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map((e=>i({issues:e})));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)r._errors.push(n(t));else{let e=r,i=0;for(;i<t.path.length;){const r=t.path[i];i===t.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(n(t))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r}(e,t)},flatten:{value:t=>function(e,t=e=>e.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,O,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,O,2)}},isEmpty:{get:()=>0===e.issues.length}})},Bt=(r("ZodError",Ft),r("ZodError",Ft,{Parent:Error})),Rt=fe(Bt),jt=ye(Bt),$t=ge(Bt),zt=be(Bt),Kt=r("ZodType",((e,t)=>(Te.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map((e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e))]}),e.clone=(t,n)=>q(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>Rt(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>$t(e,t,n),e.parseAsync=async(t,n)=>jt(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>zt(e,t,n),e.spa=e.safeParseAsync,e.refine=(t,n)=>e.check(function(e,t={}){return function(e,t,n){return new e({type:"custom",check:"custom",fn:t,...W(n)})}(Kn,e,t)}(t,n)),e.superRefine=t=>e.check(function(e){const t=function(e){const t=new J({check:"custom",...W(void 0)});return t._zod.check=e,t}((n=>(n.addIssue=e=>{if("string"==typeof e)n.issues.push(Z(e,n.value,t._zod.def));else{const r=e;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(Z(r))}},e(n.value,n))));return t}(t)),e.overwrite=t=>e.check(Lt(t)),e.optional=()=>In(e),e.nullable=()=>Mn(e),e.nullish=()=>In(Mn(e)),e.nonoptional=t=>function(e,t){return new Bn({type:"nonoptional",innerType:e,...W(t)})}(e,t),e.array=()=>Sn(e),e.or=t=>wn([e,t]),e.and=t=>new En({type:"intersection",left:e,right:t}),e.transform=t=>$n(e,new On({type:"transform",transform:t})),e.default=t=>{return n=t,new Nn({type:"default",innerType:e,get defaultValue(){return"function"==typeof n?n():n}});var n},e.prefault=t=>{return n=t,new Fn({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof n?n():n}});var n},e.catch=t=>{return new Rn({type:"catch",innerType:e,catchValue:"function"==typeof(n=t)?n:()=>n});var n},e.pipe=t=>$n(e,t),e.readonly=()=>new zn({type:"readonly",innerType:e}),e.describe=t=>{const n=e.clone();return At.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>At.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return At.get(e);const n=e.clone();return At.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e))),Ut=r("_ZodString",((e,t)=>{ve.init(e,t),Kt.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(function(e,t){return new re({check:"string_format",format:"regex",...W(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new oe({check:"string_format",format:"includes",...W(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new se({check:"string_format",format:"starts_with",...W(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new le({check:"string_format",format:"ends_with",...W(t),suffix:e})}(...t)),e.min=(...t)=>e.check(Pt(...t)),e.max=(...t)=>e.check(_t(...t)),e.length=(...t)=>e.check(Ot(...t)),e.nonempty=(...t)=>e.check(Pt(1,...t)),e.lowercase=t=>e.check(function(e){return new ie({check:"string_format",format:"lowercase",...W(e)})}(t)),e.uppercase=t=>e.check(function(e){return new ae({check:"string_format",format:"uppercase",...W(e)})}(t)),e.trim=()=>e.check(Lt((e=>e.trim()))),e.normalize=(...t)=>e.check(function(e){return Lt((t=>t.normalize(e)))}(...t)),e.toLowerCase=()=>e.check(Lt((e=>e.toLowerCase()))),e.toUpperCase=()=>e.check(Lt((e=>e.toUpperCase())))})),qt=r("ZodString",((e,t)=>{ve.init(e,t),Ut.init(e,t),e.email=t=>e.check(function(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...W(t)})}(Ht,t)),e.url=t=>e.check(function(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...W(t)})}(Gt,t)),e.jwt=t=>e.check(function(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...W(t)})}(dn,t)),e.emoji=t=>e.check(function(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...W(t)})}(Zt,t)),e.guid=t=>e.check(Ct(Vt,t)),e.uuid=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...W(t)})}(Xt,t)),e.uuidv4=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...W(t)})}(Xt,t)),e.uuidv6=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...W(t)})}(Xt,t)),e.uuidv7=t=>e.check(function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...W(t)})}(Xt,t)),e.nanoid=t=>e.check(function(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...W(t)})}(Jt,t)),e.guid=t=>e.check(Ct(Vt,t)),e.cuid=t=>e.check(function(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...W(t)})}(Qt,t)),e.cuid2=t=>e.check(function(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...W(t)})}(en,t)),e.ulid=t=>e.check(function(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...W(t)})}(tn,t)),e.base64=t=>e.check(function(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...W(t)})}(cn,t)),e.base64url=t=>e.check(function(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...W(t)})}(un,t)),e.xid=t=>e.check(function(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...W(t)})}(nn,t)),e.ksuid=t=>e.check(function(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...W(t)})}(rn,t)),e.ipv4=t=>e.check(function(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...W(t)})}(an,t)),e.ipv6=t=>e.check(function(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...W(t)})}(on,t)),e.cidrv4=t=>e.check(function(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...W(t)})}(sn,t)),e.cidrv6=t=>e.check(function(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...W(t)})}(ln,t)),e.e164=t=>e.check(function(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...W(t)})}(pn,t)),e.datetime=t=>e.check(function(e){return function(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...W(t)})}(It,e)}(t)),e.date=t=>e.check(function(e){return function(e,t){return new e({type:"string",format:"date",check:"string_format",...W(t)})}(Dt,e)}(t)),e.time=t=>e.check(function(e){return function(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...W(t)})}(Mt,e)}(t)),e.duration=t=>e.check(function(e){return function(e,t){return new e({type:"string",format:"duration",check:"string_format",...W(t)})}(Nt,e)}(t))}));function Wt(e){return function(e,t){return new e({type:"string",...W(t)})}(qt,e)}const Yt=r("ZodStringFormat",((e,t)=>{ke.init(e,t),Ut.init(e,t)})),Ht=r("ZodEmail",((e,t)=>{Ae.init(e,t),Yt.init(e,t)})),Vt=r("ZodGUID",((e,t)=>{we.init(e,t),Yt.init(e,t)})),Xt=r("ZodUUID",((e,t)=>{Ee.init(e,t),Yt.init(e,t)})),Gt=r("ZodURL",((e,t)=>{Ce.init(e,t),Yt.init(e,t)})),Zt=r("ZodEmoji",((e,t)=>{_e.init(e,t),Yt.init(e,t)})),Jt=r("ZodNanoID",((e,t)=>{Pe.init(e,t),Yt.init(e,t)})),Qt=r("ZodCUID",((e,t)=>{Oe.init(e,t),Yt.init(e,t)})),en=r("ZodCUID2",((e,t)=>{Le.init(e,t),Yt.init(e,t)})),tn=r("ZodULID",((e,t)=>{Ie.init(e,t),Yt.init(e,t)})),nn=r("ZodXID",((e,t)=>{De.init(e,t),Yt.init(e,t)})),rn=r("ZodKSUID",((e,t)=>{Me.init(e,t),Yt.init(e,t)})),an=r("ZodIPv4",((e,t)=>{je.init(e,t),Yt.init(e,t)})),on=r("ZodIPv6",((e,t)=>{$e.init(e,t),Yt.init(e,t)})),sn=r("ZodCIDRv4",((e,t)=>{ze.init(e,t),Yt.init(e,t)})),ln=r("ZodCIDRv6",((e,t)=>{Ke.init(e,t),Yt.init(e,t)})),cn=r("ZodBase64",((e,t)=>{qe.init(e,t),Yt.init(e,t)})),un=r("ZodBase64URL",((e,t)=>{We.init(e,t),Yt.init(e,t)})),pn=r("ZodE164",((e,t)=>{Ye.init(e,t),Yt.init(e,t)})),dn=r("ZodJWT",((e,t)=>{He.init(e,t),Yt.init(e,t)})),hn=r("ZodAny",((e,t)=>{Ve.init(e,t),Kt.init(e,t)}));function fn(){return new hn({type:"any"})}const yn=r("ZodUnknown",((e,t)=>{Xe.init(e,t),Kt.init(e,t)}));function gn(){return new yn({type:"unknown"})}const mn=r("ZodNever",((e,t)=>{Ge.init(e,t),Kt.init(e,t)}));function bn(e){return function(e,t){return new e({type:"never",...W(t)})}(mn,e)}const xn=r("ZodArray",((e,t)=>{Je.init(e,t),Kt.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(Pt(t,n)),e.nonempty=t=>e.check(Pt(1,t)),e.max=(t,n)=>e.check(_t(t,n)),e.length=(t,n)=>e.check(Ot(t,n)),e.unwrap=()=>e.element}));function Sn(e,t){return function(e,t,n){return new e({type:"array",element:t,...W(n)})}(xn,e,t)}const Tn=r("ZodObject",((e,t)=>{et.init(e,t),Kt.init(e,t),M(e,"shape",(()=>t.shape)),e.keyof=()=>Cn(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:gn()}),e.loose=()=>e.clone({...e._zod.def,catchall:gn()}),e.strict=()=>e.clone({...e._zod.def,catchall:bn()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>function(e,t){if(!z(t))throw new Error("Invalid input to extend: expected a plain object");const n=F(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return N(this,"shape",n),n},checks:[]});return q(e,n)}(e,t),e.merge=t=>function(e,t){const n=F(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return N(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return q(e,n)}(e,t),e.pick=t=>function(e,t){const n=e._zod.def;return q(e,F(e._zod.def,{get shape(){const e={};for(const r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return N(this,"shape",e),e},checks:[]}))}(e,t),e.omit=t=>function(e,t){const n=e._zod.def,r=F(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const e in t){if(!(e in n.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return N(this,"shape",r),r},checks:[]});return q(e,r)}(e,t),e.partial=(...t)=>function(e,t,n){const r=F(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const t in n){if(!(t in r))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(const t in r)i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return N(this,"shape",i),i},checks:[]});return q(t,r)}(Ln,e,t[0]),e.required=(...t)=>function(e,t,n){const r=F(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const t in n){if(!(t in i))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(const t in r)i[t]=new e({type:"nonoptional",innerType:r[t]});return N(this,"shape",i),i},checks:[]});return q(t,r)}(Bn,e,t[0])}));function vn(e,t){return new Tn({type:"object",get shape(){return N(this,"shape",{...e}),this.shape},catchall:bn(),...W(t)})}const kn=r("ZodUnion",((e,t)=>{nt.init(e,t),Kt.init(e,t),e.options=t.options}));function wn(e,t){return new kn({type:"union",options:e,...W(t)})}const En=r("ZodIntersection",((e,t)=>{rt.init(e,t),Kt.init(e,t)})),An=r("ZodEnum",((e,t)=>{ot.init(e,t),Kt.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{const i={};for(const r of e){if(!n.has(r))throw new Error(`Key ${r} not found in enum`);i[r]=t.entries[r]}return new An({...t,checks:[],...W(r),entries:i})},e.exclude=(e,r)=>{const i={...t.entries};for(const t of e){if(!n.has(t))throw new Error(`Key ${t} not found in enum`);delete i[t]}return new An({...t,checks:[],...W(r),entries:i})}}));function Cn(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map((e=>[e,e]))):e;return new An({type:"enum",entries:n,...W(t)})}const _n=r("ZodLiteral",((e,t)=>{st.init(e,t),Kt.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}));function Pn(e,t){return new _n({type:"literal",values:Array.isArray(e)?e:[e],...W(t)})}const On=r("ZodTransform",((e,t)=>{lt.init(e,t),Kt.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=r=>{if("string"==typeof r)n.issues.push(Z(r,n.value,t));else{const t=r;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=n.value),t.inst??(t.inst=e),n.issues.push(Z(t))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then((e=>(n.value=e,n))):(n.value=i,n)}}));const Ln=r("ZodOptional",((e,t)=>{ut.init(e,t),Kt.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function In(e){return new Ln({type:"optional",innerType:e})}const Dn=r("ZodNullable",((e,t)=>{pt.init(e,t),Kt.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function Mn(e){return new Dn({type:"nullable",innerType:e})}const Nn=r("ZodDefault",((e,t)=>{dt.init(e,t),Kt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap})),Fn=r("ZodPrefault",((e,t)=>{ft.init(e,t),Kt.init(e,t),e.unwrap=()=>e._zod.def.innerType})),Bn=r("ZodNonOptional",((e,t)=>{yt.init(e,t),Kt.init(e,t),e.unwrap=()=>e._zod.def.innerType})),Rn=r("ZodCatch",((e,t)=>{mt.init(e,t),Kt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap})),jn=r("ZodPipe",((e,t)=>{bt.init(e,t),Kt.init(e,t),e.in=t.in,e.out=t.out}));function $n(e,t){return new jn({type:"pipe",in:e,out:t})}const zn=r("ZodReadonly",((e,t)=>{St.init(e,t),Kt.init(e,t),e.unwrap=()=>e._zod.def.innerType})),Kn=r("ZodCustom",((e,t)=>{vt.init(e,t),Kt.init(e,t)}))},97342:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(50123),i=n(39600);const a=(0,r.A)(i.A,"DataView");var o=n(25436);const s=(0,r.A)(i.A,"Promise");var l=n(28574);const c=(0,r.A)(i.A,"WeakMap");var u=n(4044),p=n(1548),d="[object Map]",h="[object Promise]",f="[object Set]",y="[object WeakMap]",g="[object DataView]",m=(0,p.A)(a),b=(0,p.A)(o.A),x=(0,p.A)(s),S=(0,p.A)(l.A),T=(0,p.A)(c),v=u.A;(a&&v(new a(new ArrayBuffer(1)))!=g||o.A&&v(new o.A)!=d||s&&v(s.resolve())!=h||l.A&&v(new l.A)!=f||c&&v(new c)!=y)&&(v=function(e){var t=(0,u.A)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,p.A)(n):"";if(r)switch(r){case m:return g;case b:return d;case x:return h;case S:return f;case T:return y}return t});const k=v},97447:(e,t,n)=>{"use strict";n.d(t,{A:()=>Ge});var r={};n.r(r),n.d(r,{attentionMarkers:()=>Fe,contentInitial:()=>Oe,disable:()=>Be,document:()=>Pe,flow:()=>Ie,flowInitial:()=>Le,insideSpan:()=>Ne,string:()=>De,text:()=>Me});const i={};function a(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return o(e.children,t,n)}return Array.isArray(e)?o(e,t,n):""}function o(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=a(e[i],t,n);return r.join("")}function s(e,t,n,r){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function l(e,t){return e.length>0?(s(e,e.length,0,t),e):t}function c(e){const t={};let n,r,i,a,o,l,c,p=-1;for(;++p<e.length;){for(;p in t;)p=t[p];if(n=e[p],p&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[p-1][1].type&&(l=n[1]._tokenizer.events,i=0,i<l.length&&"lineEndingBlank"===l[i][1].type&&(i+=2),i<l.length&&"content"===l[i][1].type))for(;++i<l.length&&"content"!==l[i][1].type;)"chunkText"===l[i][1].type&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,u(e,p)),p=t[p],c=!0);else if(n[1]._container){for(i=p,r=void 0;i--&&(a=e[i],"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type);)"enter"===a[0]&&(r&&(e[r][1].type="lineEndingBlank"),a[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},e[r][1].start),o=e.slice(r,p),o.unshift(n),s(e,r,p-r+1,o))}}return!c}function u(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const a=[],o=n._tokenizer||r.parser[n.contentType](n.start),l=o.events,c=[],u={};let p,d,h=-1,f=n,y=0,g=0;const m=[g];for(;f;){for(;e[++i][1]!==f;);a.push(i),f._tokenizer||(p=r.sliceStream(f),f.next||p.push(null),d&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(p),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++h<l.length;)"exit"===l[h][0]&&"enter"===l[h-1][0]&&l[h][1].type===l[h-1][1].type&&l[h][1].start.line!==l[h][1].end.line&&(g=h+1,m.push(g),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):m.pop(),h=m.length;h--;){const t=l.slice(m[h],m[h+1]),n=a.pop();c.unshift([n,n+t.length-1]),s(e,n,2,t)}for(h=-1;++h<c.length;)u[y+c[h][0]]=y+c[h][1],y+=c[h][1]-c[h][0]-1;return u}const p={}.hasOwnProperty;function d(e,t){let n;for(n in t){const r=(p.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let a;if(i)for(a in i){p.call(r,a)||(r[a]=[]);const e=i[a];h(r[a],Array.isArray(e)?e:e?[e]:[])}}}function h(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);s(e,0,0,r)}const f=A(/[A-Za-z]/),y=A(/[\dA-Za-z]/),g=A(/[#-'*+\--9=?A-Z^-~]/);function m(e){return null!==e&&(e<32||127===e)}const b=A(/\d/),x=A(/[\dA-Fa-f]/),S=A(/[!-/:-@[-`{-~]/);function T(e){return null!==e&&e<-2}function v(e){return null!==e&&(e<0||32===e)}function k(e){return-2===e||-1===e||32===e}const w=A(/\p{P}|\p{S}/u),E=A(/\s/);function A(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function C(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return k(r)?(e.enter(n),o(r)):t(r)};function o(r){return k(r)&&a++<i?(e.consume(r),o):(e.exit(n),t(r))}}const _={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),C(e,t,"linePrefix");e.consume(n)}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):T(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},P={tokenize:function(e){const t=this,n=[];let r,i,a,o=0;return l;function l(r){if(o<n.length){const i=n[o];return t.containerState=i[1],e.attempt(i[0].continuation,c,u)(r)}return u(r)}function c(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&x();const n=t.events.length;let i,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){i=t.events[a][1].end;break}b(o);let l=n;for(;l<t.events.length;)t.events[l][1].end=Object.assign({},i),l++;return s(t.events,a+1,0,t.events.slice(n)),t.events.length=l,u(e)}return l(e)}function u(i){if(o===n.length){if(!r)return h(i);if(r.currentConstruct&&r.currentConstruct.concrete)return y(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(O,p,d)(i)}function p(e){return r&&x(),b(o),h(e)}function d(e){return t.parser.lazy[t.now().line]=o!==n.length,a=t.now().offset,y(e)}function h(n){return t.containerState={},e.attempt(O,f,y)(n)}function f(e){return o++,n.push([t.currentConstruct,t.containerState]),h(e)}function y(n){return null===n?(r&&x(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):T(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,t.interrupt=void 0,l):(e.consume(n),g)}function m(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))return;const n=t.events.length;let i,l,c=n;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){l=t.events[c][1].end;break}i=!0}for(b(o),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},l),e++;s(t.events,c+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function x(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},O={tokenize:function(e,t,n){return C(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},L={tokenize:function(e,t,n){return function(t){return k(t)?C(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||T(e)?t(e):n(e)}},partial:!0},I={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):T(t)?e.check(D,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return c(e),e}},D={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C(e,i,"linePrefix")};function i(i){if(null===i||T(i))return n(i);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},M={tokenize:function(e){const t=this,n=e.attempt(L,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,r,C(e,e.attempt(this.parser.constructs.flow,r,e.attempt(I,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},N={resolveAll:j()},F=R("string"),B=R("text");function R(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:j("text"===e?$:void 0)}}function j(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function $(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let a,o=i.length,s=-1,l=0;for(;o--;){const e=i[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)a=!0,l++;else if(-1!==e){o++;break}}if(l){const i={type:n===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+o,_bufferIndex:o?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function z(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function K(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],c=[],u=!0;const p={consume:function(e){T(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=e,u=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=g(),d.events.push(["enter",n,d]),c.push(n),n},exit:function(e){const t=c.pop();return t.end=g(),d.events.push(["exit",t,d]),t},attempt:x((function(e,t){S(e,t.from)})),check:x(b),interrupt:x(b,{interrupt:!0})},d={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:y,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if("string"==typeof a)o=a;else switch(a){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(a)}i=-2===a,r.push(o)}return r.join("")}(y(e),t)},now:g,defineSkip:function(e){i[e.line]=e.column,v()},write:function(e){return o=l(o,e),function(){let e;for(;r._index<o.length;){const t=o[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}(),null!==o[o.length-1]?[]:(S(t,0),d.events=z(a,d.events,d),d.events)}};let h,f=t.tokenize.call(d,p);return t.resolveAll&&a.push(t),d;function y(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const e=o[0];"string"==typeof e?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}(o,e)}function g(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:a}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:a}}function m(e){u=void 0,h=e,f=f(e)}function b(e,t){t.restore()}function x(e,t){return function(n,i,a){let o,s,l,h;return Array.isArray(n)?y(n):"tokenize"in n?y([n]):(f=n,function(e){const t=null!==e&&f[e],n=null!==e&&f.null;return y([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var f;function y(e){return o=e,s=0,0===e.length?a:m(e[s])}function m(e){return function(n){return h=function(){const e=g(),t=d.previous,n=d.currentConstruct,i=d.events.length,a=Array.from(c);return{restore:function(){r=e,d.previous=t,d.currentConstruct=n,d.events.length=i,c=a,v()},from:i}}(),l=e,e.partial||(d.currentConstruct=e),e.name&&d.parser.constructs.disable.null.includes(e.name)?x():e.tokenize.call(t?Object.assign(Object.create(d),t):d,p,b,x)(n)}}function b(t){return u=!0,e(l,h),i}function x(e){return u=!0,h.restore(),++s<o.length?m(o[s]):a}}}function S(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&s(d.events,t,d.events.length-t,e.resolve(d.events.slice(t),d)),e.resolveTo&&(d.events=e.resolveTo(d.events,d))}function v(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const U={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),o(a)):i>=3&&(null===a||T(a))?(e.exit("thematicBreak"),t(a)):n(a)}function o(t){return t===r?(e.consume(t),i++,o):(e.exit("thematicBreakSequence"),k(t)?C(e,a,"whitespace")(t):a(t))}}},q={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:b(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(U,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return b(t)&&++o<10?(e.consume(t),s):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(L,r.interrupt?n:c,e.attempt(W,p,u))}function c(e){return r.containerState.initialBlankLine=!0,a++,p(e)}function u(t){return k(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),p):n(t)}function p(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(L,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,C(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!k(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Y,t,i)(n))}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,C(e,e.attempt(q,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},W={tokenize:function(e,t,n){const r=this;return C(e,(function(e){const i=r.events[r.events.length-1];return!k(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Y={tokenize:function(e,t,n){const r=this;return C(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0},H={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return k(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){return k(t)?C(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(H,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function V(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),p):null===t||32===t||41===t||m(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t))};function p(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(s),p(t)):null===t||60===t||T(t)?n(t):(e.consume(t),92===t?h:d)}function h(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(i){return u||null!==i&&41!==i&&!v(i)?u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||m(i)?n(i):(e.consume(i),92===i?y:f):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i))}function y(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function X(e,t,n,r,i,a){const o=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(p){return l>999||null===p||91===p||93===p&&!s||94===p&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):93===p?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):T(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(t){return null===t||91===t||93===t||T(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!k(t)),92===t?p:u)}function p(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function G(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):T(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||T(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function Z(e,t){let n;return function r(i){return T(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):k(i)?C(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function J(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Q={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return X.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return i=J(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return v(t)?Z(e,s)(t):s(t)}function s(t){return V(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(ee,c,c)(t)}function c(t){return k(t)?C(e,u,"whitespace")(t):u(t)}function u(a){return null===a||T(a)?(e.exit("definition"),r.parser.defined.push(i),t(a)):n(a)}}},ee={tokenize:function(e,t,n){return function(t){return v(t)?Z(e,r)(t):n(t)};function r(t){return G(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return k(t)?C(e,a,"whitespace")(t):a(t)}function a(e){return null===e||T(e)?t(e):n(e)}},partial:!0},te={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),C(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?s(t):T(t)?e.attempt(ne,a,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||T(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),o)}function s(n){return e.exit("codeIndented"),t(n)}}},ne={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):T(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):C(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):T(e)?i(e):n(e)}},partial:!0},re={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||v(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),o(n)):null===n||T(n)?(e.exit("atxHeading"),t(n)):k(n)?C(e,a,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function o(t){return 35===t?(e.consume(t),o):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||v(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},s(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},ie={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let o,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){o="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!o?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===i?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),k(t)?C(e,o,"lineSuffix")(t):o(t))}function o(r){return null===r||T(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);const o={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}},ae=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],oe=["pre","script","style","textarea"],se={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,a,o,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),a=!0,h):63===s?(e.consume(s),i=3,r.interrupt?t:j):f(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function u(a){return 45===a?(e.consume(a),i=2,p):91===a?(e.consume(a),i=5,s=0,d):f(a)?(e.consume(a),i=4,r.interrupt?t:j):n(a)}function p(i){return 45===i?(e.consume(i),r.interrupt?t:j):n(i)}function d(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:L:d):n(i)}function h(t){return f(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(null===s||47===s||62===s||v(s)){const l=47===s,c=o.toLowerCase();return l||a||!oe.includes(c)?ae.includes(o.toLowerCase())?(i=6,l?(e.consume(s),m):r.interrupt?t(s):L(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?b(s):x(s)):(i=1,r.interrupt?t(s):L(s))}return 45===s||y(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:L):n(i)}function b(t){return k(t)?(e.consume(t),b):P(t)}function x(t){return 47===t?(e.consume(t),P):58===t||95===t||f(t)?(e.consume(t),S):k(t)?(e.consume(t),x):P(t)}function S(t){return 45===t||46===t||58===t||95===t||y(t)?(e.consume(t),S):w(t)}function w(t){return 61===t?(e.consume(t),E):k(t)?(e.consume(t),w):x(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,A):k(t)?(e.consume(t),E):C(t)}function A(t){return t===l?(e.consume(t),l=null,_):null===t||T(t)?n(t):(e.consume(t),A)}function C(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||v(t)?w(t):(e.consume(t),C)}function _(e){return 47===e||62===e||k(e)?x(e):n(e)}function P(t){return 62===t?(e.consume(t),O):n(t)}function O(t){return null===t||T(t)?L(t):k(t)?(e.consume(t),O):n(t)}function L(t){return 45===t&&2===i?(e.consume(t),N):60===t&&1===i?(e.consume(t),F):62===t&&4===i?(e.consume(t),$):63===t&&3===i?(e.consume(t),j):93===t&&5===i?(e.consume(t),R):!T(t)||6!==i&&7!==i?null===t||T(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),L):(e.exit("htmlFlowData"),e.check(le,z,I)(t))}function I(t){return e.check(ce,D,z)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return null===t||T(t)?I(t):(e.enter("htmlFlowData"),L(t))}function N(t){return 45===t?(e.consume(t),j):L(t)}function F(t){return 47===t?(e.consume(t),o="",B):L(t)}function B(t){if(62===t){const n=o.toLowerCase();return oe.includes(n)?(e.consume(t),$):L(t)}return f(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),B):L(t)}function R(t){return 93===t?(e.consume(t),j):L(t)}function j(t){return 62===t?(e.consume(t),$):45===t&&2===i?(e.consume(t),j):L(t)}function $(t){return null===t||T(t)?(e.exit("htmlFlowData"),z(t)):(e.consume(t),$)}function z(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},le={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(L,t,n)}},partial:!0},ce={tokenize:function(e,t,n){const r=this;return function(t){return T(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ue={tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},pe={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),k(t)?C(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===a?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===a?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),k(t)?C(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||T(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let a,o=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return o=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===a?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),k(t)?C(e,c,"whitespace")(t):c(t))}function c(n){return null===n||T(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(ue,h,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||T(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):k(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),C(e,p,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),u)}function p(t){return null===t||T(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||T(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?n(t):(e.consume(t),d)}function h(t){return e.attempt(i,b,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),y}function y(t){return o>0&&k(t)?C(e,g,"linePrefix",o+1)(t):g(t)}function g(t){return null===t||T(t)?e.check(ue,h,b)(t):(e.enter("codeFlowValue"),m(t))}function m(t){return null===t||T(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),m)}function b(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var de=n(51157);const he={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,a,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,a=y,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=x,c):(e.enter("characterReferenceValue"),i=7,a=b,c(t))}function c(s){if(59===s&&o){const i=e.exit("characterReferenceValue");return a!==y||(0,de.s)(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return a(s)&&o++<i?(e.consume(s),c):n(s)}}},fe={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return S(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},ye={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),C(e,t,"linePrefix")}}},ge={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,a,o=r.events.length;for(;o--;)if(("labelImage"===r.events[o][1].type||"labelLink"===r.events[o][1].type)&&!r.events[o][1]._balanced){i=r.events[o][1];break}return function(t){return i?i._inactive?u(t):(a=r.parser.defined.includes(J(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(me,c,a?c:u)(t):91===t?e.attempt(be,c,a?l:u)(t):a?c(t):u(t)}function l(t){return e.attempt(xe,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,a,o=e.length,c=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){c=2;break}}else"labelEnd"===n.type&&(i=o);const u={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},p={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},d={type:"labelText",start:Object.assign({},e[r+c+2][1].end),end:Object.assign({},e[i-2][1].start)};return a=[["enter",u,t],["enter",p,t]],a=l(a,e.slice(r+1,r+c+3)),a=l(a,[["enter",d,t]]),a=l(a,z(t.parser.constructs.insideSpan.null,e.slice(r+c+4,i-3),t)),a=l(a,[["exit",d,t],e[i-2],e[i-1],["exit",p,t]]),a=l(a,e.slice(i+1)),a=l(a,[["exit",u,t]]),s(e,r,e.length,a),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},me={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return v(t)?Z(e,i)(t):i(t)}function i(t){return 41===t?c(t):V(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return v(t)?Z(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?G(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return v(t)?Z(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},be={tokenize:function(e,t,n){const r=this;return function(t){return X.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(J(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},xe={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},Se={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:ge.resolveAll};function Te(e){return null===e||v(e)||E(e)?1:w(e)?2:void 0}const ve={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Te(r);let a;return function(t){return a=t,e.enter("attentionSequence"),o(t)};function o(s){if(s===a)return e.consume(s),o;const l=e.exit("attentionSequence"),c=Te(s),u=!c||2===c&&i||n.includes(s),p=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===a?u:u&&(i||!p)),l._close=Boolean(42===a?p:p&&(c||!u)),t(s)}},resolveAll:function(e,t){let n,r,i,a,o,c,u,p,d=-1;for(;++d<e.length;)if("enter"===e[d][0]&&"attentionSequence"===e[d][1].type&&e[d][1]._close)for(n=d;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[d][1]).charCodeAt(0)){if((e[n][1]._close||e[d][1]._open)&&(e[d][1].end.offset-e[d][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[d][1].end.offset-e[d][1].start.offset)%3))continue;c=e[n][1].end.offset-e[n][1].start.offset>1&&e[d][1].end.offset-e[d][1].start.offset>1?2:1;const h=Object.assign({},e[n][1].end),f=Object.assign({},e[d][1].start);ke(h,-c),ke(f,c),a={type:c>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[n][1].end)},o={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[d][1].start),end:f},i={type:c>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[d][1].start)},r={type:c>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},o.end)},e[n][1].end=Object.assign({},a.start),e[d][1].start=Object.assign({},o.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=l(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=l(u,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),u=l(u,z(t.parser.constructs.insideSpan.null,e.slice(n+1,d),t)),u=l(u,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[d][1].end.offset-e[d][1].start.offset?(p=2,u=l(u,[["enter",e[d][1],t],["exit",e[d][1],t]])):p=0,s(e,n-1,d-n+3,u),d=n+u.length-p-2;break}for(d=-1;++d<e.length;)"attentionSequence"===e[d][1].type&&(e[d][1].type="data");return e}};function ke(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const we={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return f(t)?(e.consume(t),a):l(t)}function a(e){return 43===e||45===e||46===e||y(e)?(r=1,o(e)):l(e)}function o(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||y(t))&&r++<32?(e.consume(t),o):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||m(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):g(t)?(e.consume(t),l):n(t)}function c(e){return y(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):p(n)}function p(t){if((45===t||y(t))&&r++<63){const n=45===t?p:u;return e.consume(t),n}return n(t)}}},Ee={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,a,o;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),E):63===t?(e.consume(t),S):f(t)?(e.consume(t),P):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,h):f(t)?(e.consume(t),x):n(t)}function c(t){return 45===t?(e.consume(t),d):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),p):T(t)?(o=u,R(t)):(e.consume(t),u)}function p(t){return 45===t?(e.consume(t),d):u(t)}function d(e){return 62===e?B(e):45===e?p(e):u(e)}function h(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?g:h):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),m):T(t)?(o=g,R(t)):(e.consume(t),g)}function m(t){return 93===t?(e.consume(t),b):g(t)}function b(t){return 62===t?B(t):93===t?(e.consume(t),b):g(t)}function x(t){return null===t||62===t?B(t):T(t)?(o=x,R(t)):(e.consume(t),x)}function S(t){return null===t?n(t):63===t?(e.consume(t),w):T(t)?(o=S,R(t)):(e.consume(t),S)}function w(e){return 62===e?B(e):S(e)}function E(t){return f(t)?(e.consume(t),A):n(t)}function A(t){return 45===t||y(t)?(e.consume(t),A):_(t)}function _(t){return T(t)?(o=_,R(t)):k(t)?(e.consume(t),_):B(t)}function P(t){return 45===t||y(t)?(e.consume(t),P):47===t||62===t||v(t)?O(t):n(t)}function O(t){return 47===t?(e.consume(t),B):58===t||95===t||f(t)?(e.consume(t),L):T(t)?(o=O,R(t)):k(t)?(e.consume(t),O):B(t)}function L(t){return 45===t||46===t||58===t||95===t||y(t)?(e.consume(t),L):I(t)}function I(t){return 61===t?(e.consume(t),D):T(t)?(o=I,R(t)):k(t)?(e.consume(t),I):O(t)}function D(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,M):T(t)?(o=D,R(t)):k(t)?(e.consume(t),D):(e.consume(t),N)}function M(t){return t===i?(e.consume(t),i=void 0,F):null===t?n(t):T(t)?(o=M,R(t)):(e.consume(t),M)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||v(t)?O(t):(e.consume(t),N)}function F(e){return 47===e||62===e||v(e)?O(e):n(e)}function B(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j}function j(t){return k(t)?C(e,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):$(t)}function $(t){return e.enter("htmlTextData"),o(t)}}},Ae={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:ge.resolveAll},Ce={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return T(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},_e={name:"codeText",tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),a++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):T(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||T(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}},Pe={42:q,43:q,45:q,48:q,49:q,50:q,51:q,52:q,53:q,54:q,55:q,56:q,57:q,62:H},Oe={91:Q},Le={[-2]:te,[-1]:te,32:te},Ie={35:re,42:U,45:[ie,U],60:se,61:ie,95:U,96:pe,126:pe},De={38:he,92:fe},Me={[-5]:ye,[-4]:ye,[-3]:ye,33:Se,38:he,42:ve,60:[we,Ee],91:Ae,92:[Ce,fe],93:ge,95:ve,96:_e},Ne={null:[ve,N]},Fe={null:[42,95]},Be={null:[]};const Re=/[\0\t\n\r]/g;function je(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const $e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ze(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return je(n.slice(t?2:1),t?16:10)}return(0,de.s)(n)||e}function Ke(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ue=n(29993);const qe={}.hasOwnProperty;function We(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(S),autolinkProtocol:d,autolinkEmail:d,atxHeading:o(m),blockQuote:o((function(){return{type:"blockquote",children:[]}})),characterEscape:d,characterReference:d,codeFenced:o(g),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(g,s),codeText:o((function(){return{type:"inlineCode",value:""}}),s),codeTextData:d,data:d,codeFlowValue:d,definition:o((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:o(b),hardBreakTrailing:o(b),htmlFlow:o(x,s),htmlFlowData:d,htmlText:o(x,s),htmlTextData:d,image:o((function(){return{type:"image",title:null,url:"",alt:null}})),label:s,link:o(S),listItem:o((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:o(T,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:o(T),paragraph:o((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(m),strong:o((function(){return{type:"strong",children:[]}})),thematicBreak:o((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:c(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:c(),autolinkEmail:function(e){h.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){h.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:c(),characterEscapeValue:h,characterReferenceMarkerHexadecimal:y,characterReferenceMarkerNumeric:y,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=je(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=(0,de.s)(t);const i=this.stack.pop();i.value+=r,i.position.end=Ye(e.end)},codeFenced:c((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0})),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:h,codeIndented:c((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:c((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:h,data:h,definition:c(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ke(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:c(),hardBreakEscape:c(f),hardBreakTrailing:c(f),htmlFlow:c((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:h,htmlText:c((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:h,image:c((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace($e,ze)}(t),n.identifier=Ke(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Ye(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(d.call(this,e),h.call(this,e))},link:c((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ke(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:c((function(){this.data.setextHeadingSlurpLineEnding=void 0})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:c(),thematicBreak:c()}};He(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[]};const a={stack:[i],tokenStack:[],config:t,enter:l,exit:u,buffer:s,resume:p,data:n},o=[];let c=-1;for(;++c<e.length;)"listOrdered"!==e[c][1].type&&"listUnordered"!==e[c][1].type||("enter"===e[c][0]?o.push(c):c=r(e,o.pop(),c));for(c=-1;++c<e.length;){const n=t[e[c][0]];qe.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},a),e[c][1])}if(a.tokenStack.length>0){const e=a.tokenStack[a.tokenStack.length-1];(e[1]||Xe).call(a,void 0,e[0])}for(i.position={start:Ye(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ye(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)i=t.transforms[c](i)||i;return i};function r(e,t,n){let r,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=c,n}function o(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:Ye(t.start),end:void 0}}function c(e){return function(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+(0,Ue.L)({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Xe).call(this,e,r[0])),n.position.end=Ye(e.end)}function p(){return function(e){const t=i;return a(e,"boolean"!=typeof t.includeImageAlt||t.includeImageAlt,"boolean"!=typeof t.includeHtml||t.includeHtml)}(this.stack.pop())}function d(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Ye(e.start),end:void 0},t.push(n)),this.stack.push(n)}function h(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ye(e.end)}function f(){this.data.atHardBreak=!0}function y(e){this.data.characterReferenceType=e.type}function g(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function b(){return{type:"break"}}function x(){return{type:"html",value:""}}function S(){return{type:"link",title:null,url:"",children:[]}}function T(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!c(e););return e}(function(e){const t={defined:[],lazy:{},constructs:function(e){const t={};let n=-1;for(;++n<e.length;)d(t,e[n]);return t}([r,...(e||{}).extensions||[]]),content:n(_),document:n(P),flow:n(M),string:n(F),text:n(B)};return t;function n(e){return function(n){return K(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,a,o){const s=[];let l,c,u,p,d;for(i=n+("string"==typeof i?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(Re.lastIndex=u,l=Re.exec(i),p=l&&void 0!==l.index?l.index:i.length,d=i.charCodeAt(p),!l){n=i.slice(u);break}if(10===d&&u===p&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<p&&(s.push(i.slice(u,p)),t+=p-u),d){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=p+1}return o&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function Ye(e){return{line:e.line,column:e.column,offset:e.offset}}function He(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?He(e,r):Ve(e,r)}}function Ve(e,t){let n;for(n in t)if(qe.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Xe(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+(0,Ue.L)({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+(0,Ue.L)({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+(0,Ue.L)({start:t.start,end:t.end})+") is still open")}function Ge(e){const t=this;t.parser=function(n){return We(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}},97649:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(47845),i=n(61758),a=n(14151);const o=i.A?function(e,t){return(0,i.A)(e,"toString",{configurable:!0,enumerable:!1,value:(0,r.A)(t),writable:!0})}:a.A;var s=Date.now;const l=(c=o,u=0,p=0,function(){var e=s(),t=16-(e-p);if(p=e,t>0){if(++u>=800)return arguments[0]}else u=0;return c.apply(void 0,arguments)});var c,u,p},97810:(e,t,n)=>{"use strict";n.d(t,{LN:()=>ae,Ay:()=>se,zr:()=>ie});var r=n(94715),i=n(53972);var a=n(62474),o=Array.prototype.find;function s(){return this.firstElementChild}var l=Array.prototype.filter;function c(){return Array.from(this.children)}function u(e){return new Array(e.length)}function p(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function d(e,t,n,r,i,a){for(var o,s=0,l=t.length,c=a.length;s<c;++s)(o=t[s])?(o.__data__=a[s],r[s]=o):n[s]=new p(e,a[s]);for(;s<l;++s)(o=t[s])&&(i[s]=o)}function h(e,t,n,r,i,a,o){var s,l,c,u=new Map,d=t.length,h=a.length,f=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(f[s]=c=o.call(l,l.__data__,s,t)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<h;++s)c=o.call(e,a[s],s,a)+"",(l=u.get(c))?(r[s]=l,l.__data__=a[s],u.delete(c)):n[s]=new p(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(f[s])===l&&(i[s]=l)}function f(e){return e.__data__}function y(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function g(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}p.prototype={constructor:p,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var m=n(65399);function b(e){return function(){this.removeAttribute(e)}}function x(e){return function(){this.removeAttributeNS(e.space,e.local)}}function S(e,t){return function(){this.setAttribute(e,t)}}function T(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function v(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function k(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var w=n(45632);function E(e){return function(){delete this[e]}}function A(e,t){return function(){this[e]=t}}function C(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function _(e){return e.trim().split(/^|\s+/)}function P(e){return e.classList||new O(e)}function O(e){this._node=e,this._names=_(e.getAttribute("class")||"")}function L(e,t){for(var n=P(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function I(e,t){for(var n=P(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function D(e){return function(){L(this,e)}}function M(e){return function(){I(this,e)}}function N(e,t){return function(){(t.apply(this,arguments)?L:I)(this,e)}}function F(){this.textContent=""}function B(e){return function(){this.textContent=e}}function R(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function j(){this.innerHTML=""}function $(e){return function(){this.innerHTML=e}}function z(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function K(){this.nextSibling&&this.parentNode.appendChild(this)}function U(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}O.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var q=n(69538);function W(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===q.g&&t.documentElement.namespaceURI===q.g?t.createElement(e):t.createElementNS(n,e)}}function Y(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function H(e){var t=(0,m.A)(e);return(t.local?Y:W)(t)}function V(){return null}function X(){var e=this.parentNode;e&&e.removeChild(this)}function G(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Z(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function J(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function Q(e,t,n){return function(){var r,i=this.__on,a=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=t);this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},i?i.push(r):this.__on=[r]}}var ee=n(31382);function te(e,t,n){var r=(0,ee.A)(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function ne(e,t){return function(){return te(this,e,t)}}function re(e,t){return function(){return te(this,e,t.apply(this,arguments))}}var ie=[null];function ae(e,t){this._groups=e,this._parents=t}function oe(){return new ae([[document.documentElement]],ie)}ae.prototype=oe.prototype={constructor:ae,select:function(e){"function"!=typeof e&&(e=(0,r.A)(e));for(var t=this._groups,n=t.length,i=new Array(n),a=0;a<n;++a)for(var o,s,l=t[a],c=l.length,u=i[a]=new Array(c),p=0;p<c;++p)(o=l[p])&&(s=e.call(o,o.__data__,p,l))&&("__data__"in o&&(s.__data__=o.__data__),u[p]=s);return new ae(i,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t);var t}}(e):(0,i.A)(e);for(var t=this._groups,n=t.length,r=[],a=[],o=0;o<n;++o)for(var s,l=t[o],c=l.length,u=0;u<c;++u)(s=l[u])&&(r.push(e.call(s,s.__data__,u,l)),a.push(s));return new ae(r,a)},selectChild:function(e){return this.select(null==e?s:function(e){return function(){return o.call(this.children,e)}}("function"==typeof e?e:(0,a.j)(e)))},selectChildren:function(e){return this.selectAll(null==e?c:function(e){return function(){return l.call(this.children,e)}}("function"==typeof e?e:(0,a.j)(e)))},filter:function(e){"function"!=typeof e&&(e=(0,a.A)(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,s=t[i],l=s.length,c=r[i]=[],u=0;u<l;++u)(o=s[u])&&e.call(o,o.__data__,u,s)&&c.push(o);return new ae(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,f);var n,r=t?h:d,i=this._parents,a=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var o=a.length,s=new Array(o),l=new Array(o),c=new Array(o),u=0;u<o;++u){var p=i[u],g=a[u],m=g.length,b=y(e.call(p,p&&p.__data__,u,i)),x=b.length,S=l[u]=new Array(x),T=s[u]=new Array(x);r(p,g,S,T,c[u]=new Array(m),b,t);for(var v,k,w=0,E=0;w<x;++w)if(v=S[w]){for(w>=E&&(E=w+1);!(k=T[E])&&++E<x;);v._next=k||null}}return(s=new ae(s,i))._enter=l,s._exit=c,s},enter:function(){return new ae(this._enter||this._groups.map(u),this._parents)},exit:function(){return new ae(this._exit||this._groups.map(u),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var c,u=n[l],p=r[l],d=u.length,h=s[l]=new Array(d),f=0;f<d;++f)(c=u[f]||p[f])&&(h[f]=c);for(;l<i;++l)s[l]=n[l];return new ae(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=g);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],l=s.length,c=i[a]=new Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(t)}return new ae(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,a=t[n],o=0,s=a.length;o<s;++o)(i=a[o])&&e.call(i,i.__data__,o,a);return this},attr:function(e,t){var n=(0,m.A)(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?x:b:"function"==typeof t?n.local?k:v:n.local?T:S)(n,t))},style:w.A,property:function(e,t){return arguments.length>1?this.each((null==t?E:"function"==typeof t?C:A)(e,t)):this.node()[e]},classed:function(e,t){var n=_(e+"");if(arguments.length<2){for(var r=P(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?N:t?D:M)(n,t))},text:function(e){return arguments.length?this.each(null==e?F:("function"==typeof e?R:B)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?j:("function"==typeof e?z:$)(e)):this.node().innerHTML},raise:function(){return this.each(K)},lower:function(){return this.each(U)},append:function(e){var t="function"==typeof e?e:H(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:H(e),i=null==t?V:"function"==typeof t?t:(0,r.A)(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(X)},clone:function(e){return this.select(e?Z:G)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,a=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),o=a.length;if(!(arguments.length<2)){for(s=t?Q:J,r=0;r<o;++r)this.each(s(a[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<o;++r)if((i=a[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?re:ne)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}};const se=oe},97913:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(39600).A.Uint8Array},97942:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},97996:(e,t,n)=>{"use strict";n.d(t,{Fr:()=>c,GX:()=>l,KX:()=>s,WW:()=>a,ue:()=>i});var r=n(58084),i=(0,r.K2)((e=>{const{handDrawnSeed:t}=(0,r.D7)();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}}),"solidStateFill"),a=(0,r.K2)((e=>{const t=o([...e.cssCompiledStyles||[],...e.cssStyles||[]]);return{stylesMap:t,stylesArray:[...t]}}),"compileStyles"),o=(0,r.K2)((e=>{const t=new Map;return e.forEach((e=>{const[n,r]=e.split(":");t.set(n.trim(),r?.trim())})),t}),"styles2Map"),s=(0,r.K2)((e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e),"isLabelStyle"),l=(0,r.K2)((e=>{const{stylesArray:t}=a(e),n=[],r=[],i=[],o=[];return t.forEach((e=>{const t=e[0];s(t)?n.push(e.join(":")+" !important"):(r.push(e.join(":")+" !important"),t.includes("stroke")&&i.push(e.join(":")+" !important"),"fill"===t&&o.push(e.join(":")+" !important"))})),{labelStyles:n.join(";"),nodeStyles:r.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:o}}),"styles2String"),c=(0,r.K2)(((e,t)=>{const{themeVariables:n,handDrawnSeed:i}=(0,r.D7)(),{nodeBorder:o,mainBkg:s}=n,{stylesMap:l}=a(e);return Object.assign({roughness:.7,fill:l.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||o,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},t)}),"userNodeOverrides")},98050:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(50695),i=n(6473);const a=function(e){return(0,r.A)((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&(0,i.A)(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var l=n[r];l&&e(t,l,r,o)}return t}))}},98250:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(97942),i=Object.create;const a=function(){function e(){}return function(t){if(!(0,r.A)(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var o=n(34878),s=n(71140);const l=function(e){return"function"!=typeof e.constructor||(0,s.A)(e)?{}:a((0,o.A)(e))}},98999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.isBlockStatement)(e))return e;let n=[];return(0,r.isEmptyStatement)(e)?n=[]:((0,r.isStatement)(e)||(e=(0,r.isFunction)(t)?(0,i.returnStatement)(e):(0,i.expressionStatement)(e)),n=[e]),(0,i.blockStatement)(n)};var r=n(60133),i=n(93806)},99042:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)};var r=n(16812)},99227:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const n=Array.from(t),a=new Map,o=new Map,s=new Set,l=[];for(let t=0;t<n.length;t++){const c=n[t];if(!c)continue;if(l.includes(c))continue;if((0,r.isTSAnyKeyword)(c))return[c];if((0,r.isTSBaseType)(c)){o.set(c.type,c);continue}if((0,r.isTSUnionType)(c)){s.has(c.types)||(n.push(...c.types),s.add(c.types));continue}const u="typeParameters";if((0,r.isTSTypeReference)(c)&&c[u]){const t=c[u],n=i(c.typeName);if(a.has(n)){let r=a.get(n);const i=r[u];i?(i.params.push(...t.params),i.params=e(i.params)):r=t}else a.set(n,c)}else l.push(c)}for(const[,e]of o)l.push(e);for(const[,e]of a)l.push(e);return l};var r=n(60133);function i(e){return(0,r.isIdentifier)(e)?e.name:(0,r.isThisExpression)(e)?"this":`${e.right.name}.${i(e.left)}`}},99271:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61758);const i=function(e,t,n){"__proto__"==t&&r.A?(0,r.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}}}]);
3
- //# sourceMappingURL=6677.2fea9748.js.map