1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[23480],{17298:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gui/[id]",function(){return n(14725)}])},30979:function(t,e,n){"use strict";n.d(e,{M:function(){return W}});var o=n(70865),i=n(96670),r=n(1711),a=n(27130),d=n(27057),c=n(64475),l=n(90581),s=n(21218),p=n(45460),u=n(2784);const h=["top","right","bottom","left"];function g({anchorRect:t,popperSize:e,arrowSize:n,arrowOffset:o=0,side:i,sideOffset:r=0,align:a,alignOffset:d=0,shouldAvoidCollisions:c=!0,collisionBoundariesRect:l,collisionTolerance:s=0}){if(!t||!e||!l)return{popperStyles:w,arrowStyles:y};const p=function(t,e,n=0,o=0,i){const r=i?i.height:0,a=f(e,t,"x"),d=f(e,t,"y"),c=d.before-n-r,l=d.after+n+r,s=a.before-n-r,p=a.after+n+r;return{top:{start:{x:a.start+o,y:c},center:{x:a.center,y:c},end:{x:a.end-o,y:c}},right:{start:{x:p,y:d.start+o},center:{x:p,y:d.center},end:{x:p,y:d.end-o}},bottom:{start:{x:a.start+o,y:l},center:{x:a.center,y:l},end:{x:a.end-o,y:l}},left:{start:{x:s,y:d.start+o},center:{x:s,y:d.center},end:{x:s,y:d.end-o}}}}(e,t,r,d,n),u=p[i][a];if(!1===c){const t=m(u);let r=y;return n&&(r=v({popperSize:e,arrowSize:n,arrowOffset:o,side:i,align:a})),{popperStyles:{...t,"--radix-popper-transform-origin":b(e,i,a,o,n)},arrowStyles:r,placedSide:i,placedAlign:a}}const h=DOMRect.fromRect({...e,...u}),g=(x=l,S=s,DOMRect.fromRect({width:x.width-2*S,height:x.height-2*S,x:x.left+S,y:x.top+S}));var x,S;const R=C(h,g),Z=p[A(i)][a],E=function(t,e,n){const o=A(t);return e[t]&&!n[o]?o:t}(i,R,C(DOMRect.fromRect({...e,...Z}),g)),M=function(t,e,n,o,i){const r="top"===n||"bottom"===n,a=r?"left":"top",d=r?"right":"bottom",c=r?"width":"height",l=e[c]>t[c];return"start"!==o&&"center"!==o||!(i[a]&&l||i[d]&&!l)?"end"!==o&&"center"!==o||!(i[d]&&l||i[a]&&!l)?o:"start":"end"}(e,t,i,a,R),k=m(p[E][M]);let j=y;return n&&(j=v({popperSize:e,arrowSize:n,arrowOffset:o,side:E,align:M})),{popperStyles:{...k,"--radix-popper-transform-origin":b(e,E,M,o,n)},arrowStyles:j,placedSide:E,placedAlign:M}}function f(t,e,n){const o=t["x"===n?"left":"top"],i="x"===n?"width":"height",r=t[i],a=e[i];return{before:o-a,start:o,center:o+(r-a)/2,end:o+r-a,after:o+r}}function m(t){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(t.x+window.scrollX)}px, ${Math.round(t.y+window.scrollY)}px, 0)`}}function b(t,e,n,o,i){const r="top"===e||"bottom"===e,a=i?i.width:0,d=i?i.height:0,c=a/2+o;let l="",s="";return r?(l={start:`${c}px`,center:"center",end:t.width-c+"px"}[n],s="top"===e?`${t.height+d}px`:-d+"px"):(l="left"===e?`${t.width+d}px`:-d+"px",s={start:`${c}px`,center:"center",end:t.height-c+"px"}[n]),`${l} ${s}`}const w={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},y={position:"absolute",opacity:0};function v({popperSize:t,arrowSize:e,arrowOffset:n,side:o,align:i}){const r=(t.width-e.width)/2,a=(t.height-e.width)/2,d={top:0,right:90,bottom:180,left:-90}[o],c=Math.max(e.width,e.height),l={width:`${c}px`,height:`${c}px`,transform:`rotate(${d}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:x(o,i)};return"top"!==o&&"bottom"!==o||("start"===i&&(l.left=`${n}px`),"center"===i&&(l.left=`${r}px`),"end"===i&&(l.right=`${n}px`)),"left"!==o&&"right"!==o||("start"===i&&(l.top=`${n}px`),"center"===i&&(l.top=`${a}px`),"end"===i&&(l.bottom=`${n}px`)),l}function x(t,e){return("top"!==t&&"right"!==t||"end"!==e)&&("bottom"!==t&&"left"!==t||"end"===e)?"ltr":"rtl"}function A(t){return{top:"bottom",right:"left",bottom:"top",left:"right"}[t]}function C(t,e){return{top:t.top<e.top,right:t.right>e.right,bottom:t.bottom>e.bottom,left:t.left<e.left}}function S(){return S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},S.apply(this,arguments)}function R(t,e,n){var o=document.createElement("inspx");o.innerText=t,o.setAttribute("type",e),document.body.appendChild(o);var i=o.getBoundingClientRect(),r=g(S({popperSize:{width:i.width,height:i.height},sideOffset:8,align:"center",side:"bottom",alignOffset:0,collisionBoundariesRect:DOMRect.fromRect({width:window.innerWidth,height:window.innerHeight,x:0,y:0}),collisionTolerance:0,shouldAvoidCollisions:!0},n)).popperStyles;Object.entries(r).forEach((function(t){var e=t[0],n=t[1];o.style.setProperty(e,n)}))}function Z(t){var e=t.filter(G)[0];
1if(e){e.setAttribute("data-inspx-active","");var n=window.getComputedStyle(e);[n.marginTop,n.marginRight,n.marginBottom,n.marginLeft].map((function(t){return parseInt(t,10)})).forEach((function(t,n){t&&(R(String(t),"margin",{anchorRect:e.getBoundingClientRect(),side:h[n],shouldAvoidCollisions:!1,sideOffset:t/2-10}),function(t,e,n,o){var i=document.createElement("margin"),r=n.getBoundingClientRect(),a=r.width,d=r.height,c=[a,e,a,e][t],l=[e,d,e,d][t];D(i,{width:c,height:l}),D(i,g({popperSize:{width:c,height:l},sideOffset:0,align:"start",side:o,alignOffset:0,collisionBoundariesRect:DOMRect.fromRect({width:window.innerWidth,height:window.innerHeight,x:0,y:0}),anchorRect:n.getBoundingClientRect(),collisionTolerance:0,shouldAvoidCollisions:!1}).popperStyles),document.body.appendChild(i)}(n,t,e,h[n]))}))}}function E(t){var e=t.filter(O)[0];if(e){e.setAttribute("data-inspx-active","");var n=e.getBoundingClientRect(),o=n.width,i=n.height,r=n.top,a=n.left,d=n.right,c=n.bottom,l=document.createElement("inspx");l.innerText=Math.round(o)+" x "+Math.round(i),l.setAttribute("type","size"),document.body.appendChild(l);var s=l.getBoundingClientRect();D(l,z({x:(a+d)/2-s.width/2,y:(r+c)/2-s.height/2}))}}function M(t){var e=t.filter(I)[0];if(e){e.setAttribute("data-inspx-active","");var n=window.getComputedStyle(e),o=[n.paddingTop,n.paddingRight,n.paddingBottom,n.paddingLeft].map((function(t){return parseInt(t,10)}));o.forEach((function(t,n){t&&R(String(t),"padding",{anchorRect:e.getBoundingClientRect(),side:h[n],shouldAvoidCollisions:!1,sideOffset:-t/2-10})})),function(t,e){var n=document.createElement("padding"),o=t.getBoundingClientRect(),i=o.width,r=o.height;D(n,S({},z({x:o.x,y:o.y}),{width:i,height:r,"border-top-width":e[0],"border-right-width":e[1],"border-bottom-width":e[2],"border-left-width":e[3]})),document.body.appendChild(n)}(e,o)}}function k(){Array.from(document.querySelectorAll("[data-inspx-active]")).forEach((function(t){t.removeAttribute("data-inspx-active")})),Array.from(document.querySelectorAll("inspx")).forEach((function(t){document.body.removeChild(t)})),Array.from(document.querySelectorAll("margin")).forEach((function(t){document.body.removeChild(t)})),Array.from(document.querySelectorAll("padding")).forEach((function(t){document.body.removeChild(t)}))}function j(t){return!!parseInt(t,10)}function G(t){var e=window.getComputedStyle(t);return j(e.marginTop)||j(e.marginRight)||j(e.marginBottom)||j(e.marginLeft)||j(e.margin)}function I(t){var e=window.getComputedStyle(t);return j(e.paddingTop)||j(e.paddingRight)||j(e.paddingBottom)||j(e.paddingLeft)||j(e.padding)}function O(t){var e=window.getComputedStyle(t);return j(e.width)&&j(e.height)}function D(t,e){Object.entries(e).forEach((function(e){var n=e[0],o=e[1];t.style.setProperty(n,"number"===typeof o?o+"px":o)}))}function z(t){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:"translate3d("+Math.round(t.x+window.scrollX)+"px, "+Math.round(t.y+window.scrollY)+"px, 0)"}}!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!==typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}(":root {\n --inspx-margin-color: #f24822;\n --inspx-padding-color: #0bb658;\n --inspx-size-color: #0070f3;\n --inspx-active-color: #0070f330;\n}\n\ninspx {\n box-sizing: border-box;\n height: 20px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',\n 'Helvetica Neue', sans-serif;\n font-size: 11px;\n line-height: 20px;\n text-align: center;\n border-radius: 4px;\n color: white;\n padding: 0 4px;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1337;\n}\n\n[data-inspx-active] {\n background: var(--inspx-active-color) !important;\n}\n\nmargin {\n background: var(--inspx-margin-color);\n opacity: 0.4;\n}\n\npadding {\n border-color: var(--inspx-padding-color);\n border-style: solid;\n opacity: 0.4;\n}\n\ninspx[type='margin'] {\n background: var(--inspx-margin-color);\n}\n\ninspx[type='padding'] {\n background: var(--inspx-padding-color);\n}\n\ninspx[type='size'] {\n background: var(--inspx-size-color);\n}\n");var B=function(t){var e=t.children,n=t.margin,o=void 0===n||n,i=t.padding,r=void 0===i||i,a=t.size,d=void 0===a||a,c=t.disabled,l=void 0===c||c,s=(0,u.useRef)([]);return(0,u.useEffect)((function(){function t(t){"Alt"===t.key&&(o&&Z(s.current),d&&E(s.current),r&&M(s.current))}function e(t){"Alt"===t.key&&k()}return l||(window.addEventListener("keyup",e),window.addEventListener("keydown",t)),function(){window.removeEventListener("keyup",e),window.removeEventListener("keydown",t)}}),[o,d,r,l]),l?(0,u.createElement)(u.Fragment,null,e):(0,u.createElement)("span",{onMouseOver:function(t){t.stopPropagation(),k();var e=document.elementsFromPoint(t.clientX,t.clientY);
1s.current=e,t.altKey&&(o&&Z(e),d&&E(e),r&&M(e))}},e)},N=function(t){(0,s.Z)(n,t);var e=(0,p.Z)(n);function n(t){var o;(0,l.Z)(this,n);return(o=e.call(this,t)).state={hasError:!1},o}var o=n.prototype;return o.componentDidCatch=function(t,e){},o.render=function(){var t=this;return this.state.hasError?(0,r.BX)("div",{sx:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},children:[(0,r.tZ)("h1",{children:"We were unable to render this component"}),(0,r.tZ)("button",{onClick:function(){return t.setState({hasError:!1})},sx:{all:"unset",backgroundColor:"primary",color:"background",fontWeight:600,borderRadius:8,px:3,py:1,lineHeight:1},children:"Retry render"})]}):this.props.children},n.getDerivedStateFromError=function(t){return{hasError:!0}},n}(u.Component),T=function(t){var e=t.src,n=t.metadata;return(0,r.tZ)(N,{children:(0,r.tZ)(Y,{metadata:n,children:(0,r.tZ)(a.VI,{value:e})})})},Y=function(t){var e=t.metadata,n=t.children,o={};return(null===e||void 0===e?void 0:e.isCenteredOnCanvas)&&(o.display="flex",o.alignItems="center",o.justifyContent="center",o.height="100%"),(null===e||void 0===e?void 0:e.showDebugLayout)&&(o.background="\n transparent\n url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTRDOTY4N0U2N0VFMTFFNjg2MzZDQjkwNkQ4MjgwMEIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTRDOTY4N0Q2N0VFMTFFNjg2MzZDQjkwNkQ4MjgwMEIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3NjcyQkQ3NjY3QzUxMUU2QjJCQ0UyNDA4MTAwMjE3MSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3NjcyQkQ3NzY3QzUxMUU2QjJCQ0UyNDA4MTAwMjE3MSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PsBS+GMAAAAjSURBVHjaYvz//z8DLsD4gcGXiYEAGBIKGBne//fFpwAgwAB98AaF2pjlUQAAAABJRU5ErkJggg==)\n repeat top left\n ",o["& *"]={color:"rgb(68, 68, 68) !important",background:"transparent !important",borderColor:"rgb(68, 68, 68) !important"},o["& ".concat(U.join(","))]={outline:"thin solid !important"}),(null===e||void 0===e?void 0:e.color)&&(o.color=e.color),(null===e||void 0===e?void 0:e.backgroundColor)&&(o.backgroundColor=e.backgroundColor),(0,r.tZ)(B,{disabled:!(null===e||void 0===e?void 0:e.showDebugLayout),children:(0,r.tZ)("div",{sx:o,children:n})})},U=["div","section","article","body","nav","aside","header","footer","h1","h2","h3","h4","h5","h6","main","p","hr","pre","blockquote","ul","ol","li","dl","dt","dd","figure","figcaption","table","caption","thead","tbody","tfoot","tr","th","td","col","colgroup","button","datalist","fieldset","form","input","keygen","label","legend","meter","optgroup","option","output","progress","select","textarea","details","summary","command","menu","del","ins","img","iframe","embed","object","param","video","audio","source","canvas","track","map","area","a","em","strong","i","b","u","s","small","abbr","q","cite","dfn","sub","sup","time","code","kbd","samp","var","mark","bdi","bdo","ruby","rt","rp","span","br","wbr"],L=n(87081),W=function(t){return(0,r.BX)(L.K,(0,i.Z)((0,o.Z)({},t),{children:[(0,r.tZ)(d.Z,{}),(0,r.tZ)(Q,(0,o.Z)({},t))]}))},Q=function(t){var e,n=(0,L.u)().state;return(null===(e=n.context.file)||void 0===e?void 0:e.isDirectory)?(0,r.tZ)(c.m,(0,o.Z)({},t)):(0,r.BX)("div",{sx:{display:"grid",gridTemplateColumns:n.context.hasCollapsedSidebar?"100%":"auto 1fr",gridTemplateRows:n.context.hasCollapsedSidebar?"auto":["3fr 1fr","auto","auto"],height:"calc(100vh - 54px)",overflow:"hidden"},children:[n.context.hasCollapsedSidebar?null:(0,r.tZ)("div",{sx:{borderTopWidth:["1px","none","none"],borderTopColor:"border",borderTopStyle:"solid",height:"100%",gridRow:[2,1,1],overflow:"scroll"},children:(0,r.tZ)(a.Jy,{})}),(0,r.tZ)("div",{sx:{overflow:"auto",width:"100%",gridRow:1,"&::-webkit-scrollbar":{display:"none"}},children:(0,r.tZ)(T,{src:n.context.file.src,metadata:n.context.file.metadata})})]})}},14725:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return a},default:function(){return d}});var o=n(70865),i=n(1711),r=n(30979),a=!0;function d(t){return(0,i.tZ)(r.M,(0,o.Z)({},t))}}},function(t){t.O(0,[48934,73506,28043,32031,39097,20580,19762,89236,40558,21564,5392,73781,10190,69749,50214,35499,4378,93217,7975,41064,42248,66594,60620,67368,4395,4146,38297,49774,92888,40179],(function(){return e=17298,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.