(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[526],{7718:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[roadmap]/interactive",function(){return n(6122)}])},1524:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(5893),o=n(8527);n(7294);function i(e){var t=e.title,n=e.subtitle,i=e.children,a=e.beforeTitle,c=void 0===a?null:a;return(0,r.jsxs)(o.xu,{pt:["25px","20px","45px"],pb:["20px","15px","30px"],borderBottomWidth:1,mb:"30px",children:[(0,r.jsxs)(o.W2,{maxW:"container.md",position:"relative",children:[c,(0,r.jsx)(o.X6,{as:"h1",color:"black",fontSize:["28px","33px","40px"],fontWeight:700,mb:["2px","2px","5px"],children:t}),(0,r.jsx)(o.xv,{fontSize:["13px","14px","15px"],children:n})]}),i&&(0,r.jsx)(o.W2,{maxW:"container.md",children:i})]})}},6122:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return E},default:function(){return P}});var r=n(5893),o=n(8527),i=n(6723),a=n(9876),c=n(2438),l=n(1832),s=n(600),u=n(6673),d=n(1524),p=n(202),f=n(7294),v=n(8520),x=n.n(v);function h(e,t,n){var r=void 0===t?{}:t,o=document.createElementNS("http://www.w3.org/2000/svg",e);for(var i in r)r.hasOwnProperty(i)&&o.setAttribute(i,r[i]);return n&&n.appendChild(o),o}var y=2.7,m={black:["#000"],gray:["#000","#333","#666","#999","#ccc","#ddd","#eee"],white:["#fff"],red:["#cf2a27","#ea9999","#eo6666","#cc0000","#990000","#660000"],orange:["#ff9900","#f9cb9c","#f6b26b","#e69138","#b45f06","#783f04"],yellow:["#ffff00","#ffe599","#ffd966","#f1c232","#bf9000","#7f6000"],green:["#009e0f","#b6d7a8","#93c47d","#6aa84f","#38761d","#274e13"],cyan:["#00ffff","#a2c4c9","#76a5af","#45818e","#134f5c","#0c343d"],blue:["#2b78e4","#9fc5f8","#6fa8dc","#597eaa","#085394","#073763"],purple:["#9900ff","#b4a7d6","#8e7cc3","#674ea7","#351c75","#20124d"],pink:["#ff00ff","#d5a6bd","#c27ba0","#a64d79","#741b47","#4c1130"]};function b(e,t){for(var n=0;n>8&255,n=255&e;return"rgb(".concat(e>>16&255,",").concat(t,",").concat(n,")")}(e)}},{key:"parseFontProperties",value:function(e){var t,n,r;return{style:(null===(t=e.properties)||void 0===t?void 0:t.italic)?"italic":"normal",weight:(null===(n=e.properties)||void 0===n?void 0:n.bold)?"bold":"normal",size:(null===(r=e.properties)||void 0===r?void 0:r.size)?e.properties.size+"px":"13px",family:this.fontFamily}}},{key:"measureText",value:function(e,t){return this.canvasRenderingContext2D.font=t,this.canvasRenderingContext2D.measureText(e)}},{key:"drawRectangle",value:function(e,t){var n,r,o,i,a,c;h("rect",{x:parseInt(e.x)+1.35,y:parseInt(e.y)+1.35,width:parseInt(null!==(i=e.w)&&void 0!==i?i:e.measuredW)-y,height:parseInt(null!==(a=e.h)&&void 0!==a?a:e.measuredH)-y,rx:2,fill:this.parseColor(null===(n=e.properties)||void 0===n?void 0:n.color,"255,255,255"),"fill-opacity":null!==(c=null===(r=e.properties)||void 0===r?void 0:r.backgroundAlpha)&&void 0!==c?c:1,stroke:this.parseColor(null===(o=e.properties)||void 0===o?void 0:o.borderColor,"0,0,0"),"stroke-width":y},t)}},{key:"addText",value:function(e,t,n,r){var o,i,a=null!==(o=e.properties.text)&&void 0!==o?o:"",c=parseInt(e.x),l=parseInt(e.y),s=this.parseFontProperties(e),u=this.measureText(a,"".concat(s.style," ").concat(s.weight," ").concat(s.size," ").concat(s.family)),d=h("text",{x:"center"===r?c+(null!==(i=e.w)&&void 0!==i?i:e.measuredW)/2-u.width/2:c,y:l+e.measuredH/2+u.actualBoundingBoxAscent/2,fill:n,"font-style":s.style,"font-weight":s.weight,"font-size":s.size},t);a.includes("{color:")?a.split(/{color:|{color}/).forEach((function(e){if(e.includes("}")){var t=k(e.split("}"),2),n=t[0],r=t[1];if(!n.startsWith("#")){var o=parseInt(n.slice(-1));n=isNaN(o)?m[n][0]:m[n][o]}h("tspan",{fill:n},d).textContent=r}else h("tspan",{},d).textContent=e})):h("tspan",{},d).textContent=a}},{key:"TextArea",value:function(e,t){this.drawRectangle(e,t)}},{key:"Canvas",value:function(e,t){this.drawRectangle(e,t)}},{key:"Label",value:function(e,t){var n;this.addText(e,t,this.parseColor(null===(n=e.properties)||void 0===n?void 0:n.color,"0,0,0"),"left")}},{key:"TextInput",value:function(e,t){var n;this.drawRectangle(e,t),this.addText(e,t,this.parseColor(null===(n=e.properties)||void 0===n?void 0:n.textColor,"0,0,0"),"center")}},{key:"Arrow",value:function(e,t){var n,r,o,i,a=parseInt(e.x),c=parseInt(e.y),l=e.properties,s=l.p0,u=l.p1,d=l.p2;"dotted"===(null===(n=e.properties)||void 0===n?void 0:n.stroke)?i="0.8 12":"dashed"===(null===(r=e.properties)||void 0===r?void 0:r.stroke)&&(i="28 46");var p=(d.x-s.x)*u.x,f=(d.y-s.y)*u.x;h("path",{d:"M".concat(a+s.x," ").concat(c+s.y,"Q").concat(a+s.x+p+f*u.y*3.6," ").concat(c+s.y+f+-p*u.y*3.6," ").concat(a+d.x," ").concat(c+d.y),fill:"none",stroke:this.parseColor(null===(o=e.properties)||void 0===o?void 0:o.color,"0,0,0"),"stroke-width":4,"stroke-linecap":"round","stroke-linejoin":"round","stroke-dasharray":i},t)}},{key:"Icon",value:function(e,t){var n,r=parseInt(e.x),o=parseInt(e.y),i=10;h("circle",{cx:r+i,cy:o+i,r:i,fill:this.parseColor(null===(n=e.properties)||void 0===n?void 0:n.color,"0,0,0")},t),"check-circle"===e.properties.icon.ID&&h("path",{d:"M".concat(r+4.5," ").concat(o+i,"L").concat(r+8.5," ").concat(o+i+4," ").concat(r+15," ").concat(o+i-2.5),fill:"none",stroke:"#fff","stroke-width":3.5,"stroke-linecap":"round","stroke-linejoin":"round"},t)}},{key:"HRule",value:function(e,t){var n,r,o,i,a,c=parseInt(e.x),l=parseInt(e.y);"dotted"===(null===(n=e.properties)||void 0===n?void 0:n.stroke)?i="0.8, 8":"dashed"===(null===(r=e.properties)||void 0===r?void 0:r.stroke)&&(i="18, 30"),h("path",{d:"M".concat(c," ").concat(l,"L").concat(c+parseInt(null!==(a=e.w)&&void 0!==a?a:e.measuredW)," ").concat(l),fill:"none",stroke:this.parseColor(null===(o=e.properties)||void 0===o?void 0:o.color,"0,0,0"),"stroke-width":y,"stroke-linecap":"round","stroke-linejoin":"round","stroke-dasharray":i},t)}},{key:"__group__",value:function(e,t){var n,r=this,o=null===e||void 0===e||null===(n=e.properties)||void 0===n?void 0:n.controlName,i=h("g",function(e){for(var t=1;t