@ytsaurus/ui 1.103.0 → 1.103.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/build/assets-manifest.json +40 -40
- package/dist/public/build/css/default-subject-link.b01c2230.chunk.css +2 -0
- package/dist/public/build/css/default-subject-link.b01c2230.chunk.css.map +1 -0
- package/dist/public/build/css/{main.d1987746.css → main.23e8d0fd.css} +2 -2
- package/dist/public/build/css/main.23e8d0fd.css.map +1 -0
- package/dist/public/build/js/6157.6786c942.chunk.js +2 -0
- package/dist/public/build/js/6157.6786c942.chunk.js.map +1 -0
- package/dist/public/build/js/6983.a2b31b33.chunk.js +2 -0
- package/dist/public/build/js/6983.a2b31b33.chunk.js.map +1 -0
- package/dist/public/build/js/8165.9684f49e.chunk.js +2 -0
- package/dist/public/build/js/8165.9684f49e.chunk.js.map +1 -0
- package/dist/public/build/js/{accounts.aaa21eca.chunk.js → accounts.f328f823.chunk.js} +2 -2
- package/dist/public/build/js/accounts.f328f823.chunk.js.map +1 -0
- package/dist/public/build/js/acl.556f2525.chunk.js +2 -0
- package/dist/public/build/js/acl.556f2525.chunk.js.map +1 -0
- package/dist/public/build/js/{bundles.b851f32c.chunk.js → bundles.0ab2d6f4.chunk.js} +2 -2
- package/dist/public/build/js/{bundles.b851f32c.chunk.js.map → bundles.0ab2d6f4.chunk.js.map} +1 -1
- package/dist/public/build/js/cluster-page-wrapper.a5c05070.chunk.js +2 -0
- package/dist/public/build/js/{cluster-page-wrapper.45436df6.chunk.js.map → cluster-page-wrapper.a5c05070.chunk.js.map} +1 -1
- package/dist/public/build/js/dashboard.efdd63a2.chunk.js +3 -0
- package/dist/public/build/js/{dashboard.234b8062.chunk.js.map → dashboard.efdd63a2.chunk.js.map} +1 -1
- package/dist/public/build/js/main.a89bac74.js +3 -0
- package/dist/public/build/js/main.a89bac74.js.map +1 -0
- package/dist/public/build/js/{navigation-flow.a79a25f5.chunk.js → navigation-flow.1d83e216.chunk.js} +2 -2
- package/dist/public/build/js/{navigation-flow.a79a25f5.chunk.js.map → navigation-flow.1d83e216.chunk.js.map} +1 -1
- package/dist/public/build/js/{navigation.b91a7a0b.chunk.js → navigation.0aff5a3a.chunk.js} +2 -2
- package/dist/public/build/js/{navigation.b91a7a0b.chunk.js.map → navigation.0aff5a3a.chunk.js.map} +1 -1
- package/dist/public/build/js/{query-tracker.5a0d626f.chunk.js → query-tracker.b7334a6f.chunk.js} +2 -2
- package/dist/public/build/js/{query-tracker.5a0d626f.chunk.js.map → query-tracker.b7334a6f.chunk.js.map} +1 -1
- package/dist/public/build/js/{runtime.8a460b23.js → runtime.d583e98e.js} +2 -2
- package/dist/public/build/js/{runtime.8a460b23.js.map → runtime.d583e98e.js.map} +1 -1
- package/dist/public/build/js/users.aec1e380.chunk.js +2 -0
- package/dist/public/build/js/users.aec1e380.chunk.js.map +1 -0
- package/dist/public/build/js/yt-df-dialog.1d05b0a5.chunk.js +3 -0
- package/dist/public/build/js/yt-df-dialog.1d05b0a5.chunk.js.map +1 -0
- package/dist/public/build/manifest.json +34 -34
- package/package.json +4 -3
- package/dist/public/build/css/default-subject-link.4dc8a973.chunk.css +0 -2
- package/dist/public/build/css/default-subject-link.4dc8a973.chunk.css.map +0 -1
- package/dist/public/build/css/main.d1987746.css.map +0 -1
- package/dist/public/build/js/2009.8121a60e.chunk.js +0 -2
- package/dist/public/build/js/2009.8121a60e.chunk.js.map +0 -1
- package/dist/public/build/js/6157.92170346.chunk.js +0 -2
- package/dist/public/build/js/6157.92170346.chunk.js.map +0 -1
- package/dist/public/build/js/6960.8b7e01c6.chunk.js +0 -2
- package/dist/public/build/js/6960.8b7e01c6.chunk.js.map +0 -1
- package/dist/public/build/js/accounts.aaa21eca.chunk.js.map +0 -1
- package/dist/public/build/js/acl.1ad3d494.chunk.js +0 -2
- package/dist/public/build/js/acl.1ad3d494.chunk.js.map +0 -1
- package/dist/public/build/js/cluster-page-wrapper.45436df6.chunk.js +0 -2
- package/dist/public/build/js/dashboard.234b8062.chunk.js +0 -3
- package/dist/public/build/js/main.aa6a17d8.js +0 -3
- package/dist/public/build/js/main.aa6a17d8.js.map +0 -1
- package/dist/public/build/js/users.a0dc610f.chunk.js +0 -2
- package/dist/public/build/js/users.a0dc610f.chunk.js.map +0 -1
- package/dist/public/build/js/yt-df-dialog.acab4eb0.chunk.js +0 -3
- package/dist/public/build/js/yt-df-dialog.acab4eb0.chunk.js.map +0 -1
- /package/dist/public/build/js/{dashboard.234b8062.chunk.js.LICENSE.txt → dashboard.efdd63a2.chunk.js.LICENSE.txt} +0 -0
- /package/dist/public/build/js/{main.aa6a17d8.js.LICENSE.txt → main.a89bac74.js.LICENSE.txt} +0 -0
- /package/dist/public/build/js/{yt-df-dialog.acab4eb0.chunk.js.LICENSE.txt → yt-df-dialog.1d05b0a5.chunk.js.LICENSE.txt} +0 -0
package/dist/public/build/js/{navigation-flow.a79a25f5.chunk.js → navigation-flow.1d83e216.chunk.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_ytsaurus_ui=self.webpackChunk_ytsaurus_ui||[]).push([[1234],{523:(e,t,n)=>{"use strict";n.d(t,{L:()=>c}),n(77810);var r=n(6542),i=n(32235),a=n(39702),o=n(40319),s=n(64922);const l=function(e){return(0,s.jsx)("svg",(0,o.A)((0,o.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 10.97a.75.75 0 1 0 1.06 1.06l3.5-3.5a.75.75 0 0 0 0-1.06l-3.5-3.5a.75.75 0 0 0-1.06 1.06L6.44 8zm5 0a.75.75 0 1 0 1.06 1.06l3.5-3.5a.75.75 0 0 0 0-1.06l-3.5-3.5a.75.75 0 0 0-1.06 1.06L11.44 8z",clipRule:"evenodd"})}))};var u=(0,n(76872).A)("yt-expanded-button"),c=function(e){var t=e.className,n=e.expanded,o=e.inline,c=e.toggleExpanded,d=e.all,h=e.showText,p=e.qa,f=d?"Collapse All":"Collapse",m=d?"Expand All":"Expand";return(0,s.jsxs)(r.$,{className:u({inline:o},t),view:"flat-secondary",title:n?f:m,onClick:c,qa:p,children:[h&&(n?f:m)+" ",(0,s.jsx)(i.I,{className:u("expand",{expanded:n}),data:d?l:a.A,size:16})]})}},1609:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(28782);function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=(0,r.A)(e)););return e}(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}},i.apply(null,arguments)}function a(e,t,n,a){var o=i((0,r.A)(1&a?e.prototype:e),t,n);return 2&a&&"function"==typeof o?function(e){return o.apply(n,e)}:o}},34108:(e,t,n)=>{"use strict";n.d(t,{Mj:()=>S,X$:()=>B});var r={grad:.9,turn:360,rad:360/(2*Math.PI)},i=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},o=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},s=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},l=function(e){return{r:o(e.r,0,255),g:o(e.g,0,255),b:o(e.b,0,255),a:o(e.a)}},u=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},c=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},h=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,a=Math.max(t,n,r),o=a-Math.min(t,n,r),s=o?a===t?(n-r)/o:a===n?2+(r-t)/o:4+(t-n)/o:0;return{h:60*(s<0?s+6:s),s:a?o/a*100:0,v:a/255*100,a:i}},p=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),o=r*(1-n),s=r*(1-(t-a)*n),l=r*(1-(1-t+a)*n),u=a%6;return{r:255*[r,s,o,o,l,r][u],g:255*[l,r,r,s,o,o][u],b:255*[o,o,l,r,r,s][u],a:i}},f=function(e){return{h:s(e.h),s:o(e.s,0,100),l:o(e.l,0,100),a:o(e.a)}},m=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},v=function(e){return p((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},g=function(e){return{h:(t=h(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i},x=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j={string:[[function(e){var t=c.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=y.exec(e)||w.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:l({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=x.exec(e)||b.exec(e);if(!t)return null;var n,i,a=f({h:(n=t[1],i=t[2],void 0===i&&(i="deg"),Number(n)*(r[i]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return v(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,a=e.a,o=void 0===a?1:a;return i(t)&&i(n)&&i(r)?l({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,a=e.a,o=void 0===a?1:a;if(!i(t)||!i(n)||!i(r))return null;var s=f({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return v(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,a=e.a,l=void 0===a?1:a;if(!i(t)||!i(n)||!i(r))return null;var u=function(e){return{h:s(e.h),s:o(e.s,0,100),v:o(e.v,0,100),a:o(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(l)});return p(u)},"hsv"]]},A=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},_=function(e,t){var n=g(e);return{h:n.h,s:o(n.s+100*t,0,100),l:n.l,a:n.a}},k=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},M=function(e,t){var n=g(e);return{h:n.h,s:n.s,l:o(n.l+100*t,0,100),a:n.a}},N=function(){function e(e){this.parsed=function(e){return"string"==typeof e?A(e.trim(),j.string):"object"==typeof e&&null!==e?A(e,j.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(k(this.rgba),2)},e.prototype.isDark=function(){return k(this.rgba)<.5},e.prototype.isLight=function(){return k(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=u(this.rgba)).r,n=e.g,r=e.b,o=(i=e.a)<1?d(a(255*i)):"","#"+d(t)+d(n)+d(r)+o;var e,t,n,r,i,o},e.prototype.toRgb=function(){return u(this.rgba)},e.prototype.toRgbString=function(){return t=(e=u(this.rgba)).r,n=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+n+", "+r+", "+i+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,i},e.prototype.toHsl=function(){return m(g(this.rgba))},e.prototype.toHslString=function(){return t=(e=m(g(this.rgba))).h,n=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+i+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,i},e.prototype.toHsv=function(){return e=h(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return S({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),S(_(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),S(_(this.rgba,-e))},e.prototype.grayscale=function(){return S(_(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),S(M(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),S(M(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?S({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=g(this.rgba);return"number"==typeof e?S({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===S(e).toHex()},e}(),S=function(e){return e instanceof N?e:new N(e)},I=[],B=function(e){e.forEach((function(e){I.indexOf(e)<0&&(e(N,j),I.push(e))}))}},38501:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Flow:()=>zt});var r=n(77810),i=n(15647),a=n(76872),o=n(70243),s=n(30513),l=n(6542),u=n(89648),c=n(70724),d=n(57364),h=n(44131),p=n(64772),f=n(88787),m=n(42321),v=n(53302),g=n(13685),x=n(51194),b=n(27859),y=n(76365),w=function(e){return e.flow.status.data},j=function(e){return e.flow.status.pipeline_path},A=n(54835),_=new y.A;function k(e){return function(t){return t(A.U.onRequest({pipeline_path:e})),b.QA.getPipelineState({parameters:{pipeline_path:e},cancellation:_.removeAllAndSave}).then((function(e){t(A.U.onSuccess({data:e}))}),(function(e){(0,y.m)(e)||t(A.U.onError({error:e}))}))}}function M(e){var t=e.pipeline_path,n=e.state;return function(e,r){var i="".concat(n,"Pipeline");return b.QA[i]({pipeline_path:t}).then((function(){j(r())===t&&e(k(t))}))}}var N=function(e){return e.flow.filters.flowViewMode},S=n(52797),I=n(57602),B=n(19538),P=n(7787),C=n(35441),z=n(5800),E=n(2735),X=n(8208),Y=n(523),D=n(40319),R=n(85655),T=new y.A,H=n(18801),$=n(18472),F=n(27528),O=n.n(F),L=n(39760),q=n.n(L),G=["name"],V=function(e){return e.flow.layout.pipeline_path},U=function(e){return e.flow.layout.error},W=(0,$.Mz)([function(e){return e.flow.layout.data},function(e){return e.flow.layout.expandedComputations},function(e){return e.flow.layout.expandedWorkers}],(function(e,t,n){return function(r){return"computations"===r?Q(function(e){var t,n,r=null!==(t=null==e||null===(n=e.execution_spec)||void 0===n||null===(n=n.layout)||void 0===n?void 0:n.value)&&void 0!==t?t:{},i=r.jobs,a=void 0===i?{}:i,o=r.partitions;return O()(o,(function(t){var n,r,i=a[t.current_job_id],o=(null!=i?i:{}).worker_address,s=null==e?void 0:e.workers[o];return{name:t.computation_id,partition:null!==(n=t)&&void 0!==n?n:null,job:null!==(r=i)&&void 0!==r?r:null,worker:null!=s?s:null}}))}(e),t):Q(function(e){var t,n,r=null!==(t=null==e||null===(n=e.execution_spec)||void 0===n||null===(n=n.layout)||void 0===n?void 0:n.value)&&void 0!==t?t:{},i=r.jobs,a=r.partitions,o=[],s=new Set;return q()(i,(function(t){var n=t.worker_address,r=t.partition_id,i=null==a?void 0:a[r],l=null==e?void 0:e.workers[n];o.push({name:n,partition:null!=i?i:null,job:null!=t?t:null,worker:null!=l?l:null}),s.add(n)})),q()(null==e?void 0:e.workers,(function(e){var t=e.address;s.has(t)||o.push({name:t,partition:null,job:null,worker:null})})),o}(e),n)}}));function Q(e,t){var n=new Set(Object.keys(t)),r=[],i=new Map;if(e.forEach((function(e){var t,a=e.name,o=(0,H.A)(e,G),s=i.get(a);s||(s={$attributes:{name:a,expanded:n.has(a),job_count:0,worker_count:0,partition_count:0},$value:[]},i.set(a,s),r.push(s)),e.job&&++s.$attributes.job_count,e.worker&&++s.$attributes.worker_count,e.partition&&++s.$attributes.partition_count,null===(t=s.$value)||void 0===t||t.push(o)})),!n.size)return r;for(var a=[],o=0,s=r;o<s.length;o++){var l=s[o],u=l.$attributes.name;n.has(u)?a=a.concat(l,l.$value):a.push(l)}return a}var J=n(64922),K=(0,a.A)("yt-navigation-flow-layout");function Z(e){var t=e.path,n=e.viewMode,a=(0,i.wA)(),o=(0,i.d4)(V),s=(0,i.d4)(U),l=(0,i.d4)(W),u=r.useMemo((function(){return l(n)}),[n,l]),c=t===o,d=function(e){var t=(0,i.wA)(),n=r.useMemo((function(){var n="computations"===e,r=[{name:n?"Computation / Partition Id":"Worker address / Partition Id",className:K("td-name"),render:function(e){var r,i=e.row;if("$attributes"in i){var a=i.$attributes,o=a.name,s=a.expanded;r=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Y.L,{className:K("expand",{hidden:0===i.$value.length}),expanded:s,toggleExpanded:function(){t(n?function(e){var t=e.computation_id;return function(e){e(R.Cp.onExpandComputation({computation_id:t}))}}({computation_id:o}):function(e){var t=e.worker_address;return function(e){e(R.Cp.onExpandWorker({worker_address:t}))}}({worker_address:o})),requestAnimationFrame((function(){window.dispatchEvent(new Event("resize"))}))}}),(0,J.jsxs)("span",{className:K("name-title"),children:[o," ",(0,J.jsx)(h.A,{view:"flat-secondary",text:o,inlineMargins:!0,visibleOnRowHover:!0})]})]})}else{var l,u;r=(0,J.jsxs)("span",{className:K("name-title",{level:"1"}),children:[null===(l=i.partition)||void 0===l?void 0:l.partition_id,(0,J.jsx)(h.A,{view:"flat-secondary",text:null===(u=i.partition)||void 0===u?void 0:u.partition_id,inlineMargins:!0,visibleOnRowHover:!0})]})}return(0,J.jsx)("div",{className:K("name"),children:r})}},{name:"Partition state",render:function(e){var t,n=e.row;return"partition"in n?null===(t=n.partition)||void 0===t?void 0:t.state:p.A.Number(n.$value.length)},width:120},{name:"Job Id",render:function(e){var t,n,r=e.row;return"partition"in r?(0,J.jsxs)(J.Fragment,{children:[null===(t=r.partition)||void 0===t?void 0:t.current_job_id," ",(0,J.jsx)(h.A,{view:"flat-secondary",text:null===(n=r.partition)||void 0===n?void 0:n.current_job_id,inlineMargins:!0,visibleOnRowHover:!0})]}):p.A.Number(r.$attributes.job_count)},width:400},n?{name:"Worker address",render:function(e){var t,n,r=e.row;return"job"in r?(0,J.jsxs)(J.Fragment,{children:[null===(t=r.job)||void 0===t?void 0:t.worker_address,(0,J.jsx)(h.A,{view:"flat-secondary",text:null===(n=r.job)||void 0===n?void 0:n.worker_address,inlineMargins:!0,visibleOnRowHover:!0})]}):p.A.Number(r.$attributes.worker_count)},width:400}:{name:"Computation",render:function(e){var t,n=e.row;return"partition"in n?null===(t=n.partition)||void 0===t?void 0:t.computation_id:p.A.Number(n.$attributes.partition_count)},width:400},{name:"actions",header:null,render:function(e){var t=e.row;return(0,J.jsx)(z.A,{className:K("show-attributes"),title:"Details",attributes:t,withTooltip:!1})},width:50}];return r}),[e]);return n}(n),f=r.useCallback((function(){a(function(e){return function(t){return t(R.Cp.onRequest({pipeline_path:e})),b.QA.getFlowView({parameters:(0,D.A)({pipeline_path:e},{annotate_with_types:!0}),cancellation:T.removeAllAndSave}).then((function(e){t(R.Cp.onSuccess({data:e}))}),(function(e){(0,y.m)(e)||t(R.Cp.onError({error:e}))}))}}(t))}),[t,a]);return(0,g.Tt)(f),c?(0,J.jsxs)("div",{className:K(),children:[Boolean(s)&&(0,J.jsx)(X.z,{error:s}),(0,J.jsx)(E.Ay,{settings:E.ks,columns:d,data:u,useThemeYT:!0})]}):null}var ee=n(13322),te=n(53775),ne=n(28407),re=n(9736),ie=n(22977),ae=function(e){return e.flow.staticSpec.data},oe=function(e){return e.flow.staticSpec.pipeline_path},se=function(e){return e.flow.staticSpec.error},le=function(e){var t=e.flow.staticSpec,n=t.loading;return!t.loaded&&n},ue=function(e){return e.flow.dynamicSpec.data},ce=function(e){return e.flow.dynamicSpec.pipeline_path},de=function(e){var t=e.flow.dynamicSpec,n=t.loading;return!t.loaded&&n},he=new y.A;function pe(e){return function(t){return t(ie.pX.onRequest({pipeline_path:e})),b.QA.getPipelineSpec({parameters:{pipeline_path:e},cancellation:he.removeAllAndSave}).then((function(e){t(ie.pX.onSuccess({data:e}))}),(function(e){(0,y.m)(e)||t(ie.pX.onError({error:e}))}))}}function fe(e){return function(t){return t(ie.Ep.onRequest({pipeline_path:e})),b.QA.getPipelineDynamicSpec({parameters:{pipeline_path:e},cancellation:he.removeAllAndSave}).then((function(e){t(ie.Ep.onSuccess({data:e}))}),(function(e){(0,y.m)(e)||t(ie.Ep.onError({error:e}))}))}}var me=n(4386),ve=n(78519),ge=n(20361),xe=n(54736),be=n(84549),ye=n(88358),we=n(88923),je=(0,a.A)("yt-pipeline-spec");function Ae(e){var t=e.path,n=e.data,a=e.error,o=e.name,s=e.onSave,u=r.useState(!1),c=(0,re.A)(u,2),d=c[0],h=c[1],p=(0,i.d4)(me.eg);return(0,J.jsxs)(r.Fragment,{children:[Boolean(a)&&(0,J.jsx)(xe.z,{error:a}),(0,J.jsx)(ve.A,{value:n,settings:p,virtualized:!0,folding:!0,extraTools:(0,J.jsxs)(r.Fragment,{children:[(0,J.jsx)(ye.O,{value:n,settings:p,name:"pipeline_spec_".concat((0,we.M)(t))}),(0,J.jsxs)(l.$,{view:"outlined",onClick:function(){return h(!0)},children:[(0,J.jsx)(f.A,{awesome:"pencil"}),"Edit ",o]})]})}),(0,J.jsx)(_e,{path:t,name:o,visible:d,onSpecApply:function(e){return s((0,D.A)((0,D.A)({},n),{},{spec:e}))},onClose:function(){return h(!1)},spec:null==n?void 0:n.spec,settings:p})]})}function _e(e){var t=e.path,n=e.visible,i=e.spec,a=e.onClose,o=e.onSpecApply,s=e.name,l=e.settings,u=r.useState(),c=(0,re.A)(u,2),d=c[0],h=c[1],p=r.useMemo((function(){return{value:JSON.stringify(i,null,4)}}),[i]);return n&&(0,J.jsx)(ge.yZ,{visible:!0,size:"l",onClose:a,initialValues:{text:p,path:t},headerProps:{title:"Edit ".concat(s)},onAdd:function(){var e=(0,ne.A)((0,te.A)().mark((function e(t){var n;return(0,te.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h(void 0),!(n=t.getState().values.text).value){e.next=15;break}return e.prev=3,e.next=6,o(JSON.parse(n.value));case 6:return e.abrupt("return",e.sent);case 9:return e.prev=9,e.t0=e.catch(3),h(e.t0),e.abrupt("return",Promise.reject(e.t0));case 13:e.next=16;break;case 15:return e.abrupt("return",Promise.resolve());case 16:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t){return e.apply(this,arguments)}}(),fields:[{caption:"Pipeline path",name:"path",type:"plain"},{name:"text",caption:"Specification",type:"json",fullWidth:!0,extras:{className:je("editor"),initialShowPreview:!1,unipikaSettings:l}}].concat((0,ee.A)((0,ge.Y)([d])))})}function ke(e){var t=e.pipeline_path,n=(0,x._)(),a=(0,i.d4)(ae),o=(0,i.d4)(se),s=(0,i.d4)(le),l=r.useCallback((function(){n(pe(t))}),[n,t]);(0,g.Tt)(l);var u=r.useCallback((function(e){return n(function(e){var t=e.data,n=e.path;return function(e,r){return b.QA.setPipelineSpec({pipeline_path:n,expected_version:null==t?void 0:t.version},null==t?void 0:t.spec).then((function(){var t=oe(r());t&&t===n&&e(pe(n))}))}}({path:t,data:e}))}),[t,n]);return s?(0,J.jsx)(be.A,{}):(0,J.jsx)(Ae,{path:t,data:a,error:o,name:"static specification",onSave:u})}function Me(e){var t=e.pipeline_path,n=(0,x._)(),a=(0,i.d4)(ue),o=(0,i.d4)(se),s=(0,i.d4)(de),l=r.useCallback((function(){n(fe(t))}),[n,t]);(0,g.Tt)(l);var u=r.useCallback((function(e){return n(function(e){var t=e.data,n=e.path;return function(e,r){return b.QA.setPipelineDynamicSpec({pipeline_path:n,expected_version:null==t?void 0:t.version},null==t?void 0:t.spec).then((function(){var t=ce(r());n===t&&e(fe(n))}))}}({path:t,data:e}))}),[t,n]);return s?(0,J.jsx)(be.A,{}):(0,J.jsx)(Ae,{path:t,data:a,error:o,name:"dynamic specification",onSave:u})}var Ne=n(90636),Se=n.n(Ne),Ie=n(44083);const Be=function(e){return(0,J.jsx)("svg",(0,D.A)((0,D.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,J.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 13.5h6a1.5 1.5 0 0 0 1.5-1.5V7.243a1.5 1.5 0 0 0-.44-1.061L8.819 2.939a1.5 1.5 0 0 0-1.06-.439H5A1.5 1.5 0 0 0 3.5 4v8A1.5 1.5 0 0 0 5 13.5m9-6.257a3 3 0 0 0-.879-2.122L9.88 1.88A3 3 0 0 0 7.757 1H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3zM8.72 10.53a.75.75 0 0 1 0-1.06l.97-.97-.97-.97a.75.75 0 0 1 1.06-1.06l1.5 1.5a.75.75 0 0 1 0 1.06l-1.5 1.5a.75.75 0 0 1-1.06 0m-1.44-3a.75.75 0 0 0-1.06-1.06l-1.5 1.5a.75.75 0 0 0 0 1.06l1.5 1.5a.75.75 0 1 0 1.06-1.06l-.97-.97z",clipRule:"evenodd"})}))},Pe=function(e){return(0,J.jsx)("svg",(0,D.A)((0,D.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,J.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.3 2 3.9.5 2 2v13.5l1.5-.776L4.9 14l2.4 1.5L9.7 14l2.4 1.5L14 14V.5l-1.5.776L11.1 2 8.7.5zm2.4.269L7.095 3.272l-.795.497-.795-.497-1.504-.94-.501.395v10.308l.71-.367.76-.393.725.453L7.3 13.731l1.605-1.003.795-.497.795.497 1.504.94.501-.395V2.965l-.71.367-.76.393-.725-.453zM5 6.5a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 5 6.5m.75 2.25a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})}))};var Ce=n(6762),ze=n(60192),Ee=n(43739),Xe=n(23238),Ye=n(11970),De=n(4617),Re=n(32235),Te=n(59864),He=n(56796),$e=(0,a.A)("yt-flow-graph-renderer"),Fe={warning:"warning",alert:"warning",error:"danger",fatal:"danger",maximum:"danger"};function Oe(e){var t=e.data;return t?(0,J.jsx)(o.s,{shrink:0,children:(0,J.jsx)(Re.I,{className:$e("icon"),data:t})}):null}function Le(e){var t=e.text,n=e.children;return(0,J.jsxs)(u.E,{variant:"inherit",style:{lineHeight:"17px"},ellipsis:!0,children:[t,n]})}function qe(e){var t=e.text;return(0,J.jsx)(u.E,{variant:"caption-2",color:"secondary",ellipsis:!0,children:t})}function Ge(e){var t=e.data,n=r.useState(!1),i=(0,re.A)(n,2),a=i[0],o=i[1],s=r.useMemo((function(){return null==t?void 0:t.reduce((function(e,t){var n=t.level,r=Fe[n];return"danger"===r||"warning"===r?r:e}),void 0)}),[t]);return null!=t&&t.length?(0,J.jsxs)("div",{className:$e("messages"),children:[(0,J.jsxs)(He.S,{color:s,onClick:function(){return o(!0)},children:["Messages (",t.length,")"]}),a&&(0,J.jsx)(Ve,{data:t,onClose:function(){return o(!1)}})]}):null}function Ve(e){var t=e.data,n=e.onClose;return(0,J.jsxs)(Te.l,{open:!0,onClose:n,children:[(0,J.jsx)(Te.l.Header,{caption:"Messages"}),(0,J.jsx)(Te.l.Body,{className:$e("messages-body"),children:null==t?void 0:t.map((function(e,t){return(0,J.jsx)(Ue,{item:e},t)}))})]})}function Ue(e){var t=e.item,n=t.level,r=t.yson,i=t.error,a=Fe[n];return(0,J.jsx)("div",{className:$e("message",{theme:a}),children:i||r?(0,J.jsx)(We,{item:t,errorType:"warning"===a?"alert":void 0}):t.text})}function We(e){var t=e.item,n=e.errorType,i=r.useState(!1),a=(0,re.A)(i,2),s=a[0],l=a[1],u=function(){return l(!s)},c=t.yson,d=t.error,h=t.text;return(0,J.jsxs)(o.s,{gap:1,alignItems:"baseline",children:[(0,J.jsx)(Y.L,{expanded:s,toggleExpanded:u}),(0,J.jsxs)("div",{children:[(0,J.jsx)("span",{onClick:u,style:{cursor:"pointer"},children:null!=h?h:p.A.NO_VALUE}),s&&(0,J.jsxs)(r.Fragment,{children:[Boolean(c)&&(0,J.jsx)(ve.A,{value:c}),Boolean(d)&&(0,J.jsx)(xe.z,{error:d,type:n})]})]})]})}function Qe(e){var t=e.items,n=e.className;return(0,J.jsx)(o.s,{className:n,gap:2,children:t.map((function(e,n){var r=e.label,i=e.value;return(0,J.jsxs)(o.s,{grow:n<t.length-1?1:0,direction:"column",shrink:1,style:{overflow:"hidden"},children:[(0,J.jsx)(qe,{text:r}),(0,J.jsx)(Le,{text:i})]},n)}))})}var Je=["cpu_usage_current","memory_usage_current"],Ke=(0,a.A)("yt-flow-computation");function Ze(e){var t,n,r,i,a,s=e.detailed,l=e.item,u=e.className,c=null!==(t=null===(n=l.meta)||void 0===n?void 0:n.metrics)&&void 0!==t?t:{},d=c.cpu_usage_current,h=c.memory_usage_current;return(0,J.jsxs)("div",{className:Ke(null,u),children:[(0,J.jsxs)(o.s,{className:Ke("name"),gap:4,alignItems:"baseline",children:[(0,J.jsx)(o.s,{grow:1,overflow:"hidden",children:(0,J.jsx)(Le,{text:l.name})}),(0,J.jsx)(o.s,{grow:1,overflow:"hidden",children:(0,J.jsx)(qe,{text:null===(r=l.meta)||void 0===r?void 0:r.group_by_schema_str})})]}),(0,J.jsx)(Qe,{className:Ke("meta"),items:[{label:"CPU Usage",value:p.A.Number(d,{digits:d>1?1:2})},{label:"RAM Usage",value:p.A.Bytes(h)},{label:"Epoch, pcs/s",value:p.A.Number(null===(i=l.meta)||void 0===i?void 0:i.epoch_per_second)}]}),(0,J.jsx)(tt,{stats:null===(a=l.meta)||void 0===a?void 0:a.partitions_stats}),s&&(0,J.jsx)(it,{item:l}),s&&(0,J.jsx)(Ge,{data:l.meta.messages})]})}var et={completed:"info",transient:"warning",executing:"success",interrupted:"default"};function tt(e){var t=e.stats,n=null!=t?t:{},i=n.count,a=void 0===i?NaN:i,s=n.count_by_state,l=r.useMemo((function(){var e=[],t=Object.keys(null!=s?s:{}).map((function(t){var n,r,i=t,o=null!==(n=null==s?void 0:s[i])&&void 0!==n?n:NaN,l=null!==(r=et[i])&&void 0!==r?r:"default";return e.push({value:o,type:i}),{value:o/a*100,theme:l}}));return{stack:(0,De.ok)(t),history:e}}),[t,a]),c=l.stack,d=l.history;return(0,J.jsxs)("div",{children:[(0,J.jsx)(Ye.k,{className:Ke("progress"),stack:c,size:"xs"}),(0,J.jsxs)(o.s,{style:{paddingTop:"8px"},alignItems:"baseline",gap:2,children:[(0,J.jsxs)(Le,{children:[p.A.Number(a)," ",(0,J.jsx)(u.E,{color:"secondary",variant:"inherit",children:"partitions"})]}),(0,J.jsx)(nt,{data:d})]})]})}function nt(e){var t=e.data;return(0,J.jsx)(o.s,{alignItems:"baseline",grow:1,gap:2,justifyContent:"end",children:t.map((function(e,t){var n=e.value,r=e.type;return(0,J.jsx)(rt,{value:n,type:r},t)}))})}function rt(e){var t,n=e.value,r=e.type;return n?(0,J.jsxs)(o.s,{alignItems:"baseline",children:[(0,J.jsx)("div",{children:(0,J.jsx)("div",{className:Ke("progress-history-item-color",{theme:null!==(t=et[r])&&void 0!==t?t:"default"})})}),(0,J.jsx)(Le,{children:n})]}):null}function it(e){var t,n,r=null!==(t=null===(n=e.item.meta)||void 0===n?void 0:n.metrics)&&void 0!==t?t:{},i=(r.cpu_usage_current,r.memory_usage_current,(0,H.A)(r,Je));return(0,J.jsx)(m.Ay,{className:Ke("details"),items:[Object.entries(i).map((function(e){var t=(0,re.A)(e,2),n=t[0],r=t[1],i=n.startsWith("memory_")?p.A.Bytes:p.A.Number;return{key:n,value:i(r,{digits:2})}}))]})}function at(e){var t,n,r,i,a=e.item,s=e.detailed,l=e.className;return(0,J.jsxs)("div",{className:l,children:[(0,J.jsxs)(o.s,{gap:1,alignItems:"center",style:{paddingBottom:"10px"},overflow:"hidden",children:[(0,J.jsx)(Oe,{data:a.icon}),(0,J.jsx)(Le,{text:a.name})]}),(0,J.jsx)(Qe,{items:[{label:"Messages",value:(0,J.jsxs)(o.s,{direction:"column",children:[(0,J.jsxs)(u.E,{variant:"inherit",whiteSpace:"nowrap",ellipsis:!0,children:[p.A.Number(null===(t=a.meta)||void 0===t?void 0:t.messages_per_second)," pcs/s"]}),(0,J.jsx)(u.E,{variant:"inherit",whiteSpace:"nowrap",ellipsis:!0,children:p.A.Bytes(null===(n=a.meta)||void 0===n?void 0:n.bytes_per_second,{digits:s?2:0})+"/s"})]})},{label:"Inflight rows",value:(0,J.jsxs)(o.s,{direction:"column",style:{overflow:"hidden"},children:[(0,J.jsx)(u.E,{variant:"inherit",whiteSpace:"nowrap",ellipsis:!0,children:p.A.Number(null===(r=a.meta)||void 0===r?void 0:r.inflight_rows)}),(0,J.jsx)(u.E,{variant:"inherit",whiteSpace:"nowrap",ellipsis:!0,children:p.A.Bytes(null===(i=a.meta)||void 0===i?void 0:i.inflight_bytes,{digits:s?2:0})})]})}]}),s&&(0,J.jsx)(Ge,{data:a.meta.messages})]})}var ot=n(29121),st=n(12937),lt=n(66134),ut=n(10785);const ct=function(e){return(0,J.jsx)("svg",(0,D.A)((0,D.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,J.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1.25a.75.75 0 0 0-1.5 0V2.5a3 3 0 0 0-3 3H1.25a.75.75 0 0 0 0 1.5H2.5v2H1.25a.75.75 0 0 0 0 1.5H2.5a3 3 0 0 0 3 3v1.25a.75.75 0 0 0 1.5 0V13.5h2v1.25a.75.75 0 0 0 1.5 0V13.5a3 3 0 0 0 3-3h1.25a.75.75 0 0 0 0-1.5H13.5V7h1.25a.75.75 0 0 0 0-1.5H13.5a3 3 0 0 0-3-3V1.25a.75.75 0 0 0-1.5 0V2.5H7zM10.5 4h-5A1.5 1.5 0 0 0 4 5.5v5A1.5 1.5 0 0 0 5.5 12h5a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 10.5 4m0 2.25a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 0 .75.75h3.5a.75.75 0 0 0 .75-.75zM7 7h2v2H7z",clipRule:"evenodd"})}))};var dt=function(e){function t(){var e;(0,ot.A)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=(0,lt.A)(this,t,[].concat(r))).PADDING=15,e.renderAnchor=function(){return Ce.Cc.create()},e}return(0,ut.A)(t,e),(0,st.A)(t,[{key:"getComputationFontSize",value:function(){return"header"}},{key:"renderBlock",value:function(e){this.drawBorder({backgroundTheme:this.state.backgroundTheme}),"minimalistic"===e?this.drawCenteredIcon({src:ct,size:50}):(this.renderHeader(),this.renderMeta())}},{key:"renderHeader",value:function(){var e,t=null!==(e=this.state.meta.partitions_stats)&&void 0!==e?e:{},n=t.count,r=t.count_by_state,i=(void 0===r?{}:r).executing,a=this.drawInnerText({yPos:this.PADDING,xPos:this.PADDING,text:this.state.name,fontSize:this.getComputationFontSize(),padding:this.PADDING}),o=[];Number.isFinite(n)&&Number.isFinite(i)&&(o.push(String(i)),n!==i&&o.push(String(n)),this.drawInnerText({yPos:this.PADDING,xPos:2*this.PADDING+a,text:o.join("/"),color:"secondary",padding:this.PADDING,fontSize:this.getComputationFontSize(),align:"right"}))}},{key:"renderMeta",value:function(){var e=this.state,t=e.height,n=e.width,r=this.state.meta.metrics,i=r.cpu_usage_current,a=r.memory_usage_current,o=Math.round((n-3*this.PADDING)/2),s=Math.round(t/2.1);this.drawMetaItem({xPos:this.PADDING,yPos:s,maxWidth:o,label:"CPU",value:p.A.Number(i,{digits:1}),fontSize:this.getComputationFontSize(),padding:this.PADDING});var l=p.A.Bytes(a,{digits:1});this.drawMetaItem({xPos:1.5*this.PADDING+o,yPos:s,maxWidth:o,label:"RAM",value:l,fontSize:this.getComputationFontSize(),padding:this.PADDING})}},{key:"getAnchorPosition",value:function(e){var t=e.index,n=void 0===t?0:t,r=this.state.anchors.length,i=void 0===r?0:r,a=this.getGeometry(),o=a.width;return{y:a.height,x:o/(i+1)*(n+1)}}}])}(Ce.vf),ht=function(e){function t(){var e;(0,ot.A)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=(0,lt.A)(this,t,[].concat(r))).renderAnchor=function(){return Ce.Cc.create()},e}return(0,ut.A)(t,e),(0,st.A)(t,[{key:"renderBlock",value:function(e){this.drawBorder({backgroundTheme:this.state.backgroundTheme}),"minimalistic"===e?this.drawCenteredIcon({src:this.state.icon}):this.renderHeader()}},{key:"renderHeader",value:function(){this.drawInnerIcon({src:this.state.icon,xPos:10,yPos:10,w:24,h:24}),this.drawInnerText({yPos:14,xPos:36,text:this.state.name,fontSize:"header",padding:10,oneLine:!0}),this.drawInnerText({yPos:49,xPos:36,text:p.A.Bytes(this.state.meta.bytes_per_second,{digits:0})+"/s",align:"right",fontSize:"header"})}},{key:"getAnchorPosition",value:function(e){var t=e.index,n=void 0===t?0:t,r=this.state.anchors.length,i=void 0===r?0:r;return{y:0,x:this.getGeometry().width/(i+1)*(n+1)}}}])}(Ce.vf),pt=n(68175),ft=n(12680),mt=50,vt=function(){return(0,st.A)((function e(t){var n=t.id,r=t.computation,i=t.streamSize,a=t.computationSize,o=t.backgroundTheme;(0,ot.A)(this,e),this.meta=void 0,this.id=void 0,this.name=void 0,this.is="computation-group",this.x=0,this.y=0,this.width=0,this.height=0,this.selected=!1,this.anchors=[],this.backgroundTheme=void 0,this.sizes=void 0,this.id=n,this.meta=r,this.name=r.id,this.backgroundTheme=o,this.sizes={stream:i,computation:a},Object.assign(this,this.recalcSize())}),[{key:"recalcSize",value:function(){var e,t,n,r=this.sizes,i=r.stream,a=r.computation,o=a.width+100,s=a.height+100,l=this.meta,u=l.source_streams,c=l.timer_streams,d=l.output_streams,h=Math.max(0,(null!==(e=null==u?void 0:u.length)&&void 0!==e?e:0)*(mt+i.height),(null!==(t=null==c?void 0:c.length)&&void 0!==t?t:0)*(mt+i.height),(null!==(n=null==d?void 0:d.length)&&void 0!==n?n:0)*(mt+i.height)-a.height),p=0;return(null==u?void 0:u.length)>0&&(p+=i.width+mt),(null==d?void 0:d.length)>0&&(p+=i.width+mt),{width:o+p,height:s+h}}},{key:"updateBlockPosition",value:function(e,t){if(t.groupId!==this.id)return(0,ft.N1)({additional:{id:this.id,"block.id":t.id,"block.groupId":t.groupId}},new Error("Unexpected behaviour: block.groupId is mismatched with this.id")),t;var n=this.sizes.stream,r=n.width,i=n.height,a=0;if("computation"!==e){var o,s=e;if(-1===(a=null===(o=this.meta[s])||void 0===o?void 0:o.indexOf(t.id)))return(0,ft.N1)({additional:(0,pt.A)({type:e,id:this.id,"block.id":t.id},"meta.".concat(e),this.meta[s].join(","))},new Error("Unexpected behaviour: block.id = ".concat(t.id," should be found in meta.").concat(e))),t}var l=this.sizes,u=l.computation,c=l.stream,d=a*(r+mt),h=a*(i+mt);if(t.y="output_streams"===e||"computation"===e?mt+h:100+u.height+h,"source_streams"===e)t.x=mt;else if("timer_streams"===e){var p,f=(null===(p=this.meta.source_streams)||void 0===p?void 0:p.length)>0;t.x=f?100+r+d:mt}else if("output_streams"===e){var m,v=(null===(m=this.meta.source_streams)||void 0===m?void 0:m.length)>0;t.x=100+u.width,v&&(t.x+=mt+r),t.y+=(u.height-c.height)/2}else if("computation"===e){var g,x=(null===(g=this.meta.source_streams)||void 0===g?void 0:g.length)>0;t.x=mt,x&&(t.x+=mt+r)}return(0,D.A)((0,D.A)({},t),{},{x:t.x+this.x,y:t.y+this.y})}}])}(),gt=n(1609),xt=function(e){function t(){var e;(0,ot.A)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=(0,lt.A)(this,t,[].concat(r))).PADDING=50,e}return(0,ut.A)(t,e),(0,st.A)(t,[{key:"getComputationFontSize",value:function(){return"header2"}},{key:"renderBlock",value:function(){(0,gt.A)(t,"renderBlock",this,3)(["schematic"])}}])}(dt);function bt(e){var t=e.className,n=e.item,r=e.detailed;return(0,J.jsxs)("div",{className:t,children:[(0,J.jsxs)(o.s,{gap:1,alignItems:"center",style:{paddingBottom:"10px"},overflow:"hidden",children:[(0,J.jsx)(Oe,{data:n.icon}),(0,J.jsx)(Le,{text:n.name})]}),(0,J.jsx)(qe,{text:n.meta.description}),r&&(0,J.jsx)(Ge,{data:n.meta.messages})]})}var yt=function(e){function t(){return(0,ot.A)(this,t),(0,lt.A)(this,t,arguments)}return(0,ut.A)(t,e),(0,st.A)(t,[{key:"renderBlock",value:function(e){this.drawBorder({backgroundTheme:this.state.backgroundTheme}),"minimalistic"===e?this.drawCenteredIcon({src:this.state.icon}):this.renderHeader()}},{key:"renderHeader",value:function(){this.drawInnerIcon({src:this.state.icon,xPos:10,yPos:10,w:24,h:24}),this.drawInnerText({yPos:14,xPos:36,text:this.state.name,fontSize:"header",padding:10,oneLine:!0})}}])}(Ce.vf),wt=["item"],jt=(0,a.A)("yt-flow-graph");function At(e){var t=e.yson,n=e.pipeline_path,r=Bt({pipeline_path:n}),i=r.error,a=r.data;return r.isLoading?(0,J.jsx)(be.A,{visible:!0,centered:!0}):i?(0,J.jsx)(X.z,{error:i}):(0,J.jsx)("div",{className:jt(),children:t?(0,J.jsx)(ve.A,{value:a,folding:!0,virtualized:!0}):(0,J.jsx)(_t,{pipeline_path:n})})}function _t(e){var t=e.pipeline_path,n=(0,Ce.WT)(),i=n.scale,a=n.setScale,s=i===Ie.TW.Minimalistic,l=(0,Ce.UK)({computation:dt,stream:ht,"computation-group":xt,sink:yt},{useDefaultConnection:!s}),u=function(e){var t=Bt(e).data,n=r.useMemo((function(){var e=null!=t?t:{},n=e.computations,r=void 0===n?{}:n,i=e.streams,a=void 0===i?{}:i,o=e.sinks,s=void 0===o?{}:o,l=e.sources,u=void 0===l?{}:l,c={data:{blocks:[],connections:[]},groups:{blocks:[],connections:[]},groupById:new Map},d=new Map;function h(e,t,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).anchorType,i={sourceBlockId:t,targetBlockId:n};e.push(i),r&&function(e,t,n,r){var i={id:"anchor:out:".concat(t.id,":").concat(n.id,":"),blockId:t.id,type:e},a={id:"anchor:in:".concat(t.id,":").concat(n.id,":"),blockId:n.id,type:e};t.anchors.push((0,D.A)((0,D.A)({},i),{},{index:t.anchors.length})),n.anchors.push((0,D.A)((0,D.A)({},a),{},{index:n.anchors.length})),r.targetAnchorId=a.id,r.sourceAnchorId=i.id}(r,d.get(t),d.get(n),i)}Object.values(a).forEach((function(e){var t=Pt("stream",e,(0,D.A)({name:e.name},St));d.set(t.id,t),c.data.blocks.push(t)})),Object.entries(r).forEach((function(e){var t=(0,re.A)(e,2),n=t[0],r=t[1],i="\n\n__group(".concat(r.id,")__\n\n"),a=new vt({id:i,computation:r,streamSize:St,computationSize:Nt,backgroundTheme:Fe[r.status]});c.groups.blocks.push(a),c.groupById.set(i,a);var o=Pt("computation",r,(0,D.A)({name:n,groupId:i,backgroundTheme:Fe[r.status]},Nt));function s(e,t){var n;(null!==(n=r[e])&&void 0!==n?n:[]).forEach((function(n){"input_streams"===e||"source_streams"===e?h(c.data.connections,n,r.id):"output_streams"===e?h(c.data.connections,r.id,n):"timer_streams"===e&&(h(c.data.connections,r.id,n,{anchorType:e}),h(c.data.connections,n,r.id,{anchorType:e})),null!=t&&t.groupId&&Object.assign(d.get(n),(0,D.A)((0,D.A)({stream_type:e},t),Mt[e]))}))}d.set(o.id,o),c.data.blocks.push(o),s("input_streams"),s("output_streams",{groupId:i}),s("source_streams",{groupId:i}),s("timer_streams",{groupId:i})})),Object.entries(s).forEach((function(e){var t=(0,re.A)(e,2),n=(t[0],t[1]),r=Pt("sink",n,(0,D.A)((0,D.A)({},It),{},{icon:Pe}));h(c.data.connections,n.stream_id,n.id),d.set(r.id,r),c.data.blocks.push(r),c.groups.blocks.push(r)})),Object.entries(u).forEach((function(e){var t=(0,re.A)(e,2),n=(t[0],t[1]),r=Pt("sink",n,(0,D.A)((0,D.A)({},It),{},{icon:Be}));h(c.data.connections,n.id,n.stream_id),d.set(n.id,r),c.data.blocks.push(r),c.groups.blocks.push(r)}));var p=new Set;return c.data.connections.forEach((function(e){var t,n,r=e.sourceBlockId,i=e.targetBlockId,a=d.get(r),o=d.get(i);if(a.groupId&&o.groupId?a.groupId!==o.groupId&&(t=a.groupId,n=o.groupId):a.groupId?(t=a.groupId,n=o.id):o.groupId&&(t=a.id,n=o.groupId),t&&n){var s="_".concat(t,"->").concat(n,"_");p.has(s)||(p.add(s),h(c.groups.connections,t,n))}})),c}),[t]),i=(0,Ce.A$)(n.groups),a=r.useMemo((function(){var e=i.data,t=e.blocks,r=e.connections;t.forEach((function(e){var t=e.id,r=e.x,i=e.y,a=n.groupById.get(t);a&&Object.assign(a,{x:r,y:i})}));var a=Se()(t,(function(e){return"computation-group"===e.is})),o=(0,re.A)(a,2),s=(o[0],o[1]);return{data:{blocks:[].concat((0,ee.A)(n.data.blocks.map((function(e){var t=n.groupById.get(e.groupId);return t?"computation"===e.is?t.updateBlockPosition("computation",e):e.stream_type?t.updateBlockPosition(e.stream_type,e):e:e}))),(0,ee.A)(s)),connections:n.data.connections},groups:{blocks:t,connections:r},groupBlocks:t.filter((function(e){return"computation-group"===e.is}))}}),[i.isLoading,i.data,n]);return(0,D.A)((0,D.A)((0,D.A)({isEmpty:!n.data.blocks.length},i),a),{},{messages:null==t?void 0:t.messages})}({pipeline_path:t}),c=u.isEmpty,d=u.isLoading,h=u.data,p=u.groups,f=u.groupBlocks,m=u.messages;return d?(0,J.jsx)(be.A,{visible:!0,centered:!0}):c?(0,J.jsx)(ze.R,{warning:"The graph is empty"}):(0,J.jsxs)("div",{className:jt(),children:[(0,J.jsx)("div",{className:jt("graph-messages"),children:(0,J.jsx)(Ge,{data:m})}),(0,J.jsx)(Ce.i_,(0,D.A)((0,D.A)({className:jt("graph"),setScale:a},l),{},{data:s?p:h,renderBlock:function(e){var t=e.className,n=e.style,r=e.data;return(0,J.jsx)(o.s,{className:jt("item-container",t),style:n,children:kt({item:r})})},renderPopup:function(e){var t=e.data;return(0,J.jsx)("div",{className:jt("item-popup",{type:t.is}),children:kt({item:t,detailed:!0})})},customGroups:f}))]})}function kt(e){var t=e.item,n=(0,H.A)(e,wt);switch(t.is){case"computation":case"computation-group":return(0,J.jsx)(Ze,(0,D.A)({className:jt("item"),item:t},n));case"stream":return(0,J.jsx)(at,(0,D.A)({className:jt("item"),item:t},n));case"sink":return(0,J.jsx)(bt,(0,D.A)({className:jt("item"),item:t},n))}}var Mt={input_streams:{icon:Be},output_streams:{icon:Be},source_streams:{icon:Be},timer_streams:{icon:function(e){return(0,J.jsx)("svg",(0,D.A)((0,D.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,J.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8.75 4.5a.75.75 0 0 0-1.5 0V8a.75.75 0 0 0 .3.6l2 1.5a.75.75 0 1 0 .9-1.2l-1.7-1.275z",clipRule:"evenodd"})}))}}},Nt={width:320,height:130},St={width:240,height:100},It={width:200,height:80};function Bt(e){var t=e.pipeline_path,n=(0,i.d4)(Ee.dB);return(0,Xe.Fs)({cluster:n,parameters:{pipeline_path:t,flow_command:"describe-pipeline"}})}function Pt(e,t,n){return(0,D.A)((0,D.A)({id:t.id,is:e,name:t.id,selected:!1,anchors:[]},n),{},{meta:t,x:0,y:0})}var Ct=(0,a.A)("yt-navigation-flow");function zt(){var e=(0,i.wA)(),t=(0,i.d4)(N),n=r.useMemo((function(){var e,t=null!==(e=P.Ay.getMonitoringComponentForNavigationFlow())&&void 0!==e?e:{},n=t.urlTemplate;return(t.component||n?B.g$:B.g$.filter((function(e){return"monitoring"!==e}))).map((function(e){return{value:e,content:p.A.ReadableField(e)}}))}),[]);return(0,J.jsxs)("div",{className:Ct(),children:[(0,J.jsx)(Yt,{}),(0,J.jsx)(o.s,{className:Ct("toolbar"),children:(0,J.jsx)(s.a,{options:n,value:t,onUpdate:function(t){return e((0,B.nP)(t))}})}),(0,J.jsx)("div",{className:Ct("content",{view:t}),children:(0,J.jsx)(Et,{viewMode:t})})]})}function Et(e){var t=e.viewMode,n=(0,i.d4)(I.Yn);if(!n)return null;switch(t){case"static_spec":return(0,J.jsx)(ke,{pipeline_path:n});case"dynamic_spec":return(0,J.jsx)(Me,{pipeline_path:n});case"monitoring":return(0,J.jsx)(Dt,{});case"workers":case"computations":return(0,J.jsx)(Z,{path:n,viewMode:t});case"graph":case"graph_data":return(0,J.jsx)(At,{pipeline_path:n,yson:"graph_data"===t});default:return(0,J.jsx)(d.z,{header:"Unexpected behaviour",error:new Error("'".concat(t,"' view mode is not implemented"))})}}function Xt(){var e=(0,x._)(),t=(0,i.d4)(I.Yn),n=r.useCallback((function(){return e(k(t))}),[t,e]);(0,g.Tt)(n);var a=r.useMemo((function(){return{onStart:function(){return e(M({pipeline_path:t,state:"start"}))},onStop:function(){return e(M({pipeline_path:t,state:"stop"}))},onPause:function(){return e(M({pipeline_path:t,state:"pause"}))}}}),[e,t]),s=a.onStart,u=a.onStop,c=a.onPause;return(0,J.jsxs)(o.s,{className:Ct("status-toolbar"),alignItems:"center",gap:2,children:[(0,J.jsxs)(l.$,{view:"outlined",onClick:s,children:[(0,J.jsx)(f.A,{awesome:"play-circle"})," Start"]}),(0,J.jsxs)(l.$,{view:"outlined",onClick:c,children:[(0,J.jsx)(f.A,{awesome:"pause-circle"})," Pause"]}),(0,J.jsxs)(l.$,{view:"outlined",onClick:u,children:[(0,J.jsx)(f.A,{awesome:"stop-circle"})," Stop"]})]})}function Yt(){var e=(0,i.d4)(w),t=(0,i.d4)(I.gu).leader_controller_address;return(0,J.jsxs)(r.Fragment,{children:[(0,J.jsxs)(o.s,{className:Ct("state"),alignItems:"center",gap:2,children:[(0,J.jsx)(u.E,{variant:"header-1",children:"Processing catalog "}),(0,J.jsx)(Xt,{})]}),(0,J.jsx)(m.Ay,{items:[[{key:"status",value:(0,J.jsx)(v.A,{label:e})}],[{key:"leader_controller_address",value:(0,J.jsxs)(J.Fragment,{children:[t,(0,J.jsx)(h.A,{view:"flat-secondary",text:t,inlineMargins:!0})]}),className:Ct("meta-item")}]]})]})}function Dt(){var e,t=null!==(e=P.Ay.getMonitoringComponentForNavigationFlow())&&void 0!==e?e:{},n=t.component,r=t.title,a=t.urlTemplate,o=(0,i.d4)(I.gu),s=o.monitoring_cluster,l=o.monitoring_project,u=(0,i.d4)(S.dB);return n?(0,J.jsx)(n,{cluster:u,monitoring_cluster:s,monitoring_project:l,attributes:o}):a?(0,J.jsx)(c.N,{target:"_blank",href:(0,C.j)(a,{ytCluster:u,monitoring_cluster:s,monitoring_project:l}),children:r||"Monitoring"}):null}},39702:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(40319),i=n(64922);const a=function(e){return(0,i.jsx)("svg",(0,r.A)((0,r.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,i.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"})}))}},48495:function(e){e.exports=function(){"use strict";function e(e,r,i,a,o){!function e(n,r,i,a,o){for(;a>i;){if(a-i>600){var s=a-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*c/s+d)),Math.min(a,Math.floor(r+(s-l)*c/s+d)),o)}var h=n[r],p=i,f=a;for(t(n,i,r),o(n[a],h)>0&&t(n,i,a);p<f;){for(t(n,p,f),p++,f--;o(n[p],h)<0;)p++;for(;o(n[f],h)>0;)f--}0===o(n[i],h)?t(n,i,f):t(n,++f,a),f<=r&&(i=f+1),r<=f&&(a=f-1)}}(e,r,i||0,a||e.length-1,o||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function a(e,t){o(e,0,e.children.length,t,e)}function o(e,t,n,r,i){i||(i=f(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var a=t;a<n;a++){var o=e.children[a];s(i,e.leaf?r(o):o)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function h(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function f(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,n,r,i,a){for(var o=[n,r];o.length;)if(!((r=o.pop())-(n=o.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,a),o.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var a=0;a<t.children.length;a++){var o=t.children[a],s=t.leaf?r(o):o;p(e,s)&&(t.leaf?n.push(o):h(e,s)?this._all(o,n):i.push(o))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],a=t.leaf?this.toBBox(i):i;if(p(e,a)){if(t.leaf||h(e,a))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=f([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,a,o=this.data,s=this.toBBox(e),l=[],u=[];o||l.length;){if(o||(o=l.pop(),r=l[l.length-1],n=u.pop(),a=!0),o.leaf){var c=i(e,o.children,t);if(-1!==c)return o.children.splice(c,1),l.push(o),this._condense(l),this}a||o.leaf||!h(o,s)?r?(n++,o=r.children[n],a=!1):o=null:(l.push(o),u.push(n),n=0,r=o,o=o.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,o=n-t+1,s=this._maxEntries;if(o<=s)return a(i=f(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,r-1))),(i=f([])).leaf=!1,i.height=r;var l=Math.ceil(o/s),u=l*Math.ceil(Math.sqrt(s));m(e,t,n,u,this.compareMinX);for(var c=t;c<=n;c+=u){var d=Math.min(c+u-1,n);m(e,c,d,l,this.compareMinY);for(var h=c;h<=d;h+=l){var p=Math.min(h+l-1,d);i.children.push(this._build(e,h,p,r-1))}}return a(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,a=1/0,o=void 0,s=0;s<t.children.length;s++){var l=t.children[s],u=c(l),d=(h=e,p=l,(Math.max(p.maxX,h.maxX)-Math.min(p.minX,h.minX))*(Math.max(p.maxY,h.maxY)-Math.min(p.minY,h.minY))-u);d<a?(a=d,i=u<i?u:i,o=l):d===a&&u<i&&(i=u,o=l)}t=o||t.children[0]}var h,p;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],a=this._chooseSubtree(r,this.data,t,i);for(a.children.push(e),s(a,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=f(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=f([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,a,s,l,u,d,h=1/0,p=1/0,f=t;f<=n-t;f++){var m=o(e,0,f,this.toBBox),v=o(e,f,n,this.toBBox),g=(i=m,a=v,void 0,void 0,void 0,void 0,s=Math.max(i.minX,a.minX),l=Math.max(i.minY,a.minY),u=Math.min(i.maxX,a.maxX),d=Math.min(i.maxY,a.maxY),Math.max(0,u-s)*Math.max(0,d-l)),x=c(m)+c(v);g<h?(h=g,r=f,p=x<p?x:p):g===h&&x<p&&(p=x,r=f)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:u;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,a=o(e,0,t,i),l=o(e,n-t,n,i),u=d(a)+d(l),c=t;c<n-t;c++){var h=e.children[c];s(a,e.leaf?i(h):h),u+=d(a)}for(var p=n-t-1;p>=t;p--){var f=e.children[p];s(l,e.leaf?i(f):f),u+=d(l)}return u},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():a(e[t],this.toBBox)},r}()},53302:(e,t,n)=>{"use strict";n.d(t,{A:()=>l}),n(77810);var r=n(76872),i=n(73822),a=n(88787),o=n(64922),s=(0,r.A)("status-label");function l(e){var t=e.className,n=e.label,r=e.renderPlaque,l=e.text,u=e.state,c=e.iconState,d=function(e){var t;return null!==(t={materializing:"preparing",initializing:"preparing",preparing:"preparing",pending:"preparing",starting:"preparing",running:"running",completing:"running",failing:"running",aborting:"running",reviving:"running",suspended:"suspended",failed:"failed",completed:"completed",aborted:"aborted",Unknown:"unknown",Stopped:"suspended",Paused:"suspended",Working:"running",Draining:"running",Pausing:"running",Completed:"completed"}[e])&&void 0!==t?t:"unknown"}(n),h=function(e){return{preparing:"clock",running:"play-circle",suspended:"pause-circle",failed:"times-circle",completed:"check-circle",aborted:"times-circle",unknown:"question-circle"}[e]}(null!=c?c:d),p={state:null!=u?u:d};return n||l||u?(0,o.jsxs)("span",{className:s(null,r?s("plaque",p,t):s(p,t)),children:[(0,o.jsx)(a.A,{awesome:h}),(0,o.jsx)("span",{children:null!=l?l:i.A.format.ReadableField(n)})]}):(0,o.jsx)("span",{})}},60150:(e,t,n)=>{"use strict";n.d(t,{kd:()=>i,LB:()=>a});var r=n(34108);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return getComputedStyle(t).getPropertyValue(e)}function a(e,t){var n;return function(e,t){if(e||null==t||!t.allowUndefined)return(0,r.Mj)(e).toHex()}(i(e,null!==(n=document.body)&&void 0!==n?n:null==t?void 0:t.container),t)}(0,r.X$)([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var i in n)r[n[i]]=i;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var i,o,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),u=1/0,c="black";if(!a.length)for(var d in n)a[d]=new e(n[d]).toRgb();for(var h in n){var p=(i=l,o=a[h],Math.pow(i.r-o.r,2)+Math.pow(i.g-o.g,2)+Math.pow(i.b-o.b,2));p<u&&(u=p,c=h)}return c}},t.string.push([function(t){var r=t.toLowerCase(),i="transparent"===r?"#0000":n[r];return i?new e(i).toRgb():null},"name"])}])}}]);
|
|
2
|
-
//# sourceMappingURL=navigation-flow.
|
|
1
|
+
(self.webpackChunk_ytsaurus_ui=self.webpackChunk_ytsaurus_ui||[]).push([[1234],{523:(e,t,n)=>{"use strict";n.d(t,{L:()=>c}),n(77810);var r=n(6542),i=n(32235),a=n(39702),o=n(40319),s=n(64922);const l=function(e){return(0,s.jsx)("svg",(0,o.A)((0,o.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 10.97a.75.75 0 1 0 1.06 1.06l3.5-3.5a.75.75 0 0 0 0-1.06l-3.5-3.5a.75.75 0 0 0-1.06 1.06L6.44 8zm5 0a.75.75 0 1 0 1.06 1.06l3.5-3.5a.75.75 0 0 0 0-1.06l-3.5-3.5a.75.75 0 0 0-1.06 1.06L11.44 8z",clipRule:"evenodd"})}))};var u=(0,n(76872).A)("yt-expanded-button"),c=function(e){var t=e.className,n=e.expanded,o=e.inline,c=e.toggleExpanded,d=e.all,h=e.showText,p=e.qa,f=d?"Collapse All":"Collapse",m=d?"Expand All":"Expand";return(0,s.jsxs)(r.$,{className:u({inline:o},t),view:"flat-secondary",title:n?f:m,onClick:c,qa:p,children:[h&&(n?f:m)+" ",(0,s.jsx)(i.I,{className:u("expand",{expanded:n}),data:d?l:a.A,size:16})]})}},1609:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(28782);function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=(0,r.A)(e)););return e}(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}},i.apply(null,arguments)}function a(e,t,n,a){var o=i((0,r.A)(1&a?e.prototype:e),t,n);return 2&a&&"function"==typeof o?function(e){return o.apply(n,e)}:o}},34108:(e,t,n)=>{"use strict";n.d(t,{Mj:()=>S,X$:()=>B});var r={grad:.9,turn:360,rad:360/(2*Math.PI)},i=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},o=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},s=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},l=function(e){return{r:o(e.r,0,255),g:o(e.g,0,255),b:o(e.b,0,255),a:o(e.a)}},u=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},c=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},h=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,a=Math.max(t,n,r),o=a-Math.min(t,n,r),s=o?a===t?(n-r)/o:a===n?2+(r-t)/o:4+(t-n)/o:0;return{h:60*(s<0?s+6:s),s:a?o/a*100:0,v:a/255*100,a:i}},p=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),o=r*(1-n),s=r*(1-(t-a)*n),l=r*(1-(1-t+a)*n),u=a%6;return{r:255*[r,s,o,o,l,r][u],g:255*[l,r,r,s,o,o][u],b:255*[o,o,l,r,r,s][u],a:i}},f=function(e){return{h:s(e.h),s:o(e.s,0,100),l:o(e.l,0,100),a:o(e.a)}},m=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},v=function(e){return p((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},g=function(e){return{h:(t=h(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i},x=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j={string:[[function(e){var t=c.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=y.exec(e)||w.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:l({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=x.exec(e)||b.exec(e);if(!t)return null;var n,i,a=f({h:(n=t[1],i=t[2],void 0===i&&(i="deg"),Number(n)*(r[i]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return v(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,a=e.a,o=void 0===a?1:a;return i(t)&&i(n)&&i(r)?l({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,a=e.a,o=void 0===a?1:a;if(!i(t)||!i(n)||!i(r))return null;var s=f({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return v(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,a=e.a,l=void 0===a?1:a;if(!i(t)||!i(n)||!i(r))return null;var u=function(e){return{h:s(e.h),s:o(e.s,0,100),v:o(e.v,0,100),a:o(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(l)});return p(u)},"hsv"]]},A=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},_=function(e,t){var n=g(e);return{h:n.h,s:o(n.s+100*t,0,100),l:n.l,a:n.a}},k=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},M=function(e,t){var n=g(e);return{h:n.h,s:n.s,l:o(n.l+100*t,0,100),a:n.a}},N=function(){function e(e){this.parsed=function(e){return"string"==typeof e?A(e.trim(),j.string):"object"==typeof e&&null!==e?A(e,j.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(k(this.rgba),2)},e.prototype.isDark=function(){return k(this.rgba)<.5},e.prototype.isLight=function(){return k(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=u(this.rgba)).r,n=e.g,r=e.b,o=(i=e.a)<1?d(a(255*i)):"","#"+d(t)+d(n)+d(r)+o;var e,t,n,r,i,o},e.prototype.toRgb=function(){return u(this.rgba)},e.prototype.toRgbString=function(){return t=(e=u(this.rgba)).r,n=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+n+", "+r+", "+i+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,i},e.prototype.toHsl=function(){return m(g(this.rgba))},e.prototype.toHslString=function(){return t=(e=m(g(this.rgba))).h,n=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+i+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,i},e.prototype.toHsv=function(){return e=h(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return S({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),S(_(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),S(_(this.rgba,-e))},e.prototype.grayscale=function(){return S(_(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),S(M(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),S(M(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?S({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=g(this.rgba);return"number"==typeof e?S({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===S(e).toHex()},e}(),S=function(e){return e instanceof N?e:new N(e)},I=[],B=function(e){e.forEach((function(e){I.indexOf(e)<0&&(e(N,j),I.push(e))}))}},38501:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Flow:()=>zt});var r=n(77810),i=n(15647),a=n(76872),o=n(70243),s=n(30513),l=n(6542),u=n(89648),c=n(70724),d=n(57364),h=n(44131),p=n(64772),f=n(88787),m=n(42321),v=n(53302),g=n(13685),x=n(51194),b=n(27859),y=n(76365),w=function(e){return e.flow.status.data},j=function(e){return e.flow.status.pipeline_path},A=n(54835),_=new y.A;function k(e){return function(t){return t(A.U.onRequest({pipeline_path:e})),b.QA.getPipelineState({parameters:{pipeline_path:e},cancellation:_.removeAllAndSave}).then((function(e){t(A.U.onSuccess({data:e}))}),(function(e){(0,y.m)(e)||t(A.U.onError({error:e}))}))}}function M(e){var t=e.pipeline_path,n=e.state;return function(e,r){var i="".concat(n,"Pipeline");return b.QA[i]({pipeline_path:t}).then((function(){j(r())===t&&e(k(t))}))}}var N=function(e){return e.flow.filters.flowViewMode},S=n(52797),I=n(57602),B=n(19538),P=n(7787),C=n(35441),z=n(5800),E=n(2735),X=n(8208),Y=n(523),D=n(40319),R=n(85655),T=new y.A,H=n(18801),$=n(18472),F=n(27528),O=n.n(F),L=n(39760),q=n.n(L),G=["name"],V=function(e){return e.flow.layout.pipeline_path},U=function(e){return e.flow.layout.error},W=(0,$.Mz)([function(e){return e.flow.layout.data},function(e){return e.flow.layout.expandedComputations},function(e){return e.flow.layout.expandedWorkers}],(function(e,t,n){return function(r){return"computations"===r?Q(function(e){var t,n,r=null!==(t=null==e||null===(n=e.execution_spec)||void 0===n||null===(n=n.layout)||void 0===n?void 0:n.value)&&void 0!==t?t:{},i=r.jobs,a=void 0===i?{}:i,o=r.partitions;return O()(o,(function(t){var n,r,i=a[t.current_job_id],o=(null!=i?i:{}).worker_address,s=null==e?void 0:e.workers[o];return{name:t.computation_id,partition:null!==(n=t)&&void 0!==n?n:null,job:null!==(r=i)&&void 0!==r?r:null,worker:null!=s?s:null}}))}(e),t):Q(function(e){var t,n,r=null!==(t=null==e||null===(n=e.execution_spec)||void 0===n||null===(n=n.layout)||void 0===n?void 0:n.value)&&void 0!==t?t:{},i=r.jobs,a=r.partitions,o=[],s=new Set;return q()(i,(function(t){var n=t.worker_address,r=t.partition_id,i=null==a?void 0:a[r],l=null==e?void 0:e.workers[n];o.push({name:n,partition:null!=i?i:null,job:null!=t?t:null,worker:null!=l?l:null}),s.add(n)})),q()(null==e?void 0:e.workers,(function(e){var t=e.address;s.has(t)||o.push({name:t,partition:null,job:null,worker:null})})),o}(e),n)}}));function Q(e,t){var n=new Set(Object.keys(t)),r=[],i=new Map;if(e.forEach((function(e){var t,a=e.name,o=(0,H.A)(e,G),s=i.get(a);s||(s={$attributes:{name:a,expanded:n.has(a),job_count:0,worker_count:0,partition_count:0},$value:[]},i.set(a,s),r.push(s)),e.job&&++s.$attributes.job_count,e.worker&&++s.$attributes.worker_count,e.partition&&++s.$attributes.partition_count,null===(t=s.$value)||void 0===t||t.push(o)})),!n.size)return r;for(var a=[],o=0,s=r;o<s.length;o++){var l=s[o],u=l.$attributes.name;n.has(u)?a=a.concat(l,l.$value):a.push(l)}return a}var J=n(64922),K=(0,a.A)("yt-navigation-flow-layout");function Z(e){var t=e.path,n=e.viewMode,a=(0,i.wA)(),o=(0,i.d4)(V),s=(0,i.d4)(U),l=(0,i.d4)(W),u=r.useMemo((function(){return l(n)}),[n,l]),c=t===o,d=function(e){var t=(0,i.wA)(),n=r.useMemo((function(){var n="computations"===e,r=[{name:n?"Computation / Partition Id":"Worker address / Partition Id",className:K("td-name"),render:function(e){var r,i=e.row;if("$attributes"in i){var a=i.$attributes,o=a.name,s=a.expanded;r=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Y.L,{className:K("expand",{hidden:0===i.$value.length}),expanded:s,toggleExpanded:function(){t(n?function(e){var t=e.computation_id;return function(e){e(R.Cp.onExpandComputation({computation_id:t}))}}({computation_id:o}):function(e){var t=e.worker_address;return function(e){e(R.Cp.onExpandWorker({worker_address:t}))}}({worker_address:o})),requestAnimationFrame((function(){window.dispatchEvent(new Event("resize"))}))}}),(0,J.jsxs)("span",{className:K("name-title"),children:[o," ",(0,J.jsx)(h.A,{view:"flat-secondary",text:o,inlineMargins:!0,visibleOnRowHover:!0})]})]})}else{var l,u;r=(0,J.jsxs)("span",{className:K("name-title",{level:"1"}),children:[null===(l=i.partition)||void 0===l?void 0:l.partition_id,(0,J.jsx)(h.A,{view:"flat-secondary",text:null===(u=i.partition)||void 0===u?void 0:u.partition_id,inlineMargins:!0,visibleOnRowHover:!0})]})}return(0,J.jsx)("div",{className:K("name"),children:r})}},{name:"Partition state",render:function(e){var t,n=e.row;return"partition"in n?null===(t=n.partition)||void 0===t?void 0:t.state:p.A.Number(n.$value.length)},width:120},{name:"Job Id",render:function(e){var t,n,r=e.row;return"partition"in r?(0,J.jsxs)(J.Fragment,{children:[null===(t=r.partition)||void 0===t?void 0:t.current_job_id," ",(0,J.jsx)(h.A,{view:"flat-secondary",text:null===(n=r.partition)||void 0===n?void 0:n.current_job_id,inlineMargins:!0,visibleOnRowHover:!0})]}):p.A.Number(r.$attributes.job_count)},width:400},n?{name:"Worker address",render:function(e){var t,n,r=e.row;return"job"in r?(0,J.jsxs)(J.Fragment,{children:[null===(t=r.job)||void 0===t?void 0:t.worker_address,(0,J.jsx)(h.A,{view:"flat-secondary",text:null===(n=r.job)||void 0===n?void 0:n.worker_address,inlineMargins:!0,visibleOnRowHover:!0})]}):p.A.Number(r.$attributes.worker_count)},width:400}:{name:"Computation",render:function(e){var t,n=e.row;return"partition"in n?null===(t=n.partition)||void 0===t?void 0:t.computation_id:p.A.Number(n.$attributes.partition_count)},width:400},{name:"actions",header:null,render:function(e){var t=e.row;return(0,J.jsx)(z.A,{className:K("show-attributes"),title:"Details",attributes:t,withTooltip:!1})},width:50}];return r}),[e]);return n}(n),f=r.useCallback((function(){a(function(e){return function(t){return t(R.Cp.onRequest({pipeline_path:e})),b.QA.getFlowView({parameters:(0,D.A)({pipeline_path:e},{annotate_with_types:!0}),cancellation:T.removeAllAndSave}).then((function(e){t(R.Cp.onSuccess({data:e}))}),(function(e){(0,y.m)(e)||t(R.Cp.onError({error:e}))}))}}(t))}),[t,a]);return(0,g.Tt)(f),c?(0,J.jsxs)("div",{className:K(),children:[Boolean(s)&&(0,J.jsx)(X.z,{error:s}),(0,J.jsx)(E.Ay,{settings:E.ks,columns:d,data:u,useThemeYT:!0})]}):null}var ee=n(13322),te=n(53775),ne=n(28407),re=n(9736),ie=n(22977),ae=function(e){return e.flow.staticSpec.data},oe=function(e){return e.flow.staticSpec.pipeline_path},se=function(e){return e.flow.staticSpec.error},le=function(e){var t=e.flow.staticSpec,n=t.loading;return!t.loaded&&n},ue=function(e){return e.flow.dynamicSpec.data},ce=function(e){return e.flow.dynamicSpec.pipeline_path},de=function(e){var t=e.flow.dynamicSpec,n=t.loading;return!t.loaded&&n},he=new y.A;function pe(e){return function(t){return t(ie.pX.onRequest({pipeline_path:e})),b.QA.getPipelineSpec({parameters:{pipeline_path:e},cancellation:he.removeAllAndSave}).then((function(e){t(ie.pX.onSuccess({data:e}))}),(function(e){(0,y.m)(e)||t(ie.pX.onError({error:e}))}))}}function fe(e){return function(t){return t(ie.Ep.onRequest({pipeline_path:e})),b.QA.getPipelineDynamicSpec({parameters:{pipeline_path:e},cancellation:he.removeAllAndSave}).then((function(e){t(ie.Ep.onSuccess({data:e}))}),(function(e){(0,y.m)(e)||t(ie.Ep.onError({error:e}))}))}}var me=n(4386),ve=n(78519),ge=n(20361),xe=n(54736),be=n(84549),ye=n(88358),we=n(88923),je=(0,a.A)("yt-pipeline-spec");function Ae(e){var t=e.path,n=e.data,a=e.error,o=e.name,s=e.onSave,u=r.useState(!1),c=(0,re.A)(u,2),d=c[0],h=c[1],p=(0,i.d4)(me.eg);return(0,J.jsxs)(r.Fragment,{children:[Boolean(a)&&(0,J.jsx)(xe.z,{error:a}),(0,J.jsx)(ve.A,{value:n,settings:p,virtualized:!0,folding:!0,extraTools:(0,J.jsxs)(r.Fragment,{children:[(0,J.jsx)(ye.O,{value:n,settings:p,name:"pipeline_spec_".concat((0,we.M)(t))}),(0,J.jsxs)(l.$,{view:"outlined",onClick:function(){return h(!0)},children:[(0,J.jsx)(f.A,{awesome:"pencil"}),"Edit ",o]})]})}),(0,J.jsx)(_e,{path:t,name:o,visible:d,onSpecApply:function(e){return s((0,D.A)((0,D.A)({},n),{},{spec:e}))},onClose:function(){return h(!1)},spec:null==n?void 0:n.spec,settings:p})]})}function _e(e){var t=e.path,n=e.visible,i=e.spec,a=e.onClose,o=e.onSpecApply,s=e.name,l=e.settings,u=r.useState(),c=(0,re.A)(u,2),d=c[0],h=c[1],p=r.useMemo((function(){return{value:JSON.stringify(i,null,4)}}),[i]);return n&&(0,J.jsx)(ge.yZ,{visible:!0,size:"l",onClose:a,initialValues:{text:p,path:t},headerProps:{title:"Edit ".concat(s)},onAdd:function(){var e=(0,ne.A)((0,te.A)().mark((function e(t){var n;return(0,te.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h(void 0),!(n=t.getState().values.text).value){e.next=15;break}return e.prev=3,e.next=6,o(JSON.parse(n.value));case 6:return e.abrupt("return",e.sent);case 9:return e.prev=9,e.t0=e.catch(3),h(e.t0),e.abrupt("return",Promise.reject(e.t0));case 13:e.next=16;break;case 15:return e.abrupt("return",Promise.resolve());case 16:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t){return e.apply(this,arguments)}}(),fields:[{caption:"Pipeline path",name:"path",type:"plain"},{name:"text",caption:"Specification",type:"json",fullWidth:!0,extras:{className:je("editor"),initialShowPreview:!1,unipikaSettings:l}}].concat((0,ee.A)((0,ge.Y)([d])))})}function ke(e){var t=e.pipeline_path,n=(0,x._)(),a=(0,i.d4)(ae),o=(0,i.d4)(se),s=(0,i.d4)(le),l=r.useCallback((function(){n(pe(t))}),[n,t]);(0,g.Tt)(l);var u=r.useCallback((function(e){return n(function(e){var t=e.data,n=e.path;return function(e,r){return b.QA.setPipelineSpec({pipeline_path:n,expected_version:null==t?void 0:t.version},null==t?void 0:t.spec).then((function(){var t=oe(r());t&&t===n&&e(pe(n))}))}}({path:t,data:e}))}),[t,n]);return s?(0,J.jsx)(be.A,{}):(0,J.jsx)(Ae,{path:t,data:a,error:o,name:"static specification",onSave:u})}function Me(e){var t=e.pipeline_path,n=(0,x._)(),a=(0,i.d4)(ue),o=(0,i.d4)(se),s=(0,i.d4)(de),l=r.useCallback((function(){n(fe(t))}),[n,t]);(0,g.Tt)(l);var u=r.useCallback((function(e){return n(function(e){var t=e.data,n=e.path;return function(e,r){return b.QA.setPipelineDynamicSpec({pipeline_path:n,expected_version:null==t?void 0:t.version},null==t?void 0:t.spec).then((function(){var t=ce(r());n===t&&e(fe(n))}))}}({path:t,data:e}))}),[t,n]);return s?(0,J.jsx)(be.A,{}):(0,J.jsx)(Ae,{path:t,data:a,error:o,name:"dynamic specification",onSave:u})}var Ne=n(90636),Se=n.n(Ne),Ie=n(44083);const Be=function(e){return(0,J.jsx)("svg",(0,D.A)((0,D.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,J.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 13.5h6a1.5 1.5 0 0 0 1.5-1.5V7.243a1.5 1.5 0 0 0-.44-1.061L8.819 2.939a1.5 1.5 0 0 0-1.06-.439H5A1.5 1.5 0 0 0 3.5 4v8A1.5 1.5 0 0 0 5 13.5m9-6.257a3 3 0 0 0-.879-2.122L9.88 1.88A3 3 0 0 0 7.757 1H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3zM8.72 10.53a.75.75 0 0 1 0-1.06l.97-.97-.97-.97a.75.75 0 0 1 1.06-1.06l1.5 1.5a.75.75 0 0 1 0 1.06l-1.5 1.5a.75.75 0 0 1-1.06 0m-1.44-3a.75.75 0 0 0-1.06-1.06l-1.5 1.5a.75.75 0 0 0 0 1.06l1.5 1.5a.75.75 0 1 0 1.06-1.06l-.97-.97z",clipRule:"evenodd"})}))},Pe=function(e){return(0,J.jsx)("svg",(0,D.A)((0,D.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,J.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.3 2 3.9.5 2 2v13.5l1.5-.776L4.9 14l2.4 1.5L9.7 14l2.4 1.5L14 14V.5l-1.5.776L11.1 2 8.7.5zm2.4.269L7.095 3.272l-.795.497-.795-.497-1.504-.94-.501.395v10.308l.71-.367.76-.393.725.453L7.3 13.731l1.605-1.003.795-.497.795.497 1.504.94.501-.395V2.965l-.71.367-.76.393-.725-.453zM5 6.5a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 5 6.5m.75 2.25a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})}))};var Ce=n(6762),ze=n(60192),Ee=n(43739),Xe=n(53263),Ye=n(11970),De=n(4617),Re=n(32235),Te=n(59864),He=n(56796),$e=(0,a.A)("yt-flow-graph-renderer"),Fe={warning:"warning",alert:"warning",error:"danger",fatal:"danger",maximum:"danger"};function Oe(e){var t=e.data;return t?(0,J.jsx)(o.s,{shrink:0,children:(0,J.jsx)(Re.I,{className:$e("icon"),data:t})}):null}function Le(e){var t=e.text,n=e.children;return(0,J.jsxs)(u.E,{variant:"inherit",style:{lineHeight:"17px"},ellipsis:!0,children:[t,n]})}function qe(e){var t=e.text;return(0,J.jsx)(u.E,{variant:"caption-2",color:"secondary",ellipsis:!0,children:t})}function Ge(e){var t=e.data,n=r.useState(!1),i=(0,re.A)(n,2),a=i[0],o=i[1],s=r.useMemo((function(){return null==t?void 0:t.reduce((function(e,t){var n=t.level,r=Fe[n];return"danger"===r||"warning"===r?r:e}),void 0)}),[t]);return null!=t&&t.length?(0,J.jsxs)("div",{className:$e("messages"),children:[(0,J.jsxs)(He.S,{color:s,onClick:function(){return o(!0)},children:["Messages (",t.length,")"]}),a&&(0,J.jsx)(Ve,{data:t,onClose:function(){return o(!1)}})]}):null}function Ve(e){var t=e.data,n=e.onClose;return(0,J.jsxs)(Te.l,{open:!0,onClose:n,children:[(0,J.jsx)(Te.l.Header,{caption:"Messages"}),(0,J.jsx)(Te.l.Body,{className:$e("messages-body"),children:null==t?void 0:t.map((function(e,t){return(0,J.jsx)(Ue,{item:e},t)}))})]})}function Ue(e){var t=e.item,n=t.level,r=t.yson,i=t.error,a=Fe[n];return(0,J.jsx)("div",{className:$e("message",{theme:a}),children:i||r?(0,J.jsx)(We,{item:t,errorType:"warning"===a?"alert":void 0}):t.text})}function We(e){var t=e.item,n=e.errorType,i=r.useState(!1),a=(0,re.A)(i,2),s=a[0],l=a[1],u=function(){return l(!s)},c=t.yson,d=t.error,h=t.text;return(0,J.jsxs)(o.s,{gap:1,alignItems:"baseline",children:[(0,J.jsx)(Y.L,{expanded:s,toggleExpanded:u}),(0,J.jsxs)("div",{children:[(0,J.jsx)("span",{onClick:u,style:{cursor:"pointer"},children:null!=h?h:p.A.NO_VALUE}),s&&(0,J.jsxs)(r.Fragment,{children:[Boolean(c)&&(0,J.jsx)(ve.A,{value:c}),Boolean(d)&&(0,J.jsx)(xe.z,{error:d,type:n})]})]})]})}function Qe(e){var t=e.items,n=e.className;return(0,J.jsx)(o.s,{className:n,gap:2,children:t.map((function(e,n){var r=e.label,i=e.value;return(0,J.jsxs)(o.s,{grow:n<t.length-1?1:0,direction:"column",shrink:1,style:{overflow:"hidden"},children:[(0,J.jsx)(qe,{text:r}),(0,J.jsx)(Le,{text:i})]},n)}))})}var Je=["cpu_usage_current","memory_usage_current"],Ke=(0,a.A)("yt-flow-computation");function Ze(e){var t,n,r,i,a,s=e.detailed,l=e.item,u=e.className,c=null!==(t=null===(n=l.meta)||void 0===n?void 0:n.metrics)&&void 0!==t?t:{},d=c.cpu_usage_current,h=c.memory_usage_current;return(0,J.jsxs)("div",{className:Ke(null,u),children:[(0,J.jsxs)(o.s,{className:Ke("name"),gap:4,alignItems:"baseline",children:[(0,J.jsx)(o.s,{grow:1,overflow:"hidden",children:(0,J.jsx)(Le,{text:l.name})}),(0,J.jsx)(o.s,{grow:1,overflow:"hidden",children:(0,J.jsx)(qe,{text:null===(r=l.meta)||void 0===r?void 0:r.group_by_schema_str})})]}),(0,J.jsx)(Qe,{className:Ke("meta"),items:[{label:"CPU Usage",value:p.A.Number(d,{digits:d>1?1:2})},{label:"RAM Usage",value:p.A.Bytes(h)},{label:"Epoch, pcs/s",value:p.A.Number(null===(i=l.meta)||void 0===i?void 0:i.epoch_per_second)}]}),(0,J.jsx)(tt,{stats:null===(a=l.meta)||void 0===a?void 0:a.partitions_stats}),s&&(0,J.jsx)(it,{item:l}),s&&(0,J.jsx)(Ge,{data:l.meta.messages})]})}var et={completed:"info",transient:"warning",executing:"success",interrupted:"default"};function tt(e){var t=e.stats,n=null!=t?t:{},i=n.count,a=void 0===i?NaN:i,s=n.count_by_state,l=r.useMemo((function(){var e=[],t=Object.keys(null!=s?s:{}).map((function(t){var n,r,i=t,o=null!==(n=null==s?void 0:s[i])&&void 0!==n?n:NaN,l=null!==(r=et[i])&&void 0!==r?r:"default";return e.push({value:o,type:i}),{value:o/a*100,theme:l}}));return{stack:(0,De.ok)(t),history:e}}),[t,a]),c=l.stack,d=l.history;return(0,J.jsxs)("div",{children:[(0,J.jsx)(Ye.k,{className:Ke("progress"),stack:c,size:"xs"}),(0,J.jsxs)(o.s,{style:{paddingTop:"8px"},alignItems:"baseline",gap:2,children:[(0,J.jsxs)(Le,{children:[p.A.Number(a)," ",(0,J.jsx)(u.E,{color:"secondary",variant:"inherit",children:"partitions"})]}),(0,J.jsx)(nt,{data:d})]})]})}function nt(e){var t=e.data;return(0,J.jsx)(o.s,{alignItems:"baseline",grow:1,gap:2,justifyContent:"end",children:t.map((function(e,t){var n=e.value,r=e.type;return(0,J.jsx)(rt,{value:n,type:r},t)}))})}function rt(e){var t,n=e.value,r=e.type;return n?(0,J.jsxs)(o.s,{alignItems:"baseline",children:[(0,J.jsx)("div",{children:(0,J.jsx)("div",{className:Ke("progress-history-item-color",{theme:null!==(t=et[r])&&void 0!==t?t:"default"})})}),(0,J.jsx)(Le,{children:n})]}):null}function it(e){var t,n,r=null!==(t=null===(n=e.item.meta)||void 0===n?void 0:n.metrics)&&void 0!==t?t:{},i=(r.cpu_usage_current,r.memory_usage_current,(0,H.A)(r,Je));return(0,J.jsx)(m.Ay,{className:Ke("details"),items:[Object.entries(i).map((function(e){var t=(0,re.A)(e,2),n=t[0],r=t[1],i=n.startsWith("memory_")?p.A.Bytes:p.A.Number;return{key:n,value:i(r,{digits:2})}}))]})}function at(e){var t,n,r,i,a=e.item,s=e.detailed,l=e.className;return(0,J.jsxs)("div",{className:l,children:[(0,J.jsxs)(o.s,{gap:1,alignItems:"center",style:{paddingBottom:"10px"},overflow:"hidden",children:[(0,J.jsx)(Oe,{data:a.icon}),(0,J.jsx)(Le,{text:a.name})]}),(0,J.jsx)(Qe,{items:[{label:"Messages",value:(0,J.jsxs)(o.s,{direction:"column",children:[(0,J.jsxs)(u.E,{variant:"inherit",whiteSpace:"nowrap",ellipsis:!0,children:[p.A.Number(null===(t=a.meta)||void 0===t?void 0:t.messages_per_second)," pcs/s"]}),(0,J.jsx)(u.E,{variant:"inherit",whiteSpace:"nowrap",ellipsis:!0,children:p.A.Bytes(null===(n=a.meta)||void 0===n?void 0:n.bytes_per_second,{digits:s?2:0})+"/s"})]})},{label:"Inflight rows",value:(0,J.jsxs)(o.s,{direction:"column",style:{overflow:"hidden"},children:[(0,J.jsx)(u.E,{variant:"inherit",whiteSpace:"nowrap",ellipsis:!0,children:p.A.Number(null===(r=a.meta)||void 0===r?void 0:r.inflight_rows)}),(0,J.jsx)(u.E,{variant:"inherit",whiteSpace:"nowrap",ellipsis:!0,children:p.A.Bytes(null===(i=a.meta)||void 0===i?void 0:i.inflight_bytes,{digits:s?2:0})})]})}]}),s&&(0,J.jsx)(Ge,{data:a.meta.messages})]})}var ot=n(29121),st=n(12937),lt=n(66134),ut=n(10785);const ct=function(e){return(0,J.jsx)("svg",(0,D.A)((0,D.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,J.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1.25a.75.75 0 0 0-1.5 0V2.5a3 3 0 0 0-3 3H1.25a.75.75 0 0 0 0 1.5H2.5v2H1.25a.75.75 0 0 0 0 1.5H2.5a3 3 0 0 0 3 3v1.25a.75.75 0 0 0 1.5 0V13.5h2v1.25a.75.75 0 0 0 1.5 0V13.5a3 3 0 0 0 3-3h1.25a.75.75 0 0 0 0-1.5H13.5V7h1.25a.75.75 0 0 0 0-1.5H13.5a3 3 0 0 0-3-3V1.25a.75.75 0 0 0-1.5 0V2.5H7zM10.5 4h-5A1.5 1.5 0 0 0 4 5.5v5A1.5 1.5 0 0 0 5.5 12h5a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 10.5 4m0 2.25a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 0 .75.75h3.5a.75.75 0 0 0 .75-.75zM7 7h2v2H7z",clipRule:"evenodd"})}))};var dt=function(e){function t(){var e;(0,ot.A)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=(0,lt.A)(this,t,[].concat(r))).PADDING=15,e.renderAnchor=function(){return Ce.Cc.create()},e}return(0,ut.A)(t,e),(0,st.A)(t,[{key:"getComputationFontSize",value:function(){return"header"}},{key:"renderBlock",value:function(e){this.drawBorder({backgroundTheme:this.state.backgroundTheme}),"minimalistic"===e?this.drawCenteredIcon({src:ct,size:50}):(this.renderHeader(),this.renderMeta())}},{key:"renderHeader",value:function(){var e,t=null!==(e=this.state.meta.partitions_stats)&&void 0!==e?e:{},n=t.count,r=t.count_by_state,i=(void 0===r?{}:r).executing,a=this.drawInnerText({yPos:this.PADDING,xPos:this.PADDING,text:this.state.name,fontSize:this.getComputationFontSize(),padding:this.PADDING}),o=[];Number.isFinite(n)&&Number.isFinite(i)&&(o.push(String(i)),n!==i&&o.push(String(n)),this.drawInnerText({yPos:this.PADDING,xPos:2*this.PADDING+a,text:o.join("/"),color:"secondary",padding:this.PADDING,fontSize:this.getComputationFontSize(),align:"right"}))}},{key:"renderMeta",value:function(){var e=this.state,t=e.height,n=e.width,r=this.state.meta.metrics,i=r.cpu_usage_current,a=r.memory_usage_current,o=Math.round((n-3*this.PADDING)/2),s=Math.round(t/2.1);this.drawMetaItem({xPos:this.PADDING,yPos:s,maxWidth:o,label:"CPU",value:p.A.Number(i,{digits:1}),fontSize:this.getComputationFontSize(),padding:this.PADDING});var l=p.A.Bytes(a,{digits:1});this.drawMetaItem({xPos:1.5*this.PADDING+o,yPos:s,maxWidth:o,label:"RAM",value:l,fontSize:this.getComputationFontSize(),padding:this.PADDING})}},{key:"getAnchorPosition",value:function(e){var t=e.index,n=void 0===t?0:t,r=this.state.anchors.length,i=void 0===r?0:r,a=this.getGeometry(),o=a.width;return{y:a.height,x:o/(i+1)*(n+1)}}}])}(Ce.vf),ht=function(e){function t(){var e;(0,ot.A)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=(0,lt.A)(this,t,[].concat(r))).renderAnchor=function(){return Ce.Cc.create()},e}return(0,ut.A)(t,e),(0,st.A)(t,[{key:"renderBlock",value:function(e){this.drawBorder({backgroundTheme:this.state.backgroundTheme}),"minimalistic"===e?this.drawCenteredIcon({src:this.state.icon}):this.renderHeader()}},{key:"renderHeader",value:function(){this.drawInnerIcon({src:this.state.icon,xPos:10,yPos:10,w:24,h:24}),this.drawInnerText({yPos:14,xPos:36,text:this.state.name,fontSize:"header",padding:10,oneLine:!0}),this.drawInnerText({yPos:49,xPos:36,text:p.A.Bytes(this.state.meta.bytes_per_second,{digits:0})+"/s",align:"right",fontSize:"header"})}},{key:"getAnchorPosition",value:function(e){var t=e.index,n=void 0===t?0:t,r=this.state.anchors.length,i=void 0===r?0:r;return{y:0,x:this.getGeometry().width/(i+1)*(n+1)}}}])}(Ce.vf),pt=n(68175),ft=n(12680),mt=50,vt=function(){return(0,st.A)((function e(t){var n=t.id,r=t.computation,i=t.streamSize,a=t.computationSize,o=t.backgroundTheme;(0,ot.A)(this,e),this.meta=void 0,this.id=void 0,this.name=void 0,this.is="computation-group",this.x=0,this.y=0,this.width=0,this.height=0,this.selected=!1,this.anchors=[],this.backgroundTheme=void 0,this.sizes=void 0,this.id=n,this.meta=r,this.name=r.id,this.backgroundTheme=o,this.sizes={stream:i,computation:a},Object.assign(this,this.recalcSize())}),[{key:"recalcSize",value:function(){var e,t,n,r=this.sizes,i=r.stream,a=r.computation,o=a.width+100,s=a.height+100,l=this.meta,u=l.source_streams,c=l.timer_streams,d=l.output_streams,h=Math.max(0,(null!==(e=null==u?void 0:u.length)&&void 0!==e?e:0)*(mt+i.height),(null!==(t=null==c?void 0:c.length)&&void 0!==t?t:0)*(mt+i.height),(null!==(n=null==d?void 0:d.length)&&void 0!==n?n:0)*(mt+i.height)-a.height),p=0;return(null==u?void 0:u.length)>0&&(p+=i.width+mt),(null==d?void 0:d.length)>0&&(p+=i.width+mt),{width:o+p,height:s+h}}},{key:"updateBlockPosition",value:function(e,t){if(t.groupId!==this.id)return(0,ft.N1)({additional:{id:this.id,"block.id":t.id,"block.groupId":t.groupId}},new Error("Unexpected behaviour: block.groupId is mismatched with this.id")),t;var n=this.sizes.stream,r=n.width,i=n.height,a=0;if("computation"!==e){var o,s=e;if(-1===(a=null===(o=this.meta[s])||void 0===o?void 0:o.indexOf(t.id)))return(0,ft.N1)({additional:(0,pt.A)({type:e,id:this.id,"block.id":t.id},"meta.".concat(e),this.meta[s].join(","))},new Error("Unexpected behaviour: block.id = ".concat(t.id," should be found in meta.").concat(e))),t}var l=this.sizes,u=l.computation,c=l.stream,d=a*(r+mt),h=a*(i+mt);if(t.y="output_streams"===e||"computation"===e?mt+h:100+u.height+h,"source_streams"===e)t.x=mt;else if("timer_streams"===e){var p,f=(null===(p=this.meta.source_streams)||void 0===p?void 0:p.length)>0;t.x=f?100+r+d:mt}else if("output_streams"===e){var m,v=(null===(m=this.meta.source_streams)||void 0===m?void 0:m.length)>0;t.x=100+u.width,v&&(t.x+=mt+r),t.y+=(u.height-c.height)/2}else if("computation"===e){var g,x=(null===(g=this.meta.source_streams)||void 0===g?void 0:g.length)>0;t.x=mt,x&&(t.x+=mt+r)}return(0,D.A)((0,D.A)({},t),{},{x:t.x+this.x,y:t.y+this.y})}}])}(),gt=n(1609),xt=function(e){function t(){var e;(0,ot.A)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=(0,lt.A)(this,t,[].concat(r))).PADDING=50,e}return(0,ut.A)(t,e),(0,st.A)(t,[{key:"getComputationFontSize",value:function(){return"header2"}},{key:"renderBlock",value:function(){(0,gt.A)(t,"renderBlock",this,3)(["schematic"])}}])}(dt);function bt(e){var t=e.className,n=e.item,r=e.detailed;return(0,J.jsxs)("div",{className:t,children:[(0,J.jsxs)(o.s,{gap:1,alignItems:"center",style:{paddingBottom:"10px"},overflow:"hidden",children:[(0,J.jsx)(Oe,{data:n.icon}),(0,J.jsx)(Le,{text:n.name})]}),(0,J.jsx)(qe,{text:n.meta.description}),r&&(0,J.jsx)(Ge,{data:n.meta.messages})]})}var yt=function(e){function t(){return(0,ot.A)(this,t),(0,lt.A)(this,t,arguments)}return(0,ut.A)(t,e),(0,st.A)(t,[{key:"renderBlock",value:function(e){this.drawBorder({backgroundTheme:this.state.backgroundTheme}),"minimalistic"===e?this.drawCenteredIcon({src:this.state.icon}):this.renderHeader()}},{key:"renderHeader",value:function(){this.drawInnerIcon({src:this.state.icon,xPos:10,yPos:10,w:24,h:24}),this.drawInnerText({yPos:14,xPos:36,text:this.state.name,fontSize:"header",padding:10,oneLine:!0})}}])}(Ce.vf),wt=["item"],jt=(0,a.A)("yt-flow-graph");function At(e){var t=e.yson,n=e.pipeline_path,r=Bt({pipeline_path:n}),i=r.error,a=r.data;return r.isLoading?(0,J.jsx)(be.A,{visible:!0,centered:!0}):i?(0,J.jsx)(X.z,{error:i}):(0,J.jsx)("div",{className:jt(),children:t?(0,J.jsx)(ve.A,{value:a,folding:!0,virtualized:!0}):(0,J.jsx)(_t,{pipeline_path:n})})}function _t(e){var t=e.pipeline_path,n=(0,Ce.WT)(),i=n.scale,a=n.setScale,s=i===Ie.TW.Minimalistic,l=(0,Ce.UK)({computation:dt,stream:ht,"computation-group":xt,sink:yt},{useDefaultConnection:!s}),u=function(e){var t=Bt(e).data,n=r.useMemo((function(){var e=null!=t?t:{},n=e.computations,r=void 0===n?{}:n,i=e.streams,a=void 0===i?{}:i,o=e.sinks,s=void 0===o?{}:o,l=e.sources,u=void 0===l?{}:l,c={data:{blocks:[],connections:[]},groups:{blocks:[],connections:[]},groupById:new Map},d=new Map;function h(e,t,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).anchorType,i={sourceBlockId:t,targetBlockId:n};e.push(i),r&&function(e,t,n,r){var i={id:"anchor:out:".concat(t.id,":").concat(n.id,":"),blockId:t.id,type:e},a={id:"anchor:in:".concat(t.id,":").concat(n.id,":"),blockId:n.id,type:e};t.anchors.push((0,D.A)((0,D.A)({},i),{},{index:t.anchors.length})),n.anchors.push((0,D.A)((0,D.A)({},a),{},{index:n.anchors.length})),r.targetAnchorId=a.id,r.sourceAnchorId=i.id}(r,d.get(t),d.get(n),i)}Object.values(a).forEach((function(e){var t=Pt("stream",e,(0,D.A)({name:e.name},St));d.set(t.id,t),c.data.blocks.push(t)})),Object.entries(r).forEach((function(e){var t=(0,re.A)(e,2),n=t[0],r=t[1],i="\n\n__group(".concat(r.id,")__\n\n"),a=new vt({id:i,computation:r,streamSize:St,computationSize:Nt,backgroundTheme:Fe[r.status]});c.groups.blocks.push(a),c.groupById.set(i,a);var o=Pt("computation",r,(0,D.A)({name:n,groupId:i,backgroundTheme:Fe[r.status]},Nt));function s(e,t){var n;(null!==(n=r[e])&&void 0!==n?n:[]).forEach((function(n){"input_streams"===e||"source_streams"===e?h(c.data.connections,n,r.id):"output_streams"===e?h(c.data.connections,r.id,n):"timer_streams"===e&&(h(c.data.connections,r.id,n,{anchorType:e}),h(c.data.connections,n,r.id,{anchorType:e})),null!=t&&t.groupId&&Object.assign(d.get(n),(0,D.A)((0,D.A)({stream_type:e},t),Mt[e]))}))}d.set(o.id,o),c.data.blocks.push(o),s("input_streams"),s("output_streams",{groupId:i}),s("source_streams",{groupId:i}),s("timer_streams",{groupId:i})})),Object.entries(s).forEach((function(e){var t=(0,re.A)(e,2),n=(t[0],t[1]),r=Pt("sink",n,(0,D.A)((0,D.A)({},It),{},{icon:Pe}));h(c.data.connections,n.stream_id,n.id),d.set(r.id,r),c.data.blocks.push(r),c.groups.blocks.push(r)})),Object.entries(u).forEach((function(e){var t=(0,re.A)(e,2),n=(t[0],t[1]),r=Pt("sink",n,(0,D.A)((0,D.A)({},It),{},{icon:Be}));h(c.data.connections,n.id,n.stream_id),d.set(n.id,r),c.data.blocks.push(r),c.groups.blocks.push(r)}));var p=new Set;return c.data.connections.forEach((function(e){var t,n,r=e.sourceBlockId,i=e.targetBlockId,a=d.get(r),o=d.get(i);if(a.groupId&&o.groupId?a.groupId!==o.groupId&&(t=a.groupId,n=o.groupId):a.groupId?(t=a.groupId,n=o.id):o.groupId&&(t=a.id,n=o.groupId),t&&n){var s="_".concat(t,"->").concat(n,"_");p.has(s)||(p.add(s),h(c.groups.connections,t,n))}})),c}),[t]),i=(0,Ce.A$)(n.groups),a=r.useMemo((function(){var e=i.data,t=e.blocks,r=e.connections;t.forEach((function(e){var t=e.id,r=e.x,i=e.y,a=n.groupById.get(t);a&&Object.assign(a,{x:r,y:i})}));var a=Se()(t,(function(e){return"computation-group"===e.is})),o=(0,re.A)(a,2),s=(o[0],o[1]);return{data:{blocks:[].concat((0,ee.A)(n.data.blocks.map((function(e){var t=n.groupById.get(e.groupId);return t?"computation"===e.is?t.updateBlockPosition("computation",e):e.stream_type?t.updateBlockPosition(e.stream_type,e):e:e}))),(0,ee.A)(s)),connections:n.data.connections},groups:{blocks:t,connections:r},groupBlocks:t.filter((function(e){return"computation-group"===e.is}))}}),[i.isLoading,i.data,n]);return(0,D.A)((0,D.A)((0,D.A)({isEmpty:!n.data.blocks.length},i),a),{},{messages:null==t?void 0:t.messages})}({pipeline_path:t}),c=u.isEmpty,d=u.isLoading,h=u.data,p=u.groups,f=u.groupBlocks,m=u.messages;return d?(0,J.jsx)(be.A,{visible:!0,centered:!0}):c?(0,J.jsx)(ze.R,{warning:"The graph is empty"}):(0,J.jsxs)("div",{className:jt(),children:[(0,J.jsx)("div",{className:jt("graph-messages"),children:(0,J.jsx)(Ge,{data:m})}),(0,J.jsx)(Ce.i_,(0,D.A)((0,D.A)({className:jt("graph"),setScale:a},l),{},{data:s?p:h,renderBlock:function(e){var t=e.className,n=e.style,r=e.data;return(0,J.jsx)(o.s,{className:jt("item-container",t),style:n,children:kt({item:r})})},renderPopup:function(e){var t=e.data;return(0,J.jsx)("div",{className:jt("item-popup",{type:t.is}),children:kt({item:t,detailed:!0})})},customGroups:f}))]})}function kt(e){var t=e.item,n=(0,H.A)(e,wt);switch(t.is){case"computation":case"computation-group":return(0,J.jsx)(Ze,(0,D.A)({className:jt("item"),item:t},n));case"stream":return(0,J.jsx)(at,(0,D.A)({className:jt("item"),item:t},n));case"sink":return(0,J.jsx)(bt,(0,D.A)({className:jt("item"),item:t},n))}}var Mt={input_streams:{icon:Be},output_streams:{icon:Be},source_streams:{icon:Be},timer_streams:{icon:function(e){return(0,J.jsx)("svg",(0,D.A)((0,D.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,J.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8.75 4.5a.75.75 0 0 0-1.5 0V8a.75.75 0 0 0 .3.6l2 1.5a.75.75 0 1 0 .9-1.2l-1.7-1.275z",clipRule:"evenodd"})}))}}},Nt={width:320,height:130},St={width:240,height:100},It={width:200,height:80};function Bt(e){var t=e.pipeline_path,n=(0,i.d4)(Ee.dB);return(0,Xe.Fs)({cluster:n,parameters:{pipeline_path:t,flow_command:"describe-pipeline"}})}function Pt(e,t,n){return(0,D.A)((0,D.A)({id:t.id,is:e,name:t.id,selected:!1,anchors:[]},n),{},{meta:t,x:0,y:0})}var Ct=(0,a.A)("yt-navigation-flow");function zt(){var e=(0,i.wA)(),t=(0,i.d4)(N),n=r.useMemo((function(){var e,t=null!==(e=P.Ay.getMonitoringComponentForNavigationFlow())&&void 0!==e?e:{},n=t.urlTemplate;return(t.component||n?B.g$:B.g$.filter((function(e){return"monitoring"!==e}))).map((function(e){return{value:e,content:p.A.ReadableField(e)}}))}),[]);return(0,J.jsxs)("div",{className:Ct(),children:[(0,J.jsx)(Yt,{}),(0,J.jsx)(o.s,{className:Ct("toolbar"),children:(0,J.jsx)(s.a,{options:n,value:t,onUpdate:function(t){return e((0,B.nP)(t))}})}),(0,J.jsx)("div",{className:Ct("content",{view:t}),children:(0,J.jsx)(Et,{viewMode:t})})]})}function Et(e){var t=e.viewMode,n=(0,i.d4)(I.Yn);if(!n)return null;switch(t){case"static_spec":return(0,J.jsx)(ke,{pipeline_path:n});case"dynamic_spec":return(0,J.jsx)(Me,{pipeline_path:n});case"monitoring":return(0,J.jsx)(Dt,{});case"workers":case"computations":return(0,J.jsx)(Z,{path:n,viewMode:t});case"graph":case"graph_data":return(0,J.jsx)(At,{pipeline_path:n,yson:"graph_data"===t});default:return(0,J.jsx)(d.z,{header:"Unexpected behaviour",error:new Error("'".concat(t,"' view mode is not implemented"))})}}function Xt(){var e=(0,x._)(),t=(0,i.d4)(I.Yn),n=r.useCallback((function(){return e(k(t))}),[t,e]);(0,g.Tt)(n);var a=r.useMemo((function(){return{onStart:function(){return e(M({pipeline_path:t,state:"start"}))},onStop:function(){return e(M({pipeline_path:t,state:"stop"}))},onPause:function(){return e(M({pipeline_path:t,state:"pause"}))}}}),[e,t]),s=a.onStart,u=a.onStop,c=a.onPause;return(0,J.jsxs)(o.s,{className:Ct("status-toolbar"),alignItems:"center",gap:2,children:[(0,J.jsxs)(l.$,{view:"outlined",onClick:s,children:[(0,J.jsx)(f.A,{awesome:"play-circle"})," Start"]}),(0,J.jsxs)(l.$,{view:"outlined",onClick:c,children:[(0,J.jsx)(f.A,{awesome:"pause-circle"})," Pause"]}),(0,J.jsxs)(l.$,{view:"outlined",onClick:u,children:[(0,J.jsx)(f.A,{awesome:"stop-circle"})," Stop"]})]})}function Yt(){var e=(0,i.d4)(w),t=(0,i.d4)(I.gu).leader_controller_address;return(0,J.jsxs)(r.Fragment,{children:[(0,J.jsxs)(o.s,{className:Ct("state"),alignItems:"center",gap:2,children:[(0,J.jsx)(u.E,{variant:"header-1",children:"Processing catalog "}),(0,J.jsx)(Xt,{})]}),(0,J.jsx)(m.Ay,{items:[[{key:"status",value:(0,J.jsx)(v.A,{label:e})}],[{key:"leader_controller_address",value:(0,J.jsxs)(J.Fragment,{children:[t,(0,J.jsx)(h.A,{view:"flat-secondary",text:t,inlineMargins:!0})]}),className:Ct("meta-item")}]]})]})}function Dt(){var e,t=null!==(e=P.Ay.getMonitoringComponentForNavigationFlow())&&void 0!==e?e:{},n=t.component,r=t.title,a=t.urlTemplate,o=(0,i.d4)(I.gu),s=o.monitoring_cluster,l=o.monitoring_project,u=(0,i.d4)(S.dB);return n?(0,J.jsx)(n,{cluster:u,monitoring_cluster:s,monitoring_project:l,attributes:o}):a?(0,J.jsx)(c.N,{target:"_blank",href:(0,C.j)(a,{ytCluster:u,monitoring_cluster:s,monitoring_project:l}),children:r||"Monitoring"}):null}},39702:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(40319),i=n(64922);const a=function(e){return(0,i.jsx)("svg",(0,r.A)((0,r.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,i.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"})}))}},48495:function(e){e.exports=function(){"use strict";function e(e,r,i,a,o){!function e(n,r,i,a,o){for(;a>i;){if(a-i>600){var s=a-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*c/s+d)),Math.min(a,Math.floor(r+(s-l)*c/s+d)),o)}var h=n[r],p=i,f=a;for(t(n,i,r),o(n[a],h)>0&&t(n,i,a);p<f;){for(t(n,p,f),p++,f--;o(n[p],h)<0;)p++;for(;o(n[f],h)>0;)f--}0===o(n[i],h)?t(n,i,f):t(n,++f,a),f<=r&&(i=f+1),r<=f&&(a=f-1)}}(e,r,i||0,a||e.length-1,o||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:e>t?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function a(e,t){o(e,0,e.children.length,t,e)}function o(e,t,n,r,i){i||(i=f(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var a=t;a<n;a++){var o=e.children[a];s(i,e.leaf?r(o):o)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function h(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function f(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,n,r,i,a){for(var o=[n,r];o.length;)if(!((r=o.pop())-(n=o.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,a),o.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var a=0;a<t.children.length;a++){var o=t.children[a],s=t.leaf?r(o):o;p(e,s)&&(t.leaf?n.push(o):h(e,s)?this._all(o,n):i.push(o))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],a=t.leaf?this.toBBox(i):i;if(p(e,a)){if(t.leaf||h(e,a))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=f([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,a,o=this.data,s=this.toBBox(e),l=[],u=[];o||l.length;){if(o||(o=l.pop(),r=l[l.length-1],n=u.pop(),a=!0),o.leaf){var c=i(e,o.children,t);if(-1!==c)return o.children.splice(c,1),l.push(o),this._condense(l),this}a||o.leaf||!h(o,s)?r?(n++,o=r.children[n],a=!1):o=null:(l.push(o),u.push(n),n=0,r=o,o=o.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,o=n-t+1,s=this._maxEntries;if(o<=s)return a(i=f(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,r-1))),(i=f([])).leaf=!1,i.height=r;var l=Math.ceil(o/s),u=l*Math.ceil(Math.sqrt(s));m(e,t,n,u,this.compareMinX);for(var c=t;c<=n;c+=u){var d=Math.min(c+u-1,n);m(e,c,d,l,this.compareMinY);for(var h=c;h<=d;h+=l){var p=Math.min(h+l-1,d);i.children.push(this._build(e,h,p,r-1))}}return a(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,a=1/0,o=void 0,s=0;s<t.children.length;s++){var l=t.children[s],u=c(l),d=(h=e,p=l,(Math.max(p.maxX,h.maxX)-Math.min(p.minX,h.minX))*(Math.max(p.maxY,h.maxY)-Math.min(p.minY,h.minY))-u);d<a?(a=d,i=u<i?u:i,o=l):d===a&&u<i&&(i=u,o=l)}t=o||t.children[0]}var h,p;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],a=this._chooseSubtree(r,this.data,t,i);for(a.children.push(e),s(a,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=f(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=f([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,a,s,l,u,d,h=1/0,p=1/0,f=t;f<=n-t;f++){var m=o(e,0,f,this.toBBox),v=o(e,f,n,this.toBBox),g=(i=m,a=v,void 0,void 0,void 0,void 0,s=Math.max(i.minX,a.minX),l=Math.max(i.minY,a.minY),u=Math.min(i.maxX,a.maxX),d=Math.min(i.maxY,a.maxY),Math.max(0,u-s)*Math.max(0,d-l)),x=c(m)+c(v);g<h?(h=g,r=f,p=x<p?x:p):g===h&&x<p&&(p=x,r=f)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:u;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,a=o(e,0,t,i),l=o(e,n-t,n,i),u=d(a)+d(l),c=t;c<n-t;c++){var h=e.children[c];s(a,e.leaf?i(h):h),u+=d(a)}for(var p=n-t-1;p>=t;p--){var f=e.children[p];s(l,e.leaf?i(f):f),u+=d(l)}return u},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():a(e[t],this.toBBox)},r}()},53302:(e,t,n)=>{"use strict";n.d(t,{A:()=>l}),n(77810);var r=n(76872),i=n(73822),a=n(88787),o=n(64922),s=(0,r.A)("status-label");function l(e){var t=e.className,n=e.label,r=e.renderPlaque,l=e.text,u=e.state,c=e.iconState,d=function(e){var t;return null!==(t={materializing:"preparing",initializing:"preparing",preparing:"preparing",pending:"preparing",starting:"preparing",running:"running",completing:"running",failing:"running",aborting:"running",reviving:"running",suspended:"suspended",failed:"failed",completed:"completed",aborted:"aborted",Unknown:"unknown",Stopped:"suspended",Paused:"suspended",Working:"running",Draining:"running",Pausing:"running",Completed:"completed"}[e])&&void 0!==t?t:"unknown"}(n),h=function(e){return{preparing:"clock",running:"play-circle",suspended:"pause-circle",failed:"times-circle",completed:"check-circle",aborted:"times-circle",unknown:"question-circle"}[e]}(null!=c?c:d),p={state:null!=u?u:d};return n||l||u?(0,o.jsxs)("span",{className:s(null,r?s("plaque",p,t):s(p,t)),children:[(0,o.jsx)(a.A,{awesome:h}),(0,o.jsx)("span",{children:null!=l?l:i.A.format.ReadableField(n)})]}):(0,o.jsx)("span",{})}},60150:(e,t,n)=>{"use strict";n.d(t,{kd:()=>i,LB:()=>a});var r=n(34108);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return getComputedStyle(t).getPropertyValue(e)}function a(e,t){var n;return function(e,t){if(e||null==t||!t.allowUndefined)return(0,r.Mj)(e).toHex()}(i(e,null!==(n=document.body)&&void 0!==n?n:null==t?void 0:t.container),t)}(0,r.X$)([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var i in n)r[n[i]]=i;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var i,o,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),u=1/0,c="black";if(!a.length)for(var d in n)a[d]=new e(n[d]).toRgb();for(var h in n){var p=(i=l,o=a[h],Math.pow(i.r-o.r,2)+Math.pow(i.g-o.g,2)+Math.pow(i.b-o.b,2));p<u&&(u=p,c=h)}return c}},t.string.push([function(t){var r=t.toLowerCase(),i="transparent"===r?"#0000":n[r];return i?new e(i).toRgb():null},"name"])}])}}]);
|
|
2
|
+
//# sourceMappingURL=navigation-flow.1d83e216.chunk.js.map
|