diff --git a/mage_ai/server/frontend_dist/404.html b/mage_ai/server/frontend_dist/404.html index 1b3e3f449e18..ab926e3a65fd 100644 --- a/mage_ai/server/frontend_dist/404.html +++ b/mage_ai/server/frontend_dist/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/404.html.html b/mage_ai/server/frontend_dist/404.html.html index 1b3e3f449e18..ab926e3a65fd 100644 --- a/mage_ai/server/frontend_dist/404.html.html +++ b/mage_ai/server/frontend_dist/404.html.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/ErmV1Ii-luEqAYMZkbkmO/_buildManifest.js b/mage_ai/server/frontend_dist/_next/static/ErmV1Ii-luEqAYMZkbkmO/_buildManifest.js new file mode 100644 index 000000000000..e6c8f7a1f541 --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/ErmV1Ii-luEqAYMZkbkmO/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,e,i,n,p,c,t,a,l,u,f,r,b,k,g,d,h,j,o,_,m,E,w,O,A,B,L,D,T){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/datasets",destination:o},{source:"/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_",destination:o}],fallback:[]},"/":["static/chunks/pages/index-e34a68d2f6fe16f2.js"],"/_error":["static/chunks/pages/_error-235304e5badb19eb.js"],"/manage":[s,n,_,e,i,"static/chunks/pages/manage-11d6cbf2313f0689.js"],"/pipeline-runs":[s,n,e,i,k,"static/chunks/pages/pipeline-runs-c226d1e215d66129.js"],"/pipelines":[s,n,e,i,"static/chunks/pages/pipelines-0e88f39d4980fc10.js"],"/pipelines/[pipeline]":["static/chunks/pages/pipelines/[pipeline]-ca9457e1a6bced4b.js"],"/pipelines/[pipeline]/backfills":[s,n,e,i,p,c,"static/chunks/pages/pipelines/[pipeline]/backfills-26974ca695994804.js"],"/pipelines/[pipeline]/backfills/[...slug]":[s,n,t,a,u,r,g,j,e,i,p,c,l,f,b,k,"static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-123556bdfe2e194b.js"],"/pipelines/[pipeline]/edit":[m,s,n,t,a,u,r,g,d,h,E,w,O,_,"static/chunks/4538-8a3c3e47be976ede.js",e,i,p,l,f,b,A,B,L,"static/chunks/pages/pipelines/[pipeline]/edit-1de289b75e9c5bf1.js"],"/pipelines/[pipeline]/logs":[s,n,a,d,j,e,i,p,c,l,"static/chunks/pages/pipelines/[pipeline]/logs-72011b08ef047531.js"],"/pipelines/[pipeline]/monitors":[s,n,t,h,e,i,p,c,D,"static/chunks/pages/pipelines/[pipeline]/monitors-204daac985c03b62.js"],"/pipelines/[pipeline]/monitors/block-runs":[s,n,t,h,e,i,p,c,D,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-e0eb0098dcbf27ac.js"],"/pipelines/[pipeline]/monitors/block-runtime":[m,s,n,t,h,"static/chunks/9832-c8b8970bb522f302.js",e,i,p,c,L,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-3b17a6d28cdde471.js"],"/pipelines/[pipeline]/runs":[s,n,a,u,g,e,i,p,c,l,f,k,"static/chunks/pages/pipelines/[pipeline]/runs-2d41695001370abc.js"],"/pipelines/[pipeline]/runs/[run]":[s,n,t,a,u,r,E,e,i,p,c,l,f,b,"static/chunks/pages/pipelines/[pipeline]/runs/[run]-44533e244974a422.js"],"/pipelines/[pipeline]/syncs":[s,n,d,e,i,p,c,"static/chunks/pages/pipelines/[pipeline]/syncs-c31fec2be1160dbe.js"],"/pipelines/[pipeline]/triggers":[s,n,t,a,u,r,e,i,p,c,l,f,b,"static/chunks/pages/pipelines/[pipeline]/triggers-181343d8eb894426.js"],"/pipelines/[pipeline]/triggers/[...slug]":[s,n,t,a,u,r,g,j,e,i,p,c,l,f,b,k,A,"static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a60003fce7dfb93.js"],"/settings":["static/chunks/pages/settings-d594a66a568306da.js"],"/settings/account/profile":[s,e,i,T,"static/chunks/pages/settings/account/profile-f1844beb127841f3.js"],"/settings/workspace/preferences":[s,e,i,"static/chunks/pages/settings/workspace/preferences-cd6121ffe82e3834.js"],"/settings/workspace/sync_data":[s,e,i,"static/chunks/pages/settings/workspace/sync_data-64e03c3a285d301e.js"],"/settings/workspace/users":[s,e,i,T,"static/chunks/pages/settings/workspace/users-ff24167e21f2f0cf.js"],"/sign-in":[s,e,"static/chunks/pages/sign-in-404d934deb8950d5.js"],"/terminal":[s,d,O,e,i,B,"static/chunks/pages/terminal-90abd9c4dfca2556.js"],"/test":[w,"static/chunks/pages/test-85cf18ae78ff535c.js"],"/triggers":[s,e,i,"static/chunks/pages/triggers-6540e41d09691d6b.js"],sortedPages:["/","/_app","/_error","/manage","/pipeline-runs","/pipelines","/pipelines/[pipeline]","/pipelines/[pipeline]/backfills","/pipelines/[pipeline]/backfills/[...slug]","/pipelines/[pipeline]/edit","/pipelines/[pipeline]/logs","/pipelines/[pipeline]/monitors","/pipelines/[pipeline]/monitors/block-runs","/pipelines/[pipeline]/monitors/block-runtime","/pipelines/[pipeline]/runs","/pipelines/[pipeline]/runs/[run]","/pipelines/[pipeline]/syncs","/pipelines/[pipeline]/triggers","/pipelines/[pipeline]/triggers/[...slug]","/settings","/settings/account/profile","/settings/workspace/preferences","/settings/workspace/sync_data","/settings/workspace/users","/sign-in","/terminal","/test","/triggers"]}}("static/chunks/3850-6395783d820def1c.js","static/chunks/2344-a82a406b72fe782b.js","static/chunks/9386-4b9e157e18dd2c65.js","static/chunks/2083-78a438dbdc57d1e4.js","static/chunks/1830-3882c19d710feadd.js","static/chunks/2626-501fffa58c71ee7c.js","static/chunks/5896-f84e336fb8877027.js","static/chunks/4804-01a10103ebe26ca8.js","static/chunks/4463-777e71000be29fc4.js","static/chunks/1774-aa51ef1da7217ff9.js","static/chunks/6532-baf1818fbc89e6c1.js","static/chunks/5872-103815a4a043489b.js","static/chunks/1286-a62050b3f897c6be.js","static/chunks/4178-663d9f70bffc7a47.js","static/chunks/2524-6aeb9419acf5d1b4.js","static/chunks/9565-28e1c30511c95c2d.js","static/chunks/2714-1e79e9f2e998b544.js","static/chunks/4495-4f0340aa82e0c623.js","/datasets","static/chunks/8789-4f858e520d46973b.js","static/chunks/29107295-989a0767a635d9d5.js","static/chunks/2125-0b537dc53fe71b18.js","static/chunks/7011-81dd8269c4806d26.js","static/chunks/6085-692d2f784c0504f2.js","static/chunks/3688-562e0f129b09d1cd.js","static/chunks/3699-dcc0946dd0709216.js","static/chunks/6567-2488118bb39a9d99.js","static/chunks/7400-26ce25ec46728ef7.js","static/chunks/5477-e2cc1ca7108ebc6b.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/SM-HHi6F5loXrysJgdgWV/_middlewareManifest.js b/mage_ai/server/frontend_dist/_next/static/ErmV1Ii-luEqAYMZkbkmO/_middlewareManifest.js similarity index 100% rename from mage_ai/server/frontend_dist/_next/static/SM-HHi6F5loXrysJgdgWV/_middlewareManifest.js rename to mage_ai/server/frontend_dist/_next/static/ErmV1Ii-luEqAYMZkbkmO/_middlewareManifest.js diff --git a/mage_ai/server/frontend_dist/_next/static/SM-HHi6F5loXrysJgdgWV/_ssgManifest.js b/mage_ai/server/frontend_dist/_next/static/ErmV1Ii-luEqAYMZkbkmO/_ssgManifest.js similarity index 100% rename from mage_ai/server/frontend_dist/_next/static/SM-HHi6F5loXrysJgdgWV/_ssgManifest.js rename to mage_ai/server/frontend_dist/_next/static/ErmV1Ii-luEqAYMZkbkmO/_ssgManifest.js diff --git a/mage_ai/server/frontend_dist/_next/static/SM-HHi6F5loXrysJgdgWV/_buildManifest.js b/mage_ai/server/frontend_dist/_next/static/SM-HHi6F5loXrysJgdgWV/_buildManifest.js deleted file mode 100644 index cd8e8de0041e..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/SM-HHi6F5loXrysJgdgWV/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,e,i,n,p,c,t,a,l,u,r,k,f,g,d,b,h,j,o,_,m,E,w,O,A,B,L,D,T){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/datasets",destination:_},{source:"/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_",destination:_}],fallback:[]},"/":["static/chunks/pages/index-e34a68d2f6fe16f2.js"],"/_error":["static/chunks/pages/_error-235304e5badb19eb.js"],"/manage":[s,p,m,e,i,n,"static/chunks/pages/manage-4e975beadae782ce.js"],"/pipeline-runs":[s,p,e,i,n,d,"static/chunks/pages/pipeline-runs-ab975f49d853e244.js"],"/pipelines":[s,p,e,i,n,"static/chunks/pages/pipelines-8c8c0211fade05b8.js"],"/pipelines/[pipeline]":["static/chunks/pages/pipelines/[pipeline]-ca9457e1a6bced4b.js"],"/pipelines/[pipeline]/backfills":[s,p,e,i,c,t,"static/chunks/pages/pipelines/[pipeline]/backfills-4448a612bdda437c.js"],"/pipelines/[pipeline]/backfills/[...slug]":[s,p,a,l,r,f,b,o,e,i,n,c,t,u,k,g,d,"static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-c38aeed3f15fa60a.js"],"/pipelines/[pipeline]/edit":[E,s,p,a,l,r,f,b,h,j,w,O,A,m,"static/chunks/4538-347283088b83c6bf.js",e,i,n,c,u,k,g,B,L,"static/chunks/pages/pipelines/[pipeline]/edit-dd6041ed29f881f0.js"],"/pipelines/[pipeline]/logs":[s,p,l,h,o,e,i,n,c,t,u,"static/chunks/pages/pipelines/[pipeline]/logs-589e73550828aedf.js"],"/pipelines/[pipeline]/monitors":[s,p,a,j,e,i,c,t,D,"static/chunks/pages/pipelines/[pipeline]/monitors-6bdc079054552e55.js"],"/pipelines/[pipeline]/monitors/block-runs":[s,p,a,j,e,i,n,c,t,D,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-6583de6edab67f4a.js"],"/pipelines/[pipeline]/monitors/block-runtime":[E,s,p,a,j,"static/chunks/9832-f97919376d52e3bf.js",e,i,n,c,t,L,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-65337cab5a33ac1d.js"],"/pipelines/[pipeline]/runs":[s,p,l,r,b,e,i,n,c,t,u,k,d,"static/chunks/pages/pipelines/[pipeline]/runs-2680ff2277f04f84.js"],"/pipelines/[pipeline]/runs/[run]":[s,p,a,l,r,f,w,e,i,c,t,u,k,g,"static/chunks/pages/pipelines/[pipeline]/runs/[run]-dca97d649160fed7.js"],"/pipelines/[pipeline]/syncs":[s,p,h,e,i,c,t,"static/chunks/pages/pipelines/[pipeline]/syncs-6671ee4e4f219f14.js"],"/pipelines/[pipeline]/triggers":[s,p,a,l,r,f,e,i,n,c,t,u,k,g,"static/chunks/pages/pipelines/[pipeline]/triggers-bf6d2785d72322a8.js"],"/pipelines/[pipeline]/triggers/[...slug]":[s,p,a,l,r,f,b,o,e,i,n,c,t,u,k,g,d,B,"static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-79e262eab1263ad6.js"],"/settings":["static/chunks/pages/settings-d594a66a568306da.js"],"/settings/account/profile":[s,e,i,n,T,"static/chunks/pages/settings/account/profile-0608e20d98672b5e.js"],"/settings/workspace/preferences":[s,e,i,"static/chunks/pages/settings/workspace/preferences-eb2b4a9ca63b1c40.js"],"/settings/workspace/sync_data":[s,e,i,n,"static/chunks/pages/settings/workspace/sync_data-d6cedf3a73c03f5e.js"],"/settings/workspace/users":[s,e,i,n,T,"static/chunks/pages/settings/workspace/users-0b0d3a3b2de6a046.js"],"/sign-in":[s,e,n,"static/chunks/pages/sign-in-b4e1eb529a184c60.js"],"/terminal":[s,h,A,e,i,"static/chunks/pages/terminal-62e391b4ee78f1a1.js"],"/test":[O,"static/chunks/pages/test-85cf18ae78ff535c.js"],"/triggers":[s,e,i,n,"static/chunks/pages/triggers-e81119f500c86a27.js"],sortedPages:["/","/_app","/_error","/manage","/pipeline-runs","/pipelines","/pipelines/[pipeline]","/pipelines/[pipeline]/backfills","/pipelines/[pipeline]/backfills/[...slug]","/pipelines/[pipeline]/edit","/pipelines/[pipeline]/logs","/pipelines/[pipeline]/monitors","/pipelines/[pipeline]/monitors/block-runs","/pipelines/[pipeline]/monitors/block-runtime","/pipelines/[pipeline]/runs","/pipelines/[pipeline]/runs/[run]","/pipelines/[pipeline]/syncs","/pipelines/[pipeline]/triggers","/pipelines/[pipeline]/triggers/[...slug]","/settings","/settings/account/profile","/settings/workspace/preferences","/settings/workspace/sync_data","/settings/workspace/users","/sign-in","/terminal","/test","/triggers"]}}("static/chunks/3850-6395783d820def1c.js","static/chunks/9767-f592a630ed5319ae.js","static/chunks/9386-8619fcd5b6295698.js","static/chunks/9898-51ca6a904b7a2382.js","static/chunks/2083-78a438dbdc57d1e4.js","static/chunks/1830-3882c19d710feadd.js","static/chunks/2626-f542fcf5f01d3faf.js","static/chunks/5896-10a676bcc86978cc.js","static/chunks/4804-01a10103ebe26ca8.js","static/chunks/4463-769ca52e44924552.js","static/chunks/1774-aa51ef1da7217ff9.js","static/chunks/6532-baf1818fbc89e6c1.js","static/chunks/5872-1767c45ee6690ae5.js","static/chunks/1286-a62050b3f897c6be.js","static/chunks/4846-dcf1ae27abde61c3.js","static/chunks/2524-6aeb9419acf5d1b4.js","static/chunks/9565-28e1c30511c95c2d.js","static/chunks/2714-1e79e9f2e998b544.js","static/chunks/4495-4f0340aa82e0c623.js","/datasets","static/chunks/8789-4f858e520d46973b.js","static/chunks/29107295-989a0767a635d9d5.js","static/chunks/2125-0b537dc53fe71b18.js","static/chunks/7011-81dd8269c4806d26.js","static/chunks/6085-692d2f784c0504f2.js","static/chunks/7281-99f836e410857a68.js","static/chunks/6641-a0ed2bd8f5dc777b.js","static/chunks/7400-a48b270726b9eef5.js","static/chunks/5477-56bfc97080d45b27.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/2344-a82a406b72fe782b.js b/mage_ai/server/frontend_dist/_next/static/chunks/2344-a82a406b72fe782b.js new file mode 100644 index 000000000000..d2ce0dea2828 --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/2344-a82a406b72fe782b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2344],{64318:function(n,e,t){t.d(e,{u:function(){return c}});var r=t(9518),o=t(23831),i=t(49125),c=r.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-y3uzxv-0"})(["padding:","px;&:hover{cursor:pointer;","}",""],i.iI,(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},37771:function(n,e,t){t.d(e,{N:function(){return i},k:function(){return c}});var r=t(37391),o=t(9518),i=300,c=o.default.div.withConfig({displayName:"indexstyle__OutputContainerStyle",componentId:"sc-wkjnrg-0"})([""," overflow-y:scroll;"," ",""],r.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return!n.height&&"\n max-height: ".concat(n.maxHeight||i,"px;\n ")}))},86585:function(n,e,t){t.d(e,{Mz:function(){return l},T5:function(){return u},bf:function(){return d}});var r,o=t(82394),i=t(10503),c=t(88560),a=t(49125),l=7*a.iI,d=22,u=(a.iI,a.iI,r={},(0,o.Z)(r,c.RL.CATEGORY,i.WD),(0,o.Z)(r,c.RL.CATEGORY_HIGH_CARDINALITY,i.Rj),(0,o.Z)(r,c.RL.DATETIME,i.aw),(0,o.Z)(r,c.RL.EMAIL,i.GT),(0,o.Z)(r,c.RL.LIST,i.aV),(0,o.Z)(r,c.RL.NUMBER,i.qZ),(0,o.Z)(r,c.RL.NUMBER_WITH_DECIMALS,i.As),(0,o.Z)(r,c.RL.PHONE_NUMBER,i.LP),(0,o.Z)(r,c.RL.TEXT,i.KJ),(0,o.Z)(r,c.RL.TRUE_OR_FALSE,i.Kb),(0,o.Z)(r,c.RL.UUID,i.SS),(0,o.Z)(r,c.RL.ZIP_CODE,i.$t),r)},3055:function(n,e,t){t.d(e,{I5:function(){return l},Mz:function(){return a},y7:function(){return c}});var r=t(9518),o=t(23831),i=t(49125),c=2.5*i.iI,a=6*i.iI,l=r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1bk8irg-0"})(["height:","px;left:0;padding-left:","px;padding-right:","px;position:fixed;top:0;width:100%;z-index:10;",""],a,2*i.iI,2*i.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n ")}))},12344:function(n,e,t){t.d(e,{Z:function(){return J}});var r=t(75582),o=t(82394),i=t(12691),c=t.n(i),a=t(82684),l=t(34376),d=t(35490),u=t(60328),s=t(16634),p=t(47999),f=t(57639),h=t(93461),b=t(67971),g=t(62084),m=t(83455),v=t(18776),x=t(55378),y=t(86673),j=t(54283),w=t(19711),k=t(82944),O=t(82531),Z=t(10503),P=t(37771),C=t(96510),I=t(28598);function _(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function H(n){for(var e=1;e=2&&r>=1&&e.push((0,I.jsx)(w.ZP,{inline:!0,monospace:!0,muted:!0,children:"\xa0 / \xa0"},"divider-".concat(u)));var s=(0,I.jsx)(w.ZP,{bold:o,default:!o,monospace:!0,children:u}),p=(0,I.jsxs)(y.Z,{ml:0===r?2:0,children:[i&&(0,I.jsx)(S,{backgroundGradient:i,children:s}),!i&&s]},"breadcrumb-".concat(u));d&&(p=(0,a.createElement)(c(),$($({},d),{},{key:"breadcrumb-link-".concat(u),passHref:!0}),(0,I.jsx)(R.Z,{block:!0,default:!o,noOutline:!0,sameColorAsText:o,children:p}))),e.push(p)})),e}),[ln]),sn=(on||{}).latest_version,pn=(0,a.useMemo)((function(){return(0,I.jsx)(c(),{as:"/",href:"/",passHref:!0,children:(0,I.jsx)(R.Z,{block:!0,height:U.y7,noHoverUnderline:!0,noOutline:!0,children:(0,I.jsx)(z,{height:U.y7})})})}),[]),fn=[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"}];(0,q.YB)()&&fn.push({label:function(){return"Sign out"},onClick:function(){d.Z.logout((function(){O.ZP.sessions.updateAsync(null,1).then((function(){(0,K.nL)("/sign-in")})).catch((function(){(0,K.nL)("/")}))}))},uuid:"sign_out"});var hn=(0,X.dd)((function(){return(0,I.jsx)(M,{branch:tn,fetchBranch:en})}),{},[tn,en],{background:!0,uuid:"git_actions"}),bn=(0,r.Z)(hn,2),gn=bn[0];return bn[1],(0,I.jsx)(U.I5,{children:(0,I.jsx)(f.Z,{children:(0,I.jsxs)(b.Z,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,I.jsxs)(h.Z,{alignItems:"center",children:[cn&&(0,I.jsx)(W.Z,{height:U.y7,label:"Version ".concat(cn),size:null,visibleDelay:300,widthFitContent:!0,children:pn}),!cn&&pn,un]}),(0,I.jsxs)(h.Z,{alignItems:"center",children:[sn&&cn&&sn!==cn&&(0,I.jsx)(y.Z,{ml:2,children:(0,I.jsx)(u.Z,{borderLess:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,primary:!0,target:"_blank",children:(0,I.jsxs)(w.ZP,{children:["\ud83d\ude80 Download new version ",(0,I.jsx)(w.ZP,{bold:!0,inline:!0,monospace:!0,children:sn})]})})}),tn&&(0,I.jsx)(y.Z,{ml:2,children:(0,I.jsx)(B.ZP,{blackBorder:!0,block:!0,compact:!0,noHoverUnderline:!0,onClick:gn,sameColorAsText:!0,uuid:"Header/git_branch",children:(0,I.jsxs)(b.Z,{alignItems:"center",children:[(0,I.jsx)(Z.I0,{size:1.5*V.iI}),(0,I.jsx)(y.Z,{ml:1}),(0,I.jsx)(w.ZP,{monospace:!0,small:!0,children:tn})]})})}),cn&&"undefined"!==typeof cn&&(0,I.jsx)(y.Z,{ml:2,children:(0,I.jsx)(R.Z,{default:!0,href:"https://www.mage.ai/changelog",monospace:!0,openNewWindow:!0,children:"v".concat(cn)})}),(0,I.jsx)(y.Z,{ml:2,children:(0,I.jsx)(B.ZP,{blackBorder:!0,block:!0,compact:!0,noHoverUnderline:!0,openNewTab:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},sameColorAsText:!0,uuid:"Header/live_chat",children:"Live chat"})}),t&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(y.Z,{ml:2}),(0,I.jsx)(p.Z,{onClickOutside:function(){return P(null)},open:!0,style:{position:"relative"},children:(0,I.jsxs)(b.Z,{children:[(0,I.jsx)(Y.u,{highlighted:0===k,onClick:function(){return P((function(n){return 0===n?null:0}))},onMouseEnter:function(){return P((function(n){return null!==n?0:null}))},ref:E,children:(0,I.jsx)(w.ZP,{children:"Menu"})}),(0,I.jsx)(g.Z,{alternateBackground:!0,items:t,onClickCallback:function(){return P(null)},open:0===k,parentRef:E,rightOffset:0,setConfirmationAction:T,setConfirmationDialogueOpen:H,uuid:"PipelineDetail/Header/menu"})]})}),(0,I.jsx)(p.Z,{onClickOutside:function(){return H(!1)},open:_,children:(0,I.jsx)(N.Z,{danger:!0,onCancel:function(){return H(!1)},onClick:D,right:16*V.iI,subtitle:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",title:"Are you sure you want to delete the pipeline ".concat(dn,"?"),width:40*V.iI})})]}),(an||!(0,q.YB)())&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(y.Z,{ml:2}),(0,I.jsx)(p.Z,{onClickOutside:function(){return x(!1)},open:!0,style:{position:"relative"},children:(0,I.jsxs)(b.Z,{children:[(0,I.jsx)(Y.u,{onClick:function(){return x(!0)},ref:L,children:(0,I.jsx)(s.Z,{color:G.Jm,size:4*V.iI,children:(0,I.jsx)(A,{})})}),(0,I.jsx)(g.Z,{alternateBackground:!0,items:fn,onClickCallback:function(){return x(!1)},open:v,parentRef:L,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},57639:function(n,e,t){var r=t(82684),o=t(28598);e.Z=function(n){var e=n.children,t=(0,r.useState)(!1),i=t[0],c=t[1];return(0,r.useEffect)((function(){c(!0)}),[]),i?e:(0,o.jsx)("div",{})}},88560:function(n,e,t){t.d(e,{P_:function(){return c},RL:function(){return o},Rp:function(){return a}});var r,o,i=t(82394);!function(n){n.CATEGORY="category",n.CATEGORY_HIGH_CARDINALITY="category_high_cardinality",n.DATETIME="datetime",n.EMAIL="email",n.LIST="list",n.NUMBER="number",n.NUMBER_WITH_DECIMALS="number_with_decimals",n.PHONE_NUMBER="phone_number",n.TEXT="text",n.TRUE_OR_FALSE="true_or_false",n.UUID="uuid",n.ZIP_CODE="zip_code"}(o||(o={}));o.NUMBER,o.NUMBER_WITH_DECIMALS,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.DATETIME,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT,o.TRUE_OR_FALSE,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT;var c=[o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY],a=(r={},(0,i.Z)(r,o.NUMBER,"Number"),(0,i.Z)(r,o.NUMBER_WITH_DECIMALS,"Decimal number"),(0,i.Z)(r,o.CATEGORY,"Category"),(0,i.Z)(r,o.CATEGORY_HIGH_CARDINALITY,"Category (high cardinality)"),(0,i.Z)(r,o.DATETIME,"Date/Time"),(0,i.Z)(r,o.EMAIL,"Email"),(0,i.Z)(r,o.LIST,"List"),(0,i.Z)(r,o.PHONE_NUMBER,"Phone number"),(0,i.Z)(r,o.TEXT,"Text"),(0,i.Z)(r,o.TRUE_OR_FALSE,"Boolean"),(0,i.Z)(r,o.ZIP_CODE,"Zip code"),r)},93461:function(n,e,t){var r=t(9518),o=t(25883),i=r.default.div.withConfig({displayName:"Flex",componentId:"sc-sgfnl9-0"})(["display:flex;"," "," "," "," ",""],o.GQ,o.Dh,(function(n){return n.position&&"\n position: ".concat(n.position,";\n ")}),(function(n){return n.right&&"\n right: ".concat(n.right,"px;\n ")}),(function(n){return n.textOverflow&&"\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "}));e.Z=i},67971:function(n,e,t){var r,o,i,c,a=t(82394),l=t(26304),d=t(26653),u=(t(82684),t(9518)),s=t(25883),p=t(33591),f=t(28598),h=["children","fullHeight","verticalHeightOffset"];function b(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function g(n){for(var e=1;e0&&"\n height: calc(100% - ".concat(n.offsetHeight||0,"px);\n ")}),(function(n){return n.fullHeight&&!n.verticalHeight&&"\n height: calc(100% - ".concat(n.offsetHeight||0,"px);\n ")}),(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return!n.inline&&"\n display: flex;\n "}),(function(n){return n.inline&&"\n display: inline-flex;\n "}),(function(n){return n.fullScreenHeight&&!n.offsetHeight&&"\n min-height: 100vh;\n "}),(function(n){return n.fullScreenHeight&&n.offsetHeight&&"\n min-height: calc(100vh - ".concat(n.offsetHeight,"px);\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return n.relative&&"\n position: relative;\n "}),(function(n){return n.textOverflow&&"\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "}));e.Z=function(n){var e=n.children,t=n.fullHeight,r=n.verticalHeightOffset,o=void 0===r?0:r,i=(0,l.Z)(n,h);return(0,f.jsx)(x,g(g({},i),{},{fullHeight:t,verticalHeightOffset:o,children:e}))}},62084:function(n,e,t){t.d(e,{Z:function(){return I}});var r=t(82394),o=t(82684),i=t(12691),c=t.n(i),a=t(67971),l=t(79749),d=t(86673),u=t(19711),s=t(46261),p=t(10503),f=t(9518),h=t(23831),b=t(73942),g=t(49125),m=f.default.div.withConfig({displayName:"indexstyle__FlyoutMenuContainerStyle",componentId:"sc-1o7k6f4-0"})(["position:absolute;max-height:","px;"," "," ",""],58*g.iI,(function(n){return n.width&&"\n min-width: 0px;\n width: ".concat(n.width,"px;\n ")}),(function(n){return"\n box-shadow: ".concat((n.theme.shadow||h.Z.shadow).popup,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||h.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return n.roundedStyle&&"\n border-radius: ".concat(b.n_,"px;\n\n div:first-child {\n border-top-left-radius: ").concat(b.n_,"px;\n border-top-right-radius: ").concat(b.n_,"px;\n }\n\n div:last-child {\n border-bottom-left-radius: ").concat(b.n_,"px;\n border-bottom-right-radius: ").concat(b.n_,"px;\n }\n ")})),v=f.default.div.withConfig({displayName:"indexstyle__TitleContainerStyle",componentId:"sc-1o7k6f4-1"})(["padding:","px;padding-bottom:0;",""],g.iI,(function(n){return"\n background-color: ".concat((n.theme.background||h.Z.background).popup,";\n ")})),x=(0,f.css)(["justify-content:space-between;padding:","px;"," "," "," "," "," "," ",""],g.iI,(function(n){return n.largePadding&&"\n padding: ".concat(2*g.iI,"px;\n padding-right: ").concat(6*g.iI,"px;\n ")}),(function(n){return!n.disabled&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||h.Z.interactive).hoverBackground,";\n cursor: pointer;\n }\n ")}),(function(n){return"\n background-color: ".concat((n.theme.background||h.Z.background).popup,";\n ")}),(function(n){return n.alternateBackground&&"\n background-color: ".concat((n.theme.interactive||h.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.disabled&&"\n color: ".concat((n.theme.content||h.Z.content).disabled,";\n cursor: not-allowed;\n\n &:hover {\n color: ").concat((n.theme.content||h.Z.content).disabled,";\n }\n ")}),(function(n){return n.indent&&"\n padding-left: ".concat(2*g.iI,"px;\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme.interactive||h.Z.interactive).hoverBackground,";\n ")})),y=f.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1o7k6f4-2"})(["",""],x),j=f.default.a.withConfig({displayName:"indexstyle__LinkAnchorStyle",componentId:"sc-1o7k6f4-3"})([""," display:block;"],x),w=t(16115),k=t(66653),O=t(41150),Z=t(28598);function P(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function C(n){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:0,x=arguments.length>4?arguments[4]:void 0;return h+=1,(0,Z.jsx)(m,{roundedStyle:_,style:{display:f||L[t]?null:"none",left:"undefined"===typeof I&&(1===h?b||0:"100%"),right:1===h?I:null,top:1===h?(V||0)+D:(2===h?W:Y)||0},width:T,children:null===e||void 0===e?void 0:e.map((function(e,t){var f=e.bold,b=e.disabled,m=e.items,w=e.indent,k=e.isGroupingTitle,O=e.keyTextGroups,P=e.label,I=e.linkProps,M=e.onClick,D=e.openConfirmationDialogue,z=e.tooltip,T=e.uuid;x.current[T]=(0,o.createRef)();var E=I?j:y,B=P();if(k)return(0,Z.jsxs)(v,{children:["string"===typeof B&&(0,Z.jsx)(u.ZP,{bold:!0,muted:!0,noWrapping:!0,children:B}),"string"!==typeof B&&B]},T);var R=(0,Z.jsxs)(E,{alternateBackground:i||_,disabled:b,highlighted:S[0]===t,indent:w,largePadding:_,onClick:function(n){I||n.preventDefault(),D?(F(!0),H((function(){return M})),null===g||void 0===g||g()):M&&!b&&(null===M||void 0===M||M(),null===g||void 0===g||g())},onMouseEnter:function(){var n,e;if(A((function(n){return C(C({},n),{},(0,r.Z)({},T,!0))})),1===h)G((null===(n=x.current[T])||void 0===n||null===(e=n.current)||void 0===e?void 0:e.offsetTop)||0);else if(2===h){var t,o;q((null===(t=x.current[T])||void 0===t||null===(o=t.current)||void 0===o?void 0:o.offsetTop)||0)}},onMouseLeave:function(){A((function(n){return C(C({},n),{},(0,r.Z)({},T,!1))}))},ref:x.current[T],children:[(0,Z.jsxs)(a.Z,{alignItems:"center",fullWidth:!0,justifyContent:"space-between",children:["string"===typeof B&&(0,Z.jsx)(u.ZP,{bold:f,disabled:b,noWrapping:!0,children:B}),"string"!==typeof B&&B,m&&(0,Z.jsx)(d.Z,{ml:2,children:(0,Z.jsx)(p.ol,{})}),O&&(0,Z.jsx)(d.Z,{ml:4,ref:X,children:(0,Z.jsx)(l.Z,{keyTextGroups:O})})]}),m&&n(m,T,!1,h,x)]},T);return z&&(R=(0,Z.jsx)(s.Z,{appearBefore:!0,block:!0,center:!0,description:z(),size:null,widthFitContent:!0,children:R})),I?(0,o.createElement)(c(),C(C({},I),{},{key:T,passHref:!0}),R):R}))})}(h,void 0,x,0,K):null}},18776:function(n,e,t){t.d(e,{Z:function(){return l}});var r=t(9518),o=t(23831),i=t(73942),c=r.default.div.withConfig({displayName:"indexstyle__PanelStyle",componentId:"sc-1rfr5wd-0"})(["border-radius:","px;"," ",""],i.n_,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).panel,";\n ")}),(function(n){return n.fullWidth&&"\n width: 100%;\n "})),a=t(28598);var l=function(n){var e=n.children,t=n.fullWidth,r=void 0===t||t;return(0,a.jsx)(c,{fullWidth:r,children:e})}},62609:function(n,e,t){t.d(e,{Z:function(){return g}});var r=t(60328),o=t(67971),i=t(9518),c=t(23831),a=t(73942),l=t(86585),d=t(49125),u=t(28598),s=i.default.div.withConfig({displayName:"PopupMenuContainer__ContainerStyle",componentId:"sc-lq9od4-0"})(["border-radius:","px;padding:","px;position:absolute;z-index:",";cursor:default;"," "," "," "," "," "," "," ",""],a.TR,2*d.iI,l.bf+100,(function(n){return"\n background-color: ".concat((n.theme.interactive||c.Z.interactive).defaultBackground,";\n box-shadow: ").concat((n.theme.shadow||c.Z.shadow).window,";\n ")}),(function(n){return"undefined"!==typeof n.left&&"\n left: ".concat(n.left,"px;\n ")}),(function(n){return"undefined"!==typeof n.right&&"\n right: ".concat(n.right,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")}),(function(n){return"undefined"!==typeof n.bottom&&"\n bottom: ".concat(n.bottom,"px;\n ")}),(function(n){return"undefined"===typeof n.top&&"undefined"===typeof n.bottom&&"\n top: ".concat(l.Mz-1*d.iI,"px;\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return!n.width&&"\n min-width: ".concat(33*d.iI,"px;\n ")}));var p=function(n){var e=n.bottom,t=n.children,r=n.left,o=n.right,i=n.top,c=n.width;return(0,u.jsx)(s,{bottom:e,left:r,right:o,top:i,width:c,children:t})},f=t(86673),h=t(19711),b=32*d.iI;var g=function(n){var e=n.bottom,t=n.danger,i=n.left,c=n.isLoading,a=n.onCancel,l=n.onClick,d=n.right,s=n.subtitle,g=n.title,m=n.top,v=n.width;return(0,u.jsxs)(p,{bottom:e,left:i,right:d,top:m,width:v||b,children:[(0,u.jsxs)(o.Z,{alignItems:"center",flexDirection:"column",children:[(0,u.jsx)(f.Z,{pb:1,children:(0,u.jsx)(h.ZP,{bold:!0,large:!0,warning:!0,whiteSpaceNormal:!0,children:g})}),(0,u.jsx)(h.ZP,{small:!0,children:s})]}),(0,u.jsx)(f.Z,{mt:2,children:(0,u.jsxs)(o.Z,{alignItems:"center",justifyContent:"center",children:[(0,u.jsx)(r.Z,{onClick:a,children:"Cancel"}),(0,u.jsx)(f.Z,{mr:1}),(0,u.jsx)(r.Z,{loading:c,onClick:l,children:(0,u.jsx)(h.ZP,{bold:!0,danger:t,success:!t,children:"Confirm"})})]})})]})}},54283:function(n,e,t){var r=t(82684),o=t(27601),i=t.n(o),c=t(23831),a=t(9518),l=t(49125),d=t(28598);e.Z=function(n){var e=n.color,t=n.fullScreen,o=n.inverted,u=n.large,s=n.left,p=void 0===s?0:s,f=n.relative,h=n.right,b=void 0===h?0:h,g=n.size,m=void 0===g?24:g,v=n.small,x=n.top,y=void 0===x?0:x,j=n.type,w=void 0===j?"spin":j,k=(0,r.useState)(void 0),O=k[0],Z=k[1],P=(0,r.useState)(void 0),C=P[0],I=P[1],_=(0,r.useContext)(a.ThemeContext),H=m;u?H=5*l.iI:v&&(H=2*l.iI),(0,r.useEffect)((function(){Z(window.document.body.offsetHeight),I(window.document.body.offsetWidth)}),[O,C]);var F=(0,d.jsx)(i(),{color:e||(o?(_.loader||c.Z.loader).colorInverted:(_.loader||c.Z.loader).color),height:H,type:w,width:H});if(!t)return F;if(O&&C){var M=O-l.tr;return(0,d.jsx)("div",{style:{left:f?null:p+(C-H)/2-b,position:"fixed",top:y+M/2-H/2,zIndex:50},children:F})}return(0,d.jsx)("div",{})}},46261:function(n,e,t){t.d(e,{Z:function(){return H}});var r=t(82394),o=t(26304),i=t(82684),c=t(9518),a=t(67971),l=t(19711),d=t(23831),u=t(73942),s=t(49125),p=t(60328),f=t(90880),h=t(28598),b=(0,c.css)(["position:relative;"," "," ",""],(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n "})),g=c.default.div.withConfig({displayName:"TooltipWrapper__ContainerStyle",componentId:"sc-1dd57l8-0"})(["",""],b),m=c.default.span.withConfig({displayName:"TooltipWrapper__ContainerSpanStyle",componentId:"sc-1dd57l8-1"})(["",""],b),v=c.default.a.withConfig({displayName:"TooltipWrapper__HoverStyle",componentId:"sc-1dd57l8-2"})([""," "," "," border-radius:50%;"," "," &:active,&:focus{outline:none;}",""],(0,f.eR)(),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n width: ").concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n width: 100%;\n "}),(function(n){return!n.block&&"\n display: inline-block;\n "}),(function(n){return n.block&&"\n display: block;\n "}),(function(n){return!n.noHoverOutline&&"\n &:hover {\n cursor: pointer;\n\n box-shadow:\n 0 0 0 ".concat(u.PV,"px ").concat((0,p.W)(n),",\n 0 0 0 ").concat(u.PV+u.q2,"px ").concat((n.theme.interactive||d.Z.interactive).hoverOverlay,";\n }\n ")})),x=c.default.span.withConfig({displayName:"TooltipWrapper__BasicStyle",componentId:"sc-1dd57l8-3"})([""]),y=c.default.div.withConfig({displayName:"TooltipWrapper__ContentStyle",componentId:"sc-1dd57l8-4"})(["position:absolute;z-index:3;"," "," "," "," "," "," "," "," "," ",""],(function(n){return"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).base,";\n ")}),(function(n){return n.lightBackground&&"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).window,";\n ")}),(function(n){return n.appearAbove&&!n.size&&"\n bottom: 0;\n "}),(function(n){return n.appearAbove&&n.size&&"\n bottom: ".concat(n.size+u.PV+u.q2,"px;\n ")}),(function(n){return n.appearBefore&&"\n right: 0;\n "}),(function(n){return n.leftPosition&&"\n left: ".concat(n.leftPosition,"px;\n ")}),(function(n){return!n.leftPosition&&n.rightPosition&&"\n right: 0px;\n "}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.widthFitContent&&"\n width: max-content;\n "}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}));var j=function(n){var e=n.alignLeft,t=n.appearAbove,r=n.appearBefore,o=n.autoHide,c=n.autoWidth,a=n.basic,l=n.block,d=n.center,u=n.children,p=n.content,f=n.fullSize,b=n.height,j=n.inline,w=n.lightBackground,k=n.minWidth,O=n.noHoverOutline,Z=n.size,P=void 0===Z?2*s.iI:Z,C=n.topOffset,I=n.visibleDelay,_=void 0===I?1e3:I,H=n.widthFitContent,F=(0,i.useState)(!1),M=F[0],D=F[1],z=(0,i.useState)(!1),T=z[0],E=z[1],S=(k-P)/-2,B=j?m:g,R=a?x:v,L=(0,h.jsx)(R,{block:l,fullSize:f,href:"#",noHoverOutline:O,onClick:function(n){return n.preventDefault()},onMouseEnter:function(){return D(!0)},size:P,children:u});return(0,i.useEffect)((function(){var n=setInterval((function(){return E(!0)}),_);return M||clearInterval(n),o&&setTimeout((function(){D(!1),E(!1)}),3*_),function(){return clearInterval(n)}}),[o,E,_,M]),(0,h.jsxs)(B,{fullSize:f,height:b,onMouseLeave:function(){D(!1),E(!1)},size:P,children:[L,T&&(0,h.jsx)(y,{appearAbove:t,appearBefore:r,leftPosition:d?S:null,lightBackground:w,minWidth:c?k:null,rightPosition:e,size:P,topOffset:C,widthFitContent:H,children:p})]})},w=t(10503),k=["autoWidth","children","default","description","inverted","keyboardShortcuts","label","lightBackground","maxWidth","muted","primary","size","warning","widthFitContent"];function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Z(n){for(var e=1;e=1&&D.push((0,h.jsx)(l.ZP,{default:!0,children:"+"})),D.push(n)}));var z=D.map((function(n,e){var t="keyboard-shortcut-".concat(e);return"string"===typeof n?(0,h.jsx)("span",{children:n},t):i.cloneElement(n,{key:t})}));return(0,h.jsx)(j,Z(Z({},C),{},{autoWidth:e,content:(0,h.jsx)(F,{autoWidth:e,lightBackground:f,width:b,widthFitContent:O,children:(0,h.jsxs)(a.Z,{alignItems:"center",children:[(0,h.jsx)(l.ZP,{whiteSpaceNormal:!0,children:H}),z.length>=1&&(0,h.jsx)(l.ZP,{muted:!0,children:"\xa0\xa0\xa0\u2022\xa0\xa0\xa0"}),z.length>=1&&z]})}),lightBackground:f,minWidth:M,noHoverOutline:!!t,size:x,widthFitContent:O,children:t||(0,h.jsx)(w.kI,{default:r,inverted:d,muted:g,primary:m,size:x,warning:y})}))}},11135:function(n,e,t){t.d(e,{ZP:function(){return tn}});var r=t(82394),o=t(26304),i=t(82684),c=t(12691),a=t.n(c),l=t(9518),d=t(93461),u=t(79749),s=t(34376),p=t(9736);function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return h(h({},t),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,id:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}var g=t(75582),m=t(39421),v=t(86954);function x(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function y(n){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},r=j(),o=(null!==t&&void 0!==t&&t.width,window.innerWidth);return O(O(O({},t),r),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,partner_id:"Mage",screenSize:(0,w.Z3)(o),userId:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}(O({actionType:o,componentType:c},a));return{eventProperties:u,eventType:d,userProperties:b()}}function I(n,e){null===n||void 0===n||n(e)}var _=function(n){var e=n.children;return n.eventProperties,n.userProperties,e((function(n){return!1}))},H=t(41150),F=t(28598);function M(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function D(n){for(var e=1;e0&&"\n padding: ".concat(n.padding,"px;\n ")}),(function(n){return n.shadow&&"\n box-shadow: ".concat((n.theme.shadow||N.Z.shadow).large,";\n ")})),nn=l.default.button.withConfig({displayName:"KeyboardShortcutButton__ButtonStyle",componentId:"sc-10tm4pj-0"})(["",""],J),en=l.default.a.withConfig({displayName:"KeyboardShortcutButton__AnchorStyle",componentId:"sc-10tm4pj-1"})([""," ",""],J,q.R);l.default.span.withConfig({displayName:"KeyboardShortcutButton__SpanStyle",componentId:"sc-10tm4pj-2"})(["margin-right:","px;"],1*V.iI);var tn=function(n){var e=n.Icon,t=n.afterElement,c=n.beforeElement,l=n.bold,s=n.borderless,p=n.centerText,f=n.children,h=n.compact,b=n.disabled,g=n.fitContentWidth,m=n.inverted,v=n.keyTextGroups,x=n.keyTextsPosition,y=void 0===x?z.RIGHT:x,j=n.linkProps,w=n.loading,k=n.mutedDisabled,O=n.noHover,Z=n.onClick,P=n.padding,C=n.smallIcon,_=n.type,H=void 0===_?T.BUTTON:_,M=n.useModelTheme,D=(0,o.Z)(n,X),S=j||{},B=S.as,N=S.href,W=B||N?en:nn,G=(0,i.useMemo)((function(){if(!v)return null;var n=(0,r.Z)({},y===z.RIGHT?"ml":"mr",f?1:0);return(0,F.jsx)(L.Z,$($({},n),{},{children:(0,F.jsx)(u.Z,{borderless:m,disabled:b,keyTextGroups:v,mutedDisabled:k})}))}),[f,b,m,v,y,k]),U=((0,i.useContext)(R)||{}).sharedProps;return(0,F.jsx)(E,$($({},D),{},{buildChildren:function(n){var r=n.eventProperties,o=n.eventType,i=n.logEvent,u=n.onClick,v=n.userProperties,x=(0,F.jsxs)(W,$($($({},D),M?U:{}),{},{bold:M||l,borderless:M||s,center:p,compact:h,disabled:b||k,fitContentWidth:g,inverted:m,noHover:(!u||O)&&!(B||N)&&H===T.BUTTON,onClick:function(n){I(i,o,{eventProperties:r,userProperties:v}),null===u||void 0===u||u(n)},padding:C&&!f?11:P,type:B||N?null:H,useModelTheme:M,withIcon:!!e,children:[c&&!w&&(0,F.jsxs)(F.Fragment,{children:[c,(0,F.jsx)(L.Z,{mr:1})]}),y===z.LEFT&&G,(0,F.jsxs)(d.Z,{alignItems:"center",children:[e&&(0,F.jsx)(e,{muted:b||k,size:C?2*V.iI:2.5*V.iI}),e&&f&&(0,F.jsx)(L.Z,{mr:1}),w&&(0,F.jsx)(A.Z,{inverted:!m,small:C}),!w&&f]}),y===z.RIGHT&&G&&(0,F.jsx)(L.Z,{ml:1,children:G}),t&&!w&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(L.Z,{ml:t?1:0}),t]})]}));return!B&&!N||b||k?x:(0,F.jsx)(a(),$($({},j),{},{passHref:!0,children:x}))},disabled:b||k,linkProps:j,onClick:Z}))}},60328:function(n,e,t){t.d(e,{W:function(){return Z}});var r=t(82394),o=t(26304),i=t(82684),c=t(12691),a=t.n(c),l=t(9518),d=t(93461),u=t(67971),s=t(86673),p=t(54283),f=t(23831),h=t(73899),b=t(73942),g=t(2005),m=t(31012),v=t(10919),x=t(49125),y=t(90880),j=t(28598),w=["afterIcon","beforeIcon","children","compact","disabled","iconOnly","id","linkProps","loading","onClick","secondary"];function k(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function O(n){for(var e=1;e\n \n ",d.iI,d.iI,2.5*d.iI,(function(n){return!n.hasContent&&!n.showPlaceholder&&"\n color: ".concat((n.theme.content||l.Z.content).muted,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return n.color&&"\n color: ".concat(n.color,";\n ")}),(function(n){return n.showPlaceholder&&"\n color: ".concat((n.theme.content||l.Z.content).inverted,";\n ")})),b=function(n,e){var t=n.beforeIcon,r=n.children,i=n.label,c=n.multiple,l=n.placeholder,d=(0,o.Z)(n,s);return(0,u.jsx)(a.Z,f(f({},d),{},{beforeIcon:t,input:(0,u.jsxs)(h,f(f({multiple:c},d),{},{children:[(i||l)&&(0,u.jsx)("option",{disabled:!0,selected:!0,value:"",children:i||l}),r]})),label:i,placeholder:l,ref:e,setContentOnMount:!0,showLabelRequirement:function(n){return!!n.content}}))};e.Z=i.forwardRef(b)},82944:function(n,e,t){var r=t(82394),o=t(91835),i=t(82684),c=t(9518),a=t(69898),l=t(28598);function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function u(n){for(var e=1;e=1&&o.push((0,l.jsx)(d,{small:p},"spacing-".concat(n))),o.push((0,l.jsx)(i.Z,{borderless:e,disabled:t,inline:!0,keyText:n,monospace:u,mutedDisabled:s},"key-".concat(b.join("-"),"-").concat(f)))})),r>=1&&h.push((0,l.jsx)(d,{marginRight:!0,children:(0,l.jsx)(c.ZP,{monospace:u,muted:!0,small:!p,xsmall:p,children:"then"})},"then-".concat(r))),h.push.apply(h,o)})),(0,l.jsx)(o.Z,{alignItems:"center",inline:a,children:h})}},86673:function(n,e,t){var r=t(82394),o=t(26304),i=t(82684),c=t(9518),a=t(25883),l=t(28598),d=["children","inline"];function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return H}}]),(0,l.useEffect)((function(){null===B||void 0===B||!B.current||T||J||null===X||void 0===X||X(B.current.getBoundingClientRect().width)}),[T,G,J,Y,B,X,L]),(0,l.useEffect)((function(){T||(0,O.t8)(D,G)}),[t,T,G,D]),(0,l.useEffect)((function(){J||(0,O.t8)(N,Y)}),[J,Y,N]);var ie=(0,v.Z)(f);return(0,l.useEffect)((function(){w&&ie!==f&&U(f)}),[w,f,ie]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.Z,{title:H}),(0,p.jsx)(d.Z,{breadcrumbs:ne,menuItems:y,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(a.Nk,{children:[0!==(null===P||void 0===P?void 0:P.length)&&(0,p.jsx)(a.lm,{children:(0,p.jsx)(b.Z,{navigationItems:P})}),(0,p.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(C.Z,{after:i,afterHeightOffset:x.Mz,afterHidden:t,afterMousedownActive:T,afterWidth:G,before:_,beforeHeightOffset:x.Mz,beforeMousedownActive:J,beforeWidth:a.k1+(_?Y:0),hideAfterCompletely:!0,leftOffset:_?a.k1:null,mainContainerRef:B,setAfterMousedownActive:F,setAfterWidth:U,setBeforeMousedownActive:Q,setBeforeWidth:K,children:[R&&(0,p.jsx)(h,{children:R}),M]})})]}),Z&&(0,p.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,p.jsx)(s.Z,S(S({},Z),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},59920:function(e,n,i){var t;i.d(n,{M:function(){return t}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SYNCS="syncs",e.TRIGGERS="triggers"}(t||(t={}))},2626:function(e,n,i){i.d(n,{Z:function(){return B}});var t=i(82394),r=i(21831),l=i(75582),o=i(82684),s=i(83455),c=i(34376),u=i(28598);var d=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("g",{clipPath:"url(#clip0_7525_68660)",children:(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.67625 7.82429C8.48671 8.13404 8.61933 8.53116 8.9436 8.69464C9.26787 8.85812 9.6606 8.72561 9.85513 8.41896C10.5416 7.33682 11.5276 6.47056 12.6997 5.92987C14.0715 5.29701 15.6173 5.14749 17.085 5.50568C18.5526 5.86388 19.8557 6.70866 20.7818 7.90233C21.7079 9.096 22.2023 10.5682 22.1845 12.0788C22.1667 13.5895 21.6377 15.0496 20.6837 16.2211C19.7298 17.3926 18.4071 18.2064 16.9314 18.5299C15.4557 18.8534 13.9139 18.6675 12.5573 18.0024C11.3984 17.4343 10.433 16.545 9.77227 15.447C9.58502 15.1358 9.19553 14.9941 8.86749 15.1499C8.53946 15.3057 8.39751 15.6995 8.5797 16.0137C9.37152 17.379 10.5525 18.4842 11.9785 19.1832C13.6018 19.9791 15.4469 20.2016 17.213 19.8145C18.979 19.4273 20.5619 18.4534 21.7035 17.0514C22.8451 15.6495 23.4781 13.9022 23.4994 12.0943C23.5208 10.2865 22.9291 8.52472 21.8208 7.09623C20.7126 5.66774 19.1532 4.65677 17.3968 4.22811C15.6403 3.79945 13.7905 3.97839 12.1488 4.73574C10.7068 5.40099 9.50004 6.47805 8.67625 7.82429ZM0.219185 12.5303C-0.0737079 12.2375 -0.0737079 11.7626 0.219185 11.4697L4.71918 6.96968C5.01208 6.67679 5.48695 6.67679 5.77985 6.96968C6.07274 7.26258 6.07274 7.73745 5.77985 8.03034L2.56017 11.25L15.7495 11.25C16.1637 11.25 16.4995 11.5858 16.4995 12C16.4995 12.4142 16.1637 12.75 15.7495 12.75L2.56017 12.75L5.77985 15.9697C6.07274 16.2626 6.07274 16.7375 5.77985 17.0303C5.48695 17.3232 5.01208 17.3232 4.71918 17.0303L0.219185 12.5303Z",fill:"url(#paint0_linear_7525_68660)"})}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_7525_68660",x1:"11.7498",y1:"4",x2:"11.7498",y2:"20",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},a=i(16953),p=i(61519);var f=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.25 1C23.25 0.585786 22.9142 0.25 22.5 0.25C22.0858 0.25 21.75 0.585786 21.75 1V15.5C21.75 15.9142 22.0858 16.25 22.5 16.25C22.9142 16.25 23.25 15.9142 23.25 15.5V1ZM5 4.25C5.41421 4.25 5.75 4.58579 5.75 5V15.5C5.75 15.9142 5.41421 16.25 5 16.25C4.58579 16.25 4.25 15.9142 4.25 15.5V5C4.25 4.58579 4.58579 4.25 5 4.25ZM1.5 7.25C1.91421 7.25 2.25 7.58579 2.25 8V15.5C2.25 15.9142 1.91421 16.25 1.5 16.25C1.08579 16.25 0.75 15.9142 0.75 15.5V8C0.75 7.58579 1.08579 7.25 1.5 7.25ZM9.25 7C9.25 6.58579 8.91421 6.25 8.5 6.25C8.08579 6.25 7.75 6.58579 7.75 7V15.5C7.75 15.9142 8.08579 16.25 8.5 16.25C8.91421 16.25 9.25 15.9142 9.25 15.5V7ZM12 8.75C12.4142 8.75 12.75 9.08579 12.75 9.5V15.5C12.75 15.9142 12.4142 16.25 12 16.25C11.5858 16.25 11.25 15.9142 11.25 15.5V9.5C11.25 9.08579 11.5858 8.75 12 8.75ZM16.25 11.5C16.25 11.0858 15.9142 10.75 15.5 10.75C15.0858 10.75 14.75 11.0858 14.75 11.5V15.5C14.75 15.9142 15.0858 16.25 15.5 16.25C15.9142 16.25 16.25 15.9142 16.25 15.5V11.5ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V15.5C19.75 15.9142 19.4142 16.25 19 16.25C18.5858 16.25 18.25 15.9142 18.25 15.5V10C18.25 9.58579 18.5858 9.25 19 9.25Z",fill:"url(#paint0_linear_2919_69883)"}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},h=i(47999),C=i(1210),b=i(34744),g=i(49894),v=i(67971),x=i(87372),j=i(98781),O=i(29664),m=i(86673);var w=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 17c0 1.1046-.89543 2-2 2s-2-.8954-2-2 .89543-2 2-2 2 .8954 2 2zm1.5 0c0 1.933-1.567 3.5-3.5 3.5S1.5 18.933 1.5 17s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5zm2.25-.5c0-.4142.3358-.75.75-.75H22c.4142 0 .75.3358.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.3358-.75-.75zM8.68946 4.29563c.16317-.38072-.0132-.82163-.39392-.9848-.38072-.16316-.82163.0132-.9848.39392L5.06418 8.94674c-.07952.18554-.3348.2052-.44179.03402L3.1361 6.60269c-.21953-.35125-.68225-.45803-1.0335-.2385-.35125.21954-.45803.68225-.2385 1.0335l1.48629 2.37807c.74892 1.19824 2.53587 1.06064 3.0925-.23814l2.24657-5.24199zM11.5 6.75c-.4142 0-.75.33579-.75.75s.3358.75.75.75H22c.4142 0 .75-.33579.75-.75s-.3358-.75-.75-.75H11.5z",fill:"url(#paint0_linear_2919_69883)"}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},S=i(82531),_=i(10503),k=i(9518),I=i(23831),M=i(73942),Z=i(49125),y=k.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],M.n_,3*Z.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||I.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),P=i(3055),E=i(59920),R=i(9736),H=i(96510),V=i(90211),L=i(24141);function D(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function N(e){for(var n=1;n=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return H}}]),(0,l.useEffect)((function(){null===B||void 0===B||!B.current||T||J||null===X||void 0===X||X(B.current.getBoundingClientRect().width)}),[T,G,J,Y,B,X,L]),(0,l.useEffect)((function(){T||(0,O.t8)(D,G)}),[t,T,G,D]),(0,l.useEffect)((function(){J||(0,O.t8)(N,Y)}),[J,Y,N]);var ie=(0,v.Z)(f);return(0,l.useEffect)((function(){w&&ie!==f&&U(f)}),[w,f,ie]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.Z,{title:H}),(0,p.jsx)(d.Z,{breadcrumbs:ne,menuItems:y,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(a.Nk,{children:[0!==(null===P||void 0===P?void 0:P.length)&&(0,p.jsx)(a.lm,{children:(0,p.jsx)(b.Z,{navigationItems:P})}),(0,p.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(C.Z,{after:i,afterHeightOffset:x.Mz,afterHidden:t,afterMousedownActive:T,afterWidth:G,before:_,beforeHeightOffset:x.Mz,beforeMousedownActive:J,beforeWidth:a.k1+(_?Y:0),hideAfterCompletely:!0,leftOffset:_?a.k1:null,mainContainerRef:B,setAfterMousedownActive:F,setAfterWidth:U,setBeforeMousedownActive:Q,setBeforeWidth:K,children:[R&&(0,p.jsx)(h,{children:R}),M]})})]}),Z&&(0,p.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,p.jsx)(s.Z,S(S({},Z),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},59920:function(e,n,i){var t;i.d(n,{M:function(){return t}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SYNCS="syncs",e.TRIGGERS="triggers"}(t||(t={}))},2626:function(e,n,i){i.d(n,{Z:function(){return B}});var t=i(82394),r=i(21831),l=i(75582),o=i(82684),s=i(83455),c=i(34376),u=i(28598);var d=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("g",{clipPath:"url(#clip0_7525_68660)",children:(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.67625 7.82429C8.48671 8.13404 8.61933 8.53116 8.9436 8.69464C9.26787 8.85812 9.6606 8.72561 9.85513 8.41896C10.5416 7.33682 11.5276 6.47056 12.6997 5.92987C14.0715 5.29701 15.6173 5.14749 17.085 5.50568C18.5526 5.86388 19.8557 6.70866 20.7818 7.90233C21.7079 9.096 22.2023 10.5682 22.1845 12.0788C22.1667 13.5895 21.6377 15.0496 20.6837 16.2211C19.7298 17.3926 18.4071 18.2064 16.9314 18.5299C15.4557 18.8534 13.9139 18.6675 12.5573 18.0024C11.3984 17.4343 10.433 16.545 9.77227 15.447C9.58502 15.1358 9.19553 14.9941 8.86749 15.1499C8.53946 15.3057 8.39751 15.6995 8.5797 16.0137C9.37152 17.379 10.5525 18.4842 11.9785 19.1832C13.6018 19.9791 15.4469 20.2016 17.213 19.8145C18.979 19.4273 20.5619 18.4534 21.7035 17.0514C22.8451 15.6495 23.4781 13.9022 23.4994 12.0943C23.5208 10.2865 22.9291 8.52472 21.8208 7.09623C20.7126 5.66774 19.1532 4.65677 17.3968 4.22811C15.6403 3.79945 13.7905 3.97839 12.1488 4.73574C10.7068 5.40099 9.50004 6.47805 8.67625 7.82429ZM0.219185 12.5303C-0.0737079 12.2375 -0.0737079 11.7626 0.219185 11.4697L4.71918 6.96968C5.01208 6.67679 5.48695 6.67679 5.77985 6.96968C6.07274 7.26258 6.07274 7.73745 5.77985 8.03034L2.56017 11.25L15.7495 11.25C16.1637 11.25 16.4995 11.5858 16.4995 12C16.4995 12.4142 16.1637 12.75 15.7495 12.75L2.56017 12.75L5.77985 15.9697C6.07274 16.2626 6.07274 16.7375 5.77985 17.0303C5.48695 17.3232 5.01208 17.3232 4.71918 17.0303L0.219185 12.5303Z",fill:"url(#paint0_linear_7525_68660)"})}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_7525_68660",x1:"11.7498",y1:"4",x2:"11.7498",y2:"20",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},a=i(16953),p=i(61519);var f=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.25 1C23.25 0.585786 22.9142 0.25 22.5 0.25C22.0858 0.25 21.75 0.585786 21.75 1V15.5C21.75 15.9142 22.0858 16.25 22.5 16.25C22.9142 16.25 23.25 15.9142 23.25 15.5V1ZM5 4.25C5.41421 4.25 5.75 4.58579 5.75 5V15.5C5.75 15.9142 5.41421 16.25 5 16.25C4.58579 16.25 4.25 15.9142 4.25 15.5V5C4.25 4.58579 4.58579 4.25 5 4.25ZM1.5 7.25C1.91421 7.25 2.25 7.58579 2.25 8V15.5C2.25 15.9142 1.91421 16.25 1.5 16.25C1.08579 16.25 0.75 15.9142 0.75 15.5V8C0.75 7.58579 1.08579 7.25 1.5 7.25ZM9.25 7C9.25 6.58579 8.91421 6.25 8.5 6.25C8.08579 6.25 7.75 6.58579 7.75 7V15.5C7.75 15.9142 8.08579 16.25 8.5 16.25C8.91421 16.25 9.25 15.9142 9.25 15.5V7ZM12 8.75C12.4142 8.75 12.75 9.08579 12.75 9.5V15.5C12.75 15.9142 12.4142 16.25 12 16.25C11.5858 16.25 11.25 15.9142 11.25 15.5V9.5C11.25 9.08579 11.5858 8.75 12 8.75ZM16.25 11.5C16.25 11.0858 15.9142 10.75 15.5 10.75C15.0858 10.75 14.75 11.0858 14.75 11.5V15.5C14.75 15.9142 15.0858 16.25 15.5 16.25C15.9142 16.25 16.25 15.9142 16.25 15.5V11.5ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V15.5C19.75 15.9142 19.4142 16.25 19 16.25C18.5858 16.25 18.25 15.9142 18.25 15.5V10C18.25 9.58579 18.5858 9.25 19 9.25Z",fill:"url(#paint0_linear_2919_69883)"}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},h=i(47999),C=i(1210),b=i(34744),g=i(28358),v=i(67971),x=i(87372),j=i(98781),O=i(29664),m=i(86673);var w=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 17c0 1.1046-.89543 2-2 2s-2-.8954-2-2 .89543-2 2-2 2 .8954 2 2zm1.5 0c0 1.933-1.567 3.5-3.5 3.5S1.5 18.933 1.5 17s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5zm2.25-.5c0-.4142.3358-.75.75-.75H22c.4142 0 .75.3358.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.3358-.75-.75zM8.68946 4.29563c.16317-.38072-.0132-.82163-.39392-.9848-.38072-.16316-.82163.0132-.9848.39392L5.06418 8.94674c-.07952.18554-.3348.2052-.44179.03402L3.1361 6.60269c-.21953-.35125-.68225-.45803-1.0335-.2385-.35125.21954-.45803.68225-.2385 1.0335l1.48629 2.37807c.74892 1.19824 2.53587 1.06064 3.0925-.23814l2.24657-5.24199zM11.5 6.75c-.4142 0-.75.33579-.75.75s.3358.75.75.75H22c.4142 0 .75-.33579.75-.75s-.3358-.75-.75-.75H11.5z",fill:"url(#paint0_linear_2919_69883)"}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},S=i(82531),_=i(10503),k=i(9518),I=i(23831),M=i(73942),Z=i(49125),y=k.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],M.n_,3*Z.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||I.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),P=i(3055),E=i(59920),R=i(9736),H=i(96510),V=i(90211),L=i(24141);function D(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function N(e){for(var n=1;n"}):n===i.Xm.EVENT&&e.push({uuid:"event",value:""}),e}function m(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),c=t[0],i=t[1],a=i;try{a=JSON.parse(i)}catch(l){}return d(d({},e),{},(0,o.Z)({},c,a))}),{}):e}},22673:function(e,n,t){var r=t(82684),o=t(73199),c=t.n(o),i=t(71593),a=t(9518),l=t(65292),s=t(23831),u=t(2005),d=t(49125),p=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,o=e.showLineNumbers,b=e.small,f=e.source,h=e.wrapLines,g=(0,r.useContext)(a.ThemeContext);return(0,p.jsx)(c(),{source:f,renderers:{code:function(e){var r=e.value;return(0,p.jsx)(i.Z,{customStyle:{backgroundColor:(g.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:u.Vp,fontSize:b?12:14,marginBottom:0,marginTop:0,paddingBottom:2*d.iI,paddingTop:2*d.iI,maxWidth:t},lineNumberStyle:{color:(g.content||s.Z.content).muted},language:n,showLineNumbers:o,style:l._4,useInlineStyles:!0,wrapLines:h,children:r})}}})}},65730:function(e,n,t){var r,o=t(82394),c=(t(82684),t(64866)),i=t(21764),a=t(67971),l=t(10919),s=t(86673),u=t(19711),d=t(46261),p=t(10503),b=t(49125),f=t(28598);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n=1&&e>=2&&n.push((0,f.jsx)("div",{style:{marginLeft:1.5*u.iI}},"spacing-".concat(x))),j?n.push((0,f.jsx)(i.Z,{backgroundGradient:l.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:g,onClick:function(e){(0,b.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:g,children:O},x)):n.push((0,f.jsx)("div",{style:{padding:4},children:(0,f.jsx)(o.Z,{borderLess:!0,compact:g,default:!0,onClick:function(e){(0,b.j)(e),d(t)},outline:!0,small:g,children:O},"button-tab-".concat(x))}))})),n}),[d,h,m]),j=(0,f.jsx)(c.Z,{alignItems:"center",children:x});return t?j:(0,f.jsx)(p,{allowScroll:n,noPadding:s,children:j})}},38341:function(e,n,t){var r=t(21831),o=t(82394),c=t(26304),i=(t(82684),t(9518)),a=t(67971),l=t(86673),s=t(19711),u=t(23831),d=t(10503),p=t(73942),b=t(49125),f=t(28598),h=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var n=1;n"}):n===i.Xm.EVENT&&e.push({uuid:"event",value:""}),e}function m(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),c=t[0],i=t[1],a=i;try{a=JSON.parse(i)}catch(l){}return d(d({},e),{},(0,o.Z)({},c,a))}),{}):e}},22673:function(e,n,t){var r=t(82684),o=t(73199),c=t.n(o),i=t(71593),a=t(9518),l=t(65292),s=t(23831),u=t(2005),d=t(49125),p=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,o=e.showLineNumbers,b=e.small,f=e.source,h=e.wrapLines,g=(0,r.useContext)(a.ThemeContext);return(0,p.jsx)(c(),{source:f,renderers:{code:function(e){var r=e.value;return(0,p.jsx)(i.Z,{customStyle:{backgroundColor:(g.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:u.Vp,fontSize:b?12:14,marginBottom:0,marginTop:0,paddingBottom:2*d.iI,paddingTop:2*d.iI,maxWidth:t},lineNumberStyle:{color:(g.content||s.Z.content).muted},language:n,showLineNumbers:o,style:l._4,useInlineStyles:!0,wrapLines:h,children:r})}}})}},65730:function(e,n,t){var r,o=t(82394),c=(t(82684),t(64866)),i=t(21764),a=t(67971),l=t(10919),s=t(86673),u=t(19711),d=t(46261),p=t(10503),b=t(49125),f=t(28598);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n=1&&e>=2&&n.push((0,f.jsx)("div",{style:{marginLeft:1.5*u.iI}},"spacing-".concat(x))),v?n.push((0,f.jsx)(i.Z,{backgroundGradient:l.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:g,onClick:function(e){(0,b.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:g,children:O},x)):n.push((0,f.jsx)("div",{style:{padding:4},children:(0,f.jsx)(o.Z,{borderLess:!0,compact:g,default:!0,onClick:function(e){(0,b.j)(e),d(t)},outline:!0,small:g,children:O},"button-tab-".concat(x))}))})),n}),[d,h,m]),v=(0,f.jsx)(c.Z,{alignItems:"center",children:x});return t?v:(0,f.jsx)(p,{allowScroll:n,noPadding:s,children:v})}},38341:function(e,n,t){var r=t(21831),o=t(82394),c=t(26304),i=(t(82684),t(9518)),a=t(67971),l=t(86673),s=t(19711),u=t(23831),d=t(10503),p=t(73942),b=t(49125),f=t(28598),h=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var n=1;n=n.length?{done:!0}:{done:!1,value:n[i++]}},e:function(n){throw n},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){c=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw o}}}}function F(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t0?n-1:n}))}),[]),dn=(0,a.useCallback)((function(){K((function(n){return n<=M.length?n+1:n}))}),[M]),fn=(0,a.useCallback)((function(n){var e=(null===n||void 0===n?void 0:n.split(/\n/))||[];if(e.length>1){var t=e.slice(0,-1);t[0]=M+t[0];var i=t.map((function(n,e){return{command:0===e,data:n,type:s.Gi.TEXT}}));L(q.length+t.length),H((function(n){return n.concat(t)})),en((function(n){return n.concat(i)})),B((function(n){return n+t.join("\n")}));var r=(e.slice(-1)[0]||"").trim();D(r),K(r.length)}else D((function(e){return e+n})),K(M.length+n.length)}),[M,q]);return cn(p,(function(n,t,i){var r=n.code,o=n.key;if(V)if((0,P.j)(n),(0,_.y)([j.PQ,j.VS],t))F(!1),en((function(n){var e;return n.concat({command:!0,data:(null===M||void 0===M||null===(e=M.trim())||void 0===e?void 0:e.length)>=1?M:"\n",type:s.Gi.TEXT})})),D(""),e();else if(!w)if(j.Qj!==r||t[j.zX])if((0,_.y)([j.QK],t))sn();else if((0,_.y)([j.DY],t))dn();else if((0,_.y)([j.Bu],t)){if(q.length>=1){var a,u=Math.max(0,U-1);D(q[u]),L(u),K((null===(a=q[u])||void 0===a?void 0:a.length)||0)}}else if((0,_.y)([j.kD],t)){if(q.length>=1){var l=Math.min(q.length,U+1),d=q[l]||"";D(d),L(l),K(d.length)}}else if((0,_.y)([j.Uq],t)){var f=G+M;(null===f||void 0===f?void 0:f.length)>=1&&(F(!0),on(JSON.stringify({api_key:I.l,code:"!".concat(f),token:(new c.Z).decodedToken.token,uuid:p})),L(q.length+1),H((function(n){return n.concat(M)})),K(0)),en((function(n){var e;return n.concat({command:!0,data:(null===M||void 0===M||null===(e=M.trim())||void 0===e?void 0:e.length)>=1?M:"\n",type:s.Gi.TEXT})})),B(""),D("")}else if((0,_.y)([j.zX,j.VS],t))navigator.clipboard.writeText(window.getSelection().toString());else if((0,_.y)([j.zX,j.Pd],t)||(0,_.y)([j.PQ,j.Pd],t)){var h,g,y,v,m;"undefined"===typeof(null===(h=navigator)||void 0===h?void 0:h.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(g=navigator)&&void 0!==g&&null!==(y=g.clipboard)&&void 0!==y&&y.readText?navigator.clipboard.readText().then(fn).catch((function(n){return alert("".concat(n,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(v=navigator)&&void 0!==v&&null!==(m=v.clipboard)&&void 0!==m&&m.read?navigator.clipboard.read().then((function(n){var e,t=Z(n);try{for(t.s();!(e=t.n()).done;){var i,r=e.value,o=Z(r.types);try{for(o.s();!(i=o.n()).done;){var a=i.value;if("text/plain"===a)return r.getType(a)}}catch(c){o.e(c)}finally{o.f()}}}catch(c){t.e(c)}finally{t.f()}})).then((function(n){return n.text()})).then(fn).catch((function(n){return alert("".concat(n,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else t[j.zX]||t[j.PQ]||1!==o.length||(D((function(n){return n.slice(0,z)+o+n.slice(z)})),dn());else{var b=Math.max(0,z-1);D((function(n){return n.slice(0,b)+n.slice(z)})),K((function(n){return Math.max(0,n-1)}))}}),[w,M,q,U,V,e,F,D,H,L,en,p]),(0,A.jsx)(b,{ref:y,width:g,children:(0,A.jsx)(u.Z,{isOpen:!0,onClick:function(){null===t||void 0===t||t(),W(!0),un(!0)},onClickOutside:function(){W(!1),un(!1)},style:{minHeight:"100%"},children:(0,A.jsxs)(x,{ref:v,width:g,children:[null===nn||void 0===nn?void 0:nn.reduce((function(n,e,t){var i=e||{},o=i.command,a=i.data,c=i.type,u=[];u=(u=Array.isArray(a)?a:[a]).filter((function(n){return n}));var d=[];return u.forEach((function(n,e){var i;if(s.jU.includes(c)&&(i=(0,A.jsxs)(h.ZP,{monospace:!0,noWrapping:!0,pre:!0,children:[n&&(0,A.jsx)(r(),{children:n}),!n&&(0,A.jsx)(A.Fragment,{children:"\xa0"})]})),i){var a="command-".concat(t,"-").concat(e,"-").concat(n);o?d.push((0,A.jsx)(S,{children:(0,A.jsxs)(l.Z,{alignItems:"center",children:[(0,A.jsx)(h.ZP,{inline:!0,monospace:!0,warning:!0,children:"\u2192\xa0"}),i]})},a)):d.push((0,A.jsx)(S,{children:i},a))}})),n.concat(d)}),[]),w&&(0,A.jsx)(d.Z,{mt:1,children:(0,A.jsx)(f.Z,{})}),!w&&(0,A.jsx)(T,{focused:V&&(0===M.length||z>M.length),children:(0,A.jsxs)(h.ZP,{monospace:!0,children:[(0,A.jsx)(h.ZP,{inline:!0,monospace:!0,warning:!0,children:"\u2192\xa0"}),null===M||void 0===M?void 0:M.split("").map((function(n,e){return(0,A.jsxs)(k,{focusBeginning:V&&0===z&&0===e,focused:V&&z===e+1,children:[" "===n&&(0,A.jsx)(A.Fragment,{children:"\xa0"})," "!==n&&n]},"command-".concat(e,"-").concat(n))}))]})})]})})})}},82635:function(n,e,t){var i,r;t.d(e,{Gi:function(){return r},jU:function(){return a},uF:function(){return i}}),function(n){n.BUSY="busy",n.IDLE="idle",n.QUEUED="queued"}(i||(i={})),function(n){n.IMAGE_PNG="image/png",n.PROGRESS="progress",n.TABLE="table",n.TEXT="text",n.TEXT_HTML="text/html",n.TEXT_PLAIN="text/plain"}(r||(r={}));var o,a=[r.TEXT,r.TEXT_PLAIN];!function(n){n.DISPLAY_DATA="display_data",n.STATUS="status",n.STREAM="stream",n.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},51504:function(n,e,t){t.d(e,{y:function(){return o}});var i=t(75582),r=t(16115);function o(n,e){var t=n.map((function(n){return String(n)})),o=n.includes(r.PQ),a=n.includes(r.zX),c=n.includes(r.XR),u=r.xU.map((function(n){return String(n)})),l=r.vk.map((function(n){return String(n)})),s=r.Tr.map((function(n){return String(n)})),d=Object.entries(e).find((function(n){var e=(0,i.Z)(n,2),r=e[0];return e[1]&&!t.includes(String(r))&&(!a||!l.includes(String(r)))&&(!o||!u.includes(String(r)))&&(!c||!s.includes(String(r)))}));return n.every((function(n){return e[n]}))&&!d}}}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/4178-663d9f70bffc7a47.js b/mage_ai/server/frontend_dist/_next/static/chunks/4178-663d9f70bffc7a47.js new file mode 100644 index 000000000000..9516cec034db --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/4178-663d9f70bffc7a47.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4178],{65597:function(e,n,i){i.d(n,{f:function(){return c}});var t=i(9518),r=i(23831),o=i(49125),u=i(73942),c=t.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,u.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||r.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},97496:function(e,n,i){var t=i(75582),r=i(12691),o=i.n(r),u=i(34376),c=i.n(u),l=i(82684),s=i(83455),a=i(60328),d=i(47999),p=i(93461),f=i(67971),h=i(10919),g=i(47409),j=i(86673),x=i(54283),m=i(87815),b=i(19711),Z=i(82531),_=i(23831),C=i(73942),v=i(10503),E=i(65597),I=i(93348),O=i(45838),P=i(49125),y=i(19395),w=i(9736),k=i(96510),A=i(28598);function D(e){var n=e.cancelingRunId,i=e.disabled,r=e.isLoadingCancelPipeline,o=e.onCancel,u=e.onSuccess,c=e.pipelineRun,p=e.setCancelingRunId,h=e.setErrors,m=e.setShowConfirmationId,O=e.showConfirmationId,y=(0,w.Ct)(),D=c||{},N=D.id,L=D.pipeline_schedule_id,S=D.pipeline_schedule_token,T=D.pipeline_schedule_type,R=D.status,V=r&&N===n&&g.V.RUNNING===R,U=(0,s.Db)(I.Xm.API===T&&S?Z.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(L,S):Z.ZP.pipeline_runs.pipeline_schedules.useCreate(L),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(){u()},onErrorCallback:function(e,n){return h({errors:n,response:e})}})}}),M=(0,t.Z)(U,1)[0],F=(0,l.useCallback)((function(){m(null),M({pipeline_run:{execution_date:null===c||void 0===c?void 0:c.execution_date,pipeline_schedule_id:null===c||void 0===c?void 0:c.pipeline_schedule_id,pipeline_uuid:null===c||void 0===c?void 0:c.pipeline_uuid,variables:null===c||void 0===c?void 0:c.variables}})}),[M,c,m]),B=(0,l.useCallback)((function(){m(null),p(N),o({id:N,status:g.V.CANCELLED})}),[o,N,p,m]);return(0,A.jsxs)("div",{style:{position:"relative"},children:[(0,A.jsx)(a.Z,{backgroundColor:V&&_.Z.accent.yellow,beforeIcon:g.V.INITIAL!==R&&(0,A.jsxs)(A.Fragment,{children:[g.V.COMPLETED===R&&(0,A.jsx)(v.Jr,{size:2*P.iI}),[g.V.FAILED,g.V.CANCELLED].includes(R)&&(0,A.jsx)(v.Py,{inverted:g.V.CANCELLED===R&&!y,size:2*P.iI}),[g.V.RUNNING].includes(R)&&(0,A.jsx)(x.Z,{color:V?_.Z.status.negative:_.Z.monotone.white,small:!0})]}),borderRadius:C.D7,danger:g.V.FAILED===R&&!y,default:g.V.INITIAL===R,disabled:i||y,loading:!c,onClick:function(){return m(N)},padding:"6px",primary:g.V.RUNNING===R&&!V&&!y,warning:g.V.CANCELLED===R&&!y,children:i?"Ready":V?"Canceling":g.D[R]}),(0,A.jsx)(d.Z,{onClickOutside:function(){return m(null)},open:O===N,children:(0,A.jsxs)(E.f,{children:[[g.V.RUNNING,g.V.INITIAL].includes(R)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(b.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,A.jsx)(j.Z,{mb:1}),(0,A.jsxs)(b.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,A.jsx)("br",{}),"the current pipeline run."]}),(0,A.jsx)(b.ZP,{}),(0,A.jsx)(j.Z,{mt:1,children:(0,A.jsxs)(f.Z,{children:[(0,A.jsx)(a.Z,{onClick:function(){B(),F()},children:"Retry run"}),(0,A.jsx)(j.Z,{ml:1}),(0,A.jsx)(a.Z,{onClick:B,children:"Cancel run"})]})})]}),[g.V.CANCELLED,g.V.FAILED,g.V.COMPLETED].includes(R)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(b.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",R]}),(0,A.jsx)(j.Z,{mb:1}),(0,A.jsx)(b.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,A.jsx)(j.Z,{mb:1}),(0,A.jsx)(a.Z,{onClick:F,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.disableRowSelect,i=e.emptyMessage,r=void 0===i?"No runs available":i,u=e.fetchPipelineRuns,d=e.onClickRow,x=e.pipelineRuns,_=e.selectedRun,E=e.setErrors,I=(0,l.useState)(null),w=I[0],N=I[1],L=(0,l.useState)(null),S=L[0],T=L[1],R=(0,s.Db)((function(e){var n=e.id,i=e.status;return Z.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:i}})}),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(){N(null),u()},onErrorCallback:function(e,n){N(null),E({errors:n,response:e})}})}}),V=(0,t.Z)(R,2),U=V[0],M=V[1].isLoading,F=[null,1,2,1,1,null],B=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}];return!n&&d&&(F.push(null),B.push({label:function(){return""},uuid:"action"})),(0,A.jsx)(O.cl,{minHeight:30*P.iI,overflowVisible:!!S,children:0===(null===x||void 0===x?void 0:x.length)?(0,A.jsx)(j.Z,{px:3,py:1,children:(0,A.jsx)(b.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:r})}):(0,A.jsx)(m.Z,{columnFlex:F,columns:B,isSelectedRow:function(e){return!n&&x[e].id===(null===_||void 0===_?void 0:_.id)},onClickRow:n?null:d,rowVerticalPadding:6,rows:null===x||void 0===x?void 0:x.map((function(e,i){var t=e.block_runs_count,r=e.completed_at,l=e.execution_date,s=e.id,m=e.pipeline_schedule_id,Z=e.pipeline_schedule_name,_=e.pipeline_uuid,I=e.status,O=!s&&!I,k=[];return k=i>0&&x[i-1].execution_date===e.execution_date&&x[i-1].pipeline_schedule_id===e.pipeline_schedule_id?[(0,A.jsx)(j.Z,{ml:1,children:(0,A.jsxs)(f.Z,{alignItems:"center",children:[(0,A.jsx)(v.TT,{size:2*P.iI,useStroke:!0}),(0,A.jsx)(a.Z,{borderRadius:C.D7,notClickable:!0,padding:"6px",children:(0,A.jsx)(b.ZP,{muted:!0,children:g.D[I]})})]})},"row_status"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:_},"row_pipeline_uuid"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,A.jsx)(o(),{as:"/pipelines/".concat(_,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,muted:!0,children:"See block runs (".concat(t,")")})},"row_block_runs"),(0,A.jsx)(b.ZP,{monospace:!0,muted:!0,children:r&&(0,y.eI)(r).toISOString().split(".")[0]||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(_,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(v.B4,{default:!0,size:2*P.iI})},"row_logs")]:[(0,A.jsx)(D,{cancelingRunId:w,disabled:O,isLoadingCancelPipeline:M,onCancel:U,onSuccess:u,pipelineRun:e,setCancelingRunId:N,setErrors:E,setShowConfirmationId:T,showConfirmationId:S},"row_retry_button"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,children:_},"row_pipeline_uuid"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,children:l&&(0,y.eI)(l).toISOString().split(".")[0]||"-"},"row_date"),(0,A.jsx)(o(),{as:"/pipelines/".concat(_,"/triggers/").concat(m),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:Z})},"row_trigger"),(0,A.jsx)(o(),{as:"/pipelines/".concat(_,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,disabled:O,sameColorAsText:!0,children:O?"":"See block runs (".concat(t,")")})},"row_block_runs"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,children:r&&(0,y.eI)(r).toISOString().split(".")[0]||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,disabled:O,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(_,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(v.B4,{default:!0,size:2*P.iI})},"row_item_13")],!n&&d&&k.push((0,A.jsx)(p.Z,{flex:1,justifyContent:"flex-end",children:(0,A.jsx)(v._Q,{default:!0,size:2*P.iI})})),k})),uuid:"pipeline-runs"})})}},19395:function(e,n,i){i.d(n,{IJ:function(){return a},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},vJ:function(){return g}});var t,r,o=i(82394),u=i(92083),c=i.n(u);function l(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function s(e){for(var n=1;nd)p=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(f/2),g=n-h;n+h>=d?(g=d-f+2,f-=2):n-h<=0?(g=0,f-=2):(f-=4,g=n-Math.floor(f/2)),p=Array.from({length:f},(function(e,n){return n+g}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(r.Z,{alignItems:"center",children:[(0,s.jsx)(t.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,s.jsx)(u.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!p.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!p.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!p.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(t.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,s.jsx)(u.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},47409:function(e,n,i){i.d(n,{D:function(){return u},V:function(){return o}});var t,r=i(82394),o=i(66050).V,u=(t={},(0,r.Z)(t,o.CANCELLED,"Cancelled"),(0,r.Z)(t,o.COMPLETED,"Done"),(0,r.Z)(t,o.FAILED,"Failed"),(0,r.Z)(t,o.INITIAL,"Ready"),(0,r.Z)(t,o.RUNNING,"Running"),t)},93348:function(e,n,i){i.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return a},fq:function(){return c},kJ:function(){return s}});var t,r,o,u=i(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var c,l,s,a=(t={},(0,u.Z)(t,o.API,(function(){return"API"})),(0,u.Z)(t,o.EVENT,(function(){return"event"})),(0,u.Z)(t,o.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var d=(r={},(0,u.Z)(r,s.CREATED_AT,"Created at"),(0,u.Z)(r,s.NAME,"Name"),(0,u.Z)(r,s.PIPELINE,"Pipeline"),(0,u.Z)(r,s.STATUS,"Status"),(0,u.Z)(r,s.TYPE,"Type"),r)},33766:function(e,n,i){i.d(n,{g_:function(){return p},u7:function(){return d}});var t=i(75582),r=i(82394),o=i(34376),u=i.n(o),c=i(59e3),l=i(24224);function s(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function a(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},r=i.replaceParams,o=i.pushHistory,l=r?{}:(0,c.iV)();n=window.location.pathname;var s=o?u().push:u().replace,d=a(a({},l),e);Object.entries(e).forEach((function(e){var n=(0,t.Z)(e,2),i=n[0],r=n[1];"undefined"!==typeof r&&null!==r||delete d[i]}));var p=(0,c.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return s(u().router.pathname,f,{shallow:!0})}function p(e,n,i){var r=i.addingMultipleValues,o=i.isList,u=i.itemsPerPage,c=i.resetLimitParams,s=a({},e);r?Object.entries(n).forEach((function(e){var n=(0,t.Z)(e,2),i=n[0],r=n[1];if(Array.isArray(r)){var o="".concat(i,"[]");s[o]=r.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,t.Z)(e,2),i=n[0],r=n[1],o=String(r),u="".concat(i,"[]"),c=s[u];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?s[u]=(0,l.Od)(c,(function(e){return e===o})):s[u]=c.concat(o):s[u]=[o]})):s=a(a({},s),n),c&&(s._limit=u||20,s._offset=0),d(s)}}}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/4463-769ca52e44924552.js b/mage_ai/server/frontend_dist/_next/static/chunks/4463-769ca52e44924552.js deleted file mode 100644 index ce71e1390eb4..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/4463-769ca52e44924552.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4463],{44162:function(n,t,e){e.d(t,{HC:function(){return g},Kf:function(){return s},Nk:function(){return p},gE:function(){return m},jv:function(){return h},nz:function(){return f},oh:function(){return a},qn:function(){return u},t1:function(){return b},y9:function(){return v}});var o=e(9518),r=e(23831),i=e(86422),c=e(73942),d=e(49125),l=e(90880),a=68;function u(n,t){var e,o,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||r.Z.borders).light,d=((null===t||void 0===t||null===(o=t.theme)||void 0===o?void 0:o.monotone)||r.Z.monotone).grey500,l=t||{},a=l.blockColor,u=l.isSelected,s=l.theme;return u?c=((null===s||void 0===s?void 0:s.content)||r.Z.content).active:i.tf.TRANSFORMER===n||a===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).purple,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).purpleLight):i.tf.DATA_EXPORTER===n||a===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).yellow,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).yellowLight):i.tf.DATA_LOADER===n||a===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).blue,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).blueLight):i.tf.SENSOR===n||a===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).pink,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).pinkLight):i.tf.DBT===n?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).dbt,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).dbtLight):a===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).teal,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).tealLight):(i.tf.SCRATCHPAD===n||a===i.Lq.GREY||i.tf.CUSTOM===n&&!a)&&(c=((null===s||void 0===s?void 0:s.content)||r.Z.content).default,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).contentDefaultTransparent),{accent:c,accentLight:d}}var s=(0,o.css)([""," "," "," "," "," "," ",""],(0,l.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(u(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(u(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||r.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||r.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=o.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,d.iI,(function(n){return"\n background-color: ".concat((n.theme||r.Z).background.content,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),h=o.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-2"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,d.iI,d.iI,(function(n){return"\n background-color: ".concat((n.theme.background||r.Z.background).codeTextarea,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),m=o.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-3"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*d.iI,.5*d.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||r.Z.text).fileBrowser,";\n ")})),b=o.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-4"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*d.iI),v=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-5"})(["margin-bottom:","px;padding-bottom:","px;",""],d.cd*d.iI,d.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?d.iI:a,"px;\n ")})),g=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*d.iI,a)},45838:function(n,t,e){e.d(t,{GZ:function(){return s},Vq:function(){return a},cE:function(){return p},cl:function(){return d},kA:function(){return l}});var o=e(9518),r=e(23831),i=e(37391),c=e(49125),d=o.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),l=o.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=o.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),u=(0,o.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),s=o.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],u,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),p=o.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],u,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||r.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,t,e){var o=e(82394),r=e(12691),i=e.n(r),c=e(82684),d=e(67971),l=e(10919),a=e(86673),u=e(19711),s=e(46261),p=e(45838),f=e(28598);function h(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function m(n){for(var t=1;t=1&&!E&&(0,f.jsx)(p.Vq,{noHover:!0,children:x.map((function(n,t){return(0,f.jsx)(p.GZ,{columnBorders:h,compact:R,last:t===x.length-1,noBorder:T,sticky:S,children:(0,f.jsxs)(d.Z,{alignItems:"center",children:[(0,f.jsx)(u.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,f.jsx)(a.Z,{ml:"4px",children:(0,f.jsx)(s.Z,{appearBefore:!0,label:(0,f.jsx)(u.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(D,"-col-").concat(n.uuid,"-").concat(t))}))}),L]})}},86422:function(n,t,e){e.d(t,{$W:function(){return p},DA:function(){return s},HX:function(){return m},J8:function(){return h},Lq:function(){return a},Qj:function(){return b},Ut:function(){return R},V4:function(){return x},VZ:function(){return f},dO:function(){return u},f2:function(){return g},iZ:function(){return v},t6:function(){return c},tf:function(){return l}});var o,r,i,c,d=e(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var l,a,u=(o={},(0,d.Z)(o,c.PYTHON,"PY"),(0,d.Z)(o,c.R,"R"),(0,d.Z)(o,c.SQL,"SQL"),(0,d.Z)(o,c.YAML,"YAML"),o);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(l||(l={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.TRANSFORMER],f=[l.DATA_EXPORTER,l.DATA_LOADER],h=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],m=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],b=[l.CHART,l.SCRATCHPAD,l.SENSOR],v=[l.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var g=[l.CUSTOM,l.DATA_EXPORTER,l.TRANSFORMER],x=(r={},(0,d.Z)(r,l.CUSTOM,"Custom"),(0,d.Z)(r,l.DATA_EXPORTER,"Data exporter"),(0,d.Z)(r,l.DATA_LOADER,"Data loader"),(0,d.Z)(r,l.SCRATCHPAD,"Scratchpad"),(0,d.Z)(r,l.SENSOR,"Sensor"),(0,d.Z)(r,l.TRANSFORMER,"Transformer"),r),R=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER];i={},(0,d.Z)(i,l.DATA_EXPORTER,"DE"),(0,d.Z)(i,l.DATA_LOADER,"DL"),(0,d.Z)(i,l.SCRATCHPAD,"SP"),(0,d.Z)(i,l.SENSOR,"SR"),(0,d.Z)(i,l.TRANSFORMER,"TF")}}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/4463-777e71000be29fc4.js b/mage_ai/server/frontend_dist/_next/static/chunks/4463-777e71000be29fc4.js new file mode 100644 index 000000000000..928ed8b17b6e --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/4463-777e71000be29fc4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4463],{44162:function(n,e,t){t.d(e,{HC:function(){return g},Kf:function(){return s},Nk:function(){return p},gE:function(){return m},jv:function(){return h},nz:function(){return f},oh:function(){return a},qn:function(){return u},t1:function(){return b},y9:function(){return v}});var o=t(9518),r=t(23831),i=t(86422),c=t(73942),d=t(49125),l=t(90880),a=68;function u(n,e){var t,o,c=((null===e||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.borders)||r.Z.borders).light,d=((null===e||void 0===e||null===(o=e.theme)||void 0===o?void 0:o.monotone)||r.Z.monotone).grey500,l=e||{},a=l.blockColor,u=l.isSelected,s=l.theme;return u?c=((null===s||void 0===s?void 0:s.content)||r.Z.content).active:i.tf.TRANSFORMER===n||a===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).purple,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).purpleLight):i.tf.DATA_EXPORTER===n||a===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).yellow,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).yellowLight):i.tf.DATA_LOADER===n||a===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).blue,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).blueLight):i.tf.SENSOR===n||a===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).pink,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).pinkLight):i.tf.DBT===n?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).dbt,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).dbtLight):i.tf.EXTENSION===n||a===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).teal,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).tealLight):(i.tf.SCRATCHPAD===n||a===i.Lq.GREY||i.tf.CUSTOM===n&&!a)&&(c=((null===s||void 0===s?void 0:s.content)||r.Z.content).default,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).contentDefaultTransparent),{accent:c,accentLight:d}}var s=(0,o.css)([""," "," "," "," "," "," ",""],(0,l.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(u(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(u(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||r.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||r.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=o.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,d.iI,(function(n){return"\n background-color: ".concat((n.theme||r.Z).background.content,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),h=o.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-2"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,d.iI,d.iI,(function(n){return"\n background-color: ".concat((n.theme.background||r.Z.background).codeTextarea,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),m=o.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-3"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*d.iI,.5*d.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||r.Z.text).fileBrowser,";\n ")})),b=o.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-4"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*d.iI),v=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-5"})(["margin-bottom:","px;padding-bottom:","px;",""],d.cd*d.iI,d.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?d.iI:a,"px;\n ")})),g=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*d.iI,a)},45838:function(n,e,t){t.d(e,{GZ:function(){return s},Vq:function(){return a},cE:function(){return p},cl:function(){return d},kA:function(){return l}});var o=t(9518),r=t(23831),i=t(37391),c=t(49125),d=o.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),l=o.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=o.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),u=(0,o.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),s=o.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],u,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),p=o.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],u,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||r.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){var o=t(82394),r=t(12691),i=t.n(r),c=t(82684),d=t(67971),l=t(10919),a=t(86673),u=t(19711),s=t(46261),p=t(45838),f=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function m(n){for(var e=1;e=1&&!E&&(0,f.jsx)(p.Vq,{noHover:!0,children:x.map((function(n,e){return(0,f.jsx)(p.GZ,{columnBorders:h,compact:R,last:e===x.length-1,noBorder:T,sticky:D,children:(0,f.jsxs)(d.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,f.jsx)(u.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,f.jsx)(a.Z,{ml:"4px",children:(0,f.jsx)(s.Z,{appearBefore:!0,label:(0,f.jsx)(u.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(_,"-col-").concat(n.uuid,"-").concat(e))}))}),N]})}},86422:function(n,e,t){t.d(e,{$W:function(){return p},DA:function(){return s},HX:function(){return m},J8:function(){return h},Lq:function(){return a},Qj:function(){return b},Ut:function(){return R},V4:function(){return x},VZ:function(){return f},dO:function(){return u},f2:function(){return g},iZ:function(){return v},t6:function(){return c},tf:function(){return l}});var o,r,i,c,d=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var l,a,u=(o={},(0,d.Z)(o,c.PYTHON,"PY"),(0,d.Z)(o,c.R,"R"),(0,d.Z)(o,c.SQL,"SQL"),(0,d.Z)(o,c.YAML,"YAML"),o);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(l||(l={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.TRANSFORMER],f=[l.DATA_EXPORTER,l.DATA_LOADER],h=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],m=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],b=[l.CHART,l.SCRATCHPAD,l.SENSOR],v=[l.EXTENSION,l.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var g=[l.CUSTOM,l.DATA_EXPORTER,l.TRANSFORMER],x=(r={},(0,d.Z)(r,l.CUSTOM,"Custom"),(0,d.Z)(r,l.DATA_EXPORTER,"Data exporter"),(0,d.Z)(r,l.DATA_LOADER,"Data loader"),(0,d.Z)(r,l.EXTENSION,"Extension"),(0,d.Z)(r,l.SCRATCHPAD,"Scratchpad"),(0,d.Z)(r,l.SENSOR,"Sensor"),(0,d.Z)(r,l.TRANSFORMER,"Transformer"),r),R=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER];i={},(0,d.Z)(i,l.DATA_EXPORTER,"DE"),(0,d.Z)(i,l.DATA_LOADER,"DL"),(0,d.Z)(i,l.SCRATCHPAD,"SP"),(0,d.Z)(i,l.SENSOR,"SR"),(0,d.Z)(i,l.TRANSFORMER,"TF")}}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/4538-347283088b83c6bf.js b/mage_ai/server/frontend_dist/_next/static/chunks/4538-8a3c3e47be976ede.js similarity index 99% rename from mage_ai/server/frontend_dist/_next/static/chunks/4538-347283088b83c6bf.js rename to mage_ai/server/frontend_dist/_next/static/chunks/4538-8a3c3e47be976ede.js index 7f0ac24f3d72..594ea9d48975 100644 --- a/mage_ai/server/frontend_dist/_next/static/chunks/4538-347283088b83c6bf.js +++ b/mage_ai/server/frontend_dist/_next/static/chunks/4538-8a3c3e47be976ede.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4538],{52136:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(5237),l=n(29989),s=n(81352),f=n(46119),p=n(88543),d=n(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function v(){return v=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,y),Z=null!=C?C:(0,f.Z)(i,j),D=(null!=E?E:0)+(0,d.Z)(i)/2,N=Z.map((function(e,t){var n,r=(null!=(n=(0,p.Z)(i(e)))?n:0)+D;return{index:t,from:new s.Z({x:r,y:0}),to:new s.Z({x:r,y:h})}}));return a.createElement(l.Z,{className:c()("visx-columns",w),top:n,left:o},P?P({lines:N}):N.map((function(e){var t=e.from,n=e.to,r=e.index;return a.createElement(u.Z,v({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:x,strokeDasharray:O,style:k},R))})))}h.propTypes={tickValues:o().array,height:o().number.isRequired}},53655:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(29989),l=["className","top","left","data","binWidth","binHeight","x0","gap","xScale","yScale","colorScale","opacityScale","bins","count","children"];function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,l),D=p-m,N=y-m,T=i.map((function(e,t){var n=g(t);return E(e).map((function(r,o){var a=P(r);return{bin:r,row:o,column:t,datum:e,width:D,height:N,gap:m,count:a,x:n+h,y:x(o)+m,color:w(a),opacity:j(a)}}))}));return R?a.createElement(a.Fragment,null,R(T)):a.createElement(u.Z,{className:"visx-heatmap-rects",top:n,left:r},T.map((function(e){return e.map((function(e){return a.createElement("rect",s({key:"heatmap-tile-rect-"+e.row+"-"+e.column,className:c()("visx-heatmap-rect",t),width:e.width,height:e.height,x:e.x,y:e.y,fill:e.color,fillOpacity:e.opacity},Z))}))})))}f.propTypes={data:o().array,left:o().number,top:o().number,binWidth:o().number,binHeight:o().number,x0:o().number,gap:o().number,xScale:o().func.isRequired,yScale:o().func.isRequired,bins:o().func,count:o().func,className:o().string,children:o().func}},95422:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,l),O=(0,u.Z)(y),w=t.map((function(e,t){return{index:t,x0:d(p(e)),bars:b.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,width:O,x:y(t)||0,y:v(r)||0,color:h(t,n),height:m-(v(r)||0)}}))}}));return g?r.createElement(r.Fragment,null,g(w)):r.createElement(i.Z,{className:a()("visx-bar-group",n),top:o,left:f},w.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},x))})))})))}},39048:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,l),w=(0,u.Z)(h),S=t.map((function(e,t){return{index:t,y0:v(y(e))||0,bars:g.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,height:w,x:d(r)||0,y:h(t)||0,color:m(t,n),width:b(r)||0}}))}}));return x?r.createElement(r.Fragment,null,x(S)):r.createElement(i.Z,{className:a()("visx-bar-group-horizontal",n),top:o,left:f},S.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},O))})))})))}},85587:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(82684),o=n(63588),a=n.n(o),i=n(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function u(){return u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,c),g=(0,i.jv)({x:l,y:s,defined:b,curve:y});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",u({ref:v,className:a()("visx-linepath",d),d:g(o)||"",fill:p,strokeLinecap:"round"},m))}},39309:function(e,t,n){"use strict";n.d(t,{SO:function(){return i},jv:function(){return c}});var r=n(48167),o=n(92201),a=n(13004);function i(e){var t=void 0===e?{}:e,n=t.x,o=t.x0,i=t.x1,c=t.y,u=t.y0,l=t.y1,s=t.defined,f=t.curve,p=(0,r.Z)();return n&&(0,a.Z)(p.x,n),o&&(0,a.Z)(p.x0,o),i&&(0,a.Z)(p.x1,i),c&&(0,a.Z)(p.y,c),u&&(0,a.Z)(p.y0,u),l&&(0,a.Z)(p.y1,l),s&&p.defined(s),f&&p.curve(f),p}function c(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,c=t.curve,u=(0,o.Z)();return n&&(0,a.Z)(u.x,n),r&&(0,a.Z)(u.y,r),i&&u.defined(i),c&&u.curve(c),u}},98889:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(39309),l=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,l),O=(0,u.SO)({x:n,x0:r,x1:o,y:i,y0:f,y1:p,defined:h,curve:m});return t?a.createElement(a.Fragment,null,t({path:O})):a.createElement("path",s({ref:g,className:c()("visx-area",b),d:O(y)||""},x))}var p=["id","children"];function d(){return d=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,p);return a.createElement("defs",null,a.createElement("clipPath",d({id:t},r),n))}function v(){return v=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n{let t;const n=new Set,r=(e,r)=>{const o="function"===typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,a),a};var a=n(81550);const{useSyncExternalStoreWithSelector:i}=a;const c=e=>{const t="function"===typeof e?(e=>e?o(e):o)(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=i(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(t,e,n);return Object.assign(n,t),n};var u=e=>e?c(e):c;const l=e=>{const t=u((()=>e)),n=(Object.keys(e),(e,n)=>{t.setState((t=>{return{[e]:(r=t[e],o=n,"function"==typeof o?o(r):o)};var r,o}))});return{useGlobalState:e=>{const o=(0,r.useCallback)((t=>t[e]),[e]);return[t(o),(0,r.useCallback)((t=>n(e,t)),[e])]},getGlobalState:e=>t.getState()[e],setGlobalState:n,subscribe:(e,n)=>{t.subscribe(((t,r)=>{t[e]!==r[e]&&n(t[e])}))}}}},67403:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r=0||(o[n]=e[n]);return o}(e,y),Z=null!=C?C:(0,f.Z)(i,j),D=(null!=E?E:0)+(0,d.Z)(i)/2,N=Z.map((function(e,t){var n,r=(null!=(n=(0,p.Z)(i(e)))?n:0)+D;return{index:t,from:new s.Z({x:r,y:0}),to:new s.Z({x:r,y:h})}}));return a.createElement(l.Z,{className:c()("visx-columns",w),top:n,left:o},P?P({lines:N}):N.map((function(e){var t=e.from,n=e.to,r=e.index;return a.createElement(u.Z,v({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:x,strokeDasharray:O,style:k},R))})))}h.propTypes={tickValues:o().array,height:o().number.isRequired}},53655:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(29989),l=["className","top","left","data","binWidth","binHeight","x0","gap","xScale","yScale","colorScale","opacityScale","bins","count","children"];function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,l),D=p-m,N=y-m,T=i.map((function(e,t){var n=g(t);return E(e).map((function(r,o){var a=P(r);return{bin:r,row:o,column:t,datum:e,width:D,height:N,gap:m,count:a,x:n+h,y:x(o)+m,color:w(a),opacity:j(a)}}))}));return R?a.createElement(a.Fragment,null,R(T)):a.createElement(u.Z,{className:"visx-heatmap-rects",top:n,left:r},T.map((function(e){return e.map((function(e){return a.createElement("rect",s({key:"heatmap-tile-rect-"+e.row+"-"+e.column,className:c()("visx-heatmap-rect",t),width:e.width,height:e.height,x:e.x,y:e.y,fill:e.color,fillOpacity:e.opacity},Z))}))})))}f.propTypes={data:o().array,left:o().number,top:o().number,binWidth:o().number,binHeight:o().number,x0:o().number,gap:o().number,xScale:o().func.isRequired,yScale:o().func.isRequired,bins:o().func,count:o().func,className:o().string,children:o().func}},95422:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,l),O=(0,u.Z)(y),w=t.map((function(e,t){return{index:t,x0:d(p(e)),bars:b.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,width:O,x:y(t)||0,y:v(r)||0,color:h(t,n),height:m-(v(r)||0)}}))}}));return g?r.createElement(r.Fragment,null,g(w)):r.createElement(i.Z,{className:a()("visx-bar-group",n),top:o,left:f},w.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},x))})))})))}},39048:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,l),w=(0,u.Z)(h),S=t.map((function(e,t){return{index:t,y0:v(y(e))||0,bars:g.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,height:w,x:d(r)||0,y:h(t)||0,color:m(t,n),width:b(r)||0}}))}}));return x?r.createElement(r.Fragment,null,x(S)):r.createElement(i.Z,{className:a()("visx-bar-group-horizontal",n),top:o,left:f},S.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},O))})))})))}},85587:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(82684),o=n(63588),a=n.n(o),i=n(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function u(){return u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,c),g=(0,i.jv)({x:l,y:s,defined:b,curve:y});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",u({ref:v,className:a()("visx-linepath",d),d:g(o)||"",fill:p,strokeLinecap:"round"},m))}},39309:function(e,t,n){"use strict";n.d(t,{SO:function(){return i},jv:function(){return c}});var r=n(48167),o=n(92201),a=n(49894);function i(e){var t=void 0===e?{}:e,n=t.x,o=t.x0,i=t.x1,c=t.y,u=t.y0,l=t.y1,s=t.defined,f=t.curve,p=(0,r.Z)();return n&&(0,a.Z)(p.x,n),o&&(0,a.Z)(p.x0,o),i&&(0,a.Z)(p.x1,i),c&&(0,a.Z)(p.y,c),u&&(0,a.Z)(p.y0,u),l&&(0,a.Z)(p.y1,l),s&&p.defined(s),f&&p.curve(f),p}function c(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,c=t.curve,u=(0,o.Z)();return n&&(0,a.Z)(u.x,n),r&&(0,a.Z)(u.y,r),i&&u.defined(i),c&&u.curve(c),u}},98889:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(39309),l=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,l),O=(0,u.SO)({x:n,x0:r,x1:o,y:i,y0:f,y1:p,defined:h,curve:m});return t?a.createElement(a.Fragment,null,t({path:O})):a.createElement("path",s({ref:g,className:c()("visx-area",b),d:O(y)||""},x))}var p=["id","children"];function d(){return d=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,p);return a.createElement("defs",null,a.createElement("clipPath",d({id:t},r),n))}function v(){return v=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n{let t;const n=new Set,r=(e,r)=>{const o="function"===typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,a),a};var a=n(81550);const{useSyncExternalStoreWithSelector:i}=a;const c=e=>{const t="function"===typeof e?(e=>e?o(e):o)(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=i(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(t,e,n);return Object.assign(n,t),n};var u=e=>e?c(e):c;const l=e=>{const t=u((()=>e)),n=(Object.keys(e),(e,n)=>{t.setState((t=>{return{[e]:(r=t[e],o=n,"function"==typeof o?o(r):o)};var r,o}))});return{useGlobalState:e=>{const o=(0,r.useCallback)((t=>t[e]),[e]);return[t(o),(0,r.useCallback)((t=>n(e,t)),[e])]},getGlobalState:e=>t.getState()[e],setGlobalState:n,subscribe:(e,n)=>{t.subscribe(((t,r)=>{t[e]!==r[e]&&n(t[e])}))}}}},67403:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r0&&j[t-1].execution_date===e.execution_date&&j[t-1].pipeline_schedule_id===e.pipeline_schedule_id?[(0,D.jsx)(b.Z,{ml:1,children:(0,D.jsxs)(f.Z,{alignItems:"center",children:[(0,D.jsx)(_.TT,{size:2*E.iI,useStroke:!0}),(0,D.jsx)(a.Z,{borderRadius:O.D7,notClickable:!0,padding:"6px",children:(0,D.jsx)(x.ZP,{muted:!0,children:g.D[w]})})]})},"row_status"),(0,D.jsx)(x.ZP,{default:!0,monospace:!0,muted:!0,children:v},"row_pipeline_uuid"),(0,D.jsx)(x.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,D.jsx)(x.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,D.jsx)(o(),{as:"/pipelines/".concat(v,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,D.jsx)(h.Z,{bold:!0,muted:!0,children:"See block runs (".concat(r,")")})},"row_block_runs"),(0,D.jsx)(x.ZP,{monospace:!0,muted:!0,children:i&&(0,y.eI)(i).toISOString().split(".")[0]||"-"},"row_completed"),(0,D.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(v,"/logs?pipeline_run_id[]=").concat(s))},children:(0,D.jsx)(_.B4,{default:!0,size:2*E.iI})},"row_logs")]:[(0,D.jsx)(A,{cancelingRunId:P,disabled:I,isLoadingCancelPipeline:M,onCancel:U,onSuccess:c,pipelineRun:e,setCancelingRunId:L,setErrors:C,setShowConfirmationId:R,showConfirmationId:S},"row_retry_button"),(0,D.jsx)(x.ZP,{default:!0,monospace:!0,children:v},"row_pipeline_uuid"),(0,D.jsx)(x.ZP,{default:!0,monospace:!0,children:u&&(0,y.eI)(u).toISOString().split(".")[0]||"-"},"row_date"),(0,D.jsx)(o(),{as:"/pipelines/".concat(v,"/triggers/").concat(m),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,D.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:Z})},"row_trigger"),(0,D.jsx)(o(),{as:"/pipelines/".concat(v,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,D.jsx)(h.Z,{bold:!0,disabled:I,sameColorAsText:!0,children:I?"":"See block runs (".concat(r,")")})},"row_block_runs"),(0,D.jsx)(x.ZP,{default:!0,monospace:!0,children:i&&(0,y.eI)(i).toISOString().split(".")[0]||"-"},"row_completed"),(0,D.jsx)(a.Z,{default:!0,disabled:I,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(v,"/logs?pipeline_run_id[]=").concat(s))},children:(0,D.jsx)(_.B4,{default:!0,size:2*E.iI})},"row_item_13")],!n&&d&&k.push((0,D.jsx)(p.Z,{flex:1,justifyContent:"flex-end",children:(0,D.jsx)(_._Q,{default:!0,size:2*E.iI})})),k})),uuid:"pipeline-runs"})})}},19395:function(e,n,t){t.d(n,{IJ:function(){return a},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},vJ:function(){return g}});var r,i,o=t(82394),c=t(92083),l=t.n(c);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;nd)p=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(f/2),g=n-h;n+h>=d?(g=d-f+2,f-=2):n-h<=0?(g=0,f-=2):(f-=4,g=n-Math.floor(f/2)),p=Array.from({length:f},(function(e,n){return n+g}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(i.Z,{alignItems:"center",children:[(0,s.jsx)(r.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,s.jsx)(c.Hd,{size:1.5*u.iI,stroke:"#AEAEAE"})}),!p.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&l.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!p.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!p.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,s.jsx)(c.Kw,{size:1.5*u.iI,stroke:"#AEAEAE"})})]})})}},47409:function(e,n,t){t.d(n,{D:function(){return c},V:function(){return o}});var r,i=t(82394),o=t(66050).V,c=(r={},(0,i.Z)(r,o.CANCELLED,"Cancelled"),(0,i.Z)(r,o.COMPLETED,"Done"),(0,i.Z)(r,o.FAILED,"Failed"),(0,i.Z)(r,o.INITIAL,"Ready"),(0,i.Z)(r,o.RUNNING,"Running"),r)},93348:function(e,n,t){t.d(n,{TR:function(){return d},U5:function(){return u},Xm:function(){return o},Z4:function(){return a},fq:function(){return l},kJ:function(){return s}});var r,i,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var l,u,s,a=(r={},(0,c.Z)(r,o.API,(function(){return"API"})),(0,c.Z)(r,o.EVENT,(function(){return"event"})),(0,c.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(l||(l={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(u||(u={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var d=(i={},(0,c.Z)(i,s.CREATED_AT,"Created at"),(0,c.Z)(i,s.NAME,"Name"),(0,c.Z)(i,s.PIPELINE,"Pipeline"),(0,c.Z)(i,s.STATUS,"Status"),(0,c.Z)(i,s.TYPE,"Type"),i)},55378:function(e,n,t){var r=t(82394),i=t(26304),o=t(82684),c=t(9518),l=t(69898),u=t(31969),s=t(49125),a=t(28598),d=["beforeIcon","children","label","multiple","placeholder"];function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n\n \n ",s.iI,s.iI,2.5*s.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).inverted,";\n ")})),g=function(e,n){var t=e.beforeIcon,r=e.children,o=e.label,c=e.multiple,u=e.placeholder,s=(0,i.Z)(e,d);return(0,a.jsx)(l.Z,f(f({},s),{},{beforeIcon:t,input:(0,a.jsxs)(h,f(f({multiple:c},s),{},{children:[(o||u)&&(0,a.jsx)("option",{disabled:!0,selected:!0,value:"",children:o||u}),r]})),label:o,placeholder:u,ref:n,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};n.Z=o.forwardRef(g)},33766:function(e,n,t){t.d(n,{g_:function(){return p},u7:function(){return d}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),l=t(59e3),u=t(24224);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,u=i?{}:(0,l.iV)();n=window.location.pathname;var s=o?c().push:c().replace,d=a(a({},u),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var p=(0,l.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return s(c().router.pathname,f,{shallow:!0})}function p(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,l=t.resetLimitParams,s=a({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");s[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),c="".concat(t,"[]"),l=s[c];l&&Array.isArray(l)?(l=l.map(String)).includes(o)?s[c]=(0,u.Od)(l,(function(e){return e===o})):s[c]=l.concat(o):s[c]=[o]})):s=a(a({},s),n),l&&(s._limit=c||20,s._offset=0),d(s)}}}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/5477-56bfc97080d45b27.js b/mage_ai/server/frontend_dist/_next/static/chunks/5477-56bfc97080d45b27.js deleted file mode 100644 index c8a79cf3edd2..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/5477-56bfc97080d45b27.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5477],{1210:function(e,n,t){t.d(n,{Z:function(){return P}});var r=t(82394),o=t(21831),i=t(82684),c=t(47999),l=t(49894),u=t(93461),s=t(57384),a=t(19767),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=i.forwardRef(p),m=t(32063),b=t(15270),v=t(82531),g=t(66166),y=t(3055),w=t(49125),j=t(91427),O=t(24141);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return E}}]),(0,i.useEffect)((function(){null===W||void 0===W||!W.current||U||X||null===$||void 0===$||$(W.current.getBoundingClientRect().width)}),[U,L,X,Q,W,$,M]),(0,i.useEffect)((function(){U||(0,j.t8)(A,L)}),[r,U,L,A]),(0,i.useEffect)((function(){X||(0,j.t8)(T,Q)}),[X,Q,T]);var te=(0,g.Z)(p);return(0,i.useEffect)((function(){x&&te!==p&&R(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:E}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:_,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(b.Z,{navigationItems:N})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:y.Mz,afterHidden:r,afterMousedownActive:U,afterWidth:L,before:P,beforeHeightOffset:y.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(P?Q:0),hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerRef:W,setAfterMousedownActive:F,setAfterWidth:R,setBeforeMousedownActive:K,setBeforeWidth:Y,children:[H&&(0,f.jsx)(h,{children:H}),I]})})]}),k&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(l.Z,Z(Z({},k),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},2850:function(e,n,t){t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),o=t(23831),i=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],i.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{B0:function(){return l},DQ:function(){return a},HY:function(){return c},SA:function(){return d},WH:function(){return i},eC:function(){return u},tC:function(){return s}});var r=t(81132),o=t(9736),i="Workspace",c="Preferences",l="Sync data",u="Users",s="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:u}),(!(0,o.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync_data"},uuid:l});var f=[{items:d,uuid:i}];return(0,o.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:s}]):f}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(1210),o=t(82394),i=t(12691),c=t.n(i),l=t(10919),u=t(86673),s=t(19711),a=t(9518),d=t(23831),f=t(49125),p=t(90880),h=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),m=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),b=t(28598),v=t(82684);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function y(e){for(var n=1;n\n \n ",s.iI,s.iI,2.5*s.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).inverted,";\n ")})),m=function(e,n){var t=e.beforeIcon,r=e.children,i=e.label,c=e.multiple,u=e.placeholder,s=(0,o.Z)(e,d);return(0,a.jsx)(l.Z,p(p({},s),{},{beforeIcon:t,input:(0,a.jsxs)(h,p(p({multiple:c},s),{},{children:[(i||u)&&(0,a.jsx)("option",{disabled:!0,selected:!0,value:"",children:i||u}),r]})),label:i,placeholder:u,ref:n,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};n.Z=i.forwardRef(m)},82944:function(e,n,t){var r=t(82394),o=t(91835),i=t(82684),c=t(9518),l=t(69898),u=t(28598);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return z}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||q||X||null===$||void 0===$||$(T.current.getBoundingClientRect().width)}),[q,F,X,Q,T,$,A]),(0,o.useEffect)((function(){q||(0,j.t8)(M,F)}),[r,q,F,M]),(0,o.useEffect)((function(){X||(0,j.t8)(W,Q)}),[X,Q,W]);var te=(0,y.Z)(p);return(0,o.useEffect)((function(){x&&te!==p&&R(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:z}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:N})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:q,afterWidth:F,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(S?Q:0),hideAfterCompletely:!0,leftOffset:S?d.k1:null,mainContainerRef:T,setAfterMousedownActive:L,setAfterWidth:R,setBeforeMousedownActive:K,setBeforeWidth:Y,children:[D&&(0,f.jsx)(m,{children:D}),I]})})]}),_&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(u.Z,Z(Z({},_),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){t.d(n,{M:function(){return u},W:function(){return l}});var r=t(9518),i=t(23831),o=t(3055),l=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return a},HY:function(){return l},SA:function(){return d},WH:function(){return o},eC:function(){return c},fF:function(){return u},tC:function(){return s}});var r=t(81132),i=t(9736),o="Workspace",l="Preferences",u="Git settings",c="Users",s="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:l}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:c}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync_data"},uuid:u});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:s}]):f}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),l=t.n(o),u=t(10919),c=t(86673),s=t(19711),a=t(9518),d=t(23831),f=t(49125),p=t(90880),m=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),h=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),v=t(28598),b=t(82684);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;nt&&t[s],a=(t,e)=>(0,i.dE)(t,s,e),u=t=>t&&t[s]&&t[s].getPayload();class c{constructor(){this.payload=void 0,a(this,this)}getPayload(){return this.payload||[]}}class l extends c{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,i.is.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new l(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return i.is.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value!==t&&(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,i.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class h extends l{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=(0,i.mD)({output:[t,t]})}static create(t){return new h(t)}getValue(){let t=this._string;return null==t?this._string=this._toString(this._value):t}setValue(t){if(i.is.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else{if(!super.setValue(t))return!1;this._string=null}return!0}reset(t){t&&(this._toString=(0,i.mD)({output:[this.getValue(),t]})),this._value=0,super.reset()}}const f={dependencies:null};class d extends c{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const e={};return(0,i.rU)(this.source,((n,r)=>{var o;(o=n)&&o[s]===o?e[r]=n.getValue(t):(0,i.j$)(n)?e[r]=(0,i.je)(n):t||(e[r]=n)})),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&(0,i.S6)(this.payload,(t=>t.reset()))}_makePayload(t){if(t){const e=new Set;return(0,i.rU)(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){f.dependencies&&(0,i.j$)(t)&&f.dependencies.add(t);const e=u(t);e&&(0,i.S6)(e,(t=>this.add(t)))}}class _ extends d{constructor(t){super(t)}static create(t){return new _(t)}getValue(){return this.source.map((t=>t.getValue()))}setValue(t){const e=this.getPayload();return t.length==e.length?e.map(((e,n)=>e.setValue(t[n]))).some(Boolean):(super.setValue(t.map(p)),!0)}}function p(t){return((0,i.Df)(t)?h:l).create(t)}function y(t){const e=o(t);return e?e.constructor:i.is.arr(t)?_:(0,i.Df)(t)?h:l}function g(){return g=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const n=!i.is.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,r.forwardRef)(((s,o)=>{const a=(0,r.useRef)(null),u=n&&(0,r.useCallback)((t=>{a.current=function(t,e){t&&(i.is.fun(t)?t(e):t.current=e);return e}(o,t)}),[o]),[c,l]=function(t,e){const n=new Set;f.dependencies=n,t.style&&(t=g({},t,{style:e.createAnimatedStyle(t.style)}));return t=new d(t),f.dependencies=null,[t,n]}(s,e),h=(0,i.NW)(),_=()=>{const t=a.current;if(n&&!t)return;!1===(!!t&&e.applyAnimatedValues(t,c.getValue(!0)))&&h()},p=new m(_,l),y=(0,r.useRef)();(0,i.LI)((()=>(y.current=p,(0,i.S6)(l,(t=>(0,i.UI)(t,p))),()=>{y.current&&((0,i.S6)(y.current.deps,(t=>(0,i.iL)(t,y.current))),i.Wn.cancel(y.current.update))}))),(0,r.useEffect)(_,[]),(0,i.tf)((()=>()=>{const t=y.current;(0,i.S6)(t.deps,(e=>(0,i.iL)(e,t)))}));const v=e.getComponentProps(c.getValue());return r.createElement(t,g({},v,{ref:u}))}))};class m{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){"change"==t.type&&i.Wn.write(this.update)}}const x=Symbol.for("AnimatedComponent"),b=(t,{applyAnimatedValues:e=(()=>!1),createAnimatedStyle:n=(t=>new d(t)),getComponentProps:r=(t=>t)}={})=>{const s={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:r},o=t=>{const e=w(t)||"Anonymous";return(t=i.is.str(t)?o[t]||(o[t]=v(t,s)):t[x]||(t[x]=v(t,s))).displayName=`Animated(${e})`,t};return(0,i.rU)(t,((e,n)=>{i.is.arr(t)&&(n=w(e)),o[n]=o(e)})),{animated:o}},w=t=>i.is.str(t)?t:t&&i.is.str(t.displayName)?t.displayName:i.is.fun(t)&&t.name||null},79950:function(t,e,n){n.d(e,{Globals:function(){return i.OH},to:function(){return St},useTransition:function(){return yt}});var i=n(88489),r=n(82684),s=n(92469);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e!0===t||!!(e&&t&&(i.is.fun(t)?t(e):(0,i.qo)(t).includes(e))),c=(t,e)=>i.is.obj(t)?e&&t[e]:t,l=(t,e)=>!0===t.default?t[e]:t.default?t.default[e]:void 0,h=t=>t,f=(t,e=h)=>{let n=d;t.default&&!0!==t.default&&(t=t.default,n=Object.keys(t));const r={};for(const s of n){const n=e(t[s],s);i.is.und(n)||(r[s]=n)}return r},d=["config","onProps","onStart","onChange","onPause","onResume","onRest"],_={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function p(t){const e=function(t){const e={};let n=0;if((0,i.rU)(t,((t,i)=>{_[i]||(e[i]=t,n++)})),n)return e}(t);if(e){const n={to:e};return(0,i.rU)(t,((t,i)=>i in e||(n[i]=t))),n}return o({},t)}function y(t){return t=(0,i.je)(t),i.is.arr(t)?t.map(y):(0,i.Df)(t)?i.OH.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function g(t){for(const e in t)return!0;return!1}function v(t){return i.is.fun(t)||i.is.arr(t)&&i.is.obj(t[0])}function m(t,e){var n;null==(n=t.ref)||n.delete(t),null==e||e.delete(t)}function x(t,e){var n;e&&t.ref!==e&&(null==(n=t.ref)||n.delete(t),e.add(t),t.ref=e)}const b=o({},{tension:170,friction:26},{mass:1,damping:1,easing:i.Z5.linear,clamp:!1});class w{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,b)}}function S(t,e){if(i.is.und(e.decay)){const n=!i.is.und(e.tension)||!i.is.und(e.friction);!n&&i.is.und(e.frequency)&&i.is.und(e.damping)&&i.is.und(e.mass)||(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}else t.duration=void 0}const M=[];class T{constructor(){this.changed=!1,this.values=M,this.toValues=null,this.fromValues=M,this.to=void 0,this.from=void 0,this.config=new w,this.immediate=!1}}function k(t,{key:e,props:n,defaultProps:r,state:s,actions:c}){return new Promise(((l,h)=>{var f;let d,_,p=u(null!=(f=n.cancel)?f:null==r?void 0:r.cancel,e);if(p)v();else{i.is.und(n.pause)||(s.paused=u(n.pause,e));let t=null==r?void 0:r.pause;!0!==t&&(t=s.paused||u(t,e)),d=a(n.delay||0,e),t?(s.resumeQueue.add(g),c.pause()):(c.resume(),g())}function y(){s.resumeQueue.add(g),s.timeouts.delete(_),_.cancel(),d=_.time-i.Wn.now()}function g(){d>0&&!i.OH.skipAnimation?(s.delayed=!0,_=i.Wn.setTimeout(v,d),s.pauseQueue.add(y),s.timeouts.add(_)):v()}function v(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(y),s.timeouts.delete(_),t<=(s.cancelId||0)&&(p=!0);try{c.start(o({},n,{callId:t,cancel:p}),l)}catch(e){h(e)}}}))}const Z=(t,e)=>1==e.length?e[0]:e.some((t=>t.cancelled))?C(t.get()):e.every((t=>t.noop))?O(t.get()):A(t.get(),e.every((t=>t.finished))),O=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),A=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),C=t=>({value:t,cancelled:!0,finished:!1});function E(t,e,n,r){const{callId:s,parentId:a,onRest:u}=e,{asyncTo:c,promise:l}=n;return a||t!==c||e.reset?n.promise=(async()=>{n.asyncId=s,n.asyncTo=t;const h=f(e,((t,e)=>"onRest"===e?void 0:t));let d,_;const p=new Promise(((t,e)=>(d=t,_=e))),y=t=>{const e=s<=(n.cancelId||0)&&C(r)||s!==n.asyncId&&A(r,!1);if(e)throw t.result=e,_(t),t},g=(t,e)=>{const a=new R,u=new j;return(async()=>{if(i.OH.skipAnimation)throw P(n),u.result=A(r,!1),_(u),u;y(a);const c=i.is.obj(t)?o({},t):o({},e,{to:t});c.parentId=s,(0,i.rU)(h,((t,e)=>{i.is.und(c[e])&&(c[e]=t)}));const l=await r.start(c);return y(a),n.paused&&await new Promise((t=>{n.resumeQueue.add(t)})),l})()};let v;if(i.OH.skipAnimation)return P(n),A(r,!1);try{let e;e=i.is.arr(t)?(async t=>{for(const e of t)await g(e)})(t):Promise.resolve(t(g,r.stop.bind(r))),await Promise.all([e.then(d),p]),v=A(r.get(),!0,!1)}catch(m){if(m instanceof R)v=m.result;else{if(!(m instanceof j))throw m;v=m.result}}finally{s==n.asyncId&&(n.asyncId=a,n.asyncTo=a?c:void 0,n.promise=a?l:void 0)}return i.is.fun(u)&&i.Wn.batchedUpdates((()=>{u(v,r,r.item)})),v})():l}function P(t,e){(0,i.yl)(t.timeouts,(t=>t.cancel())),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class R extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class j extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const I=t=>t instanceof U;let N=1;class U extends i.B0{constructor(...t){super(...t),this.id=N++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=(0,s.ys)(this);return t&&t.getValue()}to(...t){return i.OH.to(this,t)}interpolate(...t){return(0,i.LW)(),i.OH.to(this,t)}toJSON(){return this.get()}observerAdded(t){1==t&&this._attach()}observerRemoved(t){0==t&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){(0,i.k0)(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||i.fT.sort(this),(0,i.k0)(this,{type:"priority",parent:this,priority:t})}}const D=Symbol.for("SpringPhase"),q=t=>(1&t[D])>0,V=t=>(2&t[D])>0,L=t=>(4&t[D])>0,F=(t,e)=>e?t[D]|=3:t[D]&=-3,z=(t,e)=>e?t[D]|=4:t[D]&=-5;class $ extends U{constructor(t,e){if(super(),this.key=void 0,this.animation=new T,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!i.is.und(t)||!i.is.und(e)){const n=i.is.obj(t)?o({},t):o({},e,{from:t});i.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(V(this)||this._state.asyncTo)||L(this)}get goal(){return(0,i.je)(this.animation.to)}get velocity(){const t=(0,s.ys)(this);return t instanceof s.iG?t.lastVelocity||0:t.getPayload().map((t=>t.lastVelocity||0))}get hasAnimated(){return q(this)}get isAnimating(){return V(this)}get isPaused(){return L(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,n=!1;const r=this.animation;let{config:o,toValues:a}=r;const u=(0,s.He)(r.to);!u&&(0,i.j$)(r.to)&&(a=(0,i.qo)((0,i.je)(r.to))),r.values.forEach(((c,l)=>{if(c.done)return;const h=c.constructor==s.eC?1:u?u[l].lastPosition:a[l];let f=r.immediate,d=h;if(!f){if(d=c.lastPosition,o.tension<=0)return void(c.done=!0);let e=c.elapsedTime+=t;const n=r.fromValues[l],s=null!=c.v0?c.v0:c.v0=i.is.arr(o.velocity)?o.velocity[l]:o.velocity;let a;const u=o.precision||(n==h?.005:Math.min(1,.001*Math.abs(h-n)));if(i.is.und(o.duration))if(o.decay){const t=!0===o.decay?.998:o.decay,i=Math.exp(-(1-t)*e);d=n+s/(1-t)*(1-i),f=Math.abs(c.lastPosition-d)<=u,a=s*i}else{a=null==c.lastVelocity?s:c.lastVelocity;const e=o.restVelocity||u/10,r=o.clamp?0:o.bounce,l=!i.is.und(r),_=n==h?c.v0>0:ne,p||(f=Math.abs(h-d)<=u,!f));++t){l&&(y=d==h||d>h==_,y&&(a=-a*r,d=h));a+=(1e-6*-o.tension*(d-h)+.001*-o.friction*a)/o.mass*g,d+=a*g}}else{let i=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,e=c.elapsedTime+=t)),i=(o.progress||0)+e/this._memoizedDuration,i=i>1?1:i<0?0:i,c.durationProgress=i),d=n+o.easing(i)*(h-n),a=(d-c.lastPosition)/t,f=1==i}c.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),f=!0)}u&&!u[l].done&&(f=!1),f?c.done=!0:e=!1,c.setValue(d,o.round)&&(n=!0)}));const c=(0,s.ys)(this),l=c.getValue();if(e){const t=(0,i.je)(r.to);l===t&&!n||o.decay?n&&o.decay&&this._onChange(l):(c.setValue(t),this._onChange(t)),this._stop()}else n&&this._onChange(l)}set(t){return i.Wn.batchedUpdates((()=>{this._stop(),this._focus(t),this._set(t)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(V(this)){const{to:t,config:e}=this.animation;i.Wn.batchedUpdates((()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()}))}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let n;return i.is.und(t)?(n=this.queue||[],this.queue=[]):n=[i.is.obj(t)?t:o({},e,{to:t})],Promise.all(n.map((t=>this._update(t)))).then((t=>Z(this,t)))}stop(t){const{to:e}=this.animation;return this._focus(this.get()),P(this._state,t&&this._lastCallId),i.Wn.batchedUpdates((()=>this._stop(e,t))),this}reset(){this._update({reset:!0})}eventObserved(t){"change"==t.type?this._start():"priority"==t.type&&(this.priority=t.priority+1)}_prepareNode(t){const e=this.key||"";let{to:n,from:r}=t;n=i.is.obj(n)?n[e]:n,(null==n||v(n))&&(n=void 0),r=i.is.obj(r)?r[e]:r,null==r&&(r=void 0);const o={to:n,from:r};return q(this)||(t.reverse&&([n,r]=[r,n]),r=(0,i.je)(r),i.is.und(r)?(0,s.ys)(this)||this._set(n):this._set(r)),o}_update(t,e){let n=o({},t);const{key:r,defaultProps:s}=this;n.default&&Object.assign(s,f(n,((t,e)=>/^on/.test(e)?c(t,r):t))),X(this,n,"onProps"),G(this,"onProps",n,this);const a=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const u=this._state;return k(++this._lastCallId,{key:r,props:n,defaultProps:s,state:u,actions:{pause:()=>{L(this)||(z(this,!0),(0,i.bl)(u.pauseQueue),G(this,"onPause",A(this,W(this,this.animation.to)),this))},resume:()=>{L(this)&&(z(this,!1),V(this)&&this._resume(),(0,i.bl)(u.resumeQueue),G(this,"onResume",A(this,W(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then((t=>{if(n.loop&&t.finished&&(!e||!t.noop)){const t=H(n);if(t)return this._update(t,!0)}return t}))}_merge(t,e,n){if(e.cancel)return this.stop(!0),n(C(this));const r=!i.is.und(t.to),c=!i.is.und(t.from);if(r||c){if(!(e.callId>this._lastToId))return n(C(this));this._lastToId=e.callId}const{key:l,defaultProps:h,animation:f}=this,{to:d,from:_}=f;let{to:p=d,from:g=_}=t;!c||r||e.default&&!i.is.und(p)||(p=g),e.reverse&&([p,g]=[g,p]);const m=!(0,i.Xy)(g,_);m&&(f.from=g),g=(0,i.je)(g);const x=!(0,i.Xy)(p,d);x&&this._focus(p);const w=v(e.to),{config:M}=f,{decay:T,velocity:k}=M;(r||c)&&(M.velocity=0),e.config&&!w&&function(t,e,n){n&&(S(n=o({},n),e),e=o({},n,e)),S(t,e),Object.assign(t,e);for(const i in b)null==t[i]&&(t[i]=b[i]);let{mass:r,frequency:s,damping:a}=t;i.is.und(s)||(s<.01&&(s=.01),a<0&&(a=0),t.tension=Math.pow(2*Math.PI/s,2)*r,t.friction=4*Math.PI*a*r/s)}(M,a(e.config,l),e.config!==h.config?a(h.config,l):void 0);let Z=(0,s.ys)(this);if(!Z||i.is.und(p))return n(A(this,!0));const P=i.is.und(e.reset)?c&&!e.default:!i.is.und(g)&&u(e.reset,l),R=P?g:this.get(),j=y(p),I=i.is.num(j)||i.is.arr(j)||(0,i.Df)(j),N=!w&&(!I||u(h.immediate||e.immediate,l));if(x){const t=(0,s.sb)(p);if(t!==Z.constructor){if(!N)throw Error(`Cannot animate between ${Z.constructor.name} and ${t.name}, as the "to" prop suggests`);Z=this._set(j)}}const U=Z.constructor;let D=(0,i.j$)(p),L=!1;if(!D){const t=P||!q(this)&&m;(x||t)&&(L=(0,i.Xy)(y(R),j),D=!L),((0,i.Xy)(f.immediate,N)||N)&&(0,i.Xy)(M.decay,T)&&(0,i.Xy)(M.velocity,k)||(D=!0)}if(L&&V(this)&&(f.changed&&!P?D=!0:D||this._stop(d)),!w&&((D||(0,i.j$)(d))&&(f.values=Z.getPayload(),f.toValues=(0,i.j$)(p)?null:U==s.eC?[1]:(0,i.qo)(j)),f.immediate!=N&&(f.immediate=N,N||P||this._set(d)),D)){const{onRest:t}=f;(0,i.S6)(Q,(t=>X(this,e,t)));const r=A(this,W(this,d));(0,i.bl)(this._pendingCalls,r),this._pendingCalls.add(n),f.changed&&i.Wn.batchedUpdates((()=>{f.changed=!P,null==t||t(r,this),P?a(h.onRest,r):null==f.onStart||f.onStart(r,this)}))}P&&this._set(R),w?n(E(e.to,e,this._state,this)):D?this._start():V(this)&&!x?this._pendingCalls.add(n):n(O(R))}_focus(t){const e=this.animation;t!==e.to&&((0,i.Ll)(this)&&this._detach(),e.to=t,(0,i.Ll)(this)&&this._attach())}_attach(){let t=0;const{to:e}=this.animation;(0,i.j$)(e)&&((0,i.UI)(e,this),I(e)&&(t=e.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;(0,i.j$)(t)&&(0,i.iL)(t,this)}_set(t,e=!0){const n=(0,i.je)(t);if(!i.is.und(n)){const t=(0,s.ys)(this);if(!t||!(0,i.Xy)(n,t.getValue())){const r=(0,s.sb)(n);t&&t.constructor==r?t.setValue(n):(0,s.f3)(this,r.create(n)),t&&i.Wn.batchedUpdates((()=>{this._onChange(n,e)}))}}return(0,s.ys)(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,G(this,"onStart",A(this,W(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),a(this.animation.onChange,t,this)),a(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){const t=this.animation;(0,s.ys)(this).reset((0,i.je)(t.to)),t.immediate||(t.fromValues=t.values.map((t=>t.lastPosition))),V(this)||(F(this,!0),L(this)||this._resume())}_resume(){i.OH.skipAnimation?this.finish():i.fT.start(this)}_stop(t,e){if(V(this)){F(this,!1);const n=this.animation;(0,i.S6)(n.values,(t=>{t.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,i.k0)(this,{type:"idle",parent:this});const r=e?C(this.get()):A(this.get(),W(this,null!=t?t:n.to));(0,i.bl)(this._pendingCalls,r),n.changed&&(n.changed=!1,G(this,"onRest",r,this))}}}function W(t,e){const n=y(e),r=y(t.get());return(0,i.Xy)(r,n)}function H(t,e=t.loop,n=t.to){let i=a(e);if(i){const r=!0!==i&&p(i),s=(r||t).reverse,a=!r||r.reset;return B(o({},t,{loop:e,default:!1,pause:void 0,to:!s||v(n)?n:void 0,from:a?t.from:void 0,reset:a},r))}}function B(t){const{to:e,from:n}=t=p(t),r=new Set;return i.is.obj(e)&&Y(e,r),i.is.obj(n)&&Y(n,r),t.keys=r.size?Array.from(r):null,t}function Y(t,e){(0,i.rU)(t,((t,n)=>null!=t&&e.add(n)))}const Q=["onStart","onRest","onChange","onPause","onResume"];function X(t,e,n){t.animation[n]=e[n]!==l(e,n)?c(e[n],t.key):void 0}function G(t,e,...n){var i,r,s,o;null==(i=(r=t.animation)[e])||i.call(r,...n),null==(s=(o=t.defaultProps)[e])||s.call(o,...n)}const J=["onStart","onChange","onRest"];let K=1;class tt{constructor(t,e){this.id=K++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start(o({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((t=>t.idle&&!t.isDelayed&&!t.isPaused))}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each(((e,n)=>t[n]=e.get())),t}set(t){for(const e in t){const n=t[e];i.is.und(n)||this.springs[e].set(n)}}update(t){return t&&this.queue.push(B(t)),this}start(t){let{queue:e}=this;return t?e=(0,i.qo)(t).map(B):this.queue=[],this._flush?this._flush(this,e):(at(this,e),et(this,e))}stop(t,e){if(t!==!!t&&(e=t),e){const n=this.springs;(0,i.S6)((0,i.qo)(e),(e=>n[e].stop(!!t)))}else P(this._state,this._lastAsyncId),this.each((e=>e.stop(!!t)));return this}pause(t){if(i.is.und(t))this.start({pause:!0});else{const e=this.springs;(0,i.S6)((0,i.qo)(t),(t=>e[t].pause()))}return this}resume(t){if(i.is.und(t))this.start({pause:!1});else{const e=this.springs;(0,i.S6)((0,i.qo)(t),(t=>e[t].resume()))}return this}each(t){(0,i.rU)(this.springs,t)}_onFrame(){const{onStart:t,onChange:e,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,(0,i.yl)(t,(([t,e])=>{e.value=this.get(),t(e,this,this._item)})));const o=!r&&this._started,a=s||o&&n.size?this.get():null;s&&e.size&&(0,i.yl)(e,(([t,e])=>{e.value=a,t(e,this,this._item)})),o&&(this._started=!1,(0,i.yl)(n,(([t,e])=>{e.value=a,t(e,this,this._item)})))}eventObserved(t){if("change"==t.type)this._changed.add(t.parent),t.idle||this._active.add(t.parent);else{if("idle"!=t.type)return;this._active.delete(t.parent)}i.Wn.onFrame(this._onFrame)}}function et(t,e){return Promise.all(e.map((e=>nt(t,e)))).then((e=>Z(t,e)))}async function nt(t,e,n){const{keys:r,to:s,from:o,loop:a,onRest:u,onResolve:c}=e,h=i.is.obj(e.default)&&e.default;a&&(e.loop=!1),!1===s&&(e.to=null),!1===o&&(e.from=null);const f=i.is.arr(s)||i.is.fun(s)?s:void 0;f?(e.to=void 0,e.onRest=void 0,h&&(h.onRest=void 0)):(0,i.S6)(J,(n=>{const r=e[n];if(i.is.fun(r)){const i=t._events[n];e[n]=({finished:t,cancelled:e})=>{const n=i.get(r);n?(t||(n.finished=!1),e&&(n.cancelled=!0)):i.set(r,{value:null,finished:t||!1,cancelled:e||!1})},h&&(h[n]=e[n])}}));const d=t._state;e.pause===!d.paused?(d.paused=e.pause,(0,i.bl)(e.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(e.pause=!0);const _=(r||Object.keys(t.springs)).map((n=>t.springs[n].start(e))),p=!0===e.cancel||!0===l(e,"cancel");(f||p&&d.asyncId)&&_.push(k(++t._lastAsyncId,{props:e,state:d,actions:{pause:i.ZT,resume:i.ZT,start(e,n){p?(P(d,t._lastAsyncId),n(C(t))):(e.onRest=u,n(E(f,e,d,t)))}}})),d.paused&&await new Promise((t=>{d.resumeQueue.add(t)}));const y=Z(t,await Promise.all(_));if(a&&y.finished&&(!n||!y.noop)){const n=H(e,a,s);if(n)return at(t,[n]),nt(t,n,!0)}return c&&i.Wn.batchedUpdates((()=>c(y,t,t.item))),y}function it(t,e){const n=o({},t.springs);return e&&(0,i.S6)((0,i.qo)(e),(t=>{i.is.und(t.keys)&&(t=B(t)),i.is.obj(t.to)||(t=o({},t,{to:void 0})),ot(n,t,(t=>st(t)))})),rt(t,n),n}function rt(t,e){(0,i.rU)(e,((e,n)=>{t.springs[n]||(t.springs[n]=e,(0,i.UI)(e,t))}))}function st(t,e){const n=new $;return n.key=t,e&&(0,i.UI)(n,e),n}function ot(t,e,n){e.keys&&(0,i.S6)(e.keys,(i=>{(t[i]||(t[i]=n(i)))._prepareNode(e)}))}function at(t,e){(0,i.S6)(e,(e=>{ot(t.springs,e,(e=>st(e,t)))}))}function ut(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}const ct=["children"],lt=t=>{let{children:e}=t,n=ut(t,ct);const s=(0,r.useContext)(ht),o=n.pause||!!s.pause,a=n.immediate||!!s.immediate;n=(0,i.Pr)((()=>({pause:o,immediate:a})),[o,a]);const{Provider:u}=ht;return r.createElement(u,{value:n},e)},ht=(ft=lt,dt={},Object.assign(ft,r.createContext(dt)),ft.Provider._context=ft,ft.Consumer._context=ft,ft);var ft,dt;lt.Provider=ht.Provider,lt.Consumer=ht.Consumer;const _t=()=>{const t=[],e=function(e){(0,i.ZR)();const r=[];return(0,i.S6)(t,((t,s)=>{if(i.is.und(e))r.push(t.start());else{const i=n(e,t,s);i&&r.push(t.start(i))}})),r};e.current=t,e.add=function(e){t.includes(e)||t.push(e)},e.delete=function(e){const n=t.indexOf(e);~n&&t.splice(n,1)},e.pause=function(){return(0,i.S6)(t,(t=>t.pause(...arguments))),this},e.resume=function(){return(0,i.S6)(t,(t=>t.resume(...arguments))),this},e.set=function(e){(0,i.S6)(t,(t=>t.set(e)))},e.start=function(e){const n=[];return(0,i.S6)(t,((t,r)=>{if(i.is.und(e))n.push(t.start());else{const i=this._getProps(e,t,r);i&&n.push(t.start(i))}})),n},e.stop=function(){return(0,i.S6)(t,(t=>t.stop(...arguments))),this},e.update=function(e){return(0,i.S6)(t,((t,n)=>t.update(this._getProps(e,t,n)))),this};const n=function(t,e,n){return i.is.fun(t)?t(n,e):t};return e._getProps=n,e};let pt;function yt(t,e,n){const s=i.is.fun(e)&&e,{reset:u,sort:c,trail:l=0,expires:h=!0,exitBeforeEnter:d=!1,onDestroyed:_,ref:y,config:v}=s?s():e,b=(0,r.useMemo)((()=>s||3==arguments.length?_t():void 0),[]),w=(0,i.qo)(t),S=[],M=(0,r.useRef)(null),T=u?null:M.current;(0,i.LI)((()=>{M.current=S})),(0,i.tf)((()=>((0,i.S6)(S,(t=>{null==b||b.add(t.ctrl),t.ctrl.ref=b})),()=>{(0,i.S6)(M.current,(t=>{t.expired&&clearTimeout(t.expirationId),m(t.ctrl,b),t.ctrl.stop(!0)}))})));const k=vt(w,s?s():e,T),Z=u&&M.current||[];(0,i.LI)((()=>(0,i.S6)(Z,(({ctrl:t,item:e,key:n})=>{m(t,b),a(_,e,n)}))));const O=[];if(T&&(0,i.S6)(T,((t,e)=>{t.expired?(clearTimeout(t.expirationId),Z.push(t)):~(e=O[e]=k.indexOf(t.key))&&(S[e]=t)})),(0,i.S6)(w,((t,e)=>{S[e]||(S[e]={key:k[e],item:t,phase:pt.MOUNT,ctrl:new tt},S[e].ctrl.item=t)})),O.length){let t=-1;const{leave:n}=s?s():e;(0,i.S6)(O,((e,i)=>{const r=T[i];~e?(t=S.indexOf(r),S[t]=o({},r,{item:w[e]})):n&&S.splice(++t,0,r)}))}i.is.fun(c)&&S.sort(((t,e)=>c(t.item,e.item)));let A=-l;const C=(0,i.NW)(),E=f(e),P=new Map,R=(0,r.useRef)(new Map),j=(0,r.useRef)(!1);(0,i.S6)(S,((t,n)=>{const r=t.key,u=t.phase,c=s?s():e;let f,_,g=a(c.delay||0,r);if(u==pt.MOUNT)f=c.enter,_=pt.ENTER;else{const t=k.indexOf(r)<0;if(u!=pt.LEAVE)if(t)f=c.leave,_=pt.LEAVE;else{if(!(f=c.update))return;_=pt.UPDATE}else{if(t)return;f=c.enter,_=pt.ENTER}}if(f=a(f,t.item,n),f=i.is.obj(f)?p(f):{to:f},!f.config){const e=v||E.config;f.config=a(e,t.item,n,_)}A+=l;const m=o({},E,{delay:g+A,ref:y,immediate:c.immediate,reset:!1},f);if(_==pt.ENTER&&i.is.und(m.from)){const r=s?s():e,o=i.is.und(r.initial)||T?r.from:r.initial;m.from=a(o,t.item,n)}const{onResolve:x}=m;m.onResolve=t=>{a(x,t);const e=M.current,n=e.find((t=>t.key===r));if(n&&(!t.cancelled||n.phase==pt.UPDATE)&&n.ctrl.idle){const t=e.every((t=>t.ctrl.idle));if(n.phase==pt.LEAVE){const e=a(h,n.item);if(!1!==e){const i=!0===e?0:e;if(n.expired=!0,!t&&i>0)return void(i<=2147483647&&(n.expirationId=setTimeout(C,i)))}}t&&e.some((t=>t.expired))&&(R.current.delete(n),d&&(j.current=!0),C())}};const b=it(t.ctrl,m);_===pt.LEAVE&&d?R.current.set(t,{phase:_,springs:b,payload:m}):P.set(t,{phase:_,springs:b,payload:m})}));const I=(0,r.useContext)(lt),N=(0,i.zH)(I),U=I!==N&&g(I);(0,i.LI)((()=>{U&&(0,i.S6)(S,(t=>{t.ctrl.start({default:I})}))}),[I]),(0,i.S6)(P,((t,e)=>{if(R.current.size){const t=S.findIndex((t=>t.key===e.key));S.splice(t,1)}})),(0,i.LI)((()=>{(0,i.S6)(R.current.size?R.current:P,(({phase:t,payload:e},n)=>{const{ctrl:i}=n;n.phase=t,null==b||b.add(i),U&&t==pt.ENTER&&i.start({default:I}),e&&(x(i,e.ref),!i.ref&&!b||j.current?(i.start(e),j.current&&(j.current=!1)):i.update(e))}))}),u?void 0:n);const D=t=>r.createElement(r.Fragment,null,S.map(((e,n)=>{const{springs:s}=P.get(e)||e.ctrl,a=t(o({},s),e.item,e,n);return a&&a.type?r.createElement(a.type,o({},a.props,{key:i.is.str(e.key)||i.is.num(e.key)?e.key:e.ctrl.id,ref:a.ref})):a})));return b?[D,b]:D}!function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"}(pt||(pt={}));let gt=1;function vt(t,{key:e,keys:n=e},r){if(null===n){const e=new Set;return t.map((t=>{const n=r&&r.find((n=>n.item===t&&n.phase!==pt.LEAVE&&!e.has(n)));return n?(e.add(n),n.key):gt++}))}return i.is.und(n)?t:i.is.fun(n)?t.map(n):(0,i.qo)(n)}class mt extends U{constructor(t,e){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=(0,i.mD)(...e);const n=this._get(),r=(0,s.sb)(n);(0,s.f3)(this,r.create(n))}advance(t){const e=this._get(),n=this.get();(0,i.Xy)(e,n)||((0,s.ys)(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&bt(this._active)&&wt(this)}_get(){const t=i.is.arr(this.source)?this.source.map(i.je):(0,i.qo)((0,i.je)(this.source));return this.calc(...t)}_start(){this.idle&&!bt(this._active)&&(this.idle=!1,(0,i.S6)((0,s.He)(this),(t=>{t.done=!1})),i.OH.skipAnimation?(i.Wn.batchedUpdates((()=>this.advance())),wt(this)):i.fT.start(this))}_attach(){let t=1;(0,i.S6)((0,i.qo)(this.source),(e=>{(0,i.j$)(e)&&(0,i.UI)(e,this),I(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))})),this.priority=t,this._start()}_detach(){(0,i.S6)((0,i.qo)(this.source),(t=>{(0,i.j$)(t)&&(0,i.iL)(t,this)})),this._active.clear(),wt(this)}eventObserved(t){"change"==t.type?t.idle?this.advance():(this._active.add(t.parent),this._start()):"idle"==t.type?this._active.delete(t.parent):"priority"==t.type&&(this.priority=(0,i.qo)(this.source).reduce(((t,e)=>Math.max(t,(I(e)?e.priority:0)+1)),0))}}function xt(t){return!1!==t.idle}function bt(t){return!t.size||Array.from(t).every(xt)}function wt(t){t.idle||(t.idle=!0,(0,i.S6)((0,s.He)(t),(t=>{t.done=!0})),(0,i.k0)(t,{type:"idle",parent:t}))}const St=(t,...e)=>new mt(t,e);i.OH.assign({createStringInterpolator:i.qS,to:(t,e)=>new mt(t,e)});i.fT.advance},88489:function(t,e,n){n.d(e,{B0:function(){return Ot},OH:function(){return D},UI:function(){return Ct},k0:function(){return Zt},O9:function(){return Y},mD:function(){return dt},qS:function(){return Ft},dE:function(){return S},ZR:function(){return Yt},LW:function(){return Ht},S6:function(){return k},rU:function(){return Z},Z5:function(){return xt},yl:function(){return A},bl:function(){return C},fT:function(){return z},Ll:function(){return kt},je:function(){return Tt},j$:function(){return Mt},is:function(){return M},Df:function(){return Qt},Xy:function(){return T},ZT:function(){return w},Wn:function(){return r},iL:function(){return Et},qo:function(){return O},NW:function(){return Gt},LI:function(){return Xt},Pr:function(){return Jt},tf:function(){return Kt},zH:function(){return ee}});let i=m();const r=t=>p(t,i);let s=m();r.write=t=>p(t,s);let o=m();r.onStart=t=>p(t,o);let a=m();r.onFrame=t=>p(t,a);let u=m();r.onFinish=t=>p(t,u);let c=[];r.setTimeout=(t,e)=>{let n=r.now()+e,i=()=>{let t=c.findIndex((t=>t.cancel==i));~t&&c.splice(t,1),d-=~t?1:0},s={time:n,handler:t,cancel:i};return c.splice(l(n),0,s),d+=1,y(),s};let l=t=>~(~c.findIndex((e=>e.time>t))||~c.length);r.cancel=t=>{o.delete(t),a.delete(t),u.delete(t),i.delete(t),s.delete(t)},r.sync=t=>{_=!0,r.batchedUpdates(t),_=!1},r.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function i(...t){e=t,r.onStart(n)}return i.handler=t,i.cancel=()=>{o.delete(n),e=null},i};let h="undefined"!=typeof window?window.requestAnimationFrame:()=>{};r.use=t=>h=t,r.now="undefined"!=typeof performance?()=>performance.now():Date.now,r.batchedUpdates=t=>t(),r.catch=console.error,r.frameLoop="always",r.advance=()=>{"demand"!==r.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):v()};let f=-1,d=0,_=!1;function p(t,e){_?(e.delete(t),t(0)):(e.add(t),y())}function y(){f<0&&(f=0,"demand"!==r.frameLoop&&h(g))}function g(){~f&&(h(g),r.batchedUpdates(v))}function v(){let t=f;f=r.now();let e=l(f);e&&(x(c.splice(0,e),(t=>t.handler())),d-=e),d?(o.flush(),i.flush(t?Math.min(64,f-t):16.667),a.flush(),s.flush(),u.flush()):f=-1}function m(){let t=new Set,e=t;return{add(n){d+=e!=t||t.has(n)?0:1,t.add(n)},delete:n=>(d-=e==t&&t.has(n)?1:0,t.delete(n)),flush(n){e.size&&(t=new Set,d-=e.size,x(e,(e=>e(n)&&t.add(e))),d+=t.size,e=t)}}}function x(t,e){t.forEach((t=>{try{e(t)}catch(n){r.catch(n)}}))}var b=n(82684);function w(){}const S=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),M={arr:Array.isArray,obj:t=>!!t&&"Object"===t.constructor.name,fun:t=>"function"===typeof t,str:t=>"string"===typeof t,num:t=>"number"===typeof t,und:t=>void 0===t};function T(t,e){if(M.arr(t)){if(!M.arr(e)||t.length!==e.length)return!1;for(let n=0;nt.forEach(e);function Z(t,e,n){if(M.arr(t))for(let i=0;iM.und(t)?[]:M.arr(t)?t:[t];function A(t,e){if(t.size){const n=Array.from(t);t.clear(),k(n,e)}}const C=(t,...e)=>A(t,(t=>t(...e))),E=()=>"undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let P,R,j=null,I=!1,N=w;const U=t=>{t.to&&(R=t.to),t.now&&(r.now=t.now),void 0!==t.colors&&(j=t.colors),null!=t.skipAnimation&&(I=t.skipAnimation),t.createStringInterpolator&&(P=t.createStringInterpolator),t.requestAnimationFrame&&r.use(t.requestAnimationFrame),t.batchedUpdates&&(r.batchedUpdates=t.batchedUpdates),t.willAdvance&&(N=t.willAdvance),t.frameLoop&&(r.frameLoop=t.frameLoop)};var D=Object.freeze({__proto__:null,get createStringInterpolator(){return P},get to(){return R},get colors(){return j},get skipAnimation(){return I},get willAdvance(){return N},assign:U});const q=new Set;let V=[],L=[],F=0;const z={get idle(){return!q.size&&!V.length},start(t){F>t.priority?(q.add(t),r.onStart($)):(W(t),r(B))},advance:B,sort(t){if(F)r.onFrame((()=>z.sort(t)));else{const e=V.indexOf(t);~e&&(V.splice(e,1),H(t))}},clear(){V=[],q.clear()}};function $(){q.forEach(W),q.clear(),r(B)}function W(t){V.includes(t)||H(t)}function H(t){V.splice(function(t,e){const n=t.findIndex(e);return n<0?t.length:n}(V,(e=>e.priority>t.priority)),0,t)}function B(t){const e=L;for(let n=0;n0}const Y={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Q="[-+]?\\d*\\.?\\d+",X=Q+"%";function G(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const J=new RegExp("rgb"+G(Q,Q,Q)),K=new RegExp("rgba"+G(Q,Q,Q,Q)),tt=new RegExp("hsl"+G(Q,X,X)),et=new RegExp("hsla"+G(Q,X,X,Q)),nt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,it=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,rt=/^#([0-9a-fA-F]{6})$/,st=/^#([0-9a-fA-F]{8})$/;function ot(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function at(t,e,n){const i=n<.5?n*(1+e):n+e-n*e,r=2*n-i,s=ot(r,i,t+1/3),o=ot(r,i,t),a=ot(r,i,t-1/3);return Math.round(255*s)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}function ut(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function ct(t){return(parseFloat(t)%360+360)%360/360}function lt(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(255*e)}function ht(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function ft(t){let e=function(t){let e;return"number"===typeof t?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=rt.exec(t))?parseInt(e[1]+"ff",16)>>>0:j&&void 0!==j[t]?j[t]:(e=J.exec(t))?(ut(e[1])<<24|ut(e[2])<<16|ut(e[3])<<8|255)>>>0:(e=K.exec(t))?(ut(e[1])<<24|ut(e[2])<<16|ut(e[3])<<8|lt(e[4]))>>>0:(e=nt.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=st.exec(t))?parseInt(e[1],16)>>>0:(e=it.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=tt.exec(t))?(255|at(ct(e[1]),ht(e[2]),ht(e[3])))>>>0:(e=et.exec(t))?(at(ct(e[1]),ht(e[2]),ht(e[3]))|lt(e[4]))>>>0:null}(t);return null===e?t:(e=e||0,`rgba(${(4278190080&e)>>>24}, ${(16711680&e)>>>16}, ${(65280&e)>>>8}, ${(255&e)/255})`)}const dt=(t,e,n)=>{if(M.fun(t))return t;if(M.arr(t))return dt({range:t,output:e,extrapolate:n});if(M.str(t.output[0]))return P(t);const i=t,r=i.output,s=i.range||[0,1],o=i.extrapolateLeft||i.extrapolate||"extend",a=i.extrapolateRight||i.extrapolate||"extend",u=i.easing||(t=>t);return t=>{const e=function(t,e){for(var n=1;n=t);++n);return n-1}(t,s);return function(t,e,n,i,r,s,o,a,u){let c=u?u(t):t;if(cn){if("identity"===a)return c;"clamp"===a&&(c=n)}if(i===r)return i;if(e===n)return t<=e?i:r;e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e);c=s(c),i===-1/0?c=-c:r===1/0?c+=i:c=c*(r-i)+i;return c}(t,s[e],s[e+1],r[e],r[e+1],u,o,a,i.map)}};const _t=1.70158,pt=1.525*_t,yt=_t+1,gt=2*Math.PI/3,vt=2*Math.PI/4.5,mt=t=>{const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},xt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>0===t?0:Math.pow(2,10*t-10),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>0===t?0:1===t?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>yt*t*t*t-_t*t*t,easeOutBack:t=>1+yt*Math.pow(t-1,3)+_t*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*(7.189819*t-pt)/2:(Math.pow(2*t-2,2)*((pt+1)*(2*t-2)+pt)+2)/2,easeInElastic:t=>0===t?0:1===t?1:-Math.pow(2,10*t-10)*Math.sin((10*t-10.75)*gt),easeOutElastic:t=>0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin((10*t-.75)*gt)+1,easeInOutElastic:t=>0===t?0:1===t?1:t<.5?-Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*vt)/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*vt)/2+1,easeInBounce:t=>1-mt(1-t),easeOutBounce:mt,easeInOutBounce:t=>t<.5?(1-mt(1-2*t))/2:(1+mt(2*t-1))/2,steps:(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,r="end"===e?Math.floor(i):Math.ceil(i);return s=0,o=1,a=r/t,Math.min(Math.max(a,s),o);var s,o,a}};function bt(){return bt=Object.assign?Object.assign.bind():function(t){for(var e=1;eBoolean(t&&t[wt]),Tt=t=>t&&t[wt]?t[wt]():t,kt=t=>t[St]||null;function Zt(t,e){let n=t[St];n&&n.forEach((t=>{!function(t,e){t.eventObserved?t.eventObserved(e):t(e)}(t,e)}))}class Ot{constructor(t){if(this[wt]=void 0,this[St]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");At(this,t)}}const At=(t,e)=>Pt(t,wt,e);function Ct(t,e){if(t[wt]){let n=t[St];n||Pt(t,St,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function Et(t,e){let n=t[St];if(n&&n.has(e)){const i=n.size-1;i?n.delete(e):t[St]=null,t.observerRemoved&&t.observerRemoved(i,e)}}const Pt=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Rt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,jt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,It=new RegExp(`(${Rt.source})(%|[a-z]+)`,"i"),Nt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ut=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Dt=t=>{const[e,n]=qt(t);if(!e||E())return t;const i=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(i)return i.trim();if(n&&n.startsWith("--")){const e=window.getComputedStyle(document.documentElement).getPropertyValue(n);return e||t}return n&&Ut.test(n)?Dt(n):n||t},qt=t=>{const e=Ut.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]};let Vt;const Lt=(t,e,n,i,r)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(i)}, ${r})`,Ft=t=>{Vt||(Vt=j?new RegExp(`(${Object.keys(j).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map((t=>Tt(t).replace(Ut,Dt).replace(jt,ft).replace(Vt,ft))),n=e.map((t=>t.match(Rt).map(Number))),i=n[0].map(((t,e)=>n.map((t=>{if(!(e in t))throw Error('The arity of each "output" value must be equal');return t[e]})))).map((e=>dt(bt({},t,{output:e}))));return t=>{var n;const r=!It.test(e[0])&&(null==(n=e.find((t=>It.test(t))))?void 0:n.replace(Rt,""));let s=0;return e[0].replace(Rt,(()=>`${i[s++](t)}${r||""}`)).replace(Nt,Lt)}},zt="react-spring: ",$t=t=>{const e=t;let n=!1;if("function"!=typeof e)throw new TypeError(`${zt}once requires a function parameter`);return(...t)=>{n||(e(...t),n=!0)}},Wt=$t(console.warn);function Ht(){Wt(`${zt}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Bt=$t(console.warn);function Yt(){Bt(`${zt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Qt(t){return M.str(t)&&("#"==t[0]||/\d/.test(t)||!E()&&Ut.test(t)||t in(j||{}))}new WeakMap;new Set;new WeakMap,new WeakMap,new WeakMap;const Xt=E()?b.useEffect:b.useLayoutEffect;function Gt(){const t=(0,b.useState)()[1],e=(()=>{const t=(0,b.useRef)(!1);return Xt((()=>(t.current=!0,()=>{t.current=!1})),[]),t})();return()=>{e.current&&t(Math.random())}}function Jt(t,e){const[n]=(0,b.useState)((()=>({inputs:e,result:t()}))),i=(0,b.useRef)(),r=i.current;let s=r;if(s){Boolean(e&&s.inputs&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n{i.current=s,r==n&&(n.inputs=n.result=void 0)}),[s]),s.result}const Kt=t=>(0,b.useEffect)(t,te),te=[];function ee(t){const e=(0,b.useRef)();return(0,b.useEffect)((()=>{e.current=t})),e.current}},84877:function(t,e,n){n.d(e,{animated:function(){return S},to:function(){return i.to},useTransition:function(){return i.useTransition}});var i=n(79950),r=n(85202),s=n(88489),o=n(92469);function a(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}const u=["style","children","scrollTop","scrollLeft","viewBox"],c=/^--/;function l(t,e){return null==e||"boolean"===typeof e||""===e?"":"number"!==typeof e||0===e||c.test(t)||f.hasOwnProperty(t)&&f[t]?(""+e).trim():e+"px"}const h={};let f={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const d=["Webkit","Ms","Moz","O"];f=Object.keys(f).reduce(((t,e)=>(d.forEach((n=>t[((t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1))(n,e)]=t[e])),t)),f);const _=["x","y","z"],p=/^(matrix|translate|scale|rotate|skew)/,y=/^(translate)/,g=/^(rotate|skew)/,v=(t,e)=>s.is.num(t)&&0!==t?t+e:t,m=(t,e)=>s.is.arr(t)?t.every((t=>m(t,e))):s.is.num(t)?t===e:parseFloat(t)===e;class x extends o.rS{constructor(t){let{x:e,y:n,z:i}=t,r=a(t,_);const o=[],u=[];(e||n||i)&&(o.push([e||0,n||0,i||0]),u.push((t=>[`translate3d(${t.map((t=>v(t,"px"))).join(",")})`,m(t,0)]))),(0,s.rU)(r,((t,e)=>{if("transform"===e)o.push([t||""]),u.push((t=>[t,""===t]));else if(p.test(e)){if(delete r[e],s.is.und(t))return;const n=y.test(e)?"px":g.test(e)?"deg":"";o.push((0,s.qo)(t)),u.push("rotate3d"===e?([t,e,i,r])=>[`rotate3d(${t},${e},${i},${v(r,n)})`,m(r,0)]:t=>[`${e}(${t.map((t=>v(t,n))).join(",")})`,m(t,e.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new b(o,u)),super(r)}}class b extends s.B0{constructor(t,e){super(),this._value=null,this.inputs=t,this.transforms=e}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return(0,s.S6)(this.inputs,((n,i)=>{const r=(0,s.je)(n[0]),[o,a]=this.transforms[i](s.is.arr(r)?r:n.map(s.je));t+=" "+o,e=e&&a})),e?"none":t}observerAdded(t){1==t&&(0,s.S6)(this.inputs,(t=>(0,s.S6)(t,(t=>(0,s.j$)(t)&&(0,s.UI)(t,this)))))}observerRemoved(t){0==t&&(0,s.S6)(this.inputs,(t=>(0,s.S6)(t,(t=>(0,s.j$)(t)&&(0,s.iL)(t,this)))))}eventObserved(t){"change"==t.type&&(this._value=null),(0,s.k0)(this,t)}}const w=["scrollTop","scrollLeft"];i.Globals.assign({batchedUpdates:r.unstable_batchedUpdates,createStringInterpolator:s.qS,colors:s.O9});const S=(0,o.Ld)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n="filter"===t.nodeName||t.parentNode&&"filter"===t.parentNode.nodeName,i=e,{style:r,children:s,scrollTop:o,scrollLeft:f,viewBox:d}=i,_=a(i,u),p=Object.values(_),y=Object.keys(_).map((e=>n||t.hasAttribute(e)?e:h[e]||(h[e]=e.replace(/([A-Z])/g,(t=>"-"+t.toLowerCase())))));void 0!==s&&(t.textContent=s);for(let a in r)if(r.hasOwnProperty(a)){const e=l(a,r[a]);c.test(a)?t.style.setProperty(a,e):t.style[a]=e}y.forEach(((e,n)=>{t.setAttribute(e,p[n])})),void 0!==o&&(t.scrollTop=o),void 0!==f&&(t.scrollLeft=f),void 0!==d&&t.setAttribute("viewBox",d)},createAnimatedStyle:t=>new x(t),getComponentProps:t=>a(t,w)}).animated},62339:function(t,e,n){n.r(e),n.d(e,{Group:function(){return i.Z}});var i=n(29989)},98677:function(t,e,n){function i(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),s=new Array(r);++i0?t>1?(0,o.Z)((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):a:null};var u=a,c=(a.range,n(29483)),l=n(66403),h=n(61851),f=n(82194),d=n(31124),_=n(38249),p=n(4760),y=n(8717),g=n(13143),v=n(43694),m=n(37884),x=n(3983),b=n(35101);function w(t,e,n,o,a,l){const h=[[c.Z,1,s.Ym],[c.Z,5,5*s.Ym],[c.Z,15,15*s.Ym],[c.Z,30,30*s.Ym],[l,1,s.yB],[l,5,5*s.yB],[l,15,15*s.yB],[l,30,30*s.yB],[a,1,s.Y2],[a,3,3*s.Y2],[a,6,6*s.Y2],[a,12,12*s.Y2],[o,1,s.UD],[o,2,2*s.UD],[n,1,s.iM],[e,1,s.jz],[e,3,3*s.jz],[t,1,s.qz]];function f(e,n,o){const a=Math.abs(n-e)/o,c=(0,i.Z)((([,,t])=>t)).right(h,a);if(c===h.length)return t.every((0,r.ly)(e/s.qz,n/s.qz,o));if(0===c)return u.every(Math.max((0,r.ly)(e,n,o),1));const[l,f]=h[a/h[c-1][2][t.toLowerCase(),e])))}function V(t,e,n){var i=R.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function L(t,e,n){var i=R.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function F(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function z(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function $(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function W(t,e,n){var i=R.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function H(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function B(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Y(t,e,n){var i=R.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function Q(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function X(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function G(t,e,n){var i=R.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function J(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function K(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function tt(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function et(t,e,n){var i=R.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function nt(t,e,n){var i=R.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function it(t,e,n){var i=j.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function rt(t,e,n){var i=R.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function st(t,e,n){var i=R.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function ot(t,e){return N(t.getDate(),e,2)}function at(t,e){return N(t.getHours(),e,2)}function ut(t,e){return N(t.getHours()%12||12,e,2)}function ct(t,e){return N(1+f.Z.count((0,p.Z)(t),t),e,3)}function lt(t,e){return N(t.getMilliseconds(),e,3)}function ht(t,e){return lt(t,e)+"000"}function ft(t,e){return N(t.getMonth()+1,e,2)}function dt(t,e){return N(t.getMinutes(),e,2)}function _t(t,e){return N(t.getSeconds(),e,2)}function pt(t){var e=t.getDay();return 0===e?7:e}function yt(t,e){return N(d.OM.count((0,p.Z)(t)-1,t),e,2)}function gt(t){var e=t.getDay();return e>=4||0===e?(0,d.bL)(t):d.bL.ceil(t)}function vt(t,e){return t=gt(t),N(d.bL.count((0,p.Z)(t),t)+(4===(0,p.Z)(t).getDay()),e,2)}function mt(t){return t.getDay()}function xt(t,e){return N(d.wA.count((0,p.Z)(t)-1,t),e,2)}function bt(t,e){return N(t.getFullYear()%100,e,2)}function wt(t,e){return N((t=gt(t)).getFullYear()%100,e,2)}function St(t,e){return N(t.getFullYear()%1e4,e,4)}function Mt(t,e){var n=t.getDay();return N((t=n>=4||0===n?(0,d.bL)(t):d.bL.ceil(t)).getFullYear()%1e4,e,4)}function Tt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+N(e/60|0,"0",2)+N(e%60,"0",2)}function kt(t,e){return N(t.getUTCDate(),e,2)}function Zt(t,e){return N(t.getUTCHours(),e,2)}function Ot(t,e){return N(t.getUTCHours()%12||12,e,2)}function At(t,e){return N(1+v.Z.count((0,b.Z)(t),t),e,3)}function Ct(t,e){return N(t.getUTCMilliseconds(),e,3)}function Et(t,e){return Ct(t,e)+"000"}function Pt(t,e){return N(t.getUTCMonth()+1,e,2)}function Rt(t,e){return N(t.getUTCMinutes(),e,2)}function jt(t,e){return N(t.getUTCSeconds(),e,2)}function It(t){var e=t.getUTCDay();return 0===e?7:e}function Nt(t,e){return N(m.Ox.count((0,b.Z)(t)-1,t),e,2)}function Ut(t){var e=t.getUTCDay();return e>=4||0===e?(0,m.hB)(t):m.hB.ceil(t)}function Dt(t,e){return t=Ut(t),N(m.hB.count((0,b.Z)(t),t)+(4===(0,b.Z)(t).getUTCDay()),e,2)}function qt(t){return t.getUTCDay()}function Vt(t,e){return N(m.l6.count((0,b.Z)(t)-1,t),e,2)}function Lt(t,e){return N(t.getUTCFullYear()%100,e,2)}function Ft(t,e){return N((t=Ut(t)).getUTCFullYear()%100,e,2)}function zt(t,e){return N(t.getUTCFullYear()%1e4,e,4)}function $t(t,e){var n=t.getUTCDay();return N((t=n>=4||0===n?(0,m.hB)(t):m.hB.ceil(t)).getUTCFullYear()%1e4,e,4)}function Wt(){return"+0000"}function Ht(){return"%"}function Bt(t){return+t}function Yt(t){return Math.floor(+t/1e3)}C=function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,s=t.days,o=t.shortDays,a=t.months,u=t.shortMonths,c=D(r),l=q(r),h=D(s),_=q(s),p=D(o),y=q(o),g=D(a),x=q(a),b=D(u),w=q(u),S={a:function(t){return o[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:ot,e:ot,f:ht,g:wt,G:Mt,H:at,I:ut,j:ct,L:lt,m:ft,M:dt,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Bt,s:Yt,S:_t,u:pt,U:yt,V:vt,w:mt,W:xt,x:null,X:null,y:bt,Y:St,Z:Tt,"%":Ht},M={a:function(t){return o[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:kt,e:kt,f:Et,g:Ft,G:$t,H:Zt,I:Ot,j:At,L:Ct,m:Pt,M:Rt,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Bt,s:Yt,S:jt,u:It,U:Nt,V:Dt,w:qt,W:Vt,x:null,X:null,y:Lt,Y:zt,Z:Wt,"%":Ht},T={a:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.w=y.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=_.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=b.exec(e.slice(n));return i?(t.m=w.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=g.exec(e.slice(n));return i?(t.m=x.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return E(t,e,n,i)},d:X,e:X,f:nt,g:H,G:W,H:J,I:J,j:G,L:et,m:Q,M:K,p:function(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=l.get(i[0].toLowerCase()),n+i[0].length):-1},q:Y,Q:rt,s:st,S:tt,u:L,U:F,V:z,w:V,W:$,x:function(t,e,i){return E(t,n,e,i)},X:function(t,e,n){return E(t,i,e,n)},y:H,Y:W,Z:B,"%":it};function k(t,e){return function(n){var i,r,s,o=[],a=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++a53)return null;"w"in s||(s.w=1),"Z"in s?(r=(i=O(A(s.y,0,1))).getUTCDay(),i=r>4||0===r?m.l6.ceil(i):(0,m.l6)(i),i=v.Z.offset(i,7*(s.V-1)),s.y=i.getUTCFullYear(),s.m=i.getUTCMonth(),s.d=i.getUTCDate()+(s.w+6)%7):(r=(i=Z(A(s.y,0,1))).getDay(),i=r>4||0===r?d.wA.ceil(i):(0,d.wA)(i),i=f.Z.offset(i,7*(s.V-1)),s.y=i.getFullYear(),s.m=i.getMonth(),s.d=i.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),r="Z"in s?O(A(s.y,0,1)).getUTCDay():Z(A(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(r+5)%7:s.w+7*s.U-(r+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,O(s)):Z(s)}}function E(t,e,n,i){for(var r,s,o=0,a=e.length,u=n.length;o=u)return-1;if(37===(r=e.charCodeAt(o++))){if(r=e.charAt(o++),!(s=T[r in P?e.charAt(o++):r])||(i=s(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return S.x=k(n,S),S.X=k(i,S),S.c=k(e,S),M.x=k(n,M),M.X=k(i,M),M.c=k(e,M),{format:function(t){var e=k(t+="",S);return e.toString=function(){return t},e},parse:function(t){var e=C(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",M);return e.toString=function(){return t},e},utcParse:function(t){var e=C(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),C.format,C.parse,E=C.utcFormat,C.utcParse;var Qt=n(32130);function Xt(t){return new Date(t)}function Gt(t){return t instanceof Date?+t:+new Date(+t)}function Jt(t,e,n,i,r,s,o,a,u,c){var l=(0,Qt.ZP)(),h=l.invert,f=l.domain,d=c(".%L"),_=c(":%S"),p=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),v=c("%b %d"),m=c("%B"),x=c("%Y");function b(t){return(u(t)=0||(r[n]=t[n]);return r}(t,_),E=(0,o.Z)();T&&E.keys(T),k&&(0,l.Z)(E.value,k),Z&&E.order((0,h.ZP)(Z)),O&&E.offset((0,f.ZP)(O));var P=E(e),R=(0,c.Z)(S),j=P.map((function(t,e){var n=t.key;return{index:e,key:n,bars:t.map((function(e,i){var r=(w(b(e))||0)-(w(m(e))||0),s=w(m(e)),o="bandwidth"in S?S(g(e.data)):Math.max((S(g(e.data))||0)-r/2);return{bar:e,key:n,index:i,height:R,width:r,x:s||0,y:o||0,color:M(t.key,i)}}))}}));return A?i.createElement(i.Fragment,null,A(j)):i.createElement(a.Z,{className:s()("visx-bar-stack-horizontal",n),top:r,left:y},j.map((function(t){return t.bars.map((function(e){return i.createElement(d.Z,p({key:"bar-stack-"+t.index+"-"+e.index,x:e.x,y:e.y,height:e.height,width:e.width,fill:e.color},C))}))})))}},62072:function(t,e,n){function i(t){return null==t?void 0:t[0]}function r(t){return null==t?void 0:t[1]}n.d(e,{l8:function(){return i},xf:function(){return r}})},53989:function(t,e,n){function i(t){if("bandwidth"in t)return t.bandwidth();var e=t.range(),n=t.domain();return Math.abs(e[e.length-1]-e[0])/n.length}n.d(e,{Z:function(){return i}})},59309:function(t,e,n){n.d(e,{ZP:function(){return c}});var i=n(12759),r=n(27500),s=n(82610),o=n(34812),a=n(77944),u={expand:i.Z,diverging:r.Z,none:s.Z,silhouette:o.Z,wiggle:a.Z};Object.keys(u);function c(t){return t&&u[t]||u.none}},18246:function(t,e,n){n.d(e,{ZP:function(){return c}});var i=n(39586),r=n(25516),s=n(54164),o=n(8512),a=n(2010),u={ascending:i.Z,descending:r.Z,insideout:s.Z,none:o.Z,reverse:a.Z};Object.keys(u);function c(t){return t&&u[t]||u.none}},28940:function(t,e,n){e.Z=function(t){var e=t.className,n=t.top,u=t.left,l=t.data,h=void 0===l?[]:l,f=t.centroid,d=t.innerRadius,_=void 0===d?0:d,p=t.outerRadius,y=t.cornerRadius,g=t.startAngle,v=t.endAngle,m=t.padAngle,x=t.padRadius,b=t.pieSort,w=t.pieSortValues,S=t.pieValue,M=t.children,T=t.fill,k=void 0===T?"":T,Z=function(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}(t,a),O=(0,o.arc)({innerRadius:_,outerRadius:p,cornerRadius:y,padRadius:x}),A=(0,o.pie)({startAngle:g,endAngle:v,padAngle:m,value:S,sort:b,sortValues:w}),C=A(h);return M?i.default.createElement(i.default.Fragment,null,M({arcs:C,path:O,pie:A})):i.default.createElement(s.Group,{className:"visx-pie-arcs-group",top:n,left:u},C.map((function(t,n){return i.default.createElement("g",{key:"pie-arc-"+n},i.default.createElement("path",c({className:(0,r.default)("visx-pie-arc",e),d:O(t)||"",fill:null==k||"string"===typeof k?k:k(t)},Z)),null==f?void 0:f(O.centroid(t),t))})))};var i=u(n(82684)),r=u(n(63588)),s=n(62339),o=n(3517),a=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function u(t){return t&&t.__esModule?t:{default:t}}function c(){return c=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,p),M=!1,T=!1;if(h&&l){var k=r,Z=m;if(l.width){var O=k+a+h.width-l.width,A=h.width-k-a;M=O>0&&O>A}else{var C=k+a+h.width-window.innerWidth,E=h.width-k-a;M=C>0&&C>E}if(l.height){var P=Z+c+h.height-l.height,R=h.height-Z-c;T=P>0&&P>R}else T=Z+c+h.height>window.innerHeight;k=M?k-h.width-a:k+a,Z=T?Z-h.height-c:Z+c,e="translate("+(k=Math.round(k))+"px, "+(Z=Math.round(Z))+"px)"}return s.createElement(f.Z,y({ref:w,style:y({left:0,top:0,transform:e},!b&&g)},S),s.createElement(_,{value:{isFlippedVertically:!T,isFlippedHorizontally:!M}},n))}g.propTypes={nodeRef:r().oneOfType([r().string,r().func,r().object])};var v=function(t){var e,n;return n=e=function(e){var n,i;function r(t){var n;return l(u(n=e.call(this,t)||this),"node",void 0),l(u(n),"nodeRef",void 0),n.state={rect:void 0,parentRect:void 0},n.nodeRef=s.createRef(),n.getRects=n.getRects.bind(u(n)),n}i=e,(n=r).prototype=Object.create(i.prototype),n.prototype.constructor=n,c(n,i);var f=r.prototype;return f.componentDidMount=function(){var t,e=this;this.node=null!=(t=this.nodeRef)&&t.current?this.nodeRef.current:o.findDOMNode(this),this.setState((function(){return e.getRects()}))},f.getRects=function(){if(!this.node)return this.state;var t=this.node,e=t.parentNode;return{rect:t.getBoundingClientRect?t.getBoundingClientRect():h,parentRect:null!=e&&e.getBoundingClientRect?e.getBoundingClientRect():h}},f.render=function(){return s.createElement(t,a({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},r}(s.PureComponent),l(e,"displayName","withBoundingRects("+(t.displayName||"")+")"),n}(g)},35681:function(t,e){var n=Math.PI,i=2*n,r=1e-6,s=i-r;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new o}o.prototype=a.prototype={constructor:o,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,i,s,o){t=+t,e=+e,i=+i,s=+s,o=+o;var a=this._x1,u=this._y1,c=i-t,l=s-e,h=a-t,f=u-e,d=h*h+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(d>r)if(Math.abs(f*c-l*h)>r&&o){var _=i-a,p=s-u,y=c*c+l*l,g=_*_+p*p,v=Math.sqrt(y),m=Math.sqrt(d),x=o*Math.tan((n-Math.acos((y+d-g)/(2*v*m)))/2),b=x/m,w=x/v;Math.abs(b-1)>r&&(this._+="L"+(t+b*h)+","+(e+b*f)),this._+="A"+o+","+o+",0,0,"+ +(f*_>h*p)+","+(this._x1=t+w*c)+","+(this._y1=e+w*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,o,a,u,c){t=+t,e=+e,c=!!c;var l=(o=+o)*Math.cos(a),h=o*Math.sin(a),f=t+l,d=e+h,_=1^c,p=c?a-u:u-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),o&&(p<0&&(p=p%i+i),p>s?this._+="A"+o+","+o+",0,1,"+_+","+(t-l)+","+(e-h)+"A"+o+","+o+",0,1,"+_+","+(this._x1=f)+","+(this._y1=d):p>r&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+_+","+(this._x1=t+o*Math.cos(u))+","+(this._y1=e+o*Math.sin(u))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},e.Z=a},48167:function(t,e,n){n.d(e,{Z:function(){return u}});var i=n(35681),r=n(90875),s=n(23622),o=n(92201),a=n(98930);function u(){var t=a.x,e=null,n=(0,r.Z)(0),u=a.y,c=(0,r.Z)(!0),l=null,h=s.Z,f=null;function d(r){var s,o,a,d,_,p=r.length,y=!1,g=new Array(p),v=new Array(p);for(null==l&&(f=h(_=(0,i.Z)())),s=0;s<=p;++s){if(!(s=o;--a)f.point(g[a],v[a]);f.lineEnd(),f.areaEnd()}y&&(g[s]=+t(d,s,r),v[s]=+n(d,s,r),f.point(e?+e(d,s,r):g[s],u?+u(d,s,r):v[s]))}if(_)return f=null,_+""||null}function _(){return(0,o.Z)().defined(c).curve(h).context(l)}return d.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),e=null,d):t},d.x0=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),d):t},d.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):e},d.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),u=null,d):n},d.y0=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),d):n},d.y1=function(t){return arguments.length?(u=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):u},d.lineX0=d.lineY0=function(){return _().x(t).y(n)},d.lineY1=function(){return _().x(t).y(u)},d.lineX1=function(){return _().x(e).y(n)},d.defined=function(t){return arguments.length?(c="function"===typeof t?t:(0,r.Z)(!!t),d):c},d.curve=function(t){return arguments.length?(h=t,null!=l&&(f=h(l)),d):h},d.context=function(t){return arguments.length?(null==t?l=f=null:f=h(l=t),d):l},d}},13946:function(t,e,n){n.d(e,{t:function(){return i}});var i=Array.prototype.slice},97745:function(t,e,n){function i(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function r(t){this._context=t}function s(t){return new r(t)}n.d(e,{ZP:function(){return s},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},23622:function(t,e,n){function i(t){this._context=t}function r(t){return new i(t)}n.d(e,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},29491:function(t,e,n){n.r(e),n.d(e,{arc:function(){return T},area:function(){return k.Z},areaRadial:function(){return U},curveBasis:function(){return yt.ZP},curveBasisClosed:function(){return vt},curveBasisOpen:function(){return xt},curveBundle:function(){return wt},curveCardinal:function(){return Tt},curveCardinalClosed:function(){return Zt},curveCardinalOpen:function(){return At},curveCatmullRom:function(){return Pt},curveCatmullRomClosed:function(){return jt},curveCatmullRomOpen:function(){return Nt},curveLinear:function(){return E.Z},curveLinearClosed:function(){return Dt},curveMonotoneX:function(){return Ht},curveMonotoneY:function(){return Bt},curveNatural:function(){return Xt},curveStep:function(){return Jt},curveStepAfter:function(){return te},curveStepBefore:function(){return Kt},line:function(){return Z.Z},lineRadial:function(){return N},linkHorizontal:function(){return B},linkRadial:function(){return Q},linkVertical:function(){return Y},pie:function(){return C},pointRadial:function(){return D},radialArea:function(){return U},radialLine:function(){return N},stack:function(){return ee.Z},stackOffsetDiverging:function(){return ie.Z},stackOffsetExpand:function(){return ne.Z},stackOffsetNone:function(){return re.Z},stackOffsetSilhouette:function(){return se.Z},stackOffsetWiggle:function(){return oe.Z},stackOrderAppearance:function(){return ae.Z},stackOrderAscending:function(){return ue.Z},stackOrderDescending:function(){return ce.Z},stackOrderInsideOut:function(){return le.Z},stackOrderNone:function(){return he.Z},stackOrderReverse:function(){return fe.Z},symbol:function(){return _t},symbolCircle:function(){return X},symbolCross:function(){return G},symbolDiamond:function(){return tt},symbolSquare:function(){return st},symbolStar:function(){return rt},symbolTriangle:function(){return at},symbolWye:function(){return ft},symbols:function(){return dt}});var i=n(35681),r=n(90875),s=Math.abs,o=Math.atan2,a=Math.cos,u=Math.max,c=Math.min,l=Math.sin,h=Math.sqrt,f=1e-12,d=Math.PI,_=d/2,p=2*d;function y(t){return t>1?0:t<-1?d:Math.acos(t)}function g(t){return t>=1?_:t<=-1?-_:Math.asin(t)}function v(t){return t.innerRadius}function m(t){return t.outerRadius}function x(t){return t.startAngle}function b(t){return t.endAngle}function w(t){return t&&t.padAngle}function S(t,e,n,i,r,s,o,a){var u=n-t,c=i-e,l=o-r,h=a-s,d=h*u-l*c;if(!(d*dP*P+R*R&&(k=O,Z=A),{cx:k,cy:Z,x01:-f,y01:-d,x11:k*(r/S-1),y11:Z*(r/S-1)}}function T(){var t=v,e=m,n=(0,r.Z)(0),u=null,T=x,k=b,Z=w,O=null;function A(){var r,v,m=+t.apply(this,arguments),x=+e.apply(this,arguments),b=T.apply(this,arguments)-_,w=k.apply(this,arguments)-_,A=s(w-b),C=w>b;if(O||(O=r=(0,i.Z)()),xf)if(A>p-f)O.moveTo(x*a(b),x*l(b)),O.arc(0,0,x,b,w,!C),m>f&&(O.moveTo(m*a(w),m*l(w)),O.arc(0,0,m,w,b,C));else{var E,P,R=b,j=w,I=b,N=w,U=A,D=A,q=Z.apply(this,arguments)/2,V=q>f&&(u?+u.apply(this,arguments):h(m*m+x*x)),L=c(s(x-m)/2,+n.apply(this,arguments)),F=L,z=L;if(V>f){var $=g(V/m*l(q)),W=g(V/x*l(q));(U-=2*$)>f?(I+=$*=C?1:-1,N-=$):(U=0,I=N=(b+w)/2),(D-=2*W)>f?(R+=W*=C?1:-1,j-=W):(D=0,R=j=(b+w)/2)}var H=x*a(R),B=x*l(R),Y=m*a(N),Q=m*l(N);if(L>f){var X,G=x*a(j),J=x*l(j),K=m*a(I),tt=m*l(I);if(Af?z>f?(E=M(K,tt,H,B,x,z,C),P=M(G,J,Y,Q,x,z,C),O.moveTo(E.cx+E.x01,E.cy+E.y01),zf&&U>f?F>f?(E=M(Y,Q,G,J,m,-F,C),P=M(H,B,K,tt,m,-F,C),O.lineTo(E.cx+E.x01,E.cy+E.y01),Ft?1:e>=t?0:NaN}function A(t){return t}function C(){var t=A,e=O,n=null,i=(0,r.Z)(0),s=(0,r.Z)(p),o=(0,r.Z)(0);function a(r){var a,u,c,l,h,f=r.length,d=0,_=new Array(f),y=new Array(f),g=+i.apply(this,arguments),v=Math.min(p,Math.max(-p,s.apply(this,arguments)-g)),m=Math.min(Math.abs(v)/f,o.apply(this,arguments)),x=m*(v<0?-1:1);for(a=0;a0&&(d+=h);for(null!=e?_.sort((function(t,n){return e(y[t],y[n])})):null!=n&&_.sort((function(t,e){return n(r[t],r[e])})),a=0,c=d?(v-f*x)/d:0;a0?h*c:0)+x,y[u]={data:r[u],index:a,value:h,startAngle:g,endAngle:l,padAngle:m};return y}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:(0,r.Z)(+t),a):i},a.endAngle=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(+t),a):s},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:(0,r.Z)(+t),a):o},a}var E=n(23622),P=j(E.Z);function R(t){this._curve=t}function j(t){function e(e){return new R(t(e))}return e._curve=t,e}function I(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(j(t)):e()._curve},t}function N(){return I((0,Z.Z)().curve(P))}function U(){var t=(0,k.Z)().curve(P),e=t.curve,n=t.lineX0,i=t.lineX1,r=t.lineY0,s=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return I(n())},delete t.lineX0,t.lineEndAngle=function(){return I(i())},delete t.lineX1,t.lineInnerRadius=function(){return I(r())},delete t.lineY0,t.lineOuterRadius=function(){return I(s())},delete t.lineY1,t.curve=function(t){return arguments.length?e(j(t)):e()._curve},t}function D(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}R.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var q=n(13946),V=n(98930);function L(t){return t.source}function F(t){return t.target}function z(t){var e=L,n=F,s=V.x,o=V.y,a=null;function u(){var r,u=q.t.call(arguments),c=e.apply(this,u),l=n.apply(this,u);if(a||(a=r=(0,i.Z)()),t(a,+s.apply(this,(u[0]=c,u)),+o.apply(this,u),+s.apply(this,(u[0]=l,u)),+o.apply(this,u)),r)return a=null,r+""||null}return u.source=function(t){return arguments.length?(e=t,u):e},u.target=function(t){return arguments.length?(n=t,u):n},u.x=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(+t),u):s},u.y=function(t){return arguments.length?(o="function"===typeof t?t:(0,r.Z)(+t),u):o},u.context=function(t){return arguments.length?(a=null==t?null:t,u):a},u}function $(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function W(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+r)/2,i,n,i,r)}function H(t,e,n,i,r){var s=D(e,n),o=D(e,n=(n+r)/2),a=D(i,n),u=D(i,r);t.moveTo(s[0],s[1]),t.bezierCurveTo(o[0],o[1],a[0],a[1],u[0],u[1])}function B(){return z($)}function Y(){return z(W)}function Q(){var t=z(H);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var X={draw:function(t,e){var n=Math.sqrt(e/d);t.moveTo(n,0),t.arc(0,0,n,0,p)}},G={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},J=Math.sqrt(1/3),K=2*J,tt={draw:function(t,e){var n=Math.sqrt(e/K),i=n*J;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},et=Math.sin(d/10)/Math.sin(7*d/10),nt=Math.sin(p/10)*et,it=-Math.cos(p/10)*et,rt={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),i=nt*n,r=it*n;t.moveTo(0,-n),t.lineTo(i,r);for(var s=1;s<5;++s){var o=p*s/5,a=Math.cos(o),u=Math.sin(o);t.lineTo(u*n,-a*n),t.lineTo(a*i-u*r,u*i+a*r)}t.closePath()}},st={draw:function(t,e){var n=Math.sqrt(e),i=-n/2;t.rect(i,i,n,n)}},ot=Math.sqrt(3),at={draw:function(t,e){var n=-Math.sqrt(e/(3*ot));t.moveTo(0,2*n),t.lineTo(-ot*n,-n),t.lineTo(ot*n,-n),t.closePath()}},ut=-.5,ct=Math.sqrt(3)/2,lt=1/Math.sqrt(12),ht=3*(lt/2+1),ft={draw:function(t,e){var n=Math.sqrt(e/ht),i=n/2,r=n*lt,s=i,o=n*lt+n,a=-s,u=o;t.moveTo(i,r),t.lineTo(s,o),t.lineTo(a,u),t.lineTo(ut*i-ct*r,ct*i+ut*r),t.lineTo(ut*s-ct*o,ct*s+ut*o),t.lineTo(ut*a-ct*u,ct*a+ut*u),t.lineTo(ut*i+ct*r,ut*r-ct*i),t.lineTo(ut*s+ct*o,ut*o-ct*s),t.lineTo(ut*a+ct*u,ut*u-ct*a),t.closePath()}},dt=[X,G,tt,st,rt,at,ft];function _t(){var t=(0,r.Z)(X),e=(0,r.Z)(64),n=null;function s(){var r;if(n||(n=r=(0,i.Z)()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return s.type=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(e),s):t},s.size=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),s):e},s.context=function(t){return arguments.length?(n=null==t?null:t,s):n},s}function pt(){}var yt=n(97745);function gt(t){this._context=t}function vt(t){return new gt(t)}function mt(t){this._context=t}function xt(t){return new mt(t)}function bt(t,e){this._basis=new yt.fE(t),this._beta=e}gt.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:(0,yt.xm)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:(0,yt.xm)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},bt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i,r=t[0],s=e[0],o=t[n]-r,a=e[n]-s,u=-1;++u<=n;)i=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(r+i*o),this._beta*e[u]+(1-this._beta)*(s+i*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var wt=function t(e){function n(t){return 1===e?new yt.fE(t):new bt(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function St(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Mt(t,e){this._context=t,this._k=(1-e)/6}Mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:St(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:St(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Tt=function t(e){function n(t){return new Mt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function kt(t,e){this._context=t,this._k=(1-e)/6}kt.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:St(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Zt=function t(e){function n(t){return new kt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ot(t,e){this._context=t,this._k=(1-e)/6}Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:St(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var At=function t(e){function n(t){return new Ot(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ct(t,e,n){var i=t._x1,r=t._y1,s=t._x2,o=t._y2;if(t._l01_a>f){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>f){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*c+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(i,r,s,o,t._x2,t._y2)}function Et(t,e){this._context=t,this._alpha=e}Et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ct(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Pt=function t(e){function n(t){return e?new Et(t,e):new Mt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Rt(t,e){this._context=t,this._alpha=e}Rt.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ct(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var jt=function t(e){function n(t){return e?new Rt(t,e):new kt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function It(t,e){this._context=t,this._alpha=e}It.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ct(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Nt=function t(e){function n(t){return e?new It(t,e):new Ot(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ut(t){this._context=t}function Dt(t){return new Ut(t)}function qt(t){return t<0?-1:1}function Vt(t,e,n){var i=t._x1-t._x0,r=e-t._x1,s=(t._y1-t._y0)/(i||r<0&&-0),o=(n-t._y1)/(r||i<0&&-0),a=(s*r+o*i)/(i+r);return(qt(s)+qt(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function Lt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Ft(t,e,n){var i=t._x0,r=t._y0,s=t._x1,o=t._y1,a=(s-i)/3;t._context.bezierCurveTo(i+a,r+a*e,s-a,o-a*n,s,o)}function zt(t){this._context=t}function $t(t){this._context=new Wt(t)}function Wt(t){this._context=t}function Ht(t){return new zt(t)}function Bt(t){return new $t(t)}function Yt(t){this._context=t}function Qt(t){var e,n,i=t.length-1,r=new Array(i),s=new Array(i),o=new Array(i);for(r[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)r[e]=(o[e]-r[e+1])/s[e];for(s[i-1]=(t[i]+r[i-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var ee=n(75823),ne=n(12759),ie=n(27500),re=n(82610),se=n(34812),oe=n(77944),ae=n(34128),ue=n(39586),ce=n(25516),le=n(54164),he=n(8512),fe=n(2010)},92201:function(t,e,n){n.d(e,{Z:function(){return a}});var i=n(35681),r=n(90875),s=n(23622),o=n(98930);function a(){var t=o.x,e=o.y,n=(0,r.Z)(!0),a=null,u=s.Z,c=null;function l(r){var s,o,l,h=r.length,f=!1;for(null==a&&(c=u(l=(0,i.Z)())),s=0;s<=h;++s)!(s0)for(var n,i,r,s,o,a,u=0,c=t[e[0]].length;u0?(i[0]=s,i[1]=s+=r):r<0?(i[1]=o,i[0]=o+=r):(i[0]=0,i[1]=r)}n.d(e,{Z:function(){return i}})},12759:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(82610);function r(t,e){if((r=t.length)>0){for(var n,r,s,o=0,a=t[0].length;o1)for(var n,i,r,s=1,o=t[e[0]],a=o.length;s0){for(var n,r=0,s=t[e[0]],o=s.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,s,o=0,a=1;as&&(s=e,i=n);return i}},39586:function(t,e,n){n.d(e,{S:function(){return s},Z:function(){return r}});var i=n(8512);function r(t){var e=t.map(s);return(0,i.Z)(t).sort((function(t,n){return e[t]-e[n]}))}function s(t){for(var e,n=0,i=-1,r=t.length;++i=0;)n[e]=e;return n}n.d(e,{Z:function(){return i}})},2010:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(8512);function r(t){return(0,i.Z)(t).reverse()}},98930:function(t,e,n){function i(t){return t[0]}function r(t){return t[1]}n.d(e,{x:function(){return i},y:function(){return r}})},75823:function(t,e,n){n.d(e,{Z:function(){return u}});var i=n(13946),r=n(90875),s=n(82610),o=n(8512);function a(t,e){return t[e]}function u(){var t=(0,r.Z)([]),e=o.Z,n=s.Z,u=a;function c(i){var r,s,o=t.apply(this,arguments),a=i.length,c=o.length,l=new Array(c);for(r=0;rt&&t[s],a=(t,e)=>(0,i.dE)(t,s,e),u=t=>t&&t[s]&&t[s].getPayload();class c{constructor(){this.payload=void 0,a(this,this)}getPayload(){return this.payload||[]}}class l extends c{constructor(t){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=t,i.is.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new l(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return i.is.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value!==t&&(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,i.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}}class h extends l{constructor(t){super(0),this._string=null,this._toString=void 0,this._toString=(0,i.mD)({output:[t,t]})}static create(t){return new h(t)}getValue(){let t=this._string;return null==t?this._string=this._toString(this._value):t}setValue(t){if(i.is.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else{if(!super.setValue(t))return!1;this._string=null}return!0}reset(t){t&&(this._toString=(0,i.mD)({output:[this.getValue(),t]})),this._value=0,super.reset()}}const f={dependencies:null};class d extends c{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const e={};return(0,i.rU)(this.source,((n,r)=>{var o;(o=n)&&o[s]===o?e[r]=n.getValue(t):(0,i.j$)(n)?e[r]=(0,i.je)(n):t||(e[r]=n)})),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&(0,i.S6)(this.payload,(t=>t.reset()))}_makePayload(t){if(t){const e=new Set;return(0,i.rU)(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){f.dependencies&&(0,i.j$)(t)&&f.dependencies.add(t);const e=u(t);e&&(0,i.S6)(e,(t=>this.add(t)))}}class _ extends d{constructor(t){super(t)}static create(t){return new _(t)}getValue(){return this.source.map((t=>t.getValue()))}setValue(t){const e=this.getPayload();return t.length==e.length?e.map(((e,n)=>e.setValue(t[n]))).some(Boolean):(super.setValue(t.map(p)),!0)}}function p(t){return((0,i.Df)(t)?h:l).create(t)}function y(t){const e=o(t);return e?e.constructor:i.is.arr(t)?_:(0,i.Df)(t)?h:l}function g(){return g=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const n=!i.is.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,r.forwardRef)(((s,o)=>{const a=(0,r.useRef)(null),u=n&&(0,r.useCallback)((t=>{a.current=function(t,e){t&&(i.is.fun(t)?t(e):t.current=e);return e}(o,t)}),[o]),[c,l]=function(t,e){const n=new Set;f.dependencies=n,t.style&&(t=g({},t,{style:e.createAnimatedStyle(t.style)}));return t=new d(t),f.dependencies=null,[t,n]}(s,e),h=(0,i.NW)(),_=()=>{const t=a.current;if(n&&!t)return;!1===(!!t&&e.applyAnimatedValues(t,c.getValue(!0)))&&h()},p=new m(_,l),y=(0,r.useRef)();(0,i.LI)((()=>(y.current=p,(0,i.S6)(l,(t=>(0,i.UI)(t,p))),()=>{y.current&&((0,i.S6)(y.current.deps,(t=>(0,i.iL)(t,y.current))),i.Wn.cancel(y.current.update))}))),(0,r.useEffect)(_,[]),(0,i.tf)((()=>()=>{const t=y.current;(0,i.S6)(t.deps,(e=>(0,i.iL)(e,t)))}));const v=e.getComponentProps(c.getValue());return r.createElement(t,g({},v,{ref:u}))}))};class m{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){"change"==t.type&&i.Wn.write(this.update)}}const x=Symbol.for("AnimatedComponent"),b=(t,{applyAnimatedValues:e=(()=>!1),createAnimatedStyle:n=(t=>new d(t)),getComponentProps:r=(t=>t)}={})=>{const s={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:r},o=t=>{const e=w(t)||"Anonymous";return(t=i.is.str(t)?o[t]||(o[t]=v(t,s)):t[x]||(t[x]=v(t,s))).displayName=`Animated(${e})`,t};return(0,i.rU)(t,((e,n)=>{i.is.arr(t)&&(n=w(e)),o[n]=o(e)})),{animated:o}},w=t=>i.is.str(t)?t:t&&i.is.str(t.displayName)?t.displayName:i.is.fun(t)&&t.name||null},79950:function(t,e,n){n.d(e,{Globals:function(){return i.OH},to:function(){return St},useTransition:function(){return yt}});var i=n(88489),r=n(82684),s=n(92469);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e!0===t||!!(e&&t&&(i.is.fun(t)?t(e):(0,i.qo)(t).includes(e))),c=(t,e)=>i.is.obj(t)?e&&t[e]:t,l=(t,e)=>!0===t.default?t[e]:t.default?t.default[e]:void 0,h=t=>t,f=(t,e=h)=>{let n=d;t.default&&!0!==t.default&&(t=t.default,n=Object.keys(t));const r={};for(const s of n){const n=e(t[s],s);i.is.und(n)||(r[s]=n)}return r},d=["config","onProps","onStart","onChange","onPause","onResume","onRest"],_={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function p(t){const e=function(t){const e={};let n=0;if((0,i.rU)(t,((t,i)=>{_[i]||(e[i]=t,n++)})),n)return e}(t);if(e){const n={to:e};return(0,i.rU)(t,((t,i)=>i in e||(n[i]=t))),n}return o({},t)}function y(t){return t=(0,i.je)(t),i.is.arr(t)?t.map(y):(0,i.Df)(t)?i.OH.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function g(t){for(const e in t)return!0;return!1}function v(t){return i.is.fun(t)||i.is.arr(t)&&i.is.obj(t[0])}function m(t,e){var n;null==(n=t.ref)||n.delete(t),null==e||e.delete(t)}function x(t,e){var n;e&&t.ref!==e&&(null==(n=t.ref)||n.delete(t),e.add(t),t.ref=e)}const b=o({},{tension:170,friction:26},{mass:1,damping:1,easing:i.Z5.linear,clamp:!1});class w{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,b)}}function S(t,e){if(i.is.und(e.decay)){const n=!i.is.und(e.tension)||!i.is.und(e.friction);!n&&i.is.und(e.frequency)&&i.is.und(e.damping)&&i.is.und(e.mass)||(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}else t.duration=void 0}const M=[];class T{constructor(){this.changed=!1,this.values=M,this.toValues=null,this.fromValues=M,this.to=void 0,this.from=void 0,this.config=new w,this.immediate=!1}}function k(t,{key:e,props:n,defaultProps:r,state:s,actions:c}){return new Promise(((l,h)=>{var f;let d,_,p=u(null!=(f=n.cancel)?f:null==r?void 0:r.cancel,e);if(p)v();else{i.is.und(n.pause)||(s.paused=u(n.pause,e));let t=null==r?void 0:r.pause;!0!==t&&(t=s.paused||u(t,e)),d=a(n.delay||0,e),t?(s.resumeQueue.add(g),c.pause()):(c.resume(),g())}function y(){s.resumeQueue.add(g),s.timeouts.delete(_),_.cancel(),d=_.time-i.Wn.now()}function g(){d>0&&!i.OH.skipAnimation?(s.delayed=!0,_=i.Wn.setTimeout(v,d),s.pauseQueue.add(y),s.timeouts.add(_)):v()}function v(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(y),s.timeouts.delete(_),t<=(s.cancelId||0)&&(p=!0);try{c.start(o({},n,{callId:t,cancel:p}),l)}catch(e){h(e)}}}))}const Z=(t,e)=>1==e.length?e[0]:e.some((t=>t.cancelled))?C(t.get()):e.every((t=>t.noop))?O(t.get()):A(t.get(),e.every((t=>t.finished))),O=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),A=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),C=t=>({value:t,cancelled:!0,finished:!1});function E(t,e,n,r){const{callId:s,parentId:a,onRest:u}=e,{asyncTo:c,promise:l}=n;return a||t!==c||e.reset?n.promise=(async()=>{n.asyncId=s,n.asyncTo=t;const h=f(e,((t,e)=>"onRest"===e?void 0:t));let d,_;const p=new Promise(((t,e)=>(d=t,_=e))),y=t=>{const e=s<=(n.cancelId||0)&&C(r)||s!==n.asyncId&&A(r,!1);if(e)throw t.result=e,_(t),t},g=(t,e)=>{const a=new R,u=new j;return(async()=>{if(i.OH.skipAnimation)throw P(n),u.result=A(r,!1),_(u),u;y(a);const c=i.is.obj(t)?o({},t):o({},e,{to:t});c.parentId=s,(0,i.rU)(h,((t,e)=>{i.is.und(c[e])&&(c[e]=t)}));const l=await r.start(c);return y(a),n.paused&&await new Promise((t=>{n.resumeQueue.add(t)})),l})()};let v;if(i.OH.skipAnimation)return P(n),A(r,!1);try{let e;e=i.is.arr(t)?(async t=>{for(const e of t)await g(e)})(t):Promise.resolve(t(g,r.stop.bind(r))),await Promise.all([e.then(d),p]),v=A(r.get(),!0,!1)}catch(m){if(m instanceof R)v=m.result;else{if(!(m instanceof j))throw m;v=m.result}}finally{s==n.asyncId&&(n.asyncId=a,n.asyncTo=a?c:void 0,n.promise=a?l:void 0)}return i.is.fun(u)&&i.Wn.batchedUpdates((()=>{u(v,r,r.item)})),v})():l}function P(t,e){(0,i.yl)(t.timeouts,(t=>t.cancel())),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class R extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class j extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const I=t=>t instanceof U;let N=1;class U extends i.B0{constructor(...t){super(...t),this.id=N++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=(0,s.ys)(this);return t&&t.getValue()}to(...t){return i.OH.to(this,t)}interpolate(...t){return(0,i.LW)(),i.OH.to(this,t)}toJSON(){return this.get()}observerAdded(t){1==t&&this._attach()}observerRemoved(t){0==t&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){(0,i.k0)(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||i.fT.sort(this),(0,i.k0)(this,{type:"priority",parent:this,priority:t})}}const D=Symbol.for("SpringPhase"),q=t=>(1&t[D])>0,V=t=>(2&t[D])>0,L=t=>(4&t[D])>0,F=(t,e)=>e?t[D]|=3:t[D]&=-3,z=(t,e)=>e?t[D]|=4:t[D]&=-5;class $ extends U{constructor(t,e){if(super(),this.key=void 0,this.animation=new T,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!i.is.und(t)||!i.is.und(e)){const n=i.is.obj(t)?o({},t):o({},e,{from:t});i.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(V(this)||this._state.asyncTo)||L(this)}get goal(){return(0,i.je)(this.animation.to)}get velocity(){const t=(0,s.ys)(this);return t instanceof s.iG?t.lastVelocity||0:t.getPayload().map((t=>t.lastVelocity||0))}get hasAnimated(){return q(this)}get isAnimating(){return V(this)}get isPaused(){return L(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,n=!1;const r=this.animation;let{config:o,toValues:a}=r;const u=(0,s.He)(r.to);!u&&(0,i.j$)(r.to)&&(a=(0,i.qo)((0,i.je)(r.to))),r.values.forEach(((c,l)=>{if(c.done)return;const h=c.constructor==s.eC?1:u?u[l].lastPosition:a[l];let f=r.immediate,d=h;if(!f){if(d=c.lastPosition,o.tension<=0)return void(c.done=!0);let e=c.elapsedTime+=t;const n=r.fromValues[l],s=null!=c.v0?c.v0:c.v0=i.is.arr(o.velocity)?o.velocity[l]:o.velocity;let a;const u=o.precision||(n==h?.005:Math.min(1,.001*Math.abs(h-n)));if(i.is.und(o.duration))if(o.decay){const t=!0===o.decay?.998:o.decay,i=Math.exp(-(1-t)*e);d=n+s/(1-t)*(1-i),f=Math.abs(c.lastPosition-d)<=u,a=s*i}else{a=null==c.lastVelocity?s:c.lastVelocity;const e=o.restVelocity||u/10,r=o.clamp?0:o.bounce,l=!i.is.und(r),_=n==h?c.v0>0:ne,p||(f=Math.abs(h-d)<=u,!f));++t){l&&(y=d==h||d>h==_,y&&(a=-a*r,d=h));a+=(1e-6*-o.tension*(d-h)+.001*-o.friction*a)/o.mass*g,d+=a*g}}else{let i=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,e=c.elapsedTime+=t)),i=(o.progress||0)+e/this._memoizedDuration,i=i>1?1:i<0?0:i,c.durationProgress=i),d=n+o.easing(i)*(h-n),a=(d-c.lastPosition)/t,f=1==i}c.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),f=!0)}u&&!u[l].done&&(f=!1),f?c.done=!0:e=!1,c.setValue(d,o.round)&&(n=!0)}));const c=(0,s.ys)(this),l=c.getValue();if(e){const t=(0,i.je)(r.to);l===t&&!n||o.decay?n&&o.decay&&this._onChange(l):(c.setValue(t),this._onChange(t)),this._stop()}else n&&this._onChange(l)}set(t){return i.Wn.batchedUpdates((()=>{this._stop(),this._focus(t),this._set(t)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(V(this)){const{to:t,config:e}=this.animation;i.Wn.batchedUpdates((()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()}))}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let n;return i.is.und(t)?(n=this.queue||[],this.queue=[]):n=[i.is.obj(t)?t:o({},e,{to:t})],Promise.all(n.map((t=>this._update(t)))).then((t=>Z(this,t)))}stop(t){const{to:e}=this.animation;return this._focus(this.get()),P(this._state,t&&this._lastCallId),i.Wn.batchedUpdates((()=>this._stop(e,t))),this}reset(){this._update({reset:!0})}eventObserved(t){"change"==t.type?this._start():"priority"==t.type&&(this.priority=t.priority+1)}_prepareNode(t){const e=this.key||"";let{to:n,from:r}=t;n=i.is.obj(n)?n[e]:n,(null==n||v(n))&&(n=void 0),r=i.is.obj(r)?r[e]:r,null==r&&(r=void 0);const o={to:n,from:r};return q(this)||(t.reverse&&([n,r]=[r,n]),r=(0,i.je)(r),i.is.und(r)?(0,s.ys)(this)||this._set(n):this._set(r)),o}_update(t,e){let n=o({},t);const{key:r,defaultProps:s}=this;n.default&&Object.assign(s,f(n,((t,e)=>/^on/.test(e)?c(t,r):t))),X(this,n,"onProps"),G(this,"onProps",n,this);const a=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const u=this._state;return k(++this._lastCallId,{key:r,props:n,defaultProps:s,state:u,actions:{pause:()=>{L(this)||(z(this,!0),(0,i.bl)(u.pauseQueue),G(this,"onPause",A(this,W(this,this.animation.to)),this))},resume:()=>{L(this)&&(z(this,!1),V(this)&&this._resume(),(0,i.bl)(u.resumeQueue),G(this,"onResume",A(this,W(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then((t=>{if(n.loop&&t.finished&&(!e||!t.noop)){const t=H(n);if(t)return this._update(t,!0)}return t}))}_merge(t,e,n){if(e.cancel)return this.stop(!0),n(C(this));const r=!i.is.und(t.to),c=!i.is.und(t.from);if(r||c){if(!(e.callId>this._lastToId))return n(C(this));this._lastToId=e.callId}const{key:l,defaultProps:h,animation:f}=this,{to:d,from:_}=f;let{to:p=d,from:g=_}=t;!c||r||e.default&&!i.is.und(p)||(p=g),e.reverse&&([p,g]=[g,p]);const m=!(0,i.Xy)(g,_);m&&(f.from=g),g=(0,i.je)(g);const x=!(0,i.Xy)(p,d);x&&this._focus(p);const w=v(e.to),{config:M}=f,{decay:T,velocity:k}=M;(r||c)&&(M.velocity=0),e.config&&!w&&function(t,e,n){n&&(S(n=o({},n),e),e=o({},n,e)),S(t,e),Object.assign(t,e);for(const i in b)null==t[i]&&(t[i]=b[i]);let{mass:r,frequency:s,damping:a}=t;i.is.und(s)||(s<.01&&(s=.01),a<0&&(a=0),t.tension=Math.pow(2*Math.PI/s,2)*r,t.friction=4*Math.PI*a*r/s)}(M,a(e.config,l),e.config!==h.config?a(h.config,l):void 0);let Z=(0,s.ys)(this);if(!Z||i.is.und(p))return n(A(this,!0));const P=i.is.und(e.reset)?c&&!e.default:!i.is.und(g)&&u(e.reset,l),R=P?g:this.get(),j=y(p),I=i.is.num(j)||i.is.arr(j)||(0,i.Df)(j),N=!w&&(!I||u(h.immediate||e.immediate,l));if(x){const t=(0,s.sb)(p);if(t!==Z.constructor){if(!N)throw Error(`Cannot animate between ${Z.constructor.name} and ${t.name}, as the "to" prop suggests`);Z=this._set(j)}}const U=Z.constructor;let D=(0,i.j$)(p),L=!1;if(!D){const t=P||!q(this)&&m;(x||t)&&(L=(0,i.Xy)(y(R),j),D=!L),((0,i.Xy)(f.immediate,N)||N)&&(0,i.Xy)(M.decay,T)&&(0,i.Xy)(M.velocity,k)||(D=!0)}if(L&&V(this)&&(f.changed&&!P?D=!0:D||this._stop(d)),!w&&((D||(0,i.j$)(d))&&(f.values=Z.getPayload(),f.toValues=(0,i.j$)(p)?null:U==s.eC?[1]:(0,i.qo)(j)),f.immediate!=N&&(f.immediate=N,N||P||this._set(d)),D)){const{onRest:t}=f;(0,i.S6)(Q,(t=>X(this,e,t)));const r=A(this,W(this,d));(0,i.bl)(this._pendingCalls,r),this._pendingCalls.add(n),f.changed&&i.Wn.batchedUpdates((()=>{f.changed=!P,null==t||t(r,this),P?a(h.onRest,r):null==f.onStart||f.onStart(r,this)}))}P&&this._set(R),w?n(E(e.to,e,this._state,this)):D?this._start():V(this)&&!x?this._pendingCalls.add(n):n(O(R))}_focus(t){const e=this.animation;t!==e.to&&((0,i.Ll)(this)&&this._detach(),e.to=t,(0,i.Ll)(this)&&this._attach())}_attach(){let t=0;const{to:e}=this.animation;(0,i.j$)(e)&&((0,i.UI)(e,this),I(e)&&(t=e.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;(0,i.j$)(t)&&(0,i.iL)(t,this)}_set(t,e=!0){const n=(0,i.je)(t);if(!i.is.und(n)){const t=(0,s.ys)(this);if(!t||!(0,i.Xy)(n,t.getValue())){const r=(0,s.sb)(n);t&&t.constructor==r?t.setValue(n):(0,s.f3)(this,r.create(n)),t&&i.Wn.batchedUpdates((()=>{this._onChange(n,e)}))}}return(0,s.ys)(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,G(this,"onStart",A(this,W(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),a(this.animation.onChange,t,this)),a(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){const t=this.animation;(0,s.ys)(this).reset((0,i.je)(t.to)),t.immediate||(t.fromValues=t.values.map((t=>t.lastPosition))),V(this)||(F(this,!0),L(this)||this._resume())}_resume(){i.OH.skipAnimation?this.finish():i.fT.start(this)}_stop(t,e){if(V(this)){F(this,!1);const n=this.animation;(0,i.S6)(n.values,(t=>{t.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,i.k0)(this,{type:"idle",parent:this});const r=e?C(this.get()):A(this.get(),W(this,null!=t?t:n.to));(0,i.bl)(this._pendingCalls,r),n.changed&&(n.changed=!1,G(this,"onRest",r,this))}}}function W(t,e){const n=y(e),r=y(t.get());return(0,i.Xy)(r,n)}function H(t,e=t.loop,n=t.to){let i=a(e);if(i){const r=!0!==i&&p(i),s=(r||t).reverse,a=!r||r.reset;return B(o({},t,{loop:e,default:!1,pause:void 0,to:!s||v(n)?n:void 0,from:a?t.from:void 0,reset:a},r))}}function B(t){const{to:e,from:n}=t=p(t),r=new Set;return i.is.obj(e)&&Y(e,r),i.is.obj(n)&&Y(n,r),t.keys=r.size?Array.from(r):null,t}function Y(t,e){(0,i.rU)(t,((t,n)=>null!=t&&e.add(n)))}const Q=["onStart","onRest","onChange","onPause","onResume"];function X(t,e,n){t.animation[n]=e[n]!==l(e,n)?c(e[n],t.key):void 0}function G(t,e,...n){var i,r,s,o;null==(i=(r=t.animation)[e])||i.call(r,...n),null==(s=(o=t.defaultProps)[e])||s.call(o,...n)}const J=["onStart","onChange","onRest"];let K=1;class tt{constructor(t,e){this.id=K++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start(o({default:!0},t))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((t=>t.idle&&!t.isDelayed&&!t.isPaused))}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each(((e,n)=>t[n]=e.get())),t}set(t){for(const e in t){const n=t[e];i.is.und(n)||this.springs[e].set(n)}}update(t){return t&&this.queue.push(B(t)),this}start(t){let{queue:e}=this;return t?e=(0,i.qo)(t).map(B):this.queue=[],this._flush?this._flush(this,e):(at(this,e),et(this,e))}stop(t,e){if(t!==!!t&&(e=t),e){const n=this.springs;(0,i.S6)((0,i.qo)(e),(e=>n[e].stop(!!t)))}else P(this._state,this._lastAsyncId),this.each((e=>e.stop(!!t)));return this}pause(t){if(i.is.und(t))this.start({pause:!0});else{const e=this.springs;(0,i.S6)((0,i.qo)(t),(t=>e[t].pause()))}return this}resume(t){if(i.is.und(t))this.start({pause:!1});else{const e=this.springs;(0,i.S6)((0,i.qo)(t),(t=>e[t].resume()))}return this}each(t){(0,i.rU)(this.springs,t)}_onFrame(){const{onStart:t,onChange:e,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,(0,i.yl)(t,(([t,e])=>{e.value=this.get(),t(e,this,this._item)})));const o=!r&&this._started,a=s||o&&n.size?this.get():null;s&&e.size&&(0,i.yl)(e,(([t,e])=>{e.value=a,t(e,this,this._item)})),o&&(this._started=!1,(0,i.yl)(n,(([t,e])=>{e.value=a,t(e,this,this._item)})))}eventObserved(t){if("change"==t.type)this._changed.add(t.parent),t.idle||this._active.add(t.parent);else{if("idle"!=t.type)return;this._active.delete(t.parent)}i.Wn.onFrame(this._onFrame)}}function et(t,e){return Promise.all(e.map((e=>nt(t,e)))).then((e=>Z(t,e)))}async function nt(t,e,n){const{keys:r,to:s,from:o,loop:a,onRest:u,onResolve:c}=e,h=i.is.obj(e.default)&&e.default;a&&(e.loop=!1),!1===s&&(e.to=null),!1===o&&(e.from=null);const f=i.is.arr(s)||i.is.fun(s)?s:void 0;f?(e.to=void 0,e.onRest=void 0,h&&(h.onRest=void 0)):(0,i.S6)(J,(n=>{const r=e[n];if(i.is.fun(r)){const i=t._events[n];e[n]=({finished:t,cancelled:e})=>{const n=i.get(r);n?(t||(n.finished=!1),e&&(n.cancelled=!0)):i.set(r,{value:null,finished:t||!1,cancelled:e||!1})},h&&(h[n]=e[n])}}));const d=t._state;e.pause===!d.paused?(d.paused=e.pause,(0,i.bl)(e.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(e.pause=!0);const _=(r||Object.keys(t.springs)).map((n=>t.springs[n].start(e))),p=!0===e.cancel||!0===l(e,"cancel");(f||p&&d.asyncId)&&_.push(k(++t._lastAsyncId,{props:e,state:d,actions:{pause:i.ZT,resume:i.ZT,start(e,n){p?(P(d,t._lastAsyncId),n(C(t))):(e.onRest=u,n(E(f,e,d,t)))}}})),d.paused&&await new Promise((t=>{d.resumeQueue.add(t)}));const y=Z(t,await Promise.all(_));if(a&&y.finished&&(!n||!y.noop)){const n=H(e,a,s);if(n)return at(t,[n]),nt(t,n,!0)}return c&&i.Wn.batchedUpdates((()=>c(y,t,t.item))),y}function it(t,e){const n=o({},t.springs);return e&&(0,i.S6)((0,i.qo)(e),(t=>{i.is.und(t.keys)&&(t=B(t)),i.is.obj(t.to)||(t=o({},t,{to:void 0})),ot(n,t,(t=>st(t)))})),rt(t,n),n}function rt(t,e){(0,i.rU)(e,((e,n)=>{t.springs[n]||(t.springs[n]=e,(0,i.UI)(e,t))}))}function st(t,e){const n=new $;return n.key=t,e&&(0,i.UI)(n,e),n}function ot(t,e,n){e.keys&&(0,i.S6)(e.keys,(i=>{(t[i]||(t[i]=n(i)))._prepareNode(e)}))}function at(t,e){(0,i.S6)(e,(e=>{ot(t.springs,e,(e=>st(e,t)))}))}function ut(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}const ct=["children"],lt=t=>{let{children:e}=t,n=ut(t,ct);const s=(0,r.useContext)(ht),o=n.pause||!!s.pause,a=n.immediate||!!s.immediate;n=(0,i.Pr)((()=>({pause:o,immediate:a})),[o,a]);const{Provider:u}=ht;return r.createElement(u,{value:n},e)},ht=(ft=lt,dt={},Object.assign(ft,r.createContext(dt)),ft.Provider._context=ft,ft.Consumer._context=ft,ft);var ft,dt;lt.Provider=ht.Provider,lt.Consumer=ht.Consumer;const _t=()=>{const t=[],e=function(e){(0,i.ZR)();const r=[];return(0,i.S6)(t,((t,s)=>{if(i.is.und(e))r.push(t.start());else{const i=n(e,t,s);i&&r.push(t.start(i))}})),r};e.current=t,e.add=function(e){t.includes(e)||t.push(e)},e.delete=function(e){const n=t.indexOf(e);~n&&t.splice(n,1)},e.pause=function(){return(0,i.S6)(t,(t=>t.pause(...arguments))),this},e.resume=function(){return(0,i.S6)(t,(t=>t.resume(...arguments))),this},e.set=function(e){(0,i.S6)(t,(t=>t.set(e)))},e.start=function(e){const n=[];return(0,i.S6)(t,((t,r)=>{if(i.is.und(e))n.push(t.start());else{const i=this._getProps(e,t,r);i&&n.push(t.start(i))}})),n},e.stop=function(){return(0,i.S6)(t,(t=>t.stop(...arguments))),this},e.update=function(e){return(0,i.S6)(t,((t,n)=>t.update(this._getProps(e,t,n)))),this};const n=function(t,e,n){return i.is.fun(t)?t(n,e):t};return e._getProps=n,e};let pt;function yt(t,e,n){const s=i.is.fun(e)&&e,{reset:u,sort:c,trail:l=0,expires:h=!0,exitBeforeEnter:d=!1,onDestroyed:_,ref:y,config:v}=s?s():e,b=(0,r.useMemo)((()=>s||3==arguments.length?_t():void 0),[]),w=(0,i.qo)(t),S=[],M=(0,r.useRef)(null),T=u?null:M.current;(0,i.LI)((()=>{M.current=S})),(0,i.tf)((()=>((0,i.S6)(S,(t=>{null==b||b.add(t.ctrl),t.ctrl.ref=b})),()=>{(0,i.S6)(M.current,(t=>{t.expired&&clearTimeout(t.expirationId),m(t.ctrl,b),t.ctrl.stop(!0)}))})));const k=vt(w,s?s():e,T),Z=u&&M.current||[];(0,i.LI)((()=>(0,i.S6)(Z,(({ctrl:t,item:e,key:n})=>{m(t,b),a(_,e,n)}))));const O=[];if(T&&(0,i.S6)(T,((t,e)=>{t.expired?(clearTimeout(t.expirationId),Z.push(t)):~(e=O[e]=k.indexOf(t.key))&&(S[e]=t)})),(0,i.S6)(w,((t,e)=>{S[e]||(S[e]={key:k[e],item:t,phase:pt.MOUNT,ctrl:new tt},S[e].ctrl.item=t)})),O.length){let t=-1;const{leave:n}=s?s():e;(0,i.S6)(O,((e,i)=>{const r=T[i];~e?(t=S.indexOf(r),S[t]=o({},r,{item:w[e]})):n&&S.splice(++t,0,r)}))}i.is.fun(c)&&S.sort(((t,e)=>c(t.item,e.item)));let A=-l;const C=(0,i.NW)(),E=f(e),P=new Map,R=(0,r.useRef)(new Map),j=(0,r.useRef)(!1);(0,i.S6)(S,((t,n)=>{const r=t.key,u=t.phase,c=s?s():e;let f,_,g=a(c.delay||0,r);if(u==pt.MOUNT)f=c.enter,_=pt.ENTER;else{const t=k.indexOf(r)<0;if(u!=pt.LEAVE)if(t)f=c.leave,_=pt.LEAVE;else{if(!(f=c.update))return;_=pt.UPDATE}else{if(t)return;f=c.enter,_=pt.ENTER}}if(f=a(f,t.item,n),f=i.is.obj(f)?p(f):{to:f},!f.config){const e=v||E.config;f.config=a(e,t.item,n,_)}A+=l;const m=o({},E,{delay:g+A,ref:y,immediate:c.immediate,reset:!1},f);if(_==pt.ENTER&&i.is.und(m.from)){const r=s?s():e,o=i.is.und(r.initial)||T?r.from:r.initial;m.from=a(o,t.item,n)}const{onResolve:x}=m;m.onResolve=t=>{a(x,t);const e=M.current,n=e.find((t=>t.key===r));if(n&&(!t.cancelled||n.phase==pt.UPDATE)&&n.ctrl.idle){const t=e.every((t=>t.ctrl.idle));if(n.phase==pt.LEAVE){const e=a(h,n.item);if(!1!==e){const i=!0===e?0:e;if(n.expired=!0,!t&&i>0)return void(i<=2147483647&&(n.expirationId=setTimeout(C,i)))}}t&&e.some((t=>t.expired))&&(R.current.delete(n),d&&(j.current=!0),C())}};const b=it(t.ctrl,m);_===pt.LEAVE&&d?R.current.set(t,{phase:_,springs:b,payload:m}):P.set(t,{phase:_,springs:b,payload:m})}));const I=(0,r.useContext)(lt),N=(0,i.zH)(I),U=I!==N&&g(I);(0,i.LI)((()=>{U&&(0,i.S6)(S,(t=>{t.ctrl.start({default:I})}))}),[I]),(0,i.S6)(P,((t,e)=>{if(R.current.size){const t=S.findIndex((t=>t.key===e.key));S.splice(t,1)}})),(0,i.LI)((()=>{(0,i.S6)(R.current.size?R.current:P,(({phase:t,payload:e},n)=>{const{ctrl:i}=n;n.phase=t,null==b||b.add(i),U&&t==pt.ENTER&&i.start({default:I}),e&&(x(i,e.ref),!i.ref&&!b||j.current?(i.start(e),j.current&&(j.current=!1)):i.update(e))}))}),u?void 0:n);const D=t=>r.createElement(r.Fragment,null,S.map(((e,n)=>{const{springs:s}=P.get(e)||e.ctrl,a=t(o({},s),e.item,e,n);return a&&a.type?r.createElement(a.type,o({},a.props,{key:i.is.str(e.key)||i.is.num(e.key)?e.key:e.ctrl.id,ref:a.ref})):a})));return b?[D,b]:D}!function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"}(pt||(pt={}));let gt=1;function vt(t,{key:e,keys:n=e},r){if(null===n){const e=new Set;return t.map((t=>{const n=r&&r.find((n=>n.item===t&&n.phase!==pt.LEAVE&&!e.has(n)));return n?(e.add(n),n.key):gt++}))}return i.is.und(n)?t:i.is.fun(n)?t.map(n):(0,i.qo)(n)}class mt extends U{constructor(t,e){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=t,this.calc=(0,i.mD)(...e);const n=this._get(),r=(0,s.sb)(n);(0,s.f3)(this,r.create(n))}advance(t){const e=this._get(),n=this.get();(0,i.Xy)(e,n)||((0,s.ys)(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&bt(this._active)&&wt(this)}_get(){const t=i.is.arr(this.source)?this.source.map(i.je):(0,i.qo)((0,i.je)(this.source));return this.calc(...t)}_start(){this.idle&&!bt(this._active)&&(this.idle=!1,(0,i.S6)((0,s.He)(this),(t=>{t.done=!1})),i.OH.skipAnimation?(i.Wn.batchedUpdates((()=>this.advance())),wt(this)):i.fT.start(this))}_attach(){let t=1;(0,i.S6)((0,i.qo)(this.source),(e=>{(0,i.j$)(e)&&(0,i.UI)(e,this),I(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))})),this.priority=t,this._start()}_detach(){(0,i.S6)((0,i.qo)(this.source),(t=>{(0,i.j$)(t)&&(0,i.iL)(t,this)})),this._active.clear(),wt(this)}eventObserved(t){"change"==t.type?t.idle?this.advance():(this._active.add(t.parent),this._start()):"idle"==t.type?this._active.delete(t.parent):"priority"==t.type&&(this.priority=(0,i.qo)(this.source).reduce(((t,e)=>Math.max(t,(I(e)?e.priority:0)+1)),0))}}function xt(t){return!1!==t.idle}function bt(t){return!t.size||Array.from(t).every(xt)}function wt(t){t.idle||(t.idle=!0,(0,i.S6)((0,s.He)(t),(t=>{t.done=!0})),(0,i.k0)(t,{type:"idle",parent:t}))}const St=(t,...e)=>new mt(t,e);i.OH.assign({createStringInterpolator:i.qS,to:(t,e)=>new mt(t,e)});i.fT.advance},88489:function(t,e,n){n.d(e,{B0:function(){return Ot},OH:function(){return D},UI:function(){return Ct},k0:function(){return Zt},O9:function(){return Y},mD:function(){return dt},qS:function(){return Ft},dE:function(){return S},ZR:function(){return Yt},LW:function(){return Ht},S6:function(){return k},rU:function(){return Z},Z5:function(){return xt},yl:function(){return A},bl:function(){return C},fT:function(){return z},Ll:function(){return kt},je:function(){return Tt},j$:function(){return Mt},is:function(){return M},Df:function(){return Qt},Xy:function(){return T},ZT:function(){return w},Wn:function(){return r},iL:function(){return Et},qo:function(){return O},NW:function(){return Gt},LI:function(){return Xt},Pr:function(){return Jt},tf:function(){return Kt},zH:function(){return ee}});let i=m();const r=t=>p(t,i);let s=m();r.write=t=>p(t,s);let o=m();r.onStart=t=>p(t,o);let a=m();r.onFrame=t=>p(t,a);let u=m();r.onFinish=t=>p(t,u);let c=[];r.setTimeout=(t,e)=>{let n=r.now()+e,i=()=>{let t=c.findIndex((t=>t.cancel==i));~t&&c.splice(t,1),d-=~t?1:0},s={time:n,handler:t,cancel:i};return c.splice(l(n),0,s),d+=1,y(),s};let l=t=>~(~c.findIndex((e=>e.time>t))||~c.length);r.cancel=t=>{o.delete(t),a.delete(t),u.delete(t),i.delete(t),s.delete(t)},r.sync=t=>{_=!0,r.batchedUpdates(t),_=!1},r.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function i(...t){e=t,r.onStart(n)}return i.handler=t,i.cancel=()=>{o.delete(n),e=null},i};let h="undefined"!=typeof window?window.requestAnimationFrame:()=>{};r.use=t=>h=t,r.now="undefined"!=typeof performance?()=>performance.now():Date.now,r.batchedUpdates=t=>t(),r.catch=console.error,r.frameLoop="always",r.advance=()=>{"demand"!==r.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):v()};let f=-1,d=0,_=!1;function p(t,e){_?(e.delete(t),t(0)):(e.add(t),y())}function y(){f<0&&(f=0,"demand"!==r.frameLoop&&h(g))}function g(){~f&&(h(g),r.batchedUpdates(v))}function v(){let t=f;f=r.now();let e=l(f);e&&(x(c.splice(0,e),(t=>t.handler())),d-=e),d?(o.flush(),i.flush(t?Math.min(64,f-t):16.667),a.flush(),s.flush(),u.flush()):f=-1}function m(){let t=new Set,e=t;return{add(n){d+=e!=t||t.has(n)?0:1,t.add(n)},delete:n=>(d-=e==t&&t.has(n)?1:0,t.delete(n)),flush(n){e.size&&(t=new Set,d-=e.size,x(e,(e=>e(n)&&t.add(e))),d+=t.size,e=t)}}}function x(t,e){t.forEach((t=>{try{e(t)}catch(n){r.catch(n)}}))}var b=n(82684);function w(){}const S=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),M={arr:Array.isArray,obj:t=>!!t&&"Object"===t.constructor.name,fun:t=>"function"===typeof t,str:t=>"string"===typeof t,num:t=>"number"===typeof t,und:t=>void 0===t};function T(t,e){if(M.arr(t)){if(!M.arr(e)||t.length!==e.length)return!1;for(let n=0;nt.forEach(e);function Z(t,e,n){if(M.arr(t))for(let i=0;iM.und(t)?[]:M.arr(t)?t:[t];function A(t,e){if(t.size){const n=Array.from(t);t.clear(),k(n,e)}}const C=(t,...e)=>A(t,(t=>t(...e))),E=()=>"undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let P,R,j=null,I=!1,N=w;const U=t=>{t.to&&(R=t.to),t.now&&(r.now=t.now),void 0!==t.colors&&(j=t.colors),null!=t.skipAnimation&&(I=t.skipAnimation),t.createStringInterpolator&&(P=t.createStringInterpolator),t.requestAnimationFrame&&r.use(t.requestAnimationFrame),t.batchedUpdates&&(r.batchedUpdates=t.batchedUpdates),t.willAdvance&&(N=t.willAdvance),t.frameLoop&&(r.frameLoop=t.frameLoop)};var D=Object.freeze({__proto__:null,get createStringInterpolator(){return P},get to(){return R},get colors(){return j},get skipAnimation(){return I},get willAdvance(){return N},assign:U});const q=new Set;let V=[],L=[],F=0;const z={get idle(){return!q.size&&!V.length},start(t){F>t.priority?(q.add(t),r.onStart($)):(W(t),r(B))},advance:B,sort(t){if(F)r.onFrame((()=>z.sort(t)));else{const e=V.indexOf(t);~e&&(V.splice(e,1),H(t))}},clear(){V=[],q.clear()}};function $(){q.forEach(W),q.clear(),r(B)}function W(t){V.includes(t)||H(t)}function H(t){V.splice(function(t,e){const n=t.findIndex(e);return n<0?t.length:n}(V,(e=>e.priority>t.priority)),0,t)}function B(t){const e=L;for(let n=0;n0}const Y={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Q="[-+]?\\d*\\.?\\d+",X=Q+"%";function G(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const J=new RegExp("rgb"+G(Q,Q,Q)),K=new RegExp("rgba"+G(Q,Q,Q,Q)),tt=new RegExp("hsl"+G(Q,X,X)),et=new RegExp("hsla"+G(Q,X,X,Q)),nt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,it=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,rt=/^#([0-9a-fA-F]{6})$/,st=/^#([0-9a-fA-F]{8})$/;function ot(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function at(t,e,n){const i=n<.5?n*(1+e):n+e-n*e,r=2*n-i,s=ot(r,i,t+1/3),o=ot(r,i,t),a=ot(r,i,t-1/3);return Math.round(255*s)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}function ut(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function ct(t){return(parseFloat(t)%360+360)%360/360}function lt(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(255*e)}function ht(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function ft(t){let e=function(t){let e;return"number"===typeof t?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=rt.exec(t))?parseInt(e[1]+"ff",16)>>>0:j&&void 0!==j[t]?j[t]:(e=J.exec(t))?(ut(e[1])<<24|ut(e[2])<<16|ut(e[3])<<8|255)>>>0:(e=K.exec(t))?(ut(e[1])<<24|ut(e[2])<<16|ut(e[3])<<8|lt(e[4]))>>>0:(e=nt.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=st.exec(t))?parseInt(e[1],16)>>>0:(e=it.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=tt.exec(t))?(255|at(ct(e[1]),ht(e[2]),ht(e[3])))>>>0:(e=et.exec(t))?(at(ct(e[1]),ht(e[2]),ht(e[3]))|lt(e[4]))>>>0:null}(t);return null===e?t:(e=e||0,`rgba(${(4278190080&e)>>>24}, ${(16711680&e)>>>16}, ${(65280&e)>>>8}, ${(255&e)/255})`)}const dt=(t,e,n)=>{if(M.fun(t))return t;if(M.arr(t))return dt({range:t,output:e,extrapolate:n});if(M.str(t.output[0]))return P(t);const i=t,r=i.output,s=i.range||[0,1],o=i.extrapolateLeft||i.extrapolate||"extend",a=i.extrapolateRight||i.extrapolate||"extend",u=i.easing||(t=>t);return t=>{const e=function(t,e){for(var n=1;n=t);++n);return n-1}(t,s);return function(t,e,n,i,r,s,o,a,u){let c=u?u(t):t;if(cn){if("identity"===a)return c;"clamp"===a&&(c=n)}if(i===r)return i;if(e===n)return t<=e?i:r;e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e);c=s(c),i===-1/0?c=-c:r===1/0?c+=i:c=c*(r-i)+i;return c}(t,s[e],s[e+1],r[e],r[e+1],u,o,a,i.map)}};const _t=1.70158,pt=1.525*_t,yt=_t+1,gt=2*Math.PI/3,vt=2*Math.PI/4.5,mt=t=>{const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},xt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>0===t?0:Math.pow(2,10*t-10),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>0===t?0:1===t?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>yt*t*t*t-_t*t*t,easeOutBack:t=>1+yt*Math.pow(t-1,3)+_t*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*(7.189819*t-pt)/2:(Math.pow(2*t-2,2)*((pt+1)*(2*t-2)+pt)+2)/2,easeInElastic:t=>0===t?0:1===t?1:-Math.pow(2,10*t-10)*Math.sin((10*t-10.75)*gt),easeOutElastic:t=>0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin((10*t-.75)*gt)+1,easeInOutElastic:t=>0===t?0:1===t?1:t<.5?-Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*vt)/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*vt)/2+1,easeInBounce:t=>1-mt(1-t),easeOutBounce:mt,easeInOutBounce:t=>t<.5?(1-mt(1-2*t))/2:(1+mt(2*t-1))/2,steps:(t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,r="end"===e?Math.floor(i):Math.ceil(i);return s=0,o=1,a=r/t,Math.min(Math.max(a,s),o);var s,o,a}};function bt(){return bt=Object.assign?Object.assign.bind():function(t){for(var e=1;eBoolean(t&&t[wt]),Tt=t=>t&&t[wt]?t[wt]():t,kt=t=>t[St]||null;function Zt(t,e){let n=t[St];n&&n.forEach((t=>{!function(t,e){t.eventObserved?t.eventObserved(e):t(e)}(t,e)}))}class Ot{constructor(t){if(this[wt]=void 0,this[St]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");At(this,t)}}const At=(t,e)=>Pt(t,wt,e);function Ct(t,e){if(t[wt]){let n=t[St];n||Pt(t,St,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function Et(t,e){let n=t[St];if(n&&n.has(e)){const i=n.size-1;i?n.delete(e):t[St]=null,t.observerRemoved&&t.observerRemoved(i,e)}}const Pt=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Rt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,jt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,It=new RegExp(`(${Rt.source})(%|[a-z]+)`,"i"),Nt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ut=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Dt=t=>{const[e,n]=qt(t);if(!e||E())return t;const i=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(i)return i.trim();if(n&&n.startsWith("--")){const e=window.getComputedStyle(document.documentElement).getPropertyValue(n);return e||t}return n&&Ut.test(n)?Dt(n):n||t},qt=t=>{const e=Ut.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]};let Vt;const Lt=(t,e,n,i,r)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(i)}, ${r})`,Ft=t=>{Vt||(Vt=j?new RegExp(`(${Object.keys(j).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map((t=>Tt(t).replace(Ut,Dt).replace(jt,ft).replace(Vt,ft))),n=e.map((t=>t.match(Rt).map(Number))),i=n[0].map(((t,e)=>n.map((t=>{if(!(e in t))throw Error('The arity of each "output" value must be equal');return t[e]})))).map((e=>dt(bt({},t,{output:e}))));return t=>{var n;const r=!It.test(e[0])&&(null==(n=e.find((t=>It.test(t))))?void 0:n.replace(Rt,""));let s=0;return e[0].replace(Rt,(()=>`${i[s++](t)}${r||""}`)).replace(Nt,Lt)}},zt="react-spring: ",$t=t=>{const e=t;let n=!1;if("function"!=typeof e)throw new TypeError(`${zt}once requires a function parameter`);return(...t)=>{n||(e(...t),n=!0)}},Wt=$t(console.warn);function Ht(){Wt(`${zt}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Bt=$t(console.warn);function Yt(){Bt(`${zt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Qt(t){return M.str(t)&&("#"==t[0]||/\d/.test(t)||!E()&&Ut.test(t)||t in(j||{}))}new WeakMap;new Set;new WeakMap,new WeakMap,new WeakMap;const Xt=E()?b.useEffect:b.useLayoutEffect;function Gt(){const t=(0,b.useState)()[1],e=(()=>{const t=(0,b.useRef)(!1);return Xt((()=>(t.current=!0,()=>{t.current=!1})),[]),t})();return()=>{e.current&&t(Math.random())}}function Jt(t,e){const[n]=(0,b.useState)((()=>({inputs:e,result:t()}))),i=(0,b.useRef)(),r=i.current;let s=r;if(s){Boolean(e&&s.inputs&&function(t,e){if(t.length!==e.length)return!1;for(let n=0;n{i.current=s,r==n&&(n.inputs=n.result=void 0)}),[s]),s.result}const Kt=t=>(0,b.useEffect)(t,te),te=[];function ee(t){const e=(0,b.useRef)();return(0,b.useEffect)((()=>{e.current=t})),e.current}},84877:function(t,e,n){n.d(e,{animated:function(){return S},to:function(){return i.to},useTransition:function(){return i.useTransition}});var i=n(79950),r=n(85202),s=n(88489),o=n(92469);function a(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}const u=["style","children","scrollTop","scrollLeft","viewBox"],c=/^--/;function l(t,e){return null==e||"boolean"===typeof e||""===e?"":"number"!==typeof e||0===e||c.test(t)||f.hasOwnProperty(t)&&f[t]?(""+e).trim():e+"px"}const h={};let f={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const d=["Webkit","Ms","Moz","O"];f=Object.keys(f).reduce(((t,e)=>(d.forEach((n=>t[((t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1))(n,e)]=t[e])),t)),f);const _=["x","y","z"],p=/^(matrix|translate|scale|rotate|skew)/,y=/^(translate)/,g=/^(rotate|skew)/,v=(t,e)=>s.is.num(t)&&0!==t?t+e:t,m=(t,e)=>s.is.arr(t)?t.every((t=>m(t,e))):s.is.num(t)?t===e:parseFloat(t)===e;class x extends o.rS{constructor(t){let{x:e,y:n,z:i}=t,r=a(t,_);const o=[],u=[];(e||n||i)&&(o.push([e||0,n||0,i||0]),u.push((t=>[`translate3d(${t.map((t=>v(t,"px"))).join(",")})`,m(t,0)]))),(0,s.rU)(r,((t,e)=>{if("transform"===e)o.push([t||""]),u.push((t=>[t,""===t]));else if(p.test(e)){if(delete r[e],s.is.und(t))return;const n=y.test(e)?"px":g.test(e)?"deg":"";o.push((0,s.qo)(t)),u.push("rotate3d"===e?([t,e,i,r])=>[`rotate3d(${t},${e},${i},${v(r,n)})`,m(r,0)]:t=>[`${e}(${t.map((t=>v(t,n))).join(",")})`,m(t,e.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new b(o,u)),super(r)}}class b extends s.B0{constructor(t,e){super(),this._value=null,this.inputs=t,this.transforms=e}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return(0,s.S6)(this.inputs,((n,i)=>{const r=(0,s.je)(n[0]),[o,a]=this.transforms[i](s.is.arr(r)?r:n.map(s.je));t+=" "+o,e=e&&a})),e?"none":t}observerAdded(t){1==t&&(0,s.S6)(this.inputs,(t=>(0,s.S6)(t,(t=>(0,s.j$)(t)&&(0,s.UI)(t,this)))))}observerRemoved(t){0==t&&(0,s.S6)(this.inputs,(t=>(0,s.S6)(t,(t=>(0,s.j$)(t)&&(0,s.iL)(t,this)))))}eventObserved(t){"change"==t.type&&(this._value=null),(0,s.k0)(this,t)}}const w=["scrollTop","scrollLeft"];i.Globals.assign({batchedUpdates:r.unstable_batchedUpdates,createStringInterpolator:s.qS,colors:s.O9});const S=(0,o.Ld)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n="filter"===t.nodeName||t.parentNode&&"filter"===t.parentNode.nodeName,i=e,{style:r,children:s,scrollTop:o,scrollLeft:f,viewBox:d}=i,_=a(i,u),p=Object.values(_),y=Object.keys(_).map((e=>n||t.hasAttribute(e)?e:h[e]||(h[e]=e.replace(/([A-Z])/g,(t=>"-"+t.toLowerCase())))));void 0!==s&&(t.textContent=s);for(let a in r)if(r.hasOwnProperty(a)){const e=l(a,r[a]);c.test(a)?t.style.setProperty(a,e):t.style[a]=e}y.forEach(((e,n)=>{t.setAttribute(e,p[n])})),void 0!==o&&(t.scrollTop=o),void 0!==f&&(t.scrollLeft=f),void 0!==d&&t.setAttribute("viewBox",d)},createAnimatedStyle:t=>new x(t),getComponentProps:t=>a(t,w)}).animated},62339:function(t,e,n){n.r(e),n.d(e,{Group:function(){return i.Z}});var i=n(29989)},98677:function(t,e,n){function i(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),s=new Array(r);++i0?t>1?(0,o.Z)((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):a:null};var u=a,c=(a.range,n(29483)),l=n(66403),h=n(61851),f=n(82194),d=n(31124),_=n(38249),p=n(4760),y=n(8717),g=n(13143),v=n(43694),m=n(37884),x=n(3983),b=n(35101);function w(t,e,n,o,a,l){const h=[[c.Z,1,s.Ym],[c.Z,5,5*s.Ym],[c.Z,15,15*s.Ym],[c.Z,30,30*s.Ym],[l,1,s.yB],[l,5,5*s.yB],[l,15,15*s.yB],[l,30,30*s.yB],[a,1,s.Y2],[a,3,3*s.Y2],[a,6,6*s.Y2],[a,12,12*s.Y2],[o,1,s.UD],[o,2,2*s.UD],[n,1,s.iM],[e,1,s.jz],[e,3,3*s.jz],[t,1,s.qz]];function f(e,n,o){const a=Math.abs(n-e)/o,c=(0,i.Z)((([,,t])=>t)).right(h,a);if(c===h.length)return t.every((0,r.ly)(e/s.qz,n/s.qz,o));if(0===c)return u.every(Math.max((0,r.ly)(e,n,o),1));const[l,f]=h[a/h[c-1][2][t.toLowerCase(),e])))}function V(t,e,n){var i=R.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function L(t,e,n){var i=R.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function F(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function z(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function $(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function W(t,e,n){var i=R.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function H(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function B(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Y(t,e,n){var i=R.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function Q(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function X(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function G(t,e,n){var i=R.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function J(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function K(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function tt(t,e,n){var i=R.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function et(t,e,n){var i=R.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function nt(t,e,n){var i=R.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function it(t,e,n){var i=j.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function rt(t,e,n){var i=R.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function st(t,e,n){var i=R.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function ot(t,e){return N(t.getDate(),e,2)}function at(t,e){return N(t.getHours(),e,2)}function ut(t,e){return N(t.getHours()%12||12,e,2)}function ct(t,e){return N(1+f.Z.count((0,p.Z)(t),t),e,3)}function lt(t,e){return N(t.getMilliseconds(),e,3)}function ht(t,e){return lt(t,e)+"000"}function ft(t,e){return N(t.getMonth()+1,e,2)}function dt(t,e){return N(t.getMinutes(),e,2)}function _t(t,e){return N(t.getSeconds(),e,2)}function pt(t){var e=t.getDay();return 0===e?7:e}function yt(t,e){return N(d.OM.count((0,p.Z)(t)-1,t),e,2)}function gt(t){var e=t.getDay();return e>=4||0===e?(0,d.bL)(t):d.bL.ceil(t)}function vt(t,e){return t=gt(t),N(d.bL.count((0,p.Z)(t),t)+(4===(0,p.Z)(t).getDay()),e,2)}function mt(t){return t.getDay()}function xt(t,e){return N(d.wA.count((0,p.Z)(t)-1,t),e,2)}function bt(t,e){return N(t.getFullYear()%100,e,2)}function wt(t,e){return N((t=gt(t)).getFullYear()%100,e,2)}function St(t,e){return N(t.getFullYear()%1e4,e,4)}function Mt(t,e){var n=t.getDay();return N((t=n>=4||0===n?(0,d.bL)(t):d.bL.ceil(t)).getFullYear()%1e4,e,4)}function Tt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+N(e/60|0,"0",2)+N(e%60,"0",2)}function kt(t,e){return N(t.getUTCDate(),e,2)}function Zt(t,e){return N(t.getUTCHours(),e,2)}function Ot(t,e){return N(t.getUTCHours()%12||12,e,2)}function At(t,e){return N(1+v.Z.count((0,b.Z)(t),t),e,3)}function Ct(t,e){return N(t.getUTCMilliseconds(),e,3)}function Et(t,e){return Ct(t,e)+"000"}function Pt(t,e){return N(t.getUTCMonth()+1,e,2)}function Rt(t,e){return N(t.getUTCMinutes(),e,2)}function jt(t,e){return N(t.getUTCSeconds(),e,2)}function It(t){var e=t.getUTCDay();return 0===e?7:e}function Nt(t,e){return N(m.Ox.count((0,b.Z)(t)-1,t),e,2)}function Ut(t){var e=t.getUTCDay();return e>=4||0===e?(0,m.hB)(t):m.hB.ceil(t)}function Dt(t,e){return t=Ut(t),N(m.hB.count((0,b.Z)(t),t)+(4===(0,b.Z)(t).getUTCDay()),e,2)}function qt(t){return t.getUTCDay()}function Vt(t,e){return N(m.l6.count((0,b.Z)(t)-1,t),e,2)}function Lt(t,e){return N(t.getUTCFullYear()%100,e,2)}function Ft(t,e){return N((t=Ut(t)).getUTCFullYear()%100,e,2)}function zt(t,e){return N(t.getUTCFullYear()%1e4,e,4)}function $t(t,e){var n=t.getUTCDay();return N((t=n>=4||0===n?(0,m.hB)(t):m.hB.ceil(t)).getUTCFullYear()%1e4,e,4)}function Wt(){return"+0000"}function Ht(){return"%"}function Bt(t){return+t}function Yt(t){return Math.floor(+t/1e3)}C=function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,s=t.days,o=t.shortDays,a=t.months,u=t.shortMonths,c=D(r),l=q(r),h=D(s),_=q(s),p=D(o),y=q(o),g=D(a),x=q(a),b=D(u),w=q(u),S={a:function(t){return o[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:ot,e:ot,f:ht,g:wt,G:Mt,H:at,I:ut,j:ct,L:lt,m:ft,M:dt,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Bt,s:Yt,S:_t,u:pt,U:yt,V:vt,w:mt,W:xt,x:null,X:null,y:bt,Y:St,Z:Tt,"%":Ht},M={a:function(t){return o[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:kt,e:kt,f:Et,g:Ft,G:$t,H:Zt,I:Ot,j:At,L:Ct,m:Pt,M:Rt,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Bt,s:Yt,S:jt,u:It,U:Nt,V:Dt,w:qt,W:Vt,x:null,X:null,y:Lt,Y:zt,Z:Wt,"%":Ht},T={a:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.w=y.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=_.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=b.exec(e.slice(n));return i?(t.m=w.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=g.exec(e.slice(n));return i?(t.m=x.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return E(t,e,n,i)},d:X,e:X,f:nt,g:H,G:W,H:J,I:J,j:G,L:et,m:Q,M:K,p:function(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=l.get(i[0].toLowerCase()),n+i[0].length):-1},q:Y,Q:rt,s:st,S:tt,u:L,U:F,V:z,w:V,W:$,x:function(t,e,i){return E(t,n,e,i)},X:function(t,e,n){return E(t,i,e,n)},y:H,Y:W,Z:B,"%":it};function k(t,e){return function(n){var i,r,s,o=[],a=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++a53)return null;"w"in s||(s.w=1),"Z"in s?(r=(i=O(A(s.y,0,1))).getUTCDay(),i=r>4||0===r?m.l6.ceil(i):(0,m.l6)(i),i=v.Z.offset(i,7*(s.V-1)),s.y=i.getUTCFullYear(),s.m=i.getUTCMonth(),s.d=i.getUTCDate()+(s.w+6)%7):(r=(i=Z(A(s.y,0,1))).getDay(),i=r>4||0===r?d.wA.ceil(i):(0,d.wA)(i),i=f.Z.offset(i,7*(s.V-1)),s.y=i.getFullYear(),s.m=i.getMonth(),s.d=i.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),r="Z"in s?O(A(s.y,0,1)).getUTCDay():Z(A(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(r+5)%7:s.w+7*s.U-(r+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,O(s)):Z(s)}}function E(t,e,n,i){for(var r,s,o=0,a=e.length,u=n.length;o=u)return-1;if(37===(r=e.charCodeAt(o++))){if(r=e.charAt(o++),!(s=T[r in P?e.charAt(o++):r])||(i=s(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return S.x=k(n,S),S.X=k(i,S),S.c=k(e,S),M.x=k(n,M),M.X=k(i,M),M.c=k(e,M),{format:function(t){var e=k(t+="",S);return e.toString=function(){return t},e},parse:function(t){var e=C(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",M);return e.toString=function(){return t},e},utcParse:function(t){var e=C(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),C.format,C.parse,E=C.utcFormat,C.utcParse;var Qt=n(32130);function Xt(t){return new Date(t)}function Gt(t){return t instanceof Date?+t:+new Date(+t)}function Jt(t,e,n,i,r,s,o,a,u,c){var l=(0,Qt.ZP)(),h=l.invert,f=l.domain,d=c(".%L"),_=c(":%S"),p=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),v=c("%b %d"),m=c("%B"),x=c("%Y");function b(t){return(u(t)=0||(r[n]=t[n]);return r}(t,_),E=(0,o.Z)();T&&E.keys(T),k&&(0,l.Z)(E.value,k),Z&&E.order((0,h.ZP)(Z)),O&&E.offset((0,f.ZP)(O));var P=E(e),R=(0,c.Z)(S),j=P.map((function(t,e){var n=t.key;return{index:e,key:n,bars:t.map((function(e,i){var r=(w(b(e))||0)-(w(m(e))||0),s=w(m(e)),o="bandwidth"in S?S(g(e.data)):Math.max((S(g(e.data))||0)-r/2);return{bar:e,key:n,index:i,height:R,width:r,x:s||0,y:o||0,color:M(t.key,i)}}))}}));return A?i.createElement(i.Fragment,null,A(j)):i.createElement(a.Z,{className:s()("visx-bar-stack-horizontal",n),top:r,left:y},j.map((function(t){return t.bars.map((function(e){return i.createElement(d.Z,p({key:"bar-stack-"+t.index+"-"+e.index,x:e.x,y:e.y,height:e.height,width:e.width,fill:e.color},C))}))})))}},62072:function(t,e,n){function i(t){return null==t?void 0:t[0]}function r(t){return null==t?void 0:t[1]}n.d(e,{l8:function(){return i},xf:function(){return r}})},53989:function(t,e,n){function i(t){if("bandwidth"in t)return t.bandwidth();var e=t.range(),n=t.domain();return Math.abs(e[e.length-1]-e[0])/n.length}n.d(e,{Z:function(){return i}})},59309:function(t,e,n){n.d(e,{ZP:function(){return c}});var i=n(12759),r=n(27500),s=n(82610),o=n(34812),a=n(77944),u={expand:i.Z,diverging:r.Z,none:s.Z,silhouette:o.Z,wiggle:a.Z};Object.keys(u);function c(t){return t&&u[t]||u.none}},18246:function(t,e,n){n.d(e,{ZP:function(){return c}});var i=n(39586),r=n(25516),s=n(54164),o=n(8512),a=n(2010),u={ascending:i.Z,descending:r.Z,insideout:s.Z,none:o.Z,reverse:a.Z};Object.keys(u);function c(t){return t&&u[t]||u.none}},28940:function(t,e,n){e.Z=function(t){var e=t.className,n=t.top,u=t.left,l=t.data,h=void 0===l?[]:l,f=t.centroid,d=t.innerRadius,_=void 0===d?0:d,p=t.outerRadius,y=t.cornerRadius,g=t.startAngle,v=t.endAngle,m=t.padAngle,x=t.padRadius,b=t.pieSort,w=t.pieSortValues,S=t.pieValue,M=t.children,T=t.fill,k=void 0===T?"":T,Z=function(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}(t,a),O=(0,o.arc)({innerRadius:_,outerRadius:p,cornerRadius:y,padRadius:x}),A=(0,o.pie)({startAngle:g,endAngle:v,padAngle:m,value:S,sort:b,sortValues:w}),C=A(h);return M?i.default.createElement(i.default.Fragment,null,M({arcs:C,path:O,pie:A})):i.default.createElement(s.Group,{className:"visx-pie-arcs-group",top:n,left:u},C.map((function(t,n){return i.default.createElement("g",{key:"pie-arc-"+n},i.default.createElement("path",c({className:(0,r.default)("visx-pie-arc",e),d:O(t)||"",fill:null==k||"string"===typeof k?k:k(t)},Z)),null==f?void 0:f(O.centroid(t),t))})))};var i=u(n(82684)),r=u(n(63588)),s=n(62339),o=n(3517),a=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function u(t){return t&&t.__esModule?t:{default:t}}function c(){return c=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,p),M=!1,T=!1;if(h&&l){var k=r,Z=m;if(l.width){var O=k+a+h.width-l.width,A=h.width-k-a;M=O>0&&O>A}else{var C=k+a+h.width-window.innerWidth,E=h.width-k-a;M=C>0&&C>E}if(l.height){var P=Z+c+h.height-l.height,R=h.height-Z-c;T=P>0&&P>R}else T=Z+c+h.height>window.innerHeight;k=M?k-h.width-a:k+a,Z=T?Z-h.height-c:Z+c,e="translate("+(k=Math.round(k))+"px, "+(Z=Math.round(Z))+"px)"}return s.createElement(f.Z,y({ref:w,style:y({left:0,top:0,transform:e},!b&&g)},S),s.createElement(_,{value:{isFlippedVertically:!T,isFlippedHorizontally:!M}},n))}g.propTypes={nodeRef:r().oneOfType([r().string,r().func,r().object])};var v=function(t){var e,n;return n=e=function(e){var n,i;function r(t){var n;return l(u(n=e.call(this,t)||this),"node",void 0),l(u(n),"nodeRef",void 0),n.state={rect:void 0,parentRect:void 0},n.nodeRef=s.createRef(),n.getRects=n.getRects.bind(u(n)),n}i=e,(n=r).prototype=Object.create(i.prototype),n.prototype.constructor=n,c(n,i);var f=r.prototype;return f.componentDidMount=function(){var t,e=this;this.node=null!=(t=this.nodeRef)&&t.current?this.nodeRef.current:o.findDOMNode(this),this.setState((function(){return e.getRects()}))},f.getRects=function(){if(!this.node)return this.state;var t=this.node,e=t.parentNode;return{rect:t.getBoundingClientRect?t.getBoundingClientRect():h,parentRect:null!=e&&e.getBoundingClientRect?e.getBoundingClientRect():h}},f.render=function(){return s.createElement(t,a({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},r}(s.PureComponent),l(e,"displayName","withBoundingRects("+(t.displayName||"")+")"),n}(g)},35681:function(t,e){var n=Math.PI,i=2*n,r=1e-6,s=i-r;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new o}o.prototype=a.prototype={constructor:o,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,i,s,o){t=+t,e=+e,i=+i,s=+s,o=+o;var a=this._x1,u=this._y1,c=i-t,l=s-e,h=a-t,f=u-e,d=h*h+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(d>r)if(Math.abs(f*c-l*h)>r&&o){var _=i-a,p=s-u,y=c*c+l*l,g=_*_+p*p,v=Math.sqrt(y),m=Math.sqrt(d),x=o*Math.tan((n-Math.acos((y+d-g)/(2*v*m)))/2),b=x/m,w=x/v;Math.abs(b-1)>r&&(this._+="L"+(t+b*h)+","+(e+b*f)),this._+="A"+o+","+o+",0,0,"+ +(f*_>h*p)+","+(this._x1=t+w*c)+","+(this._y1=e+w*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,o,a,u,c){t=+t,e=+e,c=!!c;var l=(o=+o)*Math.cos(a),h=o*Math.sin(a),f=t+l,d=e+h,_=1^c,p=c?a-u:u-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),o&&(p<0&&(p=p%i+i),p>s?this._+="A"+o+","+o+",0,1,"+_+","+(t-l)+","+(e-h)+"A"+o+","+o+",0,1,"+_+","+(this._x1=f)+","+(this._y1=d):p>r&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+_+","+(this._x1=t+o*Math.cos(u))+","+(this._y1=e+o*Math.sin(u))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},e.Z=a},48167:function(t,e,n){n.d(e,{Z:function(){return u}});var i=n(35681),r=n(90875),s=n(23622),o=n(92201),a=n(98930);function u(){var t=a.x,e=null,n=(0,r.Z)(0),u=a.y,c=(0,r.Z)(!0),l=null,h=s.Z,f=null;function d(r){var s,o,a,d,_,p=r.length,y=!1,g=new Array(p),v=new Array(p);for(null==l&&(f=h(_=(0,i.Z)())),s=0;s<=p;++s){if(!(s=o;--a)f.point(g[a],v[a]);f.lineEnd(),f.areaEnd()}y&&(g[s]=+t(d,s,r),v[s]=+n(d,s,r),f.point(e?+e(d,s,r):g[s],u?+u(d,s,r):v[s]))}if(_)return f=null,_+""||null}function _(){return(0,o.Z)().defined(c).curve(h).context(l)}return d.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),e=null,d):t},d.x0=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),d):t},d.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):e},d.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),u=null,d):n},d.y0=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),d):n},d.y1=function(t){return arguments.length?(u=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):u},d.lineX0=d.lineY0=function(){return _().x(t).y(n)},d.lineY1=function(){return _().x(t).y(u)},d.lineX1=function(){return _().x(e).y(n)},d.defined=function(t){return arguments.length?(c="function"===typeof t?t:(0,r.Z)(!!t),d):c},d.curve=function(t){return arguments.length?(h=t,null!=l&&(f=h(l)),d):h},d.context=function(t){return arguments.length?(null==t?l=f=null:f=h(l=t),d):l},d}},13946:function(t,e,n){n.d(e,{t:function(){return i}});var i=Array.prototype.slice},97745:function(t,e,n){function i(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function r(t){this._context=t}function s(t){return new r(t)}n.d(e,{ZP:function(){return s},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},23622:function(t,e,n){function i(t){this._context=t}function r(t){return new i(t)}n.d(e,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},29491:function(t,e,n){n.r(e),n.d(e,{arc:function(){return T},area:function(){return k.Z},areaRadial:function(){return U},curveBasis:function(){return yt.ZP},curveBasisClosed:function(){return vt},curveBasisOpen:function(){return xt},curveBundle:function(){return wt},curveCardinal:function(){return Tt},curveCardinalClosed:function(){return Zt},curveCardinalOpen:function(){return At},curveCatmullRom:function(){return Pt},curveCatmullRomClosed:function(){return jt},curveCatmullRomOpen:function(){return Nt},curveLinear:function(){return E.Z},curveLinearClosed:function(){return Dt},curveMonotoneX:function(){return Ht},curveMonotoneY:function(){return Bt},curveNatural:function(){return Xt},curveStep:function(){return Jt},curveStepAfter:function(){return te},curveStepBefore:function(){return Kt},line:function(){return Z.Z},lineRadial:function(){return N},linkHorizontal:function(){return B},linkRadial:function(){return Q},linkVertical:function(){return Y},pie:function(){return C},pointRadial:function(){return D},radialArea:function(){return U},radialLine:function(){return N},stack:function(){return ee.Z},stackOffsetDiverging:function(){return ie.Z},stackOffsetExpand:function(){return ne.Z},stackOffsetNone:function(){return re.Z},stackOffsetSilhouette:function(){return se.Z},stackOffsetWiggle:function(){return oe.Z},stackOrderAppearance:function(){return ae.Z},stackOrderAscending:function(){return ue.Z},stackOrderDescending:function(){return ce.Z},stackOrderInsideOut:function(){return le.Z},stackOrderNone:function(){return he.Z},stackOrderReverse:function(){return fe.Z},symbol:function(){return _t},symbolCircle:function(){return X},symbolCross:function(){return G},symbolDiamond:function(){return tt},symbolSquare:function(){return st},symbolStar:function(){return rt},symbolTriangle:function(){return at},symbolWye:function(){return ft},symbols:function(){return dt}});var i=n(35681),r=n(90875),s=Math.abs,o=Math.atan2,a=Math.cos,u=Math.max,c=Math.min,l=Math.sin,h=Math.sqrt,f=1e-12,d=Math.PI,_=d/2,p=2*d;function y(t){return t>1?0:t<-1?d:Math.acos(t)}function g(t){return t>=1?_:t<=-1?-_:Math.asin(t)}function v(t){return t.innerRadius}function m(t){return t.outerRadius}function x(t){return t.startAngle}function b(t){return t.endAngle}function w(t){return t&&t.padAngle}function S(t,e,n,i,r,s,o,a){var u=n-t,c=i-e,l=o-r,h=a-s,d=h*u-l*c;if(!(d*dP*P+R*R&&(k=O,Z=A),{cx:k,cy:Z,x01:-f,y01:-d,x11:k*(r/S-1),y11:Z*(r/S-1)}}function T(){var t=v,e=m,n=(0,r.Z)(0),u=null,T=x,k=b,Z=w,O=null;function A(){var r,v,m=+t.apply(this,arguments),x=+e.apply(this,arguments),b=T.apply(this,arguments)-_,w=k.apply(this,arguments)-_,A=s(w-b),C=w>b;if(O||(O=r=(0,i.Z)()),xf)if(A>p-f)O.moveTo(x*a(b),x*l(b)),O.arc(0,0,x,b,w,!C),m>f&&(O.moveTo(m*a(w),m*l(w)),O.arc(0,0,m,w,b,C));else{var E,P,R=b,j=w,I=b,N=w,U=A,D=A,q=Z.apply(this,arguments)/2,V=q>f&&(u?+u.apply(this,arguments):h(m*m+x*x)),L=c(s(x-m)/2,+n.apply(this,arguments)),F=L,z=L;if(V>f){var $=g(V/m*l(q)),W=g(V/x*l(q));(U-=2*$)>f?(I+=$*=C?1:-1,N-=$):(U=0,I=N=(b+w)/2),(D-=2*W)>f?(R+=W*=C?1:-1,j-=W):(D=0,R=j=(b+w)/2)}var H=x*a(R),B=x*l(R),Y=m*a(N),Q=m*l(N);if(L>f){var X,G=x*a(j),J=x*l(j),K=m*a(I),tt=m*l(I);if(Af?z>f?(E=M(K,tt,H,B,x,z,C),P=M(G,J,Y,Q,x,z,C),O.moveTo(E.cx+E.x01,E.cy+E.y01),zf&&U>f?F>f?(E=M(Y,Q,G,J,m,-F,C),P=M(H,B,K,tt,m,-F,C),O.lineTo(E.cx+E.x01,E.cy+E.y01),Ft?1:e>=t?0:NaN}function A(t){return t}function C(){var t=A,e=O,n=null,i=(0,r.Z)(0),s=(0,r.Z)(p),o=(0,r.Z)(0);function a(r){var a,u,c,l,h,f=r.length,d=0,_=new Array(f),y=new Array(f),g=+i.apply(this,arguments),v=Math.min(p,Math.max(-p,s.apply(this,arguments)-g)),m=Math.min(Math.abs(v)/f,o.apply(this,arguments)),x=m*(v<0?-1:1);for(a=0;a0&&(d+=h);for(null!=e?_.sort((function(t,n){return e(y[t],y[n])})):null!=n&&_.sort((function(t,e){return n(r[t],r[e])})),a=0,c=d?(v-f*x)/d:0;a0?h*c:0)+x,y[u]={data:r[u],index:a,value:h,startAngle:g,endAngle:l,padAngle:m};return y}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:(0,r.Z)(+t),a):i},a.endAngle=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(+t),a):s},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:(0,r.Z)(+t),a):o},a}var E=n(23622),P=j(E.Z);function R(t){this._curve=t}function j(t){function e(e){return new R(t(e))}return e._curve=t,e}function I(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(j(t)):e()._curve},t}function N(){return I((0,Z.Z)().curve(P))}function U(){var t=(0,k.Z)().curve(P),e=t.curve,n=t.lineX0,i=t.lineX1,r=t.lineY0,s=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return I(n())},delete t.lineX0,t.lineEndAngle=function(){return I(i())},delete t.lineX1,t.lineInnerRadius=function(){return I(r())},delete t.lineY0,t.lineOuterRadius=function(){return I(s())},delete t.lineY1,t.curve=function(t){return arguments.length?e(j(t)):e()._curve},t}function D(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}R.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var q=n(13946),V=n(98930);function L(t){return t.source}function F(t){return t.target}function z(t){var e=L,n=F,s=V.x,o=V.y,a=null;function u(){var r,u=q.t.call(arguments),c=e.apply(this,u),l=n.apply(this,u);if(a||(a=r=(0,i.Z)()),t(a,+s.apply(this,(u[0]=c,u)),+o.apply(this,u),+s.apply(this,(u[0]=l,u)),+o.apply(this,u)),r)return a=null,r+""||null}return u.source=function(t){return arguments.length?(e=t,u):e},u.target=function(t){return arguments.length?(n=t,u):n},u.x=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(+t),u):s},u.y=function(t){return arguments.length?(o="function"===typeof t?t:(0,r.Z)(+t),u):o},u.context=function(t){return arguments.length?(a=null==t?null:t,u):a},u}function $(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function W(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+r)/2,i,n,i,r)}function H(t,e,n,i,r){var s=D(e,n),o=D(e,n=(n+r)/2),a=D(i,n),u=D(i,r);t.moveTo(s[0],s[1]),t.bezierCurveTo(o[0],o[1],a[0],a[1],u[0],u[1])}function B(){return z($)}function Y(){return z(W)}function Q(){var t=z(H);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var X={draw:function(t,e){var n=Math.sqrt(e/d);t.moveTo(n,0),t.arc(0,0,n,0,p)}},G={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},J=Math.sqrt(1/3),K=2*J,tt={draw:function(t,e){var n=Math.sqrt(e/K),i=n*J;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},et=Math.sin(d/10)/Math.sin(7*d/10),nt=Math.sin(p/10)*et,it=-Math.cos(p/10)*et,rt={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),i=nt*n,r=it*n;t.moveTo(0,-n),t.lineTo(i,r);for(var s=1;s<5;++s){var o=p*s/5,a=Math.cos(o),u=Math.sin(o);t.lineTo(u*n,-a*n),t.lineTo(a*i-u*r,u*i+a*r)}t.closePath()}},st={draw:function(t,e){var n=Math.sqrt(e),i=-n/2;t.rect(i,i,n,n)}},ot=Math.sqrt(3),at={draw:function(t,e){var n=-Math.sqrt(e/(3*ot));t.moveTo(0,2*n),t.lineTo(-ot*n,-n),t.lineTo(ot*n,-n),t.closePath()}},ut=-.5,ct=Math.sqrt(3)/2,lt=1/Math.sqrt(12),ht=3*(lt/2+1),ft={draw:function(t,e){var n=Math.sqrt(e/ht),i=n/2,r=n*lt,s=i,o=n*lt+n,a=-s,u=o;t.moveTo(i,r),t.lineTo(s,o),t.lineTo(a,u),t.lineTo(ut*i-ct*r,ct*i+ut*r),t.lineTo(ut*s-ct*o,ct*s+ut*o),t.lineTo(ut*a-ct*u,ct*a+ut*u),t.lineTo(ut*i+ct*r,ut*r-ct*i),t.lineTo(ut*s+ct*o,ut*o-ct*s),t.lineTo(ut*a+ct*u,ut*u-ct*a),t.closePath()}},dt=[X,G,tt,st,rt,at,ft];function _t(){var t=(0,r.Z)(X),e=(0,r.Z)(64),n=null;function s(){var r;if(n||(n=r=(0,i.Z)()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return s.type=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(e),s):t},s.size=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),s):e},s.context=function(t){return arguments.length?(n=null==t?null:t,s):n},s}function pt(){}var yt=n(97745);function gt(t){this._context=t}function vt(t){return new gt(t)}function mt(t){this._context=t}function xt(t){return new mt(t)}function bt(t,e){this._basis=new yt.fE(t),this._beta=e}gt.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:(0,yt.xm)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:(0,yt.xm)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},bt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i,r=t[0],s=e[0],o=t[n]-r,a=e[n]-s,u=-1;++u<=n;)i=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(r+i*o),this._beta*e[u]+(1-this._beta)*(s+i*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var wt=function t(e){function n(t){return 1===e?new yt.fE(t):new bt(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function St(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Mt(t,e){this._context=t,this._k=(1-e)/6}Mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:St(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:St(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Tt=function t(e){function n(t){return new Mt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function kt(t,e){this._context=t,this._k=(1-e)/6}kt.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:St(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Zt=function t(e){function n(t){return new kt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ot(t,e){this._context=t,this._k=(1-e)/6}Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:St(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var At=function t(e){function n(t){return new Ot(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ct(t,e,n){var i=t._x1,r=t._y1,s=t._x2,o=t._y2;if(t._l01_a>f){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>f){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*c+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(i,r,s,o,t._x2,t._y2)}function Et(t,e){this._context=t,this._alpha=e}Et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ct(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Pt=function t(e){function n(t){return e?new Et(t,e):new Mt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Rt(t,e){this._context=t,this._alpha=e}Rt.prototype={areaStart:pt,areaEnd:pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ct(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var jt=function t(e){function n(t){return e?new Rt(t,e):new kt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function It(t,e){this._context=t,this._alpha=e}It.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ct(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Nt=function t(e){function n(t){return e?new It(t,e):new Ot(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ut(t){this._context=t}function Dt(t){return new Ut(t)}function qt(t){return t<0?-1:1}function Vt(t,e,n){var i=t._x1-t._x0,r=e-t._x1,s=(t._y1-t._y0)/(i||r<0&&-0),o=(n-t._y1)/(r||i<0&&-0),a=(s*r+o*i)/(i+r);return(qt(s)+qt(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function Lt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Ft(t,e,n){var i=t._x0,r=t._y0,s=t._x1,o=t._y1,a=(s-i)/3;t._context.bezierCurveTo(i+a,r+a*e,s-a,o-a*n,s,o)}function zt(t){this._context=t}function $t(t){this._context=new Wt(t)}function Wt(t){this._context=t}function Ht(t){return new zt(t)}function Bt(t){return new $t(t)}function Yt(t){this._context=t}function Qt(t){var e,n,i=t.length-1,r=new Array(i),s=new Array(i),o=new Array(i);for(r[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)r[e]=(o[e]-r[e+1])/s[e];for(s[i-1]=(t[i]+r[i-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var ee=n(75823),ne=n(12759),ie=n(27500),re=n(82610),se=n(34812),oe=n(77944),ae=n(34128),ue=n(39586),ce=n(25516),le=n(54164),he=n(8512),fe=n(2010)},92201:function(t,e,n){n.d(e,{Z:function(){return a}});var i=n(35681),r=n(90875),s=n(23622),o=n(98930);function a(){var t=o.x,e=o.y,n=(0,r.Z)(!0),a=null,u=s.Z,c=null;function l(r){var s,o,l,h=r.length,f=!1;for(null==a&&(c=u(l=(0,i.Z)())),s=0;s<=h;++s)!(s0)for(var n,i,r,s,o,a,u=0,c=t[e[0]].length;u0?(i[0]=s,i[1]=s+=r):r<0?(i[1]=o,i[0]=o+=r):(i[0]=0,i[1]=r)}n.d(e,{Z:function(){return i}})},12759:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(82610);function r(t,e){if((r=t.length)>0){for(var n,r,s,o=0,a=t[0].length;o1)for(var n,i,r,s=1,o=t[e[0]],a=o.length;s0){for(var n,r=0,s=t[e[0]],o=s.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,s,o=0,a=1;as&&(s=e,i=n);return i}},39586:function(t,e,n){n.d(e,{S:function(){return s},Z:function(){return r}});var i=n(8512);function r(t){var e=t.map(s);return(0,i.Z)(t).sort((function(t,n){return e[t]-e[n]}))}function s(t){for(var e,n=0,i=-1,r=t.length;++i=0;)n[e]=e;return n}n.d(e,{Z:function(){return i}})},2010:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(8512);function r(t){return(0,i.Z)(t).reverse()}},98930:function(t,e,n){function i(t){return t[0]}function r(t){return t[1]}n.d(e,{x:function(){return i},y:function(){return r}})},75823:function(t,e,n){n.d(e,{Z:function(){return u}});var i=n(13946),r=n(90875),s=n(82610),o=n(8512);function a(t,e){return t[e]}function u(){var t=(0,r.Z)([]),e=o.Z,n=s.Z,u=a;function c(i){var r,s,o=t.apply(this,arguments),a=i.length,c=o.length,l=new Array(c);for(r=0;rt?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},E=function(){var t=0;for(T(t);i.some((function(t){return t.activeTargets.length>0}));)t=N(),T(t);return i.some((function(t){return t.skippedTargets.length>0}))&&function(){var t;"function"===typeof ErrorEvent?t=new ErrorEvent("error",{message:o}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=o),window.dispatchEvent(t)}(),t>0},_=[],S=function(t){if(!a){var e=0,n=document.createTextNode("");new MutationObserver((function(){return _.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),a=function(){n.textContent="".concat(e?e--:e++)}}_.push(t),a()},C=0,P={attributes:!0,characterData:!0,childList:!0,subtree:!0},R=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],z=function(t){return void 0===t&&(t=0),Date.now()+t},Z=!1,A=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!Z){Z=!0;var n,r=z(t);n=function(){var n=!1;try{n=E()}finally{if(Z=!1,t=r-z(),!C)return;n?e.run(1e3):t>0?e.run(t):e.start()}},S((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,P)};document.body?e():p.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),R.forEach((function(e){return p.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),R.forEach((function(e){return p.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),j=function(t){!C&&t>0&&A.start(),!(C+=t)&&A.stop()},D=function(){function t(t,e){this.target=t,this.observedBox=e||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=k(this.target,this.observedBox,!0);return t=this.target,l(t)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),F=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},L=new WeakMap,I=function(t,e){for(var n=0;n=0&&(o&&i.splice(i.indexOf(n),1),n.observationTargets.splice(r,1),j(-1))},t.disconnect=function(t){var e=this,n=L.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),B=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");U.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!h(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");U.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!h(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");U.unobserve(this,t)},t.prototype.disconnect=function(){U.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}()},96570:function(t,e,n){"use strict";n.d(e,{Z:function(){return A}});var r=n(82684),i=n(63588),o=n.n(i),a=n(29989),u=n(46119),s=n(88543),c=n(79487),l=n(52823),f=n.n(l),h=n(96210),p="__react_svg_text_measurement_id";var d=n.n(h)()((function(t,e){try{var n=document.getElementById(p);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",p),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,e),n.textContent=t,n.getComputedTextLength()}catch(i){return null}}),(function(t,e){return t+"_"+JSON.stringify(e)})),g=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function v(t){return"number"===typeof t}function y(t){return"number"===typeof t&&Number.isFinite(t)||"string"===typeof t}function m(t){var e=t.verticalAnchor,n=void 0===e?"end":e,i=t.scaleToFit,o=void 0!==i&&i,a=t.angle,u=t.width,s=t.lineHeight,c=void 0===s?"1em":s,l=t.capHeight,h=void 0===l?"0.71em":l,p=t.children,m=t.style,b=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,g),w=b.x,x=void 0===w?0:w,k=b.y,M=void 0===k?0:k,O=!y(x)||!y(M),N=(0,r.useMemo)((function(){return{wordsWithWidth:(null==p?[]:p.toString().split(/(?:(?!\u00A0+)\s+)/)).map((function(t){return{word:t,wordWidth:d(t,m)||0}})),spaceWidth:d("\xa0",m)||0}}),[p,m]),T=N.wordsWithWidth,E=N.spaceWidth,_=(0,r.useMemo)((function(){return O?[]:u||o?T.reduce((function(t,e){var n=e.word,r=e.wordWidth,i=t[t.length-1];if(i&&(null==u||o||(i.width||0)+r+E0){var e=_[0].width||1,n="shrink-only"===o?Math.min(u/e,1):u/e,r=n,i=x-n*x,s=M-r*M;t.push("matrix("+n+", 0, 0, "+r+", "+i+", "+s+")")}return a&&t.push("rotate("+a+", "+x+", "+M+")"),t.length>0?t.join(" "):""}),[O,x,M,u,o,_,a]);return{wordsByLines:_,startDy:S,transform:C}}var b=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function w(){return w=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,b)),p=h.x,d=void 0===p?0:p,g=h.fontSize,v=m(t),y=v.wordsByLines,k=v.startDy,M=v.transform;return r.createElement("svg",{ref:s,x:n,y:o,fontSize:g,style:x},y.length>0?r.createElement("text",w({ref:c,transform:M},h,{textAnchor:u}),y.map((function(t,e){return r.createElement("tspan",{key:e,x:d,dy:0===e?k:f},t.words.join(" "))}))):null)}var M=n(96774);function O(){return O=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,z),L=null!=T?T:function(t){return"tickFormat"in t?t.tickFormat():S}(N),I=x===M.Z.left,U=x===M.Z.top,B=U||x===M.Z.bottom,H=function(t,e){void 0===e&&(e="center");var n=t;if("start"!==e&&"bandwidth"in n){var r=n.bandwidth();return"center"===e&&(r/=2),n.round()&&(r=Math.round(r)),function(t){var e=n(t);return"number"===typeof e?e+r:e}}return t}(N),Y=I||U?-1:1,W=N.range(),q=(void 0===(e=O)&&(e=0),"number"===typeof e?{start:e,end:e}:R({start:0,end:0},e)),$=P({x:Number(W[0])+.5-q.start,y:0},B),V=P({x:Number(W[W.length-1])+.5+q.end,y:0},B),G=(null!=A?A:(0,u.Z)(N,b)).filter((function(t){return!g||0!==t&&"0"!==t})).map((function(t,e){return{value:t,index:e}})),X=G.map((function(t){var e=t.value,n=t.index,r=(0,s.Z)(H(e));return{value:e,index:n,from:P({x:r,y:0},B),to:P({x:r,y:C*Y},B),formattedValue:L(e,n,G)}}));return r.createElement(a.Z,{className:o()("visx-axis",c),top:D,left:y},i(Z({},F,{axisFromPoint:$,axisToPoint:V,hideAxisLine:f,hideTicks:p,hideZero:g,horizontal:B,numTicks:b,orientation:x,rangePadding:O,scale:N,tickFormat:L,tickLength:C,tickPosition:H,tickSign:Y,ticks:X})))}},90948:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r=n(82684),i=n(63588),o=n.n(i),a=n(96570),u=n(96774),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function c(){return c=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,s);return r.createElement(a.Z,c({axisClassName:o()("visx-axis-bottom",e),labelOffset:i,orientation:u.Z.bottom,tickLabelProps:h,tickLength:d},g))}},84969:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r=n(82684),i=n(63588),o=n.n(i),a=n(96570),u=n(96774),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function c(){return c=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,s);return r.createElement(a.Z,c({axisClassName:o()("visx-axis-left",e),labelOffset:i,orientation:u.Z.left,tickLabelProps:h,tickLength:d},g))}},96774:function(t,e){"use strict";e.Z={top:"top",left:"left",right:"right",bottom:"bottom"}},48072:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(81352);function i(){return i=Object.assign||function(t){for(var e=1;e0?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:i({},o);if(function(t){return!!t&&"clientX"in t}(t))return{x:t.clientX,y:t.clientY};var e=null==t?void 0:t.target,n=e&&"getBoundingClientRect"in e?e.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:i({},o)}(e),u=(n=t)&&(n instanceof SVGElement||"ownerSVGElement"in n)?t.ownerSVGElement:t,s=function(t){return!!t&&"getScreenCTM"in t}(u)?u.getScreenCTM():null;if(function(t){return!!t&&"createSVGPoint"in t}(u)&&s){var c=u.createSVGPoint();return c.x=a.x,c.y=a.y,c=c.matrixTransform(s.inverse()),new r.Z({x:c.x,y:c.y})}var l=t.getBoundingClientRect();return new r.Z({x:a.x-l.left-t.clientLeft,y:a.y-l.top-t.clientTop})}function u(t,e){if((n=t)&&n instanceof Element&&e)return a(t,e);var n;if(function(t){return!!t&&(t instanceof Event||"nativeEvent"in t&&t.nativeEvent instanceof Event)}(t)){var r=t,i=r.target;if(i)return a(i,r)}return null}},29989:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(47329),i=n.n(r),o=n(82684),a=n(63588),u=n.n(a),s=["top","left","transform","className","children","innerRef"];function c(){return c=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,s);return o.createElement("g",c({ref:h,className:u()("visx-group",l),transform:a||"translate("+i+", "+n+")"},p),f)}l.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},81352:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return i}});var i=function(){function t(t){var e=t.x,n=void 0===e?0:e,i=t.y,o=void 0===i?0:i;r(this,"x",0),r(this,"y",0),this.x=n,this.y=o}var e=t.prototype;return e.value=function(){return{x:this.x,y:this.y}},e.toArray=function(){return[this.x,this.y]},t}()},26226:function(t,e,n){"use strict";e.Z=h;var r=c(n(47329)),i=c(n(83645)),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==typeof t&&"function"!==typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(n(82684)),a=n(77331),u=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function s(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}function c(t){return t&&t.__esModule?t:{default:t}}function l(){return l=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,u),m=(0,o.useRef)(null),b=(0,o.useRef)(0),w=(0,o.useState)({width:0,height:0,top:0,left:0}),x=w[0],k=w[1],M=(0,o.useMemo)((function(){var t=Array.isArray(h)?h:[h];return(0,i.default)((function(e){k((function(n){return Object.keys(n).filter((function(t){return n[t]!==e[t]})).every((function(e){return t.includes(e)}))?n:e}))}),s,{leading:v})}),[s,v,h]);return(0,o.useEffect)((function(){var t=new a.ResizeObserver((function(t){void 0===t&&(t=[]),t.forEach((function(t){var e=t.contentRect,n=e.left,r=e.top,i=e.width,o=e.height;b.current=window.requestAnimationFrame((function(){M({width:i,height:o,top:r,left:n})}))}))}));return m.current&&t.observe(m.current),function(){window.cancelAnimationFrame(b.current),t.disconnect(),null!=M&&M.cancel&&M.cancel()}}),[M]),o.default.createElement("div",l({style:d,ref:m,className:e},y),n(l({},x,{ref:m.current,resize:M})))}h.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},93342:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function o(){}n.d(e,{Z:function(){return $t}});var a=.7,u=1/a,s="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),p=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,c]+"\\)$"),g=new RegExp("^rgba\\("+[l,l,l,c]+"\\)$"),v=new RegExp("^hsl\\("+[c,l,l]+"\\)$"),y=new RegExp("^hsla\\("+[c,l,l,c]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function w(){return this.rgb().formatRgb()}function x(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=f.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?k(e):3===n?new T(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?M(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?M(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new T(e[1],e[2],e[3],1):(e=p.exec(t))?new T(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?M(e[1],e[2],e[3],e[4]):(e=g.exec(t))?M(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=v.exec(t))?C(e[1],e[2]/100,e[3]/100,1):(e=y.exec(t))?C(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?k(m[t]):"transparent"===t?new T(NaN,NaN,NaN,0):null}function k(t){return new T(t>>16&255,t>>8&255,255&t,1)}function M(t,e,n,r){return r<=0&&(t=e=n=NaN),new T(t,e,n,r)}function O(t){return t instanceof o||(t=x(t)),t?new T((t=t.rgb()).r,t.g,t.b,t.opacity):new T}function N(t,e,n,r){return 1===arguments.length?O(t):new T(t,e,n,null==r?1:r)}function T(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E(){return"#"+S(this.r)+S(this.g)+S(this.b)}function _(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function S(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function C(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new z(t,e,n,r)}function P(t){if(t instanceof z)return new z(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=x(t)),!t)return new z;if(t instanceof z)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),u=NaN,s=a-i,c=(a+i)/2;return s?(u=e===a?(n-r)/s+6*(n0&&c<1?0:u,new z(u,s,c,t.opacity)}function R(t,e,n,r){return 1===arguments.length?P(t):new z(t,e,n,null==r?1:r)}function z(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Z(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}r(o,x,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:function(){return P(this).formatHsl()},formatRgb:w,toString:w}),r(T,N,i(o,{brighter:function(t){return t=null==t?u:Math.pow(u,t),new T(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new T(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:_,toString:_})),r(z,R,i(o,{brighter:function(t){return t=null==t?u:Math.pow(u,t),new z(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new z(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new T(Z(t>=240?t-240:t+120,i,r),Z(t,i,r),Z(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var A=Math.PI/180,j=180/Math.PI,D=.96422,F=.82521,L=4/29,I=6/29,U=3*I*I;function B(t){if(t instanceof Y)return new Y(t.l,t.a,t.b,t.opacity);if(t instanceof J)return K(t);t instanceof T||(t=O(t));var e,n,r=V(t.r),i=V(t.g),o=V(t.b),a=W((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=W((.4360747*r+.3850649*i+.1430804*o)/D),n=W((.0139322*r+.0971045*i+.7141733*o)/F)),new Y(116*a-16,500*(e-a),200*(a-n),t.opacity)}function H(t,e,n,r){return 1===arguments.length?B(t):new Y(t,e,n,null==r?1:r)}function Y(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function W(t){return t>.008856451679035631?Math.pow(t,1/3):t/U+L}function q(t){return t>I?t*t*t:U*(t-L)}function $(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function V(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function G(t){if(t instanceof J)return new J(t.h,t.c,t.l,t.opacity);if(t instanceof Y||(t=B(t)),0===t.a&&0===t.b)return new J(NaN,0180||n<-180?n-360*Math.round(n/360):n):Q(isNaN(t)?e:t)}function nt(t){return 1===(t=+t)?rt:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Q(isNaN(e)?n:e)}}function rt(t,e){var n=e-t;return n?tt(t,n):Q(isNaN(t)?e:t)}function it(t){return function(e,n){var r=t((e=X(e)).h,(n=X(n)).h),i=rt(e.c,n.c),o=rt(e.l,n.l),a=rt(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}r(Y,H,i(o,{brighter:function(t){return new Y(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Y(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new T($(3.1338561*(e=D*q(e))-1.6168667*(t=1*q(t))-.4906146*(n=F*q(n))),$(-.9787684*e+1.9161415*t+.033454*n),$(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),r(J,X,i(o,{brighter:function(t){return new J(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new J(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return K(this).rgb()}}));var ot=it(et),at=it(rt);function ut(t){return function(e,n){var r=t((e=R(e)).h,(n=R(n)).h),i=rt(e.s,n.s),o=rt(e.l,n.l),a=rt(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var st=ut(et),ct=ut(rt),lt=-.14861,ft=1.78277,ht=-.29227,pt=-.90649,dt=1.97294,gt=dt*pt,vt=dt*ft,yt=ft*ht-pt*lt;function mt(t){if(t instanceof wt)return new wt(t.h,t.s,t.l,t.opacity);t instanceof T||(t=O(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(yt*r+gt*e-vt*n)/(yt+gt-vt),o=r-i,a=(dt*(n-i)-ht*o)/pt,u=Math.sqrt(a*a+o*o)/(dt*i*(1-i)),s=u?Math.atan2(a,o)*j-120:NaN;return new wt(s<0?s+360:s,u,i,t.opacity)}function bt(t,e,n,r){return 1===arguments.length?mt(t):new wt(t,e,n,null==r?1:r)}function wt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function xt(t){return function e(n){function r(e,r){var i=t((e=bt(e)).h,(r=bt(r)).h),o=rt(e.s,r.s),a=rt(e.l,r.l),u=rt(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}r(wt,bt,i(o,{brighter:function(t){return t=null==t?u:Math.pow(u,t),new wt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new wt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*A,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new T(255*(e+n*(lt*r+ft*i)),255*(e+n*(ht*r+pt*i)),255*(e+n*(dt*r)),this.opacity)}}));var kt=xt(et),Mt=xt(rt);function Ot(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}var Nt=function t(e){var n=nt(e);function r(t,e){var r=n((t=N(t)).r,(e=N(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=rt(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Tt(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(t){if(!(e=u.exec(t)))throw new Error("invalid format: "+t);var e;return new c({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function c(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function l(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function f(t){return(t=l(Math.abs(t)))?t[1]:NaN}function h(t,e){var n=l(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}s.prototype=c.prototype,c.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>h(100*t,e),r:h,s:function(t,e){var n=l(t,e);if(!n)return t+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return a===u?i:a>u?i+new Array(a-u+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+l(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function d(t){return t}var g,v,y,m=Array.prototype.map,b=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function w(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?d:(e=m.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(t.substring(i-=u,i+u)),!((s+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?d:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(m.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",h=void 0===t.minus?"\u2212":t.minus+"",g=void 0===t.nan?"NaN":t.nan+"";function v(t){var e=(t=s(t)).fill,n=t.align,f=t.sign,d=t.symbol,v=t.zero,y=t.width,m=t.comma,w=t.precision,x=t.trim,k=t.type;"n"===k?(m=!0,k="g"):p[k]||(void 0===w&&(w=12),x=!0,k="g"),(v||"0"===e&&"="===n)&&(v=!0,e="0",n="=");var M="$"===d?o:"#"===d&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",O="$"===d?a:/[%p]/.test(k)?l:"",N=p[k],T=/[defgprs%]/.test(k);function E(t){var o,a,s,l=M,p=O;if("c"===k)p=N(t)+p,t="";else{var d=(t=+t)<0||1/t<0;if(t=isNaN(t)?g:N(Math.abs(t),w),x&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),d&&0===+t&&"+"!==f&&(d=!1),l=(d?"("===f?f:h:"-"===f||"("===f?"":f)+l,p=("s"===k?b[8+r/3]:"")+p+(d&&"("===f?")":""),T)for(o=-1,a=t.length;++o(s=t.charCodeAt(o))||s>57){p=(46===s?u+t.slice(o+1):t.slice(o))+p,t=t.slice(0,o);break}}m&&!v&&(t=i(t,1/0));var E=l.length+t.length+p.length,_=E>1)+l+t+p+_.slice(E);break;default:t=_+l+t+p}return c(t)}return w=void 0===w?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),E.toString=function(){return t+""},E}return{format:v,formatPrefix:function(t,e){var n=v(((t=s(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(f(e)/3))),i=Math.pow(10,-r),o=b[8+r/3];return function(t){return n(i*t)+o}}}}function x(t,e,n,r){var o,a=(0,i.ly)(t,e,n);switch((r=s(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(f(e)/3)))-f(Math.abs(t)))}(a,u))||(r.precision=o),y(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,f(e)-f(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-f(Math.abs(t)))}(a))||(r.precision=o-2*("%"===r.type))}return v(r)}function k(t){var e=t.domain;return t.ticks=function(t){var n=e();return(0,i.ZP)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return x(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,a=e(),u=0,s=a.length-1,c=a[u],l=a[s],f=10;for(l0;){if((o=(0,i.G9)(c,l,n))===r)return a[u]=c,a[s]=l,e(a);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return t},t}function M(){var t=(0,o.ZP)();return t.copy=function(){return(0,o.JG)(t,M())},a.o.apply(t,arguments),k(t)}g=w({thousands:",",grouping:[3],currency:["$",""]}),v=g.format,y=g.formatPrefix;var O=(0,n(93342).Z)("domain","range","reverse","clamp","interpolate","nice","round","zero");function N(t){return O(M(),t)}},24903:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(8162),i=(0,n(93342).Z)("domain","range","reverse","unknown");function o(t){return i((0,r.Z)(),t)}},88543:function(t,e,n){"use strict";function r(t){if(("function"===typeof t||"object"===typeof t&&t)&&"valueOf"in t){var e=t.valueOf();if("number"===typeof e)return e}return t}n.d(e,{Z:function(){return r}})},46119:function(t,e,n){"use strict";function r(t,e){var n=t;return"ticks"in n?n.ticks(e):n.domain().filter((function(t,n,r){return null==e||r.length<=e||n%Math.round((r.length-1)/e)===0}))}n.d(e,{Z:function(){return r}})},65743:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(82684),i=n(63588),o=n.n(i),a=["className","innerRef"];function u(){return u=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,a);return r.createElement("rect",u({ref:n,className:o()("visx-bar",e)},i))}},79487:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(82684),i=n(63588),o=n.n(i),a=["from","to","fill","className","innerRef"];function u(){return u=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,a),d=n.x===s.x||n.y===s.y;return r.createElement("line",u({ref:h,className:o()("visx-line",f),x1:n.x,y1:n.y,x2:s.x,y2:s.y,fill:l,shapeRendering:d?"crispEdges":"auto"},p))}},13004:function(t,e,n){"use strict";function r(t,e){t(e)}n.d(e,{Z:function(){return r}})},29179:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(82684),i=["tooltipOpen"];function o(){return o=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(e,i);return o({},t(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:t.tooltipLeft,tooltipTop:t.tooltipTop,tooltipData:t.tooltipData})}),[a]),s=(0,r.useCallback)((function(){return a({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})}),[a]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:a,showTooltip:u,hideTooltip:s}}},65376:function(t,e,n){"use strict";n.d(e,{j:function(){return l}});var r=n(47329),i=n.n(r),o=n(82684),a=n(63588),u=n.n(a),s=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function c(){return c=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,s);return o.createElement("div",c({ref:e,className:u()("visx-tooltip",n),style:c({top:null==r||null==p?r:r+p,left:null==i||null==f?i:i+f},w&&{position:"absolute"},!m&&g)},x),v)}));f.propTypes={children:i().node,className:i().string,left:i().number,offsetLeft:i().number,offsetTop:i().number,top:i().number,applyPositionStyle:i().bool,unstyled:i().bool},f.displayName="Tooltip",e.Z=f},39584:function(t){"use strict";function e(t,e,i){t instanceof RegExp&&(t=n(t,i)),e instanceof RegExp&&(e=n(e,i));var o=r(t,e,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+t.length,o[1]),post:i.slice(o[1]+e.length)}}function n(t,e){var n=e.match(t);return n?n[0]:null}function r(t,e,n){var r,i,o,a,u,s=n.indexOf(t),c=n.indexOf(e,s+1),l=s;if(s>=0&&c>0){if(t===e)return[s,c];for(r=[],o=n.length;l>=0&&!u;)l==s?(r.push(l),s=n.indexOf(t,l+1)):1==r.length?u=[r.pop(),c]:((i=r.pop())=0?s:c;r.length&&(u=[o,a])}return u}t.exports=e,e.range=r},63588:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;ee?1:t>=e?0:NaN}n.d(e,{Z:function(){return r}})},38355:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(64433);function i(t){let e=t,n=t;function i(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>(0,r.Z)(t(e),n)}(t)),{left:i,center:function(t,n,r,o){null==r&&(r=0),null==o&&(o=t.length);const a=i(t,n,r,o-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}},2073:function(t,e,n){"use strict";n.d(e,{G9:function(){return u},ZP:function(){return a},ly:function(){return s}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e0){let n=Math.round(t/a),r=Math.round(e/a);for(n*ae&&--r,o=new Array(i=r-n+1);++se&&--r,o=new Array(i=r-n+1);++s=0?(s>=r?10:s>=i?5:s>=o?2:1)*Math.pow(10,u):-Math.pow(10,-u)/(s>=r?10:s>=i?5:s>=o?2:1)}function s(t,e,n){var a=Math.abs(e-t)/Math.max(0,n),u=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),s=a/u;return s>=r?u*=10:s>=i?u*=5:s>=o&&(u*=2),e>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?_(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?_(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=y.exec(t))?new P(e[1],e[2],e[3],1):(e=m.exec(t))?new P(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=b.exec(t))?_(e[1],e[2],e[3],e[4]):(e=w.exec(t))?_(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=x.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=k.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):M.hasOwnProperty(t)?E(M[t]):"transparent"===t?new P(NaN,NaN,NaN,0):null}function E(t){return new P(t>>16&255,t>>8&255,255&t,1)}function _(t,e,n,r){return r<=0&&(t=e=n=NaN),new P(t,e,n,r)}function S(t){return t instanceof l||(t=T(t)),t?new P((t=t.rgb()).r,t.g,t.b,t.opacity):new P}function C(t,e,n,r){return 1===arguments.length?S(t):new P(t,e,n,null==r?1:r)}function P(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function R(){return"#"+Z(this.r)+Z(this.g)+Z(this.b)}function z(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Z(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function A(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new D(t,e,n,r)}function j(t){if(t instanceof D)return new D(t.h,t.s,t.l,t.opacity);if(t instanceof l||(t=T(t)),!t)return new D;if(t instanceof D)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n0&&s<1?0:a,new D(a,u,s,t.opacity)}function D(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function F(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function L(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}s(l,T,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:O,formatHex:O,formatHsl:function(){return j(this).formatHsl()},formatRgb:N,toString:N}),s(P,C,c(l,{brighter:function(t){return t=null==t?h:Math.pow(h,t),new P(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?f:Math.pow(f,t),new P(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:R,formatHex:R,formatRgb:z,toString:z})),s(D,(function(t,e,n,r){return 1===arguments.length?j(t):new D(t,e,n,null==r?1:r)}),c(l,{brighter:function(t){return t=null==t?h:Math.pow(h,t),new D(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?f:Math.pow(f,t),new D(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new P(F(t>=240?t-240:t+120,i,r),F(t,i,r),F(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var I=t=>()=>t;function U(t,e){return function(n){return t+n*e}}function B(t){return 1===(t=+t)?H:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):I(isNaN(e)?n:e)}}function H(t,e){var n=e-t;return n?U(t,n):I(isNaN(t)?e:t)}var Y=function t(e){var n=B(e);function r(t,e){var r=n((t=C(t)).r,(e=C(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=H(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function W(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:V(n,r)})),o=J.lastIndex;return oe&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?ut:at,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),u,s)))(t(c(e)))}return f.invert=function(n){return c(e((o||(o=r(u,a.map(t),V)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,nt),l()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),l()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=et,l()},f.clamp=function(t){return arguments.length?(c=!!t||it,l()):c!==it},f.interpolate=function(t){return arguments.length?(s=t,l()):s},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function lt(){return ct()(it,it)}},8208:function(t,e,n){"use strict";function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}n.d(e,{o:function(){return r}})},8162:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(8208);const i=Symbol("implicit");function o(){var t=new Map,e=[],n=[],a=i;function u(r){var o=r+"",u=t.get(o);if(!u){if(a!==i)return a;t.set(o,u=e.push(r))}return n[(u-1)%n.length]}return u.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Map;for(const r of n){const n=r+"";t.has(n)||t.set(n,e.push(r))}return u},u.range=function(t){return arguments.length?(n=Array.from(t),u):n.slice()},u.unknown=function(t){return arguments.length?(a=t,u):a},u.copy=function(){return o(e,n).unknown(a)},r.o.apply(u,arguments),u}},90875:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},82194:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.UD),(t=>t.getDate()-1));e.Z=o;o.range},43521:function(t,e,n){"use strict";n.d(e,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return u},jz:function(){return s},qz:function(){return c},yB:function(){return i}});const r=1e3,i=60*r,o=60*i,a=24*o,u=7*a,s=30*a,c=365*a},61851:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Ym-t.getMinutes()*i.yB)}),(function(t,e){t.setTime(+t+e*i.Y2)}),(function(t,e){return(e-t)/i.Y2}),(function(t){return t.getHours()}));e.Z=o;o.range},47237:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=new Date,i=new Date;function o(t,e,n,a){function u(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return u.floor=function(e){return t(e=new Date(+e)),e},u.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},u.round=function(t){var e=u(t),n=u.ceil(t);return t-e0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(u.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(a?function(e){return a(e)%t===0}:function(e){return u.count(0,e)%t===0}):u:null}),u}},66403:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Ym)}),(function(t,e){t.setTime(+t+e*i.yB)}),(function(t,e){return(e-t)/i.yB}),(function(t){return t.getMinutes()}));e.Z=o;o.range},38249:function(t,e,n){"use strict";var r=(0,n(47237).Z)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));e.Z=r;r.range},29483:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*i.Ym)}),(function(t,e){return(e-t)/i.Ym}),(function(t){return t.getUTCSeconds()}));e.Z=o;o.range},43694:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/i.UD}),(function(t){return t.getUTCDate()-1}));e.Z=o;o.range},13143:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*i.Y2)}),(function(t,e){return(e-t)/i.Y2}),(function(t){return t.getUTCHours()}));e.Z=o;o.range},8717:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*i.yB)}),(function(t,e){return(e-t)/i.yB}),(function(t){return t.getUTCMinutes()}));e.Z=o;o.range},3983:function(t,e,n){"use strict";var r=(0,n(47237).Z)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));e.Z=r;r.range},37884:function(t,e,n){"use strict";n.d(e,{Ox:function(){return a},hB:function(){return l},l6:function(){return u}});var r=n(47237),i=n(43521);function o(t){return(0,r.Z)((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/i.iM}))}var a=o(0),u=o(1),s=o(2),c=o(3),l=o(4),f=o(5),h=o(6);a.range,u.range,s.range,c.range,l.range,f.range,h.range},35101:function(t,e,n){"use strict";var r=n(47237),i=(0,r.Z)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null},e.Z=i;i.range},31124:function(t,e,n){"use strict";n.d(e,{OM:function(){return a},bL:function(){return l},wA:function(){return u}});var r=n(47237),i=n(43521);function o(t){return(0,r.Z)((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.iM}))}var a=o(0),u=o(1),s=o(2),c=o(3),l=o(4),f=o(5),h=o(6);a.range,u.range,s.range,c.range,l.range,f.range,h.range},4760:function(t,e,n){"use strict";var r=n(47237),i=(0,r.Z)((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null},e.Z=i;i.range},38431:function(t,e,n){var r=n(72514),i=n(5485),o=n(243),a=n(78454),u=n(73984);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},6275:function(t,e,n){var r=n(55509);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},34917:function(t,e,n){var r=n(38431),i=n(83472),o=n(66588);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},56890:function(t,e,n){var r=n(63872);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},59413:function(t,e,n){var r=n(63872);t.exports=function(t){return r(this,t).get(t)}},13583:function(t,e,n){var r=n(63872);t.exports=function(t){return r(this,t).has(t)}},59399:function(t,e,n){var r=n(63872);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},69535:function(t,e,n){var r=n(51095)(Object,"create");t.exports=r},38255:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(n){}try{return t+""}catch(n){}}return""}},83645:function(t,e,n){var r=n(51716),i=n(49244),o=n(61666),a=Math.max,u=Math.min;t.exports=function(t,e,n){var s,c,l,f,h,p,d=0,g=!1,v=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=s,r=c;return s=c=void 0,d=e,f=t.apply(r,n)}function b(t){return d=t,h=setTimeout(x,e),g?m(t):f}function w(t){var n=t-p;return void 0===p||n>=e||n<0||v&&t-d>=l}function x(){var t=i();if(w(t))return k(t);h=setTimeout(x,function(t){var n=e-(t-p);return v?u(n,l-(t-d)):n}(t))}function k(t){return h=void 0,y&&s?m(t):(s=c=void 0,f)}function M(){var t=i(),n=w(t);if(s=arguments,c=this,p=t,n){if(void 0===h)return b(p);if(v)return clearTimeout(h),h=setTimeout(x,e),m(p)}return void 0===h&&(h=setTimeout(x,e)),f}return e=o(e)||0,r(n)&&(g=!!n.leading,l=(v="maxWait"in n)?a(o(n.maxWait)||0,e):l,y="trailing"in n?!!n.trailing:y),M.cancel=function(){void 0!==h&&clearTimeout(h),d=0,s=p=c=h=void 0},M.flush=function(){return void 0===h?f:k(i())},M}},96210:function(t,e,n){var r=n(60460);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},49244:function(t,e,n){var r=n(4366);t.exports=function(){return r.Date.now()}},27885:function(t,e,n){var r=n(50725);r.prototype.formulaEval=function(){"use strict";for(var t,e,n,r=[],i=this.value,o=0;o"+e.value+""+i[o].show+""+t.value+"",type:10}):r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+""+t.value+"",type:1})):2===i[o].type||9===i[o].type?(t=r.pop(),e=r.pop(),r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+i[o].show+(1!=t.type?"(":"")+t.value+(1!=t.type?")":""),type:i[o].type})):12===i[o].type&&(t=r.pop(),e=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+e.value+","+t.value+")",type:12}));return r[0].value},t.exports=r},57642:function(t,e,n){"use strict";var r=n(57252);function i(t,e){for(var n=0;nd.length-2?d.length-1:t.length-s;n>0;n--)if(void 0!==d[n])for(i=0;i0&&nn)u.push(t);else{for(;n>=i&&!l||l&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(t,e,n){return"undefined"===typeof e?this.lex(t).toPostfix().postfixEval():"undefined"===typeof n?"undefined"!==typeof e.length?this.lex(t,e).toPostfix().postfixEval():this.lex(t).toPostfix().postfixEval(e):this.lex(t,e).toPostfix().postfixEval(n)},t.exports=r},59739:function(t,e,n){"use strict";var r=n(56669);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},47329:function(t,e,n){t.exports=n(59739)()},56669:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},52823:function(t,e,n){var r,i=n(17784),o=n(96953),a=n(27885),u=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;t.exports=function(t,e){function n(t,o,s){if(r++>100)throw r=0,new Error("Call stack overflow for "+s);if(""===t)throw new Error(o+"(): '"+s+"' must contain a non-whitespace string");t=function(t,e){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,o="",a=t;for(;r=u.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var s=i("(",")",a.substring([0].index));if(""===s.body)throw new Error("'"+t+"' must contain a non-whitespace string");var c=n(s.body,"",e);o+=s.pre+c,a=s.post}return o+a}(t,s);var c=function(t){var e=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(t);for(;i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(e.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(t));return e}(t);if(c.length>1||t.indexOf("var(")>-1)return o+"("+t+")";var l=c[0]||"";"%"===l&&(t=t.replace(/\b[0-9\.]+%/g,(function(t){return.01*parseFloat(t.slice(0,-1))})));var f,h=t.replace(new RegExp(l,"gi"),"");try{f=a.eval(h)}catch(p){return o+"("+t+")"}return"%"===l&&(f*=100),(o.length||"%"===l)&&(f=Math.round(f*e)/e),f+=l}return r=0,e=Math.pow(10,void 0===e?5:e),t=t.replace(/\n+/g," "),o(t,/((?:\-[a-z]+\-)?calc)\(/,n)}},17784:function(t){function e(t,e,i){t instanceof RegExp&&(t=n(t,i)),e instanceof RegExp&&(e=n(e,i));var o=r(t,e,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+t.length,o[1]),post:i.slice(o[1]+e.length)}}function n(t,e){var n=e.match(t);return n?n[0]:null}function r(t,e,n){var r,i,o,a,u,s=n.indexOf(t),c=n.indexOf(e,s+1),l=s;if(s>=0&&c>0){for(r=[],o=n.length;l>=0&&!u;)l==s?(r.push(l),s=n.indexOf(t,l+1)):1==r.length?u=[r.pop(),c]:((i=r.pop())=0?s:c;r.length&&(u=[o,a])}return u}t.exports=e,e.range=r},96953:function(t,e,n){var r=n(39584);function i(t,e,n){var o=t;return function(t,e){var n=[],i="string"===typeof e?new RegExp("\\b("+e+")\\("):e;do{var o=i.exec(t);if(!o)return n;if(void 0===o[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+e);var a=o[1],u=o.index,s=r("(",")",t.substring(u));if(!s||s.start!==o[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+t+"'");n.push({matches:s,functionIdentifier:a}),t=s.post}while(i.test(t));return n}(t,e).reduce((function(t,r){return t.replace(r.functionIdentifier+"("+r.matches.body+")",function(t,e,n,r,o){return n(i(t,o,n),e,r)}(r.matches.body,r.functionIdentifier,n,o,e))}),t)}t.exports=i}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5896],{77331:function(t,e,n){"use strict";n.r(e),n.d(e,{ResizeObserver:function(){return B},ResizeObserverEntry:function(){return M},ResizeObserverSize:function(){return s}});var r,i=[],o="ResizeObserver loop completed with undelivered notifications.";!function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var a,u=function(t){return Object.freeze(t)},s=function(t,e){this.inlineSize=t,this.blockSize=e,u(this)},c=function(){function t(t,e,n,r){return this.x=t,this.y=e,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return t.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),l=function(t){return t instanceof SVGElement&&"getBBox"in t},f=function(t){if(l(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},h=function(t){var e;if(t instanceof Element)return!0;var n=null===(e=null===t||void 0===t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},p="undefined"!==typeof window?window:{},d=new WeakMap,g=/auto|scroll/,v=/^tb|vertical/,y=/msie|trident/i.test(p.navigator&&p.navigator.userAgent),m=function(t){return parseFloat(t||"0")},b=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new s((n?e:t)||0,(n?t:e)||0)},w=u({devicePixelContentBoxSize:b(),borderBoxSize:b(),contentBoxSize:b(),contentRect:new c(0,0,0,0)}),x=function(t,e){if(void 0===e&&(e=!1),d.has(t)&&!e)return d.get(t);if(f(t))return d.set(t,w),w;var n=getComputedStyle(t),r=l(t)&&t.ownerSVGElement&&t.getBBox(),i=!y&&"border-box"===n.boxSizing,o=v.test(n.writingMode||""),a=!r&&g.test(n.overflowY||""),s=!r&&g.test(n.overflowX||""),h=r?0:m(n.paddingTop),p=r?0:m(n.paddingRight),x=r?0:m(n.paddingBottom),k=r?0:m(n.paddingLeft),M=r?0:m(n.borderTopWidth),O=r?0:m(n.borderRightWidth),N=r?0:m(n.borderBottomWidth),T=k+p,E=h+x,_=(r?0:m(n.borderLeftWidth))+O,S=M+N,C=s?t.offsetHeight-S-t.clientHeight:0,P=a?t.offsetWidth-_-t.clientWidth:0,R=i?T+_:0,z=i?E+S:0,Z=r?r.width:m(n.width)-R-P,A=r?r.height:m(n.height)-z-C,j=Z+T+P+_,D=A+E+C+S,F=u({devicePixelContentBoxSize:b(Math.round(Z*devicePixelRatio),Math.round(A*devicePixelRatio),o),borderBoxSize:b(j,D,o),contentBoxSize:b(Z,A,o),contentRect:new c(k,h,Z,A)});return d.set(t,F),F},k=function(t,e,n){var i=x(t,n),o=i.borderBoxSize,a=i.contentBoxSize,u=i.devicePixelContentBoxSize;switch(e){case r.DEVICE_PIXEL_CONTENT_BOX:return u;case r.BORDER_BOX:return o;default:return a}},M=function(t){var e=x(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=u([e.borderBoxSize]),this.contentBoxSize=u([e.contentBoxSize]),this.devicePixelContentBoxSize=u([e.devicePixelContentBoxSize])},O=function(t){if(f(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},N=function(){var t=1/0,e=[];i.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(e){var n=new M(e.target),i=O(e.target);r.push(n),e.lastReportedSize=k(e.target,e.observedBox),it?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},E=function(){var t=0;for(T(t);i.some((function(t){return t.activeTargets.length>0}));)t=N(),T(t);return i.some((function(t){return t.skippedTargets.length>0}))&&function(){var t;"function"===typeof ErrorEvent?t=new ErrorEvent("error",{message:o}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=o),window.dispatchEvent(t)}(),t>0},_=[],S=function(t){if(!a){var e=0,n=document.createTextNode("");new MutationObserver((function(){return _.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),a=function(){n.textContent="".concat(e?e--:e++)}}_.push(t),a()},C=0,P={attributes:!0,characterData:!0,childList:!0,subtree:!0},R=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],z=function(t){return void 0===t&&(t=0),Date.now()+t},Z=!1,A=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!Z){Z=!0;var n,r=z(t);n=function(){var n=!1;try{n=E()}finally{if(Z=!1,t=r-z(),!C)return;n?e.run(1e3):t>0?e.run(t):e.start()}},S((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,P)};document.body?e():p.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),R.forEach((function(e){return p.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),R.forEach((function(e){return p.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),j=function(t){!C&&t>0&&A.start(),!(C+=t)&&A.stop()},D=function(){function t(t,e){this.target=t,this.observedBox=e||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=k(this.target,this.observedBox,!0);return t=this.target,l(t)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),F=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},L=new WeakMap,I=function(t,e){for(var n=0;n=0&&(o&&i.splice(i.indexOf(n),1),n.observationTargets.splice(r,1),j(-1))},t.disconnect=function(t){var e=this,n=L.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),B=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");U.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!h(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");U.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!h(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");U.unobserve(this,t)},t.prototype.disconnect=function(){U.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}()},96570:function(t,e,n){"use strict";n.d(e,{Z:function(){return A}});var r=n(82684),i=n(63588),o=n.n(i),a=n(29989),u=n(46119),s=n(88543),c=n(79487),l=n(52823),f=n.n(l),h=n(96210),p="__react_svg_text_measurement_id";var d=n.n(h)()((function(t,e){try{var n=document.getElementById(p);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",p),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,e),n.textContent=t,n.getComputedTextLength()}catch(i){return null}}),(function(t,e){return t+"_"+JSON.stringify(e)})),g=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function v(t){return"number"===typeof t}function y(t){return"number"===typeof t&&Number.isFinite(t)||"string"===typeof t}function m(t){var e=t.verticalAnchor,n=void 0===e?"end":e,i=t.scaleToFit,o=void 0!==i&&i,a=t.angle,u=t.width,s=t.lineHeight,c=void 0===s?"1em":s,l=t.capHeight,h=void 0===l?"0.71em":l,p=t.children,m=t.style,b=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,g),w=b.x,x=void 0===w?0:w,k=b.y,M=void 0===k?0:k,O=!y(x)||!y(M),N=(0,r.useMemo)((function(){return{wordsWithWidth:(null==p?[]:p.toString().split(/(?:(?!\u00A0+)\s+)/)).map((function(t){return{word:t,wordWidth:d(t,m)||0}})),spaceWidth:d("\xa0",m)||0}}),[p,m]),T=N.wordsWithWidth,E=N.spaceWidth,_=(0,r.useMemo)((function(){return O?[]:u||o?T.reduce((function(t,e){var n=e.word,r=e.wordWidth,i=t[t.length-1];if(i&&(null==u||o||(i.width||0)+r+E0){var e=_[0].width||1,n="shrink-only"===o?Math.min(u/e,1):u/e,r=n,i=x-n*x,s=M-r*M;t.push("matrix("+n+", 0, 0, "+r+", "+i+", "+s+")")}return a&&t.push("rotate("+a+", "+x+", "+M+")"),t.length>0?t.join(" "):""}),[O,x,M,u,o,_,a]);return{wordsByLines:_,startDy:S,transform:C}}var b=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function w(){return w=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,b)),p=h.x,d=void 0===p?0:p,g=h.fontSize,v=m(t),y=v.wordsByLines,k=v.startDy,M=v.transform;return r.createElement("svg",{ref:s,x:n,y:o,fontSize:g,style:x},y.length>0?r.createElement("text",w({ref:c,transform:M},h,{textAnchor:u}),y.map((function(t,e){return r.createElement("tspan",{key:e,x:d,dy:0===e?k:f},t.words.join(" "))}))):null)}var M=n(96774);function O(){return O=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,z),L=null!=T?T:function(t){return"tickFormat"in t?t.tickFormat():S}(N),I=x===M.Z.left,U=x===M.Z.top,B=U||x===M.Z.bottom,H=function(t,e){void 0===e&&(e="center");var n=t;if("start"!==e&&"bandwidth"in n){var r=n.bandwidth();return"center"===e&&(r/=2),n.round()&&(r=Math.round(r)),function(t){var e=n(t);return"number"===typeof e?e+r:e}}return t}(N),Y=I||U?-1:1,W=N.range(),q=(void 0===(e=O)&&(e=0),"number"===typeof e?{start:e,end:e}:R({start:0,end:0},e)),$=P({x:Number(W[0])+.5-q.start,y:0},B),V=P({x:Number(W[W.length-1])+.5+q.end,y:0},B),G=(null!=A?A:(0,u.Z)(N,b)).filter((function(t){return!g||0!==t&&"0"!==t})).map((function(t,e){return{value:t,index:e}})),X=G.map((function(t){var e=t.value,n=t.index,r=(0,s.Z)(H(e));return{value:e,index:n,from:P({x:r,y:0},B),to:P({x:r,y:C*Y},B),formattedValue:L(e,n,G)}}));return r.createElement(a.Z,{className:o()("visx-axis",c),top:D,left:y},i(Z({},F,{axisFromPoint:$,axisToPoint:V,hideAxisLine:f,hideTicks:p,hideZero:g,horizontal:B,numTicks:b,orientation:x,rangePadding:O,scale:N,tickFormat:L,tickLength:C,tickPosition:H,tickSign:Y,ticks:X})))}},90948:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r=n(82684),i=n(63588),o=n.n(i),a=n(96570),u=n(96774),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function c(){return c=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,s);return r.createElement(a.Z,c({axisClassName:o()("visx-axis-bottom",e),labelOffset:i,orientation:u.Z.bottom,tickLabelProps:h,tickLength:d},g))}},84969:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r=n(82684),i=n(63588),o=n.n(i),a=n(96570),u=n(96774),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function c(){return c=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,s);return r.createElement(a.Z,c({axisClassName:o()("visx-axis-left",e),labelOffset:i,orientation:u.Z.left,tickLabelProps:h,tickLength:d},g))}},96774:function(t,e){"use strict";e.Z={top:"top",left:"left",right:"right",bottom:"bottom"}},48072:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(81352);function i(){return i=Object.assign||function(t){for(var e=1;e0?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:i({},o);if(function(t){return!!t&&"clientX"in t}(t))return{x:t.clientX,y:t.clientY};var e=null==t?void 0:t.target,n=e&&"getBoundingClientRect"in e?e.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:i({},o)}(e),u=(n=t)&&(n instanceof SVGElement||"ownerSVGElement"in n)?t.ownerSVGElement:t,s=function(t){return!!t&&"getScreenCTM"in t}(u)?u.getScreenCTM():null;if(function(t){return!!t&&"createSVGPoint"in t}(u)&&s){var c=u.createSVGPoint();return c.x=a.x,c.y=a.y,c=c.matrixTransform(s.inverse()),new r.Z({x:c.x,y:c.y})}var l=t.getBoundingClientRect();return new r.Z({x:a.x-l.left-t.clientLeft,y:a.y-l.top-t.clientTop})}function u(t,e){if((n=t)&&n instanceof Element&&e)return a(t,e);var n;if(function(t){return!!t&&(t instanceof Event||"nativeEvent"in t&&t.nativeEvent instanceof Event)}(t)){var r=t,i=r.target;if(i)return a(i,r)}return null}},29989:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n(47329),i=n.n(r),o=n(82684),a=n(63588),u=n.n(a),s=["top","left","transform","className","children","innerRef"];function c(){return c=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,s);return o.createElement("g",c({ref:h,className:u()("visx-group",l),transform:a||"translate("+i+", "+n+")"},p),f)}l.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},81352:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return i}});var i=function(){function t(t){var e=t.x,n=void 0===e?0:e,i=t.y,o=void 0===i?0:i;r(this,"x",0),r(this,"y",0),this.x=n,this.y=o}var e=t.prototype;return e.value=function(){return{x:this.x,y:this.y}},e.toArray=function(){return[this.x,this.y]},t}()},26226:function(t,e,n){"use strict";e.Z=h;var r=c(n(47329)),i=c(n(83645)),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==typeof t&&"function"!==typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(n(82684)),a=n(77331),u=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function s(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}function c(t){return t&&t.__esModule?t:{default:t}}function l(){return l=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,u),m=(0,o.useRef)(null),b=(0,o.useRef)(0),w=(0,o.useState)({width:0,height:0,top:0,left:0}),x=w[0],k=w[1],M=(0,o.useMemo)((function(){var t=Array.isArray(h)?h:[h];return(0,i.default)((function(e){k((function(n){return Object.keys(n).filter((function(t){return n[t]!==e[t]})).every((function(e){return t.includes(e)}))?n:e}))}),s,{leading:v})}),[s,v,h]);return(0,o.useEffect)((function(){var t=new a.ResizeObserver((function(t){void 0===t&&(t=[]),t.forEach((function(t){var e=t.contentRect,n=e.left,r=e.top,i=e.width,o=e.height;b.current=window.requestAnimationFrame((function(){M({width:i,height:o,top:r,left:n})}))}))}));return m.current&&t.observe(m.current),function(){window.cancelAnimationFrame(b.current),t.disconnect(),null!=M&&M.cancel&&M.cancel()}}),[M]),o.default.createElement("div",l({style:d,ref:m,className:e},y),n(l({},x,{ref:m.current,resize:M})))}h.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},93342:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function o(){}n.d(e,{Z:function(){return $t}});var a=.7,u=1/a,s="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),p=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,c]+"\\)$"),g=new RegExp("^rgba\\("+[l,l,l,c]+"\\)$"),v=new RegExp("^hsl\\("+[c,l,l]+"\\)$"),y=new RegExp("^hsla\\("+[c,l,l,c]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function w(){return this.rgb().formatRgb()}function x(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=f.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?k(e):3===n?new T(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?M(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?M(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new T(e[1],e[2],e[3],1):(e=p.exec(t))?new T(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?M(e[1],e[2],e[3],e[4]):(e=g.exec(t))?M(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=v.exec(t))?C(e[1],e[2]/100,e[3]/100,1):(e=y.exec(t))?C(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?k(m[t]):"transparent"===t?new T(NaN,NaN,NaN,0):null}function k(t){return new T(t>>16&255,t>>8&255,255&t,1)}function M(t,e,n,r){return r<=0&&(t=e=n=NaN),new T(t,e,n,r)}function O(t){return t instanceof o||(t=x(t)),t?new T((t=t.rgb()).r,t.g,t.b,t.opacity):new T}function N(t,e,n,r){return 1===arguments.length?O(t):new T(t,e,n,null==r?1:r)}function T(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E(){return"#"+S(this.r)+S(this.g)+S(this.b)}function _(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function S(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function C(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new z(t,e,n,r)}function P(t){if(t instanceof z)return new z(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=x(t)),!t)return new z;if(t instanceof z)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),u=NaN,s=a-i,c=(a+i)/2;return s?(u=e===a?(n-r)/s+6*(n0&&c<1?0:u,new z(u,s,c,t.opacity)}function R(t,e,n,r){return 1===arguments.length?P(t):new z(t,e,n,null==r?1:r)}function z(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Z(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}r(o,x,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:function(){return P(this).formatHsl()},formatRgb:w,toString:w}),r(T,N,i(o,{brighter:function(t){return t=null==t?u:Math.pow(u,t),new T(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new T(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:_,toString:_})),r(z,R,i(o,{brighter:function(t){return t=null==t?u:Math.pow(u,t),new z(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new z(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new T(Z(t>=240?t-240:t+120,i,r),Z(t,i,r),Z(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var A=Math.PI/180,j=180/Math.PI,D=.96422,F=.82521,L=4/29,I=6/29,U=3*I*I;function B(t){if(t instanceof Y)return new Y(t.l,t.a,t.b,t.opacity);if(t instanceof J)return K(t);t instanceof T||(t=O(t));var e,n,r=V(t.r),i=V(t.g),o=V(t.b),a=W((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=W((.4360747*r+.3850649*i+.1430804*o)/D),n=W((.0139322*r+.0971045*i+.7141733*o)/F)),new Y(116*a-16,500*(e-a),200*(a-n),t.opacity)}function H(t,e,n,r){return 1===arguments.length?B(t):new Y(t,e,n,null==r?1:r)}function Y(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function W(t){return t>.008856451679035631?Math.pow(t,1/3):t/U+L}function q(t){return t>I?t*t*t:U*(t-L)}function $(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function V(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function G(t){if(t instanceof J)return new J(t.h,t.c,t.l,t.opacity);if(t instanceof Y||(t=B(t)),0===t.a&&0===t.b)return new J(NaN,0180||n<-180?n-360*Math.round(n/360):n):Q(isNaN(t)?e:t)}function nt(t){return 1===(t=+t)?rt:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Q(isNaN(e)?n:e)}}function rt(t,e){var n=e-t;return n?tt(t,n):Q(isNaN(t)?e:t)}function it(t){return function(e,n){var r=t((e=X(e)).h,(n=X(n)).h),i=rt(e.c,n.c),o=rt(e.l,n.l),a=rt(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}r(Y,H,i(o,{brighter:function(t){return new Y(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Y(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new T($(3.1338561*(e=D*q(e))-1.6168667*(t=1*q(t))-.4906146*(n=F*q(n))),$(-.9787684*e+1.9161415*t+.033454*n),$(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),r(J,X,i(o,{brighter:function(t){return new J(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new J(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return K(this).rgb()}}));var ot=it(et),at=it(rt);function ut(t){return function(e,n){var r=t((e=R(e)).h,(n=R(n)).h),i=rt(e.s,n.s),o=rt(e.l,n.l),a=rt(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var st=ut(et),ct=ut(rt),lt=-.14861,ft=1.78277,ht=-.29227,pt=-.90649,dt=1.97294,gt=dt*pt,vt=dt*ft,yt=ft*ht-pt*lt;function mt(t){if(t instanceof wt)return new wt(t.h,t.s,t.l,t.opacity);t instanceof T||(t=O(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(yt*r+gt*e-vt*n)/(yt+gt-vt),o=r-i,a=(dt*(n-i)-ht*o)/pt,u=Math.sqrt(a*a+o*o)/(dt*i*(1-i)),s=u?Math.atan2(a,o)*j-120:NaN;return new wt(s<0?s+360:s,u,i,t.opacity)}function bt(t,e,n,r){return 1===arguments.length?mt(t):new wt(t,e,n,null==r?1:r)}function wt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function xt(t){return function e(n){function r(e,r){var i=t((e=bt(e)).h,(r=bt(r)).h),o=rt(e.s,r.s),a=rt(e.l,r.l),u=rt(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}r(wt,bt,i(o,{brighter:function(t){return t=null==t?u:Math.pow(u,t),new wt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new wt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*A,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new T(255*(e+n*(lt*r+ft*i)),255*(e+n*(ht*r+pt*i)),255*(e+n*(dt*r)),this.opacity)}}));var kt=xt(et),Mt=xt(rt);function Ot(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}var Nt=function t(e){var n=nt(e);function r(t,e){var r=n((t=N(t)).r,(e=N(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=rt(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Tt(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(t){if(!(e=u.exec(t)))throw new Error("invalid format: "+t);var e;return new c({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function c(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function l(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function f(t){return(t=l(Math.abs(t)))?t[1]:NaN}function h(t,e){var n=l(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}s.prototype=c.prototype,c.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>h(100*t,e),r:h,s:function(t,e){var n=l(t,e);if(!n)return t+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return a===u?i:a>u?i+new Array(a-u+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+l(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function d(t){return t}var g,v,y,m=Array.prototype.map,b=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function w(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?d:(e=m.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(t.substring(i-=u,i+u)),!((s+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?d:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(m.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",h=void 0===t.minus?"\u2212":t.minus+"",g=void 0===t.nan?"NaN":t.nan+"";function v(t){var e=(t=s(t)).fill,n=t.align,f=t.sign,d=t.symbol,v=t.zero,y=t.width,m=t.comma,w=t.precision,x=t.trim,k=t.type;"n"===k?(m=!0,k="g"):p[k]||(void 0===w&&(w=12),x=!0,k="g"),(v||"0"===e&&"="===n)&&(v=!0,e="0",n="=");var M="$"===d?o:"#"===d&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",O="$"===d?a:/[%p]/.test(k)?l:"",N=p[k],T=/[defgprs%]/.test(k);function E(t){var o,a,s,l=M,p=O;if("c"===k)p=N(t)+p,t="";else{var d=(t=+t)<0||1/t<0;if(t=isNaN(t)?g:N(Math.abs(t),w),x&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),d&&0===+t&&"+"!==f&&(d=!1),l=(d?"("===f?f:h:"-"===f||"("===f?"":f)+l,p=("s"===k?b[8+r/3]:"")+p+(d&&"("===f?")":""),T)for(o=-1,a=t.length;++o(s=t.charCodeAt(o))||s>57){p=(46===s?u+t.slice(o+1):t.slice(o))+p,t=t.slice(0,o);break}}m&&!v&&(t=i(t,1/0));var E=l.length+t.length+p.length,_=E>1)+l+t+p+_.slice(E);break;default:t=_+l+t+p}return c(t)}return w=void 0===w?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),E.toString=function(){return t+""},E}return{format:v,formatPrefix:function(t,e){var n=v(((t=s(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(f(e)/3))),i=Math.pow(10,-r),o=b[8+r/3];return function(t){return n(i*t)+o}}}}function x(t,e,n,r){var o,a=(0,i.ly)(t,e,n);switch((r=s(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(f(e)/3)))-f(Math.abs(t)))}(a,u))||(r.precision=o),y(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,f(e)-f(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-f(Math.abs(t)))}(a))||(r.precision=o-2*("%"===r.type))}return v(r)}function k(t){var e=t.domain;return t.ticks=function(t){var n=e();return(0,i.ZP)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return x(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,a=e(),u=0,s=a.length-1,c=a[u],l=a[s],f=10;for(l0;){if((o=(0,i.G9)(c,l,n))===r)return a[u]=c,a[s]=l,e(a);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return t},t}function M(){var t=(0,o.ZP)();return t.copy=function(){return(0,o.JG)(t,M())},a.o.apply(t,arguments),k(t)}g=w({thousands:",",grouping:[3],currency:["$",""]}),v=g.format,y=g.formatPrefix;var O=(0,n(93342).Z)("domain","range","reverse","clamp","interpolate","nice","round","zero");function N(t){return O(M(),t)}},24903:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(8162),i=(0,n(93342).Z)("domain","range","reverse","unknown");function o(t){return i((0,r.Z)(),t)}},88543:function(t,e,n){"use strict";function r(t){if(("function"===typeof t||"object"===typeof t&&t)&&"valueOf"in t){var e=t.valueOf();if("number"===typeof e)return e}return t}n.d(e,{Z:function(){return r}})},46119:function(t,e,n){"use strict";function r(t,e){var n=t;return"ticks"in n?n.ticks(e):n.domain().filter((function(t,n,r){return null==e||r.length<=e||n%Math.round((r.length-1)/e)===0}))}n.d(e,{Z:function(){return r}})},65743:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(82684),i=n(63588),o=n.n(i),a=["className","innerRef"];function u(){return u=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,a);return r.createElement("rect",u({ref:n,className:o()("visx-bar",e)},i))}},79487:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(82684),i=n(63588),o=n.n(i),a=["from","to","fill","className","innerRef"];function u(){return u=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,a),d=n.x===s.x||n.y===s.y;return r.createElement("line",u({ref:h,className:o()("visx-line",f),x1:n.x,y1:n.y,x2:s.x,y2:s.y,fill:l,shapeRendering:d?"crispEdges":"auto"},p))}},49894:function(t,e,n){"use strict";function r(t,e){t(e)}n.d(e,{Z:function(){return r}})},29179:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(82684),i=["tooltipOpen"];function o(){return o=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(e,i);return o({},t(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:t.tooltipLeft,tooltipTop:t.tooltipTop,tooltipData:t.tooltipData})}),[a]),s=(0,r.useCallback)((function(){return a({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})}),[a]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:a,showTooltip:u,hideTooltip:s}}},65376:function(t,e,n){"use strict";n.d(e,{j:function(){return l}});var r=n(47329),i=n.n(r),o=n(82684),a=n(63588),u=n.n(a),s=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function c(){return c=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,s);return o.createElement("div",c({ref:e,className:u()("visx-tooltip",n),style:c({top:null==r||null==p?r:r+p,left:null==i||null==f?i:i+f},w&&{position:"absolute"},!m&&g)},x),v)}));f.propTypes={children:i().node,className:i().string,left:i().number,offsetLeft:i().number,offsetTop:i().number,top:i().number,applyPositionStyle:i().bool,unstyled:i().bool},f.displayName="Tooltip",e.Z=f},39584:function(t){"use strict";function e(t,e,i){t instanceof RegExp&&(t=n(t,i)),e instanceof RegExp&&(e=n(e,i));var o=r(t,e,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+t.length,o[1]),post:i.slice(o[1]+e.length)}}function n(t,e){var n=e.match(t);return n?n[0]:null}function r(t,e,n){var r,i,o,a,u,s=n.indexOf(t),c=n.indexOf(e,s+1),l=s;if(s>=0&&c>0){if(t===e)return[s,c];for(r=[],o=n.length;l>=0&&!u;)l==s?(r.push(l),s=n.indexOf(t,l+1)):1==r.length?u=[r.pop(),c]:((i=r.pop())=0?s:c;r.length&&(u=[o,a])}return u}t.exports=e,e.range=r},63588:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;ee?1:t>=e?0:NaN}n.d(e,{Z:function(){return r}})},38355:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(64433);function i(t){let e=t,n=t;function i(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>(0,r.Z)(t(e),n)}(t)),{left:i,center:function(t,n,r,o){null==r&&(r=0),null==o&&(o=t.length);const a=i(t,n,r,o-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}},2073:function(t,e,n){"use strict";n.d(e,{G9:function(){return u},ZP:function(){return a},ly:function(){return s}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e0){let n=Math.round(t/a),r=Math.round(e/a);for(n*ae&&--r,o=new Array(i=r-n+1);++se&&--r,o=new Array(i=r-n+1);++s=0?(s>=r?10:s>=i?5:s>=o?2:1)*Math.pow(10,u):-Math.pow(10,-u)/(s>=r?10:s>=i?5:s>=o?2:1)}function s(t,e,n){var a=Math.abs(e-t)/Math.max(0,n),u=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),s=a/u;return s>=r?u*=10:s>=i?u*=5:s>=o&&(u*=2),e>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?_(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?_(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=y.exec(t))?new P(e[1],e[2],e[3],1):(e=m.exec(t))?new P(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=b.exec(t))?_(e[1],e[2],e[3],e[4]):(e=w.exec(t))?_(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=x.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=k.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):M.hasOwnProperty(t)?E(M[t]):"transparent"===t?new P(NaN,NaN,NaN,0):null}function E(t){return new P(t>>16&255,t>>8&255,255&t,1)}function _(t,e,n,r){return r<=0&&(t=e=n=NaN),new P(t,e,n,r)}function S(t){return t instanceof l||(t=T(t)),t?new P((t=t.rgb()).r,t.g,t.b,t.opacity):new P}function C(t,e,n,r){return 1===arguments.length?S(t):new P(t,e,n,null==r?1:r)}function P(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function R(){return"#"+Z(this.r)+Z(this.g)+Z(this.b)}function z(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Z(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function A(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new D(t,e,n,r)}function j(t){if(t instanceof D)return new D(t.h,t.s,t.l,t.opacity);if(t instanceof l||(t=T(t)),!t)return new D;if(t instanceof D)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n0&&s<1?0:a,new D(a,u,s,t.opacity)}function D(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function F(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function L(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}s(l,T,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:O,formatHex:O,formatHsl:function(){return j(this).formatHsl()},formatRgb:N,toString:N}),s(P,C,c(l,{brighter:function(t){return t=null==t?h:Math.pow(h,t),new P(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?f:Math.pow(f,t),new P(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:R,formatHex:R,formatRgb:z,toString:z})),s(D,(function(t,e,n,r){return 1===arguments.length?j(t):new D(t,e,n,null==r?1:r)}),c(l,{brighter:function(t){return t=null==t?h:Math.pow(h,t),new D(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?f:Math.pow(f,t),new D(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new P(F(t>=240?t-240:t+120,i,r),F(t,i,r),F(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var I=t=>()=>t;function U(t,e){return function(n){return t+n*e}}function B(t){return 1===(t=+t)?H:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):I(isNaN(e)?n:e)}}function H(t,e){var n=e-t;return n?U(t,n):I(isNaN(t)?e:t)}var Y=function t(e){var n=B(e);function r(t,e){var r=n((t=C(t)).r,(e=C(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=H(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function W(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:V(n,r)})),o=J.lastIndex;return oe&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?ut:at,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),u,s)))(t(c(e)))}return f.invert=function(n){return c(e((o||(o=r(u,a.map(t),V)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,nt),l()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),l()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=et,l()},f.clamp=function(t){return arguments.length?(c=!!t||it,l()):c!==it},f.interpolate=function(t){return arguments.length?(s=t,l()):s},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function lt(){return ct()(it,it)}},8208:function(t,e,n){"use strict";function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}n.d(e,{o:function(){return r}})},8162:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(8208);const i=Symbol("implicit");function o(){var t=new Map,e=[],n=[],a=i;function u(r){var o=r+"",u=t.get(o);if(!u){if(a!==i)return a;t.set(o,u=e.push(r))}return n[(u-1)%n.length]}return u.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Map;for(const r of n){const n=r+"";t.has(n)||t.set(n,e.push(r))}return u},u.range=function(t){return arguments.length?(n=Array.from(t),u):n.slice()},u.unknown=function(t){return arguments.length?(a=t,u):a},u.copy=function(){return o(e,n).unknown(a)},r.o.apply(u,arguments),u}},90875:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},82194:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.UD),(t=>t.getDate()-1));e.Z=o;o.range},43521:function(t,e,n){"use strict";n.d(e,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return u},jz:function(){return s},qz:function(){return c},yB:function(){return i}});const r=1e3,i=60*r,o=60*i,a=24*o,u=7*a,s=30*a,c=365*a},61851:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Ym-t.getMinutes()*i.yB)}),(function(t,e){t.setTime(+t+e*i.Y2)}),(function(t,e){return(e-t)/i.Y2}),(function(t){return t.getHours()}));e.Z=o;o.range},47237:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=new Date,i=new Date;function o(t,e,n,a){function u(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return u.floor=function(e){return t(e=new Date(+e)),e},u.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},u.round=function(t){var e=u(t),n=u.ceil(t);return t-e0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(u.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(a?function(e){return a(e)%t===0}:function(e){return u.count(0,e)%t===0}):u:null}),u}},66403:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Ym)}),(function(t,e){t.setTime(+t+e*i.yB)}),(function(t,e){return(e-t)/i.yB}),(function(t){return t.getMinutes()}));e.Z=o;o.range},38249:function(t,e,n){"use strict";var r=(0,n(47237).Z)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));e.Z=r;r.range},29483:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*i.Ym)}),(function(t,e){return(e-t)/i.Ym}),(function(t){return t.getUTCSeconds()}));e.Z=o;o.range},43694:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/i.UD}),(function(t){return t.getUTCDate()-1}));e.Z=o;o.range},13143:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*i.Y2)}),(function(t,e){return(e-t)/i.Y2}),(function(t){return t.getUTCHours()}));e.Z=o;o.range},8717:function(t,e,n){"use strict";var r=n(47237),i=n(43521),o=(0,r.Z)((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*i.yB)}),(function(t,e){return(e-t)/i.yB}),(function(t){return t.getUTCMinutes()}));e.Z=o;o.range},3983:function(t,e,n){"use strict";var r=(0,n(47237).Z)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));e.Z=r;r.range},37884:function(t,e,n){"use strict";n.d(e,{Ox:function(){return a},hB:function(){return l},l6:function(){return u}});var r=n(47237),i=n(43521);function o(t){return(0,r.Z)((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/i.iM}))}var a=o(0),u=o(1),s=o(2),c=o(3),l=o(4),f=o(5),h=o(6);a.range,u.range,s.range,c.range,l.range,f.range,h.range},35101:function(t,e,n){"use strict";var r=n(47237),i=(0,r.Z)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null},e.Z=i;i.range},31124:function(t,e,n){"use strict";n.d(e,{OM:function(){return a},bL:function(){return l},wA:function(){return u}});var r=n(47237),i=n(43521);function o(t){return(0,r.Z)((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.iM}))}var a=o(0),u=o(1),s=o(2),c=o(3),l=o(4),f=o(5),h=o(6);a.range,u.range,s.range,c.range,l.range,f.range,h.range},4760:function(t,e,n){"use strict";var r=n(47237),i=(0,r.Z)((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null},e.Z=i;i.range},38431:function(t,e,n){var r=n(72514),i=n(5485),o=n(243),a=n(78454),u=n(73984);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},6275:function(t,e,n){var r=n(55509);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},34917:function(t,e,n){var r=n(38431),i=n(83472),o=n(66588);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},56890:function(t,e,n){var r=n(63872);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},59413:function(t,e,n){var r=n(63872);t.exports=function(t){return r(this,t).get(t)}},13583:function(t,e,n){var r=n(63872);t.exports=function(t){return r(this,t).has(t)}},59399:function(t,e,n){var r=n(63872);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},69535:function(t,e,n){var r=n(51095)(Object,"create");t.exports=r},38255:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(n){}try{return t+""}catch(n){}}return""}},83645:function(t,e,n){var r=n(51716),i=n(49244),o=n(61666),a=Math.max,u=Math.min;t.exports=function(t,e,n){var s,c,l,f,h,p,d=0,g=!1,v=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=s,r=c;return s=c=void 0,d=e,f=t.apply(r,n)}function b(t){return d=t,h=setTimeout(x,e),g?m(t):f}function w(t){var n=t-p;return void 0===p||n>=e||n<0||v&&t-d>=l}function x(){var t=i();if(w(t))return k(t);h=setTimeout(x,function(t){var n=e-(t-p);return v?u(n,l-(t-d)):n}(t))}function k(t){return h=void 0,y&&s?m(t):(s=c=void 0,f)}function M(){var t=i(),n=w(t);if(s=arguments,c=this,p=t,n){if(void 0===h)return b(p);if(v)return clearTimeout(h),h=setTimeout(x,e),m(p)}return void 0===h&&(h=setTimeout(x,e)),f}return e=o(e)||0,r(n)&&(g=!!n.leading,l=(v="maxWait"in n)?a(o(n.maxWait)||0,e):l,y="trailing"in n?!!n.trailing:y),M.cancel=function(){void 0!==h&&clearTimeout(h),d=0,s=p=c=h=void 0},M.flush=function(){return void 0===h?f:k(i())},M}},96210:function(t,e,n){var r=n(60460);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},49244:function(t,e,n){var r=n(4366);t.exports=function(){return r.Date.now()}},27885:function(t,e,n){var r=n(50725);r.prototype.formulaEval=function(){"use strict";for(var t,e,n,r=[],i=this.value,o=0;o"+e.value+""+i[o].show+""+t.value+"",type:10}):r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+""+t.value+"",type:1})):2===i[o].type||9===i[o].type?(t=r.pop(),e=r.pop(),r.push({value:(1!=e.type?"(":"")+e.value+(1!=e.type?")":"")+i[o].show+(1!=t.type?"(":"")+t.value+(1!=t.type?")":""),type:i[o].type})):12===i[o].type&&(t=r.pop(),e=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+e.value+","+t.value+")",type:12}));return r[0].value},t.exports=r},57642:function(t,e,n){"use strict";var r=n(57252);function i(t,e){for(var n=0;nd.length-2?d.length-1:t.length-s;n>0;n--)if(void 0!==d[n])for(i=0;i0&&nn)u.push(t);else{for(;n>=i&&!l||l&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(t,e,n){return"undefined"===typeof e?this.lex(t).toPostfix().postfixEval():"undefined"===typeof n?"undefined"!==typeof e.length?this.lex(t,e).toPostfix().postfixEval():this.lex(t).toPostfix().postfixEval(e):this.lex(t,e).toPostfix().postfixEval(n)},t.exports=r},59739:function(t,e,n){"use strict";var r=n(56669);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},47329:function(t,e,n){t.exports=n(59739)()},56669:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},52823:function(t,e,n){var r,i=n(17784),o=n(96953),a=n(27885),u=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;t.exports=function(t,e){function n(t,o,s){if(r++>100)throw r=0,new Error("Call stack overflow for "+s);if(""===t)throw new Error(o+"(): '"+s+"' must contain a non-whitespace string");t=function(t,e){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,o="",a=t;for(;r=u.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var s=i("(",")",a.substring([0].index));if(""===s.body)throw new Error("'"+t+"' must contain a non-whitespace string");var c=n(s.body,"",e);o+=s.pre+c,a=s.post}return o+a}(t,s);var c=function(t){var e=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(t);for(;i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(e.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(t));return e}(t);if(c.length>1||t.indexOf("var(")>-1)return o+"("+t+")";var l=c[0]||"";"%"===l&&(t=t.replace(/\b[0-9\.]+%/g,(function(t){return.01*parseFloat(t.slice(0,-1))})));var f,h=t.replace(new RegExp(l,"gi"),"");try{f=a.eval(h)}catch(p){return o+"("+t+")"}return"%"===l&&(f*=100),(o.length||"%"===l)&&(f=Math.round(f*e)/e),f+=l}return r=0,e=Math.pow(10,void 0===e?5:e),t=t.replace(/\n+/g," "),o(t,/((?:\-[a-z]+\-)?calc)\(/,n)}},17784:function(t){function e(t,e,i){t instanceof RegExp&&(t=n(t,i)),e instanceof RegExp&&(e=n(e,i));var o=r(t,e,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+t.length,o[1]),post:i.slice(o[1]+e.length)}}function n(t,e){var n=e.match(t);return n?n[0]:null}function r(t,e,n){var r,i,o,a,u,s=n.indexOf(t),c=n.indexOf(e,s+1),l=s;if(s>=0&&c>0){for(r=[],o=n.length;l>=0&&!u;)l==s?(r.push(l),s=n.indexOf(t,l+1)):1==r.length?u=[r.pop(),c]:((i=r.pop())=0?s:c;r.length&&(u=[o,a])}return u}t.exports=e,e.range=r},96953:function(t,e,n){var r=n(39584);function i(t,e,n){var o=t;return function(t,e){var n=[],i="string"===typeof e?new RegExp("\\b("+e+")\\("):e;do{var o=i.exec(t);if(!o)return n;if(void 0===o[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+e);var a=o[1],u=o.index,s=r("(",")",t.substring(u));if(!s||s.start!==o[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+t+"'");n.push({matches:s,functionIdentifier:a}),t=s.post}while(i.test(t));return n}(t,e).reduce((function(t,r){return t.replace(r.functionIdentifier+"("+r.matches.body+")",function(t,e,n,r,o){return n(i(t,o,n),e,r)}(r.matches.body,r.functionIdentifier,n,o,e))}),t)}t.exports=i}}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js b/mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js new file mode 100644 index 000000000000..9914b4e69d92 --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6567],{43032:function(t,e,n){n.d(e,{Cl:function(){return l},Nk:function(){return c},ZG:function(){return a}});var r=n(9518),i=n(23831),o=n(49125),a=1.5*o.iI,l=1*a+o.iI/2,c=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(t){return"\n background-color: ".concat((t.theme.interactive||i.Z.interactive).hoverBackground,";\n ")}))},68735:function(t,e,n){var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),c=n(9518),s=n(90948),u=n(84969),d=n(65743),f=n(85587),h=n(79487),p=n(52136),m=n(67778),x=n(29989),y=n(17066),v=n(84482),g=n(76771),k=n(98889),j=n(65376),Z=n(61655),O=n(97745),b=n(48072),E=n(10103),L=n(84181),T=n(24903),M=n(67971),w=n(86673),I=n(19711),P=n(52359),_=n(23831),A=n(80906),N=n(73899),D=n(2005),F=n(31012),C=n(49125),S=n(24224),R=n(344),U=n(45739),X=n(28598),B=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function W(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:0;return null===t||void 0===t||null===(e=t.y)||void 0===e?void 0:e[n]},pt=_.Z.monotone.gray,mt=_.Z.brand.wind200,xt=_.Z.content.muted,yt=_.Z.monotone.gray,vt=n.map((function(t){return Number(ft(t))}));if(at<10)return null;var gt=at-J.left-J.right,kt=P-J.top-J.bottom,jt=gt/2,Zt=Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return(null===e||void 0===e?void 0:e.length)||0})))),Ot=(0,a.useMemo)((function(){return(0,L.Z)({domain:[Math.min.apply(Math,(0,i.Z)(vt)),Math.max.apply(Math,(0,i.Z)(vt))],range:[0,gt]})}),[gt,vt]),bt=Math.min.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.min.apply(Math,(0,i.Z)(e||[]))})))),Et=Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.max.apply(Math,(0,i.Z)(e||[]))})))),Lt=(0,a.useMemo)((function(){return(0,L.Z)({domain:[bt,Et],nice:!0,range:[kt,0]})}),[kt,Et,bt]),Tt=at>520?z?20:10:z?10:5,Mt=(0,U.K)(dt),wt=xt,It=Mt.map((function(t){return{stroke:t}})),Pt=(0,T.Z)({domain:G||[],range:It.map((function(t){return t.stroke}))}),_t=(0,a.useCallback)((function(t){var e=((0,b.Z)(t)||{x:0}).x,r=Ot.invert(e-J.left),i=(0,S.ry)(vt,(function(t){return r>=t})),o=n[i-1],a=n[i],l=o;a&&(r-ft(o)>ft(a)-r?l=a:(l=o,i-=1));var c=(0,E.range)(0,Zt).map((function(t){return Lt(ht(l,t))}));ht(l)&&$({tooltipData:V(V({},l),{},{index:i}),tooltipLeft:e,tooltipTop:c})}),[n,ft,ht,J,$,Ot,Lt]),At={};return q||(At.curve=O.ZP),(0,X.jsxs)(X.Fragment,{children:[G&&(0,X.jsx)("div",{style:{marginLeft:null===J||void 0===J?void 0:J.left},children:(0,X.jsx)(y.Z,{labelFormat:function(t){return t},scale:Pt,children:function(t){return(0,X.jsx)("div",{style:{display:"flex",flexDirection:A.qs.ROW},children:t.map((function(t,e){return(0,X.jsxs)(v.Z,{margin:"0 5px",onClick:function(){o&&alert("clicked: ".concat(JSON.stringify(t)))},children:[(0,X.jsx)("svg",{height:15,width:15,children:(0,X.jsx)("rect",{fill:t.value,height:15,width:15})}),(0,X.jsx)(g.Z,{align:"left",margin:"0 0 0 4px",children:(0,X.jsx)(I.ZP,{small:!0,children:t.text})})]},"legend-quantile-".concat(e))}))})}})}),(0,X.jsxs)("svg",{height:P,width:at,children:[!e&&(0,X.jsx)(d.Z,{fill:"transparent",height:P,onMouseLeave:function(){return W()},onMouseMove:_t,onTouchMove:_t,onTouchStart:_t,rx:14,width:at-(J.left+J.right),x:J.left,y:0}),(0,X.jsxs)(x.Z,{left:J.left,top:J.top,children:[!B&&(0,X.jsx)(p.Z,V({height:kt,pointerEvents:"none",scale:Ot,stroke:pt,strokeDasharray:"3,3",strokeOpacity:.4,width:gt},w)),(0,X.jsx)(m.Z,V({height:kt,pointerEvents:"none",scale:Lt,stroke:pt,strokeDasharray:"3,3",strokeOpacity:.4,width:gt},w)),(0,X.jsx)("line",{stroke:pt,x1:gt,x2:gt,y1:0,y2:kt}),(0,X.jsx)(s.Z,{numTicks:Tt,scale:Ot,stroke:wt,tickFormat:function(t){return lt?lt(t):t},tickLabelProps:function(t){return{fill:xt,fontFamily:D.ry,fontSize:F.J5,textAnchor:"middle",transform:st&&"rotate(-45, ".concat(Ot(t),", 0) translate(-32, 4)")}},tickStroke:wt,top:kt}),(0,X.jsx)(u.Z,{hideTicks:!0,numTicks:H,scale:Lt,stroke:wt,tickFormat:function(t){return ut?ut(t):(0,R.P5)(t)},tickLabelProps:function(t){return{dx:String(t).length>4?3:0,fill:xt,fontFamily:D.ry,fontSize:F.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:wt}),e&&e.map((function(t){var e=t[0],r=t[1];return(0,a.createElement)(k.Z,V(V({},At),{},{aboveAreaProps:{fill:_.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:mt,fillOpacity:.2},clipAboveTo:0,clipBelowTo:kt,data:n,id:"".concat(Math.random()),key:"".concat(e,"-").concat(r),x:function(t){return Ot(ft(t))},y0:function(t){return Lt("undefined"===typeof r?bt:ht(t,r))},y1:function(t){return Lt(ht(t,e))}}))})),(0,E.range)(0,Zt).map((function(t){return(0,a.createElement)(f.Z,V(V({},At),{},{data:n.filter((function(t){return void 0!=t.y})),key:t,pointerEvents:"none",strokeWidth:tt?2:1,x:function(t){return Ot(ft(t))},y:function(e){return Lt(e.y&&(t>=e.y.length?bt:ht(e,t)))}},It[t]))}))]}),et&&(0,X.jsxs)("g",{children:[(0,X.jsx)(h.Z,{from:{x:rt,y:J.top},pointerEvents:"none",stroke:N.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:rt,y:kt+J.top}}),ot.map((function(t,e){return(0,X.jsx)("circle",{cx:rt,cy:t+1+J.top,fill:It[e].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:yt,strokeOpacity:.1,strokeWidth:1},e)})),ot.map((function(t,e){return(0,X.jsx)("circle",{cx:rt,cy:t+J.top,fill:It[e].stroke,pointerEvents:"none",r:4,stroke:It[e].stroke,strokeWidth:2},e)}))]})]}),et&&(0,X.jsxs)("div",{children:[ot.map((function(t,e){var n=ht(et,e);return e>=1&&Math.abs(ot[e-1]-t)<5*C.iI&&(t+=3*C.iI),(0,X.jsxs)(j.Z,{left:rt>jt?rt-(0,R.Vs)(Q,et,e)*C.iI:rt+C.iI,style:Y,top:t-2*C.iI,children:[Q&&Q(et,e),!Q&&(0,X.jsxs)(I.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===G||void 0===G?void 0:G[e]]})]},e)})),(0,X.jsxs)(j.Z,{left:rt>jt?rt-4*(0,R.Vs)(K,et):rt,style:V(V({},Y),{},{transform:"translateX(-65%)"}),top:kt+J.top,children:[K&&K(et),!K&&(0,X.jsx)(I.ZP,{center:!0,small:!0,children:ft(et).toFixed(3)})]})]})]})}));e.Z=function(t){var e=t.areaBetweenLines,n=t.data,i=(t.events,t.height),o=t.lineLegendNames,a=t.margin,c=void 0===a?{}:a,s=t.width,u=t.xAxisLabel,d=t.xLabelFormat,f=t.yAxisLabel,h=t.yLabelFormat,p=(0,r.Z)(t,B),m=V(V({},{bottom:3*C.iI,left:5*C.iI,right:3*C.iI,top:3*C.iI}),c);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)("div",{style:{display:"flex",height:i,marginBottom:C.iI,width:"100%"},children:[f&&(0,X.jsx)(M.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,X.jsx)(P.Z,{children:(0,X.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:f})})}),(0,X.jsx)(w.Z,{mr:1}),(0,X.jsx)("div",{style:{height:i,width:"undefined"===typeof s?"100%":s},children:(0,X.jsx)(l.Z,{children:function(t){var r=t.width,i=t.height;return(0,X.jsx)(z,V(V({},p),{},{areaBetweenLines:e,data:n,height:i,lineLegendNames:o,margin:m,width:r,xLabelFormat:d,yLabelFormat:h}))}})})]}),u&&(0,X.jsx)("div",{style:{paddingLeft:f?36:0,paddingTop:4},children:(0,X.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:u})})]})}},80906:function(t,e,n){var r,i,o,a;n.d(e,{Q0:function(){return r},qs:function(){return i}}),function(t){t.ADD="add",t.AVERAGE="average",t.CLEAN_COLUMN_NAME="clean_column_name",t.COUNT="count",t.COUNT_DISTINCT="count_distinct",t.CUSTOM="custom",t.DIFF="diff",t.DROP_DUPLICATE="drop_duplicate",t.EXPAND_COLUMN="expand_column",t.EXPLODE="explode",t.FILTER="filter",t.FIRST="first",t.FIX_SYNTAX_ERRORS="fix_syntax_errors",t.GROUP="group",t.IMPUTE="impute",t.JOIN="join",t.LAST="last",t.LIMIT="limit",t.MAX="max",t.MEDIAN="median",t.MIN="min",t.MODE="mode",t.NORMALIZE="normalize",t.REFORMAT="reformat",t.REMOVE="remove",t.REMOVE_OUTLIERS="remove_outliers",t.SCALE="scale",t.SELECT="select",t.SHIFT_DOWN="shift_down",t.SHIFT_UP="shift_up",t.SORT="sort",t.STANDARDIZE="standardize",t.SUM="sum",t.UNION="union",t.UPDATE_TYPE="update_type",t.UPDATE_VALUE="update_value"}(r||(r={})),function(t){t.COLUMN="column",t.ROW="row"}(i||(i={})),function(t){t.NOT_APPLIED="not_applied",t.COMPLETED="completed"}(o||(o={})),function(t){t.FEATURE="feature"}(a||(a={}))}}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/6641-a0ed2bd8f5dc777b.js b/mage_ai/server/frontend_dist/_next/static/chunks/6641-a0ed2bd8f5dc777b.js deleted file mode 100644 index ee07541e76c7..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/6641-a0ed2bd8f5dc777b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6641],{43032:function(e,t,n){n.d(t,{Cl:function(){return c},Nk:function(){return l},ZG:function(){return a}});var r=n(9518),o=n(23831),i=n(49125),a=1.5*i.iI,c=1*a+i.iI/2,l=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},68735:function(e,t,n){var r=n(26304),o=n(21831),i=n(82394),a=n(82684),c=n(26226),l=n(9518),s=n(90948),u=n(84969),d=n(65743),p=n(85587),f=n(79487),h=n(52136),m=n(67778),x=n(29989),g=n(17066),v=n(84482),y=n(76771),b=n(98889),j=n(65376),O=n(61655),k=n(97745),Z=n(48072),w=n(10103),L=n(84181),E=n(24903),P=n(67971),T=n(86673),I=n(19711),M=n(52359),_=n(23831),C=n(80906),D=n(73899),A=n(2005),N=n(31012),S=n(49125),F=n(24224),R=n(344),U=n(45739),B=n(28598),X=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return null===e||void 0===e||null===(t=e.y)||void 0===t?void 0:t[n]},he=_.Z.monotone.gray,me=_.Z.brand.wind200,xe=_.Z.content.muted,ge=_.Z.monotone.gray,ve=n.map((function(e){return Number(pe(e))}));if(ae<10)return null;var ye=ae-G.left-G.right,be=M-G.top-G.bottom,je=ye/2,Oe=Math.max.apply(Math,(0,o.Z)(n.map((function(e){var t=e.y;return(null===t||void 0===t?void 0:t.length)||0})))),ke=(0,a.useMemo)((function(){return(0,L.Z)({domain:[Math.min.apply(Math,(0,o.Z)(ve)),Math.max.apply(Math,(0,o.Z)(ve))],range:[0,ye]})}),[ye,ve]),Ze=Math.min.apply(Math,(0,o.Z)(n.map((function(e){var t=e.y;return Math.min.apply(Math,(0,o.Z)(t||[]))})))),we=Math.max.apply(Math,(0,o.Z)(n.map((function(e){var t=e.y;return Math.max.apply(Math,(0,o.Z)(t||[]))})))),Le=(0,a.useMemo)((function(){return(0,L.Z)({domain:[Ze,we],nice:!0,range:[be,0]})}),[be,we,Ze]),Ee=ae>520?z?20:10:z?10:5,Pe=(0,U.K)(de),Te=xe,Ie=Pe.map((function(e){return{stroke:e}})),Me=(0,E.Z)({domain:Y||[],range:Ie.map((function(e){return e.stroke}))}),_e=(0,a.useCallback)((function(e){var t=((0,Z.Z)(e)||{x:0}).x,r=ke.invert(t-G.left),o=(0,F.ry)(ve,(function(e){return r>=e})),i=n[o-1],a=n[o],c=i;a&&(r-pe(i)>pe(a)-r?c=a:(c=i,o-=1));var l=(0,w.range)(0,Oe).map((function(e){return Le(fe(c,e))}));fe(c)&&$({tooltipData:V(V({},c),{},{index:o}),tooltipLeft:t,tooltipTop:l})}),[n,pe,fe,G,$,ke,Le]),Ce={};return J||(Ce.curve=k.ZP),(0,B.jsxs)(B.Fragment,{children:[Y&&(0,B.jsx)("div",{style:{marginLeft:null===G||void 0===G?void 0:G.left},children:(0,B.jsx)(g.Z,{labelFormat:function(e){return e},scale:Me,children:function(e){return(0,B.jsx)("div",{style:{display:"flex",flexDirection:C.qs.ROW},children:e.map((function(e,t){return(0,B.jsxs)(v.Z,{margin:"0 5px",onClick:function(){i&&alert("clicked: ".concat(JSON.stringify(e)))},children:[(0,B.jsx)("svg",{height:15,width:15,children:(0,B.jsx)("rect",{fill:e.value,height:15,width:15})}),(0,B.jsx)(y.Z,{align:"left",margin:"0 0 0 4px",children:(0,B.jsx)(I.ZP,{small:!0,children:e.text})})]},"legend-quantile-".concat(t))}))})}})}),(0,B.jsxs)("svg",{height:M,width:ae,children:[!t&&(0,B.jsx)(d.Z,{fill:"transparent",height:M,onMouseLeave:function(){return W()},onMouseMove:_e,onTouchMove:_e,onTouchStart:_e,rx:14,width:ae-(G.left+G.right),x:G.left,y:0}),(0,B.jsxs)(x.Z,{left:G.left,top:G.top,children:[!X&&(0,B.jsx)(h.Z,V({height:be,pointerEvents:"none",scale:ke,stroke:he,strokeDasharray:"3,3",strokeOpacity:.4,width:ye},T)),(0,B.jsx)(m.Z,V({height:be,pointerEvents:"none",scale:Le,stroke:he,strokeDasharray:"3,3",strokeOpacity:.4,width:ye},T)),(0,B.jsx)("line",{stroke:he,x1:ye,x2:ye,y1:0,y2:be}),(0,B.jsx)(s.Z,{numTicks:Ee,scale:ke,stroke:Te,tickFormat:function(e){return ce?ce(e):e},tickLabelProps:function(e){return{fill:xe,fontFamily:A.ry,fontSize:N.J5,textAnchor:"middle",transform:se&&"rotate(-45, ".concat(ke(e),", 0) translate(-32, 4)")}},tickStroke:Te,top:be}),(0,B.jsx)(u.Z,{hideTicks:!0,numTicks:H,scale:Le,stroke:Te,tickFormat:function(e){return ue?ue(e):(0,R.P5)(e)},tickLabelProps:function(e){return{dx:String(e).length>4?3:0,fill:xe,fontFamily:A.ry,fontSize:N.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:Te}),t&&t.map((function(e){var t=e[0],r=e[1];return(0,a.createElement)(b.Z,V(V({},Ce),{},{aboveAreaProps:{fill:_.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:me,fillOpacity:.2},clipAboveTo:0,clipBelowTo:be,data:n,id:"".concat(Math.random()),key:"".concat(t,"-").concat(r),x:function(e){return ke(pe(e))},y0:function(e){return Le("undefined"===typeof r?Ze:fe(e,r))},y1:function(e){return Le(fe(e,t))}}))})),(0,w.range)(0,Oe).map((function(e){return(0,a.createElement)(p.Z,V(V({},Ce),{},{data:n.filter((function(e){return void 0!=e.y})),key:e,pointerEvents:"none",strokeWidth:ee?2:1,x:function(e){return ke(pe(e))},y:function(t){return Le(t.y&&(e>=t.y.length?Ze:fe(t,e)))}},Ie[e]))}))]}),te&&(0,B.jsxs)("g",{children:[(0,B.jsx)(f.Z,{from:{x:re,y:G.top},pointerEvents:"none",stroke:D.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:re,y:be+G.top}}),ie.map((function(e,t){return(0,B.jsx)("circle",{cx:re,cy:e+1+G.top,fill:Ie[t].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:ge,strokeOpacity:.1,strokeWidth:1},t)})),ie.map((function(e,t){return(0,B.jsx)("circle",{cx:re,cy:e+G.top,fill:Ie[t].stroke,pointerEvents:"none",r:4,stroke:Ie[t].stroke,strokeWidth:2},t)}))]})]}),te&&(0,B.jsxs)("div",{children:[ie.map((function(e,t){var n=fe(te,t);return t>=1&&Math.abs(ie[t-1]-e)<5*S.iI&&(e+=3*S.iI),(0,B.jsxs)(j.Z,{left:re>je?re-(0,R.Vs)(Q,te,t)*S.iI:re+S.iI,style:q,top:e-2*S.iI,children:[Q&&Q(te,t),!Q&&(0,B.jsxs)(I.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===Y||void 0===Y?void 0:Y[t]]})]},t)})),(0,B.jsxs)(j.Z,{left:re>je?re-4*(0,R.Vs)(K,te):re,style:V(V({},q),{},{transform:"translateX(-65%)"}),top:be+G.top,children:[K&&K(te),!K&&(0,B.jsx)(I.ZP,{center:!0,small:!0,children:pe(te).toFixed(3)})]})]})]})}));t.Z=function(e){var t=e.areaBetweenLines,n=e.data,o=(e.events,e.height),i=e.lineLegendNames,a=e.margin,l=void 0===a?{}:a,s=e.width,u=e.xAxisLabel,d=e.xLabelFormat,p=e.yAxisLabel,f=e.yLabelFormat,h=(0,r.Z)(e,X),m=V(V({},{bottom:3*S.iI,left:5*S.iI,right:3*S.iI,top:3*S.iI}),l);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{style:{display:"flex",height:o,marginBottom:S.iI,width:"100%"},children:[p&&(0,B.jsx)(P.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,B.jsx)(M.Z,{children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:p})})}),(0,B.jsx)(T.Z,{mr:1}),(0,B.jsx)("div",{style:{height:o,width:"undefined"===typeof s?"100%":s},children:(0,B.jsx)(c.Z,{children:function(e){var r=e.width,o=e.height;return(0,B.jsx)(z,V(V({},h),{},{areaBetweenLines:t,data:n,height:o,lineLegendNames:i,margin:m,width:r,xLabelFormat:d,yLabelFormat:f}))}})})]}),u&&(0,B.jsx)("div",{style:{paddingLeft:p?36:0,paddingTop:4},children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:u})})]})}},80906:function(e,t,n){var r,o,i,a;n.d(t,{Q0:function(){return r},qs:function(){return o}}),function(e){e.ADD="add",e.AVERAGE="average",e.CLEAN_COLUMN_NAME="clean_column_name",e.COUNT="count",e.COUNT_DISTINCT="count_distinct",e.CUSTOM="custom",e.DIFF="diff",e.DROP_DUPLICATE="drop_duplicate",e.EXPAND_COLUMN="expand_column",e.EXPLODE="explode",e.FILTER="filter",e.FIRST="first",e.FIX_SYNTAX_ERRORS="fix_syntax_errors",e.GROUP="group",e.IMPUTE="impute",e.JOIN="join",e.LAST="last",e.LIMIT="limit",e.MAX="max",e.MEDIAN="median",e.MIN="min",e.MODE="mode",e.NORMALIZE="normalize",e.REFORMAT="reformat",e.REMOVE="remove",e.REMOVE_OUTLIERS="remove_outliers",e.SCALE="scale",e.SELECT="select",e.SHIFT_DOWN="shift_down",e.SHIFT_UP="shift_up",e.SORT="sort",e.STANDARDIZE="standardize",e.SUM="sum",e.UNION="union",e.UPDATE_TYPE="update_type",e.UPDATE_VALUE="update_value"}(r||(r={})),function(e){e.COLUMN="column",e.ROW="row"}(o||(o={})),function(e){e.NOT_APPLIED="not_applied",e.COMPLETED="completed"}(i||(i={})),function(e){e.FEATURE="feature"}(a||(a={}))},55378:function(e,t,n){var r=n(82394),o=n(26304),i=n(82684),a=n(9518),c=n(69898),l=n(31969),s=n(49125),u=n(28598),d=["beforeIcon","children","label","multiple","placeholder"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t\n \n ",s.iI,s.iI,2.5*s.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||l.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||l.Z.content).inverted,";\n ")})),m=function(e,t){var n=e.beforeIcon,r=e.children,i=e.label,a=e.multiple,l=e.placeholder,s=(0,o.Z)(e,d);return(0,u.jsx)(c.Z,f(f({},s),{},{beforeIcon:n,input:(0,u.jsxs)(h,f(f({multiple:a},s),{},{children:[(i||l)&&(0,u.jsx)("option",{disabled:!0,selected:!0,value:"",children:i||l}),r]})),label:i,placeholder:l,ref:t,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};t.Z=i.forwardRef(m)}}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/7400-a48b270726b9eef5.js b/mage_ai/server/frontend_dist/_next/static/chunks/7400-26ce25ec46728ef7.js similarity index 99% rename from mage_ai/server/frontend_dist/_next/static/chunks/7400-a48b270726b9eef5.js rename to mage_ai/server/frontend_dist/_next/static/chunks/7400-26ce25ec46728ef7.js index 2d0045876d4a..7dd52ff4ec76 100644 --- a/mage_ai/server/frontend_dist/_next/static/chunks/7400-a48b270726b9eef5.js +++ b/mage_ai/server/frontend_dist/_next/static/chunks/7400-26ce25ec46728ef7.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7400],{98677:function(n,e,t){function r(n,e,t){n=+n,e=+e,t=(i=arguments.length)<2?(e=n,n=0,1):i<3?1:+t;for(var r=-1,i=0|Math.max(0,Math.ceil((e-n)/t)),o=new Array(i);++r0)for(var t,r,i,o,u,c,a=0,l=n[e[0]].length;a0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}t.d(e,{Z:function(){return r}})},12759:function(n,e,t){t.d(e,{Z:function(){return i}});var r=t(82610);function i(n,e){if((i=n.length)>0){for(var t,i,o,u=0,c=n[0].length;u1)for(var t,r,i,o=1,u=n[e[0]],c=u.length;o0){for(var t,i=0,o=n[e[0]],u=o.length;i0&&(i=(t=n[e[0]]).length)>0){for(var t,i,o,u=0,c=1;co&&(o=e,r=t);return r}},39586:function(n,e,t){t.d(e,{S:function(){return o},Z:function(){return i}});var r=t(8512);function i(n){var e=n.map(o);return(0,r.Z)(n).sort((function(n,t){return e[n]-e[t]}))}function o(n){for(var e,t=0,r=-1,i=n.length;++r=0;)t[e]=e;return t}t.d(e,{Z:function(){return r}})},2010:function(n,e,t){t.d(e,{Z:function(){return i}});var r=t(8512);function i(n){return(0,r.Z)(n).reverse()}},75823:function(n,e,t){t.d(e,{Z:function(){return a}});var r=t(13946),i=t(90875),o=t(82610),u=t(8512);function c(n,e){return n[e]}function a(){var n=(0,i.Z)([]),e=u.Z,t=o.Z,a=c;function l(r){var i,o,u=n.apply(this,arguments),c=r.length,l=u.length,d=new Array(l);for(i=0;i=0||(i[t]=n[t]);return i}(n,x),I=(0,f.Z)();w&&I.keys(w),P&&(0,v.Z)(I.value,P),E&&I.order((0,m.ZP)(E)),M&&I.offset((0,g.ZP)(M));var S=I(e),N=(0,h.Z)(j),A=S.map((function(n,e){var t=n.key;return{index:e,key:t,bars:n.map((function(e,r){var i=(k(a(e))||0)-(k(b(e))||0),u=k(b(e)),c="bandwidth"in j?j(o(e.data)):Math.max((j(o(e.data))||0)-N/2);return{bar:e,key:t,index:r,height:i,width:N,x:c||0,y:u||0,color:O(n.key,r)}}))}}));return T?u.createElement(u.Fragment,null,T(A)):u.createElement(s.Z,{className:d()("visx-bar-stack",t),top:r,left:i},A.map((function(n){return n.bars.map((function(e){return u.createElement(Z.Z,y({key:"bar-stack-"+n.index+"-"+e.index,x:e.x,y:e.y,height:e.height,width:e.width,fill:e.color},_))}))})))}var j=t(67778),k=t(17066),O=t(29179),w=t(65376),P=t(48072),E=t(98677),M=t(84181),T=t(24903),_=t(67971),I=t(26226),S=t(19711),N=t(52359),A=t(23831),L=t(73942),C=t(2005),D=t(49125),R=t(344),F=t(28598),U=["height","width","xAxisLabel","yAxisLabel"];function B(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function V(n){for(var e=1;e=1e4?r.format(n):n.toString()}function o(n,e,t){var r,i;if("undefined"===typeof n||"undefined"===typeof e)return 0;var o=null===n||void 0===n||null===(r=n(e,t))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},93348:function(n,e,t){t.d(e,{TR:function(){return f},U5:function(){return a},Xm:function(){return o},Z4:function(){return d},fq:function(){return c},kJ:function(){return l}});var r,i,o,u=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var c,a,l,d=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(c||(c={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(a||(a={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(l||(l={}));var f=(i={},(0,u.Z)(i,l.CREATED_AT,"Created at"),(0,u.Z)(i,l.NAME,"Name"),(0,u.Z)(i,l.PIPELINE,"Pipeline"),(0,u.Z)(i,l.STATUS,"Status"),(0,u.Z)(i,l.TYPE,"Type"),i)},67400:function(n,e,t){t.r(e),t.d(e,{BAR_STACK_COLORS:function(){return N},BAR_STACK_STATUSES:function(){return A}});var r=t(77837),i=t(75582),o=t(82394),u=t(38860),c=t.n(u),a=t(82684),l=t(12691),d=t.n(l),f=t(92083),s=t.n(f),p=t(9518),h=t(21679),v=t(67971),m=t(87372),g=t(10919),Z=t(87465),x=t(41788),y=t(86673),b=t(19711),j=t(82531),k=t(23831),O=t(10503),w=t(92953),P=t(93348),E=t(49125),M=t(90211),T=t(28598);function _(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function I(n){for(var e=1;e0)for(var t,r,i,o,u,c,a=0,l=n[e[0]].length;a0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}t.d(e,{Z:function(){return r}})},12759:function(n,e,t){t.d(e,{Z:function(){return i}});var r=t(82610);function i(n,e){if((i=n.length)>0){for(var t,i,o,u=0,c=n[0].length;u1)for(var t,r,i,o=1,u=n[e[0]],c=u.length;o0){for(var t,i=0,o=n[e[0]],u=o.length;i0&&(i=(t=n[e[0]]).length)>0){for(var t,i,o,u=0,c=1;co&&(o=e,r=t);return r}},39586:function(n,e,t){t.d(e,{S:function(){return o},Z:function(){return i}});var r=t(8512);function i(n){var e=n.map(o);return(0,r.Z)(n).sort((function(n,t){return e[n]-e[t]}))}function o(n){for(var e,t=0,r=-1,i=n.length;++r=0;)t[e]=e;return t}t.d(e,{Z:function(){return r}})},2010:function(n,e,t){t.d(e,{Z:function(){return i}});var r=t(8512);function i(n){return(0,r.Z)(n).reverse()}},75823:function(n,e,t){t.d(e,{Z:function(){return a}});var r=t(13946),i=t(90875),o=t(82610),u=t(8512);function c(n,e){return n[e]}function a(){var n=(0,i.Z)([]),e=u.Z,t=o.Z,a=c;function l(r){var i,o,u=n.apply(this,arguments),c=r.length,l=u.length,d=new Array(l);for(i=0;i=0||(i[t]=n[t]);return i}(n,x),I=(0,f.Z)();w&&I.keys(w),P&&(0,v.Z)(I.value,P),E&&I.order((0,m.ZP)(E)),M&&I.offset((0,g.ZP)(M));var S=I(e),N=(0,h.Z)(j),A=S.map((function(n,e){var t=n.key;return{index:e,key:t,bars:n.map((function(e,r){var i=(k(a(e))||0)-(k(b(e))||0),u=k(b(e)),c="bandwidth"in j?j(o(e.data)):Math.max((j(o(e.data))||0)-N/2);return{bar:e,key:t,index:r,height:i,width:N,x:c||0,y:u||0,color:O(n.key,r)}}))}}));return T?u.createElement(u.Fragment,null,T(A)):u.createElement(s.Z,{className:d()("visx-bar-stack",t),top:r,left:i},A.map((function(n){return n.bars.map((function(e){return u.createElement(Z.Z,y({key:"bar-stack-"+n.index+"-"+e.index,x:e.x,y:e.y,height:e.height,width:e.width,fill:e.color},_))}))})))}var j=t(67778),k=t(17066),O=t(29179),w=t(65376),P=t(48072),E=t(98677),M=t(84181),T=t(24903),_=t(67971),I=t(26226),S=t(19711),N=t(52359),A=t(23831),L=t(73942),C=t(2005),D=t(49125),R=t(344),F=t(28598),U=["height","width","xAxisLabel","yAxisLabel"];function B(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function V(n){for(var e=1;e=1e4?r.format(n):n.toString()}function o(n,e,t){var r,i;if("undefined"===typeof n||"undefined"===typeof e)return 0;var o=null===n||void 0===n||null===(r=n(e,t))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},93348:function(n,e,t){t.d(e,{TR:function(){return f},U5:function(){return a},Xm:function(){return o},Z4:function(){return d},fq:function(){return c},kJ:function(){return l}});var r,i,o,u=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var c,a,l,d=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(c||(c={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(a||(a={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(l||(l={}));var f=(i={},(0,u.Z)(i,l.CREATED_AT,"Created at"),(0,u.Z)(i,l.NAME,"Name"),(0,u.Z)(i,l.PIPELINE,"Pipeline"),(0,u.Z)(i,l.STATUS,"Status"),(0,u.Z)(i,l.TYPE,"Type"),i)},67400:function(n,e,t){t.r(e),t.d(e,{BAR_STACK_COLORS:function(){return N},BAR_STACK_STATUSES:function(){return A}});var r=t(77837),i=t(75582),o=t(82394),u=t(38860),c=t.n(u),a=t(82684),l=t(12691),d=t.n(l),f=t(92083),s=t.n(f),p=t(9518),h=t(21679),v=t(67971),m=t(87372),g=t(10919),Z=t(87465),x=t(41788),y=t(86673),b=t(19711),j=t(82531),k=t(23831),O=t(10503),w=t(92953),P=t(93348),E=t(49125),M=t(90211),T=t(28598);function _(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function I(n){for(var e=1;e=1?y.cd:0,children:(0,a.jsxs)(x.Z,{appearBefore:"right"===n,height:5*y.iI,label:s(),size:null,widthFitContent:!0,children:[p&&i&&(0,a.jsx)(l.Z,{backgroundGradient:b.yr,backgroundPanel:!0,basic:!0,borderWidth:2,linkProps:u,onClick:f,paddingUnits:1,children:(0,a.jsx)("div",{style:{height:C,width:C},children:(0,a.jsx)(v,{muted:!0,size:C})})}),(!p||p&&!i)&&(0,a.jsx)(c.ZP,{block:!0,linkProps:u,noHoverUnderline:!0,noPadding:!0,onClick:f,primary:p,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(o),children:(0,a.jsx)(m.E7,{primary:!v,children:v?(0,a.jsx)(v,{muted:!p,size:C}):(0,a.jsx)(g.ZP,{children:"Edit"})})})]})},"button-".concat(o))}))}),[n,t,j]);return(0,a.jsx)(d.Z,{children:w})}},72454:function(e,n,t){t.d(n,{E7:function(){return h},HS:function(){return p},Nk:function(){return u},k1:function(){return s},lm:function(){return f}});var r=t(9518),i=t(23831),o=t(73942),d=t(3055),l=t(49125),c=t(37391),a=t(90880),s=l.cd*l.iI+5*l.iI+l.cd*l.iI+1,u=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-ecogjt-0"})(["display:flex;flex-direction:row;height:calc(100vh - ","px);position:fixed;top:","px;width:100%;",""],d.Mz,d.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyle",componentId:"sc-ecogjt-1"})(["padding:","px;"," "," ",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}),(function(e){return!e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["width:100%;padding:","px;position:sticky;top:0;z-index:2;",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).medium,";\n ")})),h=(r.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(d.Mz+(e.heightOffset||0),"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["display:flex;align-items:center;justify-content:center;padding:","px;border-radius:","px;",""],l.iI,o.n_,(function(e){return e.primary&&"\n ".concat((0,a.eR)(),"\n background: ").concat((e.theme||i.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||i.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||i.Z).interactive.linkSecondary,";\n }\n ")})))},28358:function(e,n,t){t.d(n,{Z:function(){return v}});var r=t(82684),i=t(60328),o=t(10919),d=t(86673),l=t(19711),c=t(10503),a=t(9518),s=t(23831),u=t(73942),f=t(49125),p=t(37391),h=a.default.div.withConfig({displayName:"indexstyle__ErrorPopupStyle",componentId:"sc-aqfw6f-0"})(["top:50%;left:50%;transform:translate(-50%,-50%);max-height:95vh;max-width:95vw;overflow:auto;padding:","px;position:fixed;z-index:9999;border-radius:","px;"," ",""],f.iI*f.cd,u.n_,(function(e){return"\n background-color: ".concat((e.theme||s.Z).background.page,";\n border: 1px solid ").concat((e.theme||s.Z).accent.negative,";\n box-shadow: ").concat((e.theme||s.Z).shadow.window,";\n ")}),p.w5),g=a.default.div.withConfig({displayName:"indexstyle__CloseButtonContainerStyle",componentId:"sc-aqfw6f-1"})(["display:flex;justify-content:flex-end;position:sticky;top:0;"]),x=t(28598);var v=function(e){var n,t,a=e.displayMessage,s=e.errors,u=e.links,f=e.onClose,p=e.response,v=(0,r.useState)(!1),m=v[0],b=v[1],y=(0,r.useState)(!1),C=y[0],j=y[1],w=(s||{}).messages,Z=(null===p||void 0===p?void 0:p.error)||{},k=Z.errors,_=Z.exception,I=Z.message,H=a,O=w;return I&&(O=I.split("\n")),_||H||null===(n=O)||void 0===n||!n[0]||(H=O[0],O=null),(0,x.jsxs)(h,{children:[(0,x.jsx)(g,{children:(0,x.jsx)(i.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:f,title:"Close errors",children:(0,x.jsx)(c.x8,{})})}),(0,x.jsx)(l.ZP,{bold:!0,large:!0,children:"Error"}),H&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,children:H})}),_&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,disableWordBreak:!0,monospace:!0,children:_})}),(null===(t=O)||void 0===t?void 0:t.length)>0&&(0,x.jsxs)(d.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Traceback (",(0,x.jsxs)(o.Z,{onClick:function(){return j((function(e){return!e}))},preventDefault:!0,warning:!0,children:[C?"hide":"show"," traceback"]}),")"]}),C&&(0,x.jsx)(d.Z,{mt:1,children:O.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" "," ")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),k&&(0,x.jsxs)(d.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Stack trace (",(0,x.jsxs)(o.Z,{onClick:function(){return b((function(e){return!e}))},preventDefault:!0,warning:!0,children:[m?"hide":"show"," stack trace"]}),")"]}),m&&(0,x.jsx)(d.Z,{mt:1,children:k.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" "," ")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),null===u||void 0===u?void 0:u.map((function(e,n){var t=e.label,r=e.onClick;return(0,x.jsx)(d.Z,{mt:2,children:(0,x.jsx)(o.Z,{large:!0,onClick:r,underline:!0,warning:!0,children:t})},t)}))]})}},82386:function(e,n,t){t.d(n,{E$:function(){return I},MK:function(){return m},MP:function(){return Z},Md:function(){return s},OM:function(){return x},Ru:function(){return k},VW:function(){return p},W7:function(){return j},Wi:function(){return g},YJ:function(){return w},Zj:function(){return S},Zt:function(){return a},aH:function(){return P},dN:function(){return u},ff:function(){return _},l8:function(){return h},rS:function(){return O},uX:function(){return v},v7:function(){return H},ve:function(){return f}});var r=t(9518),i=t(23831),o=t(73942),d=t(3055),l=t(49125),c=t(37391),a=64*l.iI,s=3*l.cd*l.iI,u=s,f=35*l.iI,p=.5*l.iI,h=13*l.iI,g=3*l.cd*l.iI,x=6*l.iI,v=2*l.cd*3*l.iI,m=(r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1lxpneo-0"})(["position:fixed;z-index:2;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.monotone||i.Z.monotone).grey200,";\n ")}),(function(e){return!e.beforeVisible&&"\n width: 100%;\n "}),(function(e){return e.beforeVisible&&"\n left: ".concat(f,"px;\n width: calc(100% - ").concat(f,"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-1"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],d.Mz)),b=(r.default.div.withConfig({displayName:"indexstyle__TabStyle",componentId:"sc-1lxpneo-2"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;position:relative;top:1px;"," "," ",""],o.n_,o.n_,1*l.iI,2*l.iI,(function(e){return"\n border-left: 1px solid ".concat((e.theme.monotone||i.Z.monotone).grey200,";\n border-right: 1px solid ").concat((e.theme.monotone||i.Z.monotone).grey200,";\n border-top: 1px solid ").concat((e.theme.monotone||i.Z.monotone).grey200,";\n ")}),(function(e){return!e.first&&"\n margin-left: ".concat(1*l.iI,"px;\n ")}),(function(e){return e.selected&&"\n border-bottom: 1px solid ".concat((e.theme.monotone||i.Z.monotone).white,";\n ")})),(0,r.css)(["position:fixed;z-index:2;",""],(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n height: calc(100% - ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px);\n top: ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px;\n ")}))),y=(0,r.css)([""," height:100%;overflow:auto;position:relative;z-index:2;"],c.w5),C=(0,r.css)(["height:calc(100% + ","px);position:absolute;top:-","px;width:","px;z-index:6;&:hover{","}"," ",""],g,g,p,(function(e){return!e.disabled&&"\n border-color: ".concat((e.theme.text||i.Z.text).fileBrowser," !important;\n ")}),(function(e){return!e.disabled&&"\n cursor: col-resize;\n "}),(function(e){return e.active&&!e.disabled&&"\n border-color: ".concat((e.theme.text||i.Z.text).fileBrowser," !important;\n ")})),j=r.default.div.withConfig({displayName:"indexstyle__AsideHeaderStyle",componentId:"sc-1lxpneo-3"})(["border-bottom:1px solid transparent;height:","px;position:fixed;top:","px;z-index:4;"," "," ",""],g,g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return!e.visible&&"\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-color: ".concat((e.theme.borders||i.Z.borders).medium," !important;\n ")})),w=r.default.div.withConfig({displayName:"indexstyle__AsideSubheaderStyle",componentId:"sc-1lxpneo-4"})(["border-bottom:1px solid transparent;height:","px;overflow-x:auto;"," "," ",""],g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).table,";\n ")}),(function(e){return!e.visible&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).medium," !important;\n ")})),Z=r.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-5"})([""," left:0;"],b),k=r.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-6"})([""," overflow:hidden;&:hover{overflow:auto;}"],y),_=r.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-7"})([""," right:0;"],b),I=r.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-8"})(["",""],y),H=r.default.div.withConfig({displayName:"indexstyle__DraggableStyle",componentId:"sc-1lxpneo-9"})([""," "," ",""],C,(function(e){return"undefined"!==typeof e.left&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n left: ").concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n border-right: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n right: ").concat(e.right,"px;\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__MainWrapper",componentId:"sc-1lxpneo-10"})(["height:100%;position:fixed;z-index:1;",""],(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")})),P=r.default.div.withConfig({displayName:"indexstyle__MainContentStyle",componentId:"sc-1lxpneo-11"})(["position:fixed;z-index:2;",""],(function(e){return"\n height: calc(100% - ".concat(e.headerOffset||0,"px);\n top: ").concat(e.headerOffset||0,"px;\n ")})),S=r.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-12"})([""," height:100%;overflow:auto;"],c.w5)},32063:function(e,n,t){var r=t(82684),i=t(1887),o=t.n(i),d=t(60328),l=t(57639),c=t(93461),a=t(67971),s=t(86673),u=t(46261),f=t(82386),p=t(10503),h=t(91427),g=t(49125),x=t(24141),v=t(28598);n.Z=function(e){var n=e.after,t=e.afterHeader,i=e.afterHeightOffset,m=e.afterHidden,b=e.afterMousedownActive,y=e.afterSubheader,C=e.afterWidth,j=void 0===C?0:C,w=e.before,Z=e.beforeHeader,k=e.beforeHeightOffset,_=e.beforeHidden,I=e.beforeMousedownActive,H=e.beforeWidth,O=void 0===H?0:H,P=e.children,S=e.header,V=e.headerOffset,E=void 0===V?0:V,M=e.hideAfterCompletely,B=e.leftOffset,L=void 0===B?0:B,z=e.mainContainerHeader,N=e.mainContainerRef,R=e.setAfterHidden,A=e.setAfterMousedownActive,D=e.setAfterWidth,W=e.setBeforeHidden,F=e.setBeforeMousedownActive,U=e.setBeforeWidth,T=(e.uuid,(0,x.i)().width),G=(0,r.useRef)(null),X=(0,r.useRef)(null),$=(0,r.useRef)(null),q=(0,r.useRef)(null),Y=(0,r.useCallback)((function(){var e=!m;null===R||void 0===R||R(e),(0,h.t8)(h.zg,e)}),[m,R]),J=(0,r.useCallback)((function(){var e=!_;W(e),(0,h.t8)(h.Uu,e)}),[_,W]);(0,r.useEffect)((function(){var e,n,t,r,i=function(e){var n,t;((null===$||void 0===$||null===(n=$.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(T){var r=e.x;r+f.l8>T-j&&(r=T-j-f.l8),r-=2*L,U(Math.max(r,f.dN))}},o=function(e){var n,t;e.offsetX>=e.target.offsetWidth-f.VW&&e.offsetX<=e.target.offsetWidth+f.VW&&(null===F||void 0===F||F(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",i,!1))},d=function(){var e,n;null===F||void 0===F||F(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",i,!1)};return null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",d,!1),function(){var e,n,t,r;null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",d,!1),d()}}),[j,_,L,$,q,F,U,T]),(0,r.useEffect)((function(){var e,n,t,r,i=function(e){var n,t;((null===G||void 0===G||null===(n=G.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(T){var r=T-e.x;r+f.l8>T-O&&(r=T-O-f.l8),D(Math.max(r,f.Md))}},o=function(e){var n,t;e.offsetX>=-1*f.VW&&e.offsetX<=f.VW&&(null===A||void 0===A||A(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",i,!1))},d=function(){var e,n;null===A||void 0===A||A(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",i,!1)};return null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",d,!1),function(){var e,n,t,r;null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",d,!1),d()}}),[m,O,G,X,A,D,T]);var K=M&&m,Q=K?0:m?4*g.iI:j,ee=_?4*g.iI:O,ne="calc(100% - ".concat(ee+Q+L,"px)");return(0,v.jsxs)(l.Z,{children:[(b&&!m||I&&!_)&&(0,v.jsx)(o(),{children:(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),S&&(0,v.jsx)(f.MK,{children:S}),w&&(0,v.jsxs)(f.MP,{heightOffset:k,style:{left:L,width:ee},children:[(0,v.jsx)(f.v7,{active:I,disabled:_,ref:q,right:0}),W&&(0,v.jsx)(f.W7,{style:{width:ee},visible:_,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(s.Z,{pl:_?1:0}),!_&&Z]}),(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(u.Z,{block:!0,label:_?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,v.jsxs)(d.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return J()},children:[_&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI}),!_&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI})]})},_?"before-is-hidden":"before-is-visible"),(0,v.jsx)(s.Z,{pr:_?1:2})]})]})}),(0,v.jsx)(f.Ru,{noScrollbarTrackBackground:!0,ref:$,children:!_&&w})]}),(0,v.jsxs)(f.rS,{style:{left:ee+L,width:ne},children:[z,(0,v.jsx)(f.aH,{headerOffset:(z?f.uX:f.Wi)+E,style:{width:ne},children:(0,v.jsx)(f.Zj,{noScrollbarTrackBackground:!0,ref:N,children:P})})]}),n&&!K&&(0,v.jsxs)(f.ff,{heightOffset:i,style:{width:Q},children:[(0,v.jsx)(f.v7,{active:b,disabled:m,left:0,ref:X}),R&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.W7,{style:{width:Q},visible:m,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(s.Z,{pl:m?1:2}),(0,v.jsxs)(d.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return Y()},children:[m&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI}),!m&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI})]})]}),!m&&t]})}),!m&&y&&(0,v.jsx)(f.YJ,{style:{width:Q},visible:m,children:y})]}),(0,v.jsx)(f.E$,{noScrollbarTrackBackground:!0,ref:G,children:!m&&n})]})]})}},41788:function(e,n,t){t.d(n,{Z:function(){return I}});var r=t(77837),i=t(26304),o=t(62243),d=t(29385),l=t(80022),c=t(99177),a=t(93189),s=t(15544),u=t(82394),f=t(38860),p=t.n(f),h=t(82684),g=t(56663),x=t.n(g),v=t(35490),m=t(55361),b=t(30332),y=t(9736),C=t(59e3),j=t(28598),w=["auth"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function k(e){for(var n=1;n=1?y.cd:0,children:(0,a.jsxs)(x.Z,{appearBefore:"right"===n,height:5*y.iI,label:s(),size:null,widthFitContent:!0,children:[p&&o&&(0,a.jsx)(l.Z,{backgroundGradient:m.yr,backgroundPanel:!0,basic:!0,borderWidth:2,linkProps:u,onClick:f,paddingUnits:1,children:(0,a.jsx)("div",{style:{height:w,width:w},children:(0,a.jsx)(v,{muted:!0,size:w})})}),(!p||p&&!o)&&(0,a.jsx)(d.ZP,{block:!0,linkProps:u,noHoverUnderline:!0,noPadding:!0,onClick:f,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(i),children:(0,a.jsx)(b.E7,{primary:!v,children:v?(0,a.jsx)(v,{muted:!p,size:w}):(0,a.jsx)(g.ZP,{children:"Edit"})})})]})},"button-".concat(i))}))}),[n,t,C]);return(0,a.jsx)(c.Z,{children:j})}},72454:function(e,n,t){t.d(n,{E7:function(){return h},HS:function(){return p},Nk:function(){return u},k1:function(){return s},lm:function(){return f}});var r=t(9518),o=t(23831),i=t(73942),c=t(3055),l=t(49125),d=t(37391),a=t(90880),s=l.cd*l.iI+5*l.iI+l.cd*l.iI+1,u=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-ecogjt-0"})(["display:flex;flex-direction:row;height:calc(100vh - ","px);position:fixed;top:","px;width:100%;",""],c.Mz,c.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).page,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyle",componentId:"sc-ecogjt-1"})(["padding:","px;"," "," ",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n ")}),(function(e){return e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}),(function(e){return!e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["width:fit-content;padding:","px;position:relative;z-index:2;",""],l.cd*l.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")})),h=(r.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],d.w5,(function(e){return"\n height: calc(100vh - ".concat(c.Mz+(e.heightOffset||0),"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["display:flex;align-items:center;justify-content:center;padding:","px;border-radius:","px;",""],l.iI,i.n_,(function(e){return e.primary&&"\n ".concat((0,a.eR)(),"\n background: ").concat((e.theme||o.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||o.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||o.Z).interactive.linkSecondary,";\n }\n ")})))},49894:function(e,n,t){t.d(n,{Z:function(){return v}});var r=t(82684),o=t(60328),i=t(10919),c=t(86673),l=t(19711),d=t(10503),a=t(9518),s=t(23831),u=t(73942),f=t(49125),p=t(37391),h=a.default.div.withConfig({displayName:"indexstyle__ErrorPopupStyle",componentId:"sc-aqfw6f-0"})(["top:50%;left:50%;transform:translate(-50%,-50%);max-height:95vh;max-width:95vw;overflow:auto;padding:","px;position:fixed;z-index:9999;border-radius:","px;"," ",""],f.iI*f.cd,u.n_,(function(e){return"\n background-color: ".concat((e.theme||s.Z).background.page,";\n border: 1px solid ").concat((e.theme||s.Z).accent.negative,";\n box-shadow: ").concat((e.theme||s.Z).shadow.window,";\n ")}),p.w5),g=a.default.div.withConfig({displayName:"indexstyle__CloseButtonContainerStyle",componentId:"sc-aqfw6f-1"})(["display:flex;justify-content:flex-end;position:sticky;top:0;"]),x=t(28598);var v=function(e){var n,t,a=e.displayMessage,s=e.errors,u=e.links,f=e.onClose,p=e.response,v=(0,r.useState)(!1),b=v[0],m=v[1],y=(0,r.useState)(!1),w=y[0],C=y[1],j=(s||{}).messages,k=(null===p||void 0===p?void 0:p.error)||{},Z=k.errors,_=k.exception,I=k.message,H=a,O=j;return I&&(O=I.split("\n")),_||H||null===(n=O)||void 0===n||!n[0]||(H=O[0],O=null),(0,x.jsxs)(h,{children:[(0,x.jsx)(g,{children:(0,x.jsx)(o.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:f,title:"Close errors",children:(0,x.jsx)(d.x8,{})})}),(0,x.jsx)(l.ZP,{bold:!0,large:!0,children:"Error"}),H&&(0,x.jsx)(c.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,children:H})}),_&&(0,x.jsx)(c.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,disableWordBreak:!0,monospace:!0,children:_})}),(null===(t=O)||void 0===t?void 0:t.length)>0&&(0,x.jsxs)(c.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Traceback (",(0,x.jsxs)(i.Z,{onClick:function(){return C((function(e){return!e}))},preventDefault:!0,warning:!0,children:[w?"hide":"show"," traceback"]}),")"]}),w&&(0,x.jsx)(c.Z,{mt:1,children:O.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" "," ")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),Z&&(0,x.jsxs)(c.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Stack trace (",(0,x.jsxs)(i.Z,{onClick:function(){return m((function(e){return!e}))},preventDefault:!0,warning:!0,children:[b?"hide":"show"," stack trace"]}),")"]}),b&&(0,x.jsx)(c.Z,{mt:1,children:Z.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" "," ")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),null===u||void 0===u?void 0:u.map((function(e,n){var t=e.label,r=e.onClick;return(0,x.jsx)(c.Z,{mt:2,children:(0,x.jsx)(i.Z,{large:!0,onClick:r,underline:!0,warning:!0,children:t})},t)}))]})}},82386:function(e,n,t){t.d(n,{E$:function(){return I},MK:function(){return b},MP:function(){return k},Md:function(){return s},OM:function(){return x},Ru:function(){return Z},VW:function(){return p},W7:function(){return C},Wi:function(){return g},YJ:function(){return j},Zj:function(){return S},Zt:function(){return a},aH:function(){return P},dN:function(){return u},ff:function(){return _},l8:function(){return h},rS:function(){return O},uX:function(){return v},v7:function(){return H},ve:function(){return f}});var r=t(9518),o=t(23831),i=t(73942),c=t(3055),l=t(49125),d=t(37391),a=64*l.iI,s=3*l.cd*l.iI,u=s,f=35*l.iI,p=.5*l.iI,h=13*l.iI,g=3*l.cd*l.iI,x=6*l.iI,v=2*l.cd*3*l.iI,b=(r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1lxpneo-0"})(["position:fixed;z-index:2;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.monotone||o.Z.monotone).grey200,";\n ")}),(function(e){return!e.beforeVisible&&"\n width: 100%;\n "}),(function(e){return e.beforeVisible&&"\n left: ".concat(f,"px;\n width: calc(100% - ").concat(f,"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-1"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],c.Mz)),m=(r.default.div.withConfig({displayName:"indexstyle__TabStyle",componentId:"sc-1lxpneo-2"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;position:relative;top:1px;"," "," ",""],i.n_,i.n_,1*l.iI,2*l.iI,(function(e){return"\n border-left: 1px solid ".concat((e.theme.monotone||o.Z.monotone).grey200,";\n border-right: 1px solid ").concat((e.theme.monotone||o.Z.monotone).grey200,";\n border-top: 1px solid ").concat((e.theme.monotone||o.Z.monotone).grey200,";\n ")}),(function(e){return!e.first&&"\n margin-left: ".concat(1*l.iI,"px;\n ")}),(function(e){return e.selected&&"\n border-bottom: 1px solid ".concat((e.theme.monotone||o.Z.monotone).white,";\n ")})),(0,r.css)(["position:fixed;z-index:2;",""],(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n height: calc(100% - ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px);\n top: ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px;\n ")}))),y=(0,r.css)([""," height:100%;overflow:auto;position:relative;z-index:2;"],d.w5),w=(0,r.css)(["height:calc(100% + ","px);position:absolute;top:-","px;width:","px;z-index:6;&:hover{","}"," ",""],g,g,p,(function(e){return!e.disabled&&"\n border-color: ".concat((e.theme.text||o.Z.text).fileBrowser," !important;\n ")}),(function(e){return!e.disabled&&"\n cursor: col-resize;\n "}),(function(e){return e.active&&!e.disabled&&"\n border-color: ".concat((e.theme.text||o.Z.text).fileBrowser," !important;\n ")})),C=r.default.div.withConfig({displayName:"indexstyle__AsideHeaderStyle",componentId:"sc-1lxpneo-3"})(["border-bottom:1px solid transparent;height:","px;position:fixed;top:","px;z-index:4;"," "," ",""],g,g,(0,d.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n ")}),(function(e){return!e.visible&&"\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-color: ".concat((e.theme.borders||o.Z.borders).medium," !important;\n ")})),j=r.default.div.withConfig({displayName:"indexstyle__AsideSubheaderStyle",componentId:"sc-1lxpneo-4"})(["border-bottom:1px solid transparent;height:","px;overflow-x:auto;"," "," ",""],g,(0,d.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).table,";\n ")}),(function(e){return!e.visible&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).medium," !important;\n ")})),k=r.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-5"})([""," left:0;"],m),Z=r.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-6"})([""," overflow:hidden;&:hover{overflow:auto;}"],y),_=r.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-7"})([""," right:0;"],m),I=r.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-8"})(["",""],y),H=r.default.div.withConfig({displayName:"indexstyle__DraggableStyle",componentId:"sc-1lxpneo-9"})([""," "," ",""],w,(function(e){return"undefined"!==typeof e.left&&"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n left: ").concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n border-right: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n right: ").concat(e.right,"px;\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__MainWrapper",componentId:"sc-1lxpneo-10"})(["height:100%;position:fixed;z-index:1;",""],(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeArea,";\n ")})),P=r.default.div.withConfig({displayName:"indexstyle__MainContentStyle",componentId:"sc-1lxpneo-11"})(["position:fixed;z-index:2;",""],(function(e){return"\n height: calc(100% - ".concat(e.headerOffset||0,"px);\n top: ").concat(e.headerOffset||0,"px;\n ")})),S=r.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-12"})([""," height:100%;overflow:auto;"],d.w5)},32063:function(e,n,t){var r=t(82684),o=t(1887),i=t.n(o),c=t(60328),l=t(57639),d=t(93461),a=t(67971),s=t(86673),u=t(46261),f=t(82386),p=t(10503),h=t(91427),g=t(49125),x=t(24141),v=t(28598);n.Z=function(e){var n=e.after,t=e.afterHeader,o=e.afterHeightOffset,b=e.afterHidden,m=e.afterMousedownActive,y=e.afterSubheader,w=e.afterWidth,C=void 0===w?0:w,j=e.before,k=e.beforeHeader,Z=e.beforeHeightOffset,_=e.beforeHidden,I=e.beforeMousedownActive,H=e.beforeWidth,O=void 0===H?0:H,P=e.children,S=e.header,V=e.headerOffset,E=void 0===V?0:V,B=e.hideAfterCompletely,M=e.leftOffset,L=void 0===M?0:M,z=e.mainContainerHeader,R=e.mainContainerRef,N=e.setAfterHidden,A=e.setAfterMousedownActive,D=e.setAfterWidth,W=e.setBeforeHidden,T=e.setBeforeMousedownActive,F=e.setBeforeWidth,U=(e.uuid,(0,x.i)().width),G=(0,r.useRef)(null),X=(0,r.useRef)(null),$=(0,r.useRef)(null),q=(0,r.useRef)(null),Y=(0,r.useCallback)((function(){var e=!b;null===N||void 0===N||N(e),(0,h.t8)(h.zg,e)}),[b,N]),J=(0,r.useCallback)((function(){var e=!_;W(e),(0,h.t8)(h.Uu,e)}),[_,W]);(0,r.useEffect)((function(){var e,n,t,r,o=function(e){var n,t;((null===$||void 0===$||null===(n=$.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(U){var r=e.x;r+f.l8>U-C&&(r=U-C-f.l8),r-=2*L,F(Math.max(r,f.dN))}},i=function(e){var n,t;e.offsetX>=e.target.offsetWidth-f.VW&&e.offsetX<=e.target.offsetWidth+f.VW&&(null===T||void 0===T||T(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",o,!1))},c=function(){var e,n;null===T||void 0===T||T(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",o,!1)};return null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",c,!1),function(){var e,n,t,r;null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",c,!1),c()}}),[C,_,L,$,q,T,F,U]),(0,r.useEffect)((function(){var e,n,t,r,o=function(e){var n,t;((null===G||void 0===G||null===(n=G.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(U){var r=U-e.x;r+f.l8>U-O&&(r=U-O-f.l8),D(Math.max(r,f.Md))}},i=function(e){var n,t;e.offsetX>=-1*f.VW&&e.offsetX<=f.VW&&(null===A||void 0===A||A(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",o,!1))},c=function(){var e,n;null===A||void 0===A||A(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",o,!1)};return null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",c,!1),function(){var e,n,t,r;null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",c,!1),c()}}),[b,O,G,X,A,D,U]);var K=B&&b,Q=K?0:b?4*g.iI:C,ee=_?4*g.iI:O,ne="calc(100% - ".concat(ee+Q+L,"px)");return(0,v.jsxs)(l.Z,{children:[(m&&!b||I&&!_)&&(0,v.jsx)(i(),{children:(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),S&&(0,v.jsx)(f.MK,{children:S}),j&&(0,v.jsxs)(f.MP,{heightOffset:Z,style:{left:L,width:ee},children:[(0,v.jsx)(f.v7,{active:I,disabled:_,ref:q,right:0}),W&&(0,v.jsx)(f.W7,{style:{width:ee},visible:_,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,v.jsxs)(d.Z,{children:[(0,v.jsx)(s.Z,{pl:_?1:0}),!_&&k]}),(0,v.jsxs)(d.Z,{children:[(0,v.jsx)(u.Z,{block:!0,label:_?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,v.jsxs)(c.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return J()},children:[_&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI}),!_&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI})]})},_?"before-is-hidden":"before-is-visible"),(0,v.jsx)(s.Z,{pr:_?1:2})]})]})}),(0,v.jsx)(f.Ru,{noScrollbarTrackBackground:!0,ref:$,children:!_&&j})]}),(0,v.jsxs)(f.rS,{style:{left:ee+L,width:ne},children:[z,(0,v.jsx)(f.aH,{headerOffset:(z?f.uX:f.Wi)+E,style:{width:ne},children:(0,v.jsx)(f.Zj,{noScrollbarTrackBackground:!0,ref:R,children:P})})]}),n&&!K&&(0,v.jsxs)(f.ff,{heightOffset:o,style:{width:Q},children:[(0,v.jsx)(f.v7,{active:m,disabled:b,left:0,ref:X}),N&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.W7,{style:{width:Q},visible:b,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,v.jsxs)(d.Z,{children:[(0,v.jsx)(s.Z,{pl:b?1:2}),(0,v.jsxs)(c.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return Y()},children:[b&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI}),!b&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI})]})]}),!b&&t]})}),!b&&y&&(0,v.jsx)(f.YJ,{style:{width:Q},visible:b,children:y})]}),(0,v.jsx)(f.E$,{noScrollbarTrackBackground:!0,ref:G,children:!b&&n})]})]})}},41788:function(e,n,t){t.d(n,{Z:function(){return I}});var r=t(77837),o=t(26304),i=t(62243),c=t(29385),l=t(80022),d=t(99177),a=t(93189),s=t(15544),u=t(82394),f=t(38860),p=t.n(f),h=t(82684),g=t(56663),x=t.n(g),v=t(35490),b=t(55361),m=t(30332),y=t(9736),w=t(59e3),C=t(28598),j=["auth"];function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n=2&&r>=1&&e.push((0,b.jsx)(I.ZP,{inline:!0,monospace:!0,muted:!0,children:"\xa0 / \xa0"},"divider-".concat(u)));var s=(0,b.jsx)(I.ZP,{bold:o,default:!o,monospace:!0,children:u}),p=(0,b.jsxs)(C.Z,{ml:0===r?2:0,children:[a&&(0,b.jsx)(j,{backgroundGradient:a,children:s}),!a&&s]},"breadcrumb-".concat(u));d&&(p=(0,c.createElement)(i(),R(R({},d),{},{key:"breadcrumb-link-".concat(u),passHref:!0}),(0,b.jsx)(O.Z,{block:!0,default:!o,noOutline:!0,sameColorAsText:o,children:p}))),e.push(p)})),e}),[$]),tn=(X||{}).latest_version,rn=(0,c.useMemo)((function(){return(0,b.jsx)(i(),{as:"/",href:"/",passHref:!0,children:(0,b.jsx)(O.Z,{block:!0,height:z.y7,noHoverUnderline:!0,noOutline:!0,children:(0,b.jsx)(m,{height:z.y7})})})}),[]),on=[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"}];return(0,D.YB)()&&on.push({label:function(){return"Sign out"},onClick:function(){l.Z.logout((function(){M.ZP.sessions.updateAsync(null,1).then((function(){(0,T.nL)("/sign-in")})).catch((function(){(0,T.nL)("/")}))}))},uuid:"sign_out"}),(0,b.jsx)(z.I5,{children:(0,b.jsx)(p.Z,{children:(0,b.jsxs)(h.Z,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,b.jsxs)(f.Z,{alignItems:"center",children:[Q&&(0,b.jsx)(H.Z,{height:z.y7,label:"Version ".concat(Q),size:null,visibleDelay:300,widthFitContent:!0,children:rn}),!Q&&rn,en]}),(0,b.jsxs)(f.Z,{alignItems:"center",children:[tn&&Q&&tn!==Q&&(0,b.jsx)(C.Z,{ml:2,children:(0,b.jsx)(d.Z,{borderLess:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,primary:!0,target:"_blank",children:(0,b.jsxs)(I.ZP,{children:["\ud83d\ude80 Download new version ",(0,b.jsx)(I.ZP,{bold:!0,inline:!0,monospace:!0,children:tn})]})})}),Q&&"undefined"!==typeof Q&&(0,b.jsx)(C.Z,{ml:2,children:(0,b.jsx)(O.Z,{default:!0,href:"https://www.mage.ai/changelog",monospace:!0,openNewWindow:!0,children:"v".concat(Q)})}),(0,b.jsx)(C.Z,{ml:2,children:(0,b.jsx)(w.ZP,{blackBorder:!0,block:!0,compact:!0,noHoverUnderline:!0,openNewTab:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},sameColorAsText:!0,uuid:"Header/live_chat",children:"Live chat"})}),t&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(C.Z,{ml:2}),(0,b.jsx)(s.Z,{onClickOutside:function(){return B(null)},open:!0,style:{position:"relative"},children:(0,b.jsxs)(h.Z,{children:[(0,b.jsx)(_.u,{highlighted:0===S,onClick:function(){return B((function(n){return 0===n?null:0}))},onMouseEnter:function(){return B((function(n){return null!==n?0:null}))},ref:Y,children:(0,b.jsx)(I.ZP,{children:"Menu"})}),(0,b.jsx)(g.Z,{alternateBackground:!0,items:t,onClickCallback:function(){return B(null)},open:0===S,parentRef:Y,rightOffset:0,setConfirmationAction:W,setConfirmationDialogueOpen:N,uuid:"PipelineDetail/Header/menu"})]})}),(0,b.jsx)(s.Z,{onClickOutside:function(){return N(!1)},open:L,children:(0,b.jsx)(P.Z,{danger:!0,onCancel:function(){return N(!1)},onClick:U,right:16*E.iI,subtitle:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",title:"Are you sure you want to delete the pipeline ".concat(nn,"?"),width:40*E.iI})})]}),(J||!(0,D.YB)())&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(C.Z,{ml:2}),(0,b.jsx)(s.Z,{onClickOutside:function(){return y(!1)},open:!0,style:{position:"relative"},children:(0,b.jsxs)(h.Z,{children:[(0,b.jsx)(_.u,{onClick:function(){return y(!0)},ref:K,children:(0,b.jsx)(u.Z,{color:F.Jm,size:4*E.iI,children:(0,b.jsx)(Z,{})})}),(0,b.jsx)(g.Z,{alternateBackground:!0,items:on,onClickCallback:function(){return y(!1)},open:x,parentRef:K,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},57639:function(n,e,t){var r=t(82684),o=t(28598);e.Z=function(n){var e=n.children,t=(0,r.useState)(!1),i=t[0],c=t[1];return(0,r.useEffect)((function(){c(!0)}),[]),i?e:(0,o.jsx)("div",{})}},88560:function(n,e,t){t.d(e,{P_:function(){return c},RL:function(){return o},Rp:function(){return a}});var r,o,i=t(82394);!function(n){n.CATEGORY="category",n.CATEGORY_HIGH_CARDINALITY="category_high_cardinality",n.DATETIME="datetime",n.EMAIL="email",n.LIST="list",n.NUMBER="number",n.NUMBER_WITH_DECIMALS="number_with_decimals",n.PHONE_NUMBER="phone_number",n.TEXT="text",n.TRUE_OR_FALSE="true_or_false",n.UUID="uuid",n.ZIP_CODE="zip_code"}(o||(o={}));o.NUMBER,o.NUMBER_WITH_DECIMALS,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.DATETIME,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT,o.TRUE_OR_FALSE,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT;var c=[o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY],a=(r={},(0,i.Z)(r,o.NUMBER,"Number"),(0,i.Z)(r,o.NUMBER_WITH_DECIMALS,"Decimal number"),(0,i.Z)(r,o.CATEGORY,"Category"),(0,i.Z)(r,o.CATEGORY_HIGH_CARDINALITY,"Category (high cardinality)"),(0,i.Z)(r,o.DATETIME,"Date/Time"),(0,i.Z)(r,o.EMAIL,"Email"),(0,i.Z)(r,o.LIST,"List"),(0,i.Z)(r,o.PHONE_NUMBER,"Phone number"),(0,i.Z)(r,o.TEXT,"Text"),(0,i.Z)(r,o.TRUE_OR_FALSE,"Boolean"),(0,i.Z)(r,o.ZIP_CODE,"Zip code"),r)},93461:function(n,e,t){var r=t(9518),o=t(25883),i=r.default.div.withConfig({displayName:"Flex",componentId:"sc-sgfnl9-0"})(["display:flex;"," "," "," "," ",""],o.GQ,o.Dh,(function(n){return n.position&&"\n position: ".concat(n.position,";\n ")}),(function(n){return n.right&&"\n right: ".concat(n.right,"px;\n ")}),(function(n){return n.textOverflow&&"\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "}));e.Z=i},67971:function(n,e,t){var r,o,i,c,a=t(82394),l=t(26304),d=t(26653),u=(t(82684),t(9518)),s=t(25883),p=t(33591),f=t(28598),h=["children","fullHeight","verticalHeightOffset"];function g(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function b(n){for(var e=1;e0&&"\n height: calc(100% - ".concat(n.offsetHeight||0,"px);\n ")}),(function(n){return n.fullHeight&&!n.verticalHeight&&"\n height: calc(100% - ".concat(n.offsetHeight||0,"px);\n ")}),(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return!n.inline&&"\n display: flex;\n "}),(function(n){return n.inline&&"\n display: inline-flex;\n "}),(function(n){return n.fullScreenHeight&&!n.offsetHeight&&"\n min-height: 100vh;\n "}),(function(n){return n.fullScreenHeight&&n.offsetHeight&&"\n min-height: calc(100vh - ".concat(n.offsetHeight,"px);\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return n.relative&&"\n position: relative;\n "}),(function(n){return n.textOverflow&&"\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "}));e.Z=function(n){var e=n.children,t=n.fullHeight,r=n.verticalHeightOffset,o=void 0===r?0:r,i=(0,l.Z)(n,h);return(0,f.jsx)(x,b(b({},i),{},{fullHeight:t,verticalHeightOffset:o,children:e}))}},62084:function(n,e,t){t.d(e,{Z:function(){return I}});var r=t(82394),o=t(82684),i=t(12691),c=t.n(i),a=t(67971),l=t(79749),d=t(86673),u=t(19711),s=t(46261),p=t(10503),f=t(9518),h=t(23831),g=t(73942),b=t(49125),v=f.default.div.withConfig({displayName:"indexstyle__FlyoutMenuContainerStyle",componentId:"sc-1o7k6f4-0"})(["position:absolute;max-height:","px;"," "," ",""],58*b.iI,(function(n){return n.width&&"\n min-width: 0px;\n width: ".concat(n.width,"px;\n ")}),(function(n){return"\n box-shadow: ".concat((n.theme.shadow||h.Z.shadow).popup,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||h.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return n.roundedStyle&&"\n border-radius: ".concat(g.n_,"px;\n\n div:first-child {\n border-top-left-radius: ").concat(g.n_,"px;\n border-top-right-radius: ").concat(g.n_,"px;\n }\n\n div:last-child {\n border-bottom-left-radius: ").concat(g.n_,"px;\n border-bottom-right-radius: ").concat(g.n_,"px;\n }\n ")})),m=f.default.div.withConfig({displayName:"indexstyle__TitleContainerStyle",componentId:"sc-1o7k6f4-1"})(["padding:","px;padding-bottom:0;",""],b.iI,(function(n){return"\n background-color: ".concat((n.theme.background||h.Z.background).popup,";\n ")})),x=(0,f.css)(["justify-content:space-between;padding:","px;"," "," "," "," "," "," ",""],b.iI,(function(n){return n.largePadding&&"\n padding: ".concat(2*b.iI,"px;\n padding-right: ").concat(6*b.iI,"px;\n ")}),(function(n){return!n.disabled&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||h.Z.interactive).hoverBackground,";\n cursor: pointer;\n }\n ")}),(function(n){return"\n background-color: ".concat((n.theme.background||h.Z.background).popup,";\n ")}),(function(n){return n.alternateBackground&&"\n background-color: ".concat((n.theme.interactive||h.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.disabled&&"\n color: ".concat((n.theme.content||h.Z.content).disabled,";\n cursor: not-allowed;\n\n &:hover {\n color: ").concat((n.theme.content||h.Z.content).disabled,";\n }\n ")}),(function(n){return n.indent&&"\n padding-left: ".concat(2*b.iI,"px;\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme.interactive||h.Z.interactive).hoverBackground,";\n ")})),y=f.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1o7k6f4-2"})(["",""],x),j=f.default.a.withConfig({displayName:"indexstyle__LinkAnchorStyle",componentId:"sc-1o7k6f4-3"})([""," display:block;"],x),w=t(16115),O=t(66653),k=t(41150),Z=t(28598);function P(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function C(n){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:0,x=arguments.length>4?arguments[4]:void 0;return h+=1,(0,Z.jsx)(v,{roundedStyle:H,style:{display:f||A[t]?null:"none",left:"undefined"===typeof I&&(1===h?g||0:"100%"),right:1===h?I:null,top:1===h?(V||0)+_:(2===h?G:Y)||0},width:E,children:null===e||void 0===e?void 0:e.map((function(e,t){var f=e.bold,g=e.disabled,v=e.items,w=e.indent,O=e.isGroupingTitle,k=e.keyTextGroups,P=e.label,I=e.linkProps,z=e.onClick,_=e.openConfirmationDialogue,D=e.tooltip,E=e.uuid;x.current[E]=(0,o.createRef)();var T=I?j:y,R=P();if(O)return(0,Z.jsxs)(m,{children:["string"===typeof R&&(0,Z.jsx)(u.ZP,{bold:!0,muted:!0,noWrapping:!0,children:R}),"string"!==typeof R&&R]},E);var B=(0,Z.jsxs)(T,{alternateBackground:i||H,disabled:g,highlighted:S[0]===t,indent:w,largePadding:H,onClick:function(n){I||n.preventDefault(),_?(F(!0),M((function(){return z})),null===b||void 0===b||b()):z&&!g&&(null===z||void 0===z||z(),null===b||void 0===b||b())},onMouseEnter:function(){var n,e;if(L((function(n){return C(C({},n),{},(0,r.Z)({},E,!0))})),1===h)U((null===(n=x.current[E])||void 0===n||null===(e=n.current)||void 0===e?void 0:e.offsetTop)||0);else if(2===h){var t,o;K((null===(t=x.current[E])||void 0===t||null===(o=t.current)||void 0===o?void 0:o.offsetTop)||0)}},onMouseLeave:function(){L((function(n){return C(C({},n),{},(0,r.Z)({},E,!1))}))},ref:x.current[E],children:[(0,Z.jsxs)(a.Z,{alignItems:"center",fullWidth:!0,justifyContent:"space-between",children:["string"===typeof R&&(0,Z.jsx)(u.ZP,{bold:f,disabled:g,noWrapping:!0,children:R}),"string"!==typeof R&&R,v&&(0,Z.jsx)(d.Z,{ml:2,children:(0,Z.jsx)(p.ol,{})}),k&&(0,Z.jsx)(d.Z,{ml:4,ref:X,children:(0,Z.jsx)(l.Z,{keyTextGroups:k})})]}),v&&n(v,E,!1,h,x)]},E);return D&&(B=(0,Z.jsx)(s.Z,{appearBefore:!0,block:!0,center:!0,description:D(),size:null,widthFitContent:!0,children:B})),I?(0,o.createElement)(c(),C(C({},I),{},{key:E,passHref:!0}),B):B}))})}(h,void 0,x,0,q):null}},62609:function(n,e,t){t.d(e,{Z:function(){return b}});var r=t(60328),o=t(67971),i=t(9518),c=t(23831),a=t(73942),l=t(86585),d=t(49125),u=t(28598),s=i.default.div.withConfig({displayName:"PopupMenuContainer__ContainerStyle",componentId:"sc-lq9od4-0"})(["border-radius:","px;padding:","px;position:absolute;z-index:",";cursor:default;"," "," "," "," "," "," "," ",""],a.TR,2*d.iI,l.bf+100,(function(n){return"\n background-color: ".concat((n.theme.interactive||c.Z.interactive).defaultBackground,";\n box-shadow: ").concat((n.theme.shadow||c.Z.shadow).window,";\n ")}),(function(n){return"undefined"!==typeof n.left&&"\n left: ".concat(n.left,"px;\n ")}),(function(n){return"undefined"!==typeof n.right&&"\n right: ".concat(n.right,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")}),(function(n){return"undefined"!==typeof n.bottom&&"\n bottom: ".concat(n.bottom,"px;\n ")}),(function(n){return"undefined"===typeof n.top&&"undefined"===typeof n.bottom&&"\n top: ".concat(l.Mz-1*d.iI,"px;\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return!n.width&&"\n min-width: ".concat(33*d.iI,"px;\n ")}));var p=function(n){var e=n.bottom,t=n.children,r=n.left,o=n.right,i=n.top,c=n.width;return(0,u.jsx)(s,{bottom:e,left:r,right:o,top:i,width:c,children:t})},f=t(86673),h=t(19711),g=32*d.iI;var b=function(n){var e=n.bottom,t=n.danger,i=n.left,c=n.isLoading,a=n.onCancel,l=n.onClick,d=n.right,s=n.subtitle,b=n.title,v=n.top,m=n.width;return(0,u.jsxs)(p,{bottom:e,left:i,right:d,top:v,width:m||g,children:[(0,u.jsxs)(o.Z,{alignItems:"center",flexDirection:"column",children:[(0,u.jsx)(f.Z,{pb:1,children:(0,u.jsx)(h.ZP,{bold:!0,large:!0,warning:!0,whiteSpaceNormal:!0,children:b})}),(0,u.jsx)(h.ZP,{small:!0,children:s})]}),(0,u.jsx)(f.Z,{mt:2,children:(0,u.jsxs)(o.Z,{alignItems:"center",justifyContent:"center",children:[(0,u.jsx)(r.Z,{onClick:a,children:"Cancel"}),(0,u.jsx)(f.Z,{mr:1}),(0,u.jsx)(r.Z,{loading:c,onClick:l,children:(0,u.jsx)(h.ZP,{bold:!0,danger:t,children:"Confirm"})})]})})]})}},54283:function(n,e,t){var r=t(82684),o=t(27601),i=t.n(o),c=t(23831),a=t(9518),l=t(49125),d=t(28598);e.Z=function(n){var e=n.color,t=n.fullScreen,o=n.inverted,u=n.large,s=n.left,p=void 0===s?0:s,f=n.relative,h=n.right,g=void 0===h?0:h,b=n.size,v=void 0===b?24:b,m=n.small,x=n.top,y=void 0===x?0:x,j=n.type,w=void 0===j?"spin":j,O=(0,r.useState)(void 0),k=O[0],Z=O[1],P=(0,r.useState)(void 0),C=P[0],I=P[1],H=(0,r.useContext)(a.ThemeContext),M=v;u?M=5*l.iI:m&&(M=2*l.iI),(0,r.useEffect)((function(){Z(window.document.body.offsetHeight),I(window.document.body.offsetWidth)}),[k,C]);var F=(0,d.jsx)(i(),{color:e||(o?(H.loader||c.Z.loader).colorInverted:(H.loader||c.Z.loader).color),height:M,type:w,width:M});if(!t)return F;if(k&&C){var z=k-l.tr;return(0,d.jsx)("div",{style:{left:f?null:p+(C-M)/2-g,position:"fixed",top:y+z/2-M/2,zIndex:50},children:F})}return(0,d.jsx)("div",{})}},46261:function(n,e,t){t.d(e,{Z:function(){return M}});var r=t(82394),o=t(26304),i=t(82684),c=t(9518),a=t(67971),l=t(19711),d=t(23831),u=t(73942),s=t(49125),p=t(60328),f=t(90880),h=t(28598),g=(0,c.css)(["position:relative;"," "," ",""],(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n "})),b=c.default.div.withConfig({displayName:"TooltipWrapper__ContainerStyle",componentId:"sc-1dd57l8-0"})(["",""],g),v=c.default.span.withConfig({displayName:"TooltipWrapper__ContainerSpanStyle",componentId:"sc-1dd57l8-1"})(["",""],g),m=c.default.a.withConfig({displayName:"TooltipWrapper__HoverStyle",componentId:"sc-1dd57l8-2"})([""," "," "," border-radius:50%;"," "," &:active,&:focus{outline:none;}",""],(0,f.eR)(),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n width: ").concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n width: 100%;\n "}),(function(n){return!n.block&&"\n display: inline-block;\n "}),(function(n){return n.block&&"\n display: block;\n "}),(function(n){return!n.noHoverOutline&&"\n &:hover {\n cursor: pointer;\n\n box-shadow:\n 0 0 0 ".concat(u.PV,"px ").concat((0,p.W)(n),",\n 0 0 0 ").concat(u.PV+u.q2,"px ").concat((n.theme.interactive||d.Z.interactive).hoverOverlay,";\n }\n ")})),x=c.default.span.withConfig({displayName:"TooltipWrapper__BasicStyle",componentId:"sc-1dd57l8-3"})([""]),y=c.default.div.withConfig({displayName:"TooltipWrapper__ContentStyle",componentId:"sc-1dd57l8-4"})(["position:absolute;z-index:3;"," "," "," "," "," "," "," "," "," ",""],(function(n){return"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).base,";\n ")}),(function(n){return n.lightBackground&&"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).window,";\n ")}),(function(n){return n.appearAbove&&!n.size&&"\n bottom: 0;\n "}),(function(n){return n.appearAbove&&n.size&&"\n bottom: ".concat(n.size+u.PV+u.q2,"px;\n ")}),(function(n){return n.appearBefore&&"\n right: 0;\n "}),(function(n){return n.leftPosition&&"\n left: ".concat(n.leftPosition,"px;\n ")}),(function(n){return!n.leftPosition&&n.rightPosition&&"\n right: 0px;\n "}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.widthFitContent&&"\n width: max-content;\n "}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}));var j=function(n){var e=n.alignLeft,t=n.appearAbove,r=n.appearBefore,o=n.autoWidth,c=n.basic,a=n.block,l=n.center,d=n.children,u=n.content,p=n.fullSize,f=n.height,g=n.inline,j=n.lightBackground,w=n.minWidth,O=n.noHoverOutline,k=n.size,Z=void 0===k?2*s.iI:k,P=n.topOffset,C=n.visibleDelay,I=void 0===C?1e3:C,H=n.widthFitContent,M=(0,i.useState)(!1),F=M[0],z=M[1],_=(0,i.useState)(!1),D=_[0],E=_[1],T=(w-Z)/-2,S=g?v:b,R=c?x:m,B=(0,h.jsx)(R,{block:a,fullSize:p,href:"#",noHoverOutline:O,onClick:function(n){return n.preventDefault()},onMouseEnter:function(){return z(!0)},size:Z,children:d});return(0,i.useEffect)((function(){var n=setInterval((function(){return E(!0)}),I);return F||clearInterval(n),function(){return clearInterval(n)}}),[E,F]),(0,h.jsxs)(S,{fullSize:p,height:f,onMouseLeave:function(){z(!1),E(!1)},size:Z,children:[B,D&&(0,h.jsx)(y,{appearAbove:t,appearBefore:r,leftPosition:l?T:null,lightBackground:j,minWidth:o?w:null,rightPosition:e,size:Z,topOffset:P,widthFitContent:H,children:u})]})},w=t(10503),O=["autoWidth","children","default","description","inverted","keyboardShortcuts","label","lightBackground","maxWidth","muted","primary","size","warning","widthFitContent"];function k(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Z(n){for(var e=1;e=1&&_.push((0,h.jsx)(l.ZP,{default:!0,children:"+"})),_.push(n)}));var D=_.map((function(n,e){var t="keyboard-shortcut-".concat(e);return"string"===typeof n?(0,h.jsx)("span",{children:n},t):i.cloneElement(n,{key:t})}));return(0,h.jsx)(j,Z(Z({},C),{},{autoWidth:e,content:(0,h.jsx)(F,{autoWidth:e,lightBackground:f,width:g,widthFitContent:k,children:(0,h.jsxs)(a.Z,{alignItems:"center",children:[(0,h.jsx)(l.ZP,{whiteSpaceNormal:!0,children:M}),D.length>=1&&(0,h.jsx)(l.ZP,{muted:!0,children:"\xa0\xa0\xa0\u2022\xa0\xa0\xa0"}),D.length>=1&&D]})}),lightBackground:f,minWidth:z,noHoverOutline:!!t,size:x,widthFitContent:k,children:t||(0,h.jsx)(w.kI,{default:r,inverted:d,muted:b,primary:v,size:x,warning:y})}))}},11135:function(n,e,t){t.d(e,{ZP:function(){return tn}});var r=t(82394),o=t(26304),i=t(82684),c=t(12691),a=t.n(c),l=t(9518),d=t(93461),u=t(79749),s=t(34376),p=t(9736);function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return h(h({},t),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,id:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}var b=t(75582),v=t(39421),m=t(86954);function x(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function y(n){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},r=j(),o=(null!==t&&void 0!==t&&t.width,window.innerWidth);return k(k(k({},t),r),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,partner_id:"Mage",screenSize:(0,w.Z3)(o),userId:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}(k({actionType:o,componentType:c},a));return{eventProperties:u,eventType:d,userProperties:g()}}function I(n,e){null===n||void 0===n||n(e)}var H=function(n){var e=n.children;return n.eventProperties,n.userProperties,e((function(n){return!1}))},M=t(41150),F=t(28598);function z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function _(n){for(var e=1;e=1&&o.push((0,l.jsx)(d,{small:p},"spacing-".concat(n))),o.push((0,l.jsx)(i.Z,{borderless:e,disabled:t,inline:!0,keyText:n,monospace:u,mutedDisabled:s},"key-".concat(g.join("-"),"-").concat(f)))})),r>=1&&h.push((0,l.jsx)(d,{marginRight:!0,children:(0,l.jsx)(c.ZP,{monospace:u,muted:!0,small:!p,xsmall:p,children:"then"})},"then-".concat(r))),h.push.apply(h,o)})),(0,l.jsx)(o.Z,{alignItems:"center",inline:a,children:h})}},86673:function(n,e,t){var r=t(82394),o=t(26304),i=t(82684),c=t(9518),a=t(25883),l=t(28598),d=["children","inline"];function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e=0||(r[e]=t[e]);return r}(t,y),M=null!=T?T:(0,h.Z)(u,E),P=(null!=w?w:0)+(0,d.Z)(u)/2,R=M.map((function(t,n){var e,i=(null!=(e=(0,f.Z)(u(t)))?e:0)+P;return{index:n,from:new a.Z({x:i,y:0}),to:new a.Z({x:i,y:p})}}));return o.createElement(s.Z,{className:c()("visx-columns",b),top:e,left:r},N?N({lines:R}):R.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(l.Z,_({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:Z,strokeDasharray:g,style:k},j))})))}p.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){e.d(n,{Z:function(){return s}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return l=Object.assign||function(t){for(var n=1;n=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:s,y:a,defined:v,curve:y});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",l({ref:_,className:o()("visx-linepath",d),d:m(r)||"",fill:f,strokeLinecap:"round"},x))}},39309:function(t,n,e){e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(13004);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,l=n.y0,s=n.y1,a=n.defined,h=n.curve,f=(0,i.Z)();return e&&(0,o.Z)(f.x,e),r&&(0,o.Z)(f.x0,r),u&&(0,o.Z)(f.x1,u),c&&(0,o.Z)(f.y,c),l&&(0,o.Z)(f.y0,l),s&&(0,o.Z)(f.y1,s),a&&f.defined(a),h&&f.curve(h),f}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,l=(0,r.Z)();return e&&(0,o.Z)(l.x,e),i&&(0,o.Z)(l.y,i),u&&l.defined(u),c&&l.curve(c),l}},98889:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(39309),s=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function a(){return a=Object.assign||function(t){for(var n=1;n=0||(r[e]=t[e]);return r}(t,s),g=(0,l.SO)({x:e,x0:i,x1:r,y:u,y0:h,y1:f,defined:p,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",a({ref:m,className:c()("visx-area",v),d:g(y)||""},Z))}var f=["id","children"];function d(){return d=Object.assign||function(t){for(var n=1;n=0||(r[e]=t[e]);return r}(t,f);return o.createElement("defs",null,o.createElement("clipPath",d({id:n},i),e))}function _(){return _=Object.assign||function(t){for(var n=1;nr)if(Math.abs(f*s-a*h)>r&&u){var y=i-c,_=o-l,p=s*s+a*a,v=y*y+_*_,x=Math.sqrt(p),m=Math.sqrt(d),Z=u*Math.tan((e-Math.acos((p+d-v)/(2*x*m)))/2),g=Z/m,b=Z/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*h)+","+(n+g*f)),this._+="A"+u+","+u+",0,0,"+ +(f*y>h*_)+","+(this._x1=t+b*s)+","+(this._y1=n+b*a)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,l,s){t=+t,n=+n,s=!!s;var a=(u=+u)*Math.cos(c),h=u*Math.sin(c),f=t+a,d=n+h,y=1^s,_=s?c-l:l-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),u&&(_<0&&(_=_%i+i),_>o?this._+="A"+u+","+u+",0,1,"+y+","+(t-a)+","+(n-h)+"A"+u+","+u+",0,1,"+y+","+(this._x1=f)+","+(this._y1=d):_>r&&(this._+="A"+u+","+u+",0,"+ +(_>=e)+","+y+","+(this._x1=t+u*Math.cos(l))+","+(this._y1=n+u*Math.sin(l))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){e.d(n,{Z:function(){return l}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function l(){var t=c.x,n=null,e=(0,r.Z)(0),l=c.y,s=(0,r.Z)(!0),a=null,h=o.Z,f=null;function d(r){var o,u,c,d,y,_=r.length,p=!1,v=new Array(_),x=new Array(_);for(null==a&&(f=h(y=(0,i.Z)())),o=0;o<=_;++o){if(!(o<_&&s(d=r[o],o,r))===p)if(p=!p)u=o,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),c=o-1;c>=u;--c)f.point(v[c],x[c]);f.lineEnd(),f.areaEnd()}p&&(v[o]=+t(d,o,r),x[o]=+e(d,o,r),f.point(n?+n(d,o,r):v[o],l?+l(d,o,r):x[o]))}if(y)return f=null,y+""||null}function y(){return(0,u.Z)().defined(s).curve(h).context(a)}return d.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):n},d.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),l=null,d):e},d.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d):e},d.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):l},d.lineX0=d.lineY0=function(){return y().x(t).y(e)},d.lineY1=function(){return y().x(t).y(l)},d.lineX1=function(){return y().x(n).y(e)},d.defined=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(!!t),d):s},d.curve=function(t){return arguments.length?(h=t,null!=a&&(f=h(a)),d):h},d.context=function(t){return arguments.length?(null==t?a=f=null:f=h(a=t),d):a},d}},97745:function(t,n,e){function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,l=o.Z,s=null;function a(r){var o,u,a,h=r.length,f=!1;for(null==c&&(s=l(a=(0,i.Z)())),o=0;o<=h;++o)!(o=0||(r[e]=t[e]);return r}(t,y),M=null!=T?T:(0,h.Z)(u,E),P=(null!=w?w:0)+(0,d.Z)(u)/2,R=M.map((function(t,n){var e,i=(null!=(e=(0,f.Z)(u(t)))?e:0)+P;return{index:n,from:new a.Z({x:i,y:0}),to:new a.Z({x:i,y:p})}}));return o.createElement(s.Z,{className:c()("visx-columns",b),top:e,left:r},N?N({lines:R}):R.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(l.Z,_({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:Z,strokeDasharray:g,style:k},j))})))}p.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){e.d(n,{Z:function(){return s}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return l=Object.assign||function(t){for(var n=1;n=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:s,y:a,defined:v,curve:y});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",l({ref:_,className:o()("visx-linepath",d),d:m(r)||"",fill:f,strokeLinecap:"round"},x))}},39309:function(t,n,e){e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(49894);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,l=n.y0,s=n.y1,a=n.defined,h=n.curve,f=(0,i.Z)();return e&&(0,o.Z)(f.x,e),r&&(0,o.Z)(f.x0,r),u&&(0,o.Z)(f.x1,u),c&&(0,o.Z)(f.y,c),l&&(0,o.Z)(f.y0,l),s&&(0,o.Z)(f.y1,s),a&&f.defined(a),h&&f.curve(h),f}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,l=(0,r.Z)();return e&&(0,o.Z)(l.x,e),i&&(0,o.Z)(l.y,i),u&&l.defined(u),c&&l.curve(c),l}},98889:function(t,n,e){e.d(n,{Z:function(){return p}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),l=e(39309),s=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function a(){return a=Object.assign||function(t){for(var n=1;n=0||(r[e]=t[e]);return r}(t,s),g=(0,l.SO)({x:e,x0:i,x1:r,y:u,y0:h,y1:f,defined:p,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",a({ref:m,className:c()("visx-area",v),d:g(y)||""},Z))}var f=["id","children"];function d(){return d=Object.assign||function(t){for(var n=1;n=0||(r[e]=t[e]);return r}(t,f);return o.createElement("defs",null,o.createElement("clipPath",d({id:n},i),e))}function _(){return _=Object.assign||function(t){for(var n=1;nr)if(Math.abs(f*s-a*h)>r&&u){var y=i-c,_=o-l,p=s*s+a*a,v=y*y+_*_,x=Math.sqrt(p),m=Math.sqrt(d),Z=u*Math.tan((e-Math.acos((p+d-v)/(2*x*m)))/2),g=Z/m,b=Z/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*h)+","+(n+g*f)),this._+="A"+u+","+u+",0,0,"+ +(f*y>h*_)+","+(this._x1=t+b*s)+","+(this._y1=n+b*a)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,l,s){t=+t,n=+n,s=!!s;var a=(u=+u)*Math.cos(c),h=u*Math.sin(c),f=t+a,d=n+h,y=1^s,_=s?c-l:l-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+f+","+d:(Math.abs(this._x1-f)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+f+","+d),u&&(_<0&&(_=_%i+i),_>o?this._+="A"+u+","+u+",0,1,"+y+","+(t-a)+","+(n-h)+"A"+u+","+u+",0,1,"+y+","+(this._x1=f)+","+(this._y1=d):_>r&&(this._+="A"+u+","+u+",0,"+ +(_>=e)+","+y+","+(this._x1=t+u*Math.cos(l))+","+(this._y1=n+u*Math.sin(l))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){e.d(n,{Z:function(){return l}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function l(){var t=c.x,n=null,e=(0,r.Z)(0),l=c.y,s=(0,r.Z)(!0),a=null,h=o.Z,f=null;function d(r){var o,u,c,d,y,_=r.length,p=!1,v=new Array(_),x=new Array(_);for(null==a&&(f=h(y=(0,i.Z)())),o=0;o<=_;++o){if(!(o<_&&s(d=r[o],o,r))===p)if(p=!p)u=o,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),c=o-1;c>=u;--c)f.point(v[c],x[c]);f.lineEnd(),f.areaEnd()}p&&(v[o]=+t(d,o,r),x[o]=+e(d,o,r),f.point(n?+n(d,o,r):v[o],l?+l(d,o,r):x[o]))}if(y)return f=null,y+""||null}function y(){return(0,u.Z)().defined(s).curve(h).context(a)}return d.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):n},d.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),l=null,d):e},d.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d):e},d.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),d):l},d.lineX0=d.lineY0=function(){return y().x(t).y(e)},d.lineY1=function(){return y().x(t).y(l)},d.lineX1=function(){return y().x(n).y(e)},d.defined=function(t){return arguments.length?(s="function"===typeof t?t:(0,r.Z)(!!t),d):s},d.curve=function(t){return arguments.length?(h=t,null!=a&&(f=h(a)),d):h},d.context=function(t){return arguments.length?(null==t?a=f=null:f=h(a=t),d):a},d}},97745:function(t,n,e){function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,l=o.Z,s=null;function a(r){var o,u,a,h=r.length,f=!1;for(null==c&&(s=l(a=(0,i.Z)())),o=0;o<=h;++o)!(o=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){f.headers[e]=o.merge(s)})),e.exports=f},18760:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},98963:function(e){e.exports={version:"0.27.2"}},29366:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},64830:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},87998:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},47427:function(e,t,n){"use strict";var r=n(80365).Buffer,o=n(63401);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):r.from(e):e}return function e(r,a){if(o.isPlainObject(r)||o.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),o.forEach(r,(function(n,r){if(!o.isUndefined(n)){var u,c=a?a+"."+r:r;if(n&&!a&&"object"===typeof n)if(o.endsWith(r,"{}"))n=JSON.stringify(n);else if(o.endsWith(r,"[]")&&(u=o.toArray(n)))return void u.forEach((function(e){!o.isUndefined(e)&&t.append(c,i(e))}));e(n,c)}})),n.pop()}else t.append(a,i(r))}(e),t}},73465:function(e,t,n){"use strict";var r=n(98963).version,o=n(24200),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,u){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,u)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],u=t[a];if(u){var c=e[a],s=void 0===c||u(c,a,e);if(!0!==s)throw new o("option "+a+" must be "+s,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},63401:function(e,t,n){"use strict";var r,o=n(29366),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function u(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function c(e){return Array.isArray(e)}function s(e){return"undefined"===typeof e}var l=u("ArrayBuffer");function f(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=u("Date"),h=u("File"),v=u("Blob"),g=u("FileList");function m(e){return"[object Function]"===i.call(e)}var y=u("URLSearchParams");function b(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:u,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(s(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},80196:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],u=i[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),l=0,f=u>0?a-4:a;for(n=0;n>16&255,s[l++]=t>>8&255,s[l++]=255&t;2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,s[l++]=255&t);1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,u=0,c=r-o;uc?c:u+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=i.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(e,t,r){for(var o,i,a=[],u=t;u>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},80365:function(e,t,n){"use strict";var r=n(80196),o=n(48405),i=n(7577);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return N(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,u=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,c/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;iu&&(n=u-c),i=n;i>=0;i--){for(var f=!0,d=0;do&&(r=o):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(l=s);break;case 2:128===(192&(i=e[o+1]))&&(c=(31&s)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(c=(15&s)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&u)&&(c=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(i,a),s=this.slice(r,o),l=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function j(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function _(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function T(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function B(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function Z(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||Z(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,i){return i||Z(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||_(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);_(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i>0)-u&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);_(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function N(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function z(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},85722:function(e,t){"use strict";t.Q=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var r={},o=t||{},a=e.split(";"),u=o.decode||n,c=0;c>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=u;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=s}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,u,c,s=8*i-o-1,l=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(u=0,a=l):a+f>=1?(u=(t*c-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&u,p+=h,u/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,s-=8);e[n+p-h]|=128*v}},7577:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},66757:function(e,t,n){"use strict";var r=n(19319),o=n(94178),i=n(67240),a="localStorage"in n.g&&n.g.localStorage?n.g.localStorage:r;function u(e,t){return 1===arguments.length?c(e):s(e,t)}function c(e){const t=a.getItem(e);return o(t)}function s(e,t){try{return a.setItem(e,JSON.stringify(t)),!0}catch(n){return!1}}u.set=s,u.get=c,u.remove=function(e){return a.removeItem(e)},u.clear=function(){return a.clear()},u.backend=function(e){return e&&(a=e),a},u.on=i.on,u.off=i.off,e.exports=u},94178:function(e){"use strict";e.exports=function(e){const t=function(e){try{return JSON.parse(e)}catch(t){return e}}(e);return void 0===t?null:t}},19319:function(e){"use strict";var t={};e.exports={getItem:function(e){return e in t?t[e]:null},setItem:function(e,n){return t[e]=n,!0},removeItem:function(e){return!!(e in t)&&delete t[e]},clear:function(){return t={},!0}}},67240:function(e,t,n){"use strict";var r=n(94178),o={};function i(e){e||(e=n.g.event);var t=o[e.key];t&&t.forEach((function(t){t(r(e.newValue),r(e.oldValue),e.url||e.uri)}))}e.exports={on:function(e,t){o[e]?o[e].push(t):o[e]=[t],n.g.addEventListener?n.g.addEventListener("storage",i,!1):n.g.attachEvent?n.g.attachEvent("onstorage",i):n.g.onstorage=i},off:function(e,t){var n=o[e];n.length>1?n.splice(n.indexOf(t),1):o[e]=[]}}},37206:function(e,t,n){var r=n(4366).Symbol;e.exports=r},7807:function(e,t,n){var r=n(37206),o=n(33187),i=n(92778),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},36176:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,u=n(t((r-e)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=e,e+=o;return c}},84182:function(e,t,n){var r=n(59135),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},76872:function(e,t,n){var r=n(36176),o=n(40965),i=n(14790);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},51716:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},58667:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},92570:function(e,t,n){var r=n(7807),o=n(58667);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},448:function(e,t,n){var r=n(76872)();e.exports=r},14790:function(e,t,n){var r=n(61666),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},61666:function(e,t,n){var r=n(84182),o=n(51716),i=n(92570),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}},56663:function(e,t,n){var r=n(28295);r=r.default||r,e.exports=function(e,t){var n=e.req&&e.req.headers&&e.req.headers.cookie;return new r(n).getAll(t)}},4793:function(e,t,n){e.exports=n(57934)},57934:function(e,t,n){"use strict";var r=n(71539),o=n(66745),i=n(65273),a=n(33826),u=n(59747),c=n(38860);function s(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}t.default=void 0;var l,f=(l=n(82684))&&l.__esModule?l:{default:l},d=n(47943);function p(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(s){return void n(s)}u.done?t(c):Promise.resolve(c).then(r,o)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,u,"next",e)}function u(e){p(i,r,o,a,u,"throw",e)}a(void 0)}))}}function v(e){return g.apply(this,arguments)}function g(){return(g=h(c.mark((function e(t){var n,r,o;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.Component,r=t.ctx,e.next=3,d.loadGetInitialProps(n,r);case 3:return o=e.sent,e.abrupt("return",{pageProps:o});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var m=function(e){i(n,e);var t=s(n);function n(){return r(this,n),t.apply(this,arguments)}return o(n,[{key:"render",value:function(){var e=this.props,t=e.Component,n=e.pageProps;return f.default.createElement(t,Object.assign({},n))}}]),n}(f.default.Component);t.default=m,m.origGetInitialProps=v,m.getInitialProps=v},22721:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var o=((r=n(82684))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=o},11993:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=a,t.useAmp=function(){return a(o.default.useContext(i.AmpStateContext))};var r,o=(r=n(82684))&&r.__esModule?r:{default:r},i=n(22721);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,o=void 0!==r&&r,i=e.hasQuery,a=void 0!==i&&i;return n||o&&a}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},49559:function(e,t,n){"use strict";var r=n(88081);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=f,t.default=void 0;var i,a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(82684)),u=(i=n(64176))&&i.__esModule?i:{default:i},c=n(22721),s=n(99005),l=n(11993);n(47943);function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var p=["name","httpEquiv","charSet","itemProp"];function h(e,t){return e.reduce((function(e,t){var n=a.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(d,[]).reverse().concat(f(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(o){var i=!0,a=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){a=!0;var u=o.key.slice(o.key.indexOf("$")+1);e.has(u)?i=!1:e.add(u)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(var c=0,s=p.length;c1)for(var n=1;n=0&&e!==1/0}function h(){return"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}function v(){return void 0===navigator.onLine||navigator.onLine}function g(e,t,n,r){var i,a,u,c;return y(e)?(i=e.queryKey,a=e.queryFn,u=e.config,c=t):y(t)?(i=e,u=t,c=n):(i=e,a=t,u=n,c=r),u=u||{},a&&(u=(0,o.Z)({},u,{queryFn:a})),[i,u,c]}function m(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||y(e)&&y(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{},u=0,c=0;c0,isFetchedAfterMount:t.updateCount>this.initialUpdateCount,isFetching:t.isFetching,isFetchingMore:t.isFetchingMore,isInitialData:t.isInitialData,isPreviousData:u,isPlaceholderData:c,isStale:this.isStale,refetch:this.refetch,remove:this.remove,updatedAt:a})},t.updateQuery=function(){var e=this.config,t=this.currentQuery,n=e.queryCache.getQueryByHash(e.queryHash);n||(n=e.queryCache.createQuery(e)),n!==t&&(this.previousQueryResult=this.currentResult,this.currentQuery=n,this.initialUpdateCount=n.state.updateCount,n.state.isInitialData?e.keepPreviousData&&t?this.isStale=!0:"function"===typeof e.initialStale?this.isStale=e.initialStale():"boolean"===typeof e.initialStale?this.isStale=e.initialStale:this.isStale="undefined"===typeof n.state.data:this.isStale=n.isStaleByTime(e.staleTime),this.updateResult(),this.listener&&(null==t||t.unsubscribeObserver(this),this.currentQuery.subscribeObserver(this)))},t.onQueryUpdate=function(e){var t=this.config,n=e.type;2!==n&&3!==n&&4!==n||(this.isStale=this.currentQuery.isStaleByTime(t.staleTime));var r=this.currentResult;this.updateResult();var o=this.currentResult;if(2!==n&&3!==n&&4!==n||this.updateTimers(),4!==n||o.isStale!==r.isStale){var i={};2===n?i.onSuccess=!0:3===n&&(i.onError=!0),(t.notifyOnStatusChange||o.data!==r.data||o.error!==r.error)&&(i.listener=!0),this.notify(i)}},t.notify=function(e){var t=this.config,n=this.currentResult,r=this.currentQuery,o=this.listener,i=t.onSuccess,a=t.onSettled,u=t.onError;P.batch((function(){e.onSuccess?(i&&P.schedule((function(){i(n.data)})),a&&P.schedule((function(){a(n.data,null)}))):e.onError&&(u&&P.schedule((function(){u(n.error)})),a&&P.schedule((function(){a(void 0,n.error)}))),e.listener&&o&&P.schedule((function(){o(n)})),e.globalListeners&&t.queryCache.notifyGlobalListeners(r)}))},e}();function L(){}var M=0,R=1,A=2,_=3,T=4;function B(e,t){if(!t)return e&&e.then?e.then(L):Promise.resolve()}function Z(e,t){var n=e();return n&&n.then?n.then(t):t(n)}function D(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function I(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function F(e){return function(){for(var t=[],n=0;n0||!p(this.cacheTime)||(this.gcTimeout=setTimeout((function(){e.remove()}),this.cacheTime)))},t.cancel=function(e){var t=this.promise;return t&&this.cancelFetch?(this.cancelFetch(e),t.then(c).catch(c)):Promise.resolve(void 0)},t.continue=function(){var e;null==(e=this.continueFetch)||e.call(this)},t.clearTimersObservers=function(){this.observers.forEach((function(e){e.clearTimers()}))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.setData=function(e,t){var n,r,o=this.state.data,i=l(e,o);(null==(n=(r=this.config).isDataEqual)?void 0:n.call(r,o,i))?i=o:this.config.structuralSharing&&(i=m(o,i));var a=N(this.config,i);this.dispatch({type:A,data:i,canFetchMore:a,updatedAt:null==t?void 0:t.updatedAt})},t.clear=function(){s.warn("react-query: clear() has been deprecated, please use remove() instead"),this.remove()},t.remove=function(){this.queryCache.removeQuery(this)},t.destroy=function(){this.clearGcTimeout(),this.clearTimersObservers(),this.cancel()},t.isActive=function(){return this.observers.some((function(e){return e.config.enabled}))},t.isStale=function(){return this.state.isInvalidated||this.state.status!==r.Success||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||this.state.status!==r.Success||this.state.updatedAt+e<=Date.now()},t.onInteraction=function(e){var t=this.observers.find((function(t){var n=t.config,r=t.getCurrentResult().isStale;return n.enabled&&("focus"===e&&("always"===n.refetchOnWindowFocus||n.refetchOnWindowFocus&&r)||"online"===e&&("always"===n.refetchOnReconnect||n.refetchOnReconnect&&r))}));t&&t.fetch(),this.continue()},t.subscribe=function(e){var t=new j(this.config);return t.subscribe(e),t},t.subscribeObserver=function(e){this.observers.push(e),this.clearGcTimeout()},t.unsubscribeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.isTransportCancelable&&this.cancel(),this.scheduleGc())},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:T})},t.refetch=function(e,t){var n=this.fetch(void 0,t);return(null==e?void 0:e.throwOnError)||(n=n.catch(c)),n},t.fetchMore=function(e,t,n){return this.fetch({fetchMore:{fetchMoreVariable:e,previous:(null==t?void 0:t.previous)||!1}},n)},t.fetch=function(e,t){try{var n=!1,r=this;return Z((function(){if(r.promise)return(null==e?void 0:e.fetchMore)&&r.state.data?B(r.cancel(!0)):(n=!0,r.promise)}),(function(o){if(n)return o;t&&r.updateConfig(t);var i=(t=r.config).queryFnParamsFilter,a=i?i(r.queryKey):r.queryKey;return r.promise=F((function(){return I((function(){var n;return Z((function(){return t.infinite?D(r.startInfiniteFetch(t,a,e),(function(e){n=e})):D(r.startFetch(t,a,e),(function(e){n=e}))}),(function(){return r.setData(n),delete r.promise,n}))}),(function(e){throw C(e)&&e.silent||r.dispatch({type:_,error:e}),C(e)||s.error(e),delete r.promise,e}))}))(),r.promise}))}catch(o){return Promise.reject(o)}},t.startFetch=function(e,t,n){return this.state.isFetching||this.dispatch({type:R}),this.tryFetchData(e,(function(){return e.queryFn.apply(e,t)}))},t.startInfiniteFetch=function(e,t,n){var r=null==n?void 0:n.fetchMore,o=r||{},i=o.previous,a=o.fetchMoreVariable,u=!!r&&(i?"previous":"next"),c=this.state.data||[],s=F((function(n,r,o){var i=V(n,r);return"undefined"===typeof o&&"undefined"!==typeof i&&e.getFetchMore&&(o=e.getFetchMore(i,n)),Boolean(o)||"undefined"===typeof i?D(e.queryFn.apply(e,t.concat([o])),(function(e){return r?[e].concat(n):[].concat(n,[e])})):n}));return this.state.isFetching&&this.state.isFetchingMore===u||this.dispatch({type:R,isFetchingMore:u}),this.tryFetchData(e,(function(){if(u)return s(c,i,a);if(c.length){for(var e=s([]),t=1;t=0||(o[n]=e[n]);return o}function l(e){return"number"===typeof e&&!isNaN(e)}function f(e){return"boolean"===typeof e}function d(e){return"string"===typeof e}function p(e){return"function"===typeof e}function h(e){return d(e)||p(e)?e:null}function v(e){return 0===e||e}var g=!("undefined"===typeof window||!window.document||!window.document.createElement);function m(e){return(0,r.isValidElement)(e)||d(e)||p(e)||l(e)}var y={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},b={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default",DARK:"dark"};function C(e){var t,n,i=e.enter,a=e.exit,u=e.duration,c=void 0===u?750:u,l=e.appendPosition,f=void 0!==l&&l,d=e.collapse,p=void 0===d||d,h=e.collapseDuration,v=void 0===h?300:h;return Array.isArray(c)&&2===c.length?(t=c[0],n=c[1]):t=n=c,function(e){var u=e.children,c=e.position,l=e.preventExitTransition,d=e.done,h=s(e,["children","position","preventExitTransition","done"]),g=f?i+"--"+c:i,m=f?a+"--"+c:a,y=function e(){var t=h.nodeRef.current;t&&(t.removeEventListener("animationend",e),p?function(e,t,n){void 0===n&&(n=300);var r=e.scrollHeight,o=e.style;requestAnimationFrame((function(){o.minHeight="initial",o.height=r+"px",o.transition="all "+n+"ms",requestAnimationFrame((function(){o.height="0",o.padding="0",o.margin="0",setTimeout((function(){return t()}),n)}))}))}(t,d,v):d())};return(0,r.createElement)(o.ZP,Object.assign({},h,{timeout:l?p?v:50:{enter:t,exit:p?n+v:n+50},onEnter:function(){var e=h.nodeRef.current;e&&(e.classList.add(g),e.style.animationFillMode="forwards",e.style.animationDuration=t+"ms")},onEntered:function(){var e=h.nodeRef.current;e&&(e.classList.remove(g),e.style.removeProperty("animationFillMode"),e.style.removeProperty("animationDuration"))},onExit:l?y:function(){var e=h.nodeRef.current;e&&(e.classList.add(m),e.style.animationFillMode="forwards",e.style.animationDuration=n+"ms",e.addEventListener("animationend",y))},unmountOnExit:!0}),u)}}var w={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter((function(e){return e!==t}));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach((function(e){return clearTimeout(e)})),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0){var n=v(e)?1:y.props.limit;if(1===t||1===n)y.displayedToast++,S();else{var r=n>t?t:n;y.displayedToast=r;for(var o=0;o0?S:k),hideProgressBar:f(v.hideProgressBar)?v.hideProgressBar:w.hideProgressBar,progress:v.progress,role:d(v.role)?v.role:w.role,deleteToast:function(){!function(e){delete g[e],t()}(b)}};p(v.onOpen)&&(j.onOpen=v.onOpen),p(v.onClose)&&(j.onClose=v.onClose);var L=w.closeButton;!1===v.closeButton||m(v.closeButton)?L=v.closeButton:!0===v.closeButton&&(L=!m(w.closeButton)||w.closeButton),j.closeButton=L;var M=e;(0,r.isValidElement)(e)&&!d(e.type)?M=(0,r.cloneElement)(e,{closeToast:x,toastProps:j}):p(e)&&(M=e({closeToast:x,toastProps:j})),w.limit&&w.limit>0&&u>w.limit&&O?c.push({toastContent:M,toastProps:j,staleId:i}):l(o)&&o>0?setTimeout((function(){P(M,j,i)}),o):P(M,j,i)}}function P(e,t,n){var r=t.toastId;g[r]={content:e,props:t},i({type:"ADD",toastId:r,staleId:n})}return(0,r.useEffect)((function(){return y.containerId=e.containerId,w.cancelEmit(3).on(0,k).on(1,(function(e){return a.current&&E(e)})).on(5,C).emit(2,y),function(){return w.emit(3,y)}}),[]),(0,r.useEffect)((function(){y.isToastActive=b,y.displayedToast=o.length,w.emit(4,o.length,e.containerId)}),[o]),(0,r.useEffect)((function(){y.props=e})),{getToastToRender:function(t){for(var n={},r=e.newestOnTop?Object.keys(g).reverse():Object.keys(g),o=0;o=1?e.targetTouches[0].clientX:e.clientX}function k(e){var t=(0,r.useState)(!0),n=t[0],o=t[1],i=(0,r.useState)(!1),a=i[0],u=i[1],c=(0,r.useRef)(null),s=x({start:0,x:0,y:0,deltaX:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),l=x(e,!0),f=e.autoClose,d=e.pauseOnHover,h=e.closeToast,v=e.onClick,g=e.closeOnClick;function m(t){var n=c.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.start=s.x=S(t.nativeEvent),s.removalDistance=n.offsetWidth*(e.draggablePercent/100)}function y(){if(s.boundingRect){var t=s.boundingRect,n=t.top,r=t.bottom,o=t.left,i=t.right;e.pauseOnHover&&s.x>=o&&s.x<=i&&s.y>=n&&s.y<=r?C():b()}}function b(){o(!0)}function C(){o(!1)}function w(e){e.preventDefault();var t=c.current;s.canDrag&&(n&&C(),s.x=S(e),s.deltaX=s.x-s.start,s.y=function(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}(e),s.start!==s.x&&(s.canCloseOnClick=!1),t.style.transform="translateX("+s.deltaX+"px)",t.style.opacity=""+(1-Math.abs(s.deltaX/s.removalDistance)))}function O(){var t=c.current;if(s.canDrag){if(s.canDrag=!1,Math.abs(s.deltaX)>s.removalDistance)return u(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translateX(0)",t.style.opacity="1"}}(0,r.useEffect)((function(){return p(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),function(){p(l.onClose)&&l.onClose((0,r.isValidElement)(l.children)&&l.children.props)}}),[]),(0,r.useEffect)((function(){return e.draggable&&(document.addEventListener("mousemove",w),document.addEventListener("mouseup",O),document.addEventListener("touchmove",w),document.addEventListener("touchend",O)),function(){e.draggable&&(document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",O),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",O))}}),[e.draggable]),(0,r.useEffect)((function(){return e.pauseOnFocusLoss&&(window.addEventListener("focus",b),window.addEventListener("blur",C)),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",C))}}),[e.pauseOnFocusLoss]);var E={onMouseDown:m,onTouchStart:m,onMouseUp:y,onTouchEnd:y};return f&&d&&(E.onMouseEnter=C,E.onMouseLeave=b),g&&(E.onClick=function(e){v&&v(e),s.canCloseOnClick&&h()}),{playToast:b,pauseToast:C,isRunning:n,preventExitTransition:a,toastRef:c,eventHandlers:E}}function P(e){var t=e.closeToast,n=e.type,o=e.ariaLabel,i=void 0===o?"close":o;return(0,r.createElement)("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":i},(0,r.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,r.createElement)("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function j(e){var t,n,o=e.delay,i=e.isRunning,u=e.closeToast,s=e.type,l=e.hide,f=e.className,d=e.style,h=e.controlledProgress,v=e.progress,g=e.rtl,m=e.isIn,y=c({},d,{animationDuration:o+"ms",animationPlayState:i?"running":"paused",opacity:l?0:1});h&&(y.transform="scaleX("+v+")");var b=["Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+s,(t={},t["Toastify__progress-bar--rtl"]=g,t)],C=p(f)?f({rtl:g,type:s,defaultClassName:a.apply(void 0,b)}):a.apply(void 0,[].concat(b,[f])),w=((n={})[h&&v>=1?"onTransitionEnd":"onAnimationEnd"]=h&&v<1?null:function(){m&&u()},n);return(0,r.createElement)("div",Object.assign({className:C,style:y},w))}j.defaultProps={type:b.DEFAULT,hide:!1};var L=function(e){var t,n=k(e),o=n.isRunning,i=n.preventExitTransition,u=n.toastRef,c=n.eventHandlers,s=e.closeButton,l=e.children,f=e.autoClose,d=e.onClick,h=e.type,v=e.hideProgressBar,g=e.closeToast,m=e.transition,y=e.position,b=e.className,C=e.style,w=e.bodyClassName,x=e.bodyStyle,O=e.progressClassName,E=e.progressStyle,S=e.updateId,P=e.role,L=e.progress,M=e.rtl,R=e.toastId,A=e.deleteToast,_=["Toastify__toast","Toastify__toast--"+h,(t={},t["Toastify__toast--rtl"]=M,t)],T=p(b)?b({rtl:M,position:y,type:h,defaultClassName:a.apply(void 0,_)}):a.apply(void 0,[].concat(_,[b])),B=!!L;return(0,r.createElement)(m,{in:e.in,appear:!0,done:A,position:y,preventExitTransition:i,nodeRef:u},(0,r.createElement)("div",Object.assign({id:R,onClick:d,className:T||void 0},c,{style:C,ref:u}),(0,r.createElement)("div",Object.assign({},e.in&&{role:P},{className:p(w)?w({type:h}):a("Toastify__toast-body",w),style:x}),l),function(e){if(e){var t={closeToast:g,type:h};return p(e)?e(t):(0,r.isValidElement)(e)?(0,r.cloneElement)(e,t):void 0}}(s),(f||B)&&(0,r.createElement)(j,Object.assign({},S&&!B?{key:"pb-"+S}:{},{rtl:M,delay:f,isRunning:o,isIn:e.in,closeToast:g,hide:v,type:h,style:E,className:O,controlledProgress:B,progress:L}))))},M=C({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),R=C({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit",duration:[450,750],appendPosition:!0}),A=function(e){var t=e.children,n=e.className,o=e.style,i=s(e,["children","className","style"]);return delete i.in,(0,r.createElement)("div",{className:n,style:o},r.Children.map(t,(function(e){return(0,r.cloneElement)(e,i)})))},_=function(e){var t=E(e),n=t.getToastToRender,o=t.containerRef,i=t.isToastActive,u=e.className,s=e.style,l=e.rtl,f=e.containerId;return(0,r.createElement)("div",{ref:o,className:"Toastify",id:f},n((function(e,t){var n,o,f={className:p(u)?u({position:e,rtl:l,defaultClassName:a("Toastify__toast-container","Toastify__toast-container--"+e,(n={},n["Toastify__toast-container--rtl"]=l,n))}):a("Toastify__toast-container","Toastify__toast-container--"+e,(o={},o["Toastify__toast-container--rtl"]=l,o),h(u)),style:0===t.length?c({},s,{pointerEvents:"none"}):c({},s)};return(0,r.createElement)(A,Object.assign({},f,{key:"container-"+e}),t.map((function(e){var t=e.content,n=e.props;return(0,r.createElement)(L,Object.assign({},n,{in:i(n.toastId),key:"toast-"+n.key,closeButton:!0===n.closeButton?P:n.closeButton}),t)})))})))};_.defaultProps={position:y.TOP_RIGHT,transition:M,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:P,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,role:"alert"};var T,B,Z,D=new Map,I=[],F=!1;function H(){return D.size>0}function V(e,t){var n=function(e){return H()?D.get(e||T):null}(t.containerId);return n?n.getToast(e):null}function N(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function z(e){return e&&(d(e.toastId)||l(e.toastId))?e.toastId:N()}function U(e,t){return H()?w.emit(0,e,t):(I.push({content:e,options:t}),F&&g&&(F=!1,B=document.createElement("div"),document.body.appendChild(B),(0,u.render)((0,r.createElement)(_,Object.assign({},Z)),B))),t.toastId}function q(e,t){return c({},t,{type:t&&t.type||e,toastId:z(t)})}var Q=function(e,t){return U(e,q(b.DEFAULT,t))};Q.success=function(e,t){return U(e,q(b.SUCCESS,t))},Q.info=function(e,t){return U(e,q(b.INFO,t))},Q.error=function(e,t){return U(e,q(b.ERROR,t))},Q.warning=function(e,t){return U(e,q(b.WARNING,t))},Q.dark=function(e,t){return U(e,q(b.DARK,t))},Q.warn=Q.warning,Q.dismiss=function(e){return H()&&w.emit(1,e)},Q.clearWaitingQueue=function(e){return void 0===e&&(e={}),H()&&w.emit(5,e)},Q.isActive=function(e){var t=!1;return D.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},Q.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=V(e,t);if(n){var r=n.props,o=n.content,i=c({},r,t,{toastId:t.toastId||e,updateId:N()});i.toastId!==e&&(i.staleId=e);var a="undefined"!==typeof i.render?i.render:o;delete i.render,U(a,i)}}),0)},Q.done=function(e){Q.update(e,{progress:1})},Q.onChange=function(e){return p(e)&&w.on(4,e),function(){p(e)&&w.off(4,e)}},Q.configure=function(e){void 0===e&&(e={}),F=!0,Z=e},Q.POSITION=y,Q.TYPE=b,w.on(2,(function(e){T=e.containerId||e,D.set(T,e),I.forEach((function(e){w.emit(0,e.content,e.options)})),I=[]})).on(3,(function(e){D.delete(e.containerId||e),0===D.size&&w.off(0).off(1).off(5),g&&B&&document.body.removeChild(B)}))},16910:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(65260),o=n(38),i=n(39287);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var u=n(82684),c=n(56179),s=n(72418),l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},e),n=Object.keys(e);return n.forEach((function(n){var o=n,i=n;r.MediaLabels[o]&&(t[r.MediaLabels[o]]=e[n]),r.MediaAliases[i]&&!t[r.MediaAliases[i]]&&(t[r.MediaAliases[i]]=e[n])})),t};t.default=o},69896:function(){},37136:function(e,t,n){"use strict";function r(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n html {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-overflow-style: scrollbar;\n }\n\n *,\n *::before,\n *::after {\n -webkit-box-sizing: inherit;\n box-sizing: inherit;\n }\n\n ","\n"]);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,n(9518).createGlobalStyle)(r(),(function(e){return e.css}));t.default=o},7439:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var o=n(33696);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i,a=(i=n(37136))&&i.__esModule?i:{default:i}},33696:function(){},78300:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(9518)),o=c(n(17757)),i=c(n(51423)),a=n(69835),u=c(n(55046));function c(e){return e&&e.__esModule?e:{default:e}}function s(){var e=J(["",""]);return s=function(){return e},e}function l(){var e=J(["",""]);return l=function(){return e},e}function f(){var e=J(["",""]);return f=function(){return e},e}function d(){var e=J(["",""]);return d=function(){return e},e}function p(){var e=J(["",""]);return p=function(){return e},e}function h(){var e=J(["",""]);return h=function(){return e},e}function v(){var e=J(["",""]);return v=function(){return e},e}function g(){var e=J(["",""]);return g=function(){return e},e}function m(){var e=J(["",""]);return m=function(){return e},e}function y(){var e=J(["",""]);return y=function(){return e},e}function b(){var e=J(["",""]);return b=function(){return e},e}function C(){var e=J(["",""]);return C=function(){return e},e}function w(){var e=J(["",""]);return w=function(){return e},e}function x(){var e=J(["",""]);return x=function(){return e},e}function O(){var e=J(["",""]);return O=function(){return e},e}function E(){var e=J(["",""]);return E=function(){return e},e}function S(){var e=J(["",""]);return S=function(){return e},e}function k(){var e=J(["",""]);return k=function(){return e},e}function P(){var e=J(["",""]);return P=function(){return e},e}function j(){var e=J(["",""]);return j=function(){return e},e}function L(){var e=J(["",""]);return L=function(){return e},e}function M(){var e=J(["",""]);return M=function(){return e},e}function R(){var e=J(["",""]);return R=function(){return e},e}function A(){var e=J(["",""]);return A=function(){return e},e}function _(){var e=J(["",""]);return _=function(){return e},e}function T(){var e=J(["",""]);return T=function(){return e},e}function B(){var e=J(["",""]);return B=function(){return e},e}function Z(){var e=J(["",""]);return Z=function(){return e},e}function D(){var e=J(["",""]);return D=function(){return e},e}function I(){var e=J(["",""]);return I=function(){return e},e}function F(){var e=J(["",""]);return F=function(){return e},e}function H(){var e=J(["",""]);return H=function(){return e},e}function V(){var e=J(["",""]);return V=function(){return e},e}function N(){var e=J(["",""]);return N=function(){return e},e}function z(){var e=J(["",""]);return z=function(){return e},e}function U(){var e=J(["",""]);return U=function(){return e},e}function q(){var e=J(["",""]);return q=function(){return e},e}function Q(){var e=J(["",""]);return Q=function(){return e},e}function G(){var e=J(["",""]);return G=function(){return e},e}function W(){var e=J(["",""]);return W=function(){return e},e}function $(){var e=J(["",""]);return $=function(){return e},e}function K(){var e=J(["",""]);return K=function(){return e},e}function Y(){var e=J(["\n position: relative;\n width: 100%;\n min-height: 1px;\n padding-right: ","px;\n padding-left: ","px;\n\n ","\n\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return Y=function(){return e},e}function J(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var X=function(e){return e.styledBootstrapGrid?e.styledBootstrapGrid.getGridColumns():12},ee=r.default.div.attrs((function(e){return{"data-name":(0,i.default)(e)}}))(Y(),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getColPadding?e.theme.styledBootstrapGrid.getColPadding():15}),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getColPadding?e.theme.styledBootstrapGrid.getColPadding():15}),(function(e){return e.noGutter&&o.default.noGutter}),(function(e){return e.col&&o.default.col(e.col,X(e.theme))}),(function(e){return"undefined"!==typeof e.offset&&o.default.offset(e.offset,X(e.theme))}),(function(e){return e.auto&&o.default.col("auto",0)}),(function(e){return e.alignSelf&&o.default.alignSelf[e.alignSelf]}),(function(e){return e.order&&o.default.order(e.order)}),(function(e){return e.xs&&u.default.xs(K(),o.default.col(e.xs,X(e.theme)))}),(function(e){return"undefined"!==typeof e.xsOffset&&(0,a.isNumber)(e.xsOffset)&&u.default.xs($(),o.default.offset(e.xsOffset,X(e.theme)))}),(function(e){return e.xsAuto&&u.default.xs(W(),o.default.col("auto",0))}),(function(e){return e.xsAlignSelf&&u.default.xs(G(),o.default.alignSelf[e.xsAlignSelf])}),(function(e){return e.xsOrder&&u.default.xs(Q(),o.default.order(e.xsOrder))}),(function(e){return e.hiddenXsDown&&u.default.max.xs(q(),o.default.display.none)}),(function(e){return e.hiddenXsUp&&u.default.min.xs(U(),o.default.display.none)}),(function(e){return e.sm&&u.default.sm(z(),o.default.col(e.sm,X(e.theme)))}),(function(e){return"undefined"!==typeof e.smOffset&&(0,a.isNumber)(e.smOffset)&&u.default.sm(N(),o.default.offset(e.smOffset,X(e.theme)))}),(function(e){return e.smAuto&&u.default.sm(V(),o.default.col("auto",0))}),(function(e){return e.smAlignSelf&&u.default.sm(H(),o.default.alignSelf[e.smAlignSelf])}),(function(e){return e.smOrder&&u.default.sm(F(),o.default.order(e.smOrder))}),(function(e){return e.hiddenSmDown&&u.default.max.sm(I(),o.default.display.none)}),(function(e){return e.hiddenSmUp&&u.default.min.sm(D(),o.default.display.none)}),(function(e){return e.md&&u.default.md(Z(),o.default.col(e.md,X(e.theme)))}),(function(e){return"undefined"!==typeof e.mdOffset&&(0,a.isNumber)(e.mdOffset)&&u.default.md(B(),o.default.offset(e.mdOffset,X(e.theme)))}),(function(e){return e.mdAuto&&u.default.md(T(),o.default.col("auto"))}),(function(e){return e.mdAlignSelf&&u.default.md(_(),o.default.alignSelf[e.mdAlignSelf])}),(function(e){return e.mdOrder&&u.default.md(A(),o.default.order(e.mdOrder))}),(function(e){return e.hiddenMdDown&&u.default.max.md(R(),o.default.display.none)}),(function(e){return e.hiddenMdUp&&u.default.min.md(M(),o.default.display.none)}),(function(e){return e.lg&&u.default.lg(L(),o.default.col(e.lg,X(e.theme)))}),(function(e){return"undefined"!==typeof e.lgOffset&&(0,a.isNumber)(e.lgOffset)&&u.default.lg(j(),o.default.offset(e.lgOffset,X(e.theme)))}),(function(e){return e.lgAuto&&u.default.lg(P(),o.default.col("auto"))}),(function(e){return e.lgAlignSelf&&u.default.lg(k(),o.default.alignSelf[e.lgAlignSelf])}),(function(e){return e.lgOrder&&u.default.lg(S(),o.default.order(e.lgOrder))}),(function(e){return e.hiddenLgDown&&u.default.max.lg(E(),o.default.display.none)}),(function(e){return e.hiddenLgUp&&u.default.min.lg(O(),o.default.display.none)}),(function(e){return e.xl&&u.default.xl(x(),o.default.col(e.xl,X(e.theme)))}),(function(e){return"undefined"!==typeof e.xlOffset&&(0,a.isNumber)(e.xlOffset)&&u.default.xl(w(),o.default.offset(e.xlOffset,X(e.theme)))}),(function(e){return e.xlAuto&&u.default.xl(C(),o.default.col("auto"))}),(function(e){return e.xlAlignSelf&&u.default.xl(b(),o.default.alignSelf[e.xlAlignSelf])}),(function(e){return e.xlOrder&&u.default.xl(y(),o.default.order(e.xlOrder))}),(function(e){return e.hiddenXlDown&&u.default.max.xl(m(),o.default.display.none)}),(function(e){return e.hiddenXlUp&&u.default.min.xl(g(),o.default.display.none)}),(function(e){return e.xxl&&u.default.xxl(v(),o.default.col(e.xxl,X(e.theme)))}),(function(e){return"undefined"!==typeof e.xxlOffset&&(0,a.isNumber)(e.xxlOffset)&&u.default.xxl(h(),o.default.offset(e.xxlOffset,X(e.theme)))}),(function(e){return e.xxlAuto&&u.default.xxl(p(),o.default.col("auto"))}),(function(e){return e.xxlAlignSelf&&u.default.xxl(d(),o.default.alignSelf[e.xxlAlignSelf])}),(function(e){return e.xxlOrder&&u.default.xxl(f(),o.default.order(e.xxlOrder))}),(function(e){return e.hiddenXxlDown&&u.default.max.xxl(l(),o.default.display.none)}),(function(e){return e.hiddenXxlUp&&u.default.min.xxl(s(),o.default.display.none)}));t.default=ee},17757:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={col:function(e,t){switch(e){case!0:return"\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n ";case"auto":return"\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n ";default:var n=100/t*e;return"\n -ms-flex: 0 0 ".concat(n,"%;\n flex: 0 0 ").concat(n,"%;\n max-width: ").concat(n,"%;\n ")}},offset:function(e,t){var n=100/t*e,r=n>0?"%":"";return"margin-left: ".concat(n).concat(r,";")},order:function(e){switch(e){case"first":return"\n -ms-flex-order: -1;\n order: -1;\n ";case"last":return"\n -ms-flex-order: 13;\n order: 13;\n ";default:return"\n -ms-flex-order: ".concat(e,";\n order: ").concat(e,";\n ")}},alignSelf:{auto:"\n -ms-flex-item-align: auto;\n align-self: auto;\n ",start:"\n -ms-flex-item-align: start;\n align-self: flex-start;\n ",end:"\n -ms-flex-item-align: end;\n align-self: flex-end;\n ",center:"\n -ms-flex-item-align: center;\n align-self: center;\n ",baseline:"\n -ms-flex-item-align: baseline;\n align-self: baseline;\n ",stretch:"\n -ms-flex-item-align: stretch;\n align-self: stretch;\n "},display:{none:"\n display: none;\n "},noGutter:"\n padding-right: 0;\n padding-left: 0;\n "};t.default=n},51423:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(69835);t.default=function(e){}},38232:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var o=n(68948);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i,a=(i=n(78300))&&i.__esModule?i:{default:i}},68948:function(){},77323:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(9518)),o=n(37831),i=a(n(55046));function a(e){return e&&e.__esModule?e:{default:e}}function u(){var e=d(["\n max-width: ","px;\n "]);return u=function(){return e},e}function c(){var e=d(["\n max-width: ","px;\n "]);return c=function(){return e},e}function s(){var e=d(["\n max-width: ","px;\n "]);return s=function(){return e},e}function l(){var e=d(["\n max-width: ","px;\n "]);return l=function(){return e},e}function f(){var e=d(["\n width: 100%;\n padding-right: ","px;\n padding-left: ","px;\n margin-right: auto;\n margin-left: auto;\n\n ","\n\n ","\n\n ","\n\n ","\n"]);return f=function(){return e},e}function d(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var p=r.default.div.attrs((function(e){return{"data-name":void 0}}))(f(),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getContainerPadding?e.theme.styledBootstrapGrid.getContainerPadding():15}),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getContainerPadding?e.theme.styledBootstrapGrid.getContainerPadding():15}),(function(e){return!e.fluid&&i.default.sm(l(),(!e.theme||!e.theme.styledBootstrapGrid||!e.theme.styledBootstrapGrid.getContainerMaxWidth)&&o.defaultContainerMaxWidth.sm||e.theme.styledBootstrapGrid.getContainerMaxWidth("sm"))}),(function(e){return!e.fluid&&i.default.md(s(),(!e.theme||!e.theme.styledBootstrapGrid||!e.theme.styledBootstrapGrid.getContainerMaxWidth)&&o.defaultContainerMaxWidth.md||e.theme.styledBootstrapGrid.getContainerMaxWidth("md"))}),(function(e){return!e.fluid&&i.default.lg(c(),(!e.theme||!e.theme.styledBootstrapGrid||!e.theme.styledBootstrapGrid.getContainerMaxWidth)&&o.defaultContainerMaxWidth.lg||e.theme.styledBootstrapGrid.getContainerMaxWidth("lg"))}),(function(e){return!e.fluid&&i.default.xl(u(),(!e.theme||!e.theme.styledBootstrapGrid||!e.theme.styledBootstrapGrid.getContainerMaxWidth)&&o.defaultContainerMaxWidth.xl||e.theme.styledBootstrapGrid.getContainerMaxWidth("xl"))}));t.default=p},41110:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var o=n(12791);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i,a=(i=n(77323))&&i.__esModule?i:{default:i}},12791:function(){},90306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(9518)),o=u(n(80340)),i=u(n(55046)),a=u(n(56104));function u(e){return e&&e.__esModule?e:{default:e}}function c(){var e=m(["",""]);return c=function(){return e},e}function s(){var e=m(["",""]);return s=function(){return e},e}function l(){var e=m(["",""]);return l=function(){return e},e}function f(){var e=m(["",""]);return f=function(){return e},e}function d(){var e=m(["",""]);return d=function(){return e},e}function p(){var e=m(["",""]);return p=function(){return e},e}function h(){var e=m(["",""]);return h=function(){return e},e}function v(){var e=m(["",""]);return v=function(){return e},e}function g(){var e=m(["\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n margin-right: -","px;\n margin-left: -","px;\n\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n"]);return g=function(){return e},e}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var y=r.default.div.attrs((function(e){return{"data-name":(0,a.default)(e)}}))(g(),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getRowPadding?e.theme.styledBootstrapGrid.getRowPadding():15}),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getRowPadding?e.theme.styledBootstrapGrid.getRowPadding():15}),(function(e){return e.alignItems&&o.default.alignItems[e.alignItems]}),(function(e){return e.smAlignItems&&i.default.sm(v(),o.default.alignItems[e.smAlignItems])}),(function(e){return e.mdAlignItems&&i.default.md(h(),o.default.alignItems[e.mdAlignItems])}),(function(e){return e.lgAlignItems&&i.default.lg(p(),o.default.alignItems[e.lgAlignItems])}),(function(e){return e.xlAlignItems&&i.default.xl(d(),o.default.alignItems[e.xlAlignItems])}),(function(e){return e.justifyContent&&o.default.justifyContent[e.justifyContent]}),(function(e){return e.smJustifyContent&&i.default.sm(f(),o.default.justifyContent[e.smJustifyContent])}),(function(e){return e.mdJustifyContent&&i.default.md(l(),o.default.justifyContent[e.mdJustifyContent])}),(function(e){return e.lgJustifyContent&&i.default.lg(s(),o.default.justifyContent[e.lgJustifyContent])}),(function(e){return e.xlJustifyContent&&i.default.xl(c(),o.default.justifyContent[e.xlJustifyContent])}));t.default=y},80340:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={alignItems:{start:"\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n ",end:"\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n ",center:"\n -ms-flex-align: center !important;\n align-items: center !important;\n ",baseline:"\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n ",stretch:"\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n "},justifyContent:{start:"\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n ",end:"\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n ",center:"\n -ms-flex-pack: center !important;\n justify-content: center !important;\n ",between:"\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n ",around:"\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n "}};t.default=n},56104:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){}},58759:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var o=n(97085);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i,a=(i=n(90306))&&i.__esModule?i:{default:i}},97085:function(){},37831:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.defaultContainerMaxWidth=void 0;var r=u(n(82684)),o=n(9518),i=n(69835),a=u(n(96463));function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t1?n-1:0),i=1;i1?n-1:0),a=1;ap)&&(F=(N=N.replace(" ",":")).length),0<_&&void 0!==(C=u(1,N,r,e,j,P,z.length,s,d,s))&&0===(F=(N=C.trim()).length)&&(N="\0\0"),p=N.charCodeAt(0),h=N.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){q+=N+c.charAt(Z);break}default:58!==N.charCodeAt(F-1)&&(z+=o(N,p,h,N.charCodeAt(2)))}I=D=T=p=0,N="",h=c.charCodeAt(++Z)}}switch(h){case 13:case 10:47===O?O=0:0===1+p&&107!==s&&0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0<_){var o=u(-1,n,r,r,j,P,0,0,0,0);void 0!==o&&"string"===typeof o&&(n=o)}var i=t(R,r,n,0,0);return 0<_&&(void 0!==(o=u(-2,i,r,r,j,P,i.length,0,0,0))&&(i=o)),"",L=0,P=j=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,v=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,C=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,O=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,P=1,j=1,L=0,M=1,R=[],A=[],_=0,T=null,B=0;return s.use=function e(t){switch(t){case void 0:case null:_=A.length=0;break;default:if("function"===typeof t)A[_++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&P(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i=R&&(R=t+1),L.set(e,t),M.set(t,e)},B="style["+x+'][data-styled-version="5.3.6"]',Z=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(x))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(x,"active"),r.setAttribute("data-styled-version","5.3.6");var a=F();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},V=function(){function e(e){var t=this.element=H(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(s+=e+",")})),r+=""+u+c+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),G=/(a)(d)/gi,W=function(e){return String.fromCharCode(e+(e>25?39:97))};function $(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=W(t%52)+n;return(W(t%52)+n).replace(G,"$1-$2")}var K=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Y=function(e){return K(5381,e)};function J(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var u=n(i,"."+a,void 0,r);t.insertRules(r,a,u)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,s=K(this.baseHash,n.hash),l="",f=0;f>>0);if(!t.hasNameForId(r,v)){var g=n(l,"."+v,void 0,r);t.insertRules(r,v,g)}o.push(v)}}return o.join(" ")},e}(),te=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function re(e){var t,n,r,o,i=void 0===e?y:e,a=i.options,c=void 0===a?y:a,s=i.plugins,l=void 0===s?m:s,f=new u(c),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,u,c,s,l,f){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,r,i){return 0===r&&-1!==ne.indexOf(i[n.length])||i.match(o)?e:"."+t};function v(e,i,a,u){void 0===u&&(u="&");var c=e.replace(te,""),s=i&&a?a+" "+i+" { "+c+" }":c;return t=u,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,s)}return f.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),v.hash=l.length?l.reduce((function(e,t){return t.name||P(15),K(e,t.name)}),5381).toString():"",v}var oe=o.createContext(),ie=oe.Consumer,ae=o.createContext(),ue=(ae.Consumer,new Q),ce=re();function se(){return(0,o.useContext)(oe)||ue}function le(){return(0,o.useContext)(ae)||ce}function fe(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=se(),u=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,o.useMemo)((function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,o.useEffect)((function(){a()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.createElement(oe.Provider,{value:u},o.createElement(ae.Provider,{value:c},e.children))}var de=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ce);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return P(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ce),this.name+e.hash},e}(),pe=/([A-Z])/,he=/([A-Z])/g,ve=/^ms-/,ge=function(e){return"-"+e.toLowerCase()};function me(e){return pe.test(e)?e.replace(he,ge).replace(ve,"-ms-"):e}var ye=function(e){return null==e||!1===e||""===e};function be(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,u=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,Ee=/(^-|-$)/g;function Se(e){return e.replace(Oe,"-").replace(Ee,"")}var ke=function(e){return $(Y(e)>>>0)};function Pe(e){return"string"==typeof e&&!0}var je=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Le=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Me(e,t,n){var r=e[n];je(t)&&je(r)?Re(r,t):e[n]=t}function Re(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(Pe(e)?e:Se(C(e)));return Ze(e,h({},o,{attrs:g,componentId:i}),n)},Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Re({},e.defaultProps,t):t}}),O.toString=function(){return"."+O.styledComponentId},i&&d()(O,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),O}var De=function(e){return function e(t,n,o){if(void 0===o&&(o=y),!(0,r.isValidElementType)(n))return P(1,String(n));var i=function(){return t(n,o,we.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,h({},o,{},r))},i.attrs=function(r){return e(t,n,h({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Ze,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){De[e]=De(e)}));var Ie=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=J(e),Q.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(be(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Q.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?P(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return P(2);var n=((t={})[x]="",t["data-styled-version"]="5.3.6",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=F();return r&&(n.nonce=r),[o.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Q({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?P(2):o.createElement(fe,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return P(3)},e}(),Ne=function(e){var t=o.forwardRef((function(t,n){var r=(0,o.useContext)(Ae),i=e.defaultProps,a=xe(t,r,i);return o.createElement(e,h({},t,{theme:a,ref:n}))}));return d()(t,e),t.displayName="WithTheme("+C(e)+")",t},ze=function(){return(0,o.useContext)(Ae)},Ue={StyleSheet:Q,masterSheet:ue},qe=De},28295:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(85722);function o(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return"undefined"===typeof t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(r){}return e}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&this.changeListeners.splice(t,1)},e}()},94353:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r="zkWlN0PkIKSN0C11CfUHUj84OT5XOJ6tDZ6bDRO2"},82531:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Je}});var r=n(82394),o=n(77837),i=n(75582),a=n(38860),u=n.n(a),c=(n(83455),n(82684));function s(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function u(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]i||setTimeout(r,u,o)},onDiscarded:d,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Z?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Z?5e3:3e3,compare:function(e,t){return x(e)==x(t)},isPaused:function(){return!1},cache:Q,mutate:G,fallback:{}},M),$=function(e,t){var n=m(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=m(o,a))}return n},K=(0,c.createContext)({}),Y=function(e){return g(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},J=function(){return m(W,(0,c.useContext)(K))},X=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},ee={dedupe:!0},te=(h.defineProperty((function(e){var t=e.value,n=$((0,c.useContext)(K),t),r=t&&t.provider,o=(0,c.useState)((function(){return r?U(r(n.cache||Q),t):p}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),T((function(){return o?o[2]:p}),[]),(0,c.createElement)(K.Provider,m(e,{value:n}))}),"default",{value:W}),f=function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,a=n.suspense,u=n.revalidateOnMount,f=n.refreshInterval,d=n.refreshWhenHidden,h=n.refreshWhenOffline,y=I.get(r),b=y[0],C=y[1],w=y[2],x=y[3],O=D(e),E=O[0],S=O[1],k=O[2],P=(0,c.useRef)(!1),j=(0,c.useRef)(!1),L=(0,c.useRef)(E),M=(0,c.useRef)(t),R=(0,c.useRef)(n),B=function(){return R.current},Z=function(){return B().isVisible()&&B().isOnline()},H=function(e){return r.set(k,m(r.get(k),e))},z=r.get(E),U=v(i)?n.fallback[E]:i,q=v(z)?U:z,Q=r.get(k)||{},G=Q.error,W=!P.current,$=function(){return W&&!v(u)?u:!B().isPaused()&&(a?!v(q)&&n.revalidateIfStale:v(q)||n.revalidateIfStale)},K=!(!E||!t)&&(!!Q.isValidating||W&&$()),Y=function(e,t){var n=(0,c.useState)({})[1],r=(0,c.useRef)(e),o=(0,c.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,c.useCallback)((function(e){var i=!1,a=r.current;for(var u in e){var c=u;a[c]!==e[c]&&(a[c]=e[c],o.current[c]&&(i=!0))}i&&!t.current&&n({})}),[]);return T((function(){r.current=e})),[r,o.current,i]}({data:q,error:G,isValidating:K},j),J=Y[0],te=Y[1],ne=Y[2],re=(0,c.useCallback)((function(e){return s(void 0,void 0,void 0,(function(){var t,i,a,u,c,s,f,d,h,m,y,b,C;return l(this,(function(l){switch(l.label){case 0:if(t=M.current,!E||!t||j.current||B().isPaused())return[2,!1];u=!0,c=e||{},s=!x[E]||!c.dedupe,f=function(){return!j.current&&E===L.current&&P.current},d=function(){var e=x[E];e&&e[1]===a&&delete x[E]},h={isValidating:!1},m=function(){H({isValidating:!1}),f()&&ne(h)},H({isValidating:!0}),ne({isValidating:!0}),l.label=1;case 1:return l.trys.push([1,3,,4]),s&&(F(r,E,J.current.data,J.current.error,!0),n.loadingTimeout&&!r.get(E)&&setTimeout((function(){u&&f()&&B().onLoadingSlow(E,n)}),n.loadingTimeout),x[E]=[t.apply(void 0,S),V()]),C=x[E],i=C[0],a=C[1],[4,i];case 2:return i=l.sent(),s&&setTimeout(d,n.dedupingInterval),x[E]&&x[E][1]===a?(H({error:p}),h.error=p,y=w[E],!v(y)&&(a<=y[0]||a<=y[1]||0===y[1])?(m(),s&&f()&&B().onDiscarded(E),[2,!1]):(o(J.current.data,i)?h.data=J.current.data:h.data=i,o(r.get(E),i)||r.set(E,i),s&&f()&&B().onSuccess(i,E,n),[3,4])):(s&&f()&&B().onDiscarded(E),[2,!1]);case 3:return b=l.sent(),d(),B().isPaused()||(H({error:b}),h.error=b,s&&f()&&(B().onError(b,E,n),("boolean"===typeof n.shouldRetryOnError&&n.shouldRetryOnError||g(n.shouldRetryOnError)&&n.shouldRetryOnError(b))&&Z()&&B().onErrorRetry(b,E,n,re,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,m(),f()&&s&&F(r,E,h.data,h.error,!1),[2,!0]}}))}))}),[E]),oe=(0,c.useCallback)(N.bind(p,r,(function(){return L.current})),[]);if(T((function(){M.current=t,R.current=n})),T((function(){if(E){var e=E!==L.current,t=re.bind(p,ee),n=0,r=X(E,C,(function(e,t,n){ne(m({error:t,isValidating:n},o(J.current.data,e)?p:{data:e}))})),i=X(E,b,(function(e){if(0==e){var r=Date.now();B().revalidateOnFocus&&r>n&&Z()&&(n=r+B().focusThrottleInterval,t())}else if(1==e)B().revalidateOnReconnect&&Z()&&t();else if(2==e)return re()}));return j.current=!1,L.current=E,P.current=!0,e&&ne({data:q,error:G,isValidating:K}),$()&&(v(q)||A?t():_(t)),function(){j.current=!0,r(),i()}}}),[E,re]),T((function(){var e;function t(){var t=g(f)?f(q):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){J.current.error||!d&&!B().isVisible()||!h&&!B().isOnline()?t():re(ee).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[f,d,h,re]),(0,c.useDebugValue)(q),a&&v(q)&&E)throw M.current=t,R.current=n,j.current=!1,v(G)?re(ee):G;return{mutate:oe,get data(){return te.data=!0,q},get error(){return te.error=!0,G},get isValidating(){return te.isValidating=!0,K}}},function(){for(var e=[],t=0;t0;)c=s[l](c);return c(o,i||u.fetcher,u)}),ne=n(55056),re=n.n(ne),oe=n(35490),ie=n(94353),ae=n(59e3);function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.body,o=t.ctx,a=t.method,u=void 0===a?fe:a,c=t.query,s=void 0===c?{}:c,l=t.token,f={"Content-Type":"application/json"},d={method:u};if(n){var p=n.file,h=n.file_json_only;if(p&&!h){p.name,p.size,p.type;var v=new FormData,g=Object.keys(n).filter((function(e){return"file"!==e}))[0],m=JSON.stringify((0,r.Z)({api_key:se},g,n[g]));v.set("json_root_body",m),v.append("file",p),d.body=v,delete f["Content-Type"]}else d.body=JSON.stringify(ce(ce({},n),{},{api_key:se}))}var y=o&&o.auth?o.auth:new oe.Z(l),b=y.authorizationString;b&&(f.Authorization=b),d.headers=new Headers(f);var C=ce(ce({},(0,ae.iV)(e)),s);se&&(C.api_key=se);var w=Object.entries(C).reduce((function(e,t){var n=(0,i.Z)(t,2),r=n[0],o=n[1];return e.concat("".concat(r,"=").concat(o))}),[]).join("&");return{data:d,headers:f,method:u,queryString:w,url:e.split("?")[0]}}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=he(e,t),r=n.data,o=n.queryString,i=n.url,a=o?"".concat(i,"?").concat(o):i;return fetch(a,r)}function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=he(e,t),r=n.data,o=n.headers,i=n.method,a=n.queryString,u=n.url,c=a?"".concat(u,"?").concat(a):u;return re().request({data:r.body,headers:o,method:i,onUploadProgress:null!==t&&void 0!==t&&t.onUploadProgress?function(e){return t.onUploadProgress(e,{body:null===t||void 0===t?void 0:t.body,query:null===t||void 0===t?void 0:t.query})}:null,url:c})}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ve(e,t).then((function(e){return e.clone().json()}))}var ye=n(28799);function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return ge((0,ye.Q2)(e),Ce(Ce({},n),{},{body:t,method:de}))}function xe(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=(0,ye.Q2)(t,n,e);return ge(i,Ce(Ce({},o),{},{body:r,method:de}))}function Oe(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=(0,ye.Q2)(t,n,e,r);return ge(a,Ce(Ce({},i),{},{body:o,method:de}))}function Ee(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=(0,ye.Q2)(t,n,e,r);return ge(a,Ce(Ce({},i),{},{body:o,method:pe}))}function Se(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return ve((0,ye.Q2)(t,n),{ctx:e,query:r,method:fe})}function ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ve((0,ye.Q2)(t),{ctx:e,query:n,method:fe})}function Pe(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return ve((0,ye.Q2)(n,r,t),{ctx:e,query:o,method:fe})}function je(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=(0,ye.Q2)(e,t,null,null,r);return ge(o,{body:n,method:pe})}function Le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=te(t?(0,ye.Q2)(e,t):null,(function(e){return me(e,{method:fe,query:n})}),r),i=o.data,a=o.error,u=o.mutate;return{data:i,error:a,mutate:u}}function Me(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6?arguments[6]:void 0,u=te(t&&(r?(0,ye.Q2)(n,r,e,t,o,a):null),(function(e){return me(e,{method:fe,query:o})}),i),c=u.data,s=u.error,l=u.mutate;return{data:c,error:s,mutate:l}}function Re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ve((0,ye.Q2)(e,t),{query:n,method:le})}function Ae(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return ve((0,ye.Q2)(t,n,e,r),{query:o,method:le})}function _e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.pauseFetch,i=void 0!==o&&o,a=te(i?null:(0,ye.Q2)(e,null,null,null,t),(function(e){return me(e)}),n),u=a.data,c=a.error,s=a.mutate;return{data:u,error:c,loading:!u&&!c,mutate:s}}function Te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=te(n?(0,ye.Q2)(t,n,e,null,r):null,(function(e){return me(e)}),o),a=i.data,u=i.error,c=i.mutate;return{data:a,error:u,loading:!a&&!u,mutate:c}}function Be(e,t,n,r){return ve((0,ye.Q2)(t,n),{ctx:e,body:r,method:pe})}var Ze=n(96510);function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return Le(n,e,t,Ie(Ie({},c),r))},detailAsync:function(){var e=(0,o.Z)(u().mark((function e(t,r){var o,i,a=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=a.length>2&&void 0!==a[2]?a[2]:{},e.next=3,Se(t,n,r,o);case 3:return i=e.sent,e.next=6,(0,Ze.pr)(i);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),updateAsync:function(){var e=(0,o.Z)(u().mark((function e(t,r,o){var i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Be(t,n,r,o);case 2:return i=e.sent,e.next=5,(0,Ze.pr)(i);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),useUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){var r=(0,o.Z)(u().mark((function r(o){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",je(n,e,o,t));case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()}}),a?(Ye[n][r][a]={},Ye[n][r][a].detail=function(e,t,o,i){return Me(n,t,r,e,o,Ie(Ie({},c),i),a)}):r?(Ye[n][r]={},Ye[n][r].useCreate=function(e,t){return function(){var i=(0,o.Z)(u().mark((function o(i){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",xe(n,r,e,i,t));case 1:case"end":return o.stop()}}),o)})));return function(e){return i.apply(this,arguments)}}()},Ye[n][r].useCreateWithParent=function(e,t,i){return function(){var a=(0,o.Z)(u().mark((function o(a){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Oe(n,r,e,t,a,i));case 1:case"end":return o.stop()}}),o)})));return function(e){return a.apply(this,arguments)}}()},Ye[n][r].useCreateWithParentIdLater=function(e){return function(){var t=(0,o.Z)(u().mark((function t(o){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",xe(n,r,o.parentId,o.body,e));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},Ye[n][r].useUpdate=function(e,t,i){return function(){var a=(0,o.Z)(u().mark((function o(a){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Ee(n,r,e,t,a,i));case 1:case"end":return o.stop()}}),o)})));return function(e){return a.apply(this,arguments)}}()},Ye[n][r].useDelete=function(e,t,i){return(0,o.Z)(u().mark((function o(){var a;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Ae(n,r,e,t,i);case 2:return a=o.sent,o.next=5,(0,Ze.pr)(a);case 5:return o.abrupt("return",o.sent);case 6:case"end":return o.stop()}}),o)})))},Ye[n][r].listAsync=function(){var e=(0,o.Z)(u().mark((function e(t,o){var i,a,c=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=c.length>2&&void 0!==c[2]?c[2]:{},e.next=3,Pe(t,n,r,o,i);case 3:return a=e.sent,e.next=6,(0,Ze.pr)(a);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Ye[n][r].list=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;return Te(n,r,e,t,Ie(Ie({},c),o))},Ye[n][r].detail=function(e,t,o,i){return Me(n,t,r,e,o,Ie(Ie({},c),i))}):(Ye[n].create=function(){var e=(0,o.Z)(u().mark((function e(t,r){var o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,we(n,t,r);case 2:return o=e.sent,e.next=5,(0,Ze.pr)(o);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Ye[n].useCreate=function(e){return function(){var t=(0,o.Z)(u().mark((function t(r){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",we(n,r,e));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},Ye[n].useDelete=function(e,t){return(0,o.Z)(u().mark((function r(){var o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Re(n,e,t);case 2:return o=r.sent,r.next=5,(0,Ze.pr)(o);case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),r)})))},Ye[n].listAsync=function(){var e=(0,o.Z)(u().mark((function e(t){var r,o,i=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,ke(t,n,r);case 3:return o=e.sent,e.next=6,(0,Ze.pr)(o);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ye[n].list=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return _e(n,e,Ie(Ie({},c),t),r)})}));var Je=Ye},35490:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(77837),o=n(62243),i=n(29385),a=n(82394),u=n(38860),c=n.n(u);function s(e){this.message=e}s.prototype=new Error,s.prototype.name="InvalidCharacterError";var l="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new s("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function f(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(l(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return l(t)}}function d(e){this.message=e}d.prototype=new Error,d.prototype.name="InvalidTokenError";var p=function(e,t){if("string"!=typeof e)throw new d("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(f(e.split(".")[n]))}catch(e){throw new d("Invalid token specified: "+e.message)}},h=n(66757),v=n.n(h),g=n(55361),m=n(9736),y=n(59e3),b=function(){function e(t){(0,o.Z)(this,e),this.token=t,(0,a.Z)(this,"decodedToken",void 0),(0,a.Z)(this,"logout",e.logout),this.decodedToken={expires:0,token:null};try{this.decodedToken=p(t||(0,g.LP)())}catch(s){}}return(0,i.Z)(e,[{key:"authorizationString",get:function(){if(this.decodedToken.token)return"Bearer ".concat(this.decodedToken.token)}},{key:"expiresAt",get:function(){return new Date(1e3*this.decodedToken.expires)}},{key:"isExpired",get:function(){return new Date>this.expiresAt}},{key:"isValid",get:function(){return this.decodedToken.token&&!this.isExpired}}],[{key:"isLoggedIn",value:function(){return(new e).isValid}},{key:"storeToken",value:function(){var e=(0,r.Z)(c().mark((function e(t){var n,r=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]?r[1]:null,(0,g.o4)(t),!n){e.next=5;break}return e.next=5,n();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"logout",value:function(){var e=(0,r.Z)(c().mark((function e(){var t,n=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:null,e.prev=1,!t){e.next=7;break}return e.next=5,t();case 5:e.next=9;break;case 7:return e.next=9,(0,y.nL)("/sign-in");case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(1);case 13:v().clear(),(0,m.kX)(),(0,g.gy)();case 16:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(){return e.apply(this,arguments)}}()}]),e}()},96510:function(e,t,n){"use strict";n.d(t,{QZ:function(){return l},pr:function(){return s},qQ:function(){return d},wD:function(){return p}});var r=n(21831),o=n(82394),i=n(75582);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=c(e),o=n.code,i=n.errors,a=n.exception,u=n.message,s=n.messages,l=[];if(u)l.push.apply(l,(0,r.Z)(u.split("\n")));else if((null===s||void 0===s?void 0:s.length)>=1)l.push.apply(l,(0,r.Z)(s));else{var f=t.errorMessage||(null===s||void 0===s?void 0:s[0])||i;f&&l.push(f)}return a&&l.push(a),{code:o,messages:l}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.acceptErrorStatuses,r=void 0===n?[]:n,o=t.callback,i=t.onErrorCallback,a=(t.successMessage,e.error);if(a&&!r.includes(null===a||void 0===a?void 0:a.code)){var u=l(e);return null===i||void 0===i||i(e,u),u}return null===o||void 0===o?void 0:o(e)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.errors,r=e.message,o=e.response,i=u({error:{code:null===o||void 0===o?void 0:o.status,messages:[n||r]}},null===o||void 0===o?void 0:o.data),a=t.callback;return null===a||void 0===a||a(i),l(i,t)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.status?s(e).then((function(e){return f(e,t)})):f(e,t)}},55361:function(e,t,n){"use strict";n.d(t,{Hu:function(){return s},LP:function(){return l},Mv:function(){return c},gy:function(){return f},o4:function(){return d}});var r=n(82394),o=n(39421),i=n(86954);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"localhost",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"6789",r=t;return e&&(r=window.location.hostname),r===t?r="".concat(r,":").concat(n):e&&window.location.port&&(r="".concat(r,":").concat(window.location.port)),r}function i(){var e="localhost",t="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_",n=o(true,e,"6789"),r=function(e,t){var n,r="http://";return t!==(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"localhost")&&(r="https://",!e||null!==(n=window.location.protocol)&&void 0!==n&&n.match(/https/)||(r="http://")),r}(true,n,e),i="";return t.includes("CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER")||(i=t),"".concat(r).concat(n).concat(i,"/api")}function a(){var e,t="ws://";return null!==(e=window.location.protocol)&&void 0!==e&&e.match(/https/)&&(t="wss://"),"".concat(t).concat(o(true,"localhost","6789"),"/websocket/")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c="".concat(i(),"/").concat(e);return t&&(c="".concat(c,"/").concat(t)),n&&(c="".concat(c,"/").concat(n)),o&&(c="".concat(c,"/").concat(o)),u&&(c="".concat(c,"/").concat(u)),Object.values(a||{}).length>=1&&(c="".concat(c,"?").concat((0,r.uM)(a))),c}},41150:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(82684),o=r.createContext({disableGlobalKeyboardShortcuts:!1,registerOnKeyDown:null,registerOnKeyUp:null,setDisableGlobalKeyboardShortcuts:function(){},unregisterOnKeyDown:null,unregisterOnKeyUp:null}),i=function(){return(0,r.useContext)(o)};t.Z=o},83608:function(e,t,n){"use strict";n.d(t,{DY:function(){return V},dd:function(){return Q}});var r=n(82684),o=function(){throw new Error("Attempted to call useModal outside of modal context. Make sure your app is rendered inside ModalProvider.")},i=r.createContext({hideModal:o,showModal:o});i.displayName="ModalContext";var a,u,c,s,l=n(82394),f=n(75582),d=n(26304),p=n(26653),h=n(85202),v=n(9518),g=n(16910),m=n(33591),y=n(47999),b=n(10919),C=n(23831),w=n(10503),x=n(49125),O=n(28598),E=["component","runtimeProps"];function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t=1;document.body.style.overflow=n?"hidden":"unset"}),[t,p]),u&&t?h.createPortal((0,O.jsx)(i,{children:Object.entries(t).map((function(e){var t=(0,f.Z)(e,2),n=t[0],r=t[1],o=r.background,i=r.component,a=r.disableCloseButton,u=r.disableClickOutside,c=r.disableEscape,s=r.hide,l=r.hideCallback,p=r.runtimeProps,h=function(){s(),l&&l()},v=d[n];return(0,O.jsxs)(_,{children:[(0,O.jsx)(g.Z,{classNames:"global-modal",in:v,timeout:R,unmountOnExit:!0,children:(0,O.jsx)(B,{children:(0,O.jsx)(Z,{children:(0,O.jsxs)(y.Z,{disableClickOutside:u,disableEscape:c,isOpen:!0,onClickOutside:h,children:[!a&&(0,O.jsx)(L,{children:(0,O.jsx)(b.Z,{block:!0,onClick:h,preventDefault:!0,sameColorAsText:!0,children:(0,O.jsx)(w.x8,{size:P})})}),(0,O.jsx)(M,{component:i,runtimeProps:p})]})})})}),o&&(0,O.jsx)(g.Z,{classNames:"background-style",in:v,timeout:R,unmountOnExit:!0,children:(0,O.jsx)(T,{})})]},n)}))}),u):(0,O.jsx)("div",{})})),I=n(79642);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!z(e))throw new Error("Only stateless components can be used as an argument to useModal. You have probably passed a class component where a function was expected.");var a=o.uuid,u=o.visible,c=(0,r.useMemo)(a?function(){return a}:N,[a]),s=(0,r.useMemo)((function(){return e}),n),l=(0,r.useContext)(i),f=(0,r.useState)(u),d=f[0],p=f[1],h=(0,r.useState)({}),v=h[0],g=h[1],m=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g(e),p(!0)}),[]),y=(0,r.useCallback)((function(){return p(!1)}),[]);return(0,r.useEffect)((function(){return d?l.showModal(c,s,y,t,q(q({},o),{},{runtimeProps:v})):l.hideModal(c),function(){return l.hideModal(c)}}),[d,d]),[m,y]}},79642:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(82394);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},o=t&&t[e];return o?i(i({},t),{},(0,r.Z)({},e,i(i(i({},o),n),{},{visible:!1}))):t}},81132:function(e,t,n){"use strict";n.d(t,{K$:function(){return u},No:function(){return o},gG:function(){return a}});var r,o,i=n(82394);!function(e){e[e.ADMIN=1]="ADMIN",e[e.EDITOR=2]="EDITOR",e[e.VIEWER=4]="VIEWER"}(o||(o={}));var a=(r={},(0,i.Z)(r,o.ADMIN,"Admin"),(0,i.Z)(r,o.EDITOR,"Editor"),(0,i.Z)(r,o.VIEWER,"Viewer"),r),u=[o.VIEWER,o.EDITOR,o.ADMIN]},47999:function(e,t,n){"use strict";var r=n(82684),o=n(28598);t.Z=function(e){var t=e.additionalRef,n=e.children,i=e.completeClickToClose,a=void 0!==i&&i,u=e.disableClickOutside,c=void 0!==u&&u,s=e.disableEscape,l=e.isOpen,f=e.onClick,d=e.onClickOutside,p=e.open,h=e.style,v=(0,r.useRef)(),g=(0,r.useState)(l),m=g[0],y=g[1],b=p||m,C=(0,r.useCallback)((function(e){var n,r;v&&null!==v&&void 0!==v&&null!==(n=v.current)&&void 0!==n&&null!==(r=n.contains)&&void 0!==r&&r.call(n,e.target)||t&&t.current.contains(e.target)||c||(d?d(e):y(!1))}),[t,c,v,d]);(0,r.useEffect)((function(){var e=a?"click":"mousedown";return b?document.addEventListener(e,C):document.removeEventListener(e,C),function(){document.removeEventListener(e,C)}}),[a,C,b]);var w=(0,r.useCallback)((function(e){"Escape"===e.key&&b&&d&&(d(e),e.preventDefault())}),[b,d]);return(0,r.useEffect)((function(){if(!s)return window.addEventListener("keydown",w),function(){window.removeEventListener("keydown",w)}}),[s,w]),(0,o.jsx)("div",{onClick:f,ref:v,style:h,children:b&&n})}},57384:function(e,t,n){"use strict";var r=n(1887),o=n.n(r),i=n(28598);t.Z=function(e){var t=e.children,n=e.defaultTitle,r=void 0===n?"Mage":n,a=e.title;return(0,i.jsxs)(o(),{children:[(0,i.jsx)("title",{children:a?"".concat(a," | ").concat(r):r}),t]})}},10919:function(e,t,n){"use strict";n.d(t,{R:function(){return v}});var r=n(82394),o=n(26304),i=n(82684),a=n(9518),u=n(23831),c=n(73942),s=n(19711),l=n(90880),f=n(28598),d=["children","disabled","href","onClick","onDoubleClick","onFocus","openNewWindow","preventDefault","sameColorAsText","selected","target","transparentBorder","weightStyle"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=(0,i.Z)({},n);return(0,s.jsx)(v,b(b(b({},r),t),{},{children:e.map((function(e,n){var i=e.Style,a=(0,o.Z)(e,m);return i?(0,g.createElement)(i,b(b(b({useStroke:null===t||void 0===t?void 0:t.useStroke},r),a),{},{key:n})):(0,g.createElement)(p,b(b(b({useStroke:null===t||void 0===t?void 0:t.useStroke},r),a),{},{key:n}))}))}))}}C([{clipRule:"evenodd",d:"M6.00008 2.02322L1.90857 4.96911l4.09151 2.4549 4.09152-2.4549-4.09152-2.94589zm-.52588-.8536c.31411-.22616.73764-.22616 1.05175 0l4.27325 3.07671c.5248.37786.4917 1.1694-.0629 1.50212L6.46312 8.31237a.89999.89999 0 01-.92609 0L1.26382 5.74845C.70929 5.41573.67619 4.62419 1.201 4.24633l4.2732-3.07671zM.57133 7.14986c.14207-.23679.4492-.31357.68599-.1715l4.74276 2.84565 4.74272-2.84565c.2368-.14207.5439-.06529.686.1715s.0653.54392-.1715.68599L6.46312 10.7124c-.28501.171-.64108.171-.92609 0L.74283 7.83585c-.2368-.14207-.31357-.4492-.1715-.68599z",fillRule:"evenodd"},{viewBox:"0 0 12 12"}]);var w=C([{d:"M13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5V11H5C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13H11V19C11 19.5523 11.4477 20 12 20C12.5523 20 13 19.5523 13 19V13H19C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11H13V5Z"}],{viewBox:"0 0 24 24"}),x=(C([{clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z",fillRule:"evenodd"}],{viewBox:"0 0 24 24"}),C([{d:"M10.722 18C10.5049 18 10.3126 17.8599 10.2461 17.6532L9.47227 15.2492C9.40575 15.0425 9.21344 14.9023 8.99632 14.9023H4.57942C4.36236 14.9023 4.17009 15.0424 4.10352 15.249L3.32875 17.6534C3.26218 17.86 3.06991 18 2.85285 18H1.50042C1.15475 18 0.913364 17.6576 1.02947 17.3321L5.30847 5.33327C5.37948 5.13416 5.56803 5.00122 5.77942 5.00122H7.82556C8.03684 5.00122 8.22531 5.13402 8.2964 5.33298L12.5837 17.3318C12.7001 17.6574 12.4587 18 12.1129 18H10.722ZM8.5356 12.339C8.63949 12.6618 8.39875 12.9922 8.05965 12.9922H5.51718C5.178 12.9922 4.93725 12.6617 5.04127 12.3388L6.56729 7.60311C6.59834 7.50674 6.68803 7.44141 6.78929 7.44141C6.89057 7.44141 6.98028 7.50677 7.01131 7.60318L8.5356 12.339Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M21.6186 18.0037C21.3702 18.0037 21.1594 17.8214 21.1246 17.5754C21.0802 17.2617 21.0323 16.9148 21.0179 16.7812C21.0176 16.7779 21.0133 16.7768 21.0116 16.7796C20.7922 17.155 20.0539 17.7793 19.0883 17.9805C18.6156 18.1016 16.9203 18.2656 15.8539 17.5938C15.0375 17.1094 14.7781 16.3745 14.6976 16.0039C14.5218 15.1953 14.6546 14.4102 14.8343 14C15.014 13.5898 15.3382 13.1289 16.0921 12.75C16.6952 12.4469 17.6768 12.2826 18.0921 12.2383C18.4207 12.1916 18.7726 12.1467 19.0973 12.1052C19.5059 12.0531 19.8713 12.0064 20.0921 11.9688C20.5985 11.8824 20.7077 11.8 20.7835 11.6484C20.8675 11.4806 20.8545 11.2245 20.8357 11.0767C20.778 10.7734 20.6409 10.42 20.3537 10.2112C19.9515 9.88672 19.6264 9.84854 19.0901 9.80913C18.764 9.78516 18.0804 9.80913 17.5139 10.2112C17.3853 10.3108 17.2407 10.4512 17.1241 10.6549C17.0137 10.8478 16.826 11 16.6036 10.9999L15.4539 10.9996C15.1637 10.9995 14.9322 10.751 15.0106 10.4716C15.138 10.0172 15.3828 9.57435 15.7157 9.23452C16.1111 8.83099 16.5433 8.55785 17.0895 8.33774C17.6357 8.11763 18.3652 7.99127 19.0908 8.0035C19.8163 8.01573 21.0101 8.09375 21.8892 8.94197C22.8422 9.79688 22.975 11.0391 23.0004 11.7601V17.5037C23.0004 17.7798 22.7765 18.0037 22.5004 18.0037H21.6186ZM20.8706 14.7567V14.6528L20.8695 14.6367L20.8706 14.6476V14.0097C20.8706 13.7068 20.6035 13.4735 20.3035 13.5146C19.5927 13.6121 18.7737 13.7263 18.5961 13.7578C18.5258 13.7703 18.4573 13.7803 18.3875 13.7905C18.1507 13.8252 17.8984 13.8621 17.5062 14.0039C17.1501 14.1326 16.9601 14.3428 16.8888 14.4655C16.8715 14.4953 16.8553 14.5257 16.8404 14.5567C16.7837 14.6748 16.7142 14.9343 16.7601 15.3125C16.8133 15.75 17.1521 16.0182 17.3148 16.0977C17.3225 16.1006 17.3341 16.1063 17.3499 16.114C17.4785 16.1765 17.8814 16.3725 18.6429 16.3359C19.4554 16.2969 20.0492 16.1016 20.5101 15.6367C20.7789 15.3473 20.8596 14.9808 20.8706 14.7567Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 24 24"})),O=C([{d:"M4.70096 9.75c.57735 1 2.02073 1 2.59808 0l2.59807-4.5C10.4745 4.25 9.75278 3 8.59808 3H3.40192c-1.1547 0-1.87638 1.25-1.29903 2.25l2.59807 4.5z"}],{viewBox:"0 0 12 12"}),E=C([{d:"M5.20096 2.25c.57735-1 2.02073-1 2.59808 0l2.59806 4.5c.5774 1-.1443 2.25-1.29902 2.25H3.90192c-1.1547 0-1.87638-1.25-1.29903-2.25l2.59807-4.5z"}],{viewBox:"0 0 12 12"}),S=C([{d:"M9.75 7.29904c1-.57735 1-2.02073 0-2.59808l-4.5-2.59807C4.25 1.52554 3 2.24722 3 3.40192v5.19616c0 1.1547 1.25 1.87642 2.25 1.29903l4.5-2.59807z"}],{viewBox:"0 0 12 12"}),k=C([{clipRule:"evenodd",fillRule:"evenodd",d:"M6.61362 1.21069C7.04956 1.54976 7.1281 2.17804 6.78903 2.61399L3.37765 7.00005H14.6663C15.2186 7.00005 15.6663 7.44776 15.6663 8.00005C15.6663 8.55233 15.2186 9.00005 14.6663 9.00005H3.37765L6.78903 13.3861C7.1281 13.8221 7.04956 14.4503 6.61362 14.7894C6.17767 15.1285 5.54939 15.0499 5.21032 14.614L0.543656 8.61399C0.262792 8.25288 0.262792 7.74722 0.543656 7.38611L5.21032 1.38611C5.54939 0.950158 6.17767 0.871624 6.61362 1.21069Z"}],{viewBox:"0 0 16 16"}),P=C([{Style:d,cx:6,cy:6,r:5,fill:"transparent"},{clipRule:"evenodd",d:"M6 11c2.76142 0 5-2.23858 5-5S8.76142 1 6 1 1 3.23858 1 6s2.23858 5 5 5zm0 1c3.31371 0 6-2.68629 6-6S9.31371 0 6 0 0 2.68629 0 6s2.68629 6 6 6z",fillRule:"evenodd"},{clipRule:"evenodd",d:"M8.13571 2.79051C7.93032 1.81491 6.9942 1 6.00001 1V0c1.50575 0 2.81963 1.18509 3.11425 2.58449.15165.7203.0358 1.50269-.45336 2.20821-.48458.69892-1.30719 1.28311-2.50278 1.68164-1.05441.35147-1.6693.82978-1.99721 1.30274-.32334.46635-.39498.96522-.29663 1.43241C4.06967 10.1851 5.00579 11 6.00001 11v1c-1.50578 0-2.81966-1.1851-3.11428-2.58449-.15164-.72031-.03578-1.50269.45338-2.20821.48458-.69892 1.3072-1.28311 2.50278-1.68164 1.05442-.35147 1.6693-.82978 1.99721-1.30274.32334-.46635.39497-.96521.29661-1.43241z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),j=C([{d:"M12.0833 3.33317H11.5V2.1665H10.3333V3.33317H5.66667V2.1665H4.5V3.33317H3.91667C3.26917 3.33317 2.75583 3.85817 2.75583 4.49984L2.75 12.6665C2.75 13.3082 3.26917 13.8332 3.91667 13.8332H12.0833C12.725 13.8332 13.25 13.3082 13.25 12.6665V4.49984C13.25 3.85817 12.725 3.33317 12.0833 3.33317ZM12.0833 12.6665H3.91667V6.83317H12.0833V12.6665ZM12.0833 5.6665H3.91667V4.49984H12.0833V5.6665ZM8 8.58317H10.9167V11.4998H8V8.58317Z"}],{viewBox:"0 0 16 16"}),L=(C([{d:"M7.2788 9.00002C6.84609 9.00002 6.61768 9.51239 6.90691 9.83423L11.4078 14.8426C11.6065 15.0637 11.953 15.0636 12.1517 14.8425L16.6499 9.8341C16.939 9.51223 16.7106 9 16.2779 9L7.2788 9.00002Z"}],{viewBox:"0 0 24 24"}),C([{d:"M8.77004 16.4985C8.77004 16.9313 9.28241 17.1597 9.60425 16.8704L14.6126 12.3696C14.8337 12.1709 14.8336 11.8243 14.6125 11.6257L9.60412 7.12744C9.28225 6.83834 8.77002 7.06678 8.77002 7.49943L8.77004 16.4985Z"}],{fill:"none",viewBox:"0 0 24 24"}),C([{d:"M13.5 4C13.2239 4 13 4.22386 13 4.5V10.5C13 10.7761 13.2239 11 13.5 11H20.5C20.7761 11 21 10.7761 21 10.5V4.5C21 4.22386 20.7761 4 20.5 4H13.5ZM15 6V9H19V6H15Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M3 13.5C3 13.2239 3.22386 13 3.5 13H10.5C10.7761 13 11 13.2239 11 13.5V19.5C11 19.7761 10.7761 20 10.5 20H3.5C3.22386 20 3 19.7761 3 19.5V13.5ZM5 18V15H9V18H5Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M13 13.5C13 13.2239 13.2239 13 13.5 13H20.5C20.7761 13 21 13.2239 21 13.5V19.5C21 19.7761 20.7761 20 20.5 20H13.5C13.2239 20 13 19.7761 13 19.5V13.5ZM15 18V15H19V18H15Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M3 4.5C3 4.22386 3.22386 4 3.5 4H10.5C10.7761 4 11 4.22386 11 4.5V10.5C11 10.7761 10.7761 11 10.5 11H3.5C3.22386 11 3 10.7761 3 10.5V4.5ZM5 9V6H9V9H5Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"})),M=C([{d:"M13.3857 4C13.1096 4 12.8857 4.22386 12.8857 4.5V10.5C12.8857 10.7761 13.1096 11 13.3857 11H20.3857C20.6619 11 20.8857 10.7761 20.8857 10.5V4.5C20.8857 4.22386 20.6619 4 20.3857 4H13.3857Z"},{d:"M2.88574 13.5C2.88574 13.2239 3.1096 13 3.38574 13H10.3857C10.6619 13 10.8857 13.2239 10.8857 13.5V19.5C10.8857 19.7761 10.6619 20 10.3857 20H3.38574C3.1096 20 2.88574 19.7761 2.88574 19.5V13.5Z"},{d:"M12.8857 13.5C12.8857 13.2239 13.1096 13 13.3857 13H20.3857C20.6619 13 20.8857 13.2239 20.8857 13.5V19.5C20.8857 19.7761 20.6619 20 20.3857 20H13.3857C13.1096 20 12.8857 19.7761 12.8857 19.5V13.5Z"},{d:"M2.88574 4.5C2.88574 4.22386 3.1096 4 3.38574 4H10.3857C10.6619 4 10.8857 4.22386 10.8857 4.5V10.5C10.8857 10.7761 10.6619 11 10.3857 11H3.38574C3.1096 11 2.88574 10.7761 2.88574 10.5V4.5Z"}],{fill:"none",viewBox:"0 0 24 24"}),R=C([{d:"M23.25 1C23.25 0.585786 22.9142 0.25 22.5 0.25C22.0858 0.25 21.75 0.585786 21.75 1V15.5C21.75 15.9142 22.0858 16.25 22.5 16.25C22.9142 16.25 23.25 15.9142 23.25 15.5V1ZM5 4.25C5.41421 4.25 5.75 4.58579 5.75 5V15.5C5.75 15.9142 5.41421 16.25 5 16.25C4.58579 16.25 4.25 15.9142 4.25 15.5V5C4.25 4.58579 4.58579 4.25 5 4.25ZM1.5 7.25C1.91421 7.25 2.25 7.58579 2.25 8V15.5C2.25 15.9142 1.91421 16.25 1.5 16.25C1.08579 16.25 0.75 15.9142 0.75 15.5V8C0.75 7.58579 1.08579 7.25 1.5 7.25ZM9.25 7C9.25 6.58579 8.91421 6.25 8.5 6.25C8.08579 6.25 7.75 6.58579 7.75 7V15.5C7.75 15.9142 8.08579 16.25 8.5 16.25C8.91421 16.25 9.25 15.9142 9.25 15.5V7ZM12 8.75C12.4142 8.75 12.75 9.08579 12.75 9.5V15.5C12.75 15.9142 12.4142 16.25 12 16.25C11.5858 16.25 11.25 15.9142 11.25 15.5V9.5C11.25 9.08579 11.5858 8.75 12 8.75ZM16.25 11.5C16.25 11.0858 15.9142 10.75 15.5 10.75C15.0858 10.75 14.75 11.0858 14.75 11.5V15.5C14.75 15.9142 15.0858 16.25 15.5 16.25C15.9142 16.25 16.25 15.9142 16.25 15.5V11.5ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V15.5C19.75 15.9142 19.4142 16.25 19 16.25C18.5858 16.25 18.25 15.9142 18.25 15.5V10C18.25 9.58579 18.5858 9.25 19 9.25Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 17"}),A=(C([{d:"M3.50016 2C2.67174 2 2.00017 2.67156 2.00016 3.49998L2 13.981C1.99997 15.7913 4.21333 16.6702 5.45521 15.353L6.73081 14H14.5002C15.3286 14 16.0002 13.3284 16.0002 12.5V3.5C16.0002 2.67157 15.3286 2 14.5002 2H3.50016ZM4 13.981L4.00015 4H14.0002V12H6.73081C6.17996 12 5.65349 12.2272 5.2756 12.628L4 13.981Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M8 18.5V16H10V18H16.836C17.2972 18 17.7442 18.1594 18.1014 18.4512L20 20.0025V10H18V8H20.5C21.3284 8 22 8.67157 22 9.5V20.0025C22 21.6891 20.0407 22.6184 18.7346 21.5513L16.836 20H9.5C8.67157 20 8 19.3284 8 18.5Z"}],{fill:"none",viewBox:"0 0 24 24"}),C([{clipRule:"evenodd",d:"M17.256 4.66058C17.5814 4.98602 17.5814 5.51366 17.256 5.83909L8.45396 14.6411C7.9658 15.1292 7.17435 15.1292 6.68619 14.6411L2.74408 10.699C2.41864 10.3735 2.41864 9.8459 2.74408 9.52046C3.06951 9.19503 3.59715 9.19503 3.92259 9.52046L7.57007 13.1679L16.0774 4.66058C16.4029 4.33514 16.9305 4.33514 17.256 4.66058Z",fillRule:"evenodd"}],{viewBox:"0 0 20 20"})),_=C([{d:"M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 16 16"}),T=C([{d:"M4.28906 7.9976L10.2898 13.9983L11.704 12.5841L7.11086 7.99095L11.6552 3.40363L10.2343 1.99609L4.28906 7.9976Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 16 16"}),B=C([{d:"M11.7109 7.9976L5.71017 13.9983L4.29597 12.5841L8.88914 7.99095L4.34482 3.40363L5.76567 1.99609L11.7109 7.9976Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 16 16"}),Z=C([{d:"M8.00101 4.41406L14.0017 10.4148L12.5875 11.829L7.99436 7.23586L3.40705 11.7802L1.99951 10.3593L8.00101 4.41406Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 16 16"}),D=C([{clipRule:"evenodd",d:"M.77075.77075c-.361.36099-.361.94628 0 1.30728l3.92198 3.92198L.77098 9.92176c-.361.36104-.361.94624 0 1.30724s.94629.361 1.30729 0l3.92174-3.9217 3.92172 3.9217c.36097.361.94627.361 1.30727 0s.361-.9463 0-1.30727L7.3073 6.00001l3.922-3.92195c.3609-.361.3609-.94629 0-1.30729-.361-.361-.9463-.361-1.30733 0L6.00001 4.69273 2.07803.77075c-.361-.361-.94629-.361-1.30728 0z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),I=C([{clipRule:"evenodd",d:"M12.5238 1.74155c.2343-.28904.6615-.3359.9543-.10467l3.9031 3.08213c.8251.65159.8251 1.89037 0 2.54196l-3.9031 3.08213c-.2928.2312-.72.1844-.9543-.1047-.2342-.289-.1868-.71076.106-.94199l3.9031-3.08213c.1456-.11498.1456-.33359 0-.44858l-3.9031-3.08213c-.2928-.23123-.3402-.65299-.106-.94202zM10.4659.52931c.3314.10963.5194.49472.42.86013L8.20146 11.2575c-.0994.3655-.44859.5728-.77994.4632-.33134-.1096-.51937-.4947-.41996-.8601L9.68599.99246c.0994-.36541.44861-.57277.77991-.46315zM5.47619 1.73856c.23425.28903.18678.71079-.10603.94202L1.46714 5.76271c-.14561.11499-.14561.33359 0 .44858l3.90302 3.08213c.29281.23123.34028.65299.10603.94198-.23425.2891-.66152.3359-.95433.1047L.61885 7.25798c-.82513-.65159-.82513-1.89037 0-2.54196l3.90301-3.08213c.29281-.23123.72008-.18437.95433.10467z",fillRule:"evenodd"}],{viewBox:"0 0 18 12"}),F=(C([{clipRule:"evenodd",d:"M2.75 1c-.13807 0-.25.11193-.25.25s.11193.25.25.25h.94279c-.04786-.28381-.29478-.5-.5922-.5H2.75zm1.94806.5C4.64615.66288 3.95078 0 3.10059 0H2.75C2.05964 0 1.5.55964 1.5 1.25S2.05964 2.5 2.75 2.5h6.20117c.69036 0 1.25003-.55964 1.25003-1.25S9.64153 0 8.95117 0h-.35058c-.8502 0-1.54557.66288-1.59748 1.5H4.69806zm3.31033 0h.94278c.13807 0 .25-.11193.25-.25s-.11193-.25-.25-.25h-.35058c-.29742 0-.54435.21619-.5922.5zM1.5 3.94118c0-.27615.22386-.5.5-.5h8c.2761 0 .5.22385.5.5 0 .27614-.2239.5-.5.5H8.87802A.49978.49978 0 018.9 4.58824V9.5c0 .27614-.22386.5-.5.5s-.5-.22386-.5-.5V4.58824a.49978.49978 0 01.02198-.14706H6.47802A.49978.49978 0 016.5 4.58824V10.5c0 .2761-.22386.5-.5.5s-.5-.2239-.5-.5V4.58824a.49978.49978 0 01.02198-.14706H4.07802A.49978.49978 0 014.1 4.58824V11.5c0 .2761-.22386.5-.5.5s-.5-.2239-.5-.5V4.58824a.49978.49978 0 01.02198-.14706H2c-.27614 0-.5-.22386-.5-.5z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),C([{clipRule:"evenodd",d:"M7.36865 4.00598C7.36865 3.4537 7.81637 3.00598 8.36865 3.00598H19.9942C20.5465 3.00598 20.9942 3.4537 20.9942 4.00598V15.6316C20.9942 16.1838 20.5465 16.6316 19.9942 16.6316H8.36865C7.81637 16.6316 7.36865 16.1838 7.36865 15.6316V4.00598ZM9.36865 14.6316V5.00598H18.9942V14.6316H9.36865Z",fillRule:"evenodd"},{d:"M5 8.58557C5 8.03329 4.55228 7.58557 4 7.58557C3.44772 7.58557 3 8.03329 3 8.58557V19.5C3 20.3284 3.67157 21 4.5 21H15.4144C15.9667 21 16.4144 20.5523 16.4144 20C16.4144 19.4477 15.9667 19 15.4144 19H5V8.58557Z"}],{viewBox:"0 0 24 24"})),H=(C([{clipRule:"evenodd",d:"M5.1141.6402c-.3759-.402-.92-.482-1.3622-.2924C3.3102.537 3 .978 3 1.5122v11.7305c0 .5149.2966.9505.7246 1.1466.445.204.9872.1281 1.376-.2608l1.5635-1.6178 1.0173 2.4761.0043.0097c.2549.5734.9699.951 1.6407.6567l1.3362-.5727.0092-.004c.6344-.282.8937-1.0248.6331-1.6319l-1.0832-2.6785h1.7861c1.0994 0 1.6406-1.366.8629-2.1508L5.1141.6402zM4.5 2.1602v10.4314l2.6797-2.7731 1.7896 4.3558c.6494.215.863-.3699.863-.3699L8.1188 9.5028l3.2926-.2367L4.5 2.1601z",fillRule:"evenodd"}],{viewBox:"0 0 16 16"}),C([{clipRule:"evenodd",d:"M6.25 2.25L5.89645 1.89645L6.25 2.25ZM2 10.5C1.72386 10.5 1.5 10.7239 1.5 11C1.5 11.2761 1.72386 11.5 2 11.5V10.5ZM11.5 11.5C11.7761 11.5 12 11.2761 12 11C12 10.7239 11.7761 10.5 11.5 10.5V11.5ZM9.25 4.25L9.60355 4.60355L9.25 4.25ZM5.08579 8.41421L4.73223 8.06066L5.08579 8.41421ZM1.5 7.32843V8.8H2.5V7.32843H1.5ZM2.2 9.5H3.67157V8.5H2.2V9.5ZM6.39645 1.39645L5.89645 1.89645L6.60355 2.60355L7.10355 2.10355L6.39645 1.39645ZM9.10355 5.10355L9.60355 4.60355L8.89645 3.89645L8.39645 4.39645L9.10355 5.10355ZM9.10355 4.39645L6.60355 1.89645L5.89645 2.60355L8.39645 5.10355L9.10355 4.39645ZM5.43934 8.76777L9.10355 5.10355L8.39645 4.39645L4.73223 8.06066L5.43934 8.76777ZM5.89645 1.89645L2.23223 5.56066L2.93934 6.26777L6.60355 2.60355L5.89645 1.89645ZM2 11.5H11.5V10.5H2V11.5ZM9.60355 1.39645C8.71793 0.510828 7.28206 0.510829 6.39645 1.39645L7.10355 2.10355C7.59865 1.60846 8.40135 1.60846 8.89645 2.10355L9.60355 1.39645ZM8.89645 2.10355C9.39154 2.59865 9.39154 3.40135 8.89645 3.89645L9.60355 4.60355C10.4892 3.71794 10.4892 2.28207 9.60355 1.39645L8.89645 2.10355ZM3.67157 9.5C4.33461 9.5 4.9705 9.23661 5.43934 8.76777L4.73223 8.06066C4.45093 8.34196 4.0694 8.5 3.67157 8.5V9.5ZM1.5 8.8C1.5 9.1866 1.8134 9.5 2.2 9.5V8.5C2.36569 8.5 2.5 8.63431 2.5 8.8H1.5ZM2.5 7.32843C2.5 6.9306 2.65804 6.54907 2.93934 6.26777L2.23223 5.56066C1.76339 6.0295 1.5 6.66539 1.5 7.32843H2.5Z",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 12 12"})),V=C([{d:"M2.82178 1C2.82178 1.55228 2.37406 2 1.82178 2C1.26949 2 0.821777 1.55228 0.821777 1C0.821777 0.447715 1.26949 0 1.82178 0C2.37406 0 2.82178 0.447715 2.82178 1Z"},{d:"M7.82178 1C7.82178 1.55228 7.37406 2 6.82178 2C6.26949 2 5.82178 1.55228 5.82178 1C5.82178 0.447715 6.26949 0 6.82178 0C7.37406 0 7.82178 0.447715 7.82178 1Z"},{d:"M12.8218 1C12.8218 1.55228 12.3741 2 11.8218 2C11.2695 2 10.8218 1.55228 10.8218 1C10.8218 0.447715 11.2695 0 11.8218 0C12.3741 0 12.8218 0.447715 12.8218 1Z"}],{fill:"none",viewBox:"0 0 13 2"}),N=C([{d:"M8.06994 12.322C7.30194 12.322 6.58594 12.15 5.92194 11.806C5.26594 11.454 4.72994 10.942 4.31394 10.27C3.89794 9.59801 3.68994 8.83401 3.68994 7.97801C3.68994 7.11401 3.90194 6.35001 4.32594 5.68601C4.74994 5.01401 5.28994 4.51001 5.94594 4.17401C6.60994 3.83801 7.32194 3.67001 8.08194 3.67001C9.24994 3.67001 10.2459 4.05401 11.0699 4.82201C11.8939 5.58201 12.3059 6.57801 12.3059 7.81001C12.3059 8.61001 12.1259 9.21001 11.7659 9.61001C11.4139 10.002 10.9819 10.198 10.4699 10.198C9.90994 10.198 9.54994 9.98201 9.38994 9.55001C8.99794 9.98201 8.49394 10.198 7.87794 10.198C7.26194 10.198 6.75794 9.99001 6.36594 9.57401C5.98194 9.15801 5.78994 8.64201 5.78994 8.02601C5.78994 7.41001 5.98594 6.89401 6.37794 6.47801C6.76994 6.06201 7.27794 5.85401 7.90194 5.85401C8.51794 5.85401 9.01394 6.07401 9.38994 6.51401L9.56994 6.09401H10.1699L9.92994 8.51801C9.88994 9.02201 10.0659 9.27401 10.4579 9.27401C10.9779 9.27401 11.2379 8.82201 11.2379 7.91801C11.2379 6.91801 10.9299 6.13001 10.3139 5.55401C9.70594 4.97801 8.96594 4.69001 8.09394 4.69001C7.19794 4.69001 6.41794 4.99001 5.75394 5.59001C5.09794 6.18201 4.76994 6.97801 4.76994 7.97801C4.76994 8.98601 5.09794 9.79401 5.75394 10.402C6.41794 11.002 7.19794 11.302 8.09394 11.302C8.74994 11.302 9.31394 11.138 9.78594 10.81L10.3979 11.542C10.1659 11.766 9.84194 11.954 9.42594 12.106C9.00994 12.25 8.55794 12.322 8.06994 12.322ZM7.07394 8.92601C7.29794 9.15801 7.58994 9.27401 7.94994 9.27401C8.30994 9.27401 8.60194 9.15801 8.82594 8.92601C9.05794 8.68601 9.17394 8.38601 9.17394 8.02601C9.17394 7.66601 9.05794 7.37001 8.82594 7.13801C8.60194 6.89801 8.30994 6.77801 7.94994 6.77801C7.58994 6.77801 7.29794 6.89401 7.07394 7.12601C6.84994 7.35801 6.73794 7.65801 6.73794 8.02601C6.73794 8.39401 6.84994 8.69401 7.07394 8.92601Z"}],{fill:"none",viewBox:"0 0 16 16"}),z=C([{clipRule:"evenodd",d:"M7.295 1c0-.345178.27982-.625.625-.625H11c.3452 0 .625.279822.625.625v2.57143c0 .34518-.2798.625-.625.625s-.625-.27982-.625-.625V2.48125L5.27609 7.44772c-.24727.24084-.64296.23564-.88381-.01163-.24084-.24727-.23564-.64296.01163-.88381L9.46259 1.625H7.92c-.34518 0-.625-.27982-.625-.625zM.375 4.28571c0-1.44974 1.17526-2.625 2.625-2.625h1.84c.34518 0 .625.27983.625.625 0 .34518-.27982.625-.625.625H3c-.75939 0-1.375.61561-1.375 1.375V9c0 .75939.61561 1.375 1.375 1.375h4.24c.75939 0 1.375-.61561 1.375-1.375V8c0-.34518.27982-.625.625-.625s.625.27982.625.625v1c0 1.4497-1.17525 2.625-2.625 2.625H3C1.55025 11.625.375 10.4497.375 9V4.28571z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),U=(C([{clipRule:"evenodd",d:"M2.75 1.5C1.92157 1.5 1.25 2.17157 1.25 3V9C1.25 9.82843 1.92157 10.5 2.75 10.5H8.25C9.07843 10.5 9.75 9.82843 9.75 9V5.5H8.5C7.11929 5.5 6 4.38071 6 3V1.5H2.75ZM7 2.26439L9.09588 4.5H8.5C7.67157 4.5 7 3.82843 7 3V2.26439ZM0.25 3C0.25 1.61929 1.36929 0.5 2.75 0.5H6.5C6.6382 0.5 6.77025 0.557204 6.86477 0.658029L10.6148 4.65803C10.7016 4.7507 10.75 4.87297 10.75 5V9C10.75 10.3807 9.63071 11.5 8.25 11.5H2.75C1.36929 11.5 0.25 10.3807 0.25 9V3Z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),C([{d:"M1 3c0-1.10457.89543-2 2-2h3.55093c.28564 0 .55765.12215.74741.33564l3.44906 3.8802c.1627.18305.2526.41945.2526.66436V9c0 1.1046-.8954 2-2 2H3c-1.10457 0-2-.8954-2-2V3z"},{d:"M6 1v3c0 1.38071 1.11929 2.5 2.5 2.5H11v-.6198c0-.1315-.0259-.26055-.0751-.3802H8.5C7.67157 5.5 7 4.82843 7 4V1.1065C6.86216 1.03723 6.70863 1 6.55093 1H6z",fill:"#232429"}],{viewBox:"0 0 12 12"})),q=C([{clipRule:"evenodd",d:"M7.22361 10.6382c.16939-.0847.27639-.2578.27639-.4472V6.68103a.50003.50003 0 01.11589-.3201l4.20071-5.04084C12.088.994428 11.8564.5 11.4325.5H.567521C.143603.5-.087976.994429.18341 1.32009l4.2007 5.04084a.50003.50003 0 01.11589.3201V11.191c0 .3717.39116.6134.72361.4472l2-1zM1.63504 1.5l3.51729 4.22075c.22465.26957.34767.60937.34767.96028V10.382l1-.50003V6.68103c0-.35091.12302-.69071.34767-.96028L10.365 1.5H1.63504z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),Q=C([{d:"M0 2.5v7c0 1.1046.895431 2 2 2h8c1.1046 0 2-.8954 2-2V5.16667c0-1.10457-.8954-2-2-2H7.96191c-.42079 0-.76191-.34112-.76191-.76191C7.2 1.35279 6.34721.5 5.29524.5H2c-1.104569 0-2 .89543-2 2z",fill:"#6AA1E0"},{d:"M1 2.5v7c0 .5523.44772 1 1 1h8c.5523 0 1-.4477 1-1V5.16667c0-.55229-.4477-1-1-1H7.96191C6.98883 4.16667 6.2 3.37784 6.2 2.40476 6.2 1.90508 5.79492 1.5 5.29524 1.5H2c-.55228 0-1 .44772-1 1zm-1 7v-7c0-1.10457.895431-2 2-2h3.29524C6.34721.5 7.2 1.35279 7.2 2.40476c0 .42079.34112.76191.76191.76191H10c1.1046 0 2 .89543 2 2V9.5c0 1.1046-.8954 2-2 2H2c-1.104569 0-2-.8954-2-2z",fill:"#9ECBFF"}],{viewBox:"0 0 12 12"}),G=(C([{d:"M5 5C5 4.44772 4.55228 4 4 4C3.44772 4 3 4.44772 3 5V18.5C3 19.3284 3.67157 20 4.5 20H20C20.5523 20 21 19.5522 21 19C21 18.4477 20.5523 18 20 18H5V5Z"},{d:"M20.7071 7.70711C21.0976 7.31658 21.0976 6.68342 20.7071 6.29289C20.3166 5.90237 19.6834 5.90237 19.2929 6.29289L15 10.5858L13.0607 8.64645C12.4749 8.06066 11.5251 8.06066 10.9393 8.64645L7.29289 12.2929C6.90237 12.6834 6.90237 13.3166 7.29289 13.7071C7.68342 14.0976 8.31658 14.0976 8.70711 13.7071L12 10.4142L13.9393 12.3536C14.5251 12.9393 15.4749 12.9393 16.0607 12.3536L20.7071 7.70711Z"}],{viewBox:"0 0 24 24"}),C([{d:"M18.381 11.1883C17.2189 10.3747 16.459 9.02583 16.459 7.49951C16.459 5.01423 18.4737 2.99951 20.959 2.99951C23.4443 2.99951 25.459 5.01423 25.459 7.49951C25.459 9.8794 23.6115 11.8278 21.2725 11.9888L20.046 16.1985L24.0342 15.6761C24.421 13.584 26.255 11.9995 28.459 11.9995C30.9443 11.9995 32.959 14.0142 32.959 16.4995C32.959 18.9848 30.9443 20.9995 28.459 20.9995C26.7488 20.9995 25.2614 20.0455 24.5 18.6407L20.5932 19.1524L24.3133 24.1467C24.6791 24.0506 25.0631 23.9995 25.459 23.9995C27.9443 23.9995 29.959 26.0142 29.959 28.4995C29.959 30.9848 27.9443 32.9995 25.459 32.9995C22.9737 32.9995 20.959 30.9848 20.959 28.4995C20.959 27.503 21.2829 26.5821 21.8312 25.8365L17.7796 20.3973L14.5364 23.5932C14.8075 24.172 14.959 24.8181 14.959 25.4995C14.959 27.9848 12.9443 29.9995 10.459 29.9995C7.9737 29.9995 5.95898 27.9848 5.95898 25.4995C5.95898 23.0142 7.9737 20.9995 10.459 20.9995C11.167 20.9995 11.8368 21.163 12.4327 21.4543L15.3164 18.6128L10.7037 16.7677C9.88486 17.6195 8.73383 18.1497 7.45898 18.1497C4.9737 18.1497 2.95898 16.1349 2.95898 13.6497C2.95898 11.1644 4.9737 9.14966 7.45898 9.14966C9.94427 9.14966 11.959 11.1644 11.959 13.6497C11.959 13.7785 11.9536 13.9062 11.9429 14.0323L16.9669 16.0418L18.381 11.1883ZM20.959 8.99951C20.1306 8.99951 19.459 8.32794 19.459 7.49951C19.459 6.67108 20.1306 5.99951 20.959 5.99951C21.7874 5.99951 22.459 6.67108 22.459 7.49951C22.459 8.32794 21.7874 8.99951 20.959 8.99951ZM5.95898 13.6497C5.95898 14.4781 6.63056 15.1497 7.45898 15.1497C8.28741 15.1497 8.95898 14.4781 8.95898 13.6497C8.95898 12.8212 8.28741 12.1497 7.45898 12.1497C6.63056 12.1497 5.95898 12.8212 5.95898 13.6497ZM18.017 18.1656L18.0154 18.1668L17.933 18.0831L17.9881 17.9454L18.017 18.1656ZM25.459 29.9995C24.6306 29.9995 23.959 29.3279 23.959 28.4995C23.959 27.6711 24.6306 26.9995 25.459 26.9995C26.2874 26.9995 26.959 27.6711 26.959 28.4995C26.959 29.3279 26.2874 29.9995 25.459 29.9995ZM8.95898 25.4995C8.95898 26.3279 9.63056 26.9995 10.459 26.9995C11.2874 26.9995 11.959 26.3279 11.959 25.4995C11.959 24.6711 11.2874 23.9995 10.459 23.9995C9.63056 23.9995 8.95898 24.6711 8.95898 25.4995ZM28.459 17.9995C27.6306 17.9995 26.959 17.3279 26.959 16.4995C26.959 15.6711 27.6306 14.9995 28.459 14.9995C29.2874 14.9995 29.959 15.6711 29.959 16.4995C29.959 17.3279 29.2874 17.9995 28.459 17.9995Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 36 36"}),C([{d:"M3.17123 12C3.05708 12 3 11.9429 3 11.8286V4.17143C3 4.05714 3.05708 4 3.17123 4H4.18636C4.30867 4 4.36982 4.05714 4.36982 4.17143V11.8286C4.36982 11.9429 4.30867 12 4.18636 12H3.17123Z"},{d:"M6.41997 12C6.30581 12 6.24874 11.9429 6.24874 11.8286V4.17143C6.24874 4.05714 6.30581 4 6.41997 4H8.64593C10.0484 4 11.1247 4.37333 11.8748 5.12C12.6249 5.85905 13 6.81905 13 8C13 9.18095 12.6249 10.1448 11.8748 10.8914C11.1247 11.6305 10.0484 12 8.64593 12H6.41997ZM7.61856 10.8571H8.62146C9.61622 10.8571 10.3623 10.6133 10.8597 10.1257C11.3652 9.63048 11.6179 8.9219 11.6179 8C11.6179 7.0781 11.3652 6.37333 10.8597 5.88571C10.3623 5.39048 9.61622 5.14286 8.62146 5.14286H7.61856V10.8571Z"}],{fill:"none",viewBox:"0 0 16 16"})),W=C([{d:"M13.2003 8.1999C13.2003 7.53716 12.663 6.9999 12.0003 6.9999C11.3376 6.9999 10.8003 7.53716 10.8003 8.1999C10.8003 8.86264 11.3376 9.3999 12.0003 9.3999C12.663 9.3999 13.2003 8.86264 13.2003 8.1999Z"},{d:"M11.0005 16.0094V11.9999C11.0005 11.4476 11.4482 10.9999 12.0005 10.9999C12.5528 10.9999 13.0005 11.4476 13.0005 11.9999V16.0094C13.0005 16.5617 12.5528 17.0094 12.0005 17.0094C11.4482 17.0094 11.0005 16.5617 11.0005 16.0094Z"},{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 24 24"}),$=(C([{d:"M19.0001 5.00635V18.9938H5.01269V16.0157C5.01269 15.4634 4.56498 15.0157 4.01269 15.0157C3.46041 15.0157 3.01269 15.4634 3.01269 16.0157V19.4938C3.01269 20.3222 3.68426 20.9938 4.51269 20.9938H19.5001C20.3286 20.9938 21.0001 20.3222 21.0001 19.4938V4.50635C21.0001 3.67792 20.3286 3.00635 19.5001 3.00635H4.51269C3.68426 3.00635 3.01269 3.67792 3.01269 4.50635V7.99164C3.01269 8.54392 3.46041 8.99164 4.01269 8.99164C4.56498 8.99164 5.01269 8.54392 5.01269 7.99164V5.00635H19.0001Z"},{d:"M12.8216 12.9645H4.00488C3.4526 12.9645 3.00488 12.5168 3.00488 11.9645C3.00488 11.4122 3.4526 10.9645 4.00488 10.9645H12.7507L11.4865 9.70028C11.0959 9.30976 11.0959 8.6766 11.4864 8.28607C11.8769 7.89554 12.5101 7.89553 12.9006 8.28605L15.5539 10.9393C16.1397 11.5251 16.1398 12.4748 15.554 13.0606L12.9007 15.7139C12.5101 16.1044 11.877 16.1044 11.4864 15.7139C11.0959 15.3234 11.0959 14.6902 11.4864 14.2997L12.8216 12.9645Z"}],{fill:"none",viewBox:"0 0 24 24"}),C([{d:"M13.9998 5.33337C13.0332 5.33337 12.4932 6.29337 12.7132 7.00671L10.3465 9.38004C10.1465 9.32004 9.85317 9.32004 9.65317 9.38004L7.95317 7.68004C8.17984 6.96671 7.63984 6.00004 6.6665 6.00004C5.69984 6.00004 5.15317 6.96004 5.37984 7.68004L2.33984 10.7134C1.6265 10.4934 0.666504 11.0334 0.666504 12C0.666504 12.7334 1.2665 13.3334 1.99984 13.3334C2.9665 13.3334 3.5065 12.3734 3.2865 11.66L6.31984 8.62004C6.51984 8.68004 6.81317 8.68004 7.01317 8.62004L8.71317 10.32C8.4865 11.0334 9.0265 12 9.99984 12C10.9665 12 11.5132 11.04 11.2865 10.32L13.6598 7.95337C14.3732 8.17337 15.3332 7.63337 15.3332 6.66671C15.3332 5.93337 14.7332 5.33337 13.9998 5.33337Z"},{d:"M10 6L10.6267 4.62L12 4L10.6267 3.38L10 2L9.38667 3.38L8 4L9.38667 4.62L10 6Z"},{d:"M2.33317 7.33333L2.6665 6L3.99984 5.66667L2.6665 5.33333L2.33317 4L1.99984 5.33333L0.666504 5.66667L1.99984 6L2.33317 7.33333Z"}],{fill:"none",viewBox:"0 0 16 16"}),C([{d:"M1.5 2.5A.5.5 0 012 2h.5a.5.5 0 010 1H2a.5.5 0 01-.5-.5zm2.5 0a.5.5 0 01.5-.5H10a.5.5 0 010 1H4.5a.5.5 0 01-.5-.5zM1.5 6a.5.5 0 01.5-.5h.5a.5.5 0 010 1H2a.5.5 0 01-.5-.5zM4 6a.5.5 0 01.5-.5H10a.5.5 0 010 1H4.5A.5.5 0 014 6zM1.5 9.5A.5.5 0 012 9h.5a.5.5 0 010 1H2a.5.5 0 01-.5-.5zm2.5 0a.5.5 0 01.5-.5H10a.5.5 0 010 1H4.5a.5.5 0 01-.5-.5z"}],{viewBox:"0 0 12 12"})),K=C([{d:"M8.08333 2C5.82583 2 4 3.82583 4 6.08333C4 9.14583 8.08333 13.6667 8.08333 13.6667C8.08333 13.6667 12.1667 9.14583 12.1667 6.08333C12.1667 3.82583 10.3408 2 8.08333 2ZM5.16667 6.08333C5.16667 4.47333 6.47333 3.16667 8.08333 3.16667C9.69333 3.16667 11 4.47333 11 6.08333C11 7.76333 9.32 10.2775 8.08333 11.8467C6.87 10.2892 5.16667 7.74583 5.16667 6.08333Z"},{d:"M8.08333 7.54167C8.88875 7.54167 9.54167 6.88875 9.54167 6.08333C9.54167 5.27792 8.88875 4.625 8.08333 4.625C7.27792 4.625 6.625 5.27792 6.625 6.08333C6.625 6.88875 7.27792 7.54167 8.08333 7.54167Z"}],{viewBox:"0 0 16 16"}),Y=(C([{d:"M4 4.00464C3.44772 4.00464 3 4.45235 3 5.00464C3 5.55692 3.44772 6.00464 4 6.00464H20C20.5523 6.00464 21 5.55692 21 5.00464C21 4.45235 20.5523 4.00464 20 4.00464H4ZM3 12.0046C3 11.4524 3.44772 11.0046 4 11.0046H20C20.5523 11.0046 21 11.4524 21 12.0046C21 12.5569 20.5523 13.0046 20 13.0046H4C3.44772 13.0046 3 12.5569 3 12.0046ZM3 19.0046C3 18.4524 3.44772 18.0046 4 18.0046H20C20.5523 18.0046 21 18.4524 21 19.0046C21 19.5569 20.5523 20.0046 20 20.0046H4C3.44772 20.0046 3 19.5569 3 19.0046Z",fillRule:"evenodd",clipRule:"evenodd"}],{viewBox:"0 0 24 24"}),C([{d:"M17.8851 3.00012C16.1647 3.00012 14.77 4.39478 14.77 6.11518C14.77 6.13746 14.7703 6.15969 14.7707 6.18185L8.04548 9.55522C7.51475 9.13562 6.84415 8.88513 6.11506 8.88513C4.39466 8.88513 3 10.2798 3 12.0002C3 13.7206 4.39466 15.1152 6.11506 15.1152C6.92759 15.1152 7.66746 14.8042 8.22206 14.2946L14.7842 17.5861C14.7748 17.6844 14.77 17.7841 14.77 17.8848C14.77 19.6052 16.1647 20.9999 17.8851 20.9999C19.6055 20.9999 21.0001 19.6052 21.0001 17.8848C21.0001 16.1644 19.6055 14.7698 17.8851 14.7698C16.9855 14.7698 16.1749 15.1511 15.6063 15.761L9.18362 12.5394C9.21418 12.3643 9.23011 12.1841 9.23011 12.0002C9.23011 11.7397 9.19813 11.4866 9.13789 11.2448L15.4618 8.07271C16.0329 8.77877 16.9062 9.23024 17.8851 9.23024C19.6055 9.23024 21.0001 7.83558 21.0001 6.11518C21.0001 4.39478 19.6055 3.00012 17.8851 3.00012ZM16.77 6.11518C16.77 5.49935 17.2692 5.00012 17.8851 5.00012C18.5009 5.00012 19.0001 5.49935 19.0001 6.11518C19.0001 6.73101 18.5009 7.23024 17.8851 7.23024C17.2692 7.23024 16.77 6.73101 16.77 6.11518ZM16.77 17.8848C16.77 17.269 17.2692 16.7698 17.8851 16.7698C18.5009 16.7698 19.0001 17.269 19.0001 17.8848C19.0001 18.5007 18.5009 18.9999 17.8851 18.9999C17.2692 18.9999 16.77 18.5007 16.77 17.8848ZM6.11506 10.8851C5.49923 10.8851 5 11.3844 5 12.0002C5 12.616 5.49923 13.1152 6.11506 13.1152C6.73089 13.1152 7.23011 12.616 7.23011 12.0002C7.23011 11.3844 6.73089 10.8851 6.11506 10.8851Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 24 24"})),J=C([{d:"M12.5 1.95402L9.39478 7h6.21042L12.5 1.95402zM8 13.2267V8H3.14661L8 13.2267z",fill:"#6AA1E0",stroke:"#6AA1E0"},{d:"M3.70317 1.51397l-2.4886 4.39165c-.426301.7523-.320861 1.69338.26136 2.33268l6.04537 6.638c.79334.8712 2.16402.8712 2.9574 0l5.9731-6.55864c.6164-.67688.6945-1.68592.1896-2.44963l-2.9558-4.47101C13.3153.836921 12.6887.5 12.0172.5H5.44322c-.72029 0-1.38494.387309-1.74005 1.01397zm.71559.76555L2.0846 6.39863c-.21316.37615-.16044.84669.13068 1.16634L8.26064 14.203c.39667.4356 1.08201.4356 1.47868 0l5.97308-6.55867c.3082-.33844.3473-.84296.0949-1.22482l-2.9559-4.471C12.6663 1.66846 12.353 1.5 12.0172 1.5H5.44322c-.10673 0-.21102.01701-.30956.0491l3.65479 5.48217L8.5 7.5h-.60092L4.41876 2.27952z",clipRule:"evenodd",fillRule:"evenodd",fill:"#9ECBFF"}],{viewBox:"0 0 17 16"}),X=C([{d:"M14 15H2c-1.104569 0-2-.9125-2-2.0381V3.04144C0 .935175 2.7527.212674 3.75116 2.05687l2.6288 4.85553c.73164 1.35138 2.61451 1.41584 3.43351.11756l.51543-.81709c.8927-1.41511 2.9884-1.18103 3.5591.39754l1.9887 5.50089c.0816.2256.1233.4641.1233.7045v.1461C16 14.0875 15.1046 15 14 15z",fill:"#6AA1E0"},{d:"M14 13.9809H2c-.55229 0-1-.4562-1-1.019V3.04144c0-1.05313 1.37635-1.41439 1.87558-.49228l2.6288 4.85553c1.09747 2.02706 3.92177 2.12376 5.15032.17634l.5154-.8171c.4463-.70755 1.4942-.59051 1.7795.19877l1.9887 5.5009c.0408.1128.0617.232.0617.3522v.1461c0 .5628-.4477 1.019-1 1.019zM2 15h12c1.1046 0 2-.9125 2-2.0381v-.1461c0-.2404-.0417-.4789-.1233-.7045L13.888 6.61041c-.5707-1.57857-2.6664-1.81265-3.5591-.39754l-.51543.81709c-.819 1.29828-2.70187 1.23382-3.43351-.11756l-2.6288-4.85553C2.7527.212674 0 .935175 0 3.04144v9.92046C0 14.0875.895431 15 2 15z",clipRule:"evenodd",fillRule:"evenodd",fill:"#9ECBFF"}],{viewBox:"0 0 16 16"}),ee=C([{d:"M13.6065 11.6175c-6.58148-.3068-5.18353-3.29506-9.24432-3.5934-.41895-.03078-.80827.21294-.99687.58831L1.31066 12.7019c-.19016.3785-.14859.8321.10719 1.1698l.52145.6883c.21005.2772.53781.4401.88565.4401H13.1751c.3478 0 .6756-.1629.8857-.4401l.5681-.75c.2309-.3048.2889-.7069.1534-1.0646l-.151-.3987c-.1615-.4264-.5693-.708-1.0248-.7292z",fill:"#6AA1E0"},{d:"M2.8388 14.8889H13.161c.8542 0 1.3889-.9237.9635-1.6645l-3.7262-6.48811c-.1934-.33678-.2952-.71836-.2952-1.10673V1.11111H5.89673v4.51845c0 .38837-.10178.76995-.2952 1.10672L1.87529 13.2244c-.42542.7408.10931 1.6645.96351 1.6645zm0 1.1111H13.161c1.7084 0 2.7779-1.8475 1.927-3.3289l-3.7262-6.48818a1.111173 1.111173 0 01-.1476-.55336V.555556C11.2142.248731 10.9655 0 10.6586 0H5.34117c-.30682 0-.55555.248731-.55555.555556V5.62956c0 .19418-.05089.38497-.1476.55336L.911776 12.6711C.060939 14.1525 1.13038 16 2.8388 16z",clipRule:"evenodd",fillRule:"evenodd",fill:"#9ECBFF"}],{viewBox:"0 0 16 16"}),te=C([{d:"M2.5 11.5V5h1v6.5c0 .2761.22386.5.5.5h7v1H4c-.82843 0-1.5-.6716-1.5-1.5zM11 4H5V3h6v1z",clipRule:"evenodd",fillRule:"evenodd",fill:"#6AA1E0"},{d:"M0 1.5c0-.552285.447715-1 1-1h4c.55228 0 1 .447715 1 1v4c0 .55228-.44772 1-1 1H1c-.552285 0-1-.44772-1-1v-4zM10 1.5c0-.552285.4477-1 1-1h4c.5523 0 1 .447715 1 1v4c0 .55228-.4477 1-1 1h-4c-.5523 0-1-.44772-1-1v-4zM11 9.5c-.5523 0-1 .44772-1 1v4c0 .5523.4477 1 1 1h4c.5523 0 1-.4477 1-1v-4c0-.55228-.4477-1-1-1h-4z",fill:"#9ECBFF"}],{viewBox:"0 0 16 16"}),ne=(C([{d:"M0 2C0 0.89543 0.895431 0 2 0H8C9.10457 0 10 0.895431 10 2V5V8C10 9.10457 9.10457 10 8 10H7.72727H2C0.895429 10 0 9.10457 0 8V2Z",fill:"#885EFF"},{d:"M9 5.25C9 4.83579 8.66421 4.5 8.25 4.5C7.83579 4.5 7.5 4.83579 7.5 5.25V7.5H5.25C4.83579 7.5 4.5 7.83579 4.5 8.25C4.5 8.66421 4.83579 9 5.25 9H7.5V11.25C7.5 11.6642 7.83579 12 8.25 12C8.66421 12 9 11.6642 9 11.25V9H11.25C11.6642 9 12 8.66421 12 8.25C12 7.83579 11.6642 7.5 11.25 7.5H9V5.25Z"}],{viewBox:"0 0 12 12"}),C([{d:"M2 6H14M2 10H14M7 2L5 14M11 2L9 14",useStroke:!0}],{fill:"none",viewBox:"0 0 16 16"})),re=C([{d:"M2 6H14M2 10H14M7 2L5 14M11 2L9 14",useStroke:!0},{Style:d,cx:13.5,cy:13.5,r:.5,fill:"white"}],{fill:"none",viewBox:"0 0 16 16"}),oe=C([{d:"M11 6L1 6M1 6L4.5 1.5M1 6L4.5 10.5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",useStroke:!0}],{fill:"none",viewBox:"0 0 12 12"}),ie=C([{d:"M1 6L11 6M11 6L7.5 1.5M11 6L7.5 10.5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",useStroke:!0}],{fill:"none",viewBox:"0 0 12 12"}),ae=C([{clipRule:"evenodd",d:"M13.6746.120381c.2097-.179711.5254-.15543.7051.054232L17 3.2317 19.6204.174613c.1797-.209663.4954-.233943.705-.054232.2097.179711.234.495361.0543.705024L17.6586 4l2.7211 3.17461c.1797.20967.1554.52532-.0543.70503-.2096.17971-.5253.15543-.705-.05424L17 4.76829 14.3797 7.8254c-.1798.20967-.4954.23395-.7051.05424-.2096-.17971-.2339-.49536-.0542-.70503l2.2925-2.67458H2.02357L4.8747 6.59726c.22244.16363.27013.4766.1065.69904-.16362.22245-.47659.27013-.69904.1065l-4.078428-3C.075639 4.30858 0 4.15905 0 4.00003c0-.15901.075639-.30855.203732-.40277L4.28216.597262c.22245-.163625.53542-.115942.69904.106502.16363.222444.11594.535416-.1065.699036L2.02357 3.50003H15.913L13.6204.825405c-.1797-.209663-.1554-.525313.0542-.705024z",fillRule:"evenodd"}],{viewBox:"0 0 21 8"}),ue=C([{clipRule:"evenodd",d:"M14.1429 4c0 1.57796 1.2791 2.85714 2.8571 2.85714S19.8571 5.57796 19.8571 4c0-1.57796-1.2791-2.85714-2.8571-2.85714S14.1429 2.42204 14.1429 4zm-1.1119.50003C13.277 6.47317 14.9602 8 17 8c2.2091 0 4-1.79086 4-4s-1.7909-4-4-4c-2.0398 0-3.723 1.52686-3.9691 3.50003H2.02357L4.8747 1.4028c.22245-.16362.27013-.476592.1065-.699036C4.81758.48132 4.50461.433637 4.28216.597262L.203732 3.59726C.075639 3.69148 0 3.84102 0 4.00003c0 .15902.075639.30855.203732.40277l4.078428 3c.22245.16363.53542.11595.69904-.1065.16363-.22244.11595-.53541-.1065-.69904L2.02357 4.50003H13.031z",fillRule:"evenodd"}],{viewBox:"0 0 21 8"}),ce=C([{d:"M2.5 13.5H2V14H2.5V13.5ZM2.5 11V10.5C2.22386 10.5 2 10.7239 2 11H2.5ZM5 10.5L5.35355 10.1464C5.20137 9.99427 4.96889 9.95654 4.77639 10.0528L5 10.5ZM13.5 2.5H14V2H13.5V2.5ZM6.86825 12.3945L7.09415 12.8406H7.09415L6.86825 12.3945ZM11 2.5V2C10.7239 2 10.5 2.22386 10.5 2.5L11 2.5ZM10.5 5L10.0528 4.77639C9.95654 4.96889 9.99427 5.20137 10.1464 5.35355L10.5 5ZM12.3945 6.86825L12.8406 7.09415V7.09415L12.3945 6.86825ZM3 13.5V11H2V13.5H3ZM2.5 11.5C3.00438 11.5 4.10964 11.5042 5.22361 10.9472L4.77639 10.0528C3.89036 10.4958 2.99562 10.5 2.5 10.5V11.5ZM13 2.5C13 6.28058 10.2234 10.1349 6.64234 11.9485L7.09415 12.8406C10.9373 10.8942 14 6.73395 14 2.5H13ZM6.64234 11.9485C5.31826 12.6191 3.90247 13 2.5 13V14C4.083 14 5.65267 13.5706 7.09415 12.8406L6.64234 11.9485ZM4.64645 10.8536C5.04439 11.2515 6.05469 12.2793 6.51134 12.7447L7.22515 12.0444C6.76964 11.5801 5.75561 10.5485 5.35355 10.1464L4.64645 10.8536ZM13.5 2L11 2V3L13.5 3V2ZM10.5 2.5C10.5 2.99562 10.4958 3.89036 10.0528 4.77639L10.9472 5.22361C11.5042 4.10964 11.5 3.00438 11.5 2.5L10.5 2.5ZM2.5 14C6.73395 14 10.8942 10.9373 12.8406 7.09415L11.9485 6.64234C10.1349 10.2234 6.28058 13 2.5 13L2.5 14ZM12.8406 7.09415C13.5706 5.65267 14 4.083 14 2.5L13 2.5C13 3.90247 12.6191 5.31826 11.9485 6.64234L12.8406 7.09415ZM10.1464 5.35355C10.5485 5.75561 11.5801 6.76964 12.0444 7.22515L12.7447 6.51134C12.2793 6.05469 11.2515 5.04439 10.8536 4.64645L10.1464 5.35355Z"}],{fill:"none",viewBox:"0 0 16 16"}),se=C([{clipRule:"evenodd",d:"M3 .5C1.61929.5.5 1.61929.5 3v2.54545c0 1.12446.80059 2.06192 1.86286 2.27349.18481.92811.92375 1.65648 1.8574 1.82569C4.50456 10.7129 5.47854 11.5 6.63635 11.5h2.36364C10.3807 11.5 11.5 10.3807 11.5 8.99999V6.63635c0-1.15784-.7871-2.13184-1.85544-2.41611-.16923-.93358-.89755-1.67247-1.82561-1.8573C7.60742 1.30063 6.66994.5 5.54546.5H3zm3.76553 1.81824C6.56859 1.83813 6.09651 1.5 5.54546 1.5H3c-.82843 0-1.5.67157-1.5 1.5v2.54545c0 .55103.33811 1.0231.81818 1.22005V4.81824c0-1.38071 1.11929-2.5 2.5-2.5h1.94735zm.5981 1c.55101 0 1.02305.33807 1.22002.81811h-1.9473c-1.38071 0-2.5 1.11929-2.5 2.5v1.94739c-.48007-.19696-.81817-.66902-.81817-1.22005V4.81824c0-.82843.67157-1.5 1.5-1.5h2.54545zm-.72728 1.81811c-.82842 0-1.5.67158-1.5 1.5v2.36364c0 .82842.67158 1.50001 1.5 1.50001h2.36364C9.82841 10.5 10.5 9.82841 10.5 8.99999V6.63635c0-.82842-.67159-1.5-1.50001-1.5H6.63635z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),le=C([{clipRule:"evenodd",d:"M9.86364 2.5H4.13636C3.68449 2.5 3.31818 2.94772 3.31818 3.5V7.5C3.31818 8.05228 3.68449 8.5 4.13636 8.5H9.86364C10.3155 8.5 10.6818 8.05228 10.6818 7.5V3.5C10.6818 2.94772 10.3155 2.5 9.86364 2.5ZM4.13636 1.5C3.23263 1.5 2.5 2.39543 2.5 3.5V7.5C2.5 8.60457 3.23263 9.5 4.13636 9.5H5.5V16.1667V16.5H4.13636C3.23263 16.5 2.5 17.3954 2.5 18.5V22.5C2.5 23.6046 3.23263 24.5 4.13636 24.5H9.86364C10.7674 24.5 11.5 23.6046 11.5 22.5V18.5C11.5 17.3954 10.7674 16.5 9.86364 16.5H6.5V16.1667C6.5 14.9394 7.61929 13.9444 9 13.9444H16C17.933 13.9444 19.5 12.5516 19.5 10.8333V9.5H21.8636C22.7674 9.5 23.5 8.60457 23.5 7.5V3.5C23.5 2.39543 22.7674 1.5 21.8636 1.5H16.1364C15.2326 1.5 14.5 2.39543 14.5 3.5V7.5C14.5 8.60457 15.2326 9.5 16.1364 9.5H18.5V10.8333C18.5 12.0606 17.3807 13.0556 16 13.0556H9C8.02066 13.0556 7.13526 13.4131 6.5 13.9893V9.5H9.86364C10.7674 9.5 11.5 8.60457 11.5 7.5V3.5C11.5 2.39543 10.7674 1.5 9.86364 1.5H4.13636ZM9.86364 17.5H6.5H5.5H4.13636C3.68449 17.5 3.31818 17.9477 3.31818 18.5V22.5C3.31818 23.0523 3.68449 23.5 4.13636 23.5H9.86364C10.3155 23.5 10.6818 23.0523 10.6818 22.5V18.5C10.6818 17.9477 10.3155 17.5 9.86364 17.5ZM16.1364 2.5H21.8636C22.3155 2.5 22.6818 2.94772 22.6818 3.5V7.5C22.6818 8.05228 22.3155 8.5 21.8636 8.5H16.1364C15.6845 8.5 15.3182 8.05228 15.3182 7.5V3.5C15.3182 2.94772 15.6845 2.5 16.1364 2.5Z",fillRule:"evenodd"}],{viewBox:"0 0 26 26"}),fe=C([{clipRule:"evenodd",d:"M3 3H9V9H3V3ZM10 2V9H17V16H24V24H17H16H10H9H2V17V16V10V9V2H10ZM16 23V17H10V23H16ZM17 23H23V17H17V23ZM16 16V10H10V16H16ZM9 10V16H3V10H9ZM9 17V23H3V17H9Z",fillRule:"evenodd"}],{viewBox:"0 0 26 26"}),de=C([{clipRule:"evenodd",d:"M7 7.31673V16.683L16.3811 11.9999L7 7.31673ZM5 6.50828C5 5.39362 6.17268 4.66835 7.16998 5.16622L18.1705 10.6579C19.2772 11.2103 19.2772 12.7895 18.1705 13.342L7.16997 18.8335C6.17267 19.3314 5 18.6061 5 17.4914V6.50828Z",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),pe=C([{d:"M8 4.13397C8.66667 4.51888 8.66667 5.48113 8 5.86603L2 9.33013C1.33333 9.71503 0.500001 9.2339 0.500001 8.4641L0.500001 1.5359C0.500001 0.766098 1.33333 0.284973 2 0.669873L8 4.13397Z"}],{fill:"none",viewBox:"0 0 9 10"}),he=(C([{clipRule:"evenodd",d:"M1.96418 2.81396l.00051.00125.00321.00781a2.81935 2.81935 0 00.01513.03575 5.6241 5.6241 0 00.06533.14565c.05928.12768.1499.31274.27269.536.24621.44764.6185 1.04289 1.12255 1.63589 1.01216 1.19077 2.51043 2.32382 4.55653 2.32382 2.04607 0 3.54437-1.13305 4.55657-2.32382.504-.593.8763-1.18825 1.1225-1.63589.1228-.22326.2134-.40832.2727-.536.0296-.0638.0514-.11315.0653-.14565a2.9375 2.9375 0 00.0152-.03575l.0032-.00781.0003-.00077.0001-.0003c.1027-.25619.3935-.38076.6498-.27825.2564.10256.3811.39355.2786.64994l-.4643-.1857c.4643.1857.4642.18589.4641.18611l-.0002.00052-.0006.00139-.0016.00415-.0057.01364a2.96627 2.96627 0 01-.0202.04786 6.41437 6.41437 0 01-.077.17173c-.0677.14576-.1685.35133-.3035.59681-.2694.48986-.6783 1.14462-1.2368 1.80162-.189.22233-.3964.44632-.6225.66501l.6576.65761c.1952.19526.1952.51184 0 .70711-.1953.19526-.5119.19526-.7071 0l-.7117-.71168c-.9142.69041-2.0549 1.23201-3.43477 1.33891v1.01921c0 .27615-.22385.49997-.5.49997-.27614 0-.5-.22382-.5-.49997V8.48092c-1.37986-.1069-2.52055-.6485-3.43477-1.33891l-.71167.71168c-.19527.19526-.51185.19526-.70711 0-.19526-.19527-.19526-.51185 0-.70711l.65761-.65761c-.22614-.21869-.43355-.44268-.62253-.66501-.55845-.657-.9674-1.31176-1.23682-1.80162-.13502-.24548-.23581-.45105-.30348-.59681a6.61544 6.61544 0 01-.077-.17173 3.90814 3.90814 0 01-.02024-.04786l-.00561-.01364-.00168-.00415-.00056-.00139-.00021-.00052c-.00009-.00022-.00017-.00041.46407-.18611l-.46424.1857c-.10255-.25639.02216-.54738.27855-.64994.25622-.10249.547.022.64973.27805l.00001.00002z",fillRule:"evenodd"}],{viewBox:"0 0 16 12"}),C([{clipRule:"evenodd",d:"M3.80186 8.41853C2.685 7.57447 1.87133 6.62097 1.51334 6.16691c.31756-.4896 1.0564-1.52552 2.14323-2.44326C4.76857 2.78465 6.20735 2 7.90819 2c1.70083 0 3.13961.78465 4.25161 1.72364 1.0868.91775 1.8257 1.95367 2.1432 2.44327-.358.45406-1.1716 1.40756-2.2885 2.25162-.961.72626-2.11317 1.34651-3.36953 1.52789.7645-.54373 1.2632-1.43684 1.2632-2.44642 0-1.65685-1.34314-3-3-3-1.65685 0-3 1.34315-3 3 0 .41355.08368.80755.23502 1.166a10.48883 10.48883 0 01-.34133-.24747zM7.90819 1c-2.02067 0-3.68067.93269-4.89679 1.95961C1.79468 3.98704.98474 5.13948.65114 5.65872.431 6.00134.45398 6.4359.7028 6.7539c.37363.47749 1.25923 1.52765 2.49614 2.46243C4.43124 10.1476 6.0596 11 7.90819 11c1.84858 0 3.47691-.8524 4.70921-1.78367 1.2369-.93478 2.1225-1.98494 2.4962-2.46244.2488-.318.2718-.75255.0516-1.09517-.3336-.51924-1.1435-1.67168-2.3602-2.69911C11.5889 1.93269 9.92886 1 7.90819 1z",fillRule:"evenodd"}],{viewBox:"0 0 16 12"}),C([{clipRule:"evenodd",d:"M4 4.00464C3.44772 4.00464 3 4.45235 3 5.00464C3 5.55692 3.44772 6.00464 4 6.00464H20C20.5523 6.00464 21 5.55692 21 5.00464C21 4.45235 20.5523 4.00464 20 4.00464H4ZM3 12.0046C3 11.4524 3.44772 11.0046 4 11.0046H20C20.5523 11.0046 21 11.4524 21 12.0046C21 12.5569 20.5523 13.0046 20 13.0046H4C3.44772 13.0046 3 12.5569 3 12.0046ZM3 19.0046C3 18.4524 3.44772 18.0046 4 18.0046H20C20.5523 18.0046 21 18.4524 21 19.0046C21 19.5569 20.5523 20.0046 20 20.0046H4C3.44772 20.0046 3 19.5569 3 19.0046Z",fillRule:"evenodd"}],{viewBox:"0 0 24 24"}),C([{clipRule:"evenOdd",d:"M3 0.5h6s3 0 3 3v6s0 3 -3 3h-6s-3 0 -3 -3v-6s0 -3 3 -3",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),C([{clipRule:"evenodd",d:"M12.0509 13.4635C10.7888 14.4283 9.21132 15.0015 7.5 15.0015C3.35786 15.0015 0 11.6436 0 7.50146C0 3.35933 3.35786 0.00146484 7.5 0.00146484C11.6421 0.00146484 15 3.35933 15 7.50146C15 9.21122 14.4279 10.7873 13.4647 12.0489L17.7077 16.292C18.0983 16.6825 18.0983 17.3156 17.7077 17.7062C17.3172 18.0967 16.6841 18.0967 16.2935 17.7062L12.0509 13.4635ZM13 7.50146C13 10.539 10.5376 13.0015 7.5 13.0015C4.46243 13.0015 2 10.539 2 7.50146C2 4.4639 4.46243 2.00146 7.5 2.00146C10.5376 2.00146 13 4.4639 13 7.50146Z",fillRule:"evenodd"}],{viewBox:"-3 -3 24 24"})),ve=(C([{clipRule:"evenodd",d:"M4 4.00464C3.44772 4.00464 3 4.45235 3 5.00464C3 5.55692 3.44772 6.00464 4 6.00464H20C20.5523 6.00464 21 5.55692 21 5.00464C21 4.45235 20.5523 4.00464 20 4.00464H4ZM3 12.0046C3 11.4524 3.44772 11.0046 4 11.0046H20C20.5523 11.0046 21 11.4524 21 12.0046C21 12.5569 20.5523 13.0046 20 13.0046H4C3.44772 13.0046 3 12.5569 3 12.0046ZM3 19.0046C3 18.4524 3.44772 18.0046 4 18.0046H20C20.5523 18.0046 21 18.4524 21 19.0046C21 19.5569 20.5523 20.0046 20 20.0046H4C3.44772 20.0046 3 19.5569 3 19.0046Z",fillRule:"evenodd"}],{viewBox:"0 0 24 24"}),C([{d:"M17.9907 6.06279C17.9889 6.05645 17.9858 6.05068 17.9835 6.04453C17.9783 6.03062 17.9727 6.01691 17.9651 6.00426C17.9611 5.99761 17.9561 5.99165 17.9515 5.98542C17.9435 5.97457 17.935 5.96415 17.9252 5.95475C17.9191 5.94893 17.9125 5.94367 17.9058 5.93849C17.9003 5.93422 17.8958 5.92896 17.8898 5.92516C17.8843 5.92161 17.8781 5.91988 17.8724 5.91682C17.8681 5.91452 17.8648 5.91104 17.8603 5.90898L12.1003 3.26172C12.0366 3.23242 11.9634 3.23242 11.8997 3.26172L6.13969 5.90898C6.13512 5.91109 6.13169 5.91467 6.12732 5.91703C6.1217 5.92001 6.11561 5.9217 6.11016 5.92516C6.10424 5.92896 6.09973 5.93422 6.09425 5.93849C6.08754 5.94367 6.08092 5.94893 6.07482 5.95475C6.06504 5.96415 6.05648 5.97457 6.04846 5.98542C6.04386 5.99165 6.03891 5.99761 6.03492 6.00426C6.02733 6.01691 6.02168 6.03062 6.01652 6.04453C6.01424 6.05068 6.01107 6.05645 6.00932 6.06279C6.00354 6.08353 6 6.1051 6 6.1273V7.80109C6 7.89508 6.05484 7.98039 6.14016 8.01941L8.87812 9.27042L6.13969 10.529C6.13523 10.531 6.13184 10.5346 6.12756 10.5369C6.12182 10.5399 6.11566 10.5416 6.11016 10.5452C6.10424 10.549 6.09973 10.5542 6.09425 10.5585C6.08754 10.5637 6.08092 10.5689 6.07482 10.5747C6.06504 10.5841 6.05648 10.5946 6.04846 10.6054C6.04386 10.6116 6.03891 10.6176 6.03492 10.6243C6.02733 10.6369 6.02168 10.6506 6.01652 10.6645C6.01424 10.6707 6.01107 10.6764 6.00932 10.6828C6.00354 10.7035 6 10.7251 6 10.7473V12.1811C6 12.2751 6.05484 12.3604 6.14016 12.3994L9.13998 13.7701L6.13969 15.149C6.13518 15.1511 6.13178 15.1546 6.12744 15.1569C6.12176 15.16 6.11561 15.1617 6.11016 15.1652C6.10424 15.169 6.09973 15.1742 6.09425 15.1785C6.08754 15.1837 6.08092 15.1889 6.07482 15.1947C6.06504 15.2041 6.05648 15.2146 6.04846 15.2254C6.04386 15.2316 6.03891 15.2376 6.03492 15.2443C6.02733 15.2569 6.02168 15.2706 6.01652 15.2845C6.01424 15.2907 6.01107 15.2964 6.00932 15.3028C6.00354 15.3235 6 15.3451 6 15.3673V16.8011C6 16.8951 6.05484 16.9804 6.14016 17.0194L11.9002 19.6512C11.932 19.6656 11.966 19.6729 12 19.6729C12.034 19.6729 12.068 19.6656 12.0998 19.6512L17.8598 17.0194C17.9452 16.9804 18 16.8951 18 16.8011V15.3673C18 15.3452 17.9965 15.3235 17.9907 15.3028C17.9889 15.2964 17.9858 15.2907 17.9835 15.2845C17.9783 15.2706 17.9727 15.2569 17.9651 15.2443C17.9611 15.2376 17.9561 15.2316 17.9515 15.2254C17.9435 15.2146 17.935 15.2041 17.9252 15.1947C17.9191 15.1889 17.9125 15.1837 17.9058 15.1785C17.9003 15.1742 17.8958 15.169 17.8898 15.1652C17.8843 15.1616 17.878 15.1598 17.8723 15.1567C17.868 15.1545 17.8647 15.151 17.8603 15.149L14.86 13.7701L17.8598 12.3994C17.9452 12.3604 18 12.2751 18 12.1811V10.7473C18 10.7252 17.9965 10.7035 17.9907 10.6828C17.9889 10.6764 17.9858 10.6707 17.9835 10.6645C17.9783 10.6506 17.9727 10.6369 17.9651 10.6243C17.9611 10.6176 17.9561 10.6116 17.9515 10.6054C17.9435 10.5946 17.935 10.5841 17.9252 10.5747C17.9191 10.5689 17.9125 10.5637 17.9058 10.5585C17.9003 10.5542 17.8958 10.549 17.8898 10.5452C17.8843 10.5416 17.878 10.5398 17.8722 10.5367C17.868 10.5344 17.8647 10.531 17.8603 10.529L15.1219 9.27042L17.8598 8.01941C17.9452 7.98039 18 7.89508 18 7.80109V6.1273C18 6.10523 17.9965 6.08353 17.9907 6.06279ZM12 17.735L6.81624 15.3664L9.71648 14.0335L11.9002 15.0312C11.932 15.0456 11.966 15.0529 12 15.0529C12.034 15.0529 12.068 15.0456 12.0998 15.0312L14.2835 14.0335L17.1838 15.3664L12 17.735ZM12.7194 12.7862L12.4311 12.918L12.143 13.0496L12 13.115L11.857 13.0496L11.5689 12.918L11.2806 12.7862L6.81624 10.7464L9.4546 9.53381L11.9002 10.6512C11.932 10.6656 11.966 10.6729 12 10.6729C12.034 10.6729 12.068 10.6656 12.0998 10.6512L14.5454 9.53381L17.1838 10.7464L12.7194 12.7862ZM12 3.74395L17.1838 6.12643L12.7194 8.16625L12.4311 8.29798L12.143 8.42964L12 8.49496L11.857 8.42964L11.5689 8.29798L11.2806 8.16625L6.81624 6.12643L12 3.74395Z"}],{viewBox:"0 0 24 24"}),C([{Style:h,height:5,rx:2.5,useStroke:!0,width:9,x:3.5,y:5.5},{Style:d,cx:6,cy:8,r:1.5}],{fill:"none",viewBox:"0 0 16 16"})),ge=C([{d:"M3 3V7.5C3 8.60457 3.89543 9.5 5 9.5H9",strokeLinecap:"round",strokeLinejoin:"round"}],{fill:"none",viewBox:"0 0 12 13"}),me=C([{Style:h,height:12,rx:1.5,width:3,x:1.5},{Style:h,height:12,rx:1.5,width:3,x:7.5}],{fill:"none",viewBox:"0 0 12 12"}),ye=C([{d:"M3.5 18V6c0-1.38071 1.11929-2.5 2.5-2.5h12c1.3807 0 2.5 1.11929 2.5 2.5v12c0 1.3807-1.1193 2.5-2.5 2.5H6c-1.38071 0-2.5-1.1193-2.5-2.5zM2 18V6c0-2.20914 1.79086-4 4-4h12c2.2091 0 4 1.79086 4 4v12c0 2.2091-1.7909 4-4 4H6c-2.20914 0-4-1.7909-4-4zm9.0935-8.41432c.3235-.25876.3759-.73073.1172-1.05417-.2588-.32345-.7308-.37589-1.0542-.11713L7.03148 10.9144c-.17791.1423-.28148.3578-.28148.5856 0 .2279.10357.4433.28148.5857l3.12502 2.5c.3234.2587.7954.2063 1.0542-.1172.2587-.3234.2063-.7954-.1172-1.0541L8.70058 11.5l2.39292-1.91432zM14.5 13.25c-.4142 0-.75.3358-.75.75s.3358.75.75.75H17c.4142 0 .75-.3358.75-.75s-.3358-.75-.75-.75h-2.5z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),be=C([{d:"M8.41421 9.50012L9.70715 8.20718L8.29294 6.79297L7 8.08591L5.70706 6.79297L4.29285 8.20718L5.58579 9.50012L4.29294 10.793L5.70715 12.2072L7 10.9143L8.29285 12.2072L9.70706 10.793L8.41421 9.50012Z"},{d:"M4 3H1C0.447715 3 0 3.44772 0 4C0 4.55228 0.447715 5 1 5V14.5002C1 15.3286 1.67157 16.0002 2.5 16.0002H11.5C12.3284 16.0002 13 15.3286 13 14.5002V5C13.5523 5 14 4.55228 14 4C14 3.44772 13.5523 3 13 3H10V1.5C10 0.671573 9.32843 0 8.5 0H5.5C4.67157 0 4 0.671574 4 1.5V3ZM6 3H8V2H6V3ZM11 5H3V14.0002H11V5Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 14 16"}),Ce=C([{d:"M21.5 12c0 5.2467-4.2533 9.5-9.5 9.5-5.24671 0-9.5-4.2533-9.5-9.5 0-5.24671 4.25329-9.5 9.5-9.5 5.2467 0 9.5 4.25329 9.5 9.5zm1.5 0c0 6.0751-4.9249 11-11 11-6.07513 0-11-4.9249-11-11C1 5.92487 5.92487 1 12 1c6.0751 0 11 4.92487 11 11zM12.75 7c0-.41421-.3358-.75-.75-.75s-.75.33579-.75.75v6c0 .4142.3358.75.75.75h4c.4142 0 .75-.3358.75-.75s-.3358-.75-.75-.75h-3.25V7z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),we=C([{d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),xe=C([{d:"M8.29544 3.31064c.38072.16317.55709.60408.39392.9848L6.44279 9.53743c-.55663 1.29877-2.34358 1.43637-3.0925.23813L1.864 7.3975c-.21953-.35125-.11275-.81397.2385-1.0335.35125-.21953.81397-.11275 1.0335.2385l1.48629 2.37807c.10699.17118.36227.15152.44179-.03402l2.24656-5.24199c.16317-.38072.60408-.55709.9848-.39392zM10.75 7.5c0-.41421.3358-.75.75-.75H22c.4142 0 .75.33579.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.33579-.75-.75zM10.75 16.5c0-.4142.3358-.75.75-.75H22c.4142 0 .75.3358.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.3358-.75-.75zM5 19c1.10457 0 2-.8954 2-2s-.89543-2-2-2-2 .8954-2 2 .89543 2 2 2zm0 1.5c1.933 0 3.5-1.567 3.5-3.5S6.933 13.5 5 13.5 1.5 15.067 1.5 17s1.567 3.5 3.5 3.5z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),Oe=C([{d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),Ee=C([{Style:d,cx:9.99874,cy:10.0026,r:2.81124},{clipRule:"evenodd",d:"M10.0004 0.0273438C10.5389 0.0273438 10.9754 0.463866 10.9754 1.00234V2.8765C10.9754 3.41498 10.5389 3.8515 10.0004 3.8515C9.46191 3.8515 9.02539 3.41498 9.02539 2.8765V1.00234C9.02539 0.463866 9.46191 0.0273438 10.0004 0.0273438ZM1.81682 4.62693C2.19758 4.24617 2.81492 4.24617 3.19568 4.62693L4.13276 5.56401C4.51352 5.94477 4.51352 6.56211 4.13276 6.94287C3.752 7.32363 3.13466 7.32363 2.7539 6.94287L1.81682 6.00579C1.43606 5.62503 1.43606 5.00769 1.81682 4.62693ZM18.189 4.62693C18.5697 5.00769 18.5697 5.62503 18.189 6.00579L17.2519 6.94287C16.8711 7.32363 16.2538 7.32363 15.873 6.94287C15.4923 6.56211 15.4923 5.94477 15.873 5.56401L16.8101 4.62693C17.1909 4.24617 17.8082 4.24617 18.189 4.62693Z",fillRule:"evenodd"},{clipRule:"evenodd",d:"M10.0004 19.9766C10.5389 19.9766 10.9754 19.54 10.9754 19.0016V17.1274C10.9754 16.5889 10.5389 16.1524 10.0004 16.1524C9.46191 16.1524 9.02539 16.5889 9.02539 17.1274V19.0016C9.02539 19.54 9.46191 19.9766 10.0004 19.9766ZM1.81682 15.3756C2.19758 15.7563 2.81492 15.7563 3.19568 15.3756L4.13276 14.4385C4.51352 14.0577 4.51352 13.4404 4.13276 13.0596C3.752 12.6789 3.13466 12.6789 2.7539 13.0596L1.81682 13.9967C1.43606 14.3775 1.43606 14.9948 1.81682 15.3756ZM18.189 15.3756C18.5697 14.9948 18.5697 14.3775 18.189 13.9967L17.2519 13.0596C16.8711 12.6789 16.2538 12.6789 15.873 13.0596C15.4923 13.4404 15.4923 14.0577 15.873 14.4385L16.8101 15.3756C17.1909 15.7563 17.8082 15.7563 18.189 15.3756Z",fillRule:"evenodd"}],{viewBox:"0 0 20 20"}),Se=C([{d:"M1.375 8.93768C1.375 10.0768 2.29841 11.0002 3.4375 11.0002C4.57659 11.0002 5.5 10.0768 5.5 8.93768C5.5 7.7986 4.57659 6.87519 3.4375 6.87519C2.29841 6.87519 1.375 7.7986 1.375 8.93768ZM3.4375 5.50019C1.53902 5.50019 0 7.03921 0 8.93768C0 10.8362 1.53902 12.3752 3.4375 12.3752C5.33598 12.3752 6.875 10.8362 6.875 8.93768C6.875 7.03921 5.33598 5.50019 3.4375 5.50019Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M8.90222 0.47028C9.02229 0.830491 8.82762 1.21984 8.46741 1.33991C7.38573 1.70047 6.41052 1.72953 5.66623 1.62818L6.85017 8.52239C6.91259 8.89692 6.67505 9.55341 6.30052 9.61583C5.92599 9.67825 5.51399 8.86586 5.45157 8.49133L4.13435 0.800711C4.09184 0.545643 4.19605 0.288295 4.40405 0.134669C4.61206 -0.0189577 4.88867 -0.0428752 5.11996 0.0727678C5.4119 0.218738 6.55203 0.528986 8.03259 0.0354667C8.3928 -0.0846036 8.78215 0.110069 8.90222 0.47028Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M8.25 18.5627C8.25 19.7018 9.17341 20.6252 10.3125 20.6252C11.4516 20.6252 12.375 19.7018 12.375 18.5627C12.375 17.4236 11.4516 16.5002 10.3125 16.5002C9.17341 16.5002 8.25 17.4236 8.25 18.5627ZM10.3125 15.1252C8.41402 15.1252 6.875 16.6642 6.875 18.5627C6.875 20.4612 8.41402 22.0002 10.3125 22.0002C12.211 22.0002 13.75 20.4612 13.75 18.5627C13.75 16.6642 12.211 15.1252 10.3125 15.1252Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M15.7772 10.0953C15.8973 10.4555 15.7026 10.8448 15.3424 10.9649C14.2607 11.3255 13.2855 11.3545 12.5412 11.2532L13.7345 18.2343C13.7969 18.6088 13.5501 19.1784 13.1755 19.2408C12.801 19.3032 12.4183 18.655 12.3558 18.2804L11.0094 10.4257C10.9668 10.1706 11.0711 9.91329 11.2791 9.75967C11.4871 9.60604 11.7637 9.58212 11.995 9.69777C12.2869 9.84374 13.427 10.154 14.9076 9.66046C15.2678 9.54039 15.6571 9.73507 15.7772 10.0953Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M16.5 4.8125C16.5 5.95159 17.4234 6.875 18.5625 6.875C19.7016 6.875 20.625 5.95159 20.625 4.8125C20.625 3.67341 19.7016 2.75 18.5625 2.75C17.4234 2.75 16.5 3.67341 16.5 4.8125ZM18.5625 1.375C16.664 1.375 15.125 2.91402 15.125 4.8125C15.125 6.71098 16.664 8.25 18.5625 8.25C20.461 8.25 22 6.71098 22 4.8125C22 2.91402 20.461 1.375 18.5625 1.375Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 22 22"}),ke=C([{d:"M7.85355.146447c-.19526-.195263-.51184-.195263-.7071 0-.19527.195262-.19527.511844 0 .707106L11.1464 4.85355c.1953.19527.5119.19527.7072 0 .1952-.19526.1952-.51184 0-.7071L7.85355.146447zM.146447 4.85355c-.195263-.19526-.195263-.51184 0-.7071L4.14645.146447c.19526-.195262.51184-.195262.7071 0 .19527.195262.19527.511844 0 .707106L.853553 4.85355c-.195262.19527-.511844.19527-.707106 0zM5.29672 3.49992c.39053-.39052 1.02369-.39052 1.41422 0l1.79289 1.7929c.39053.39052.39052 1.02369 0 1.41421l-1.79289 1.7929c-.39053.39052-1.02369.39052-1.41422-.00001L3.50383 6.70703c-.39052-.39052-.39052-1.02369 0-1.41421l1.79289-1.7929zm.70711.70711L4.21094 5.99992l1.79289 1.7929 1.79289-1.79289-1.79289-1.7929zm1.14262 6.93937c-.19527.1953-.19527.5119 0 .7072.19526.1952.51184.1952.7071 0l4.00005-4.00005c.1952-.19526.1952-.51184 0-.7071-.1953-.19527-.5119-.19527-.7072 0L7.14645 11.1464zM.146447 7.14645c.195262-.19527.511844-.19527.707106 0L4.85355 11.1464c.19527.1953.19527.5119 0 .7072-.19526.1952-.51184.1952-.7071 0L.146447 7.85355c-.195263-.19526-.195263-.51184 0-.7071z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 12 12"}),Pe=C([{d:"M8.67625 7.82429C8.48671 8.13404 8.61933 8.53116 8.9436 8.69464C9.26787 8.85812 9.6606 8.72561 9.85513 8.41896C10.5416 7.33682 11.5276 6.47056 12.6997 5.92987C14.0715 5.29701 15.6173 5.14749 17.085 5.50568C18.5526 5.86388 19.8557 6.70866 20.7818 7.90233C21.7079 9.096 22.2023 10.5682 22.1845 12.0788C22.1667 13.5895 21.6377 15.0496 20.6837 16.2211C19.7298 17.3926 18.4071 18.2064 16.9314 18.5299C15.4557 18.8534 13.9139 18.6675 12.5573 18.0024C11.3984 17.4343 10.433 16.545 9.77227 15.447C9.58502 15.1358 9.19553 14.9941 8.86749 15.1499C8.53946 15.3057 8.39751 15.6995 8.5797 16.0137C9.37152 17.379 10.5525 18.4842 11.9785 19.1832C13.6018 19.9791 15.4469 20.2016 17.213 19.8145C18.979 19.4273 20.5619 18.4534 21.7035 17.0514C22.8451 15.6495 23.4781 13.9022 23.4994 12.0943C23.5208 10.2865 22.9291 8.52472 21.8208 7.09623C20.7126 5.66774 19.1532 4.65677 17.3968 4.22811C15.6403 3.79945 13.7905 3.97839 12.1488 4.73574C10.7068 5.40099 9.50004 6.47805 8.67625 7.82429ZM0.219185 12.5303C-0.0737079 12.2375 -0.0737079 11.7626 0.219185 11.4697L4.71918 6.96968C5.01208 6.67679 5.48695 6.67679 5.77985 6.96968C6.07274 7.26258 6.07274 7.73745 5.77985 8.03034L2.56017 11.25L15.7495 11.25C16.1637 11.25 16.4995 11.5858 16.4995 12C16.4995 12.4142 16.1637 12.75 15.7495 12.75L2.56017 12.75L5.77985 15.9697C6.07274 16.2626 6.07274 16.7375 5.77985 17.0303C5.48695 17.3232 5.01208 17.3232 4.71918 17.0303L0.219185 12.5303Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),je=C([{d:"M30.1102 48.0621L14.9922 63.1801C13.3487 64.8236 10.6841 64.8236 9.04056 63.1801C7.39707 61.5366 7.39707 58.872 9.04057 57.2285L23.8838 42.3852C28.2166 38.0525 30.9235 32.3587 31.5487 26.2632L32.2813 19.1201C32.5221 16.7718 33.5649 14.5784 35.2341 12.9092L37.1676 10.9757C41.0008 7.1425 46.7471 6.3885 51.3329 8.71364L42.1808 17.8658C39.4447 20.6019 39.4446 25.038 42.1808 27.7742L43.3136 28.907C46.0498 31.6432 50.4859 31.6431 53.222 28.907L62.3742 19.7549C64.6993 24.3407 63.9453 30.087 60.1121 33.9202L57.8912 36.1411C56.337 37.6953 54.3369 38.7263 52.1694 39.0906L45.262 40.2516C39.5221 41.2163 34.2258 43.9465 30.1102 48.0621ZM34.4792 8.28718C39.8094 2.95691 47.9612 2.16772 54.1269 5.91963C55.1985 6.57166 56.21 7.36084 57.1363 8.28717L44.8693 20.5543C43.6179 21.8056 43.6179 23.8344 44.8693 25.0857L46.0021 26.2185C47.2534 27.4699 49.2822 27.4699 50.5336 26.2185L62.8006 13.9515C63.727 14.8778 64.5161 15.8893 65.1682 16.9609C68.9201 23.1266 68.1309 31.2784 62.8006 36.6086L60.5797 38.8296C58.4664 40.9429 55.7468 42.3448 52.7996 42.8401L45.8922 44.0011C40.932 44.8348 36.3552 47.194 32.7987 50.7506L17.6807 65.8686C14.5524 68.9969 9.48038 68.9969 6.35208 65.8686C3.22378 62.7403 3.22379 57.6683 6.35209 54.54L21.1953 39.6967C24.9098 35.9823 27.2305 31.101 27.7664 25.8753L28.499 18.7322C28.8291 15.5141 30.2582 12.5082 32.5456 10.2207L34.4792 8.28718ZM15.5941 58.8675C16.188 58.2736 16.188 57.3106 15.5941 56.7167C15.0002 56.1228 14.0372 56.1228 13.4433 56.7167L11.8412 58.3188C11.2473 58.9127 11.2473 59.8757 11.8412 60.4696C12.4351 61.0635 13.3981 61.0635 13.992 60.4696L15.5941 58.8675Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 74 73"})},40656:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var r=1.5*n(49125).iI},19963:function(e,t,n){"use strict";n.d(t,{Av:function(){return i},GQ:function(){return o},UI:function(){return r},WU:function(){return u},qJ:function(){return c},u:function(){return a},yX:function(){return s}});var r="rgba(255, 255, 255, 0.3)",o="#787A85",i="#AEAEAE",a="rgba(174, 174, 174, 0.5)",u="#FFFFFF",c="#232429",s="#2C2C2C"},73899:function(e,t,n){"use strict";n.d(t,{$R:function(){return D},AU:function(){return M},CM:function(){return S},CN:function(){return F},Cj:function(){return Z},Ck:function(){return a},E5:function(){return r},EG:function(){return I},Ej:function(){return o},Jm:function(){return i},Or:function(){return b},Qr:function(){return w},Rx:function(){return H},S0:function(){return f},Se:function(){return C},Uq:function(){return B},Wd:function(){return v},XV:function(){return q},X_:function(){return O},YU:function(){return T},ZA:function(){return g},Zl:function(){return _},_p:function(){return R},a$:function(){return k},cM:function(){return l},dw:function(){return h},er:function(){return x},gN:function(){return u},hM:function(){return A},hl:function(){return E},hw:function(){return V},iW:function(){return N},kW:function(){return W},nQ:function(){return y},ns:function(){return d},pF:function(){return p},pP:function(){return L},pp:function(){return G},rp:function(){return m},t0:function(){return s},t4:function(){return j},uH:function(){return Q},ur:function(){return c},xA:function(){return U},xp:function(){return P},zq:function(){return z}});var r="#060606",o="#2A60FE",i="rgba(72, 119, 255, 0.5)",a="#4877FF",u="#86E2FF",c="#CFF3FF",s="#5982ff",l="#9ECBFF",f="#1752FF",d="#B9BFCA",p="#B1B8C3",h="#4E4E4E",v="#D8DCE3",g="#2FCB52",m="#FBFCFD",y="#2FCB52",b="#8ADE00",C="#E8F8CC",w="#24B400",x="#0F4CFF",O="#B98D95",E="#FF4FF8",S="#FFB9FC",k="#6B50D7",P="rgba(125, 85, 236, 0.5)",j="#7D55EC",L="rgba(201, 206, 218, 0.12)",M="rgba(250, 248, 254, 0.14)",R="#C4B9EF",A="#FF144D",_="#FFA1B8",T="#FFD0DB",B="#F9FAFC",Z="#FFFFFF",D="#FFCC19",I="#FFEBA3",F="rgba(255, 204, 25, 0.5)",H="#F2F2F2",V="#D5D7DC",N="#B4B8C0",z="#70747C",U="#51535C",q="linear-gradient(95.24deg, #4877FF 0.93%, #7D55EC 54%, #B98D95 100.82%)",Q="linear-gradient(98.99deg, #2ECDF7 8.49%, #0066FF 102.8%)",G="#fc6949",W="rgba(252, 105, 73, 0.5)"},2005:function(e,t,n){"use strict";n.d(t,{LX:function(){return a},Vp:function(){return l},YC:function(){return u},iI:function(){return s},nF:function(){return i},ry:function(){return c},v$:function(){return f}});var r="Helvetica Neue, Helvetica, sans-serif",o="monospace",i="".concat("Roboto Bold",", ").concat(r),a="".concat("Roboto Light",", ").concat(r),u="".concat("Roboto Medium",", ").concat(r),c="".concat("Roboto Regular",", ").concat(r),s="".concat("Roboto Thin",", ").concat(r),l="".concat("Fira Code Regular",", ").concat(o),f=("".concat("Fira Code Medium",", ").concat(o),"".concat("Fira Code Bold",", ").concat(o))},31012:function(e,t,n){"use strict";n.d(t,{Al:function(){return c},BL:function(){return f},Bu:function(){return m},HC:function(){return g},J5:function(){return i},MJ:function(){return l},QU:function(){return p},T6:function(){return d},VK:function(){return a},aQ:function(){return s},dN:function(){return u},i3:function(){return o},iD:function(){return v},ln:function(){return h},x_:function(){return r}});var r=16,o=14,i=12,a=8,u=20,c=18,s="\n font-size: 56px;\n line-height: ".concat(72,"px;\n"),l="\n font-size: 40px;\n line-height: ".concat(48,"px;\n"),f="\n font-size: 32px;\n line-height: ".concat(42,"px;\n"),d="\n font-size: 20px;\n line-height: ".concat(28,"px;\n"),p="\n font-size: 24px;\n line-height: ".concat(34,"px;\n"),h=("\n font-size: 18px;\n line-height: ".concat(28,"px;\n"),"\n font-size: ".concat(r,"px;\n line-height: 22px;\n")),v="\n font-size: ".concat(o,"px;\n line-height: ").concat(u,"px;\n"),g=("\n font-size: ".concat(o,"px;\n line-height: ").concat(u,"px;\n"),"\n font-size: 12px;\n line-height: ".concat(c,"px;\n")),m="\n font-size: 12px;\n line-height: 12px;\n"},90880:function(e,t,n){"use strict";n.d(t,{Xh:function(){return r},eR:function(){return o}});n(31969);var r=function(e,t){return"\n -webkit-".concat(e,": ").concat(t,";\n -moz-").concat(e,": ").concat(t,";\n -ms-").concat(e,": ").concat(t,";\n ").concat(e,": ").concat(t,";\n")},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0.1s all linear";return r("transition",e)}},23831:function(e,t,n){"use strict";var r=n(73899),o=n(19963);t.Z={accent:{alert:"#F6540B",blue:r.Ck,blueLight:r.Jm,contentDefaultTransparent:o.u,cyan:"#65E3FF",cyanTransparent:"rgba(101, 227, 255, 0.12)",dbt:r.pp,dbtLight:r.kW,info:"#00ABFF",infoTransparent:"rgba(0, 171, 255, 0.5)",negative:"#FF1E59",negativeTransparent:"rgba(255, 30, 89, 0.3)",pink:r.hl,pinkLight:r.CM,positive:"#00A81A",primaryTransparent:"rgba(155, 108, 167, 0.5)",purple:r.t4,purpleLight:r.xp,teal:"#00B4CC",tealLight:"rgba(0, 180, 204, 0.5)",warning:"#DD9900",warningTransparent:"rgba(221, 153, 0, 0.5)",yellow:r.$R,yellowLight:r.CN},background:{chartBlock:"#2E3036",codeArea:"#1E1F24",codeTextarea:"#000000",content:"#1B1C20",danger:r.YU,dark:r.pF,header:"#1B1B1B",menu:r.er,muted:r.Uq,navigation:"#EDEDED",output:"#2E3036",page:"#1E1F24",panel:"#232429",popup:"#27292E",row:o.yX,row2:r.xA,scrollbarThumb:"rgba(100, 100, 100, 0.5)",scrollbarThumbHover:"rgba(255, 255, 255, 0.3)",scrollbarTrack:"#2E3036",success:r.Or,table:"#292A2F"},borders:{contrast:r.Cj,danger:r.hM,dark:"#000000",info:r.$R,light:"#2F3034",medium:"#1C1C1C",medium2:"#141414",success:r.ZA},brand:{earth100:"#C6EEDB",earth200:"#9DDFBF",earth300:"#6BBF96",earth400:"#37A46F",earth400Transparent:"rgba(55, 164, 111, 0.4)",earth500:"#00954C",energy100:"#FFF4BA",energy200:"#FFED92",energy300:"#FFE662",energy400:"#FFDA19",energy400Transparent:"rgba(255, 218, 25, 0.04)",energy500:"#F6C000",fire100:"#FFD7E0",fire200:"#FFA3B9",fire300:"#FF547D",fire400:"#FF144D",fire400Transparent:"rgba(255, 20, 77, 0.4)",fire500:"#EB0032",stone100:"#F3E6D7",stone200:"#E3D4C2",stone400:"#BFA78B",stone500:"#AF8859",water100:"#BDCEFF",water200:"#81A1FF",water300:"#517DFF",water400:"#2A60FE",water400Transparent:"rgba(42, 96, 254, 0.4)",water500:"#0F4CFF",wind100:"#EEEAFF",wind200:"#CCC1F4",wind300:"#A698DD",wind400:"#6B50D7",wind400SuperTransparent:"rgba(107, 80, 215, 0.12)",wind400Transparent:"rgba(107, 80, 215, 0.4)",wind500:"#4E32BC"},chart:{backgroundPrimary:r.t4,backgroundSecondary:r.hM,backgroundTertiary:r.gN,button1:r.Ck,button2:r.$R,button3:r.Or,button4:r.hl,button5:r.X_,lines:"#9B6CA7",primary:r.a$,secondary:r.hM,tertiary:r.Ej},content:{active:o.WU,default:o.Av,disabled:o.UI,inverted:o.yX,muted:o.GQ},elevation:{visualizationAccent:"#996CFF",visualizationAccentAlt:"#C1ACF7"},feature:{active:r.AU,disabled:r.pP},icons:{neutral:"#787878"},interactive:{activeBorder:r.E5,checked:r.E5,dangerBorder:r.hM,defaultBackground:"#36383F",defaultBorder:"#1C1C1C",disabledBorder:r.pF,focusBackground:r.pF,focusBorder:r.gN,hoverBackground:r.dw,hoverBorder:r.ns,hoverOverlay:"rgba(255, 255, 255, 0.1)",linkPrimary:r.S0,linkPrimaryHover:r.Ck,linkPrimaryLight:r.t0,linkSecondary:r.a$,linkSecondaryDisabled:r._p,rowHoverBackground:"rgba(0, 0, 0, 0.1)"},loader:{color:"#EB0032",colorInverted:r.Or},logo:{color:r.Cj},monotone:{black:r.E5,blackTransparent:"rgba(0, 0, 0, 0.6)",gray:r.pF,grey100:r.Rx,grey200:r.hw,grey300:r.iW,grey400:r.zq,grey500:r.xA,purple:r.a$,white:r.Cj},neutral:{n100:"#E7E8EA",n200:"#D8DADE",n300:"#CBCCD0",n400:"#BCBEC4",n500:"#AEB0B6"},progress:{negative:r.hM,positive:r.a$},shadow:{base:"12px 40px 120px rgba(106, 117, 139, 0.4)",menu:"4px 10px 20px rgba(6, 6, 6, 0.12)",popup:"10px 20px 40px rgba(0, 0, 0, 0.2)",small:"0px, 4px, rgba(0, 0, 0, 0.25)",window:"0px 10px 60px rgba(0, 0, 0, 0.7)"},status:{negative:r.hM,positive:r.Qr},text:{fileBrowser:o.GQ}}},31969:function(e,t,n){"use strict";var r=n(73899);t.Z={accent:{alert:"#F6540B",blue:r.Ck,cyan:"#65E3FF",cyanTransparent:"rgba(101, 227, 255, 0.12)",info:"#00ABFF",infoTransparent:"rgba(0, 171, 255, 0.5)",negative:"#FF1E59",negativeTransparent:"rgba(255, 30, 89, 0.3)",positive:"#00A81A",primaryTransparent:"rgb(155, 108, 167, 0.5)",purple:r.a$,warning:"#DD9900",warningTransparent:"rgba(221, 153, 0, 0.5)",yellow:r.$R},background:{codeArea:"#161617",danger:r.YU,dark:r.pF,header:r.Uq,menu:r.er,muted:r.Uq,navigation:"#EDEDED",page:r.Cj,panel:"#232429",row:r.rp,scrollbarThumb:"rgba(0, 0, 0, 0.5)",scrollbarThumbHover:"rgba(255, 255, 255, 0.3)",scrollbarTrack:"rgba(39, 42, 47, 0.3)",success:r.Se,table:r.Cj},borders:{danger:r.hM,dark:"#000000",info:r.$R,light:"#2F3034",medium:"#D5D7DC",success:r.ZA},brand:{earth100:"#C6EEDB",earth200:"#9DDFBF",earth300:"#6BBF96",earth400:"#37A46F",earth400Transparent:"rgba(55, 164, 111, 0.4)",earth500:"#00954C",energy100:"#FFF4BA",energy200:"#FFED92",energy300:"#FFE662",energy400:"#FFDA19",energy400Transparent:"rgba(255, 218, 25, 0.04)",energy500:"#F6C000",fire100:"#FFD7E0",fire200:"#FFA3B9",fire300:"#FF547D",fire400:"#FF144D",fire400Transparent:"rgba(255, 20, 77, 0.4)",fire500:"#EB0032",stone100:"#F3E6D7",stone200:"#E3D4C2",stone400:"#BFA78B",stone500:"#AF8859",water100:"#BDCEFF",water200:"#81A1FF",water300:"#517DFF",water400:"#2A60FE",water400Transparent:"rgba(42, 96, 254, 0.4)",water500:"#0F4CFF",wind100:"#EEEAFF",wind200:"#CCC1F4",wind300:"#A698DD",wind400:"#6B50D7",wind400SuperTransparent:"rgba(107, 80, 215, 0.12)",wind400Transparent:"rgba(107, 80, 215, 0.4)",wind500:"#4E32BC"},chart:{backgroundDanger:r.Zl,backgroundPrimary:r._p,backgroundSecondary:r.Zl,backgroundTertiary:r.ur,button1:r.Ck,button2:r.$R,button3:r.nQ,danger:r.hM,lines:"#9B6CA7",primary:r.a$,secondary:r.hM,tertiary:r.gN},content:{active:r.E5,default:r.E5,disabled:r.Wd,inverted:r.Cj,muted:r.pF},elevation:{visualizationAccent:"#996CFF",visualizationAccentAlt:"#C1ACF7"},feature:{active:r.AU,disabled:r.pP},icons:{neutral:"#787878"},interactive:{activeBorder:r.E5,checked:r._p,dangerBorder:r.hM,defaultBackground:r.Cj,defaultBorder:r.Wd,disabledBorder:r.pF,focusBackground:r.pF,focusBorder:r.gN,hoverBackground:r.Uq,hoverBorder:r.ns,linkPrimary:r.Ej,linkSecondary:r.a$,linkSecondaryDisabled:r._p},loader:{color:r.Or,colorInverted:"#EB0032"},monotone:{black:r.E5,blackTransparent:"rgba(0, 0, 0, 0.6)",gray:r.pF,grey100:"#F2F2F2",grey200:"#D5D7DC",grey300:"#B4B8C0",grey400:"#70747C",grey500:"#28292C",purple:r.a$,white:r.Cj},neutral:{n100:"#E7E8EA",n200:"#D8DADE",n300:"#CBCCD0",n400:"#BCBEC4",n500:"#AEB0B6"},progress:{negative:r.hM,positive:r.a$},shadow:{base:"12px 40px 120px rgba(106, 117, 139, 0.4)",menu:"4px 10px 20px rgba(6, 6, 6, 0.12)",popup:"10px 20px 40px rgba(0, 0, 0, 0.2)"},status:{negative:r.hM,positive:r.Qr}}},30332:function(e,t,n){"use strict";n.d(t,{gz:function(){return l},qt:function(){return s}});var r=n(39421),o=n(56663),i=n.n(o),a=n(23831),u=n(31969),c=n(55361);var s="current_theme";function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e){var o=i()(e);t=o[s]}else t=r.Z.get(s,c.Hu);return Number(t)===n?0===n?u.Z:a.Z:1===n?a.Z:u.Z}},73942:function(e,t,n){"use strict";n.d(t,{BG:function(){return c},D7:function(){return s},M8:function(){return i},PV:function(){return l},TR:function(){return a},YF:function(){return r},mP:function(){return o},n_:function(){return u},q2:function(){return f}});var r=1,o=2,i="solid",a=10,u=8,c=4,s=20,l=1,f=2},49125:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},Gg:function(){return l},HN:function(){return d},KF:function(){return u},Mq:function(){return f},Vj:function(){return i},cd:function(){return c},iI:function(){return r},tr:function(){return o},zC:function(){return s}});var r=8,o=2*r,i=5*r,a=10,u=9,c=2,s=c,l=c,f=3,d=5},91963:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ce}});var r=n(77837),o=n(82394),i=n(38860),a=n.n(i),u=n(82684),c=n(4793),s=n(39421);function l(){return(l=Object.assign||function(e){for(var t=1;t=100?(W(l({},G,{width:"100%"})),E&&Y(l({},K,{left:t-10+"%"})),setTimeout((function(){_.current&&(W(l({},G,{opacity:0,width:"100%",transition:"all "+y+"ms ease-out",color:s})),setTimeout((function(){_.current&&(D.current.active&&(D.current=l({},D.current,{active:!1}),Z(0),e(0)),N.active&&(z(l({},N,{active:!1})),Z(0),e(0)),g&&g(),Z(0),e(0))}),y))}),x)):(W((function(e){return l({},e,{width:t+"%",opacity:1,transition:t>0?"all "+C+"ms ease":""})})),E&&Y(l({},K,{left:t-5.5+"%",transition:t>0?"all "+C+"ms ease":""})))};return J=function(){var e=d(Math.min(10,(100-B)/5),Math.min(20,(100-B)/3));B+e<95&&(Z(B+e),te(B+e))},X=D.current.active?D.current.refreshRate:null,ee=(0,u.useRef)(f),(0,u.useEffect)((function(){ee.current=J})),(0,u.useEffect)((function(){}),[void 0]),(0,u.useEffect)((function(){if(null!==X&&!1!==X){var e=setInterval((function(){return ee.current()}),X);return function(){return clearInterval(e)}}}),[X]),(0,u.createElement)("div",{className:A,style:l({},U,k)},(0,u.createElement)("div",{className:a,style:l({},G,j)},E?(0,u.createElement)("div",{style:l({},K,M)}):null))})),v=n(33591),g=n(9518),m=(n(97937),n(91230),n(57384)),y=n(41150),b=n(21764),C=n(23831),w=n(73942),x=n(49125),O=n(28598),E=g.default.div.withConfig({displayName:"ToastWrapper",componentId:"sc-1a33ph1-0"})([".Toastify__toast-container{margin-top:","px;padding:0 !important;width:500px !important;}.Toastify__toast{border-radius:","px !important;font-family:Greycliff Medium,Helvetica Neue,Helvetica,sans-serif !important;font-size:14px !important;line-height:20px !important;margin-bottom:0 !important;margin-left:0 !important;margin-right:0 !important;margin-top:","px !important;min-height:0 !important;padding:","px !important;}.Toastify__toast-body{margin:0 !important;}",""],3*x.iI,w.n_,2*x.iI,2*x.iI,(function(e){return"\n .Toastify__toast--error {\n background: ".concat((e.theme.accent||C.Z.accent).negative," !important;\n color: ").concat((e.theme.content||C.Z.content).active," !important;\n }\n .Toastify__toast--info {\n background: ").concat((e.theme.accent||C.Z.accent).positive," !important;\n color: ").concat((e.theme.content||C.Z.content).active," !important;\n }\n .Toastify__toast--success {\n background: ").concat((e.theme.accent||C.Z.accent).positive," !important;\n color: ").concat((e.theme.content||C.Z.content).active," !important;\n }\n .Toastify__toast--warning {\n background: ").concat((e.theme.accent||C.Z.accent).warning," !important;\n color: ").concat((e.theme.content||C.Z.content).active," !important;\n }\n ")}));function S(){return(0,O.jsx)(E,{children:(0,O.jsx)(b.Ix,{transition:b.Mi})})}var k=n(82531),P=n(21831),j=n(75582),L=n(16115),M=n(7715),R=n(554);function A(e){"undefined"===typeof R&&console.log(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t=1;document.body.style.overflow=t?"hidden":"unset"}),[i,d]),(0,u.useEffect)((function(){return function(){document.body.style.overflow="unset"}}),[]);var g=(0,u.useCallback)((function(e){"Escape"===e.key&&(Object.entries(i||{}).forEach((function(e){var t=(0,j.Z)(e,2),n=t[0],r=t[1],o=r.hideSheet,i=r.hideSheetCallback;f[n]&&(o(n),i&&i())})),e.preventDefault())}),[i,f]);return(0,u.useEffect)((function(){return window.addEventListener("keydown",g),function(){window.removeEventListener("keydown",g)}}),[g]),c&&i?V.createPortal((0,O.jsx)(n,{children:Object.entries(i).map((function(e){var t=(0,j.Z)(e,2),n=t[0],r=t[1],o=r.component,i=r.hideSheet,a=r.hideSheetCallback,u=r.sheetProps,c=u||{},s=c.enterFromBottom,l=c.enterFromRight,d=(null===u||void 0===u?void 0:u.enterFromLeft)||!(s||l),p=d||l?v-W:v,g=s?h-W:h;return(0,O.jsxs)($,Q(Q({enterFromLeft:d,height:h,width:v},u),{},{children:[(0,O.jsx)(N.Z,{classNames:"global-sheet",in:f[n],timeout:300,children:(0,O.jsx)(Y,Q(Q({enterFromLeft:d,height:h,width:v},u),{},{children:(0,O.jsx)(G,{component:o,height:g,width:p})}))}),(0,O.jsx)(N.Z,{classNames:"container-background",in:f[n],timeout:300,unmountOnExit:!0,children:(0,O.jsx)(K,{onClick:function(){i(n),a&&a()}})})]}),n)}))}),c):(0,O.jsx)("div",{})})),X=n(79642);function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];l[e]=n,f[e]=t}),[l,f]),v=(0,u.useCallback)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];d[e]=n,p[e]=t}),[d,p]),g=(0,u.useCallback)((function(e){delete l[e],delete f[e]}),[l,f]),m=(0,u.useCallback)((function(e){delete d[e],delete p[e]}),[d,p]);return(0,u.useEffect)((function(){var n=function(n){var r;if(!(0,M.Qr)(f)||!(0,M.Qr)(p)){var i=n.altKey,a=n.ctrlKey,u=n.keyCode,c=n.metaKey,s=n.shiftKey,l=T(T({},e.current),{},(r={altKey:i,ctrlKey:a},(0,o.Z)(r,u,!0),(0,o.Z)(r,"metaKey",c),(0,o.Z)(r,"shiftKey",s),r)),d=[u].concat(t.current);e.current[u]||(e.current=l,t.current=d),Object.entries(f).forEach((function(e){var t=(0,j.Z)(e,2),r=t[0];(0,t[1])(n,l||{},d),A("[keydown]: ".concat(r))}))}};return window.addEventListener("keydown",n),function(){window.removeEventListener("keydown",n)}}),(n=[t.current,e.current,f,p]).concat.apply(n,(0,P.Z)(Object.values(l)))),(0,u.useEffect)((function(){var n=function(n){var r;if(!(0,M.Qr)(f)||!(0,M.Qr)(p)){var i=n.altKey,a=n.ctrlKey,u=n.keyCode,c=n.metaKey,l=n.shiftKey,d=e.current,h=t.current,v=L.vk.includes(u)?{}:T(T({},d),{},(r={altKey:i,ctrlKey:a},(0,o.Z)(r,u,!1),(0,o.Z)(r,"metaKey",c),(0,o.Z)(r,"shiftKey",l),r));e.current=v,clearTimeout(s.current),s.current=setTimeout((function(){t.current=[]}),1e3),Object.entries(p).forEach((function(e){var t=(0,j.Z)(e,2),r=t[0];(0,t[1])(n,d||{},h,v||{}),A("[keyup] : ".concat(r))}))}};return window.addEventListener("keyup",n),function(){window.removeEventListener("keyup",n)}}),(r=[t.current,e.current,f,p]).concat.apply(r,(0,P.Z)(Object.values(d)))),(0,u.useEffect)((function(){var n=function(){t.current=[],e.current={}};return window.addEventListener("focus",n),function(){return window.removeEventListener("focus",n)}}),[t,e]),{disableGlobalKeyboardShortcuts:a,registerOnKeyDown:h,registerOnKeyUp:v,setDisableGlobalKeyboardShortcuts:c,unregisterOnKeyDown:g,unregisterOnKeyUp:m}}(n,r),w=C.disableGlobalKeyboardShortcuts,x=C.registerOnKeyDown,E=C.registerOnKeyUp,R=C.setDisableGlobalKeyboardShortcuts,_=C.unregisterOnKeyDown,I=C.unregisterOnKeyUp,F=(0,u.useMemo)((function(){return{disableGlobalKeyboardShortcuts:w,registerOnKeyDown:x,registerOnKeyUp:E,setDisableGlobalKeyboardShortcuts:R,unregisterOnKeyDown:_,unregisterOnKeyUp:I}}),[w,x,E,R,_,I]),H=s.Z.get(D.Dy,D.dU),V="undefined"===typeof H||null===H||!(0,D.YB)(),N=k.ZP.project_settings.list({},{},{pauseFetch:!V}).data,z=(0,u.useMemo)((function(){var e,t;return null===N||void 0===N||null===(e=N.project_settings)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.require_user_authentication}),[N]);return(0,u.useEffect)((function(){V&&"undefined"!==typeof z&&null!==z&&s.Z.set(D.Dy,z,D.dU)}),[V,z]),(0,O.jsx)(y.Z.Provider,{value:F,children:(0,O.jsxs)(g.ThemeProvider,{theme:Object.assign(oe.rS,(null===p||void 0===p?void 0:p.currentTheme)||a),children:[(0,O.jsx)(v.GridThemeProvider,{gridTheme:oe.k,children:(0,O.jsx)(B.DY,{children:(0,O.jsxs)(ne,{children:[(0,O.jsx)(m.Z,{defaultTitle:f,title:b,children:(0,O.jsx)("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0",name:"viewport"})}),(0,O.jsx)(h,{color:Z.hM,ref:t}),(0,O.jsx)(i,ae({},c))]})})}),(0,O.jsx)(S,{})]})})}ue.getInitialProps=function(){var e=(0,r.Z)(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.default.getInitialProps(t);case 2:return n=e.sent,r=t.ctx,e.abrupt("return",ae(ae({},n),{},{currentTheme:(0,re.gz)(r)}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var ce=ue},91427:function(e,t,n){"use strict";n.d(t,{J3:function(){return c},L8:function(){return a},Od:function(){return p},Q9:function(){return s},U2:function(){return d},Uu:function(){return u},kP:function(){return l},t8:function(){return f},zg:function(){return i}});var r=n(66757),o=n.n(r);var i="pipeline_editor_after_hidden",a="pipeline_editor_after_width",u="pipeline_editor_before_hidden",c="pipeline_editor_before_width",s="pipeline_execution_hidden",l="data_output_block_uuids";function f(e,t){return o().set(e,t),t}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=o().get(e);return"undefined"!==typeof n&&null!==n?n:(f(e,t),t)}function p(e){var t=d(e);return o().remove(e),t}},36283:function(e,t,n){"use strict";n.d(t,{Z3:function(){return u},k:function(){return c},rS:function(){return s}});var r=n(448),o=n.n(r),i=n(49125),a=1200;function u(e){if(null!==e)return e>a?"xl":e>992?"lg":e>768?"md":e>600?"sm":"xs"}var c={container:{maxWidth:{sm:600-2*i.iI,md:768-2*i.iI,lg:992-2*i.iI,xl:a-2*i.iI},padding:3*i.iI},row:{padding:0},col:{padding:0}},s={breakpoints:{sm:"".concat(600,"px"),md:"".concat(768,"px"),lg:"".concat(992,"px"),xl:"".concat(a,"px")},space:o()(200).map((function(e){return 8*e}))}},86954:function(e,t,n){"use strict";n.d(t,{$m:function(){return c},FT:function(){return a},Ll:function(){return u},go:function(){return o},iT:function(){return i},vZ:function(){return r}});var r={domain:window.location.hostname,path:"/"},o="initial_as_path",i="initial_pathname",a="notification_template",u="notification_uuid",c="ref"},7715:function(e,t,n){"use strict";n.d(t,{GL:function(){return s},Qr:function(){return u},Xy:function(){return c},gR:function(){return a},t2:function(){return l}});var r=n(82394);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null;if(t){var n=a()(t);e=n[h]}else e=o.Z.get(h,v);return!!e&&("0"!==String(e)&&"false"!==String(e).toLowerCase())},m="current_group_id",y="current_group",b="current_user";function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(e){var t=a()(e),n=t.current_group_id;return{id:n}}var r=c().get(y),i=o.Z.get(m,l.Hu);if(r&&i)return r}function w(){c().remove(b)}function x(){return c().get(b)}function O(e){c().set(b,e)}function E(){return(x()||{}).roles===s.No.VIEWER}},24141:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(82684);function o(){var e=(0,r.useState)({height:void 0,width:void 0,widthWithoutScrollbar:void 0}),t=e[0],n=e[1];return(0,r.useEffect)((function(){function e(){n({height:window.innerHeight,width:window.innerWidth,widthWithoutScrollbar:document.body.clientWidth})}return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]),t}},59e3:function(e,t,n){"use strict";n.d(t,{iV:function(){return a},nL:function(){return c},uM:function(){return u}});var r=n(75582),o=n(34376),i=n.n(o);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t={},n=e;if(e||(n=window.location.search),n){var o=new URLSearchParams(n.split("?").slice(1).join(""));Array.from(o.keys()).forEach((function(e){var n=e.match(/\[\]/),i=o.getAll(e);if(1!==i.length||n)t[e]=i;else{var a=(0,r.Z)(i,1);t[e]=a[0]}}))}return t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(e).reduce((function(e,t){var n=(0,r.Z)(t,2),o=n[0],i=n[1];if(Array.isArray(i)){var a=o;return a.match(/\[\]/)||(a="".concat(a,"[]")),e.concat(i.map((function(e){return"".concat(a,"=").concat(encodeURIComponent(e))})))}return e.concat("".concat(o,"=").concat(encodeURIComponent(i)))}),[]).join("&")}var c=function(e,t){t?"function"===typeof(null===t||void 0===t?void 0:t.writeHead)&&(t.writeHead(302,{Location:e}),t.end()):i().push(e)}},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(91963)}])},97937:function(){},91230:function(){},65260:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},39421:function(e,t){"use strict";function n(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:function(){return r}})},75582:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(18907);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},26653:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return r}})},21831:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(14204);var o=n(18907);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},18907:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(14204);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],(function(){return t(6840),t(8641)}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{55056:function(e,t,n){e.exports=n(80203)},73198:function(e,t,n){"use strict";var r=n(63401),o=n(5888),i=n(4963),a=n(48826),u=n(34466),c=n(98418),s=n(46130),l=n(18760),f=n(24200),d=n(52800),p=n(64830);e.exports=function(e){return new Promise((function(t,n){var h,v=e.data,g=e.headers,m=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var C=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(C+":"+w)}var x=u(e.baseURL,e.url);function O(){if(b){var r="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),y()}),(function(e){n(e),y()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=O:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(O)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||s(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&r.forEach(g,(function(e,t){"undefined"===typeof v&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),m&&"json"!==m&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),v||(v=null);var S=p(x);S&&-1===["http","https","file"].indexOf(S)?n(new f("Unsupported protocol "+S+":",f.ERR_BAD_REQUEST,e)):b.send(v)}))}},80203:function(e,t,n){"use strict";var r=n(63401),o=n(29366),i=n(81112),a=n(3674);var u=function e(t){var n=new i(t),u=o(i.prototype.request,n);return r.extend(u,i.prototype,n),r.extend(u,n),u.create=function(n){return e(a(t,n))},u}(n(89050));u.Axios=i,u.CanceledError=n(52800),u.CancelToken=n(34078),u.isCancel=n(81907),u.VERSION=n(98963).version,u.toFormData=n(47427),u.AxiosError=n(24200),u.Cancel=u.CanceledError,u.all=function(e){return Promise.all(e)},u.spread=n(87998),u.isAxiosError=n(1720),e.exports=u,e.exports.default=u},34078:function(e,t,n){"use strict";var r=n(52800);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){f.headers[e]=o.merge(s)})),e.exports=f},18760:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},98963:function(e){e.exports={version:"0.27.2"}},29366:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},64830:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},87998:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},47427:function(e,t,n){"use strict";var r=n(80365).Buffer,o=n(63401);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):r.from(e):e}return function e(r,a){if(o.isPlainObject(r)||o.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),o.forEach(r,(function(n,r){if(!o.isUndefined(n)){var u,c=a?a+"."+r:r;if(n&&!a&&"object"===typeof n)if(o.endsWith(r,"{}"))n=JSON.stringify(n);else if(o.endsWith(r,"[]")&&(u=o.toArray(n)))return void u.forEach((function(e){!o.isUndefined(e)&&t.append(c,i(e))}));e(n,c)}})),n.pop()}else t.append(a,i(r))}(e),t}},73465:function(e,t,n){"use strict";var r=n(98963).version,o=n(24200),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,u){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,u)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],u=t[a];if(u){var c=e[a],s=void 0===c||u(c,a,e);if(!0!==s)throw new o("option "+a+" must be "+s,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},63401:function(e,t,n){"use strict";var r,o=n(29366),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function u(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function c(e){return Array.isArray(e)}function s(e){return"undefined"===typeof e}var l=u("ArrayBuffer");function f(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=u("Date"),h=u("File"),v=u("Blob"),g=u("FileList");function m(e){return"[object Function]"===i.call(e)}var y=u("URLSearchParams");function b(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:u,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(s(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},80196:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],u=i[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),l=0,f=u>0?a-4:a;for(n=0;n>16&255,s[l++]=t>>8&255,s[l++]=255&t;2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,s[l++]=255&t);1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,u=0,c=r-o;uc?c:u+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=i.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(e,t,r){for(var o,i,a=[],u=t;u>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},80365:function(e,t,n){"use strict";var r=n(80196),o=n(48405),i=n(7577);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return N(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,u=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,c/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;iu&&(n=u-c),i=n;i>=0;i--){for(var f=!0,d=0;do&&(r=o):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(l=s);break;case 2:128===(192&(i=e[o+1]))&&(c=(31&s)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(c=(15&s)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&u)&&(c=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(i,a),s=this.slice(r,o),l=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function _(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function T(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function B(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function Z(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||Z(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,i){return i||Z(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||_(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);_(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i>0)-u&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);_(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function N(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(H,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function z(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},85722:function(e,t){"use strict";t.Q=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var r={},o=t||{},a=e.split(";"),u=o.decode||n,c=0;c>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=u;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=s}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,u,c,s=8*i-o-1,l=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(u=0,a=l):a+f>=1?(u=(t*c-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&u,p+=h,u/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,s-=8);e[n+p-h]|=128*v}},7577:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},66757:function(e,t,n){"use strict";var r=n(19319),o=n(94178),i=n(67240),a="localStorage"in n.g&&n.g.localStorage?n.g.localStorage:r;function u(e,t){return 1===arguments.length?c(e):s(e,t)}function c(e){const t=a.getItem(e);return o(t)}function s(e,t){try{return a.setItem(e,JSON.stringify(t)),!0}catch(n){return!1}}u.set=s,u.get=c,u.remove=function(e){return a.removeItem(e)},u.clear=function(){return a.clear()},u.backend=function(e){return e&&(a=e),a},u.on=i.on,u.off=i.off,e.exports=u},94178:function(e){"use strict";e.exports=function(e){const t=function(e){try{return JSON.parse(e)}catch(t){return e}}(e);return void 0===t?null:t}},19319:function(e){"use strict";var t={};e.exports={getItem:function(e){return e in t?t[e]:null},setItem:function(e,n){return t[e]=n,!0},removeItem:function(e){return!!(e in t)&&delete t[e]},clear:function(){return t={},!0}}},67240:function(e,t,n){"use strict";var r=n(94178),o={};function i(e){e||(e=n.g.event);var t=o[e.key];t&&t.forEach((function(t){t(r(e.newValue),r(e.oldValue),e.url||e.uri)}))}e.exports={on:function(e,t){o[e]?o[e].push(t):o[e]=[t],n.g.addEventListener?n.g.addEventListener("storage",i,!1):n.g.attachEvent?n.g.attachEvent("onstorage",i):n.g.onstorage=i},off:function(e,t){var n=o[e];n.length>1?n.splice(n.indexOf(t),1):o[e]=[]}}},37206:function(e,t,n){var r=n(4366).Symbol;e.exports=r},7807:function(e,t,n){var r=n(37206),o=n(33187),i=n(92778),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},36176:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,u=n(t((r-e)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=e,e+=o;return c}},84182:function(e,t,n){var r=n(59135),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},76872:function(e,t,n){var r=n(36176),o=n(40965),i=n(14790);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},51716:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},58667:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},92570:function(e,t,n){var r=n(7807),o=n(58667);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},448:function(e,t,n){var r=n(76872)();e.exports=r},14790:function(e,t,n){var r=n(61666),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},61666:function(e,t,n){var r=n(84182),o=n(51716),i=n(92570),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}},56663:function(e,t,n){var r=n(28295);r=r.default||r,e.exports=function(e,t){var n=e.req&&e.req.headers&&e.req.headers.cookie;return new r(n).getAll(t)}},4793:function(e,t,n){e.exports=n(57934)},57934:function(e,t,n){"use strict";var r=n(71539),o=n(66745),i=n(65273),a=n(33826),u=n(59747),c=n(38860);function s(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}t.default=void 0;var l,f=(l=n(82684))&&l.__esModule?l:{default:l},d=n(47943);function p(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(s){return void n(s)}u.done?t(c):Promise.resolve(c).then(r,o)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,u,"next",e)}function u(e){p(i,r,o,a,u,"throw",e)}a(void 0)}))}}function v(e){return g.apply(this,arguments)}function g(){return(g=h(c.mark((function e(t){var n,r,o;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.Component,r=t.ctx,e.next=3,d.loadGetInitialProps(n,r);case 3:return o=e.sent,e.abrupt("return",{pageProps:o});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var m=function(e){i(n,e);var t=s(n);function n(){return r(this,n),t.apply(this,arguments)}return o(n,[{key:"render",value:function(){var e=this.props,t=e.Component,n=e.pageProps;return f.default.createElement(t,Object.assign({},n))}}]),n}(f.default.Component);t.default=m,m.origGetInitialProps=v,m.getInitialProps=v},22721:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;var o=((r=n(82684))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=o},11993:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=a,t.useAmp=function(){return a(o.default.useContext(i.AmpStateContext))};var r,o=(r=n(82684))&&r.__esModule?r:{default:r},i=n(22721);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,o=void 0!==r&&r,i=e.hasQuery,a=void 0!==i&&i;return n||o&&a}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},49559:function(e,t,n){"use strict";var r=n(88081);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=f,t.default=void 0;var i,a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(82684)),u=(i=n(64176))&&i.__esModule?i:{default:i},c=n(22721),s=n(99005),l=n(11993);n(47943);function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function d(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var p=["name","httpEquiv","charSet","itemProp"];function h(e,t){return e.reduce((function(e,t){var n=a.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(d,[]).reverse().concat(f(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(o){var i=!0,a=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){a=!0;var u=o.key.slice(o.key.indexOf("$")+1);e.has(u)?i=!1:e.add(u)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(var c=0,s=p.length;c1)for(var n=1;n=0&&e!==1/0}function h(){return"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}function v(){return void 0===navigator.onLine||navigator.onLine}function g(e,t,n,r){var i,a,u,c;return y(e)?(i=e.queryKey,a=e.queryFn,u=e.config,c=t):y(t)?(i=e,u=t,c=n):(i=e,a=t,u=n,c=r),u=u||{},a&&(u=(0,o.Z)({},u,{queryFn:a})),[i,u,c]}function m(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||y(e)&&y(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{},u=0,c=0;c0,isFetchedAfterMount:t.updateCount>this.initialUpdateCount,isFetching:t.isFetching,isFetchingMore:t.isFetchingMore,isInitialData:t.isInitialData,isPreviousData:u,isPlaceholderData:c,isStale:this.isStale,refetch:this.refetch,remove:this.remove,updatedAt:a})},t.updateQuery=function(){var e=this.config,t=this.currentQuery,n=e.queryCache.getQueryByHash(e.queryHash);n||(n=e.queryCache.createQuery(e)),n!==t&&(this.previousQueryResult=this.currentResult,this.currentQuery=n,this.initialUpdateCount=n.state.updateCount,n.state.isInitialData?e.keepPreviousData&&t?this.isStale=!0:"function"===typeof e.initialStale?this.isStale=e.initialStale():"boolean"===typeof e.initialStale?this.isStale=e.initialStale:this.isStale="undefined"===typeof n.state.data:this.isStale=n.isStaleByTime(e.staleTime),this.updateResult(),this.listener&&(null==t||t.unsubscribeObserver(this),this.currentQuery.subscribeObserver(this)))},t.onQueryUpdate=function(e){var t=this.config,n=e.type;2!==n&&3!==n&&4!==n||(this.isStale=this.currentQuery.isStaleByTime(t.staleTime));var r=this.currentResult;this.updateResult();var o=this.currentResult;if(2!==n&&3!==n&&4!==n||this.updateTimers(),4!==n||o.isStale!==r.isStale){var i={};2===n?i.onSuccess=!0:3===n&&(i.onError=!0),(t.notifyOnStatusChange||o.data!==r.data||o.error!==r.error)&&(i.listener=!0),this.notify(i)}},t.notify=function(e){var t=this.config,n=this.currentResult,r=this.currentQuery,o=this.listener,i=t.onSuccess,a=t.onSettled,u=t.onError;j.batch((function(){e.onSuccess?(i&&j.schedule((function(){i(n.data)})),a&&j.schedule((function(){a(n.data,null)}))):e.onError&&(u&&j.schedule((function(){u(n.error)})),a&&j.schedule((function(){a(void 0,n.error)}))),e.listener&&o&&j.schedule((function(){o(n)})),e.globalListeners&&t.queryCache.notifyGlobalListeners(r)}))},e}();function L(){}var M=0,R=1,A=2,_=3,T=4;function B(e,t){if(!t)return e&&e.then?e.then(L):Promise.resolve()}function Z(e,t){var n=e();return n&&n.then?n.then(t):t(n)}function D(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function I(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function H(e){return function(){for(var t=[],n=0;n0||!p(this.cacheTime)||(this.gcTimeout=setTimeout((function(){e.remove()}),this.cacheTime)))},t.cancel=function(e){var t=this.promise;return t&&this.cancelFetch?(this.cancelFetch(e),t.then(c).catch(c)):Promise.resolve(void 0)},t.continue=function(){var e;null==(e=this.continueFetch)||e.call(this)},t.clearTimersObservers=function(){this.observers.forEach((function(e){e.clearTimers()}))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.setData=function(e,t){var n,r,o=this.state.data,i=l(e,o);(null==(n=(r=this.config).isDataEqual)?void 0:n.call(r,o,i))?i=o:this.config.structuralSharing&&(i=m(o,i));var a=N(this.config,i);this.dispatch({type:A,data:i,canFetchMore:a,updatedAt:null==t?void 0:t.updatedAt})},t.clear=function(){s.warn("react-query: clear() has been deprecated, please use remove() instead"),this.remove()},t.remove=function(){this.queryCache.removeQuery(this)},t.destroy=function(){this.clearGcTimeout(),this.clearTimersObservers(),this.cancel()},t.isActive=function(){return this.observers.some((function(e){return e.config.enabled}))},t.isStale=function(){return this.state.isInvalidated||this.state.status!==r.Success||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||this.state.status!==r.Success||this.state.updatedAt+e<=Date.now()},t.onInteraction=function(e){var t=this.observers.find((function(t){var n=t.config,r=t.getCurrentResult().isStale;return n.enabled&&("focus"===e&&("always"===n.refetchOnWindowFocus||n.refetchOnWindowFocus&&r)||"online"===e&&("always"===n.refetchOnReconnect||n.refetchOnReconnect&&r))}));t&&t.fetch(),this.continue()},t.subscribe=function(e){var t=new P(this.config);return t.subscribe(e),t},t.subscribeObserver=function(e){this.observers.push(e),this.clearGcTimeout()},t.unsubscribeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.isTransportCancelable&&this.cancel(),this.scheduleGc())},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:T})},t.refetch=function(e,t){var n=this.fetch(void 0,t);return(null==e?void 0:e.throwOnError)||(n=n.catch(c)),n},t.fetchMore=function(e,t,n){return this.fetch({fetchMore:{fetchMoreVariable:e,previous:(null==t?void 0:t.previous)||!1}},n)},t.fetch=function(e,t){try{var n=!1,r=this;return Z((function(){if(r.promise)return(null==e?void 0:e.fetchMore)&&r.state.data?B(r.cancel(!0)):(n=!0,r.promise)}),(function(o){if(n)return o;t&&r.updateConfig(t);var i=(t=r.config).queryFnParamsFilter,a=i?i(r.queryKey):r.queryKey;return r.promise=H((function(){return I((function(){var n;return Z((function(){return t.infinite?D(r.startInfiniteFetch(t,a,e),(function(e){n=e})):D(r.startFetch(t,a,e),(function(e){n=e}))}),(function(){return r.setData(n),delete r.promise,n}))}),(function(e){throw C(e)&&e.silent||r.dispatch({type:_,error:e}),C(e)||s.error(e),delete r.promise,e}))}))(),r.promise}))}catch(o){return Promise.reject(o)}},t.startFetch=function(e,t,n){return this.state.isFetching||this.dispatch({type:R}),this.tryFetchData(e,(function(){return e.queryFn.apply(e,t)}))},t.startInfiniteFetch=function(e,t,n){var r=null==n?void 0:n.fetchMore,o=r||{},i=o.previous,a=o.fetchMoreVariable,u=!!r&&(i?"previous":"next"),c=this.state.data||[],s=H((function(n,r,o){var i=V(n,r);return"undefined"===typeof o&&"undefined"!==typeof i&&e.getFetchMore&&(o=e.getFetchMore(i,n)),Boolean(o)||"undefined"===typeof i?D(e.queryFn.apply(e,t.concat([o])),(function(e){return r?[e].concat(n):[].concat(n,[e])})):n}));return this.state.isFetching&&this.state.isFetchingMore===u||this.dispatch({type:R,isFetchingMore:u}),this.tryFetchData(e,(function(){if(u)return s(c,i,a);if(c.length){for(var e=s([]),t=1;t=0||(o[n]=e[n]);return o}function l(e){return"number"===typeof e&&!isNaN(e)}function f(e){return"boolean"===typeof e}function d(e){return"string"===typeof e}function p(e){return"function"===typeof e}function h(e){return d(e)||p(e)?e:null}function v(e){return 0===e||e}var g=!("undefined"===typeof window||!window.document||!window.document.createElement);function m(e){return(0,r.isValidElement)(e)||d(e)||p(e)||l(e)}var y={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},b={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default",DARK:"dark"};function C(e){var t,n,i=e.enter,a=e.exit,u=e.duration,c=void 0===u?750:u,l=e.appendPosition,f=void 0!==l&&l,d=e.collapse,p=void 0===d||d,h=e.collapseDuration,v=void 0===h?300:h;return Array.isArray(c)&&2===c.length?(t=c[0],n=c[1]):t=n=c,function(e){var u=e.children,c=e.position,l=e.preventExitTransition,d=e.done,h=s(e,["children","position","preventExitTransition","done"]),g=f?i+"--"+c:i,m=f?a+"--"+c:a,y=function e(){var t=h.nodeRef.current;t&&(t.removeEventListener("animationend",e),p?function(e,t,n){void 0===n&&(n=300);var r=e.scrollHeight,o=e.style;requestAnimationFrame((function(){o.minHeight="initial",o.height=r+"px",o.transition="all "+n+"ms",requestAnimationFrame((function(){o.height="0",o.padding="0",o.margin="0",setTimeout((function(){return t()}),n)}))}))}(t,d,v):d())};return(0,r.createElement)(o.ZP,Object.assign({},h,{timeout:l?p?v:50:{enter:t,exit:p?n+v:n+50},onEnter:function(){var e=h.nodeRef.current;e&&(e.classList.add(g),e.style.animationFillMode="forwards",e.style.animationDuration=t+"ms")},onEntered:function(){var e=h.nodeRef.current;e&&(e.classList.remove(g),e.style.removeProperty("animationFillMode"),e.style.removeProperty("animationDuration"))},onExit:l?y:function(){var e=h.nodeRef.current;e&&(e.classList.add(m),e.style.animationFillMode="forwards",e.style.animationDuration=n+"ms",e.addEventListener("animationend",y))},unmountOnExit:!0}),u)}}var w={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter((function(e){return e!==t}));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach((function(e){return clearTimeout(e)})),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0){var n=v(e)?1:y.props.limit;if(1===t||1===n)y.displayedToast++,S();else{var r=n>t?t:n;y.displayedToast=r;for(var o=0;o0?S:k),hideProgressBar:f(v.hideProgressBar)?v.hideProgressBar:w.hideProgressBar,progress:v.progress,role:d(v.role)?v.role:w.role,deleteToast:function(){!function(e){delete g[e],t()}(b)}};p(v.onOpen)&&(P.onOpen=v.onOpen),p(v.onClose)&&(P.onClose=v.onClose);var L=w.closeButton;!1===v.closeButton||m(v.closeButton)?L=v.closeButton:!0===v.closeButton&&(L=!m(w.closeButton)||w.closeButton),P.closeButton=L;var M=e;(0,r.isValidElement)(e)&&!d(e.type)?M=(0,r.cloneElement)(e,{closeToast:x,toastProps:P}):p(e)&&(M=e({closeToast:x,toastProps:P})),w.limit&&w.limit>0&&u>w.limit&&O?c.push({toastContent:M,toastProps:P,staleId:i}):l(o)&&o>0?setTimeout((function(){j(M,P,i)}),o):j(M,P,i)}}function j(e,t,n){var r=t.toastId;g[r]={content:e,props:t},i({type:"ADD",toastId:r,staleId:n})}return(0,r.useEffect)((function(){return y.containerId=e.containerId,w.cancelEmit(3).on(0,k).on(1,(function(e){return a.current&&E(e)})).on(5,C).emit(2,y),function(){return w.emit(3,y)}}),[]),(0,r.useEffect)((function(){y.isToastActive=b,y.displayedToast=o.length,w.emit(4,o.length,e.containerId)}),[o]),(0,r.useEffect)((function(){y.props=e})),{getToastToRender:function(t){for(var n={},r=e.newestOnTop?Object.keys(g).reverse():Object.keys(g),o=0;o=1?e.targetTouches[0].clientX:e.clientX}function k(e){var t=(0,r.useState)(!0),n=t[0],o=t[1],i=(0,r.useState)(!1),a=i[0],u=i[1],c=(0,r.useRef)(null),s=x({start:0,x:0,y:0,deltaX:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),l=x(e,!0),f=e.autoClose,d=e.pauseOnHover,h=e.closeToast,v=e.onClick,g=e.closeOnClick;function m(t){var n=c.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.start=s.x=S(t.nativeEvent),s.removalDistance=n.offsetWidth*(e.draggablePercent/100)}function y(){if(s.boundingRect){var t=s.boundingRect,n=t.top,r=t.bottom,o=t.left,i=t.right;e.pauseOnHover&&s.x>=o&&s.x<=i&&s.y>=n&&s.y<=r?C():b()}}function b(){o(!0)}function C(){o(!1)}function w(e){e.preventDefault();var t=c.current;s.canDrag&&(n&&C(),s.x=S(e),s.deltaX=s.x-s.start,s.y=function(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}(e),s.start!==s.x&&(s.canCloseOnClick=!1),t.style.transform="translateX("+s.deltaX+"px)",t.style.opacity=""+(1-Math.abs(s.deltaX/s.removalDistance)))}function O(){var t=c.current;if(s.canDrag){if(s.canDrag=!1,Math.abs(s.deltaX)>s.removalDistance)return u(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translateX(0)",t.style.opacity="1"}}(0,r.useEffect)((function(){return p(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),function(){p(l.onClose)&&l.onClose((0,r.isValidElement)(l.children)&&l.children.props)}}),[]),(0,r.useEffect)((function(){return e.draggable&&(document.addEventListener("mousemove",w),document.addEventListener("mouseup",O),document.addEventListener("touchmove",w),document.addEventListener("touchend",O)),function(){e.draggable&&(document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",O),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",O))}}),[e.draggable]),(0,r.useEffect)((function(){return e.pauseOnFocusLoss&&(window.addEventListener("focus",b),window.addEventListener("blur",C)),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",C))}}),[e.pauseOnFocusLoss]);var E={onMouseDown:m,onTouchStart:m,onMouseUp:y,onTouchEnd:y};return f&&d&&(E.onMouseEnter=C,E.onMouseLeave=b),g&&(E.onClick=function(e){v&&v(e),s.canCloseOnClick&&h()}),{playToast:b,pauseToast:C,isRunning:n,preventExitTransition:a,toastRef:c,eventHandlers:E}}function j(e){var t=e.closeToast,n=e.type,o=e.ariaLabel,i=void 0===o?"close":o;return(0,r.createElement)("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":i},(0,r.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,r.createElement)("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function P(e){var t,n,o=e.delay,i=e.isRunning,u=e.closeToast,s=e.type,l=e.hide,f=e.className,d=e.style,h=e.controlledProgress,v=e.progress,g=e.rtl,m=e.isIn,y=c({},d,{animationDuration:o+"ms",animationPlayState:i?"running":"paused",opacity:l?0:1});h&&(y.transform="scaleX("+v+")");var b=["Toastify__progress-bar",h?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+s,(t={},t["Toastify__progress-bar--rtl"]=g,t)],C=p(f)?f({rtl:g,type:s,defaultClassName:a.apply(void 0,b)}):a.apply(void 0,[].concat(b,[f])),w=((n={})[h&&v>=1?"onTransitionEnd":"onAnimationEnd"]=h&&v<1?null:function(){m&&u()},n);return(0,r.createElement)("div",Object.assign({className:C,style:y},w))}P.defaultProps={type:b.DEFAULT,hide:!1};var L=function(e){var t,n=k(e),o=n.isRunning,i=n.preventExitTransition,u=n.toastRef,c=n.eventHandlers,s=e.closeButton,l=e.children,f=e.autoClose,d=e.onClick,h=e.type,v=e.hideProgressBar,g=e.closeToast,m=e.transition,y=e.position,b=e.className,C=e.style,w=e.bodyClassName,x=e.bodyStyle,O=e.progressClassName,E=e.progressStyle,S=e.updateId,j=e.role,L=e.progress,M=e.rtl,R=e.toastId,A=e.deleteToast,_=["Toastify__toast","Toastify__toast--"+h,(t={},t["Toastify__toast--rtl"]=M,t)],T=p(b)?b({rtl:M,position:y,type:h,defaultClassName:a.apply(void 0,_)}):a.apply(void 0,[].concat(_,[b])),B=!!L;return(0,r.createElement)(m,{in:e.in,appear:!0,done:A,position:y,preventExitTransition:i,nodeRef:u},(0,r.createElement)("div",Object.assign({id:R,onClick:d,className:T||void 0},c,{style:C,ref:u}),(0,r.createElement)("div",Object.assign({},e.in&&{role:j},{className:p(w)?w({type:h}):a("Toastify__toast-body",w),style:x}),l),function(e){if(e){var t={closeToast:g,type:h};return p(e)?e(t):(0,r.isValidElement)(e)?(0,r.cloneElement)(e,t):void 0}}(s),(f||B)&&(0,r.createElement)(P,Object.assign({},S&&!B?{key:"pb-"+S}:{},{rtl:M,delay:f,isRunning:o,isIn:e.in,closeToast:g,hide:v,type:h,style:E,className:O,controlledProgress:B,progress:L}))))},M=C({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),R=C({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit",duration:[450,750],appendPosition:!0}),A=function(e){var t=e.children,n=e.className,o=e.style,i=s(e,["children","className","style"]);return delete i.in,(0,r.createElement)("div",{className:n,style:o},r.Children.map(t,(function(e){return(0,r.cloneElement)(e,i)})))},_=function(e){var t=E(e),n=t.getToastToRender,o=t.containerRef,i=t.isToastActive,u=e.className,s=e.style,l=e.rtl,f=e.containerId;return(0,r.createElement)("div",{ref:o,className:"Toastify",id:f},n((function(e,t){var n,o,f={className:p(u)?u({position:e,rtl:l,defaultClassName:a("Toastify__toast-container","Toastify__toast-container--"+e,(n={},n["Toastify__toast-container--rtl"]=l,n))}):a("Toastify__toast-container","Toastify__toast-container--"+e,(o={},o["Toastify__toast-container--rtl"]=l,o),h(u)),style:0===t.length?c({},s,{pointerEvents:"none"}):c({},s)};return(0,r.createElement)(A,Object.assign({},f,{key:"container-"+e}),t.map((function(e){var t=e.content,n=e.props;return(0,r.createElement)(L,Object.assign({},n,{in:i(n.toastId),key:"toast-"+n.key,closeButton:!0===n.closeButton?j:n.closeButton}),t)})))})))};_.defaultProps={position:y.TOP_RIGHT,transition:M,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:j,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,role:"alert"};var T,B,Z,D=new Map,I=[],H=!1;function F(){return D.size>0}function V(e,t){var n=function(e){return F()?D.get(e||T):null}(t.containerId);return n?n.getToast(e):null}function N(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function z(e){return e&&(d(e.toastId)||l(e.toastId))?e.toastId:N()}function U(e,t){return F()?w.emit(0,e,t):(I.push({content:e,options:t}),H&&g&&(H=!1,B=document.createElement("div"),document.body.appendChild(B),(0,u.render)((0,r.createElement)(_,Object.assign({},Z)),B))),t.toastId}function q(e,t){return c({},t,{type:t&&t.type||e,toastId:z(t)})}var Q=function(e,t){return U(e,q(b.DEFAULT,t))};Q.success=function(e,t){return U(e,q(b.SUCCESS,t))},Q.info=function(e,t){return U(e,q(b.INFO,t))},Q.error=function(e,t){return U(e,q(b.ERROR,t))},Q.warning=function(e,t){return U(e,q(b.WARNING,t))},Q.dark=function(e,t){return U(e,q(b.DARK,t))},Q.warn=Q.warning,Q.dismiss=function(e){return F()&&w.emit(1,e)},Q.clearWaitingQueue=function(e){return void 0===e&&(e={}),F()&&w.emit(5,e)},Q.isActive=function(e){var t=!1;return D.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},Q.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=V(e,t);if(n){var r=n.props,o=n.content,i=c({},r,t,{toastId:t.toastId||e,updateId:N()});i.toastId!==e&&(i.staleId=e);var a="undefined"!==typeof i.render?i.render:o;delete i.render,U(a,i)}}),0)},Q.done=function(e){Q.update(e,{progress:1})},Q.onChange=function(e){return p(e)&&w.on(4,e),function(){p(e)&&w.off(4,e)}},Q.configure=function(e){void 0===e&&(e={}),H=!0,Z=e},Q.POSITION=y,Q.TYPE=b,w.on(2,(function(e){T=e.containerId||e,D.set(T,e),I.forEach((function(e){w.emit(0,e.content,e.options)})),I=[]})).on(3,(function(e){D.delete(e.containerId||e),0===D.size&&w.off(0).off(1).off(5),g&&B&&document.body.removeChild(B)}))},16910:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(65260),o=n(38),i=n(39287);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var u=n(82684),c=n(56179),s=n(72418),l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},e),n=Object.keys(e);return n.forEach((function(n){var o=n,i=n;r.MediaLabels[o]&&(t[r.MediaLabels[o]]=e[n]),r.MediaAliases[i]&&!t[r.MediaAliases[i]]&&(t[r.MediaAliases[i]]=e[n])})),t};t.default=o},69896:function(){},37136:function(e,t,n){"use strict";function r(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n html {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-overflow-style: scrollbar;\n }\n\n *,\n *::before,\n *::after {\n -webkit-box-sizing: inherit;\n box-sizing: inherit;\n }\n\n ","\n"]);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,n(9518).createGlobalStyle)(r(),(function(e){return e.css}));t.default=o},7439:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var o=n(33696);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i,a=(i=n(37136))&&i.__esModule?i:{default:i}},33696:function(){},78300:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(9518)),o=c(n(17757)),i=c(n(51423)),a=n(69835),u=c(n(55046));function c(e){return e&&e.__esModule?e:{default:e}}function s(){var e=X(["",""]);return s=function(){return e},e}function l(){var e=X(["",""]);return l=function(){return e},e}function f(){var e=X(["",""]);return f=function(){return e},e}function d(){var e=X(["",""]);return d=function(){return e},e}function p(){var e=X(["",""]);return p=function(){return e},e}function h(){var e=X(["",""]);return h=function(){return e},e}function v(){var e=X(["",""]);return v=function(){return e},e}function g(){var e=X(["",""]);return g=function(){return e},e}function m(){var e=X(["",""]);return m=function(){return e},e}function y(){var e=X(["",""]);return y=function(){return e},e}function b(){var e=X(["",""]);return b=function(){return e},e}function C(){var e=X(["",""]);return C=function(){return e},e}function w(){var e=X(["",""]);return w=function(){return e},e}function x(){var e=X(["",""]);return x=function(){return e},e}function O(){var e=X(["",""]);return O=function(){return e},e}function E(){var e=X(["",""]);return E=function(){return e},e}function S(){var e=X(["",""]);return S=function(){return e},e}function k(){var e=X(["",""]);return k=function(){return e},e}function j(){var e=X(["",""]);return j=function(){return e},e}function P(){var e=X(["",""]);return P=function(){return e},e}function L(){var e=X(["",""]);return L=function(){return e},e}function M(){var e=X(["",""]);return M=function(){return e},e}function R(){var e=X(["",""]);return R=function(){return e},e}function A(){var e=X(["",""]);return A=function(){return e},e}function _(){var e=X(["",""]);return _=function(){return e},e}function T(){var e=X(["",""]);return T=function(){return e},e}function B(){var e=X(["",""]);return B=function(){return e},e}function Z(){var e=X(["",""]);return Z=function(){return e},e}function D(){var e=X(["",""]);return D=function(){return e},e}function I(){var e=X(["",""]);return I=function(){return e},e}function H(){var e=X(["",""]);return H=function(){return e},e}function F(){var e=X(["",""]);return F=function(){return e},e}function V(){var e=X(["",""]);return V=function(){return e},e}function N(){var e=X(["",""]);return N=function(){return e},e}function z(){var e=X(["",""]);return z=function(){return e},e}function U(){var e=X(["",""]);return U=function(){return e},e}function q(){var e=X(["",""]);return q=function(){return e},e}function Q(){var e=X(["",""]);return Q=function(){return e},e}function W(){var e=X(["",""]);return W=function(){return e},e}function G(){var e=X(["",""]);return G=function(){return e},e}function $(){var e=X(["",""]);return $=function(){return e},e}function Y(){var e=X(["",""]);return Y=function(){return e},e}function K(){var e=X(["\n position: relative;\n width: 100%;\n min-height: 1px;\n padding-right: ","px;\n padding-left: ","px;\n\n ","\n\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return K=function(){return e},e}function X(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var J=function(e){return e.styledBootstrapGrid?e.styledBootstrapGrid.getGridColumns():12},ee=r.default.div.attrs((function(e){return{"data-name":(0,i.default)(e)}}))(K(),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getColPadding?e.theme.styledBootstrapGrid.getColPadding():15}),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getColPadding?e.theme.styledBootstrapGrid.getColPadding():15}),(function(e){return e.noGutter&&o.default.noGutter}),(function(e){return e.col&&o.default.col(e.col,J(e.theme))}),(function(e){return"undefined"!==typeof e.offset&&o.default.offset(e.offset,J(e.theme))}),(function(e){return e.auto&&o.default.col("auto",0)}),(function(e){return e.alignSelf&&o.default.alignSelf[e.alignSelf]}),(function(e){return e.order&&o.default.order(e.order)}),(function(e){return e.xs&&u.default.xs(Y(),o.default.col(e.xs,J(e.theme)))}),(function(e){return"undefined"!==typeof e.xsOffset&&(0,a.isNumber)(e.xsOffset)&&u.default.xs($(),o.default.offset(e.xsOffset,J(e.theme)))}),(function(e){return e.xsAuto&&u.default.xs(G(),o.default.col("auto",0))}),(function(e){return e.xsAlignSelf&&u.default.xs(W(),o.default.alignSelf[e.xsAlignSelf])}),(function(e){return e.xsOrder&&u.default.xs(Q(),o.default.order(e.xsOrder))}),(function(e){return e.hiddenXsDown&&u.default.max.xs(q(),o.default.display.none)}),(function(e){return e.hiddenXsUp&&u.default.min.xs(U(),o.default.display.none)}),(function(e){return e.sm&&u.default.sm(z(),o.default.col(e.sm,J(e.theme)))}),(function(e){return"undefined"!==typeof e.smOffset&&(0,a.isNumber)(e.smOffset)&&u.default.sm(N(),o.default.offset(e.smOffset,J(e.theme)))}),(function(e){return e.smAuto&&u.default.sm(V(),o.default.col("auto",0))}),(function(e){return e.smAlignSelf&&u.default.sm(F(),o.default.alignSelf[e.smAlignSelf])}),(function(e){return e.smOrder&&u.default.sm(H(),o.default.order(e.smOrder))}),(function(e){return e.hiddenSmDown&&u.default.max.sm(I(),o.default.display.none)}),(function(e){return e.hiddenSmUp&&u.default.min.sm(D(),o.default.display.none)}),(function(e){return e.md&&u.default.md(Z(),o.default.col(e.md,J(e.theme)))}),(function(e){return"undefined"!==typeof e.mdOffset&&(0,a.isNumber)(e.mdOffset)&&u.default.md(B(),o.default.offset(e.mdOffset,J(e.theme)))}),(function(e){return e.mdAuto&&u.default.md(T(),o.default.col("auto"))}),(function(e){return e.mdAlignSelf&&u.default.md(_(),o.default.alignSelf[e.mdAlignSelf])}),(function(e){return e.mdOrder&&u.default.md(A(),o.default.order(e.mdOrder))}),(function(e){return e.hiddenMdDown&&u.default.max.md(R(),o.default.display.none)}),(function(e){return e.hiddenMdUp&&u.default.min.md(M(),o.default.display.none)}),(function(e){return e.lg&&u.default.lg(L(),o.default.col(e.lg,J(e.theme)))}),(function(e){return"undefined"!==typeof e.lgOffset&&(0,a.isNumber)(e.lgOffset)&&u.default.lg(P(),o.default.offset(e.lgOffset,J(e.theme)))}),(function(e){return e.lgAuto&&u.default.lg(j(),o.default.col("auto"))}),(function(e){return e.lgAlignSelf&&u.default.lg(k(),o.default.alignSelf[e.lgAlignSelf])}),(function(e){return e.lgOrder&&u.default.lg(S(),o.default.order(e.lgOrder))}),(function(e){return e.hiddenLgDown&&u.default.max.lg(E(),o.default.display.none)}),(function(e){return e.hiddenLgUp&&u.default.min.lg(O(),o.default.display.none)}),(function(e){return e.xl&&u.default.xl(x(),o.default.col(e.xl,J(e.theme)))}),(function(e){return"undefined"!==typeof e.xlOffset&&(0,a.isNumber)(e.xlOffset)&&u.default.xl(w(),o.default.offset(e.xlOffset,J(e.theme)))}),(function(e){return e.xlAuto&&u.default.xl(C(),o.default.col("auto"))}),(function(e){return e.xlAlignSelf&&u.default.xl(b(),o.default.alignSelf[e.xlAlignSelf])}),(function(e){return e.xlOrder&&u.default.xl(y(),o.default.order(e.xlOrder))}),(function(e){return e.hiddenXlDown&&u.default.max.xl(m(),o.default.display.none)}),(function(e){return e.hiddenXlUp&&u.default.min.xl(g(),o.default.display.none)}),(function(e){return e.xxl&&u.default.xxl(v(),o.default.col(e.xxl,J(e.theme)))}),(function(e){return"undefined"!==typeof e.xxlOffset&&(0,a.isNumber)(e.xxlOffset)&&u.default.xxl(h(),o.default.offset(e.xxlOffset,J(e.theme)))}),(function(e){return e.xxlAuto&&u.default.xxl(p(),o.default.col("auto"))}),(function(e){return e.xxlAlignSelf&&u.default.xxl(d(),o.default.alignSelf[e.xxlAlignSelf])}),(function(e){return e.xxlOrder&&u.default.xxl(f(),o.default.order(e.xxlOrder))}),(function(e){return e.hiddenXxlDown&&u.default.max.xxl(l(),o.default.display.none)}),(function(e){return e.hiddenXxlUp&&u.default.min.xxl(s(),o.default.display.none)}));t.default=ee},17757:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={col:function(e,t){switch(e){case!0:return"\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n ";case"auto":return"\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: none;\n ";default:var n=100/t*e;return"\n -ms-flex: 0 0 ".concat(n,"%;\n flex: 0 0 ").concat(n,"%;\n max-width: ").concat(n,"%;\n ")}},offset:function(e,t){var n=100/t*e,r=n>0?"%":"";return"margin-left: ".concat(n).concat(r,";")},order:function(e){switch(e){case"first":return"\n -ms-flex-order: -1;\n order: -1;\n ";case"last":return"\n -ms-flex-order: 13;\n order: 13;\n ";default:return"\n -ms-flex-order: ".concat(e,";\n order: ").concat(e,";\n ")}},alignSelf:{auto:"\n -ms-flex-item-align: auto;\n align-self: auto;\n ",start:"\n -ms-flex-item-align: start;\n align-self: flex-start;\n ",end:"\n -ms-flex-item-align: end;\n align-self: flex-end;\n ",center:"\n -ms-flex-item-align: center;\n align-self: center;\n ",baseline:"\n -ms-flex-item-align: baseline;\n align-self: baseline;\n ",stretch:"\n -ms-flex-item-align: stretch;\n align-self: stretch;\n "},display:{none:"\n display: none;\n "},noGutter:"\n padding-right: 0;\n padding-left: 0;\n "};t.default=n},51423:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(69835);t.default=function(e){}},38232:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var o=n(68948);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i,a=(i=n(78300))&&i.__esModule?i:{default:i}},68948:function(){},77323:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(9518)),o=n(37831),i=a(n(55046));function a(e){return e&&e.__esModule?e:{default:e}}function u(){var e=d(["\n max-width: ","px;\n "]);return u=function(){return e},e}function c(){var e=d(["\n max-width: ","px;\n "]);return c=function(){return e},e}function s(){var e=d(["\n max-width: ","px;\n "]);return s=function(){return e},e}function l(){var e=d(["\n max-width: ","px;\n "]);return l=function(){return e},e}function f(){var e=d(["\n width: 100%;\n padding-right: ","px;\n padding-left: ","px;\n margin-right: auto;\n margin-left: auto;\n\n ","\n\n ","\n\n ","\n\n ","\n"]);return f=function(){return e},e}function d(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var p=r.default.div.attrs((function(e){return{"data-name":void 0}}))(f(),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getContainerPadding?e.theme.styledBootstrapGrid.getContainerPadding():15}),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getContainerPadding?e.theme.styledBootstrapGrid.getContainerPadding():15}),(function(e){return!e.fluid&&i.default.sm(l(),(!e.theme||!e.theme.styledBootstrapGrid||!e.theme.styledBootstrapGrid.getContainerMaxWidth)&&o.defaultContainerMaxWidth.sm||e.theme.styledBootstrapGrid.getContainerMaxWidth("sm"))}),(function(e){return!e.fluid&&i.default.md(s(),(!e.theme||!e.theme.styledBootstrapGrid||!e.theme.styledBootstrapGrid.getContainerMaxWidth)&&o.defaultContainerMaxWidth.md||e.theme.styledBootstrapGrid.getContainerMaxWidth("md"))}),(function(e){return!e.fluid&&i.default.lg(c(),(!e.theme||!e.theme.styledBootstrapGrid||!e.theme.styledBootstrapGrid.getContainerMaxWidth)&&o.defaultContainerMaxWidth.lg||e.theme.styledBootstrapGrid.getContainerMaxWidth("lg"))}),(function(e){return!e.fluid&&i.default.xl(u(),(!e.theme||!e.theme.styledBootstrapGrid||!e.theme.styledBootstrapGrid.getContainerMaxWidth)&&o.defaultContainerMaxWidth.xl||e.theme.styledBootstrapGrid.getContainerMaxWidth("xl"))}));t.default=p},41110:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var o=n(12791);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i,a=(i=n(77323))&&i.__esModule?i:{default:i}},12791:function(){},90306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(9518)),o=u(n(80340)),i=u(n(55046)),a=u(n(56104));function u(e){return e&&e.__esModule?e:{default:e}}function c(){var e=m(["",""]);return c=function(){return e},e}function s(){var e=m(["",""]);return s=function(){return e},e}function l(){var e=m(["",""]);return l=function(){return e},e}function f(){var e=m(["",""]);return f=function(){return e},e}function d(){var e=m(["",""]);return d=function(){return e},e}function p(){var e=m(["",""]);return p=function(){return e},e}function h(){var e=m(["",""]);return h=function(){return e},e}function v(){var e=m(["",""]);return v=function(){return e},e}function g(){var e=m(["\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n margin-right: -","px;\n margin-left: -","px;\n\n ","\n ","\n ","\n ","\n ","\n\n ","\n ","\n ","\n ","\n ","\n"]);return g=function(){return e},e}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var y=r.default.div.attrs((function(e){return{"data-name":(0,a.default)(e)}}))(g(),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getRowPadding?e.theme.styledBootstrapGrid.getRowPadding():15}),(function(e){return e.theme&&e.theme.styledBootstrapGrid&&e.theme.styledBootstrapGrid.getRowPadding?e.theme.styledBootstrapGrid.getRowPadding():15}),(function(e){return e.alignItems&&o.default.alignItems[e.alignItems]}),(function(e){return e.smAlignItems&&i.default.sm(v(),o.default.alignItems[e.smAlignItems])}),(function(e){return e.mdAlignItems&&i.default.md(h(),o.default.alignItems[e.mdAlignItems])}),(function(e){return e.lgAlignItems&&i.default.lg(p(),o.default.alignItems[e.lgAlignItems])}),(function(e){return e.xlAlignItems&&i.default.xl(d(),o.default.alignItems[e.xlAlignItems])}),(function(e){return e.justifyContent&&o.default.justifyContent[e.justifyContent]}),(function(e){return e.smJustifyContent&&i.default.sm(f(),o.default.justifyContent[e.smJustifyContent])}),(function(e){return e.mdJustifyContent&&i.default.md(l(),o.default.justifyContent[e.mdJustifyContent])}),(function(e){return e.lgJustifyContent&&i.default.lg(s(),o.default.justifyContent[e.lgJustifyContent])}),(function(e){return e.xlJustifyContent&&i.default.xl(c(),o.default.justifyContent[e.xlJustifyContent])}));t.default=y},80340:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={alignItems:{start:"\n -ms-flex-align: start !important;\n align-items: flex-start !important;\n ",end:"\n -ms-flex-align: end !important;\n align-items: flex-end !important;\n ",center:"\n -ms-flex-align: center !important;\n align-items: center !important;\n ",baseline:"\n -ms-flex-align: baseline !important;\n align-items: baseline !important;\n ",stretch:"\n -ms-flex-align: stretch !important;\n align-items: stretch !important;\n "},justifyContent:{start:"\n -ms-flex-pack: start !important;\n justify-content: flex-start !important;\n ",end:"\n -ms-flex-pack: end !important;\n justify-content: flex-end !important;\n ",center:"\n -ms-flex-pack: center !important;\n justify-content: center !important;\n ",between:"\n -ms-flex-pack: justify !important;\n justify-content: space-between !important;\n ",around:"\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important;\n "}};t.default=n},56104:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){}},58759:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var o=n(97085);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i,a=(i=n(90306))&&i.__esModule?i:{default:i}},97085:function(){},37831:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.defaultContainerMaxWidth=void 0;var r=u(n(82684)),o=n(9518),i=n(69835),a=u(n(96463));function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t1?n-1:0),i=1;i1?n-1:0),a=1;ap)&&(H=(N=N.replace(" ",":")).length),0<_&&void 0!==(C=u(1,N,r,e,P,j,z.length,s,d,s))&&0===(H=(N=C.trim()).length)&&(N="\0\0"),p=N.charCodeAt(0),h=N.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){q+=N+c.charAt(Z);break}default:58!==N.charCodeAt(H-1)&&(z+=o(N,p,h,N.charCodeAt(2)))}I=D=T=p=0,N="",h=c.charCodeAt(++Z)}}switch(h){case 13:case 10:47===O?O=0:0===1+p&&107!==s&&0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0<_){var o=u(-1,n,r,r,P,j,0,0,0,0);void 0!==o&&"string"===typeof o&&(n=o)}var i=t(R,r,n,0,0);return 0<_&&(void 0!==(o=u(-2,i,r,r,P,j,i.length,0,0,0))&&(i=o)),"",L=0,j=P=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,v=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,C=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,O=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,j=1,P=1,L=0,M=1,R=[],A=[],_=0,T=null,B=0;return s.use=function e(t){switch(t){case void 0:case null:_=A.length=0;break;default:if("function"===typeof t)A[_++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var P=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&j(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i=R&&(R=t+1),L.set(e,t),M.set(t,e)},B="style["+x+'][data-styled-version="5.3.6"]',Z=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(x))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(x,"active"),r.setAttribute("data-styled-version","5.3.6");var a=H();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},V=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(s+=e+",")})),r+=""+u+c+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),W=/(a)(d)/gi,G=function(e){return String.fromCharCode(e+(e>25?39:97))};function $(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=G(t%52)+n;return(G(t%52)+n).replace(W,"$1-$2")}var Y=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},K=function(e){return Y(5381,e)};function X(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var u=n(i,"."+a,void 0,r);t.insertRules(r,a,u)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,s=Y(this.baseHash,n.hash),l="",f=0;f>>0);if(!t.hasNameForId(r,v)){var g=n(l,"."+v,void 0,r);t.insertRules(r,v,g)}o.push(v)}}return o.join(" ")},e}(),te=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function re(e){var t,n,r,o,i=void 0===e?y:e,a=i.options,c=void 0===a?y:a,s=i.plugins,l=void 0===s?m:s,f=new u(c),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,u,c,s,l,f){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,r,i){return 0===r&&-1!==ne.indexOf(i[n.length])||i.match(o)?e:"."+t};function v(e,i,a,u){void 0===u&&(u="&");var c=e.replace(te,""),s=i&&a?a+" "+i+" { "+c+" }":c;return t=u,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,s)}return f.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),v.hash=l.length?l.reduce((function(e,t){return t.name||j(15),Y(e,t.name)}),5381).toString():"",v}var oe=o.createContext(),ie=oe.Consumer,ae=o.createContext(),ue=(ae.Consumer,new Q),ce=re();function se(){return(0,o.useContext)(oe)||ue}function le(){return(0,o.useContext)(ae)||ce}function fe(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=se(),u=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,o.useMemo)((function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,o.useEffect)((function(){a()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.createElement(oe.Provider,{value:u},o.createElement(ae.Provider,{value:c},e.children))}var de=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ce);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return j(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ce),this.name+e.hash},e}(),pe=/([A-Z])/,he=/([A-Z])/g,ve=/^ms-/,ge=function(e){return"-"+e.toLowerCase()};function me(e){return pe.test(e)?e.replace(he,ge).replace(ve,"-ms-"):e}var ye=function(e){return null==e||!1===e||""===e};function be(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,u=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,Ee=/(^-|-$)/g;function Se(e){return e.replace(Oe,"-").replace(Ee,"")}var ke=function(e){return $(K(e)>>>0)};function je(e){return"string"==typeof e&&!0}var Pe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Le=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Me(e,t,n){var r=e[n];Pe(t)&&Pe(r)?Re(r,t):e[n]=t}function Re(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(je(e)?e:Se(C(e)));return Ze(e,h({},o,{attrs:g,componentId:i}),n)},Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Re({},e.defaultProps,t):t}}),O.toString=function(){return"."+O.styledComponentId},i&&d()(O,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),O}var De=function(e){return function e(t,n,o){if(void 0===o&&(o=y),!(0,r.isValidElementType)(n))return j(1,String(n));var i=function(){return t(n,o,we.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,h({},o,{},r))},i.attrs=function(r){return e(t,n,h({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Ze,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){De[e]=De(e)}));var Ie=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=X(e),Q.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(be(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Q.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function He(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?j(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return j(2);var n=((t={})[x]="",t["data-styled-version"]="5.3.6",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=H();return r&&(n.nonce=r),[o.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Q({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?j(2):o.createElement(fe,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return j(3)},e}(),Ne=function(e){var t=o.forwardRef((function(t,n){var r=(0,o.useContext)(Ae),i=e.defaultProps,a=xe(t,r,i);return o.createElement(e,h({},t,{theme:a,ref:n}))}));return d()(t,e),t.displayName="WithTheme("+C(e)+")",t},ze=function(){return(0,o.useContext)(Ae)},Ue={StyleSheet:Q,masterSheet:ue},qe=De},28295:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(85722);function o(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return"undefined"===typeof t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(r){}return e}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&this.changeListeners.splice(t,1)},e}()},94353:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r="zkWlN0PkIKSN0C11CfUHUj84OT5XOJ6tDZ6bDRO2"},82531:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Xe}});var r=n(82394),o=n(77837),i=n(75582),a=n(38860),u=n.n(a),c=(n(83455),n(82684));function s(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function u(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]i||setTimeout(r,u,o)},onDiscarded:d,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Z?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Z?5e3:3e3,compare:function(e,t){return x(e)==x(t)},isPaused:function(){return!1},cache:Q,mutate:W,fallback:{}},M),$=function(e,t){var n=m(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=m(o,a))}return n},Y=(0,c.createContext)({}),K=function(e){return g(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},X=function(){return m(G,(0,c.useContext)(Y))},J=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},ee={dedupe:!0},te=(h.defineProperty((function(e){var t=e.value,n=$((0,c.useContext)(Y),t),r=t&&t.provider,o=(0,c.useState)((function(){return r?U(r(n.cache||Q),t):p}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),T((function(){return o?o[2]:p}),[]),(0,c.createElement)(Y.Provider,m(e,{value:n}))}),"default",{value:G}),f=function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,a=n.suspense,u=n.revalidateOnMount,f=n.refreshInterval,d=n.refreshWhenHidden,h=n.refreshWhenOffline,y=I.get(r),b=y[0],C=y[1],w=y[2],x=y[3],O=D(e),E=O[0],S=O[1],k=O[2],j=(0,c.useRef)(!1),P=(0,c.useRef)(!1),L=(0,c.useRef)(E),M=(0,c.useRef)(t),R=(0,c.useRef)(n),B=function(){return R.current},Z=function(){return B().isVisible()&&B().isOnline()},F=function(e){return r.set(k,m(r.get(k),e))},z=r.get(E),U=v(i)?n.fallback[E]:i,q=v(z)?U:z,Q=r.get(k)||{},W=Q.error,G=!j.current,$=function(){return G&&!v(u)?u:!B().isPaused()&&(a?!v(q)&&n.revalidateIfStale:v(q)||n.revalidateIfStale)},Y=!(!E||!t)&&(!!Q.isValidating||G&&$()),K=function(e,t){var n=(0,c.useState)({})[1],r=(0,c.useRef)(e),o=(0,c.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,c.useCallback)((function(e){var i=!1,a=r.current;for(var u in e){var c=u;a[c]!==e[c]&&(a[c]=e[c],o.current[c]&&(i=!0))}i&&!t.current&&n({})}),[]);return T((function(){r.current=e})),[r,o.current,i]}({data:q,error:W,isValidating:Y},P),X=K[0],te=K[1],ne=K[2],re=(0,c.useCallback)((function(e){return s(void 0,void 0,void 0,(function(){var t,i,a,u,c,s,f,d,h,m,y,b,C;return l(this,(function(l){switch(l.label){case 0:if(t=M.current,!E||!t||P.current||B().isPaused())return[2,!1];u=!0,c=e||{},s=!x[E]||!c.dedupe,f=function(){return!P.current&&E===L.current&&j.current},d=function(){var e=x[E];e&&e[1]===a&&delete x[E]},h={isValidating:!1},m=function(){F({isValidating:!1}),f()&&ne(h)},F({isValidating:!0}),ne({isValidating:!0}),l.label=1;case 1:return l.trys.push([1,3,,4]),s&&(H(r,E,X.current.data,X.current.error,!0),n.loadingTimeout&&!r.get(E)&&setTimeout((function(){u&&f()&&B().onLoadingSlow(E,n)}),n.loadingTimeout),x[E]=[t.apply(void 0,S),V()]),C=x[E],i=C[0],a=C[1],[4,i];case 2:return i=l.sent(),s&&setTimeout(d,n.dedupingInterval),x[E]&&x[E][1]===a?(F({error:p}),h.error=p,y=w[E],!v(y)&&(a<=y[0]||a<=y[1]||0===y[1])?(m(),s&&f()&&B().onDiscarded(E),[2,!1]):(o(X.current.data,i)?h.data=X.current.data:h.data=i,o(r.get(E),i)||r.set(E,i),s&&f()&&B().onSuccess(i,E,n),[3,4])):(s&&f()&&B().onDiscarded(E),[2,!1]);case 3:return b=l.sent(),d(),B().isPaused()||(F({error:b}),h.error=b,s&&f()&&(B().onError(b,E,n),("boolean"===typeof n.shouldRetryOnError&&n.shouldRetryOnError||g(n.shouldRetryOnError)&&n.shouldRetryOnError(b))&&Z()&&B().onErrorRetry(b,E,n,re,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,m(),f()&&s&&H(r,E,h.data,h.error,!1),[2,!0]}}))}))}),[E]),oe=(0,c.useCallback)(N.bind(p,r,(function(){return L.current})),[]);if(T((function(){M.current=t,R.current=n})),T((function(){if(E){var e=E!==L.current,t=re.bind(p,ee),n=0,r=J(E,C,(function(e,t,n){ne(m({error:t,isValidating:n},o(X.current.data,e)?p:{data:e}))})),i=J(E,b,(function(e){if(0==e){var r=Date.now();B().revalidateOnFocus&&r>n&&Z()&&(n=r+B().focusThrottleInterval,t())}else if(1==e)B().revalidateOnReconnect&&Z()&&t();else if(2==e)return re()}));return P.current=!1,L.current=E,j.current=!0,e&&ne({data:q,error:W,isValidating:Y}),$()&&(v(q)||A?t():_(t)),function(){P.current=!0,r(),i()}}}),[E,re]),T((function(){var e;function t(){var t=g(f)?f(q):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){X.current.error||!d&&!B().isVisible()||!h&&!B().isOnline()?t():re(ee).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[f,d,h,re]),(0,c.useDebugValue)(q),a&&v(q)&&E)throw M.current=t,R.current=n,P.current=!1,v(W)?re(ee):W;return{mutate:oe,get data(){return te.data=!0,q},get error(){return te.error=!0,W},get isValidating(){return te.isValidating=!0,Y}}},function(){for(var e=[],t=0;t0;)c=s[l](c);return c(o,i||u.fetcher,u)}),ne=n(55056),re=n.n(ne),oe=n(35490),ie=n(94353),ae=n(59e3);function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.body,o=t.ctx,a=t.method,u=void 0===a?fe:a,c=t.query,s=void 0===c?{}:c,l=t.token,f={"Content-Type":"application/json"},d={method:u};if(n){var p=n.file,h=n.file_json_only;if(p&&!h){p.name,p.size,p.type;var v=new FormData,g=Object.keys(n).filter((function(e){return"file"!==e}))[0],m=JSON.stringify((0,r.Z)({api_key:se},g,n[g]));v.set("json_root_body",m),v.append("file",p),d.body=v,delete f["Content-Type"]}else d.body=JSON.stringify(ce(ce({},n),{},{api_key:se}))}var y=o&&o.auth?o.auth:new oe.Z(l),b=y.authorizationString;b&&(f.Authorization=b),d.headers=new Headers(f);var C=ce(ce({},(0,ae.iV)(e)),s);se&&(C.api_key=se);var w=Object.entries(C).reduce((function(e,t){var n=(0,i.Z)(t,2),r=n[0],o=n[1];return e.concat("".concat(r,"=").concat(o))}),[]).join("&");return{data:d,headers:f,method:u,queryString:w,url:e.split("?")[0]}}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=he(e,t),r=n.data,o=n.queryString,i=n.url,a=o?"".concat(i,"?").concat(o):i;return fetch(a,r)}function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=he(e,t),r=n.data,o=n.headers,i=n.method,a=n.queryString,u=n.url,c=a?"".concat(u,"?").concat(a):u;return re().request({data:r.body,headers:o,method:i,onUploadProgress:null!==t&&void 0!==t&&t.onUploadProgress?function(e){return t.onUploadProgress(e,{body:null===t||void 0===t?void 0:t.body,query:null===t||void 0===t?void 0:t.query})}:null,url:c})}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ve(e,t).then((function(e){return e.clone().json()}))}var ye=n(28799);function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return ge((0,ye.Q2)(e),Ce(Ce({},n),{},{body:t,method:de}))}function xe(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=(0,ye.Q2)(t,n,e);return ge(i,Ce(Ce({},o),{},{body:r,method:de}))}function Oe(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=(0,ye.Q2)(t,n,e,r);return ge(a,Ce(Ce({},i),{},{body:o,method:de}))}function Ee(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=(0,ye.Q2)(t,n,e,r);return ge(a,Ce(Ce({},i),{},{body:o,method:pe}))}function Se(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return ve((0,ye.Q2)(t,n),{ctx:e,query:r,method:fe})}function ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ve((0,ye.Q2)(t),{ctx:e,query:n,method:fe})}function je(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return ve((0,ye.Q2)(n,r,t),{ctx:e,query:o,method:fe})}function Pe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=(0,ye.Q2)(e,t,null,null,r);return ge(o,{body:n,method:pe})}function Le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=te(t?(0,ye.Q2)(e,t):null,(function(e){return me(e,{method:fe,query:n})}),r),i=o.data,a=o.error,u=o.mutate;return{data:i,error:a,mutate:u}}function Me(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6?arguments[6]:void 0,u=te(t&&(r?(0,ye.Q2)(n,r,e,t,o,a):null),(function(e){return me(e,{method:fe,query:o})}),i),c=u.data,s=u.error,l=u.mutate;return{data:c,error:s,mutate:l}}function Re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ve((0,ye.Q2)(e,t),{query:n,method:le})}function Ae(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return ve((0,ye.Q2)(t,n,e,r),{query:o,method:le})}function _e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.pauseFetch,i=void 0!==o&&o,a=te(i?null:(0,ye.Q2)(e,null,null,null,t),(function(e){return me(e)}),n),u=a.data,c=a.error,s=a.mutate;return{data:u,error:c,loading:!u&&!c,mutate:s}}function Te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=te(n?(0,ye.Q2)(t,n,e,null,r):null,(function(e){return me(e)}),o),a=i.data,u=i.error,c=i.mutate;return{data:a,error:u,loading:!a&&!u,mutate:c}}function Be(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return ve((0,ye.Q2)(t,n,null,null,o),{body:r,ctx:e,method:pe})}var Ze=n(96510);function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return Le(n,e,t,Ie(Ie({},c),r))},detailAsync:function(){var e=(0,o.Z)(u().mark((function e(t,r){var o,i,a=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=a.length>2&&void 0!==a[2]?a[2]:{},e.next=3,Se(t,n,r,o);case 3:return i=e.sent,e.next=6,(0,Ze.pr)(i);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),updateAsync:function(){var e=(0,o.Z)(u().mark((function e(t,r,o){var i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Be(t,n,r,o);case 2:return i=e.sent,e.next=5,(0,Ze.pr)(i);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),useUpdate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){var r=(0,o.Z)(u().mark((function r(o){return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Pe(n,e,o,t));case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()}}),a?(Ke[n][r][a]={},Ke[n][r][a].detail=function(e,t,o,i){return Me(n,t,r,e,o,Ie(Ie({},c),i),a)}):r?(Ke[n][r]={},Ke[n][r].useCreate=function(e,t){return function(){var i=(0,o.Z)(u().mark((function o(i){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",xe(n,r,e,i,t));case 1:case"end":return o.stop()}}),o)})));return function(e){return i.apply(this,arguments)}}()},Ke[n][r].useCreateWithParent=function(e,t,i){return function(){var a=(0,o.Z)(u().mark((function o(a){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Oe(n,r,e,t,a,i));case 1:case"end":return o.stop()}}),o)})));return function(e){return a.apply(this,arguments)}}()},Ke[n][r].useCreateWithParentIdLater=function(e){return function(){var t=(0,o.Z)(u().mark((function t(o){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",xe(n,r,o.parentId,o.body,e));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},Ke[n][r].useUpdate=function(e,t,i){return function(){var a=(0,o.Z)(u().mark((function o(a){return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Ee(n,r,e,t,a,i));case 1:case"end":return o.stop()}}),o)})));return function(e){return a.apply(this,arguments)}}()},Ke[n][r].useDelete=function(e,t,i){return(0,o.Z)(u().mark((function o(){var a;return u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Ae(n,r,e,t,i);case 2:return a=o.sent,o.next=5,(0,Ze.pr)(a);case 5:return o.abrupt("return",o.sent);case 6:case"end":return o.stop()}}),o)})))},Ke[n][r].listAsync=function(){var e=(0,o.Z)(u().mark((function e(t,o){var i,a,c=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=c.length>2&&void 0!==c[2]?c[2]:{},e.next=3,je(t,n,r,o,i);case 3:return a=e.sent,e.next=6,(0,Ze.pr)(a);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Ke[n][r].list=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;return Te(n,r,e,t,Ie(Ie({},c),o))},Ke[n][r].detail=function(e,t,o,i){return Me(n,t,r,e,o,Ie(Ie({},c),i))}):(Ke[n].create=function(){var e=(0,o.Z)(u().mark((function e(t,r){var o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,we(n,t,r);case 2:return o=e.sent,e.next=5,(0,Ze.pr)(o);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Ke[n].useCreate=function(e){return function(){var t=(0,o.Z)(u().mark((function t(r){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",we(n,r,e));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},Ke[n].useDelete=function(e,t){return(0,o.Z)(u().mark((function r(){var o;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Re(n,e,t);case 2:return o=r.sent,r.next=5,(0,Ze.pr)(o);case 5:return r.abrupt("return",r.sent);case 6:case"end":return r.stop()}}),r)})))},Ke[n].listAsync=function(){var e=(0,o.Z)(u().mark((function e(t){var r,o,i=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,ke(t,n,r);case 3:return o=e.sent,e.next=6,(0,Ze.pr)(o);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ke[n].list=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return _e(n,e,Ie(Ie({},c),t),r)})}));var Xe=Ke},35490:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(77837),o=n(62243),i=n(29385),a=n(82394),u=n(38860),c=n.n(u);function s(e){this.message=e}s.prototype=new Error,s.prototype.name="InvalidCharacterError";var l="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new s("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function f(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(l(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return l(t)}}function d(e){this.message=e}d.prototype=new Error,d.prototype.name="InvalidTokenError";var p=function(e,t){if("string"!=typeof e)throw new d("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(f(e.split(".")[n]))}catch(e){throw new d("Invalid token specified: "+e.message)}},h=n(66757),v=n.n(h),g=n(55361),m=n(9736),y=n(59e3),b=function(){function e(t){(0,o.Z)(this,e),this.token=t,(0,a.Z)(this,"decodedToken",void 0),(0,a.Z)(this,"logout",e.logout),this.decodedToken={expires:0,token:null};try{this.decodedToken=p(t||(0,g.LP)())}catch(s){}}return(0,i.Z)(e,[{key:"authorizationString",get:function(){if(this.decodedToken.token)return"Bearer ".concat(this.decodedToken.token)}},{key:"expiresAt",get:function(){return new Date(1e3*this.decodedToken.expires)}},{key:"isExpired",get:function(){return new Date>this.expiresAt}},{key:"isValid",get:function(){return this.decodedToken.token&&!this.isExpired}}],[{key:"isLoggedIn",value:function(){return(new e).isValid}},{key:"storeToken",value:function(){var e=(0,r.Z)(c().mark((function e(t){var n,r=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]?r[1]:null,(0,g.o4)(t),!n){e.next=5;break}return e.next=5,n();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"logout",value:function(){var e=(0,r.Z)(c().mark((function e(){var t,n=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:null,e.prev=1,!t){e.next=7;break}return e.next=5,t();case 5:e.next=9;break;case 7:return e.next=9,(0,y.nL)("/sign-in");case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(1);case 13:v().clear(),(0,m.kX)(),(0,g.gy)();case 16:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(){return e.apply(this,arguments)}}()}]),e}()},96510:function(e,t,n){"use strict";n.d(t,{QZ:function(){return l},pr:function(){return s},qQ:function(){return d},wD:function(){return p}});var r=n(21831),o=n(82394),i=n(75582);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=c(e),o=n.code,i=n.errors,a=n.exception,u=n.message,s=n.messages,l=[];if(u)l.push.apply(l,(0,r.Z)(u.split("\n")));else if((null===s||void 0===s?void 0:s.length)>=1)l.push.apply(l,(0,r.Z)(s));else{var f=t.errorMessage||(null===s||void 0===s?void 0:s[0])||i;f&&l.push(f)}return a&&l.push(a),{code:o,messages:l}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.acceptErrorStatuses,r=void 0===n?[]:n,o=t.callback,i=t.onErrorCallback,a=(t.successMessage,e.error);if(a&&!r.includes(null===a||void 0===a?void 0:a.code)){var u=l(e);return null===i||void 0===i||i(e,u),u}return null===o||void 0===o?void 0:o(e)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.errors,r=e.message,o=e.response,i=u({error:{code:null===o||void 0===o?void 0:o.status,messages:[n||r]}},null===o||void 0===o?void 0:o.data),a=t.callback;return null===a||void 0===a||a(i),l(i,t)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.status?s(e).then((function(e){return f(e,t)})):f(e,t)}},55361:function(e,t,n){"use strict";n.d(t,{Hu:function(){return s},LP:function(){return l},Mv:function(){return c},gy:function(){return f},o4:function(){return d}});var r=n(82394),o=n(39421),i=n(86954);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"localhost",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"6789",r=t;return e&&(r=window.location.hostname),r===t?r="".concat(r,":").concat(n):e&&window.location.port&&(r="".concat(r,":").concat(window.location.port)),r}function i(){var e="localhost",t="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_",n=o(true,e,"6789"),r=function(e,t){var n,r="http://";return t!==(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"localhost")&&(r="https://",!e||null!==(n=window.location.protocol)&&void 0!==n&&n.match(/https/)||(r="http://")),r}(true,n,e),i="";return t.includes("CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER")||(i=t),"".concat(r).concat(n).concat(i,"/api")}function a(){var e,t="ws://";return null!==(e=window.location.protocol)&&void 0!==e&&e.match(/https/)&&(t="wss://"),"".concat(t).concat(o(true,"localhost","6789"),"/websocket/")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c="".concat(i(),"/").concat(e);return t&&(c="".concat(c,"/").concat(t)),n&&(c="".concat(c,"/").concat(n)),o&&(c="".concat(c,"/").concat(o)),u&&(c="".concat(c,"/").concat(u)),Object.values(a||{}).length>=1&&(c="".concat(c,"?").concat((0,r.uM)(a))),c}},41150:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(82684),o=r.createContext({disableGlobalKeyboardShortcuts:!1,registerOnKeyDown:null,registerOnKeyUp:null,setDisableGlobalKeyboardShortcuts:function(){},unregisterOnKeyDown:null,unregisterOnKeyUp:null}),i=function(){return(0,r.useContext)(o)};t.Z=o},83608:function(e,t,n){"use strict";n.d(t,{DY:function(){return V},dd:function(){return Q}});var r=n(82684),o=function(){throw new Error("Attempted to call useModal outside of modal context. Make sure your app is rendered inside ModalProvider.")},i=r.createContext({hideModal:o,showModal:o});i.displayName="ModalContext";var a,u,c,s,l=n(82394),f=n(75582),d=n(26304),p=n(26653),h=n(85202),v=n(9518),g=n(16910),m=n(33591),y=n(47999),b=n(10919),C=n(23831),w=n(10503),x=n(49125),O=n(28598),E=["component","runtimeProps"];function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t=1;document.body.style.overflow=n?"hidden":"unset"}),[t,p]),u&&t?h.createPortal((0,O.jsx)(i,{children:Object.entries(t).map((function(e){var t=(0,f.Z)(e,2),n=t[0],r=t[1],o=r.background,i=r.component,a=r.disableCloseButton,u=r.disableClickOutside,c=r.disableEscape,s=r.hide,l=r.hideCallback,p=r.runtimeProps,h=function(){s(),l&&l()},v=d[n];return(0,O.jsxs)(_,{children:[(0,O.jsx)(g.Z,{classNames:"global-modal",in:v,timeout:R,unmountOnExit:!0,children:(0,O.jsx)(B,{children:(0,O.jsx)(Z,{children:(0,O.jsxs)(y.Z,{disableClickOutside:u,disableEscape:c,isOpen:!0,onClickOutside:h,children:[!a&&(0,O.jsx)(L,{children:(0,O.jsx)(b.Z,{block:!0,onClick:h,preventDefault:!0,sameColorAsText:!0,children:(0,O.jsx)(w.x8,{size:j})})}),(0,O.jsx)(M,{component:i,runtimeProps:p})]})})})}),o&&(0,O.jsx)(g.Z,{classNames:"background-style",in:v,timeout:R,unmountOnExit:!0,children:(0,O.jsx)(T,{})})]},n)}))}),u):(0,O.jsx)("div",{})})),I=n(79642);function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!z(e))throw new Error("Only stateless components can be used as an argument to useModal. You have probably passed a class component where a function was expected.");var a=o.uuid,u=o.visible,c=(0,r.useMemo)(a?function(){return a}:N,[a]),s=(0,r.useMemo)((function(){return e}),n),l=(0,r.useContext)(i),f=(0,r.useState)(u),d=f[0],p=f[1],h=(0,r.useState)({}),v=h[0],g=h[1],m=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g(e),p(!0)}),[]),y=(0,r.useCallback)((function(){return p(!1)}),[]);return(0,r.useEffect)((function(){return d?l.showModal(c,s,y,t,q(q({},o),{},{runtimeProps:v})):l.hideModal(c),function(){return l.hideModal(c)}}),[d,d]),[m,y]}},79642:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(82394);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},o=t&&t[e];return o?i(i({},t),{},(0,r.Z)({},e,i(i(i({},o),n),{},{visible:!1}))):t}},81132:function(e,t,n){"use strict";n.d(t,{K$:function(){return u},No:function(){return o},gG:function(){return a}});var r,o,i=n(82394);!function(e){e[e.ADMIN=1]="ADMIN",e[e.EDITOR=2]="EDITOR",e[e.VIEWER=4]="VIEWER"}(o||(o={}));var a=(r={},(0,i.Z)(r,o.ADMIN,"Admin"),(0,i.Z)(r,o.EDITOR,"Editor"),(0,i.Z)(r,o.VIEWER,"Viewer"),r),u=[o.VIEWER,o.EDITOR,o.ADMIN]},47999:function(e,t,n){"use strict";var r=n(82684),o=n(28598);t.Z=function(e){var t=e.additionalRef,n=e.children,i=e.completeClickToClose,a=void 0!==i&&i,u=e.disableClickOutside,c=void 0!==u&&u,s=e.disableEscape,l=e.isOpen,f=e.onClick,d=e.onClickOutside,p=e.open,h=e.style,v=(0,r.useRef)(),g=(0,r.useState)(l),m=g[0],y=g[1],b=p||m,C=(0,r.useCallback)((function(e){var n,r;v&&null!==v&&void 0!==v&&null!==(n=v.current)&&void 0!==n&&null!==(r=n.contains)&&void 0!==r&&r.call(n,e.target)||t&&t.current.contains(e.target)||c||(d?d(e):y(!1))}),[t,c,v,d]);(0,r.useEffect)((function(){var e=a?"click":"mousedown";return b?document.addEventListener(e,C):document.removeEventListener(e,C),function(){document.removeEventListener(e,C)}}),[a,C,b]);var w=(0,r.useCallback)((function(e){"Escape"===e.key&&b&&d&&(d(e),e.preventDefault())}),[b,d]);return(0,r.useEffect)((function(){if(!s)return window.addEventListener("keydown",w),function(){window.removeEventListener("keydown",w)}}),[s,w]),(0,o.jsx)("div",{onClick:f,ref:v,style:h,children:b&&n})}},57384:function(e,t,n){"use strict";var r=n(1887),o=n.n(r),i=n(28598);t.Z=function(e){var t=e.children,n=e.defaultTitle,r=void 0===n?"Mage":n,a=e.title;return(0,i.jsxs)(o(),{children:[(0,i.jsx)("title",{children:a?"".concat(a," | ").concat(r):r}),t]})}},10919:function(e,t,n){"use strict";n.d(t,{R:function(){return v}});var r=n(82394),o=n(26304),i=n(82684),a=n(9518),u=n(23831),c=n(73942),s=n(19711),l=n(90880),f=n(28598),d=["children","disabled","href","onClick","onDoubleClick","onFocus","openNewWindow","preventDefault","sameColorAsText","selected","target","transparentBorder","weightStyle"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=(0,i.Z)({},n);return(0,s.jsx)(v,b(b(b({},r),t),{},{children:e.map((function(e,n){var i=e.Style,a=(0,o.Z)(e,m);return i?(0,g.createElement)(i,b(b(b({useStroke:null===t||void 0===t?void 0:t.useStroke},r),a),{},{key:n})):(0,g.createElement)(p,b(b(b({useStroke:null===t||void 0===t?void 0:t.useStroke},r),a),{},{key:n}))}))}))}}C([{clipRule:"evenodd",d:"M6.00008 2.02322L1.90857 4.96911l4.09151 2.4549 4.09152-2.4549-4.09152-2.94589zm-.52588-.8536c.31411-.22616.73764-.22616 1.05175 0l4.27325 3.07671c.5248.37786.4917 1.1694-.0629 1.50212L6.46312 8.31237a.89999.89999 0 01-.92609 0L1.26382 5.74845C.70929 5.41573.67619 4.62419 1.201 4.24633l4.2732-3.07671zM.57133 7.14986c.14207-.23679.4492-.31357.68599-.1715l4.74276 2.84565 4.74272-2.84565c.2368-.14207.5439-.06529.686.1715s.0653.54392-.1715.68599L6.46312 10.7124c-.28501.171-.64108.171-.92609 0L.74283 7.83585c-.2368-.14207-.31357-.4492-.1715-.68599z",fillRule:"evenodd"},{viewBox:"0 0 12 12"}]);var w=C([{d:"M13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5V11H5C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13H11V19C11 19.5523 11.4477 20 12 20C12.5523 20 13 19.5523 13 19V13H19C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11H13V5Z"}],{viewBox:"0 0 24 24"}),x=(C([{clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z",fillRule:"evenodd"}],{viewBox:"0 0 24 24"}),C([{d:"M10.722 18C10.5049 18 10.3126 17.8599 10.2461 17.6532L9.47227 15.2492C9.40575 15.0425 9.21344 14.9023 8.99632 14.9023H4.57942C4.36236 14.9023 4.17009 15.0424 4.10352 15.249L3.32875 17.6534C3.26218 17.86 3.06991 18 2.85285 18H1.50042C1.15475 18 0.913364 17.6576 1.02947 17.3321L5.30847 5.33327C5.37948 5.13416 5.56803 5.00122 5.77942 5.00122H7.82556C8.03684 5.00122 8.22531 5.13402 8.2964 5.33298L12.5837 17.3318C12.7001 17.6574 12.4587 18 12.1129 18H10.722ZM8.5356 12.339C8.63949 12.6618 8.39875 12.9922 8.05965 12.9922H5.51718C5.178 12.9922 4.93725 12.6617 5.04127 12.3388L6.56729 7.60311C6.59834 7.50674 6.68803 7.44141 6.78929 7.44141C6.89057 7.44141 6.98028 7.50677 7.01131 7.60318L8.5356 12.339Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M21.6186 18.0037C21.3702 18.0037 21.1594 17.8214 21.1246 17.5754C21.0802 17.2617 21.0323 16.9148 21.0179 16.7812C21.0176 16.7779 21.0133 16.7768 21.0116 16.7796C20.7922 17.155 20.0539 17.7793 19.0883 17.9805C18.6156 18.1016 16.9203 18.2656 15.8539 17.5938C15.0375 17.1094 14.7781 16.3745 14.6976 16.0039C14.5218 15.1953 14.6546 14.4102 14.8343 14C15.014 13.5898 15.3382 13.1289 16.0921 12.75C16.6952 12.4469 17.6768 12.2826 18.0921 12.2383C18.4207 12.1916 18.7726 12.1467 19.0973 12.1052C19.5059 12.0531 19.8713 12.0064 20.0921 11.9688C20.5985 11.8824 20.7077 11.8 20.7835 11.6484C20.8675 11.4806 20.8545 11.2245 20.8357 11.0767C20.778 10.7734 20.6409 10.42 20.3537 10.2112C19.9515 9.88672 19.6264 9.84854 19.0901 9.80913C18.764 9.78516 18.0804 9.80913 17.5139 10.2112C17.3853 10.3108 17.2407 10.4512 17.1241 10.6549C17.0137 10.8478 16.826 11 16.6036 10.9999L15.4539 10.9996C15.1637 10.9995 14.9322 10.751 15.0106 10.4716C15.138 10.0172 15.3828 9.57435 15.7157 9.23452C16.1111 8.83099 16.5433 8.55785 17.0895 8.33774C17.6357 8.11763 18.3652 7.99127 19.0908 8.0035C19.8163 8.01573 21.0101 8.09375 21.8892 8.94197C22.8422 9.79688 22.975 11.0391 23.0004 11.7601V17.5037C23.0004 17.7798 22.7765 18.0037 22.5004 18.0037H21.6186ZM20.8706 14.7567V14.6528L20.8695 14.6367L20.8706 14.6476V14.0097C20.8706 13.7068 20.6035 13.4735 20.3035 13.5146C19.5927 13.6121 18.7737 13.7263 18.5961 13.7578C18.5258 13.7703 18.4573 13.7803 18.3875 13.7905C18.1507 13.8252 17.8984 13.8621 17.5062 14.0039C17.1501 14.1326 16.9601 14.3428 16.8888 14.4655C16.8715 14.4953 16.8553 14.5257 16.8404 14.5567C16.7837 14.6748 16.7142 14.9343 16.7601 15.3125C16.8133 15.75 17.1521 16.0182 17.3148 16.0977C17.3225 16.1006 17.3341 16.1063 17.3499 16.114C17.4785 16.1765 17.8814 16.3725 18.6429 16.3359C19.4554 16.2969 20.0492 16.1016 20.5101 15.6367C20.7789 15.3473 20.8596 14.9808 20.8706 14.7567Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 24 24"})),O=C([{d:"M4.70096 9.75c.57735 1 2.02073 1 2.59808 0l2.59807-4.5C10.4745 4.25 9.75278 3 8.59808 3H3.40192c-1.1547 0-1.87638 1.25-1.29903 2.25l2.59807 4.5z"}],{viewBox:"0 0 12 12"}),E=C([{d:"M5.20096 2.25c.57735-1 2.02073-1 2.59808 0l2.59806 4.5c.5774 1-.1443 2.25-1.29902 2.25H3.90192c-1.1547 0-1.87638-1.25-1.29903-2.25l2.59807-4.5z"}],{viewBox:"0 0 12 12"}),S=C([{d:"M9.75 7.29904c1-.57735 1-2.02073 0-2.59808l-4.5-2.59807C4.25 1.52554 3 2.24722 3 3.40192v5.19616c0 1.1547 1.25 1.87642 2.25 1.29903l4.5-2.59807z"}],{viewBox:"0 0 12 12"}),k=C([{clipRule:"evenodd",fillRule:"evenodd",d:"M6.61362 1.21069C7.04956 1.54976 7.1281 2.17804 6.78903 2.61399L3.37765 7.00005H14.6663C15.2186 7.00005 15.6663 7.44776 15.6663 8.00005C15.6663 8.55233 15.2186 9.00005 14.6663 9.00005H3.37765L6.78903 13.3861C7.1281 13.8221 7.04956 14.4503 6.61362 14.7894C6.17767 15.1285 5.54939 15.0499 5.21032 14.614L0.543656 8.61399C0.262792 8.25288 0.262792 7.74722 0.543656 7.38611L5.21032 1.38611C5.54939 0.950158 6.17767 0.871624 6.61362 1.21069Z"}],{viewBox:"0 0 16 16"}),j=C([{Style:d,cx:6,cy:6,r:5,fill:"transparent"},{clipRule:"evenodd",d:"M6 11c2.76142 0 5-2.23858 5-5S8.76142 1 6 1 1 3.23858 1 6s2.23858 5 5 5zm0 1c3.31371 0 6-2.68629 6-6S9.31371 0 6 0 0 2.68629 0 6s2.68629 6 6 6z",fillRule:"evenodd"},{clipRule:"evenodd",d:"M8.13571 2.79051C7.93032 1.81491 6.9942 1 6.00001 1V0c1.50575 0 2.81963 1.18509 3.11425 2.58449.15165.7203.0358 1.50269-.45336 2.20821-.48458.69892-1.30719 1.28311-2.50278 1.68164-1.05441.35147-1.6693.82978-1.99721 1.30274-.32334.46635-.39498.96522-.29663 1.43241C4.06967 10.1851 5.00579 11 6.00001 11v1c-1.50578 0-2.81966-1.1851-3.11428-2.58449-.15164-.72031-.03578-1.50269.45338-2.20821.48458-.69892 1.3072-1.28311 2.50278-1.68164 1.05442-.35147 1.6693-.82978 1.99721-1.30274.32334-.46635.39497-.96521.29661-1.43241z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),P=C([{clipRule:"evenodd",d:"M3 3H9V9H3V3ZM10 2V9H17V16H24V24H17H16H10H9H2V17V16V10V9V2H10ZM16 23V17H10V23H16ZM17 23H23V17H17V23ZM16 16V10H10V16H16ZM9 10V16H3V10H9ZM9 17V23H3V17H9Z",fillRule:"evenodd"}],{viewBox:"0 0 26 26"}),L=C([{d:"M3 11.25V0.75",stroke:"white",strokeWidth:"1.125",strokeLinejoin:"round",useStroke:!0},{d:"M3 7.5H6C7.65685 7.5 9 6.15685 9 4.5V1.5M9 1.5L7.5 3M9 1.5L10.5 3",stroke:"white",strokeWidth:"1.125",strokeLinejoin:"round",useStroke:!0}],{fill:"none",viewBox:"0 0 12 12"}),M=C([{d:"M12.0833 3.33317H11.5V2.1665H10.3333V3.33317H5.66667V2.1665H4.5V3.33317H3.91667C3.26917 3.33317 2.75583 3.85817 2.75583 4.49984L2.75 12.6665C2.75 13.3082 3.26917 13.8332 3.91667 13.8332H12.0833C12.725 13.8332 13.25 13.3082 13.25 12.6665V4.49984C13.25 3.85817 12.725 3.33317 12.0833 3.33317ZM12.0833 12.6665H3.91667V6.83317H12.0833V12.6665ZM12.0833 5.6665H3.91667V4.49984H12.0833V5.6665ZM8 8.58317H10.9167V11.4998H8V8.58317Z"}],{viewBox:"0 0 16 16"}),R=(C([{d:"M7.2788 9.00002C6.84609 9.00002 6.61768 9.51239 6.90691 9.83423L11.4078 14.8426C11.6065 15.0637 11.953 15.0636 12.1517 14.8425L16.6499 9.8341C16.939 9.51223 16.7106 9 16.2779 9L7.2788 9.00002Z"}],{viewBox:"0 0 24 24"}),C([{d:"M8.77004 16.4985C8.77004 16.9313 9.28241 17.1597 9.60425 16.8704L14.6126 12.3696C14.8337 12.1709 14.8336 11.8243 14.6125 11.6257L9.60412 7.12744C9.28225 6.83834 8.77002 7.06678 8.77002 7.49943L8.77004 16.4985Z"}],{fill:"none",viewBox:"0 0 24 24"}),C([{d:"M13.5 4C13.2239 4 13 4.22386 13 4.5V10.5C13 10.7761 13.2239 11 13.5 11H20.5C20.7761 11 21 10.7761 21 10.5V4.5C21 4.22386 20.7761 4 20.5 4H13.5ZM15 6V9H19V6H15Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M3 13.5C3 13.2239 3.22386 13 3.5 13H10.5C10.7761 13 11 13.2239 11 13.5V19.5C11 19.7761 10.7761 20 10.5 20H3.5C3.22386 20 3 19.7761 3 19.5V13.5ZM5 18V15H9V18H5Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M13 13.5C13 13.2239 13.2239 13 13.5 13H20.5C20.7761 13 21 13.2239 21 13.5V19.5C21 19.7761 20.7761 20 20.5 20H13.5C13.2239 20 13 19.7761 13 19.5V13.5ZM15 18V15H19V18H15Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M3 4.5C3 4.22386 3.22386 4 3.5 4H10.5C10.7761 4 11 4.22386 11 4.5V10.5C11 10.7761 10.7761 11 10.5 11H3.5C3.22386 11 3 10.7761 3 10.5V4.5ZM5 9V6H9V9H5Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"})),A=C([{d:"M13.3857 4C13.1096 4 12.8857 4.22386 12.8857 4.5V10.5C12.8857 10.7761 13.1096 11 13.3857 11H20.3857C20.6619 11 20.8857 10.7761 20.8857 10.5V4.5C20.8857 4.22386 20.6619 4 20.3857 4H13.3857Z"},{d:"M2.88574 13.5C2.88574 13.2239 3.1096 13 3.38574 13H10.3857C10.6619 13 10.8857 13.2239 10.8857 13.5V19.5C10.8857 19.7761 10.6619 20 10.3857 20H3.38574C3.1096 20 2.88574 19.7761 2.88574 19.5V13.5Z"},{d:"M12.8857 13.5C12.8857 13.2239 13.1096 13 13.3857 13H20.3857C20.6619 13 20.8857 13.2239 20.8857 13.5V19.5C20.8857 19.7761 20.6619 20 20.3857 20H13.3857C13.1096 20 12.8857 19.7761 12.8857 19.5V13.5Z"},{d:"M2.88574 4.5C2.88574 4.22386 3.1096 4 3.38574 4H10.3857C10.6619 4 10.8857 4.22386 10.8857 4.5V10.5C10.8857 10.7761 10.6619 11 10.3857 11H3.38574C3.1096 11 2.88574 10.7761 2.88574 10.5V4.5Z"}],{fill:"none",viewBox:"0 0 24 24"}),_=C([{d:"M23.25 1C23.25 0.585786 22.9142 0.25 22.5 0.25C22.0858 0.25 21.75 0.585786 21.75 1V15.5C21.75 15.9142 22.0858 16.25 22.5 16.25C22.9142 16.25 23.25 15.9142 23.25 15.5V1ZM5 4.25C5.41421 4.25 5.75 4.58579 5.75 5V15.5C5.75 15.9142 5.41421 16.25 5 16.25C4.58579 16.25 4.25 15.9142 4.25 15.5V5C4.25 4.58579 4.58579 4.25 5 4.25ZM1.5 7.25C1.91421 7.25 2.25 7.58579 2.25 8V15.5C2.25 15.9142 1.91421 16.25 1.5 16.25C1.08579 16.25 0.75 15.9142 0.75 15.5V8C0.75 7.58579 1.08579 7.25 1.5 7.25ZM9.25 7C9.25 6.58579 8.91421 6.25 8.5 6.25C8.08579 6.25 7.75 6.58579 7.75 7V15.5C7.75 15.9142 8.08579 16.25 8.5 16.25C8.91421 16.25 9.25 15.9142 9.25 15.5V7ZM12 8.75C12.4142 8.75 12.75 9.08579 12.75 9.5V15.5C12.75 15.9142 12.4142 16.25 12 16.25C11.5858 16.25 11.25 15.9142 11.25 15.5V9.5C11.25 9.08579 11.5858 8.75 12 8.75ZM16.25 11.5C16.25 11.0858 15.9142 10.75 15.5 10.75C15.0858 10.75 14.75 11.0858 14.75 11.5V15.5C14.75 15.9142 15.0858 16.25 15.5 16.25C15.9142 16.25 16.25 15.9142 16.25 15.5V11.5ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V15.5C19.75 15.9142 19.4142 16.25 19 16.25C18.5858 16.25 18.25 15.9142 18.25 15.5V10C18.25 9.58579 18.5858 9.25 19 9.25Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 17"}),T=(C([{d:"M3.50016 2C2.67174 2 2.00017 2.67156 2.00016 3.49998L2 13.981C1.99997 15.7913 4.21333 16.6702 5.45521 15.353L6.73081 14H14.5002C15.3286 14 16.0002 13.3284 16.0002 12.5V3.5C16.0002 2.67157 15.3286 2 14.5002 2H3.50016ZM4 13.981L4.00015 4H14.0002V12H6.73081C6.17996 12 5.65349 12.2272 5.2756 12.628L4 13.981Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M8 18.5V16H10V18H16.836C17.2972 18 17.7442 18.1594 18.1014 18.4512L20 20.0025V10H18V8H20.5C21.3284 8 22 8.67157 22 9.5V20.0025C22 21.6891 20.0407 22.6184 18.7346 21.5513L16.836 20H9.5C8.67157 20 8 19.3284 8 18.5Z"}],{fill:"none",viewBox:"0 0 24 24"}),C([{clipRule:"evenodd",d:"M17.256 4.66058C17.5814 4.98602 17.5814 5.51366 17.256 5.83909L8.45396 14.6411C7.9658 15.1292 7.17435 15.1292 6.68619 14.6411L2.74408 10.699C2.41864 10.3735 2.41864 9.8459 2.74408 9.52046C3.06951 9.19503 3.59715 9.19503 3.92259 9.52046L7.57007 13.1679L16.0774 4.66058C16.4029 4.33514 16.9305 4.33514 17.256 4.66058Z",fillRule:"evenodd"}],{viewBox:"0 0 20 20"})),B=C([{d:"M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 16 16"}),Z=C([{d:"M4.28906 7.9976L10.2898 13.9983L11.704 12.5841L7.11086 7.99095L11.6552 3.40363L10.2343 1.99609L4.28906 7.9976Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 16 16"}),D=C([{d:"M11.7109 7.9976L5.71017 13.9983L4.29597 12.5841L8.88914 7.99095L4.34482 3.40363L5.76567 1.99609L11.7109 7.9976Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 16 16"}),I=C([{d:"M8.00101 4.41406L14.0017 10.4148L12.5875 11.829L7.99436 7.23586L3.40705 11.7802L1.99951 10.3593L8.00101 4.41406Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 16 16"}),H=C([{clipRule:"evenodd",d:"M1 2C1 1.44772 1.44772 1 2 1H7C7.55228 1 8 1.44772 8 2V3H5C3.89543 3 3 3.89543 3 5V8H2C1.44772 8 1 7.55228 1 7V2ZM3 9H2C0.895431 9 0 8.10457 0 7V2C0 0.895431 0.895431 0 2 0H7C8.10457 0 9 0.895431 9 2V3H10C11.1046 3 12 3.89543 12 5V10C12 11.1046 11.1046 12 10 12H5C3.89543 12 3 11.1046 3 10V9ZM4 10V5C4 4.44772 4.44772 4 5 4H10C10.5523 4 11 4.44772 11 5V10C11 10.5523 10.5523 11 10 11H5C4.44772 11 4 10.5523 4 10Z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),F=C([{clipRule:"evenodd",d:"M.77075.77075c-.361.36099-.361.94628 0 1.30728l3.92198 3.92198L.77098 9.92176c-.361.36104-.361.94624 0 1.30724s.94629.361 1.30729 0l3.92174-3.9217 3.92172 3.9217c.36097.361.94627.361 1.30727 0s.361-.9463 0-1.30727L7.3073 6.00001l3.922-3.92195c.3609-.361.3609-.94629 0-1.30729-.361-.361-.9463-.361-1.30733 0L6.00001 4.69273 2.07803.77075c-.361-.361-.94629-.361-1.30728 0z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),V=C([{clipRule:"evenodd",d:"M12.5238 1.74155c.2343-.28904.6615-.3359.9543-.10467l3.9031 3.08213c.8251.65159.8251 1.89037 0 2.54196l-3.9031 3.08213c-.2928.2312-.72.1844-.9543-.1047-.2342-.289-.1868-.71076.106-.94199l3.9031-3.08213c.1456-.11498.1456-.33359 0-.44858l-3.9031-3.08213c-.2928-.23123-.3402-.65299-.106-.94202zM10.4659.52931c.3314.10963.5194.49472.42.86013L8.20146 11.2575c-.0994.3655-.44859.5728-.77994.4632-.33134-.1096-.51937-.4947-.41996-.8601L9.68599.99246c.0994-.36541.44861-.57277.77991-.46315zM5.47619 1.73856c.23425.28903.18678.71079-.10603.94202L1.46714 5.76271c-.14561.11499-.14561.33359 0 .44858l3.90302 3.08213c.29281.23123.34028.65299.10603.94198-.23425.2891-.66152.3359-.95433.1047L.61885 7.25798c-.82513-.65159-.82513-1.89037 0-2.54196l3.90301-3.08213c.29281-.23123.72008-.18437.95433.10467z",fillRule:"evenodd"}],{viewBox:"0 0 18 12"}),N=(C([{clipRule:"evenodd",d:"M2.75 1c-.13807 0-.25.11193-.25.25s.11193.25.25.25h.94279c-.04786-.28381-.29478-.5-.5922-.5H2.75zm1.94806.5C4.64615.66288 3.95078 0 3.10059 0H2.75C2.05964 0 1.5.55964 1.5 1.25S2.05964 2.5 2.75 2.5h6.20117c.69036 0 1.25003-.55964 1.25003-1.25S9.64153 0 8.95117 0h-.35058c-.8502 0-1.54557.66288-1.59748 1.5H4.69806zm3.31033 0h.94278c.13807 0 .25-.11193.25-.25s-.11193-.25-.25-.25h-.35058c-.29742 0-.54435.21619-.5922.5zM1.5 3.94118c0-.27615.22386-.5.5-.5h8c.2761 0 .5.22385.5.5 0 .27614-.2239.5-.5.5H8.87802A.49978.49978 0 018.9 4.58824V9.5c0 .27614-.22386.5-.5.5s-.5-.22386-.5-.5V4.58824a.49978.49978 0 01.02198-.14706H6.47802A.49978.49978 0 016.5 4.58824V10.5c0 .2761-.22386.5-.5.5s-.5-.2239-.5-.5V4.58824a.49978.49978 0 01.02198-.14706H4.07802A.49978.49978 0 014.1 4.58824V11.5c0 .2761-.22386.5-.5.5s-.5-.2239-.5-.5V4.58824a.49978.49978 0 01.02198-.14706H2c-.27614 0-.5-.22386-.5-.5z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),C([{clipRule:"evenodd",d:"M7.36865 4.00598C7.36865 3.4537 7.81637 3.00598 8.36865 3.00598H19.9942C20.5465 3.00598 20.9942 3.4537 20.9942 4.00598V15.6316C20.9942 16.1838 20.5465 16.6316 19.9942 16.6316H8.36865C7.81637 16.6316 7.36865 16.1838 7.36865 15.6316V4.00598ZM9.36865 14.6316V5.00598H18.9942V14.6316H9.36865Z",fillRule:"evenodd"},{d:"M5 8.58557C5 8.03329 4.55228 7.58557 4 7.58557C3.44772 7.58557 3 8.03329 3 8.58557V19.5C3 20.3284 3.67157 21 4.5 21H15.4144C15.9667 21 16.4144 20.5523 16.4144 20C16.4144 19.4477 15.9667 19 15.4144 19H5V8.58557Z"}],{viewBox:"0 0 24 24"})),z=(C([{clipRule:"evenodd",d:"M5.1141.6402c-.3759-.402-.92-.482-1.3622-.2924C3.3102.537 3 .978 3 1.5122v11.7305c0 .5149.2966.9505.7246 1.1466.445.204.9872.1281 1.376-.2608l1.5635-1.6178 1.0173 2.4761.0043.0097c.2549.5734.9699.951 1.6407.6567l1.3362-.5727.0092-.004c.6344-.282.8937-1.0248.6331-1.6319l-1.0832-2.6785h1.7861c1.0994 0 1.6406-1.366.8629-2.1508L5.1141.6402zM4.5 2.1602v10.4314l2.6797-2.7731 1.7896 4.3558c.6494.215.863-.3699.863-.3699L8.1188 9.5028l3.2926-.2367L4.5 2.1601z",fillRule:"evenodd"}],{viewBox:"0 0 16 16"}),C([{clipRule:"evenodd",d:"M6.25 2.25L5.89645 1.89645L6.25 2.25ZM2 10.5C1.72386 10.5 1.5 10.7239 1.5 11C1.5 11.2761 1.72386 11.5 2 11.5V10.5ZM11.5 11.5C11.7761 11.5 12 11.2761 12 11C12 10.7239 11.7761 10.5 11.5 10.5V11.5ZM9.25 4.25L9.60355 4.60355L9.25 4.25ZM5.08579 8.41421L4.73223 8.06066L5.08579 8.41421ZM1.5 7.32843V8.8H2.5V7.32843H1.5ZM2.2 9.5H3.67157V8.5H2.2V9.5ZM6.39645 1.39645L5.89645 1.89645L6.60355 2.60355L7.10355 2.10355L6.39645 1.39645ZM9.10355 5.10355L9.60355 4.60355L8.89645 3.89645L8.39645 4.39645L9.10355 5.10355ZM9.10355 4.39645L6.60355 1.89645L5.89645 2.60355L8.39645 5.10355L9.10355 4.39645ZM5.43934 8.76777L9.10355 5.10355L8.39645 4.39645L4.73223 8.06066L5.43934 8.76777ZM5.89645 1.89645L2.23223 5.56066L2.93934 6.26777L6.60355 2.60355L5.89645 1.89645ZM2 11.5H11.5V10.5H2V11.5ZM9.60355 1.39645C8.71793 0.510828 7.28206 0.510829 6.39645 1.39645L7.10355 2.10355C7.59865 1.60846 8.40135 1.60846 8.89645 2.10355L9.60355 1.39645ZM8.89645 2.10355C9.39154 2.59865 9.39154 3.40135 8.89645 3.89645L9.60355 4.60355C10.4892 3.71794 10.4892 2.28207 9.60355 1.39645L8.89645 2.10355ZM3.67157 9.5C4.33461 9.5 4.9705 9.23661 5.43934 8.76777L4.73223 8.06066C4.45093 8.34196 4.0694 8.5 3.67157 8.5V9.5ZM1.5 8.8C1.5 9.1866 1.8134 9.5 2.2 9.5V8.5C2.36569 8.5 2.5 8.63431 2.5 8.8H1.5ZM2.5 7.32843C2.5 6.9306 2.65804 6.54907 2.93934 6.26777L2.23223 5.56066C1.76339 6.0295 1.5 6.66539 1.5 7.32843H2.5Z",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 12 12"})),U=C([{d:"M2.82178 1C2.82178 1.55228 2.37406 2 1.82178 2C1.26949 2 0.821777 1.55228 0.821777 1C0.821777 0.447715 1.26949 0 1.82178 0C2.37406 0 2.82178 0.447715 2.82178 1Z"},{d:"M7.82178 1C7.82178 1.55228 7.37406 2 6.82178 2C6.26949 2 5.82178 1.55228 5.82178 1C5.82178 0.447715 6.26949 0 6.82178 0C7.37406 0 7.82178 0.447715 7.82178 1Z"},{d:"M12.8218 1C12.8218 1.55228 12.3741 2 11.8218 2C11.2695 2 10.8218 1.55228 10.8218 1C10.8218 0.447715 11.2695 0 11.8218 0C12.3741 0 12.8218 0.447715 12.8218 1Z"}],{fill:"none",viewBox:"0 0 13 2"}),q=C([{d:"M8.06994 12.322C7.30194 12.322 6.58594 12.15 5.92194 11.806C5.26594 11.454 4.72994 10.942 4.31394 10.27C3.89794 9.59801 3.68994 8.83401 3.68994 7.97801C3.68994 7.11401 3.90194 6.35001 4.32594 5.68601C4.74994 5.01401 5.28994 4.51001 5.94594 4.17401C6.60994 3.83801 7.32194 3.67001 8.08194 3.67001C9.24994 3.67001 10.2459 4.05401 11.0699 4.82201C11.8939 5.58201 12.3059 6.57801 12.3059 7.81001C12.3059 8.61001 12.1259 9.21001 11.7659 9.61001C11.4139 10.002 10.9819 10.198 10.4699 10.198C9.90994 10.198 9.54994 9.98201 9.38994 9.55001C8.99794 9.98201 8.49394 10.198 7.87794 10.198C7.26194 10.198 6.75794 9.99001 6.36594 9.57401C5.98194 9.15801 5.78994 8.64201 5.78994 8.02601C5.78994 7.41001 5.98594 6.89401 6.37794 6.47801C6.76994 6.06201 7.27794 5.85401 7.90194 5.85401C8.51794 5.85401 9.01394 6.07401 9.38994 6.51401L9.56994 6.09401H10.1699L9.92994 8.51801C9.88994 9.02201 10.0659 9.27401 10.4579 9.27401C10.9779 9.27401 11.2379 8.82201 11.2379 7.91801C11.2379 6.91801 10.9299 6.13001 10.3139 5.55401C9.70594 4.97801 8.96594 4.69001 8.09394 4.69001C7.19794 4.69001 6.41794 4.99001 5.75394 5.59001C5.09794 6.18201 4.76994 6.97801 4.76994 7.97801C4.76994 8.98601 5.09794 9.79401 5.75394 10.402C6.41794 11.002 7.19794 11.302 8.09394 11.302C8.74994 11.302 9.31394 11.138 9.78594 10.81L10.3979 11.542C10.1659 11.766 9.84194 11.954 9.42594 12.106C9.00994 12.25 8.55794 12.322 8.06994 12.322ZM7.07394 8.92601C7.29794 9.15801 7.58994 9.27401 7.94994 9.27401C8.30994 9.27401 8.60194 9.15801 8.82594 8.92601C9.05794 8.68601 9.17394 8.38601 9.17394 8.02601C9.17394 7.66601 9.05794 7.37001 8.82594 7.13801C8.60194 6.89801 8.30994 6.77801 7.94994 6.77801C7.58994 6.77801 7.29794 6.89401 7.07394 7.12601C6.84994 7.35801 6.73794 7.65801 6.73794 8.02601C6.73794 8.39401 6.84994 8.69401 7.07394 8.92601Z"}],{fill:"none",viewBox:"0 0 16 16"}),Q=C([{clipRule:"evenodd",d:"M7.295 1c0-.345178.27982-.625.625-.625H11c.3452 0 .625.279822.625.625v2.57143c0 .34518-.2798.625-.625.625s-.625-.27982-.625-.625V2.48125L5.27609 7.44772c-.24727.24084-.64296.23564-.88381-.01163-.24084-.24727-.23564-.64296.01163-.88381L9.46259 1.625H7.92c-.34518 0-.625-.27982-.625-.625zM.375 4.28571c0-1.44974 1.17526-2.625 2.625-2.625h1.84c.34518 0 .625.27983.625.625 0 .34518-.27982.625-.625.625H3c-.75939 0-1.375.61561-1.375 1.375V9c0 .75939.61561 1.375 1.375 1.375h4.24c.75939 0 1.375-.61561 1.375-1.375V8c0-.34518.27982-.625.625-.625s.625.27982.625.625v1c0 1.4497-1.17525 2.625-2.625 2.625H3C1.55025 11.625.375 10.4497.375 9V4.28571z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),W=C([{clipRule:"evenodd",d:"M2.75 1.5C1.92157 1.5 1.25 2.17157 1.25 3V9C1.25 9.82843 1.92157 10.5 2.75 10.5H8.25C9.07843 10.5 9.75 9.82843 9.75 9V5.5H8.5C7.11929 5.5 6 4.38071 6 3V1.5H2.75ZM7 2.26439L9.09588 4.5H8.5C7.67157 4.5 7 3.82843 7 3V2.26439ZM0.25 3C0.25 1.61929 1.36929 0.5 2.75 0.5H6.5C6.6382 0.5 6.77025 0.557204 6.86477 0.658029L10.6148 4.65803C10.7016 4.7507 10.75 4.87297 10.75 5V9C10.75 10.3807 9.63071 11.5 8.25 11.5H2.75C1.36929 11.5 0.25 10.3807 0.25 9V3Z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),G=C([{d:"M1 3c0-1.10457.89543-2 2-2h3.55093c.28564 0 .55765.12215.74741.33564l3.44906 3.8802c.1627.18305.2526.41945.2526.66436V9c0 1.1046-.8954 2-2 2H3c-1.10457 0-2-.8954-2-2V3z"},{d:"M6 1v3c0 1.38071 1.11929 2.5 2.5 2.5H11v-.6198c0-.1315-.0259-.26055-.0751-.3802H8.5C7.67157 5.5 7 4.82843 7 4V1.1065C6.86216 1.03723 6.70863 1 6.55093 1H6z",fill:"#232429"}],{viewBox:"0 0 12 12"}),$=C([{clipRule:"evenodd",d:"M7.22361 10.6382c.16939-.0847.27639-.2578.27639-.4472V6.68103a.50003.50003 0 01.11589-.3201l4.20071-5.04084C12.088.994428 11.8564.5 11.4325.5H.567521C.143603.5-.087976.994429.18341 1.32009l4.2007 5.04084a.50003.50003 0 01.11589.3201V11.191c0 .3717.39116.6134.72361.4472l2-1zM1.63504 1.5l3.51729 4.22075c.22465.26957.34767.60937.34767.96028V10.382l1-.50003V6.68103c0-.35091.12302-.69071.34767-.96028L10.365 1.5H1.63504z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),Y=C([{d:"M0 2.5v7c0 1.1046.895431 2 2 2h8c1.1046 0 2-.8954 2-2V5.16667c0-1.10457-.8954-2-2-2H7.96191c-.42079 0-.76191-.34112-.76191-.76191C7.2 1.35279 6.34721.5 5.29524.5H2c-1.104569 0-2 .89543-2 2z",fill:"#6AA1E0"},{d:"M1 2.5v7c0 .5523.44772 1 1 1h8c.5523 0 1-.4477 1-1V5.16667c0-.55229-.4477-1-1-1H7.96191C6.98883 4.16667 6.2 3.37784 6.2 2.40476 6.2 1.90508 5.79492 1.5 5.29524 1.5H2c-.55228 0-1 .44772-1 1zm-1 7v-7c0-1.10457.895431-2 2-2h3.29524C6.34721.5 7.2 1.35279 7.2 2.40476c0 .42079.34112.76191.76191.76191H10c1.1046 0 2 .89543 2 2V9.5c0 1.1046-.8954 2-2 2H2c-1.104569 0-2-.8954-2-2z",fill:"#9ECBFF"}],{viewBox:"0 0 12 12"}),K=(C([{d:"M5 5C5 4.44772 4.55228 4 4 4C3.44772 4 3 4.44772 3 5V18.5C3 19.3284 3.67157 20 4.5 20H20C20.5523 20 21 19.5522 21 19C21 18.4477 20.5523 18 20 18H5V5Z"},{d:"M20.7071 7.70711C21.0976 7.31658 21.0976 6.68342 20.7071 6.29289C20.3166 5.90237 19.6834 5.90237 19.2929 6.29289L15 10.5858L13.0607 8.64645C12.4749 8.06066 11.5251 8.06066 10.9393 8.64645L7.29289 12.2929C6.90237 12.6834 6.90237 13.3166 7.29289 13.7071C7.68342 14.0976 8.31658 14.0976 8.70711 13.7071L12 10.4142L13.9393 12.3536C14.5251 12.9393 15.4749 12.9393 16.0607 12.3536L20.7071 7.70711Z"}],{viewBox:"0 0 24 24"}),C([{d:"M18.381 11.1883C17.2189 10.3747 16.459 9.02583 16.459 7.49951C16.459 5.01423 18.4737 2.99951 20.959 2.99951C23.4443 2.99951 25.459 5.01423 25.459 7.49951C25.459 9.8794 23.6115 11.8278 21.2725 11.9888L20.046 16.1985L24.0342 15.6761C24.421 13.584 26.255 11.9995 28.459 11.9995C30.9443 11.9995 32.959 14.0142 32.959 16.4995C32.959 18.9848 30.9443 20.9995 28.459 20.9995C26.7488 20.9995 25.2614 20.0455 24.5 18.6407L20.5932 19.1524L24.3133 24.1467C24.6791 24.0506 25.0631 23.9995 25.459 23.9995C27.9443 23.9995 29.959 26.0142 29.959 28.4995C29.959 30.9848 27.9443 32.9995 25.459 32.9995C22.9737 32.9995 20.959 30.9848 20.959 28.4995C20.959 27.503 21.2829 26.5821 21.8312 25.8365L17.7796 20.3973L14.5364 23.5932C14.8075 24.172 14.959 24.8181 14.959 25.4995C14.959 27.9848 12.9443 29.9995 10.459 29.9995C7.9737 29.9995 5.95898 27.9848 5.95898 25.4995C5.95898 23.0142 7.9737 20.9995 10.459 20.9995C11.167 20.9995 11.8368 21.163 12.4327 21.4543L15.3164 18.6128L10.7037 16.7677C9.88486 17.6195 8.73383 18.1497 7.45898 18.1497C4.9737 18.1497 2.95898 16.1349 2.95898 13.6497C2.95898 11.1644 4.9737 9.14966 7.45898 9.14966C9.94427 9.14966 11.959 11.1644 11.959 13.6497C11.959 13.7785 11.9536 13.9062 11.9429 14.0323L16.9669 16.0418L18.381 11.1883ZM20.959 8.99951C20.1306 8.99951 19.459 8.32794 19.459 7.49951C19.459 6.67108 20.1306 5.99951 20.959 5.99951C21.7874 5.99951 22.459 6.67108 22.459 7.49951C22.459 8.32794 21.7874 8.99951 20.959 8.99951ZM5.95898 13.6497C5.95898 14.4781 6.63056 15.1497 7.45898 15.1497C8.28741 15.1497 8.95898 14.4781 8.95898 13.6497C8.95898 12.8212 8.28741 12.1497 7.45898 12.1497C6.63056 12.1497 5.95898 12.8212 5.95898 13.6497ZM18.017 18.1656L18.0154 18.1668L17.933 18.0831L17.9881 17.9454L18.017 18.1656ZM25.459 29.9995C24.6306 29.9995 23.959 29.3279 23.959 28.4995C23.959 27.6711 24.6306 26.9995 25.459 26.9995C26.2874 26.9995 26.959 27.6711 26.959 28.4995C26.959 29.3279 26.2874 29.9995 25.459 29.9995ZM8.95898 25.4995C8.95898 26.3279 9.63056 26.9995 10.459 26.9995C11.2874 26.9995 11.959 26.3279 11.959 25.4995C11.959 24.6711 11.2874 23.9995 10.459 23.9995C9.63056 23.9995 8.95898 24.6711 8.95898 25.4995ZM28.459 17.9995C27.6306 17.9995 26.959 17.3279 26.959 16.4995C26.959 15.6711 27.6306 14.9995 28.459 14.9995C29.2874 14.9995 29.959 15.6711 29.959 16.4995C29.959 17.3279 29.2874 17.9995 28.459 17.9995Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 36 36"}),C([{d:"M3.17123 12C3.05708 12 3 11.9429 3 11.8286V4.17143C3 4.05714 3.05708 4 3.17123 4H4.18636C4.30867 4 4.36982 4.05714 4.36982 4.17143V11.8286C4.36982 11.9429 4.30867 12 4.18636 12H3.17123Z"},{d:"M6.41997 12C6.30581 12 6.24874 11.9429 6.24874 11.8286V4.17143C6.24874 4.05714 6.30581 4 6.41997 4H8.64593C10.0484 4 11.1247 4.37333 11.8748 5.12C12.6249 5.85905 13 6.81905 13 8C13 9.18095 12.6249 10.1448 11.8748 10.8914C11.1247 11.6305 10.0484 12 8.64593 12H6.41997ZM7.61856 10.8571H8.62146C9.61622 10.8571 10.3623 10.6133 10.8597 10.1257C11.3652 9.63048 11.6179 8.9219 11.6179 8C11.6179 7.0781 11.3652 6.37333 10.8597 5.88571C10.3623 5.39048 9.61622 5.14286 8.62146 5.14286H7.61856V10.8571Z"}],{fill:"none",viewBox:"0 0 16 16"})),X=C([{d:"M13.2003 8.1999C13.2003 7.53716 12.663 6.9999 12.0003 6.9999C11.3376 6.9999 10.8003 7.53716 10.8003 8.1999C10.8003 8.86264 11.3376 9.3999 12.0003 9.3999C12.663 9.3999 13.2003 8.86264 13.2003 8.1999Z"},{d:"M11.0005 16.0094V11.9999C11.0005 11.4476 11.4482 10.9999 12.0005 10.9999C12.5528 10.9999 13.0005 11.4476 13.0005 11.9999V16.0094C13.0005 16.5617 12.5528 17.0094 12.0005 17.0094C11.4482 17.0094 11.0005 16.5617 11.0005 16.0094Z"},{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 24 24"}),J=(C([{d:"M19.0001 5.00635V18.9938H5.01269V16.0157C5.01269 15.4634 4.56498 15.0157 4.01269 15.0157C3.46041 15.0157 3.01269 15.4634 3.01269 16.0157V19.4938C3.01269 20.3222 3.68426 20.9938 4.51269 20.9938H19.5001C20.3286 20.9938 21.0001 20.3222 21.0001 19.4938V4.50635C21.0001 3.67792 20.3286 3.00635 19.5001 3.00635H4.51269C3.68426 3.00635 3.01269 3.67792 3.01269 4.50635V7.99164C3.01269 8.54392 3.46041 8.99164 4.01269 8.99164C4.56498 8.99164 5.01269 8.54392 5.01269 7.99164V5.00635H19.0001Z"},{d:"M12.8216 12.9645H4.00488C3.4526 12.9645 3.00488 12.5168 3.00488 11.9645C3.00488 11.4122 3.4526 10.9645 4.00488 10.9645H12.7507L11.4865 9.70028C11.0959 9.30976 11.0959 8.6766 11.4864 8.28607C11.8769 7.89554 12.5101 7.89553 12.9006 8.28605L15.5539 10.9393C16.1397 11.5251 16.1398 12.4748 15.554 13.0606L12.9007 15.7139C12.5101 16.1044 11.877 16.1044 11.4864 15.7139C11.0959 15.3234 11.0959 14.6902 11.4864 14.2997L12.8216 12.9645Z"}],{fill:"none",viewBox:"0 0 24 24"}),C([{d:"M13.9998 5.33337C13.0332 5.33337 12.4932 6.29337 12.7132 7.00671L10.3465 9.38004C10.1465 9.32004 9.85317 9.32004 9.65317 9.38004L7.95317 7.68004C8.17984 6.96671 7.63984 6.00004 6.6665 6.00004C5.69984 6.00004 5.15317 6.96004 5.37984 7.68004L2.33984 10.7134C1.6265 10.4934 0.666504 11.0334 0.666504 12C0.666504 12.7334 1.2665 13.3334 1.99984 13.3334C2.9665 13.3334 3.5065 12.3734 3.2865 11.66L6.31984 8.62004C6.51984 8.68004 6.81317 8.68004 7.01317 8.62004L8.71317 10.32C8.4865 11.0334 9.0265 12 9.99984 12C10.9665 12 11.5132 11.04 11.2865 10.32L13.6598 7.95337C14.3732 8.17337 15.3332 7.63337 15.3332 6.66671C15.3332 5.93337 14.7332 5.33337 13.9998 5.33337Z"},{d:"M10 6L10.6267 4.62L12 4L10.6267 3.38L10 2L9.38667 3.38L8 4L9.38667 4.62L10 6Z"},{d:"M2.33317 7.33333L2.6665 6L3.99984 5.66667L2.6665 5.33333L2.33317 4L1.99984 5.33333L0.666504 5.66667L1.99984 6L2.33317 7.33333Z"}],{fill:"none",viewBox:"0 0 16 16"}),C([{d:"M1.5 2.5A.5.5 0 012 2h.5a.5.5 0 010 1H2a.5.5 0 01-.5-.5zm2.5 0a.5.5 0 01.5-.5H10a.5.5 0 010 1H4.5a.5.5 0 01-.5-.5zM1.5 6a.5.5 0 01.5-.5h.5a.5.5 0 010 1H2a.5.5 0 01-.5-.5zM4 6a.5.5 0 01.5-.5H10a.5.5 0 010 1H4.5A.5.5 0 014 6zM1.5 9.5A.5.5 0 012 9h.5a.5.5 0 010 1H2a.5.5 0 01-.5-.5zm2.5 0a.5.5 0 01.5-.5H10a.5.5 0 010 1H4.5a.5.5 0 01-.5-.5z"}],{viewBox:"0 0 12 12"})),ee=C([{d:"M8.08333 2C5.82583 2 4 3.82583 4 6.08333C4 9.14583 8.08333 13.6667 8.08333 13.6667C8.08333 13.6667 12.1667 9.14583 12.1667 6.08333C12.1667 3.82583 10.3408 2 8.08333 2ZM5.16667 6.08333C5.16667 4.47333 6.47333 3.16667 8.08333 3.16667C9.69333 3.16667 11 4.47333 11 6.08333C11 7.76333 9.32 10.2775 8.08333 11.8467C6.87 10.2892 5.16667 7.74583 5.16667 6.08333Z"},{d:"M8.08333 7.54167C8.88875 7.54167 9.54167 6.88875 9.54167 6.08333C9.54167 5.27792 8.88875 4.625 8.08333 4.625C7.27792 4.625 6.625 5.27792 6.625 6.08333C6.625 6.88875 7.27792 7.54167 8.08333 7.54167Z"}],{viewBox:"0 0 16 16"}),te=(C([{d:"M4 4.00464C3.44772 4.00464 3 4.45235 3 5.00464C3 5.55692 3.44772 6.00464 4 6.00464H20C20.5523 6.00464 21 5.55692 21 5.00464C21 4.45235 20.5523 4.00464 20 4.00464H4ZM3 12.0046C3 11.4524 3.44772 11.0046 4 11.0046H20C20.5523 11.0046 21 11.4524 21 12.0046C21 12.5569 20.5523 13.0046 20 13.0046H4C3.44772 13.0046 3 12.5569 3 12.0046ZM3 19.0046C3 18.4524 3.44772 18.0046 4 18.0046H20C20.5523 18.0046 21 18.4524 21 19.0046C21 19.5569 20.5523 20.0046 20 20.0046H4C3.44772 20.0046 3 19.5569 3 19.0046Z",fillRule:"evenodd",clipRule:"evenodd"}],{viewBox:"0 0 24 24"}),C([{d:"M17.8851 3.00012C16.1647 3.00012 14.77 4.39478 14.77 6.11518C14.77 6.13746 14.7703 6.15969 14.7707 6.18185L8.04548 9.55522C7.51475 9.13562 6.84415 8.88513 6.11506 8.88513C4.39466 8.88513 3 10.2798 3 12.0002C3 13.7206 4.39466 15.1152 6.11506 15.1152C6.92759 15.1152 7.66746 14.8042 8.22206 14.2946L14.7842 17.5861C14.7748 17.6844 14.77 17.7841 14.77 17.8848C14.77 19.6052 16.1647 20.9999 17.8851 20.9999C19.6055 20.9999 21.0001 19.6052 21.0001 17.8848C21.0001 16.1644 19.6055 14.7698 17.8851 14.7698C16.9855 14.7698 16.1749 15.1511 15.6063 15.761L9.18362 12.5394C9.21418 12.3643 9.23011 12.1841 9.23011 12.0002C9.23011 11.7397 9.19813 11.4866 9.13789 11.2448L15.4618 8.07271C16.0329 8.77877 16.9062 9.23024 17.8851 9.23024C19.6055 9.23024 21.0001 7.83558 21.0001 6.11518C21.0001 4.39478 19.6055 3.00012 17.8851 3.00012ZM16.77 6.11518C16.77 5.49935 17.2692 5.00012 17.8851 5.00012C18.5009 5.00012 19.0001 5.49935 19.0001 6.11518C19.0001 6.73101 18.5009 7.23024 17.8851 7.23024C17.2692 7.23024 16.77 6.73101 16.77 6.11518ZM16.77 17.8848C16.77 17.269 17.2692 16.7698 17.8851 16.7698C18.5009 16.7698 19.0001 17.269 19.0001 17.8848C19.0001 18.5007 18.5009 18.9999 17.8851 18.9999C17.2692 18.9999 16.77 18.5007 16.77 17.8848ZM6.11506 10.8851C5.49923 10.8851 5 11.3844 5 12.0002C5 12.616 5.49923 13.1152 6.11506 13.1152C6.73089 13.1152 7.23011 12.616 7.23011 12.0002C7.23011 11.3844 6.73089 10.8851 6.11506 10.8851Z",clipRule:"evenodd",fillRule:"evenodd"}],{viewBox:"0 0 24 24"})),ne=C([{d:"M12.5 1.95402L9.39478 7h6.21042L12.5 1.95402zM8 13.2267V8H3.14661L8 13.2267z",fill:"#6AA1E0",stroke:"#6AA1E0"},{d:"M3.70317 1.51397l-2.4886 4.39165c-.426301.7523-.320861 1.69338.26136 2.33268l6.04537 6.638c.79334.8712 2.16402.8712 2.9574 0l5.9731-6.55864c.6164-.67688.6945-1.68592.1896-2.44963l-2.9558-4.47101C13.3153.836921 12.6887.5 12.0172.5H5.44322c-.72029 0-1.38494.387309-1.74005 1.01397zm.71559.76555L2.0846 6.39863c-.21316.37615-.16044.84669.13068 1.16634L8.26064 14.203c.39667.4356 1.08201.4356 1.47868 0l5.97308-6.55867c.3082-.33844.3473-.84296.0949-1.22482l-2.9559-4.471C12.6663 1.66846 12.353 1.5 12.0172 1.5H5.44322c-.10673 0-.21102.01701-.30956.0491l3.65479 5.48217L8.5 7.5h-.60092L4.41876 2.27952z",clipRule:"evenodd",fillRule:"evenodd",fill:"#9ECBFF"}],{viewBox:"0 0 17 16"}),re=C([{d:"M14 15H2c-1.104569 0-2-.9125-2-2.0381V3.04144C0 .935175 2.7527.212674 3.75116 2.05687l2.6288 4.85553c.73164 1.35138 2.61451 1.41584 3.43351.11756l.51543-.81709c.8927-1.41511 2.9884-1.18103 3.5591.39754l1.9887 5.50089c.0816.2256.1233.4641.1233.7045v.1461C16 14.0875 15.1046 15 14 15z",fill:"#6AA1E0"},{d:"M14 13.9809H2c-.55229 0-1-.4562-1-1.019V3.04144c0-1.05313 1.37635-1.41439 1.87558-.49228l2.6288 4.85553c1.09747 2.02706 3.92177 2.12376 5.15032.17634l.5154-.8171c.4463-.70755 1.4942-.59051 1.7795.19877l1.9887 5.5009c.0408.1128.0617.232.0617.3522v.1461c0 .5628-.4477 1.019-1 1.019zM2 15h12c1.1046 0 2-.9125 2-2.0381v-.1461c0-.2404-.0417-.4789-.1233-.7045L13.888 6.61041c-.5707-1.57857-2.6664-1.81265-3.5591-.39754l-.51543.81709c-.819 1.29828-2.70187 1.23382-3.43351-.11756l-2.6288-4.85553C2.7527.212674 0 .935175 0 3.04144v9.92046C0 14.0875.895431 15 2 15z",clipRule:"evenodd",fillRule:"evenodd",fill:"#9ECBFF"}],{viewBox:"0 0 16 16"}),oe=C([{d:"M13.6065 11.6175c-6.58148-.3068-5.18353-3.29506-9.24432-3.5934-.41895-.03078-.80827.21294-.99687.58831L1.31066 12.7019c-.19016.3785-.14859.8321.10719 1.1698l.52145.6883c.21005.2772.53781.4401.88565.4401H13.1751c.3478 0 .6756-.1629.8857-.4401l.5681-.75c.2309-.3048.2889-.7069.1534-1.0646l-.151-.3987c-.1615-.4264-.5693-.708-1.0248-.7292z",fill:"#6AA1E0"},{d:"M2.8388 14.8889H13.161c.8542 0 1.3889-.9237.9635-1.6645l-3.7262-6.48811c-.1934-.33678-.2952-.71836-.2952-1.10673V1.11111H5.89673v4.51845c0 .38837-.10178.76995-.2952 1.10672L1.87529 13.2244c-.42542.7408.10931 1.6645.96351 1.6645zm0 1.1111H13.161c1.7084 0 2.7779-1.8475 1.927-3.3289l-3.7262-6.48818a1.111173 1.111173 0 01-.1476-.55336V.555556C11.2142.248731 10.9655 0 10.6586 0H5.34117c-.30682 0-.55555.248731-.55555.555556V5.62956c0 .19418-.05089.38497-.1476.55336L.911776 12.6711C.060939 14.1525 1.13038 16 2.8388 16z",clipRule:"evenodd",fillRule:"evenodd",fill:"#9ECBFF"}],{viewBox:"0 0 16 16"}),ie=C([{d:"M2.5 11.5V5h1v6.5c0 .2761.22386.5.5.5h7v1H4c-.82843 0-1.5-.6716-1.5-1.5zM11 4H5V3h6v1z",clipRule:"evenodd",fillRule:"evenodd",fill:"#6AA1E0"},{d:"M0 1.5c0-.552285.447715-1 1-1h4c.55228 0 1 .447715 1 1v4c0 .55228-.44772 1-1 1H1c-.552285 0-1-.44772-1-1v-4zM10 1.5c0-.552285.4477-1 1-1h4c.5523 0 1 .447715 1 1v4c0 .55228-.4477 1-1 1h-4c-.5523 0-1-.44772-1-1v-4zM11 9.5c-.5523 0-1 .44772-1 1v4c0 .5523.4477 1 1 1h4c.5523 0 1-.4477 1-1v-4c0-.55228-.4477-1-1-1h-4z",fill:"#9ECBFF"}],{viewBox:"0 0 16 16"}),ae=(C([{d:"M0 2C0 0.89543 0.895431 0 2 0H8C9.10457 0 10 0.895431 10 2V5V8C10 9.10457 9.10457 10 8 10H7.72727H2C0.895429 10 0 9.10457 0 8V2Z",fill:"#885EFF"},{d:"M9 5.25C9 4.83579 8.66421 4.5 8.25 4.5C7.83579 4.5 7.5 4.83579 7.5 5.25V7.5H5.25C4.83579 7.5 4.5 7.83579 4.5 8.25C4.5 8.66421 4.83579 9 5.25 9H7.5V11.25C7.5 11.6642 7.83579 12 8.25 12C8.66421 12 9 11.6642 9 11.25V9H11.25C11.6642 9 12 8.66421 12 8.25C12 7.83579 11.6642 7.5 11.25 7.5H9V5.25Z"}],{viewBox:"0 0 12 12"}),C([{d:"M2 6H14M2 10H14M7 2L5 14M11 2L9 14",useStroke:!0}],{fill:"none",viewBox:"0 0 16 16"})),ue=C([{d:"M2 6H14M2 10H14M7 2L5 14M11 2L9 14",useStroke:!0},{Style:d,cx:13.5,cy:13.5,r:.5,fill:"white"}],{fill:"none",viewBox:"0 0 16 16"}),ce=C([{clipRule:"evenodd",d:"M1.875 1.96875c-.36244 0-.65625.29381-.65625.65625v5.94958l1.42849-3.06105c.26186-.56112.82502-.91978 1.44423-.91978h5.97263c1.0879 0 1.856 1.06573 1.512 2.09774l-1.125 3.37501c-.2169.6508-.82596 1.0897-1.51195 1.0897H1.5C.75 11.1562.28125 10.5.28125 9.75V2.625c0-.8802.713546-1.59375 1.59375-1.59375h3c.8802 0 1.59375.71355 1.59375 1.59375v.1875c0 .15533.12592.28125.28125.28125h3c.2589 0 .4688.20987.4688.46875s-.2099.46875-.4688.46875h-3c-.6731 0-1.21875-.54565-1.21875-1.21875V2.625c0-.36244-.29381-.65625-.65625-.65625h-3zm-.38897 8.25005h7.45312c.28247 0 .53324-.1808.62257-.44878l1.12498-3.375c.1417-.42494-.1746-.86377-.6226-.86377H4.09147c-.25497 0-.48686.14768-.59468.37873L1.48603 10.2188z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),se=C([{d:"M11 6L1 6M1 6L4.5 1.5M1 6L4.5 10.5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",useStroke:!0}],{fill:"none",viewBox:"0 0 12 12"}),le=C([{d:"M1 6L11 6M11 6L7.5 1.5M11 6L7.5 10.5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",useStroke:!0}],{fill:"none",viewBox:"0 0 12 12"}),fe=C([{clipRule:"evenodd",d:"M13.6746.120381c.2097-.179711.5254-.15543.7051.054232L17 3.2317 19.6204.174613c.1797-.209663.4954-.233943.705-.054232.2097.179711.234.495361.0543.705024L17.6586 4l2.7211 3.17461c.1797.20967.1554.52532-.0543.70503-.2096.17971-.5253.15543-.705-.05424L17 4.76829 14.3797 7.8254c-.1798.20967-.4954.23395-.7051.05424-.2096-.17971-.2339-.49536-.0542-.70503l2.2925-2.67458H2.02357L4.8747 6.59726c.22244.16363.27013.4766.1065.69904-.16362.22245-.47659.27013-.69904.1065l-4.078428-3C.075639 4.30858 0 4.15905 0 4.00003c0-.15901.075639-.30855.203732-.40277L4.28216.597262c.22245-.163625.53542-.115942.69904.106502.16363.222444.11594.535416-.1065.699036L2.02357 3.50003H15.913L13.6204.825405c-.1797-.209663-.1554-.525313.0542-.705024z",fillRule:"evenodd"}],{viewBox:"0 0 21 8"}),de=C([{clipRule:"evenodd",d:"M14.1429 4c0 1.57796 1.2791 2.85714 2.8571 2.85714S19.8571 5.57796 19.8571 4c0-1.57796-1.2791-2.85714-2.8571-2.85714S14.1429 2.42204 14.1429 4zm-1.1119.50003C13.277 6.47317 14.9602 8 17 8c2.2091 0 4-1.79086 4-4s-1.7909-4-4-4c-2.0398 0-3.723 1.52686-3.9691 3.50003H2.02357L4.8747 1.4028c.22245-.16362.27013-.476592.1065-.699036C4.81758.48132 4.50461.433637 4.28216.597262L.203732 3.59726C.075639 3.69148 0 3.84102 0 4.00003c0 .15902.075639.30855.203732.40277l4.078428 3c.22245.16363.53542.11595.69904-.1065.16363-.22244.11595-.53541-.1065-.69904L2.02357 4.50003H13.031z",fillRule:"evenodd"}],{viewBox:"0 0 21 8"}),pe=C([{d:"M2.5 13.5H2V14H2.5V13.5ZM2.5 11V10.5C2.22386 10.5 2 10.7239 2 11H2.5ZM5 10.5L5.35355 10.1464C5.20137 9.99427 4.96889 9.95654 4.77639 10.0528L5 10.5ZM13.5 2.5H14V2H13.5V2.5ZM6.86825 12.3945L7.09415 12.8406H7.09415L6.86825 12.3945ZM11 2.5V2C10.7239 2 10.5 2.22386 10.5 2.5L11 2.5ZM10.5 5L10.0528 4.77639C9.95654 4.96889 9.99427 5.20137 10.1464 5.35355L10.5 5ZM12.3945 6.86825L12.8406 7.09415V7.09415L12.3945 6.86825ZM3 13.5V11H2V13.5H3ZM2.5 11.5C3.00438 11.5 4.10964 11.5042 5.22361 10.9472L4.77639 10.0528C3.89036 10.4958 2.99562 10.5 2.5 10.5V11.5ZM13 2.5C13 6.28058 10.2234 10.1349 6.64234 11.9485L7.09415 12.8406C10.9373 10.8942 14 6.73395 14 2.5H13ZM6.64234 11.9485C5.31826 12.6191 3.90247 13 2.5 13V14C4.083 14 5.65267 13.5706 7.09415 12.8406L6.64234 11.9485ZM4.64645 10.8536C5.04439 11.2515 6.05469 12.2793 6.51134 12.7447L7.22515 12.0444C6.76964 11.5801 5.75561 10.5485 5.35355 10.1464L4.64645 10.8536ZM13.5 2L11 2V3L13.5 3V2ZM10.5 2.5C10.5 2.99562 10.4958 3.89036 10.0528 4.77639L10.9472 5.22361C11.5042 4.10964 11.5 3.00438 11.5 2.5L10.5 2.5ZM2.5 14C6.73395 14 10.8942 10.9373 12.8406 7.09415L11.9485 6.64234C10.1349 10.2234 6.28058 13 2.5 13L2.5 14ZM12.8406 7.09415C13.5706 5.65267 14 4.083 14 2.5L13 2.5C13 3.90247 12.6191 5.31826 11.9485 6.64234L12.8406 7.09415ZM10.1464 5.35355C10.5485 5.75561 11.5801 6.76964 12.0444 7.22515L12.7447 6.51134C12.2793 6.05469 11.2515 5.04439 10.8536 4.64645L10.1464 5.35355Z"}],{fill:"none",viewBox:"0 0 16 16"}),he=C([{clipRule:"evenodd",d:"M3 .5C1.61929.5.5 1.61929.5 3v2.54545c0 1.12446.80059 2.06192 1.86286 2.27349.18481.92811.92375 1.65648 1.8574 1.82569C4.50456 10.7129 5.47854 11.5 6.63635 11.5h2.36364C10.3807 11.5 11.5 10.3807 11.5 8.99999V6.63635c0-1.15784-.7871-2.13184-1.85544-2.41611-.16923-.93358-.89755-1.67247-1.82561-1.8573C7.60742 1.30063 6.66994.5 5.54546.5H3zm3.76553 1.81824C6.56859 1.83813 6.09651 1.5 5.54546 1.5H3c-.82843 0-1.5.67157-1.5 1.5v2.54545c0 .55103.33811 1.0231.81818 1.22005V4.81824c0-1.38071 1.11929-2.5 2.5-2.5h1.94735zm.5981 1c.55101 0 1.02305.33807 1.22002.81811h-1.9473c-1.38071 0-2.5 1.11929-2.5 2.5v1.94739c-.48007-.19696-.81817-.66902-.81817-1.22005V4.81824c0-.82843.67157-1.5 1.5-1.5h2.54545zm-.72728 1.81811c-.82842 0-1.5.67158-1.5 1.5v2.36364c0 .82842.67158 1.50001 1.5 1.50001h2.36364C9.82841 10.5 10.5 9.82841 10.5 8.99999V6.63635c0-.82842-.67159-1.5-1.50001-1.5H6.63635z",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),ve=C([{clipRule:"evenodd",d:"M9.86364 2.5H4.13636C3.68449 2.5 3.31818 2.94772 3.31818 3.5V7.5C3.31818 8.05228 3.68449 8.5 4.13636 8.5H9.86364C10.3155 8.5 10.6818 8.05228 10.6818 7.5V3.5C10.6818 2.94772 10.3155 2.5 9.86364 2.5ZM4.13636 1.5C3.23263 1.5 2.5 2.39543 2.5 3.5V7.5C2.5 8.60457 3.23263 9.5 4.13636 9.5H5.5V16.1667V16.5H4.13636C3.23263 16.5 2.5 17.3954 2.5 18.5V22.5C2.5 23.6046 3.23263 24.5 4.13636 24.5H9.86364C10.7674 24.5 11.5 23.6046 11.5 22.5V18.5C11.5 17.3954 10.7674 16.5 9.86364 16.5H6.5V16.1667C6.5 14.9394 7.61929 13.9444 9 13.9444H16C17.933 13.9444 19.5 12.5516 19.5 10.8333V9.5H21.8636C22.7674 9.5 23.5 8.60457 23.5 7.5V3.5C23.5 2.39543 22.7674 1.5 21.8636 1.5H16.1364C15.2326 1.5 14.5 2.39543 14.5 3.5V7.5C14.5 8.60457 15.2326 9.5 16.1364 9.5H18.5V10.8333C18.5 12.0606 17.3807 13.0556 16 13.0556H9C8.02066 13.0556 7.13526 13.4131 6.5 13.9893V9.5H9.86364C10.7674 9.5 11.5 8.60457 11.5 7.5V3.5C11.5 2.39543 10.7674 1.5 9.86364 1.5H4.13636ZM9.86364 17.5H6.5H5.5H4.13636C3.68449 17.5 3.31818 17.9477 3.31818 18.5V22.5C3.31818 23.0523 3.68449 23.5 4.13636 23.5H9.86364C10.3155 23.5 10.6818 23.0523 10.6818 22.5V18.5C10.6818 17.9477 10.3155 17.5 9.86364 17.5ZM16.1364 2.5H21.8636C22.3155 2.5 22.6818 2.94772 22.6818 3.5V7.5C22.6818 8.05228 22.3155 8.5 21.8636 8.5H16.1364C15.6845 8.5 15.3182 8.05228 15.3182 7.5V3.5C15.3182 2.94772 15.6845 2.5 16.1364 2.5Z",fillRule:"evenodd"}],{viewBox:"0 0 26 26"}),ge=C([{clipRule:"evenodd",d:"M7 7.31673V16.683L16.3811 11.9999L7 7.31673ZM5 6.50828C5 5.39362 6.17268 4.66835 7.16998 5.16622L18.1705 10.6579C19.2772 11.2103 19.2772 12.7895 18.1705 13.342L7.16997 18.8335C6.17267 19.3314 5 18.6061 5 17.4914V6.50828Z",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),me=C([{d:"M8 4.13397C8.66667 4.51888 8.66667 5.48113 8 5.86603L2 9.33013C1.33333 9.71503 0.500001 9.2339 0.500001 8.4641L0.500001 1.5359C0.500001 0.766098 1.33333 0.284973 2 0.669873L8 4.13397Z"}],{fill:"none",viewBox:"0 0 9 10"}),ye=(C([{clipRule:"evenodd",d:"M1.96418 2.81396l.00051.00125.00321.00781a2.81935 2.81935 0 00.01513.03575 5.6241 5.6241 0 00.06533.14565c.05928.12768.1499.31274.27269.536.24621.44764.6185 1.04289 1.12255 1.63589 1.01216 1.19077 2.51043 2.32382 4.55653 2.32382 2.04607 0 3.54437-1.13305 4.55657-2.32382.504-.593.8763-1.18825 1.1225-1.63589.1228-.22326.2134-.40832.2727-.536.0296-.0638.0514-.11315.0653-.14565a2.9375 2.9375 0 00.0152-.03575l.0032-.00781.0003-.00077.0001-.0003c.1027-.25619.3935-.38076.6498-.27825.2564.10256.3811.39355.2786.64994l-.4643-.1857c.4643.1857.4642.18589.4641.18611l-.0002.00052-.0006.00139-.0016.00415-.0057.01364a2.96627 2.96627 0 01-.0202.04786 6.41437 6.41437 0 01-.077.17173c-.0677.14576-.1685.35133-.3035.59681-.2694.48986-.6783 1.14462-1.2368 1.80162-.189.22233-.3964.44632-.6225.66501l.6576.65761c.1952.19526.1952.51184 0 .70711-.1953.19526-.5119.19526-.7071 0l-.7117-.71168c-.9142.69041-2.0549 1.23201-3.43477 1.33891v1.01921c0 .27615-.22385.49997-.5.49997-.27614 0-.5-.22382-.5-.49997V8.48092c-1.37986-.1069-2.52055-.6485-3.43477-1.33891l-.71167.71168c-.19527.19526-.51185.19526-.70711 0-.19526-.19527-.19526-.51185 0-.70711l.65761-.65761c-.22614-.21869-.43355-.44268-.62253-.66501-.55845-.657-.9674-1.31176-1.23682-1.80162-.13502-.24548-.23581-.45105-.30348-.59681a6.61544 6.61544 0 01-.077-.17173 3.90814 3.90814 0 01-.02024-.04786l-.00561-.01364-.00168-.00415-.00056-.00139-.00021-.00052c-.00009-.00022-.00017-.00041.46407-.18611l-.46424.1857c-.10255-.25639.02216-.54738.27855-.64994.25622-.10249.547.022.64973.27805l.00001.00002z",fillRule:"evenodd"}],{viewBox:"0 0 16 12"}),C([{clipRule:"evenodd",d:"M3.80186 8.41853C2.685 7.57447 1.87133 6.62097 1.51334 6.16691c.31756-.4896 1.0564-1.52552 2.14323-2.44326C4.76857 2.78465 6.20735 2 7.90819 2c1.70083 0 3.13961.78465 4.25161 1.72364 1.0868.91775 1.8257 1.95367 2.1432 2.44327-.358.45406-1.1716 1.40756-2.2885 2.25162-.961.72626-2.11317 1.34651-3.36953 1.52789.7645-.54373 1.2632-1.43684 1.2632-2.44642 0-1.65685-1.34314-3-3-3-1.65685 0-3 1.34315-3 3 0 .41355.08368.80755.23502 1.166a10.48883 10.48883 0 01-.34133-.24747zM7.90819 1c-2.02067 0-3.68067.93269-4.89679 1.95961C1.79468 3.98704.98474 5.13948.65114 5.65872.431 6.00134.45398 6.4359.7028 6.7539c.37363.47749 1.25923 1.52765 2.49614 2.46243C4.43124 10.1476 6.0596 11 7.90819 11c1.84858 0 3.47691-.8524 4.70921-1.78367 1.2369-.93478 2.1225-1.98494 2.4962-2.46244.2488-.318.2718-.75255.0516-1.09517-.3336-.51924-1.1435-1.67168-2.3602-2.69911C11.5889 1.93269 9.92886 1 7.90819 1z",fillRule:"evenodd"}],{viewBox:"0 0 16 12"}),C([{clipRule:"evenodd",d:"M4 4.00464C3.44772 4.00464 3 4.45235 3 5.00464C3 5.55692 3.44772 6.00464 4 6.00464H20C20.5523 6.00464 21 5.55692 21 5.00464C21 4.45235 20.5523 4.00464 20 4.00464H4ZM3 12.0046C3 11.4524 3.44772 11.0046 4 11.0046H20C20.5523 11.0046 21 11.4524 21 12.0046C21 12.5569 20.5523 13.0046 20 13.0046H4C3.44772 13.0046 3 12.5569 3 12.0046ZM3 19.0046C3 18.4524 3.44772 18.0046 4 18.0046H20C20.5523 18.0046 21 18.4524 21 19.0046C21 19.5569 20.5523 20.0046 20 20.0046H4C3.44772 20.0046 3 19.5569 3 19.0046Z",fillRule:"evenodd"}],{viewBox:"0 0 24 24"}),C([{clipRule:"evenOdd",d:"M3 0.5h6s3 0 3 3v6s0 3 -3 3h-6s-3 0 -3 -3v-6s0 -3 3 -3",fillRule:"evenodd"}],{viewBox:"0 0 12 12"}),C([{clipRule:"evenodd",d:"M12.0509 13.4635C10.7888 14.4283 9.21132 15.0015 7.5 15.0015C3.35786 15.0015 0 11.6436 0 7.50146C0 3.35933 3.35786 0.00146484 7.5 0.00146484C11.6421 0.00146484 15 3.35933 15 7.50146C15 9.21122 14.4279 10.7873 13.4647 12.0489L17.7077 16.292C18.0983 16.6825 18.0983 17.3156 17.7077 17.7062C17.3172 18.0967 16.6841 18.0967 16.2935 17.7062L12.0509 13.4635ZM13 7.50146C13 10.539 10.5376 13.0015 7.5 13.0015C4.46243 13.0015 2 10.539 2 7.50146C2 4.4639 4.46243 2.00146 7.5 2.00146C10.5376 2.00146 13 4.4639 13 7.50146Z",fillRule:"evenodd"}],{viewBox:"-3 -3 24 24"})),be=(C([{clipRule:"evenodd",d:"M4 4.00464C3.44772 4.00464 3 4.45235 3 5.00464C3 5.55692 3.44772 6.00464 4 6.00464H20C20.5523 6.00464 21 5.55692 21 5.00464C21 4.45235 20.5523 4.00464 20 4.00464H4ZM3 12.0046C3 11.4524 3.44772 11.0046 4 11.0046H20C20.5523 11.0046 21 11.4524 21 12.0046C21 12.5569 20.5523 13.0046 20 13.0046H4C3.44772 13.0046 3 12.5569 3 12.0046ZM3 19.0046C3 18.4524 3.44772 18.0046 4 18.0046H20C20.5523 18.0046 21 18.4524 21 19.0046C21 19.5569 20.5523 20.0046 20 20.0046H4C3.44772 20.0046 3 19.5569 3 19.0046Z",fillRule:"evenodd"}],{viewBox:"0 0 24 24"}),C([{d:"M17.9907 6.06279C17.9889 6.05645 17.9858 6.05068 17.9835 6.04453C17.9783 6.03062 17.9727 6.01691 17.9651 6.00426C17.9611 5.99761 17.9561 5.99165 17.9515 5.98542C17.9435 5.97457 17.935 5.96415 17.9252 5.95475C17.9191 5.94893 17.9125 5.94367 17.9058 5.93849C17.9003 5.93422 17.8958 5.92896 17.8898 5.92516C17.8843 5.92161 17.8781 5.91988 17.8724 5.91682C17.8681 5.91452 17.8648 5.91104 17.8603 5.90898L12.1003 3.26172C12.0366 3.23242 11.9634 3.23242 11.8997 3.26172L6.13969 5.90898C6.13512 5.91109 6.13169 5.91467 6.12732 5.91703C6.1217 5.92001 6.11561 5.9217 6.11016 5.92516C6.10424 5.92896 6.09973 5.93422 6.09425 5.93849C6.08754 5.94367 6.08092 5.94893 6.07482 5.95475C6.06504 5.96415 6.05648 5.97457 6.04846 5.98542C6.04386 5.99165 6.03891 5.99761 6.03492 6.00426C6.02733 6.01691 6.02168 6.03062 6.01652 6.04453C6.01424 6.05068 6.01107 6.05645 6.00932 6.06279C6.00354 6.08353 6 6.1051 6 6.1273V7.80109C6 7.89508 6.05484 7.98039 6.14016 8.01941L8.87812 9.27042L6.13969 10.529C6.13523 10.531 6.13184 10.5346 6.12756 10.5369C6.12182 10.5399 6.11566 10.5416 6.11016 10.5452C6.10424 10.549 6.09973 10.5542 6.09425 10.5585C6.08754 10.5637 6.08092 10.5689 6.07482 10.5747C6.06504 10.5841 6.05648 10.5946 6.04846 10.6054C6.04386 10.6116 6.03891 10.6176 6.03492 10.6243C6.02733 10.6369 6.02168 10.6506 6.01652 10.6645C6.01424 10.6707 6.01107 10.6764 6.00932 10.6828C6.00354 10.7035 6 10.7251 6 10.7473V12.1811C6 12.2751 6.05484 12.3604 6.14016 12.3994L9.13998 13.7701L6.13969 15.149C6.13518 15.1511 6.13178 15.1546 6.12744 15.1569C6.12176 15.16 6.11561 15.1617 6.11016 15.1652C6.10424 15.169 6.09973 15.1742 6.09425 15.1785C6.08754 15.1837 6.08092 15.1889 6.07482 15.1947C6.06504 15.2041 6.05648 15.2146 6.04846 15.2254C6.04386 15.2316 6.03891 15.2376 6.03492 15.2443C6.02733 15.2569 6.02168 15.2706 6.01652 15.2845C6.01424 15.2907 6.01107 15.2964 6.00932 15.3028C6.00354 15.3235 6 15.3451 6 15.3673V16.8011C6 16.8951 6.05484 16.9804 6.14016 17.0194L11.9002 19.6512C11.932 19.6656 11.966 19.6729 12 19.6729C12.034 19.6729 12.068 19.6656 12.0998 19.6512L17.8598 17.0194C17.9452 16.9804 18 16.8951 18 16.8011V15.3673C18 15.3452 17.9965 15.3235 17.9907 15.3028C17.9889 15.2964 17.9858 15.2907 17.9835 15.2845C17.9783 15.2706 17.9727 15.2569 17.9651 15.2443C17.9611 15.2376 17.9561 15.2316 17.9515 15.2254C17.9435 15.2146 17.935 15.2041 17.9252 15.1947C17.9191 15.1889 17.9125 15.1837 17.9058 15.1785C17.9003 15.1742 17.8958 15.169 17.8898 15.1652C17.8843 15.1616 17.878 15.1598 17.8723 15.1567C17.868 15.1545 17.8647 15.151 17.8603 15.149L14.86 13.7701L17.8598 12.3994C17.9452 12.3604 18 12.2751 18 12.1811V10.7473C18 10.7252 17.9965 10.7035 17.9907 10.6828C17.9889 10.6764 17.9858 10.6707 17.9835 10.6645C17.9783 10.6506 17.9727 10.6369 17.9651 10.6243C17.9611 10.6176 17.9561 10.6116 17.9515 10.6054C17.9435 10.5946 17.935 10.5841 17.9252 10.5747C17.9191 10.5689 17.9125 10.5637 17.9058 10.5585C17.9003 10.5542 17.8958 10.549 17.8898 10.5452C17.8843 10.5416 17.878 10.5398 17.8722 10.5367C17.868 10.5344 17.8647 10.531 17.8603 10.529L15.1219 9.27042L17.8598 8.01941C17.9452 7.98039 18 7.89508 18 7.80109V6.1273C18 6.10523 17.9965 6.08353 17.9907 6.06279ZM12 17.735L6.81624 15.3664L9.71648 14.0335L11.9002 15.0312C11.932 15.0456 11.966 15.0529 12 15.0529C12.034 15.0529 12.068 15.0456 12.0998 15.0312L14.2835 14.0335L17.1838 15.3664L12 17.735ZM12.7194 12.7862L12.4311 12.918L12.143 13.0496L12 13.115L11.857 13.0496L11.5689 12.918L11.2806 12.7862L6.81624 10.7464L9.4546 9.53381L11.9002 10.6512C11.932 10.6656 11.966 10.6729 12 10.6729C12.034 10.6729 12.068 10.6656 12.0998 10.6512L14.5454 9.53381L17.1838 10.7464L12.7194 12.7862ZM12 3.74395L17.1838 6.12643L12.7194 8.16625L12.4311 8.29798L12.143 8.42964L12 8.49496L11.857 8.42964L11.5689 8.29798L11.2806 8.16625L6.81624 6.12643L12 3.74395Z"}],{viewBox:"0 0 24 24"}),C([{Style:h,height:5,rx:2.5,useStroke:!0,width:9,x:3.5,y:5.5},{Style:d,cx:6,cy:8,r:1.5}],{fill:"none",viewBox:"0 0 16 16"})),Ce=C([{d:"M3 3V7.5C3 8.60457 3.89543 9.5 5 9.5H9",strokeLinecap:"round",strokeLinejoin:"round"}],{fill:"none",viewBox:"0 0 12 13"}),we=C([{Style:h,height:12,rx:1.5,width:3,x:1.5},{Style:h,height:12,rx:1.5,width:3,x:7.5}],{fill:"none",viewBox:"0 0 12 12"}),xe=C([{d:"M3.5 18V6c0-1.38071 1.11929-2.5 2.5-2.5h12c1.3807 0 2.5 1.11929 2.5 2.5v12c0 1.3807-1.1193 2.5-2.5 2.5H6c-1.38071 0-2.5-1.1193-2.5-2.5zM2 18V6c0-2.20914 1.79086-4 4-4h12c2.2091 0 4 1.79086 4 4v12c0 2.2091-1.7909 4-4 4H6c-2.20914 0-4-1.7909-4-4zm9.0935-8.41432c.3235-.25876.3759-.73073.1172-1.05417-.2588-.32345-.7308-.37589-1.0542-.11713L7.03148 10.9144c-.17791.1423-.28148.3578-.28148.5856 0 .2279.10357.4433.28148.5857l3.12502 2.5c.3234.2587.7954.2063 1.0542-.1172.2587-.3234.2063-.7954-.1172-1.0541L8.70058 11.5l2.39292-1.91432zM14.5 13.25c-.4142 0-.75.3358-.75.75s.3358.75.75.75H17c.4142 0 .75-.3358.75-.75s-.3358-.75-.75-.75h-2.5z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),Oe=C([{d:"M8.41421 9.50012L9.70715 8.20718L8.29294 6.79297L7 8.08591L5.70706 6.79297L4.29285 8.20718L5.58579 9.50012L4.29294 10.793L5.70715 12.2072L7 10.9143L8.29285 12.2072L9.70706 10.793L8.41421 9.50012Z"},{d:"M4 3H1C0.447715 3 0 3.44772 0 4C0 4.55228 0.447715 5 1 5V14.5002C1 15.3286 1.67157 16.0002 2.5 16.0002H11.5C12.3284 16.0002 13 15.3286 13 14.5002V5C13.5523 5 14 4.55228 14 4C14 3.44772 13.5523 3 13 3H10V1.5C10 0.671573 9.32843 0 8.5 0H5.5C4.67157 0 4 0.671574 4 1.5V3ZM6 3H8V2H6V3ZM11 5H3V14.0002H11V5Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 14 16"}),Ee=C([{d:"M21.5 12c0 5.2467-4.2533 9.5-9.5 9.5-5.24671 0-9.5-4.2533-9.5-9.5 0-5.24671 4.25329-9.5 9.5-9.5 5.2467 0 9.5 4.25329 9.5 9.5zm1.5 0c0 6.0751-4.9249 11-11 11-6.07513 0-11-4.9249-11-11C1 5.92487 5.92487 1 12 1c6.0751 0 11 4.92487 11 11zM12.75 7c0-.41421-.3358-.75-.75-.75s-.75.33579-.75.75v6c0 .4142.3358.75.75.75h4c.4142 0 .75-.3358.75-.75s-.3358-.75-.75-.75h-3.25V7z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),Se=C([{d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),ke=C([{d:"M8.29544 3.31064c.38072.16317.55709.60408.39392.9848L6.44279 9.53743c-.55663 1.29877-2.34358 1.43637-3.0925.23813L1.864 7.3975c-.21953-.35125-.11275-.81397.2385-1.0335.35125-.21953.81397-.11275 1.0335.2385l1.48629 2.37807c.10699.17118.36227.15152.44179-.03402l2.24656-5.24199c.16317-.38072.60408-.55709.9848-.39392zM10.75 7.5c0-.41421.3358-.75.75-.75H22c.4142 0 .75.33579.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.33579-.75-.75zM10.75 16.5c0-.4142.3358-.75.75-.75H22c.4142 0 .75.3358.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.3358-.75-.75zM5 19c1.10457 0 2-.8954 2-2s-.89543-2-2-2-2 .8954-2 2 .89543 2 2 2zm0 1.5c1.933 0 3.5-1.567 3.5-3.5S6.933 13.5 5 13.5 1.5 15.067 1.5 17s1.567 3.5 3.5 3.5z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),je=C([{d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),Pe=C([{Style:d,cx:9.99874,cy:10.0026,r:2.81124},{clipRule:"evenodd",d:"M10.0004 0.0273438C10.5389 0.0273438 10.9754 0.463866 10.9754 1.00234V2.8765C10.9754 3.41498 10.5389 3.8515 10.0004 3.8515C9.46191 3.8515 9.02539 3.41498 9.02539 2.8765V1.00234C9.02539 0.463866 9.46191 0.0273438 10.0004 0.0273438ZM1.81682 4.62693C2.19758 4.24617 2.81492 4.24617 3.19568 4.62693L4.13276 5.56401C4.51352 5.94477 4.51352 6.56211 4.13276 6.94287C3.752 7.32363 3.13466 7.32363 2.7539 6.94287L1.81682 6.00579C1.43606 5.62503 1.43606 5.00769 1.81682 4.62693ZM18.189 4.62693C18.5697 5.00769 18.5697 5.62503 18.189 6.00579L17.2519 6.94287C16.8711 7.32363 16.2538 7.32363 15.873 6.94287C15.4923 6.56211 15.4923 5.94477 15.873 5.56401L16.8101 4.62693C17.1909 4.24617 17.8082 4.24617 18.189 4.62693Z",fillRule:"evenodd"},{clipRule:"evenodd",d:"M10.0004 19.9766C10.5389 19.9766 10.9754 19.54 10.9754 19.0016V17.1274C10.9754 16.5889 10.5389 16.1524 10.0004 16.1524C9.46191 16.1524 9.02539 16.5889 9.02539 17.1274V19.0016C9.02539 19.54 9.46191 19.9766 10.0004 19.9766ZM1.81682 15.3756C2.19758 15.7563 2.81492 15.7563 3.19568 15.3756L4.13276 14.4385C4.51352 14.0577 4.51352 13.4404 4.13276 13.0596C3.752 12.6789 3.13466 12.6789 2.7539 13.0596L1.81682 13.9967C1.43606 14.3775 1.43606 14.9948 1.81682 15.3756ZM18.189 15.3756C18.5697 14.9948 18.5697 14.3775 18.189 13.9967L17.2519 13.0596C16.8711 12.6789 16.2538 12.6789 15.873 13.0596C15.4923 13.4404 15.4923 14.0577 15.873 14.4385L16.8101 15.3756C17.1909 15.7563 17.8082 15.7563 18.189 15.3756Z",fillRule:"evenodd"}],{viewBox:"0 0 20 20"}),Le=C([{d:"M1.375 8.93768C1.375 10.0768 2.29841 11.0002 3.4375 11.0002C4.57659 11.0002 5.5 10.0768 5.5 8.93768C5.5 7.7986 4.57659 6.87519 3.4375 6.87519C2.29841 6.87519 1.375 7.7986 1.375 8.93768ZM3.4375 5.50019C1.53902 5.50019 0 7.03921 0 8.93768C0 10.8362 1.53902 12.3752 3.4375 12.3752C5.33598 12.3752 6.875 10.8362 6.875 8.93768C6.875 7.03921 5.33598 5.50019 3.4375 5.50019Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M8.90222 0.47028C9.02229 0.830491 8.82762 1.21984 8.46741 1.33991C7.38573 1.70047 6.41052 1.72953 5.66623 1.62818L6.85017 8.52239C6.91259 8.89692 6.67505 9.55341 6.30052 9.61583C5.92599 9.67825 5.51399 8.86586 5.45157 8.49133L4.13435 0.800711C4.09184 0.545643 4.19605 0.288295 4.40405 0.134669C4.61206 -0.0189577 4.88867 -0.0428752 5.11996 0.0727678C5.4119 0.218738 6.55203 0.528986 8.03259 0.0354667C8.3928 -0.0846036 8.78215 0.110069 8.90222 0.47028Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M8.25 18.5627C8.25 19.7018 9.17341 20.6252 10.3125 20.6252C11.4516 20.6252 12.375 19.7018 12.375 18.5627C12.375 17.4236 11.4516 16.5002 10.3125 16.5002C9.17341 16.5002 8.25 17.4236 8.25 18.5627ZM10.3125 15.1252C8.41402 15.1252 6.875 16.6642 6.875 18.5627C6.875 20.4612 8.41402 22.0002 10.3125 22.0002C12.211 22.0002 13.75 20.4612 13.75 18.5627C13.75 16.6642 12.211 15.1252 10.3125 15.1252Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M15.7772 10.0953C15.8973 10.4555 15.7026 10.8448 15.3424 10.9649C14.2607 11.3255 13.2855 11.3545 12.5412 11.2532L13.7345 18.2343C13.7969 18.6088 13.5501 19.1784 13.1755 19.2408C12.801 19.3032 12.4183 18.655 12.3558 18.2804L11.0094 10.4257C10.9668 10.1706 11.0711 9.91329 11.2791 9.75967C11.4871 9.60604 11.7637 9.58212 11.995 9.69777C12.2869 9.84374 13.427 10.154 14.9076 9.66046C15.2678 9.54039 15.6571 9.73507 15.7772 10.0953Z",clipRule:"evenodd",fillRule:"evenodd"},{d:"M16.5 4.8125C16.5 5.95159 17.4234 6.875 18.5625 6.875C19.7016 6.875 20.625 5.95159 20.625 4.8125C20.625 3.67341 19.7016 2.75 18.5625 2.75C17.4234 2.75 16.5 3.67341 16.5 4.8125ZM18.5625 1.375C16.664 1.375 15.125 2.91402 15.125 4.8125C15.125 6.71098 16.664 8.25 18.5625 8.25C20.461 8.25 22 6.71098 22 4.8125C22 2.91402 20.461 1.375 18.5625 1.375Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 22 22"}),Me=C([{d:"M7.85355.146447c-.19526-.195263-.51184-.195263-.7071 0-.19527.195262-.19527.511844 0 .707106L11.1464 4.85355c.1953.19527.5119.19527.7072 0 .1952-.19526.1952-.51184 0-.7071L7.85355.146447zM.146447 4.85355c-.195263-.19526-.195263-.51184 0-.7071L4.14645.146447c.19526-.195262.51184-.195262.7071 0 .19527.195262.19527.511844 0 .707106L.853553 4.85355c-.195262.19527-.511844.19527-.707106 0zM5.29672 3.49992c.39053-.39052 1.02369-.39052 1.41422 0l1.79289 1.7929c.39053.39052.39052 1.02369 0 1.41421l-1.79289 1.7929c-.39053.39052-1.02369.39052-1.41422-.00001L3.50383 6.70703c-.39052-.39052-.39052-1.02369 0-1.41421l1.79289-1.7929zm.70711.70711L4.21094 5.99992l1.79289 1.7929 1.79289-1.79289-1.79289-1.7929zm1.14262 6.93937c-.19527.1953-.19527.5119 0 .7072.19526.1952.51184.1952.7071 0l4.00005-4.00005c.1952-.19526.1952-.51184 0-.7071-.1953-.19527-.5119-.19527-.7072 0L7.14645 11.1464zM.146447 7.14645c.195262-.19527.511844-.19527.707106 0L4.85355 11.1464c.19527.1953.19527.5119 0 .7072-.19526.1952-.51184.1952-.7071 0L.146447 7.85355c-.195263-.19526-.195263-.51184 0-.7071z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 12 12"}),Re=C([{d:"M8.67625 7.82429C8.48671 8.13404 8.61933 8.53116 8.9436 8.69464C9.26787 8.85812 9.6606 8.72561 9.85513 8.41896C10.5416 7.33682 11.5276 6.47056 12.6997 5.92987C14.0715 5.29701 15.6173 5.14749 17.085 5.50568C18.5526 5.86388 19.8557 6.70866 20.7818 7.90233C21.7079 9.096 22.2023 10.5682 22.1845 12.0788C22.1667 13.5895 21.6377 15.0496 20.6837 16.2211C19.7298 17.3926 18.4071 18.2064 16.9314 18.5299C15.4557 18.8534 13.9139 18.6675 12.5573 18.0024C11.3984 17.4343 10.433 16.545 9.77227 15.447C9.58502 15.1358 9.19553 14.9941 8.86749 15.1499C8.53946 15.3057 8.39751 15.6995 8.5797 16.0137C9.37152 17.379 10.5525 18.4842 11.9785 19.1832C13.6018 19.9791 15.4469 20.2016 17.213 19.8145C18.979 19.4273 20.5619 18.4534 21.7035 17.0514C22.8451 15.6495 23.4781 13.9022 23.4994 12.0943C23.5208 10.2865 22.9291 8.52472 21.8208 7.09623C20.7126 5.66774 19.1532 4.65677 17.3968 4.22811C15.6403 3.79945 13.7905 3.97839 12.1488 4.73574C10.7068 5.40099 9.50004 6.47805 8.67625 7.82429ZM0.219185 12.5303C-0.0737079 12.2375 -0.0737079 11.7626 0.219185 11.4697L4.71918 6.96968C5.01208 6.67679 5.48695 6.67679 5.77985 6.96968C6.07274 7.26258 6.07274 7.73745 5.77985 8.03034L2.56017 11.25L15.7495 11.25C16.1637 11.25 16.4995 11.5858 16.4995 12C16.4995 12.4142 16.1637 12.75 15.7495 12.75L2.56017 12.75L5.77985 15.9697C6.07274 16.2626 6.07274 16.7375 5.77985 17.0303C5.48695 17.3232 5.01208 17.3232 4.71918 17.0303L0.219185 12.5303Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 24 24"}),Ae=C([{d:"M30.1102 48.0621L14.9922 63.1801C13.3487 64.8236 10.6841 64.8236 9.04056 63.1801C7.39707 61.5366 7.39707 58.872 9.04057 57.2285L23.8838 42.3852C28.2166 38.0525 30.9235 32.3587 31.5487 26.2632L32.2813 19.1201C32.5221 16.7718 33.5649 14.5784 35.2341 12.9092L37.1676 10.9757C41.0008 7.1425 46.7471 6.3885 51.3329 8.71364L42.1808 17.8658C39.4447 20.6019 39.4446 25.038 42.1808 27.7742L43.3136 28.907C46.0498 31.6432 50.4859 31.6431 53.222 28.907L62.3742 19.7549C64.6993 24.3407 63.9453 30.087 60.1121 33.9202L57.8912 36.1411C56.337 37.6953 54.3369 38.7263 52.1694 39.0906L45.262 40.2516C39.5221 41.2163 34.2258 43.9465 30.1102 48.0621ZM34.4792 8.28718C39.8094 2.95691 47.9612 2.16772 54.1269 5.91963C55.1985 6.57166 56.21 7.36084 57.1363 8.28717L44.8693 20.5543C43.6179 21.8056 43.6179 23.8344 44.8693 25.0857L46.0021 26.2185C47.2534 27.4699 49.2822 27.4699 50.5336 26.2185L62.8006 13.9515C63.727 14.8778 64.5161 15.8893 65.1682 16.9609C68.9201 23.1266 68.1309 31.2784 62.8006 36.6086L60.5797 38.8296C58.4664 40.9429 55.7468 42.3448 52.7996 42.8401L45.8922 44.0011C40.932 44.8348 36.3552 47.194 32.7987 50.7506L17.6807 65.8686C14.5524 68.9969 9.48038 68.9969 6.35208 65.8686C3.22378 62.7403 3.22379 57.6683 6.35209 54.54L21.1953 39.6967C24.9098 35.9823 27.2305 31.101 27.7664 25.8753L28.499 18.7322C28.8291 15.5141 30.2582 12.5082 32.5456 10.2207L34.4792 8.28718ZM15.5941 58.8675C16.188 58.2736 16.188 57.3106 15.5941 56.7167C15.0002 56.1228 14.0372 56.1228 13.4433 56.7167L11.8412 58.3188C11.2473 58.9127 11.2473 59.8757 11.8412 60.4696C12.4351 61.0635 13.3981 61.0635 13.992 60.4696L15.5941 58.8675Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 74 73"}),_e=C([{d:"M7.48556 2.1422C8.05032 1.20093 9.06752 0.625 10.1652 0.625H15.0672C15.8927 0.625 16.3902 1.53947 15.9417 2.23255L12.6066 7.38682C12.5169 7.52544 12.6164 7.70833 12.7815 7.70833H16.1772C17.0671 7.70833 17.5472 8.7522 16.968 9.42791L8.59523 19.1962C7.89721 20.0105 6.57255 19.3657 6.7829 18.314L7.91068 11.75H3.15897C2.34929 11.75 1.84917 10.8667 2.26575 10.1724L7.48556 2.1422ZM10.1652 1.875C9.5066 1.875 8.89628 2.22056 8.55742 2.78532L3.52693 10.5H8.16481C8.82215 10.5 9.31516 11.1014 9.18624 11.746L8.16497 17.7774L15.7242 8.95833H12.7815C11.6258 8.95833 10.9293 7.67808 11.5572 6.70776L14.6842 1.875H10.1652Z",clipRule:"evenodd",fillRule:"evenodd"}],{fill:"none",viewBox:"0 0 20 20"})},40656:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});var r=1.5*n(49125).iI},19963:function(e,t,n){"use strict";n.d(t,{Av:function(){return i},GQ:function(){return o},UI:function(){return r},WU:function(){return u},qJ:function(){return c},u:function(){return a},yX:function(){return s}});var r="rgba(255, 255, 255, 0.3)",o="#787A85",i="#AEAEAE",a="rgba(174, 174, 174, 0.5)",u="#FFFFFF",c="#232429",s="#2C2C2C"},73899:function(e,t,n){"use strict";n.d(t,{$R:function(){return I},AU:function(){return R},CM:function(){return k},CN:function(){return F},Cj:function(){return D},Ck:function(){return a},E5:function(){return r},EG:function(){return H},Ej:function(){return o},Jm:function(){return i},Or:function(){return C},Qr:function(){return x},Rx:function(){return V},S0:function(){return d},Se:function(){return w},Uq:function(){return Z},Wd:function(){return g},XV:function(){return Q},X_:function(){return E},YU:function(){return B},ZA:function(){return m},Zl:function(){return T},_6:function(){return s},_p:function(){return A},a$:function(){return j},cM:function(){return f},dw:function(){return v},er:function(){return O},gN:function(){return u},hM:function(){return _},hl:function(){return S},hw:function(){return N},iW:function(){return z},kW:function(){return $},nQ:function(){return b},ns:function(){return p},pF:function(){return h},pP:function(){return M},pp:function(){return G},rp:function(){return y},t0:function(){return l},t4:function(){return L},uH:function(){return W},ur:function(){return c},xA:function(){return q},xp:function(){return P},zq:function(){return U}});var r="#060606",o="#2A60FE",i="rgba(72, 119, 255, 0.5)",a="#4877FF",u="#86E2FF",c="#CFF3FF",s="#6AA1E0",l="#5982ff",f="#9ECBFF",d="#1752FF",p="#B9BFCA",h="#B1B8C3",v="#4E4E4E",g="#D8DCE3",m="#2FCB52",y="#FBFCFD",b="#2FCB52",C="#8ADE00",w="#E8F8CC",x="#24B400",O="#0F4CFF",E="#B98D95",S="#FF4FF8",k="#FFB9FC",j="#6B50D7",P="rgba(125, 85, 236, 0.5)",L="#7D55EC",M="rgba(201, 206, 218, 0.12)",R="rgba(250, 248, 254, 0.14)",A="#C4B9EF",_="#FF144D",T="#FFA1B8",B="#FFD0DB",Z="#F9FAFC",D="#FFFFFF",I="#FFCC19",H="#FFEBA3",F="rgba(255, 204, 25, 0.5)",V="#F2F2F2",N="#D5D7DC",z="#B4B8C0",U="#70747C",q="#51535C",Q="linear-gradient(95.24deg, #4877FF 0.93%, #7D55EC 54%, #B98D95 100.82%)",W="linear-gradient(98.99deg, #2ECDF7 8.49%, #0066FF 102.8%)",G="#fc6949",$="rgba(252, 105, 73, 0.5)"},2005:function(e,t,n){"use strict";n.d(t,{LX:function(){return a},Vp:function(){return l},YC:function(){return u},iI:function(){return s},nF:function(){return i},ry:function(){return c},v$:function(){return f}});var r="Helvetica Neue, Helvetica, sans-serif",o="monospace",i="".concat("Roboto Bold",", ").concat(r),a="".concat("Roboto Light",", ").concat(r),u="".concat("Roboto Medium",", ").concat(r),c="".concat("Roboto Regular",", ").concat(r),s="".concat("Roboto Thin",", ").concat(r),l="".concat("Fira Code Regular",", ").concat(o),f=("".concat("Fira Code Medium",", ").concat(o),"".concat("Fira Code Bold",", ").concat(o))},31012:function(e,t,n){"use strict";n.d(t,{Al:function(){return c},BL:function(){return f},Bu:function(){return m},HC:function(){return g},J5:function(){return i},MJ:function(){return l},QU:function(){return p},T6:function(){return d},VK:function(){return a},aQ:function(){return s},dN:function(){return u},i3:function(){return o},iD:function(){return v},ln:function(){return h},x_:function(){return r}});var r=16,o=14,i=12,a=8,u=20,c=18,s="\n font-size: 56px;\n line-height: ".concat(72,"px;\n"),l="\n font-size: 40px;\n line-height: ".concat(48,"px;\n"),f="\n font-size: 32px;\n line-height: ".concat(42,"px;\n"),d="\n font-size: 20px;\n line-height: ".concat(28,"px;\n"),p="\n font-size: 24px;\n line-height: ".concat(34,"px;\n"),h=("\n font-size: 18px;\n line-height: ".concat(28,"px;\n"),"\n font-size: ".concat(r,"px;\n line-height: 22px;\n")),v="\n font-size: ".concat(o,"px;\n line-height: ").concat(u,"px;\n"),g=("\n font-size: ".concat(o,"px;\n line-height: ").concat(u,"px;\n"),"\n font-size: 12px;\n line-height: ".concat(c,"px;\n")),m="\n font-size: 12px;\n line-height: 12px;\n"},90880:function(e,t,n){"use strict";n.d(t,{Xh:function(){return r},eR:function(){return o}});n(31969);var r=function(e,t){return"\n -webkit-".concat(e,": ").concat(t,";\n -moz-").concat(e,": ").concat(t,";\n -ms-").concat(e,": ").concat(t,";\n ").concat(e,": ").concat(t,";\n")},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0.1s all linear";return r("transition",e)}},23831:function(e,t,n){"use strict";var r=n(73899),o=n(19963);t.Z={accent:{alert:"#F6540B",blue:r.Ck,blueLight:r.Jm,contentDefaultTransparent:o.u,cyan:"#65E3FF",cyanTransparent:"rgba(101, 227, 255, 0.12)",dbt:r.pp,dbtLight:r.kW,info:"#00ABFF",infoTransparent:"rgba(0, 171, 255, 0.5)",negative:"#FF1E59",negativeTransparent:"rgba(255, 30, 89, 0.3)",pink:r.hl,pinkLight:r.CM,positive:"#00A81A",primaryTransparent:"rgba(155, 108, 167, 0.5)",purple:r.t4,purpleLight:r.xp,teal:"#00B4CC",tealLight:"rgba(0, 180, 204, 0.5)",warning:"#DD9900",warningTransparent:"rgba(221, 153, 0, 0.5)",yellow:r.$R,yellowLight:r.CN},background:{chartBlock:"#2E3036",codeArea:"#1E1F24",codeTextarea:"#000000",content:"#1B1C20",danger:r.YU,dark:r.pF,header:"#1B1B1B",menu:r.er,muted:r.Uq,navigation:"#EDEDED",output:"#2E3036",page:"#1E1F24",panel:"#232429",popup:"#27292E",row:o.yX,row2:r.xA,scrollbarThumb:"rgba(100, 100, 100, 0.5)",scrollbarThumbHover:"rgba(255, 255, 255, 0.3)",scrollbarTrack:"#2E3036",success:r.Or,table:"#292A2F"},borders:{button:"#454850",contrast:r.Cj,danger:r.hM,dark:"#000000",info:r.$R,light:"#2F3034",medium:"#1C1C1C",medium2:"#141414",success:r.ZA},brand:{earth100:"#C6EEDB",earth200:"#9DDFBF",earth300:"#6BBF96",earth400:"#37A46F",earth400Transparent:"rgba(55, 164, 111, 0.4)",earth500:"#00954C",energy100:"#FFF4BA",energy200:"#FFED92",energy300:"#FFE662",energy400:"#FFDA19",energy400Transparent:"rgba(255, 218, 25, 0.04)",energy500:"#F6C000",fire100:"#FFD7E0",fire200:"#FFA3B9",fire300:"#FF547D",fire400:"#FF144D",fire400Transparent:"rgba(255, 20, 77, 0.4)",fire500:"#EB0032",stone100:"#F3E6D7",stone200:"#E3D4C2",stone400:"#BFA78B",stone500:"#AF8859",water100:"#BDCEFF",water200:"#81A1FF",water300:"#517DFF",water400:"#2A60FE",water400Transparent:"rgba(42, 96, 254, 0.4)",water500:"#0F4CFF",wind100:"#EEEAFF",wind200:"#CCC1F4",wind300:"#A698DD",wind400:"#6B50D7",wind400SuperTransparent:"rgba(107, 80, 215, 0.12)",wind400Transparent:"rgba(107, 80, 215, 0.4)",wind500:"#4E32BC"},chart:{backgroundPrimary:r.t4,backgroundSecondary:r.hM,backgroundTertiary:r.gN,button1:r.Ck,button2:r.$R,button3:r.Or,button4:r.hl,button5:r.X_,lines:"#9B6CA7",primary:r.a$,secondary:r.hM,tertiary:r.Ej},content:{active:o.WU,default:o.Av,disabled:o.UI,inverted:o.yX,muted:o.GQ},elevation:{visualizationAccent:"#996CFF",visualizationAccentAlt:"#C1ACF7"},feature:{active:r.AU,disabled:r.pP},icons:{neutral:"#787878"},interactive:{activeBorder:r.E5,checked:r.E5,dangerBorder:r.hM,defaultBackground:"#36383F",defaultBorder:"#1C1C1C",disabledBorder:r.pF,focusBackground:r.pF,focusBorder:r.gN,hoverBackground:r.dw,hoverBorder:r.ns,hoverOverlay:"rgba(255, 255, 255, 0.1)",linkPrimary:r.S0,linkPrimaryHover:r.Ck,linkPrimaryLight:r.t0,linkSecondary:r.a$,linkSecondaryDisabled:r._p,linkText:r._6,rowHoverBackground:"rgba(0, 0, 0, 0.1)"},loader:{color:"#EB0032",colorInverted:r.Or},logo:{color:r.Cj},monotone:{black:r.E5,blackTransparent:"rgba(0, 0, 0, 0.6)",gray:r.pF,grey100:r.Rx,grey200:r.hw,grey300:r.iW,grey400:r.zq,grey500:r.xA,purple:r.a$,white:r.Cj},neutral:{n100:"#E7E8EA",n200:"#D8DADE",n300:"#CBCCD0",n400:"#BCBEC4",n500:"#AEB0B6"},progress:{negative:r.hM,positive:r.a$},shadow:{base:"12px 40px 120px rgba(106, 117, 139, 0.4)",menu:"4px 10px 20px rgba(6, 6, 6, 0.12)",popup:"10px 20px 40px rgba(0, 0, 0, 0.2)",small:"0px, 4px, rgba(0, 0, 0, 0.25)",window:"0px 10px 60px rgba(0, 0, 0, 0.7)"},status:{negative:r.hM,positive:r.Qr},text:{fileBrowser:o.GQ}}},31969:function(e,t,n){"use strict";var r=n(73899);t.Z={accent:{alert:"#F6540B",blue:r.Ck,cyan:"#65E3FF",cyanTransparent:"rgba(101, 227, 255, 0.12)",info:"#00ABFF",infoTransparent:"rgba(0, 171, 255, 0.5)",negative:"#FF1E59",negativeTransparent:"rgba(255, 30, 89, 0.3)",positive:"#00A81A",primaryTransparent:"rgb(155, 108, 167, 0.5)",purple:r.a$,warning:"#DD9900",warningTransparent:"rgba(221, 153, 0, 0.5)",yellow:r.$R},background:{codeArea:"#161617",danger:r.YU,dark:r.pF,header:r.Uq,menu:r.er,muted:r.Uq,navigation:"#EDEDED",page:r.Cj,panel:"#232429",row:r.rp,scrollbarThumb:"rgba(0, 0, 0, 0.5)",scrollbarThumbHover:"rgba(255, 255, 255, 0.3)",scrollbarTrack:"rgba(39, 42, 47, 0.3)",success:r.Se,table:r.Cj},borders:{danger:r.hM,dark:"#000000",info:r.$R,light:"#2F3034",medium:"#D5D7DC",success:r.ZA},brand:{earth100:"#C6EEDB",earth200:"#9DDFBF",earth300:"#6BBF96",earth400:"#37A46F",earth400Transparent:"rgba(55, 164, 111, 0.4)",earth500:"#00954C",energy100:"#FFF4BA",energy200:"#FFED92",energy300:"#FFE662",energy400:"#FFDA19",energy400Transparent:"rgba(255, 218, 25, 0.04)",energy500:"#F6C000",fire100:"#FFD7E0",fire200:"#FFA3B9",fire300:"#FF547D",fire400:"#FF144D",fire400Transparent:"rgba(255, 20, 77, 0.4)",fire500:"#EB0032",stone100:"#F3E6D7",stone200:"#E3D4C2",stone400:"#BFA78B",stone500:"#AF8859",water100:"#BDCEFF",water200:"#81A1FF",water300:"#517DFF",water400:"#2A60FE",water400Transparent:"rgba(42, 96, 254, 0.4)",water500:"#0F4CFF",wind100:"#EEEAFF",wind200:"#CCC1F4",wind300:"#A698DD",wind400:"#6B50D7",wind400SuperTransparent:"rgba(107, 80, 215, 0.12)",wind400Transparent:"rgba(107, 80, 215, 0.4)",wind500:"#4E32BC"},chart:{backgroundDanger:r.Zl,backgroundPrimary:r._p,backgroundSecondary:r.Zl,backgroundTertiary:r.ur,button1:r.Ck,button2:r.$R,button3:r.nQ,danger:r.hM,lines:"#9B6CA7",primary:r.a$,secondary:r.hM,tertiary:r.gN},content:{active:r.E5,default:r.E5,disabled:r.Wd,inverted:r.Cj,muted:r.pF},elevation:{visualizationAccent:"#996CFF",visualizationAccentAlt:"#C1ACF7"},feature:{active:r.AU,disabled:r.pP},icons:{neutral:"#787878"},interactive:{activeBorder:r.E5,checked:r._p,dangerBorder:r.hM,defaultBackground:r.Cj,defaultBorder:r.Wd,disabledBorder:r.pF,focusBackground:r.pF,focusBorder:r.gN,hoverBackground:r.Uq,hoverBorder:r.ns,linkPrimary:r.Ej,linkSecondary:r.a$,linkSecondaryDisabled:r._p},loader:{color:r.Or,colorInverted:"#EB0032"},monotone:{black:r.E5,blackTransparent:"rgba(0, 0, 0, 0.6)",gray:r.pF,grey100:"#F2F2F2",grey200:"#D5D7DC",grey300:"#B4B8C0",grey400:"#70747C",grey500:"#28292C",purple:r.a$,white:r.Cj},neutral:{n100:"#E7E8EA",n200:"#D8DADE",n300:"#CBCCD0",n400:"#BCBEC4",n500:"#AEB0B6"},progress:{negative:r.hM,positive:r.a$},shadow:{base:"12px 40px 120px rgba(106, 117, 139, 0.4)",menu:"4px 10px 20px rgba(6, 6, 6, 0.12)",popup:"10px 20px 40px rgba(0, 0, 0, 0.2)"},status:{negative:r.hM,positive:r.Qr}}},30332:function(e,t,n){"use strict";n.d(t,{gz:function(){return l},qt:function(){return s}});var r=n(39421),o=n(56663),i=n.n(o),a=n(23831),u=n(31969),c=n(55361);var s="current_theme";function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e){var o=i()(e);t=o[s]}else t=r.Z.get(s,c.Hu);return Number(t)===n?0===n?u.Z:a.Z:1===n?a.Z:u.Z}},73942:function(e,t,n){"use strict";n.d(t,{BG:function(){return c},D7:function(){return s},M8:function(){return i},PV:function(){return l},TR:function(){return a},YF:function(){return r},mP:function(){return o},n_:function(){return u},q2:function(){return f}});var r=1,o=2,i="solid",a=10,u=8,c=4,s=20,l=1,f=2},49125:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},Gg:function(){return l},HN:function(){return d},KF:function(){return u},Mq:function(){return f},Vj:function(){return i},cd:function(){return c},iI:function(){return r},tr:function(){return o},zC:function(){return s}});var r=8,o=2*r,i=5*r,a=10,u=9,c=2,s=c,l=c,f=3,d=5},91963:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ce}});var r=n(77837),o=n(82394),i=n(38860),a=n.n(i),u=n(82684),c=n(4793),s=n(39421);function l(){return(l=Object.assign||function(e){for(var t=1;t=100?(G(l({},W,{width:"100%"})),E&&K(l({},Y,{left:t-10+"%"})),setTimeout((function(){_.current&&(G(l({},W,{opacity:0,width:"100%",transition:"all "+y+"ms ease-out",color:s})),setTimeout((function(){_.current&&(D.current.active&&(D.current=l({},D.current,{active:!1}),Z(0),e(0)),N.active&&(z(l({},N,{active:!1})),Z(0),e(0)),g&&g(),Z(0),e(0))}),y))}),x)):(G((function(e){return l({},e,{width:t+"%",opacity:1,transition:t>0?"all "+C+"ms ease":""})})),E&&K(l({},Y,{left:t-5.5+"%",transition:t>0?"all "+C+"ms ease":""})))};return X=function(){var e=d(Math.min(10,(100-B)/5),Math.min(20,(100-B)/3));B+e<95&&(Z(B+e),te(B+e))},J=D.current.active?D.current.refreshRate:null,ee=(0,u.useRef)(f),(0,u.useEffect)((function(){ee.current=X})),(0,u.useEffect)((function(){}),[void 0]),(0,u.useEffect)((function(){if(null!==J&&!1!==J){var e=setInterval((function(){return ee.current()}),J);return function(){return clearInterval(e)}}}),[J]),(0,u.createElement)("div",{className:A,style:l({},U,k)},(0,u.createElement)("div",{className:a,style:l({},W,P)},E?(0,u.createElement)("div",{style:l({},Y,M)}):null))})),v=n(33591),g=n(9518),m=(n(97937),n(91230),n(57384)),y=n(41150),b=n(21764),C=n(23831),w=n(73942),x=n(49125),O=n(28598),E=g.default.div.withConfig({displayName:"ToastWrapper",componentId:"sc-1a33ph1-0"})([".Toastify__toast-container{margin-top:","px;padding:0 !important;width:500px !important;}.Toastify__toast{border-radius:","px !important;font-family:Greycliff Medium,Helvetica Neue,Helvetica,sans-serif !important;font-size:14px !important;line-height:20px !important;margin-bottom:0 !important;margin-left:0 !important;margin-right:0 !important;margin-top:","px !important;min-height:0 !important;padding:","px !important;}.Toastify__toast-body{margin:0 !important;}",""],3*x.iI,w.n_,2*x.iI,2*x.iI,(function(e){return"\n .Toastify__toast--error {\n background: ".concat((e.theme.accent||C.Z.accent).negative," !important;\n color: ").concat((e.theme.content||C.Z.content).active," !important;\n }\n .Toastify__toast--info {\n background: ").concat((e.theme.accent||C.Z.accent).positive," !important;\n color: ").concat((e.theme.content||C.Z.content).active," !important;\n }\n .Toastify__toast--success {\n background: ").concat((e.theme.accent||C.Z.accent).positive," !important;\n color: ").concat((e.theme.content||C.Z.content).active," !important;\n }\n .Toastify__toast--warning {\n background: ").concat((e.theme.accent||C.Z.accent).warning," !important;\n color: ").concat((e.theme.content||C.Z.content).active," !important;\n }\n ")}));function S(){return(0,O.jsx)(E,{children:(0,O.jsx)(b.Ix,{transition:b.Mi})})}var k=n(82531),j=n(21831),P=n(75582),L=n(16115),M=n(7715),R=n(554);function A(e){"undefined"===typeof R&&console.log(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t=1;document.body.style.overflow=t?"hidden":"unset"}),[i,d]),(0,u.useEffect)((function(){return function(){document.body.style.overflow="unset"}}),[]);var g=(0,u.useCallback)((function(e){"Escape"===e.key&&(Object.entries(i||{}).forEach((function(e){var t=(0,P.Z)(e,2),n=t[0],r=t[1],o=r.hideSheet,i=r.hideSheetCallback;f[n]&&(o(n),i&&i())})),e.preventDefault())}),[i,f]);return(0,u.useEffect)((function(){return window.addEventListener("keydown",g),function(){window.removeEventListener("keydown",g)}}),[g]),c&&i?V.createPortal((0,O.jsx)(n,{children:Object.entries(i).map((function(e){var t=(0,P.Z)(e,2),n=t[0],r=t[1],o=r.component,i=r.hideSheet,a=r.hideSheetCallback,u=r.sheetProps,c=u||{},s=c.enterFromBottom,l=c.enterFromRight,d=(null===u||void 0===u?void 0:u.enterFromLeft)||!(s||l),p=d||l?v-G:v,g=s?h-G:h;return(0,O.jsxs)($,Q(Q({enterFromLeft:d,height:h,width:v},u),{},{children:[(0,O.jsx)(N.Z,{classNames:"global-sheet",in:f[n],timeout:300,children:(0,O.jsx)(K,Q(Q({enterFromLeft:d,height:h,width:v},u),{},{children:(0,O.jsx)(W,{component:o,height:g,width:p})}))}),(0,O.jsx)(N.Z,{classNames:"container-background",in:f[n],timeout:300,unmountOnExit:!0,children:(0,O.jsx)(Y,{onClick:function(){i(n),a&&a()}})})]}),n)}))}),c):(0,O.jsx)("div",{})})),J=n(79642);function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];l[e]=n,f[e]=t}),[l,f]),v=(0,u.useCallback)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];d[e]=n,p[e]=t}),[d,p]),g=(0,u.useCallback)((function(e){delete l[e],delete f[e]}),[l,f]),m=(0,u.useCallback)((function(e){delete d[e],delete p[e]}),[d,p]);return(0,u.useEffect)((function(){var n=function(n){var r;if(!(0,M.Qr)(f)||!(0,M.Qr)(p)){var i=n.altKey,a=n.ctrlKey,u=n.keyCode,c=n.metaKey,s=n.shiftKey,l=T(T({},e.current),{},(r={altKey:i,ctrlKey:a},(0,o.Z)(r,u,!0),(0,o.Z)(r,"metaKey",c),(0,o.Z)(r,"shiftKey",s),r)),d=[u].concat(t.current);e.current[u]||(e.current=l,t.current=d),Object.entries(f).forEach((function(e){var t=(0,P.Z)(e,2),r=t[0];(0,t[1])(n,l||{},d),A("[keydown]: ".concat(r))}))}};return window.addEventListener("keydown",n),function(){window.removeEventListener("keydown",n)}}),(n=[t.current,e.current,f,p]).concat.apply(n,(0,j.Z)(Object.values(l)))),(0,u.useEffect)((function(){var n=function(n){var r;if(!(0,M.Qr)(f)||!(0,M.Qr)(p)){var i=n.altKey,a=n.ctrlKey,u=n.keyCode,c=n.metaKey,l=n.shiftKey,d=e.current,h=t.current,v=L.vk.includes(u)?{}:T(T({},d),{},(r={altKey:i,ctrlKey:a},(0,o.Z)(r,u,!1),(0,o.Z)(r,"metaKey",c),(0,o.Z)(r,"shiftKey",l),r));e.current=v,clearTimeout(s.current),s.current=setTimeout((function(){t.current=[]}),1e3),Object.entries(p).forEach((function(e){var t=(0,P.Z)(e,2),r=t[0];(0,t[1])(n,d||{},h,v||{}),A("[keyup] : ".concat(r))}))}};return window.addEventListener("keyup",n),function(){window.removeEventListener("keyup",n)}}),(r=[t.current,e.current,f,p]).concat.apply(r,(0,j.Z)(Object.values(d)))),(0,u.useEffect)((function(){var n=function(){t.current=[],e.current={}};return window.addEventListener("focus",n),function(){return window.removeEventListener("focus",n)}}),[t,e]),{disableGlobalKeyboardShortcuts:a,registerOnKeyDown:h,registerOnKeyUp:v,setDisableGlobalKeyboardShortcuts:c,unregisterOnKeyDown:g,unregisterOnKeyUp:m}}(n,r),w=C.disableGlobalKeyboardShortcuts,x=C.registerOnKeyDown,E=C.registerOnKeyUp,R=C.setDisableGlobalKeyboardShortcuts,_=C.unregisterOnKeyDown,I=C.unregisterOnKeyUp,H=(0,u.useMemo)((function(){return{disableGlobalKeyboardShortcuts:w,registerOnKeyDown:x,registerOnKeyUp:E,setDisableGlobalKeyboardShortcuts:R,unregisterOnKeyDown:_,unregisterOnKeyUp:I}}),[w,x,E,R,_,I]),F=s.Z.get(D.Dy,D.dU),V="undefined"===typeof F||null===F||!(0,D.YB)(),N=k.ZP.project_settings.list({},{},{pauseFetch:!V}).data,z=(0,u.useMemo)((function(){var e,t;return null===N||void 0===N||null===(e=N.project_settings)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.require_user_authentication}),[N]);return(0,u.useEffect)((function(){V&&"undefined"!==typeof z&&null!==z&&s.Z.set(D.Dy,z,D.dU)}),[V,z]),(0,O.jsx)(y.Z.Provider,{value:H,children:(0,O.jsxs)(g.ThemeProvider,{theme:Object.assign(oe.rS,(null===p||void 0===p?void 0:p.currentTheme)||a),children:[(0,O.jsx)(v.GridThemeProvider,{gridTheme:oe.k,children:(0,O.jsx)(B.DY,{children:(0,O.jsxs)(ne,{children:[(0,O.jsx)(m.Z,{defaultTitle:f,title:b,children:(0,O.jsx)("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0",name:"viewport"})}),(0,O.jsx)(h,{color:Z.hM,ref:t}),(0,O.jsx)(i,ae({},c))]})})}),(0,O.jsx)(S,{})]})})}ue.getInitialProps=function(){var e=(0,r.Z)(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.default.getInitialProps(t);case 2:return n=e.sent,r=t.ctx,e.abrupt("return",ae(ae({},n),{},{currentTheme:(0,re.gz)(r)}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var ce=ue},91427:function(e,t,n){"use strict";n.d(t,{J3:function(){return c},L8:function(){return a},Od:function(){return p},Q9:function(){return s},U2:function(){return d},Uu:function(){return u},kP:function(){return l},t8:function(){return f},zg:function(){return i}});var r=n(66757),o=n.n(r);var i="pipeline_editor_after_hidden",a="pipeline_editor_after_width",u="pipeline_editor_before_hidden",c="pipeline_editor_before_width",s="pipeline_execution_hidden",l="data_output_block_uuids";function f(e,t){return o().set(e,t),t}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=o().get(e);return"undefined"!==typeof n&&null!==n?n:(f(e,t),t)}function p(e){var t=d(e);return o().remove(e),t}},36283:function(e,t,n){"use strict";n.d(t,{Z3:function(){return u},k:function(){return c},rS:function(){return s}});var r=n(448),o=n.n(r),i=n(49125),a=1200;function u(e){if(null!==e)return e>a?"xl":e>992?"lg":e>768?"md":e>600?"sm":"xs"}var c={container:{maxWidth:{sm:600-2*i.iI,md:768-2*i.iI,lg:992-2*i.iI,xl:a-2*i.iI},padding:3*i.iI},row:{padding:0},col:{padding:0}},s={breakpoints:{sm:"".concat(600,"px"),md:"".concat(768,"px"),lg:"".concat(992,"px"),xl:"".concat(a,"px")},space:o()(200).map((function(e){return 8*e}))}},86954:function(e,t,n){"use strict";n.d(t,{$m:function(){return c},FT:function(){return a},Ll:function(){return u},go:function(){return o},iT:function(){return i},vZ:function(){return r}});var r={domain:window.location.hostname,path:"/"},o="initial_as_path",i="initial_pathname",a="notification_template",u="notification_uuid",c="ref"},7715:function(e,t,n){"use strict";n.d(t,{GL:function(){return f},Qr:function(){return s},Xy:function(){return l},dw:function(){return u},gR:function(){return c},t2:function(){return d}});var r=n(82394),o=n(75582);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null;if(t){var n=a()(t);e=n[h]}else e=o.Z.get(h,v);return!!e&&("0"!==String(e)&&"false"!==String(e).toLowerCase())},m="current_group_id",y="current_group",b="current_user";function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(e){var t=a()(e),n=t.current_group_id;return{id:n}}var r=c().get(y),i=o.Z.get(m,l.Hu);if(r&&i)return r}function w(){c().remove(b)}function x(){return c().get(b)}function O(e){c().set(b,e)}function E(){return(x()||{}).roles===s.No.VIEWER}},24141:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(82684);function o(){var e=(0,r.useState)({height:void 0,width:void 0,widthWithoutScrollbar:void 0}),t=e[0],n=e[1];return(0,r.useEffect)((function(){function e(){n({height:window.innerHeight,width:window.innerWidth,widthWithoutScrollbar:document.body.clientWidth})}return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]),t}},59e3:function(e,t,n){"use strict";n.d(t,{iV:function(){return a},nL:function(){return c},uM:function(){return u}});var r=n(75582),o=n(34376),i=n.n(o);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t={},n=e;if(e||(n=window.location.search),n){var o=new URLSearchParams(n.split("?").slice(1).join(""));Array.from(o.keys()).forEach((function(e){var n=e.match(/\[\]/),i=o.getAll(e);if(1!==i.length||n)t[e]=i;else{var a=(0,r.Z)(i,1);t[e]=a[0]}}))}return t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(e).reduce((function(e,t){var n=(0,r.Z)(t,2),o=n[0],i=n[1];if(Array.isArray(i)){var a=o;return a.match(/\[\]/)||(a="".concat(a,"[]")),e.concat(i.map((function(e){return"".concat(a,"=").concat(encodeURIComponent(e))})))}return e.concat("".concat(o,"=").concat(encodeURIComponent(i)))}),[]).join("&")}var c=function(e,t){t?"function"===typeof(null===t||void 0===t?void 0:t.writeHead)&&(t.writeHead(302,{Location:e}),t.end()):i().push(e)}},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(91963)}])},97937:function(){},91230:function(){},65260:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},39421:function(e,t){"use strict";function n(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:function(){return r}})},75582:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(18907);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},26653:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return r}})},21831:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(14204);var o=n(18907);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},18907:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(14204);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],(function(){return t(6840),t(8641)}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-11d6cbf2313f0689.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-11d6cbf2313f0689.js new file mode 100644 index 000000000000..2f50963de006 --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-11d6cbf2313f0689.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(n,e,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,n.exports=function(){function n(n,e,t,o,i,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},47329:function(n,e,t){n.exports=t(59739)()},56669:function(n){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7432:function(n,e,t){var r={"./Active4D.json":[266,266],"./All Hallows Eve.json":[4450,4450],"./Amy.json":[88849,8849],"./Birds of Paradise.json":[78097,8097],"./Blackboard.json":[88018,6115],"./Brilliance Black.json":[73835,3835],"./Brilliance Dull.json":[6507,6507],"./Chrome DevTools.json":[22508,2508],"./Clouds Midnight.json":[49566,9566],"./Clouds.json":[57951,7951],"./Cobalt.json":[80826,826],"./Cobalt2.json":[98256,8256],"./Dawn.json":[76958,6958],"./Dominion Day.json":[89307,9307],"./Dracula.json":[33453,3453],"./Dreamweaver.json":[19363,9363],"./Eiffel.json":[82481,2481],"./Espresso Libre.json":[44776,4776],"./GitHub Dark.json":[792,792],"./GitHub Light.json":[61450,1450],"./GitHub.json":[10739,739],"./IDLE.json":[67947,7947],"./Katzenmilch.json":[81240,1240],"./Kuroir Theme.json":[4388,4388],"./LAZY.json":[25164,5164],"./MagicWB (Amiga).json":[76443,6443],"./Merbivore Soft.json":[99361,9361],"./Merbivore.json":[86042,6042],"./Monokai Bright.json":[14883,4883],"./Monokai.json":[34454,4454],"./Night Owl.json":[60261,261],"./Nord.json":[59785,9785],"./Oceanic Next.json":[58920,8920],"./Pastels on Dark.json":[38901,8901],"./Slush and Poppies.json":[26434,6434],"./Solarized-dark.json":[36116,6116],"./Solarized-light.json":[5008,5008],"./SpaceCadet.json":[20440,440],"./Sunburst.json":[68018,8018],"./Textmate (Mac Classic).json":[15824,5824],"./Tomorrow-Night-Blue.json":[81150,1150],"./Tomorrow-Night-Bright.json":[8762,8762],"./Tomorrow-Night-Eighties.json":[82545,2545],"./Tomorrow-Night.json":[99855,9855],"./Tomorrow.json":[34092,4092],"./Twilight.json":[93898,3898],"./Upstream Sunburst.json":[98807,8807],"./Vibrant Ink.json":[89927,9927],"./Xcode_default.json":[64042,4042],"./Zenburnesque.json":[33467,3467],"./iPlastic.json":[88277,8277],"./idleFingers.json":[5104,5104],"./krTheme.json":[9633,9633],"./monoindustrial.json":[15729,5729],"./themelist.json":[79437,9437]};function o(n){if(!t.o(r,n))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[n],o=e[0];return t.e(e[1]).then((function(){return t.t(o,19)}))}o.keys=function(){return Object.keys(r)},o.id=7432,n.exports=o},5677:function(n,e,t){"use strict";t.d(e,{M4:function(){return d},S0:function(){return l},S_:function(){return u},Yn:function(){return f},rW:function(){return s}});var r=t(82394),o=t(21831),i=t(75582);function c(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e=1&&en.push.apply(en,[{label:function(){var n;return null===(n=nn[0])||void 0===n?void 0:n.name},linkProps:{href:"/"}},{bold:!0,label:function(){return A}}]),(0,i.useEffect)((function(){null===z||void 0===z||!z.current||U||q||null===J||void 0===J||J(z.current.getBoundingClientRect().width)}),[U,L,q,Y,z,J,I]),(0,i.useEffect)((function(){U||(0,j.t8)(M,L)}),[r,U,L,M]),(0,i.useEffect)((function(){q||(0,j.t8)(H,Y)}),[q,Y,H]);var tn=(0,v.Z)(p);return(0,i.useEffect)((function(){O&&tn!==p&&F(p)}),[O,p,tn]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Z,{title:A}),(0,f.jsx)(s.Z,{breadcrumbs:en,menuItems:_,project:null===nn||void 0===nn?void 0:nn[0],version:null===nn||void 0===nn||null===(e=nn[0])||void 0===e?void 0:e.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===T||void 0===T?void 0:T.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(g.Z,{navigationItems:T})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:y.Mz,afterHidden:r,afterMousedownActive:U,afterWidth:L,before:S,beforeHeightOffset:y.Mz,beforeMousedownActive:q,beforeWidth:d.k1+(S?Y:0),hideAfterCompletely:!0,leftOffset:S?d.k1:null,mainContainerRef:z,setAfterMousedownActive:X,setAfterWidth:F,setBeforeMousedownActive:Q,setBeforeWidth:G,children:[D&&(0,f.jsx)(h,{children:D}),P]})})]}),E&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===N||void 0===N?void 0:N(null)},children:(0,f.jsx)(a.Z,k(k({},E),{},{onClose:function(){return null===N||void 0===N?void 0:N(null)}}))})]})}},85307:function(n,e,t){"use strict";t.d(e,{$W:function(){return l},cl:function(){return s},cv:function(){return d},dE:function(){return u}});var r=t(9518),o=t(23831),i=t(73942),c=t(49125),a=t(37391),u=r.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],i.n_,c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).popup,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-1"})(["padding-top:","px;",""],c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-2"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(n){return n.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,";\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-3"})(["padding:","px;"," "," ",""],2*c.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).interactive.defaultBackground,";\n border-bottom: ").concat(i.YF,"px ").concat(i.M8," ").concat((n.theme||o.Z).borders.medium,";\n ")}),(function(n){return n.padding&&"\n padding: ".concat(n.padding,"px;\n ")}),(function(n){return n.rounded&&"\n border-top-left-radius: ".concat(i.n_,"px;\n border-top-right-radius: ").concat(i.n_,"px;\n ")}))},65597:function(n,e,t){"use strict";t.d(e,{f:function(){return a}});var r=t(9518),o=t(23831),i=t(49125),c=t(73942),a=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*i.iI,c.TR,2*i.iI,(function(n){return"\n box-shadow: ".concat((n.theme.shadow||o.Z.shadow).popup,";\n background-color: ").concat((n.theme.interactive||o.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.leftOffset&&"\n left: ".concat(n.leftOffset,"px;\n ")}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}))},45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return l},cE:function(){return f},cl:function(){return a},kA:function(){return u}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),a=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),u=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),l=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),a=t(67971),u=t(10919),l=t(86673),s=t(19711),d=t(46261),f=t(45838),p=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e=1&&!k&&(0,p.jsx)(f.Vq,{noHover:!0,children:y.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:h,compact:w,last:e===y.length-1,noBorder:O,sticky:_,children:(0,p.jsxs)(a.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(l.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(T,"-col-").concat(n.uuid,"-").concat(e))}))}),R]})}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return f},DA:function(){return d},HX:function(){return m},J8:function(){return h},Lq:function(){return l},Qj:function(){return g},Ut:function(){return w},V4:function(){return y},VZ:function(){return p},dO:function(){return s},f2:function(){return v},iZ:function(){return b},t6:function(){return c},tf:function(){return u}});var r,o,i,c,a=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var u,l,s=(r={},(0,a.Z)(r,c.PYTHON,"PY"),(0,a.Z)(r,c.R,"R"),(0,a.Z)(r,c.SQL,"SQL"),(0,a.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(u||(u={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(l||(l={}));var d,f=[u.CHART,u.CUSTOM,u.DATA_EXPORTER,u.DATA_LOADER,u.SCRATCHPAD,u.SENSOR,u.TRANSFORMER],p=[u.DATA_EXPORTER,u.DATA_LOADER],h=[u.DATA_EXPORTER,u.DATA_LOADER,u.TRANSFORMER],m=[u.DATA_EXPORTER,u.DATA_LOADER,u.DBT,u.TRANSFORMER],g=[u.CHART,u.SCRATCHPAD,u.SENSOR],b=[u.EXTENSION,u.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(d||(d={}));var v=[u.CUSTOM,u.DATA_EXPORTER,u.TRANSFORMER],y=(o={},(0,a.Z)(o,u.CUSTOM,"Custom"),(0,a.Z)(o,u.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,u.DATA_LOADER,"Data loader"),(0,a.Z)(o,u.EXTENSION,"Extension"),(0,a.Z)(o,u.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,u.SENSOR,"Sensor"),(0,a.Z)(o,u.TRANSFORMER,"Transformer"),o),w=[u.DATA_LOADER,u.TRANSFORMER,u.DATA_EXPORTER];i={},(0,a.Z)(i,u.DATA_EXPORTER,"DE"),(0,a.Z)(i,u.DATA_LOADER,"DL"),(0,a.Z)(i,u.SCRATCHPAD,"SP"),(0,a.Z)(i,u.SENSOR,"SR"),(0,a.Z)(i,u.TRANSFORMER,"TF")},87372:function(n,e,t){"use strict";var r,o,i,c,a,u,l,s,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),g=t(23831),b=t(2005),v=t(31012),y=t(19711),w=t(49125),j=t(86673),x=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function k(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function S(n){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,i=void 0===r||r,c=t.absoluteValue,a=void 0!==c&&c,u="string"===typeof e||"number"===typeof e?function(n){return a?Math.abs((0,o.t2)(n,e)):(0,o.t2)(n,e)}:function(n){return a?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var t=0;return u(n)>u(e)?t=i?1:-1:u(n)1&&void 0!==arguments[1]?arguments[1]:{},t=e.ascending,r=void 0===t||t;return n.sort((function(n,e){var t=0;return n[0]>e[0]?t=r?1:-1:n[0]>1);e(n[o])?t=o:r=o}return r}function p(n,e){var t=n.findIndex(e);return h(n,t)}function h(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function m(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function g(n,e){return n>e}function b(n,e){return n1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==e&&(t=t.map((function(n){return n+e}))),t}function w(n){return n.reduce((function(n,e){return n+e}),0)}function j(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-t,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function x(n){return n[Math.floor(Math.random()*n.length)]}},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return l},kC:function(){return s},vg:function(){return b},T3:function(){return w},Mp:function(){return d},Pb:function(){return a},HW:function(){return y},wX:function(){return f},x6:function(){return p},_6:function(){return h},zf:function(){return v},Y6:function(){return x},wE:function(){return O},J3:function(){return m},We:function(){return u},QV:function(){return j},C5:function(){return g}});var r=t(75582),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],i=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function a(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function u(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function l(n){return n.split(" ").join("_")}function s(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function f(n){return n.charAt(0).toLowerCase()+n.slice(1)}function p(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),o=t[0],i=t[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function h(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e,i=void 0!==o&&null!==o;if(i||(o=2),1===o)t=n;else{var c=n.length,a=n[c-1];t="y"===a&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===a?"es":"s")}if(i){var u=r?p(o):o;return"".concat(u," ").concat(t)}return t}function m(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function g(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function b(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(m(n.toLowerCase()))}function v(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(o,i){if(!e){var c=(0,r.Z)(o,2),a=c[0],u=c[1],l=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function j(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function x(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(i))}function O(n){var e=n.split("/"),t=e[e.length-1].split(".")[0];return e.slice(0,e.length-1).concat(t).join("/")}},13157:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(48438)}])}},function(n){n.O(0,[3850,2083,8789,2344,9386,9774,2888,179],(function(){return e=13157,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-4e975beadae782ce.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-4e975beadae782ce.js deleted file mode 100644 index 1016f7eef0a5..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-4e975beadae782ce.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(n,e,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,n.exports=function(){function n(n,e,t,o,i,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},47329:function(n,e,t){n.exports=t(59739)()},56669:function(n){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7432:function(n,e,t){var r={"./Active4D.json":[266,266],"./All Hallows Eve.json":[4450,4450],"./Amy.json":[88849,8849],"./Birds of Paradise.json":[78097,8097],"./Blackboard.json":[88018,6115],"./Brilliance Black.json":[73835,3835],"./Brilliance Dull.json":[6507,6507],"./Chrome DevTools.json":[22508,2508],"./Clouds Midnight.json":[49566,9566],"./Clouds.json":[57951,7951],"./Cobalt.json":[80826,826],"./Cobalt2.json":[98256,8256],"./Dawn.json":[76958,6958],"./Dominion Day.json":[89307,9307],"./Dracula.json":[33453,3453],"./Dreamweaver.json":[19363,9363],"./Eiffel.json":[82481,2481],"./Espresso Libre.json":[44776,4776],"./GitHub Dark.json":[792,792],"./GitHub Light.json":[61450,1450],"./GitHub.json":[10739,739],"./IDLE.json":[67947,7947],"./Katzenmilch.json":[81240,1240],"./Kuroir Theme.json":[4388,4388],"./LAZY.json":[25164,5164],"./MagicWB (Amiga).json":[76443,6443],"./Merbivore Soft.json":[99361,9361],"./Merbivore.json":[86042,6042],"./Monokai Bright.json":[14883,4883],"./Monokai.json":[34454,4454],"./Night Owl.json":[60261,261],"./Nord.json":[59785,9785],"./Oceanic Next.json":[58920,8920],"./Pastels on Dark.json":[38901,8901],"./Slush and Poppies.json":[26434,6434],"./Solarized-dark.json":[36116,6116],"./Solarized-light.json":[5008,5008],"./SpaceCadet.json":[20440,440],"./Sunburst.json":[68018,8018],"./Textmate (Mac Classic).json":[15824,5824],"./Tomorrow-Night-Blue.json":[81150,1150],"./Tomorrow-Night-Bright.json":[8762,8762],"./Tomorrow-Night-Eighties.json":[82545,2545],"./Tomorrow-Night.json":[99855,9855],"./Tomorrow.json":[34092,4092],"./Twilight.json":[93898,3898],"./Upstream Sunburst.json":[98807,8807],"./Vibrant Ink.json":[89927,9927],"./Xcode_default.json":[64042,4042],"./Zenburnesque.json":[33467,3467],"./iPlastic.json":[88277,8277],"./idleFingers.json":[5104,5104],"./krTheme.json":[9633,9633],"./monoindustrial.json":[15729,5729],"./themelist.json":[79437,9437]};function o(n){if(!t.o(r,n))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[n],o=e[0];return t.e(e[1]).then((function(){return t.t(o,19)}))}o.keys=function(){return Object.keys(r)},o.id=7432,n.exports=o},5677:function(n,e,t){"use strict";t.d(e,{M4:function(){return d},S0:function(){return l},S_:function(){return u},Yn:function(){return f},rW:function(){return s}});var r=t(82394),o=t(21831),i=t(75582);function c(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e=1&&en.push.apply(en,[{label:function(){var n;return null===(n=nn[0])||void 0===n?void 0:n.name},linkProps:{href:"/"}},{bold:!0,label:function(){return R}}]),(0,i.useEffect)((function(){null===z||void 0===z||!z.current||U||K||null===J||void 0===J||J(z.current.getBoundingClientRect().width)}),[U,L,K,Y,z,J,I]),(0,i.useEffect)((function(){U||(0,j.t8)(M,L)}),[r,U,L,M]),(0,i.useEffect)((function(){K||(0,j.t8)(H,Y)}),[K,Y,H]);var tn=(0,v.Z)(p);return(0,i.useEffect)((function(){O&&tn!==p&&F(p)}),[O,p,tn]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Z,{title:R}),(0,f.jsx)(s.Z,{breadcrumbs:en,menuItems:_,project:null===nn||void 0===nn?void 0:nn[0],version:null===nn||void 0===nn||null===(e=nn[0])||void 0===e?void 0:e.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===T||void 0===T?void 0:T.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(g.Z,{navigationItems:T})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:y.Mz,afterHidden:r,afterMousedownActive:U,afterWidth:L,before:S,beforeHeightOffset:y.Mz,beforeMousedownActive:K,beforeWidth:d.k1+(S?Y:0),hideAfterCompletely:!0,leftOffset:S?d.k1:null,mainContainerRef:z,setAfterMousedownActive:V,setAfterWidth:F,setBeforeMousedownActive:Q,setBeforeWidth:q,children:[A&&(0,f.jsx)(h,{children:A}),P]})})]}),E&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(a.Z,k(k({},E),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},85307:function(n,e,t){"use strict";t.d(e,{$W:function(){return l},cl:function(){return s},cv:function(){return d},dE:function(){return u}});var r=t(9518),o=t(23831),i=t(73942),c=t(49125),a=t(37391),u=r.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],i.n_,c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).popup,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-1"})(["padding-top:","px;",""],c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-2"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(n){return n.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,";\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-3"})(["padding:","px;"," "," ",""],2*c.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).interactive.defaultBackground,";\n border-bottom: ").concat(i.YF,"px ").concat(i.M8," ").concat((n.theme||o.Z).borders.medium,";\n ")}),(function(n){return n.padding&&"\n padding: ".concat(n.padding,"px;\n ")}),(function(n){return n.rounded&&"\n border-top-left-radius: ".concat(i.n_,"px;\n border-top-right-radius: ").concat(i.n_,"px;\n ")}))},65597:function(n,e,t){"use strict";t.d(e,{f:function(){return a}});var r=t(9518),o=t(23831),i=t(49125),c=t(73942),a=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*i.iI,c.TR,2*i.iI,(function(n){return"\n box-shadow: ".concat((n.theme.shadow||o.Z.shadow).popup,";\n background-color: ").concat((n.theme.interactive||o.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.leftOffset&&"\n left: ".concat(n.leftOffset,"px;\n ")}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}))},45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return l},cE:function(){return f},cl:function(){return a},kA:function(){return u}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),a=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),u=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),l=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),a=t(67971),u=t(10919),l=t(86673),s=t(19711),d=t(46261),f=t(45838),p=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e=1&&!k&&(0,p.jsx)(f.Vq,{noHover:!0,children:y.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:h,compact:w,last:e===y.length-1,noBorder:O,sticky:E,children:(0,p.jsxs)(a.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(l.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(_,"-col-").concat(n.uuid,"-").concat(e))}))}),R]})}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return f},DA:function(){return d},HX:function(){return m},J8:function(){return h},Lq:function(){return l},Qj:function(){return g},Ut:function(){return w},V4:function(){return y},VZ:function(){return p},dO:function(){return s},f2:function(){return v},iZ:function(){return b},t6:function(){return c},tf:function(){return u}});var r,o,i,c,a=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var u,l,s=(r={},(0,a.Z)(r,c.PYTHON,"PY"),(0,a.Z)(r,c.R,"R"),(0,a.Z)(r,c.SQL,"SQL"),(0,a.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(u||(u={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(l||(l={}));var d,f=[u.CHART,u.CUSTOM,u.DATA_EXPORTER,u.DATA_LOADER,u.SCRATCHPAD,u.SENSOR,u.TRANSFORMER],p=[u.DATA_EXPORTER,u.DATA_LOADER],h=[u.DATA_EXPORTER,u.DATA_LOADER,u.TRANSFORMER],m=[u.DATA_EXPORTER,u.DATA_LOADER,u.DBT,u.TRANSFORMER],g=[u.CHART,u.SCRATCHPAD,u.SENSOR],b=[u.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(d||(d={}));var v=[u.CUSTOM,u.DATA_EXPORTER,u.TRANSFORMER],y=(o={},(0,a.Z)(o,u.CUSTOM,"Custom"),(0,a.Z)(o,u.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,u.DATA_LOADER,"Data loader"),(0,a.Z)(o,u.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,u.SENSOR,"Sensor"),(0,a.Z)(o,u.TRANSFORMER,"Transformer"),o),w=[u.DATA_LOADER,u.TRANSFORMER,u.DATA_EXPORTER];i={},(0,a.Z)(i,u.DATA_EXPORTER,"DE"),(0,a.Z)(i,u.DATA_LOADER,"DL"),(0,a.Z)(i,u.SCRATCHPAD,"SP"),(0,a.Z)(i,u.SENSOR,"SR"),(0,a.Z)(i,u.TRANSFORMER,"TF")},87372:function(n,e,t){"use strict";var r,o,i,c,a,u,l,s,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),g=t(23831),b=t(2005),v=t(31012),y=t(19711),w=t(49125),j=t(86673),x=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function k(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function S(n){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,i=void 0===r||r,c=t.absoluteValue,a=void 0!==c&&c,u="string"===typeof e||"number"===typeof e?function(n){return a?Math.abs((0,o.t2)(n,e)):(0,o.t2)(n,e)}:function(n){return a?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var t=0;return u(n)>u(e)?t=i?1:-1:u(n)1&&void 0!==arguments[1]?arguments[1]:{},t=e.ascending,r=void 0===t||t;return n.sort((function(n,e){var t=0;return n[0]>e[0]?t=r?1:-1:n[0]>1);e(n[o])?t=o:r=o}return r}function p(n,e){var t=n.findIndex(e);return h(n,t)}function h(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function m(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function g(n,e){return n>e}function b(n,e){return n1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==e&&(t=t.map((function(n){return n+e}))),t}function w(n){return n.reduce((function(n,e){return n+e}),0)}function j(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-t,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function x(n){return n[Math.floor(Math.random()*n.length)]}},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return l},kC:function(){return s},vg:function(){return b},T3:function(){return w},Mp:function(){return d},Pb:function(){return a},HW:function(){return y},wX:function(){return f},x6:function(){return p},_6:function(){return h},zf:function(){return v},Y6:function(){return x},wE:function(){return O},J3:function(){return m},We:function(){return u},QV:function(){return j},C5:function(){return g}});var r=t(75582),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],i=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function a(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function u(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function l(n){return n.split(" ").join("_")}function s(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function f(n){return n.charAt(0).toLowerCase()+n.slice(1)}function p(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),o=t[0],i=t[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function h(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e,i=void 0!==o&&null!==o;if(i||(o=2),1===o)t=n;else{var c=n.length,a=n[c-1];t="y"===a&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===a?"es":"s")}if(i){var u=r?p(o):o;return"".concat(u," ").concat(t)}return t}function m(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function g(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function b(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(m(n.toLowerCase()))}function v(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(o,i){if(!e){var c=(0,r.Z)(o,2),a=c[0],u=c[1],l=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function j(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function x(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(i))}function O(n){var e=n.split("/"),t=e[e.length-1].split(".")[0];return e.slice(0,e.length-1).concat(t).join("/")}},13157:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(48438)}])}},function(n){n.O(0,[3850,2083,8789,9767,9386,9898,9774,2888,179],(function(){return e=13157,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-ab975f49d853e244.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-ab975f49d853e244.js deleted file mode 100644 index 5c7fe41c8ce9..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-ab975f49d853e244.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1009],{1210:function(n,e,t){"use strict";t.d(e,{Z:function(){return Z}});var r=t(82394),o=t(21831),i=t(82684),c=t(47999),u=t(49894),l=t(93461),a=t(57384),s=t(19767),d=t(72454),f=t(28598);function p(n,e){var t=n.children;return(0,f.jsx)(d.HS,{ref:e,children:t})}var h=i.forwardRef(p),v=t(32063),b=t(15270),g=t(82531),m=t(66166),y=t(3055),w=t(49125),O=t(91427),j=t(24141);function x(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function P(n){for(var e=1;e=1&&en.push.apply(en,[{label:function(){var n;return null===(n=nn[0])||void 0===n?void 0:n.name},linkProps:{href:"/"}},{bold:!0,label:function(){return H}}]),(0,i.useEffect)((function(){null===T||void 0===T||!T.current||L||K||null===J||void 0===J||J(T.current.getBoundingClientRect().width)}),[L,W,K,Q,T,J,A]),(0,i.useEffect)((function(){L||(0,O.t8)(N,W)}),[r,L,W,N]),(0,i.useEffect)((function(){K||(0,O.t8)(R,Q)}),[K,Q,R]);var tn=(0,m.Z)(p);return(0,i.useEffect)((function(){x&&tn!==p&&z(p)}),[x,p,tn]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:H}),(0,f.jsx)(s.Z,{breadcrumbs:en,menuItems:E,project:null===nn||void 0===nn?void 0:nn[0],version:null===nn||void 0===nn||null===(e=nn[0])||void 0===e?void 0:e.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===I||void 0===I?void 0:I.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(b.Z,{navigationItems:I})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:t,afterHeightOffset:y.Mz,afterHidden:r,afterMousedownActive:L,afterWidth:W,before:Z,beforeHeightOffset:y.Mz,beforeMousedownActive:K,beforeWidth:d.k1+(Z?Q:0),hideAfterCompletely:!0,leftOffset:Z?d.k1:null,mainContainerRef:T,setAfterMousedownActive:U,setAfterWidth:z,setBeforeMousedownActive:Y,setBeforeWidth:G,children:[D&&(0,f.jsx)(h,{children:D}),_]})})]}),S&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===M||void 0===M?void 0:M(null)},children:(0,f.jsx)(u.Z,P(P({},S),{},{onClose:function(){return null===M||void 0===M?void 0:M(null)}}))})]})}},45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return a},cE:function(){return f},cl:function(){return u},kA:function(){return l}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),u=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),l=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),u=t(67971),l=t(10919),a=t(86673),s=t(19711),d=t(46261),f=t(45838),p=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function v(n){for(var e=1;e=1&&!P&&(0,p.jsx)(f.Vq,{noHover:!0,children:y.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:h,compact:w,last:e===y.length-1,noBorder:x,sticky:S,children:(0,p.jsxs)(u.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(E,"-col-").concat(n.uuid,"-").concat(e))}))}),H]})}},66050:function(n,e,t){"use strict";var r;t.d(e,{V:function(){return r}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(r||(r={}))},92597:function(n,e,t){"use strict";t.r(e);var r=t(77837),o=t(82394),i=t(38860),c=t.n(i),u=t(82684),l=t(34376),a=t(1210),s=t(67971),d=t(51099),f=t(97496),p=t(41788),h=t(55378),v=t(86673),b=t(19711),g=t(82531),m=t(47409),y=t(66050),w=t(49125),O=t(33766),j=t(59e3),x=t(28598);function P(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Z(n){for(var e=1;e=0?r:0});n.push("/pipeline-runs","/pipeline-runs?".concat((0,j.uM)(o)))},page:Number(t),totalPages:Math.ceil(P/d.Q)})})]})}k.getInitialProps=(0,r.Z)(c().mark((function n(){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,p.Z)(k)},24224:function(n,e,t){"use strict";t.d(e,{HK:function(){return a},Hk:function(){return u},IN:function(){return O},Od:function(){return p},Qj:function(){return g},Sm:function(){return w},YC:function(){return s},fS:function(){return v},m5:function(){return y},mp:function(){return j},mr:function(){return d},oM:function(){return h},ry:function(){return f},sE:function(){return l},tS:function(){return b},w6:function(){return m}});var r=t(82394),o=t(7715);function i(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function c(n){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,i=void 0===r||r,c=t.absoluteValue,u=void 0!==c&&c,l="string"===typeof e||"number"===typeof e?function(n){return u?Math.abs((0,o.t2)(n,e)):(0,o.t2)(n,e)}:function(n){return u?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var t=0;return l(n)>l(e)?t=i?1:-1:l(n)1&&void 0!==arguments[1]?arguments[1]:{},t=e.ascending,r=void 0===t||t;return n.sort((function(n,e){var t=0;return n[0]>e[0]?t=r?1:-1:n[0]>1);e(n[o])?t=o:r=o}return r}function p(n,e){var t=n.findIndex(e);return h(n,t)}function h(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function v(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function b(n,e){return n>e}function g(n,e){return n1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==e&&(t=t.map((function(n){return n+e}))),t}function w(n){return n.reduce((function(n,e){return n+e}),0)}function O(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-t,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function j(n){return n[Math.floor(Math.random()*n.length)]}},60710:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipeline-runs",function(){return t(92597)}])}},function(n){n.O(0,[3850,2083,9767,9386,9898,4846,9774,2888,179],(function(){return e=60710,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-c226d1e215d66129.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-c226d1e215d66129.js new file mode 100644 index 000000000000..22f1b63f106d --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-c226d1e215d66129.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1009],{1210:function(n,e,t){"use strict";t.d(e,{Z:function(){return Z}});var r=t(82394),o=t(21831),i=t(82684),c=t(47999),u=t(28358),l=t(93461),a=t(57384),s=t(12344),d=t(72454),f=t(28598);function p(n,e){var t=n.children;return(0,f.jsx)(d.HS,{ref:e,children:t})}var h=i.forwardRef(p),v=t(32063),b=t(15270),g=t(82531),m=t(66166),y=t(3055),w=t(49125),j=t(91427),O=t(24141);function x(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function P(n){for(var e=1;e=1&&en.push.apply(en,[{label:function(){var n;return null===(n=nn[0])||void 0===n?void 0:n.name},linkProps:{href:"/"}},{bold:!0,label:function(){return H}}]),(0,i.useEffect)((function(){null===T||void 0===T||!T.current||L||K||null===J||void 0===J||J(T.current.getBoundingClientRect().width)}),[L,W,K,Q,T,J,A]),(0,i.useEffect)((function(){L||(0,j.t8)(N,W)}),[r,L,W,N]),(0,i.useEffect)((function(){K||(0,j.t8)(R,Q)}),[K,Q,R]);var tn=(0,m.Z)(p);return(0,i.useEffect)((function(){x&&tn!==p&&z(p)}),[x,p,tn]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:H}),(0,f.jsx)(s.Z,{breadcrumbs:en,menuItems:E,project:null===nn||void 0===nn?void 0:nn[0],version:null===nn||void 0===nn||null===(e=nn[0])||void 0===e?void 0:e.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===I||void 0===I?void 0:I.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(b.Z,{navigationItems:I})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:t,afterHeightOffset:y.Mz,afterHidden:r,afterMousedownActive:L,afterWidth:W,before:Z,beforeHeightOffset:y.Mz,beforeMousedownActive:K,beforeWidth:d.k1+(Z?Q:0),hideAfterCompletely:!0,leftOffset:Z?d.k1:null,mainContainerRef:T,setAfterMousedownActive:U,setAfterWidth:z,setBeforeMousedownActive:Y,setBeforeWidth:G,children:[D&&(0,f.jsx)(h,{children:D}),_]})})]}),S&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===M||void 0===M?void 0:M(null)},children:(0,f.jsx)(u.Z,P(P({},S),{},{onClose:function(){return null===M||void 0===M?void 0:M(null)}}))})]})}},45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return a},cE:function(){return f},cl:function(){return u},kA:function(){return l}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),u=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),l=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),u=t(67971),l=t(10919),a=t(86673),s=t(19711),d=t(46261),f=t(45838),p=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function v(n){for(var e=1;e=1&&!P&&(0,p.jsx)(f.Vq,{noHover:!0,children:y.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:h,compact:w,last:e===y.length-1,noBorder:x,sticky:E,children:(0,p.jsxs)(u.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(I,"-col-").concat(n.uuid,"-").concat(e))}))}),B]})}},66050:function(n,e,t){"use strict";var r;t.d(e,{V:function(){return r}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(r||(r={}))},92597:function(n,e,t){"use strict";t.r(e);var r=t(77837),o=t(82394),i=t(38860),c=t.n(i),u=t(82684),l=t(34376),a=t(1210),s=t(67971),d=t(51099),f=t(97496),p=t(41788),h=t(55378),v=t(86673),b=t(19711),g=t(82531),m=t(47409),y=t(66050),w=t(49125),j=t(33766),O=t(59e3),x=t(28598);function P(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Z(n){for(var e=1;e=0?r:0});n.push("/pipeline-runs","/pipeline-runs?".concat((0,O.uM)(o)))},page:Number(t),totalPages:Math.ceil(P/d.Q)})})]})}k.getInitialProps=(0,r.Z)(c().mark((function n(){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,p.Z)(k)},24224:function(n,e,t){"use strict";t.d(e,{HK:function(){return a},Hk:function(){return u},IN:function(){return j},Od:function(){return p},Qj:function(){return g},Sm:function(){return w},YC:function(){return s},fS:function(){return v},m5:function(){return y},mp:function(){return O},mr:function(){return d},oM:function(){return h},ry:function(){return f},sE:function(){return l},tS:function(){return b},w6:function(){return m}});var r=t(82394),o=t(7715);function i(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function c(n){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,i=void 0===r||r,c=t.absoluteValue,u=void 0!==c&&c,l="string"===typeof e||"number"===typeof e?function(n){return u?Math.abs((0,o.t2)(n,e)):(0,o.t2)(n,e)}:function(n){return u?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var t=0;return l(n)>l(e)?t=i?1:-1:l(n)1&&void 0!==arguments[1]?arguments[1]:{},t=e.ascending,r=void 0===t||t;return n.sort((function(n,e){var t=0;return n[0]>e[0]?t=r?1:-1:n[0]>1);e(n[o])?t=o:r=o}return r}function p(n,e){var t=n.findIndex(e);return h(n,t)}function h(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function v(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function b(n,e){return n>e}function g(n,e){return n1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==e&&(t=t.map((function(n){return n+e}))),t}function w(n){return n.reduce((function(n,e){return n+e}),0)}function j(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-t,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function O(n){return n[Math.floor(Math.random()*n.length)]}},60710:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipeline-runs",function(){return t(92597)}])}},function(n){n.O(0,[3850,2083,2344,9386,4178,9774,2888,179],(function(){return e=60710,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-0e88f39d4980fc10.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-0e88f39d4980fc10.js new file mode 100644 index 000000000000..d01834c6e7fd --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-0e88f39d4980fc10.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{1210:function(n,e,t){"use strict";t.d(e,{Z:function(){return Z}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),u=t(28358),l=t(93461),a=t(57384),d=t(12344),s=t(72454),f=t(28598);function p(n,e){var t=n.children;return(0,f.jsx)(s.HS,{ref:e,children:t})}var h=o.forwardRef(p),b=t(32063),g=t(15270),v=t(82531),m=t(66166),y=t(3055),O=t(49125),x=t(91427),j=t(24141);function w(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function P(n){for(var e=1;e=1&&en.push.apply(en,[{label:function(){var n;return null===(n=nn[0])||void 0===n?void 0:n.name},linkProps:{href:"/"}},{bold:!0,label:function(){return D}}]),(0,o.useEffect)((function(){null===H||void 0===H||!H.current||F||K||null===J||void 0===J||J(H.current.getBoundingClientRect().width)}),[F,V,K,U,H,J,N]),(0,o.useEffect)((function(){F||(0,x.t8)(M,V)}),[r,F,V,M]),(0,o.useEffect)((function(){K||(0,x.t8)(L,U)}),[K,U,L]);var tn=(0,m.Z)(p);return(0,o.useEffect)((function(){w&&tn!==p&&W(p)}),[w,p,tn]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:D}),(0,f.jsx)(d.Z,{breadcrumbs:en,menuItems:A,project:null===nn||void 0===nn?void 0:nn[0],version:null===nn||void 0===nn||null===(e=nn[0])||void 0===e?void 0:e.version}),(0,f.jsxs)(s.Nk,{children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,f.jsx)(s.lm,{children:(0,f.jsx)(g.Z,{navigationItems:R})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:y.Mz,afterHidden:r,afterMousedownActive:F,afterWidth:V,before:Z,beforeHeightOffset:y.Mz,beforeMousedownActive:K,beforeWidth:s.k1+(Z?U:0),hideAfterCompletely:!0,leftOffset:Z?s.k1:null,mainContainerRef:H,setAfterMousedownActive:z,setAfterWidth:W,setBeforeMousedownActive:Q,setBeforeWidth:X,children:[T&&(0,f.jsx)(h,{children:T}),E]})})]}),S&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===_||void 0===_?void 0:_(null)},children:(0,f.jsx)(u.Z,P(P({},S),{},{onClose:function(){return null===_||void 0===_?void 0:_(null)}}))})]})}},45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return s},Vq:function(){return a},cE:function(){return f},cl:function(){return u},kA:function(){return l}});var r=t(9518),i=t(23831),o=t(37391),c=t(49125),u=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],o.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),l=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||i.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||i.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),d=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),s=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],d,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||i.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||i.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],d,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||i.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||i.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),i=t(12691),o=t.n(i),c=t(82684),u=t(67971),l=t(10919),a=t(86673),d=t(19711),s=t(46261),f=t(45838),p=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function b(n){for(var e=1;e=1&&!P&&(0,p.jsx)(f.Vq,{noHover:!0,children:y.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:h,compact:O,last:e===y.length-1,noBorder:w,sticky:A,children:(0,p.jsxs)(u.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,p.jsx)(d.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(s.Z,{appearBefore:!0,label:(0,p.jsx)(d.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(R,"-col-").concat(n.uuid,"-").concat(e))}))}),I]})}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return f},DA:function(){return s},HX:function(){return b},J8:function(){return h},Lq:function(){return a},Qj:function(){return g},Ut:function(){return O},V4:function(){return y},VZ:function(){return p},dO:function(){return d},f2:function(){return m},iZ:function(){return v},t6:function(){return c},tf:function(){return l}});var r,i,o,c,u=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var l,a,d=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(l||(l={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,f=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.TRANSFORMER],p=[l.DATA_EXPORTER,l.DATA_LOADER],h=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],b=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],g=[l.CHART,l.SCRATCHPAD,l.SENSOR],v=[l.EXTENSION,l.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var m=[l.CUSTOM,l.DATA_EXPORTER,l.TRANSFORMER],y=(i={},(0,u.Z)(i,l.CUSTOM,"Custom"),(0,u.Z)(i,l.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,l.DATA_LOADER,"Data loader"),(0,u.Z)(i,l.EXTENSION,"Extension"),(0,u.Z)(i,l.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,l.SENSOR,"Sensor"),(0,u.Z)(i,l.TRANSFORMER,"Transformer"),i),O=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER];o={},(0,u.Z)(o,l.DATA_EXPORTER,"DE"),(0,u.Z)(o,l.DATA_LOADER,"DL"),(0,u.Z)(o,l.SCRATCHPAD,"SP"),(0,u.Z)(o,l.SENSOR,"SR"),(0,u.Z)(o,l.TRANSFORMER,"TF")},93348:function(n,e,t){"use strict";t.d(e,{TR:function(){return s},U5:function(){return l},Xm:function(){return o},Z4:function(){return d},fq:function(){return u},kJ:function(){return a}});var r,i,o,c=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var u,l,a,d=(r={},(0,c.Z)(r,o.API,(function(){return"API"})),(0,c.Z)(r,o.EVENT,(function(){return"event"})),(0,c.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(u||(u={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(l||(l={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(a||(a={}));var s=(i={},(0,c.Z)(i,a.CREATED_AT,"Created at"),(0,c.Z)(i,a.NAME,"Name"),(0,c.Z)(i,a.PIPELINE,"Pipeline"),(0,c.Z)(i,a.STATUS,"Status"),(0,c.Z)(i,a.TYPE,"Type"),i)},98781:function(n,e,t){"use strict";t.d(e,{G7:function(){return l},QK:function(){return u},a_:function(){return a},qL:function(){return o}});var r,i,o,c=t(82394);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(o||(o={}));var u,l=(r={},(0,c.Z)(r,o.INTEGRATION,"Integration"),(0,c.Z)(r,o.PYTHON,"Standard"),(0,c.Z)(r,o.PYSPARK,"PySpark"),(0,c.Z)(r,o.STREAMING,"Streaming"),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules"}(u||(u={}));var a=(i={},(0,c.Z)(i,o.PYTHON,"python3"),(0,c.Z)(i,o.PYSPARK,"pysparkkernel"),i)},18283:function(n,e,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(9518)),c=t(23831),u=t(73942),l=t(2005),a=t(49125),d=t(31012),s=t(28598),f=["children"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e0?(0,w.jsx)(A.Z,{cyan:!0,noVerticalPadding:!0,children:(0,w.jsx)(O.ZP,{bold:!0,inverted:!0,children:Tn})}):null,beforeElement:(0,w.jsx)(G.wn,{size:2*H.iI}),onClick:function(){return N((function(n){return!n}))},uuid:"table/toolbar/filter_button",children:"Filter"}))})}),[U,I,Cn,c,Tn,a]),In=(0,s.useMemo)((function(){return(0,w.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:u,onClickCallback:X,onClickOutside:X,open:B,parentRef:Z,roundedStyle:!0,uuid:"table/toolbar/more_actions_menu",children:(0,w.jsx)(tn.Z,fn(fn({},ln),{},{label:"More actions",children:(0,w.jsx)(v.ZP,{Icon:G.mH,bold:!0,disabled:z,greyBorder:!0,onClick:function(){return V((function(n){return!n}))},smallIcon:!0,uuid:"table/toolbar/more_actions_button"})}))})}),[X,z,B,u]);return(0,w.jsxs)(g.Z,{alignItems:"center",children:[_n,(0,w.jsx)(y.Z,{mr:on}),Dn,!m&&bn&&(0,w.jsxs)(y.Z,{ml:on,children:[(0,w.jsx)(tn.Z,fn(fn({},ln),{},{label:vn,children:(0,w.jsx)(v.ZP,{Icon:!pn&&J,bold:!0,disabled:z,greyBorder:!0,loading:pn,onClick:gn?function(){return F(nn.SECONDARY)}:bn,smallIcon:!0,uuid:"table/toolbar/secondary_action_button",children:hn})})),(0,w.jsx)(R.Z,{onClickOutside:K,open:Y===nn.SECONDARY,children:(0,w.jsx)(T.Z,{onCancel:K,onClick:function(){bn(),K(),h(null)},subtitle:$,title:sn,top:58,width:cn})})]}),!m&&jn&&(0,w.jsxs)(y.Z,{ml:on,children:[(0,w.jsx)(tn.Z,fn(fn({},ln),{},{label:"Delete ".concat(xn),children:(0,w.jsx)(v.ZP,{Icon:!On&&G.rF,bold:!0,disabled:z,greyBorder:!0,loading:On,onClick:function(){return F(nn.DELETE)},smallIcon:!0,uuid:"table/toolbar/delete_button"})})),(0,w.jsx)(R.Z,{onClickOutside:K,open:Y===nn.DELETE,children:(0,w.jsx)(T.Z,{danger:!0,onCancel:K,onClick:function(){jn(p),K(),h(null)},subtitle:yn,title:"Are you sure you want to delete the ".concat(xn," ").concat(p,"?"),top:58,width:cn})})]}),!m&&(null===u||void 0===u?void 0:u.length)>0&&(0,w.jsx)(y.Z,{ml:on,children:In}),Zn&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(y.Z,{ml:on}),(0,w.jsx)(b.Z,{flex:1,children:(0,w.jsx)(j.Z,{afterIcon:kn?(0,w.jsx)(G.x8,{}):null,afterIconClick:function(){var n;Zn(""),null===k||void 0===k||null===(n=k.current)||void 0===n||n.focus()},afterIconSize:1.5*H.iI,beforeIcon:(0,w.jsx)(G.HN,{}),borderRadius:M.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:60*H.iI,onChange:function(n){return Zn(n.target.value)},paddingVertical:9,placeholder:Pn||null,ref:k,value:kn})})]})]})},hn=t(82531),bn=t(86422),gn=t(93348),vn=t(96510),mn=t(66653),yn=t(59e3),On=t(83608);function xn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function jn(n){for(var e=1;e=1||v[l]?(0,w.jsx)(p.Z,{iconOnly:!0,loading:!!v[l],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,mn.j)(n),m((function(n){return jn(jn({},n),{},(0,o.Z)({},l,!0))})),U(jn(jn({},e),{},{status:f?gn.fq.INACTIVE:gn.fq.ACTIVE}))},children:f?(0,w.jsx)(G.dz,{muted:!0,size:2*H.iI}):(0,w.jsx)(G.Py,{default:!0,size:2*H.iI})}):null,(0,w.jsx)(O.ZP,{default:!f,monospace:!0,success:!!f,children:f?gn.fq.ACTIVE:s>=1?gn.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(t)),(0,w.jsx)(a(),{as:"/pipelines/".concat(l),href:"/pipelines/[pipeline]",passHref:!0,children:(0,w.jsx)(Z.Z,{sameColorAsText:!0,children:l})},"pipeline_name_".concat(t)),(0,w.jsx)(O.ZP,{default:!0,title:i,width:90*H.iI,children:i},"pipeline_description_".concat(t)),(0,w.jsx)(O.ZP,{children:u===k.qL.PYTHON?"Standard":(0,Q.kC)(u)},"pipeline_type_".concat(t)),(0,w.jsx)(O.ZP,{default:0===d,monospace:!0,children:d},"pipeline_block_count_".concat(t)),(0,w.jsx)(O.ZP,{default:0===s,monospace:!0,children:s},"pipeline_trigger_count_".concat(t)),(0,w.jsxs)(b.Z,{flex:1,justifyContent:"flex-end",children:[(0,w.jsx)(p.Z,jn(jn({},wn),{},{onClick:function(){n.push("/pipelines/[pipeline]","/pipelines/".concat(l))},title:"Detail",children:(0,w.jsx)(G.UY,{default:!0,size:2*H.iI})})),(0,w.jsx)(y.Z,{mr:1}),(0,w.jsx)(p.Z,jn(jn({},wn),{},{onClick:function(){n.push("/pipelines/[pipeline]/logs","/pipelines/".concat(l,"/logs"))},title:"Logs",children:(0,w.jsx)(G.$B,{default:!0,size:2*H.iI})}))]},"chevron_icon_".concat(t))]}))})})}Pn.getInitialProps=(0,r.Z)(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)})));var Zn=(0,C.Z)(Pn)},24224:function(n,e,t){"use strict";t.d(e,{HK:function(){return a},Hk:function(){return u},IN:function(){return x},Od:function(){return p},Qj:function(){return v},Sm:function(){return O},YC:function(){return d},fS:function(){return b},m5:function(){return y},mp:function(){return j},mr:function(){return s},oM:function(){return h},ry:function(){return f},sE:function(){return l},tS:function(){return g},w6:function(){return m}});var r=t(82394),i=t(7715);function o(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function c(n){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,o=void 0===r||r,c=t.absoluteValue,u=void 0!==c&&c,l="string"===typeof e||"number"===typeof e?function(n){return u?Math.abs((0,i.t2)(n,e)):(0,i.t2)(n,e)}:function(n){return u?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var t=0;return l(n)>l(e)?t=o?1:-1:l(n)1&&void 0!==arguments[1]?arguments[1]:{},t=e.ascending,r=void 0===t||t;return n.sort((function(n,e){var t=0;return n[0]>e[0]?t=r?1:-1:n[0]>1);e(n[i])?t=i:r=i}return r}function p(n,e){var t=n.findIndex(e);return h(n,t)}function h(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function b(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function g(n,e){return n>e}function v(n,e){return n1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==e&&(t=t.map((function(n){return n+e}))),t}function O(n){return n.reduce((function(n,e){return n+e}),0)}function x(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-t,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function j(n){return n[Math.floor(Math.random()*n.length)]}},33766:function(n,e,t){"use strict";t.d(e,{g_:function(){return f},u7:function(){return s}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),u=t(59e3),l=t(24224);function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function d(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,u.iV)();e=window.location.pathname;var a=o?c().push:c().replace,s=d(d({},l),n);Object.entries(n).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];"undefined"!==typeof i&&null!==i||delete s[t]}));var f=(0,u.uM)(s);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return a(c().router.pathname,p,{shallow:!0})}function f(n,e,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,u=t.resetLimitParams,a=d({},n);i?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];if(Array.isArray(i)){var o="".concat(t,"[]");a[o]=i.map(String)}})):o?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1],o=String(i),c="".concat(t,"[]"),u=a[c];u&&Array.isArray(u)?(u=u.map(String)).includes(o)?a[c]=(0,l.Od)(u,(function(n){return n===o})):a[c]=u.concat(o):a[c]=[o]})):a=d(d({},a),e),u&&(a._limit=c||20,a._offset=0),s(a)}},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return a},kC:function(){return d},vg:function(){return v},T3:function(){return O},Mp:function(){return s},Pb:function(){return u},HW:function(){return y},wX:function(){return f},x6:function(){return p},_6:function(){return h},zf:function(){return m},Y6:function(){return j},wE:function(){return w},J3:function(){return b},We:function(){return l},QV:function(){return x},C5:function(){return g}});var r=t(75582),i=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],o=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function u(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function l(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function a(n){return n.split(" ").join("_")}function d(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function s(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function f(n){return n.charAt(0).toLowerCase()+n.slice(1)}function p(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),i=t[0],o=t[1],c=i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(c,".").concat(o):c}function h(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e,o=void 0!==i&&null!==i;if(o||(i=2),1===i)t=n;else{var c=n.length,u=n[c-1];t="y"===u&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===u?"es":"s")}if(o){var l=r?p(i):i;return"".concat(l," ").concat(t)}return t}function b(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function g(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function v(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d(b(n.toLowerCase()))}function m(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(i,o){if(!e){var c=(0,r.Z)(i,2),u=c[0],l=c[1],a=t.slice(0,o).reduce((function(n,e){return n*Number(e[1])}),1);n1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function x(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function j(){return"".concat((0,c.mp)(i)," ").concat((0,c.mp)(o))}function w(n){var e=n.split("/"),t=e[e.length-1].split(".")[0];return e.slice(0,e.length-1).concat(t).join("/")}},79274:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return t(46614)}])}},function(n){n.O(0,[3850,2083,2344,9386,9774,2888,179],(function(){return e=79274,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-8c8c0211fade05b8.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-8c8c0211fade05b8.js deleted file mode 100644 index 22e59ad6f63d..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-8c8c0211fade05b8.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{1210:function(n,e,t){"use strict";t.d(e,{Z:function(){return k}});var r=t(82394),o=t(21831),i=t(82684),c=t(47999),u=t(49894),a=t(93461),l=t(57384),s=t(19767),d=t(72454),f=t(28598);function p(n,e){var t=n.children;return(0,f.jsx)(d.HS,{ref:e,children:t})}var h=i.forwardRef(p),b=t(32063),g=t(15270),v=t(82531),m=t(66166),y=t(3055),O=t(49125),w=t(91427),j=t(24141);function x(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function P(n){for(var e=1;e=1&&en.push.apply(en,[{label:function(){var n;return null===(n=nn[0])||void 0===n?void 0:n.name},linkProps:{href:"/"}},{bold:!0,label:function(){return D}}]),(0,i.useEffect)((function(){null===H||void 0===H||!H.current||z||Q||null===J||void 0===J||J(H.current.getBoundingClientRect().width)}),[z,V,Q,W,H,J,N]),(0,i.useEffect)((function(){z||(0,w.t8)(M,V)}),[r,z,V,M]),(0,i.useEffect)((function(){Q||(0,w.t8)(L,W)}),[Q,W,L]);var tn=(0,m.Z)(p);return(0,i.useEffect)((function(){x&&tn!==p&&Y(p)}),[x,p,tn]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Z,{title:D}),(0,f.jsx)(s.Z,{breadcrumbs:en,menuItems:S,project:null===nn||void 0===nn?void 0:nn[0],version:null===nn||void 0===nn||null===(e=nn[0])||void 0===e?void 0:e.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===T||void 0===T?void 0:T.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(g.Z,{navigationItems:T})}),(0,f.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:y.Mz,afterHidden:r,afterMousedownActive:z,afterWidth:V,before:k,beforeHeightOffset:y.Mz,beforeMousedownActive:Q,beforeWidth:d.k1+(k?W:0),hideAfterCompletely:!0,leftOffset:k?d.k1:null,mainContainerRef:H,setAfterMousedownActive:F,setAfterWidth:Y,setBeforeMousedownActive:K,setBeforeWidth:X,children:[_&&(0,f.jsx)(h,{children:_}),A]})})]}),C&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===R||void 0===R?void 0:R(null)},children:(0,f.jsx)(u.Z,P(P({},C),{},{onClose:function(){return null===R||void 0===R?void 0:R(null)}}))})]})}},45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return l},cE:function(){return f},cl:function(){return u},kA:function(){return a}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),u=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),a=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),l=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),u=t(67971),a=t(10919),l=t(86673),s=t(19711),d=t(46261),f=t(45838),p=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function b(n){for(var e=1;e=1&&!P&&(0,p.jsx)(f.Vq,{noHover:!0,children:y.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:h,compact:O,last:e===y.length-1,noBorder:x,sticky:C,children:(0,p.jsxs)(u.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(l.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(S,"-col-").concat(n.uuid,"-").concat(e))}))}),D]})}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return f},DA:function(){return d},HX:function(){return b},J8:function(){return h},Lq:function(){return l},Qj:function(){return g},Ut:function(){return O},V4:function(){return y},VZ:function(){return p},dO:function(){return s},f2:function(){return m},iZ:function(){return v},t6:function(){return c},tf:function(){return a}});var r,o,i,c,u=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var a,l,s=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(a||(a={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(l||(l={}));var d,f=[a.CHART,a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.TRANSFORMER],p=[a.DATA_EXPORTER,a.DATA_LOADER],h=[a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],b=[a.DATA_EXPORTER,a.DATA_LOADER,a.DBT,a.TRANSFORMER],g=[a.CHART,a.SCRATCHPAD,a.SENSOR],v=[a.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(d||(d={}));var m=[a.CUSTOM,a.DATA_EXPORTER,a.TRANSFORMER],y=(o={},(0,u.Z)(o,a.CUSTOM,"Custom"),(0,u.Z)(o,a.DATA_EXPORTER,"Data exporter"),(0,u.Z)(o,a.DATA_LOADER,"Data loader"),(0,u.Z)(o,a.SCRATCHPAD,"Scratchpad"),(0,u.Z)(o,a.SENSOR,"Sensor"),(0,u.Z)(o,a.TRANSFORMER,"Transformer"),o),O=[a.DATA_LOADER,a.TRANSFORMER,a.DATA_EXPORTER];i={},(0,u.Z)(i,a.DATA_EXPORTER,"DE"),(0,u.Z)(i,a.DATA_LOADER,"DL"),(0,u.Z)(i,a.SCRATCHPAD,"SP"),(0,u.Z)(i,a.SENSOR,"SR"),(0,u.Z)(i,a.TRANSFORMER,"TF")},93348:function(n,e,t){"use strict";t.d(e,{TR:function(){return d},U5:function(){return a},Xm:function(){return i},Z4:function(){return s},fq:function(){return u},kJ:function(){return l}});var r,o,i,c=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(i||(i={}));var u,a,l,s=(r={},(0,c.Z)(r,i.API,(function(){return"API"})),(0,c.Z)(r,i.EVENT,(function(){return"event"})),(0,c.Z)(r,i.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(u||(u={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(a||(a={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(l||(l={}));var d=(o={},(0,c.Z)(o,l.CREATED_AT,"Created at"),(0,c.Z)(o,l.NAME,"Name"),(0,c.Z)(o,l.PIPELINE,"Pipeline"),(0,c.Z)(o,l.STATUS,"Status"),(0,c.Z)(o,l.TYPE,"Type"),o)},98781:function(n,e,t){"use strict";t.d(e,{G7:function(){return a},QK:function(){return u},a_:function(){return l},qL:function(){return i}});var r,o,i,c=t(82394);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(i||(i={}));var u,a=(r={},(0,c.Z)(r,i.INTEGRATION,"Integration"),(0,c.Z)(r,i.PYTHON,"Standard"),(0,c.Z)(r,i.PYSPARK,"PySpark"),(0,c.Z)(r,i.STREAMING,"Streaming"),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules"}(u||(u={}));var l=(o={},(0,c.Z)(o,i.PYTHON,"python3"),(0,c.Z)(o,i.PYSPARK,"pysparkkernel"),o)},30264:function(n,e,t){"use strict";var r=t(82394),o=t(26304),i=(t(82684),t(47999)),c=t(62084),u=t(28598),a=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid"];function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e=1?(0,Y.jsx)(d.Z,{iconOnly:!0,loading:!!t[a],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(e){(0,J.j)(e),r((function(n){return en(en({},n),{},(0,i.Z)({},a,!0))})),T(en(en({},n),{},{status:f?Q.fq.INACTIVE:Q.fq.ACTIVE}))},children:f?(0,Y.jsx)(H.dz,{muted:!0,size:2*C.iI}):(0,Y.jsx)(H.Py,{default:!0,size:2*C.iI})}):null,(0,Y.jsx)(y.ZP,{default:!f,monospace:!0,success:!!f,children:f?Q.fq.ACTIVE:s>=1?Q.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(e)),(0,Y.jsx)(y.ZP,{children:a},"pipeline_name_".concat(e)),(0,Y.jsx)(y.ZP,{children:u===h.qL.PYTHON?"Standard":(0,V.kC)(u)},"pipeline_type_".concat(e)),(0,Y.jsx)(y.ZP,{default:0===l,monospace:!0,children:l},"pipeline_block_count_".concat(e)),(0,Y.jsx)(y.ZP,{default:0===s,monospace:!0,children:s},"pipeline_trigger_count_".concat(e)),(0,Y.jsx)(p.Z,{flex:1,justifyContent:"flex-end",children:(0,Y.jsx)(H._Q,{default:!0,size:2*C.iI})},"chevron_icon_".concat(e))]}))})})}tn.getInitialProps=(0,r.Z)(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)})));var rn=(0,b.Z)(tn)},24224:function(n,e,t){"use strict";t.d(e,{HK:function(){return l},Hk:function(){return u},IN:function(){return w},Od:function(){return p},Qj:function(){return v},Sm:function(){return O},YC:function(){return s},fS:function(){return b},m5:function(){return y},mp:function(){return j},mr:function(){return d},oM:function(){return h},ry:function(){return f},sE:function(){return a},tS:function(){return g},w6:function(){return m}});var r=t(82394),o=t(7715);function i(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function c(n){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,i=void 0===r||r,c=t.absoluteValue,u=void 0!==c&&c,a="string"===typeof e||"number"===typeof e?function(n){return u?Math.abs((0,o.t2)(n,e)):(0,o.t2)(n,e)}:function(n){return u?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var t=0;return a(n)>a(e)?t=i?1:-1:a(n)1&&void 0!==arguments[1]?arguments[1]:{},t=e.ascending,r=void 0===t||t;return n.sort((function(n,e){var t=0;return n[0]>e[0]?t=r?1:-1:n[0]>1);e(n[o])?t=o:r=o}return r}function p(n,e){var t=n.findIndex(e);return h(n,t)}function h(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function b(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function g(n,e){return n>e}function v(n,e){return n1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==e&&(t=t.map((function(n){return n+e}))),t}function O(n){return n.reduce((function(n,e){return n+e}),0)}function w(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-t,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function j(n){return n[Math.floor(Math.random()*n.length)]}},33766:function(n,e,t){"use strict";t.d(e,{g_:function(){return f},u7:function(){return d}});var r=t(75582),o=t(82394),i=t(34376),c=t.n(i),u=t(59e3),a=t(24224);function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=t.replaceParams,i=t.pushHistory,a=o?{}:(0,u.iV)();e=window.location.pathname;var l=i?c().push:c().replace,d=s(s({},a),n);Object.entries(n).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],o=e[1];"undefined"!==typeof o&&null!==o||delete d[t]}));var f=(0,u.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return l(c().router.pathname,p,{shallow:!0})}function f(n,e,t){var o=t.addingMultipleValues,i=t.isList,c=t.itemsPerPage,u=t.resetLimitParams,l=s({},n);o?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],o=e[1];if(Array.isArray(o)){var i="".concat(t,"[]");l[i]=o.map(String)}})):i?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],o=e[1],i=String(o),c="".concat(t,"[]"),u=l[c];u&&Array.isArray(u)?(u=u.map(String)).includes(i)?l[c]=(0,a.Od)(u,(function(n){return n===i})):l[c]=u.concat(i):l[c]=[i]})):l=s(s({},l),e),u&&(l._limit=c||20,l._offset=0),d(l)}},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return l},kC:function(){return s},vg:function(){return v},T3:function(){return O},Mp:function(){return d},Pb:function(){return u},HW:function(){return y},wX:function(){return f},x6:function(){return p},_6:function(){return h},zf:function(){return m},Y6:function(){return j},wE:function(){return x},J3:function(){return b},We:function(){return a},QV:function(){return w},C5:function(){return g}});var r=t(75582),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],i=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function u(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function a(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function l(n){return n.split(" ").join("_")}function s(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function f(n){return n.charAt(0).toLowerCase()+n.slice(1)}function p(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),o=t[0],i=t[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function h(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e,i=void 0!==o&&null!==o;if(i||(o=2),1===o)t=n;else{var c=n.length,u=n[c-1];t="y"===u&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===u?"es":"s")}if(i){var a=r?p(o):o;return"".concat(a," ").concat(t)}return t}function b(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function g(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function v(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(b(n.toLowerCase()))}function m(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(o,i){if(!e){var c=(0,r.Z)(o,2),u=c[0],a=c[1],l=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function w(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function j(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(i))}function x(n){var e=n.split("/"),t=e[e.length-1].split(".")[0];return e.slice(0,e.length-1).concat(t).join("/")}},79274:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return t(55541)}])}},function(n){n.O(0,[3850,2083,9767,9386,9898,9774,2888,179],(function(){return e=79274,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-26974ca695994804.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-26974ca695994804.js new file mode 100644 index 000000000000..2e73984bddc1 --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-26974ca695994804.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{19395:function(n,e,t){"use strict";t.d(e,{IJ:function(){return s},Vx:function(){return f},eI:function(){return d},gU:function(){return b},tL:function(){return p},vJ:function(){return m}});var r,i,o=t(82394),c=t(92083),l=t.n(c);function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e=1&&!j&&(0,p.jsx)(f.Vq,{noHover:!0,children:w.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:b,compact:O,last:e===w.length-1,noBorder:x,sticky:D,children:(0,p.jsxs)(l.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(I,"-col-").concat(n.uuid,"-").concat(e))}))}),R]})}},43526:function(n,e,t){"use strict";t.d(e,{I7:function(){return r},IB:function(){return u},VV:function(){return o},_7:function(){return c},rn:function(){return l}});var r,i=t(66050),o="datetime",c="code",l=i.V;!function(n){n.SECOND="second",n.MINUTE="minute",n.HOUR="hour",n.DAY="day",n.WEEK="week",n.MONTH="month",n.YEAR="year",n.CUSTOM="custom"}(r||(r={}));var u=[r.SECOND,r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},66050:function(n,e,t){"use strict";var r;t.d(e,{V:function(){return r}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(r||(r={}))},47409:function(n,e,t){"use strict";t.d(e,{D:function(){return c},V:function(){return o}});var r,i=t(82394),o=t(66050).V,c=(r={},(0,i.Z)(r,o.CANCELLED,"Cancelled"),(0,i.Z)(r,o.COMPLETED,"Done"),(0,i.Z)(r,o.FAILED,"Failed"),(0,i.Z)(r,o.INITIAL,"Ready"),(0,i.Z)(r,o.RUNNING,"Running"),r)},30206:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return R}});var r=t(77837),i=t(75582),o=t(38860),c=t.n(o),l=t(82684),u=t(83455),a=t(34376),s=t(12691),d=t.n(s),f=t(43526),p=t(60328),b=t(10919),m=t(87815),h=t(19711),v=t(10503),g=t(47409),w=t(49125),O=t(19395),y=t(9736),k=t(28598);var x=function(n){var e=n.models,t=n.onClickRow,r=n.pipeline,i=n.selectedRow,o=(0,y.Ct)(),c=null===r||void 0===r?void 0:r.uuid,l=[{uuid:"Status"},{uuid:"Name"},{uuid:"Type"},{uuid:"Runs"},{uuid:"Backfill"},{uuid:"Started at"},{uuid:"Completed at"}];return o||l.push({label:function(){return""},uuid:"edit"}),(0,k.jsx)(m.Z,{columnFlex:[null,1,null,null,null,1,1,null],columns:l,isSelectedRow:function(n){return e[n].id===(null===i||void 0===i?void 0:i.id)},onClickRow:function(n){return t(e[n])},rows:e.map((function(n,e){var t=n.block_uuid,r=n.completed_at,i=n.end_datetime,l=n.id,u=n.name,a=n.start_datetime,s=n.started_at,m=n.status,y=n.total_run_count,x=[(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:m||"inactive"},"status"),(0,k.jsx)(d(),{as:"/pipelines/".concat(c,"/backfills/").concat(l),href:"/pipelines/[pipeline]/backfills/[...slug]",passHref:!0,children:(0,k.jsx)(b.Z,{bold:!0,sameColorAsText:!0,children:u})},"name"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:t?f._7:f.VV},"type"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:y||0},"runs"),(0,k.jsxs)(h.ZP,{default:!0,monospace:!0,children:[a&&i&&(0,k.jsxs)(k.Fragment,{children:[(0,O.Vx)(a),"\xa0-\xa0",(0,O.Vx)(i)]}),!(a&&i)&&"-"]},"backfill"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:s?(0,O.Vx)(s):"-"},"started_at"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:r?(0,O.Vx)(r):"-"},"completed_at")];return o||x.push((0,k.jsx)(p.Z,{default:!0,disabled:m===g.V.COMPLETED,iconOnly:!0,linkProps:{as:"/pipelines/".concat(c,"/backfills/").concat(l,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noBackground:!0,title:"Edit",children:(0,k.jsx)(v.I8,{default:!0,size:2*w.iI})},"".concat(e,"_edit_button"))),x})),uuid:"pipeline-runs"})},j=t(11135),P=t(2626),Z=t(41788),C=t(86673),_=t(82531),E=t(59920),D=t(33766),I=t(96510),N=t(59e3),S=t(90211);function T(n){var e=n.pipeline,t=(0,a.useRouter)(),r=e.uuid,o=_.ZP.backfills.list({_limit:20,_offset:0,include_run_count:!0,pipeline_uuid:r},{refreshInterval:6e4}),c=o.data,s=(o.mutate,(0,l.useMemo)((function(){return(null===c||void 0===c?void 0:c.backfills)||[]}),[c])),d=(0,N.iV)(),f=(0,l.useState)(null),p=f[0],b=f[1],m=(0,l.useState)(null),g=m[0],O=m[1];(0,l.useEffect)((function(){null!==d&&void 0!==d&&d.backfill_id?b(null===s||void 0===s?void 0:s.find((function(n){return n.id===Number(d.backfill_id)}))):p&&b(null)}),[s,d,p]);var y=(0,l.useMemo)((function(){var n="/pipelines/".concat(r,"/backfills"),e=[{label:function(){return"Backfills"},linkProps:p?{as:n,href:"/pipelines/[pipeline]/backfills"}:null}];return p&&e.push({label:function(){return p.name}}),e}),[p]),Z=(0,u.Db)(_.ZP.backfills.pipelines.useCreate(r),{onSuccess:function(n){return(0,I.wD)(n,{callback:function(n){var e=n.backfill.id;t.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(r,"/backfills/").concat(e,"/edit"))},onErrorCallback:function(n,e){return O({errors:e,response:n})}})}}),T=(0,i.Z)(Z,2),R=T[0],A=T[1].isLoading;return(0,k.jsxs)(P.Z,{breadcrumbs:y,errors:g,pageName:E.M.BACKFILLS,pipeline:e,setErrors:O,title:function(n){var e=n.name;return"".concat(e," backfills")},uuid:"".concat(E.M.BACKFILLS,"_").concat(r),children:[(0,k.jsx)(C.Z,{p:w.cd,children:(0,k.jsx)(j.ZP,{beforeElement:(0,k.jsx)(v.mm,{size:2.5*w.iI}),blackBorder:!0,inline:!0,loading:A,noHoverUnderline:!0,onClick:function(){return R({backfill:{name:(0,S.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/Backfills/add_new_backfill",children:"Create new backfill"})}),s&&0===s.length&&(0,k.jsx)(C.Z,{p:w.cd,children:(0,k.jsx)(h.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No backfills available"})}),(null===s||void 0===s?void 0:s.length)>=1&&(0,k.jsx)(x,{models:s,onClickRow:function(n){var e=n.id;return(0,D.u7)({backfill_id:e})},pipeline:e,selectedRow:p})]})}T.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(e){var t;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var R=(0,Z.Z)(T)},33766:function(n,e,t){"use strict";t.d(e,{g_:function(){return f},u7:function(){return d}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),l=t(59e3),u=t(24224);function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,u=i?{}:(0,l.iV)();e=window.location.pathname;var a=o?c().push:c().replace,d=s(s({},u),n);Object.entries(n).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var f=(0,l.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return a(c().router.pathname,p,{shallow:!0})}function f(n,e,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,l=t.resetLimitParams,a=s({},n);i?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];if(Array.isArray(i)){var o="".concat(t,"[]");a[o]=i.map(String)}})):o?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1],o=String(i),c="".concat(t,"[]"),l=a[c];l&&Array.isArray(l)?(l=l.map(String)).includes(o)?a[c]=(0,u.Od)(l,(function(n){return n===o})):a[c]=l.concat(o):a[c]=[o]})):a=s(s({},a),e),l&&(a._limit=c||20,a._offset=0),d(a)}},37459:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills",function(){return t(30206)}])}},function(n){n.O(0,[3850,2083,2344,9386,1830,2626,9774,2888,179],(function(){return e=37459,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-4448a612bdda437c.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-4448a612bdda437c.js deleted file mode 100644 index 24bef61cd29b..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-4448a612bdda437c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{19395:function(n,e,t){"use strict";t.d(e,{IJ:function(){return s},Vx:function(){return f},eI:function(){return d},gU:function(){return b},tL:function(){return p},vJ:function(){return m}});var r,i,o=t(82394),c=t(92083),l=t.n(c);function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e=1&&!j&&(0,p.jsx)(f.Vq,{noHover:!0,children:w.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:b,compact:O,last:e===w.length-1,noBorder:x,sticky:E,children:(0,p.jsxs)(l.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(D,"-col-").concat(n.uuid,"-").concat(e))}))}),T]})}},43526:function(n,e,t){"use strict";t.d(e,{I7:function(){return r},IB:function(){return u},VV:function(){return o},_7:function(){return c},rn:function(){return l}});var r,i=t(66050),o="datetime",c="code",l=i.V;!function(n){n.SECOND="second",n.MINUTE="minute",n.HOUR="hour",n.DAY="day",n.WEEK="week",n.MONTH="month",n.YEAR="year",n.CUSTOM="custom"}(r||(r={}));var u=[r.SECOND,r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},66050:function(n,e,t){"use strict";var r;t.d(e,{V:function(){return r}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(r||(r={}))},47409:function(n,e,t){"use strict";t.d(e,{D:function(){return c},V:function(){return o}});var r,i=t(82394),o=t(66050).V,c=(r={},(0,i.Z)(r,o.CANCELLED,"Cancelled"),(0,i.Z)(r,o.COMPLETED,"Done"),(0,i.Z)(r,o.FAILED,"Failed"),(0,i.Z)(r,o.INITIAL,"Ready"),(0,i.Z)(r,o.RUNNING,"Running"),r)},30206:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return A}});var r=t(77837),i=t(75582),o=t(38860),c=t.n(o),l=t(82684),u=t(83455),a=t(34376),s=t(12691),d=t.n(s),f=t(43526),p=t(60328),b=t(10919),m=t(87815),h=t(19711),v=t(10503),g=t(47409),w=t(49125),O=t(19395),y=t(9736),k=t(28598);var x=function(n){var e=n.models,t=n.onClickRow,r=n.pipeline,i=n.selectedRow,o=(0,y.Ct)(),c=null===r||void 0===r?void 0:r.uuid,l=[{uuid:"Status"},{uuid:"Name"},{uuid:"Type"},{uuid:"Runs"},{uuid:"Backfill"},{uuid:"Started at"},{uuid:"Completed at"}];return o||l.push({label:function(){return""},uuid:"edit"}),(0,k.jsx)(m.Z,{columnFlex:[null,1,null,null,null,1,1,null],columns:l,isSelectedRow:function(n){return e[n].id===(null===i||void 0===i?void 0:i.id)},onClickRow:function(n){return t(e[n])},rows:e.map((function(n,e){var t=n.block_uuid,r=n.completed_at,i=n.end_datetime,l=n.id,u=n.name,a=n.start_datetime,s=n.started_at,m=n.status,y=n.total_run_count,x=[(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:m||"inactive"},"status"),(0,k.jsx)(d(),{as:"/pipelines/".concat(c,"/backfills/").concat(l),href:"/pipelines/[pipeline]/backfills/[...slug]",passHref:!0,children:(0,k.jsx)(b.Z,{bold:!0,sameColorAsText:!0,children:u})},"name"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:t?f._7:f.VV},"type"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:y||0},"runs"),(0,k.jsxs)(h.ZP,{default:!0,monospace:!0,children:[a&&i&&(0,k.jsxs)(k.Fragment,{children:[(0,O.Vx)(a),"\xa0-\xa0",(0,O.Vx)(i)]}),!(a&&i)&&"-"]},"backfill"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:s?(0,O.Vx)(s):"-"},"started_at"),(0,k.jsx)(h.ZP,{default:!0,monospace:!0,children:r?(0,O.Vx)(r):"-"},"completed_at")];return o||x.push((0,k.jsx)(p.Z,{default:!0,disabled:m===g.V.COMPLETED,iconOnly:!0,linkProps:{as:"/pipelines/".concat(c,"/backfills/").concat(l,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noBackground:!0,title:"Edit",children:(0,k.jsx)(v.I8,{default:!0,size:2*w.iI})},"".concat(e,"_edit_button"))),x})),uuid:"pipeline-runs"})},j=t(11135),P=t(2626),Z=t(41788),C=t(86673),_=t(82531),E=t(59920),D=t(33766),I=t(96510),N=t(59e3),S=t(90211);function T(n){var e=n.pipeline,t=(0,a.useRouter)(),r=e.uuid,o=_.ZP.backfills.list({_limit:20,_offset:0,include_run_count:!0,pipeline_uuid:r},{refreshInterval:6e4}),c=o.data,s=(o.mutate,(0,l.useMemo)((function(){return(null===c||void 0===c?void 0:c.backfills)||[]}),[c])),d=(0,N.iV)(),f=(0,l.useState)(null),p=f[0],b=f[1],m=(0,l.useState)(null),g=m[0],O=m[1];(0,l.useEffect)((function(){null!==d&&void 0!==d&&d.backfill_id?b(null===s||void 0===s?void 0:s.find((function(n){return n.id===Number(d.backfill_id)}))):p&&b(null)}),[s,d,p]);var y=(0,l.useMemo)((function(){var n="/pipelines/".concat(r,"/backfills"),e=[{label:function(){return"Backfills"},linkProps:p?{as:n,href:"/pipelines/[pipeline]/backfills"}:null}];return p&&e.push({label:function(){return p.name}}),e}),[p]),Z=(0,u.Db)(_.ZP.backfills.pipelines.useCreate(r),{onSuccess:function(n){return(0,I.wD)(n,{callback:function(n){var e=n.backfill.id;t.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(r,"/backfills/").concat(e,"/edit"))},onErrorCallback:function(n,e){return O({errors:e,response:n})}})}}),T=(0,i.Z)(Z,2),A=T[0],B=T[1].isLoading;return(0,k.jsxs)(P.Z,{breadcrumbs:y,errors:g,pageName:E.M.BACKFILLS,pipeline:e,setErrors:O,title:function(n){var e=n.name;return"".concat(e," backfills")},uuid:"".concat(E.M.BACKFILLS,"_").concat(r),children:[(0,k.jsx)(C.Z,{p:w.cd,children:(0,k.jsx)(j.ZP,{beforeElement:(0,k.jsx)(v.mm,{size:2.5*w.iI}),blackBorder:!0,inline:!0,loading:B,noHoverUnderline:!0,onClick:function(){return A({backfill:{name:(0,S.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/Backfills/add_new_backfill",children:"Create new backfill"})}),s&&0===s.length&&(0,k.jsx)(C.Z,{p:w.cd,children:(0,k.jsx)(h.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No backfills available"})}),(null===s||void 0===s?void 0:s.length)>=1&&(0,k.jsx)(x,{models:s,onClickRow:function(n){var e=n.id;return(0,D.u7)({backfill_id:e})},pipeline:e,selectedRow:p})]})}T.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(e){var t;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var A=(0,Z.Z)(T)},33766:function(n,e,t){"use strict";t.d(e,{g_:function(){return f},u7:function(){return d}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),l=t(59e3),u=t(24224);function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,u=i?{}:(0,l.iV)();e=window.location.pathname;var a=o?c().push:c().replace,d=s(s({},u),n);Object.entries(n).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var f=(0,l.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return a(c().router.pathname,p,{shallow:!0})}function f(n,e,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,l=t.resetLimitParams,a=s({},n);i?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];if(Array.isArray(i)){var o="".concat(t,"[]");a[o]=i.map(String)}})):o?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1],o=String(i),c="".concat(t,"[]"),l=a[c];l&&Array.isArray(l)?(l=l.map(String)).includes(o)?a[c]=(0,u.Od)(l,(function(n){return n===o})):a[c]=l.concat(o):a[c]=[o]})):a=s(s({},a),e),l&&(a._limit=c||20,a._offset=0),d(a)}},37459:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills",function(){return t(30206)}])}},function(n){n.O(0,[3850,2083,9767,9386,1830,2626,9774,2888,179],(function(){return e=37459,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-123556bdfe2e194b.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-123556bdfe2e194b.js new file mode 100644 index 000000000000..c78f156f07f3 --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-123556bdfe2e194b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6780],{2850:function(e,n,t){"use strict";t.d(n,{M:function(){return a},W:function(){return c}});var i=t(9518),r=t(23831),l=t(3055),c=34*t(49125).iI,a=i.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],l.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n ")}))},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return g},Z:function(){return Z}});var i=t(75582),r=t(82394),l=t(26304),c=t(32316),a=t(22673),s=t(86532),u=t(86673),o=t(19711),d=t(87815),p=t(49125),f=t(19395),b=t(28598),v=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function m(e){for(var n=1;n"}):n===c.Xm.EVENT&&e.push({uuid:"event",value:""}),e}function m(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,i.Z)(n,2),l=t[0],c=t[1],a=c;try{a=JSON.parse(c)}catch(s){}return d(d({},e),{},(0,r.Z)({},l,a))}),{}):e}},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return s},U:function(){return a}});var i=t(9518),r=t(23831),l=t(73942),c=t(49125),a=i.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],l.TR,14*c.iI,c.cd*c.iI,c.cd*c.iI,40*c.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||r.Z.interactive).linkPrimary,";\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],l.n_,c.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*c.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*c.iI,"px;\n ")}))},43526:function(e,n,t){"use strict";t.d(n,{I7:function(){return i},IB:function(){return s},VV:function(){return l},_7:function(){return c},rn:function(){return a}});var i,r=t(66050),l="datetime",c="code",a=r.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(i||(i={}));var s=[i.SECOND,i.MINUTE,i.HOUR,i.DAY,i.WEEK,i.MONTH,i.YEAR,i.CUSTOM]},2713:function(e,n,t){"use strict";var i=t(82394),r=t(44495),l=t(67971),c=t(55378),a=t(86673),s=t(19711),u=t(18025),o=t(49125),d=t(24224),p=t(28598);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function b(e){for(var n=1;n=1&&e>=2&&n.push((0,b.jsx)("div",{style:{marginLeft:1.5*o.iI}},"spacing-".concat(j))),x?n.push((0,b.jsx)(c.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:h,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:h,children:y},j)):n.push((0,b.jsx)("div",{style:{padding:4},children:(0,b.jsx)(r.Z,{borderLess:!0,compact:h,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:h,children:y},"button-tab-".concat(j))}))})),n}),[d,v,m]),x=(0,b.jsx)(l.Z,{alignItems:"center",children:j});return t?x:(0,b.jsx)(p,{allowScroll:n,noPadding:u,children:x})}},12625:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return te}});var i=t(75582),r=t(77837),l=t(82394),c=t(38860),a=t.n(c),s=t(82684),u=t(83455),o=t(34376),d=t(43526),p=t(60328),f=t(34744),b=t(67971),v=t(87372),h=t(51099),m=t(2626),j=t(97496),x=t(47409),g=t(55378),Z=t(86673),y=t(87815),O=t(19711),k=t(82531),_=t(56681),P=t(10503),I=t(2850),w=t(49125),S=t(59920),D=t(90211),C=t(58122),E=t(33766),N=t(7715),T=t(9736),M=t(96510),L=t(66653),F=t(59e3),U=t(28598);function A(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function R(e){for(var n=1;n=0?n:0});a.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat($,"/triggers/").concat(V,"?").concat((0,F.uM)(t)))},totalPages:Math.ceil(de/40)})})]})}),[ae,r,oe,fe]),he=(0,s.useState)(_.G[0]),me=he[0],je=he[1],xe=(0,u.Db)(k.ZP.backfills.useUpdate(V),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),ae()},onErrorCallback:function(e,n){return ie({errors:n,response:e})}})}}),ge=(0,i.Z)(xe,2),Ze=ge[0],ye=ge[1].isLoading,Oe=(0,s.useMemo)((function(){return!!q&&(d.rn.CANCELLED!==q&&d.rn.FAILED!==q)}),[q]),ke=(0,s.useMemo)((function(){return q&&d.rn.CANCELLED!==q&&d.rn.FAILED!==q&&d.rn.INITIAL!==q&&d.rn.RUNNING!==q}),[q]),_e=(0,s.useMemo)((function(){var e={default:!0,size:1.5*w.iI},n=[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(P.VW,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Backfill type"})]},"backfill_type_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:H?d._7:d.VV},"backfill_type")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(P.rs,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Status"})]},"backfill_status_label"),(0,U.jsx)(O.ZP,{danger:d.rn.CANCELLED===q||d.rn.FAILED==q,default:d.rn.INITIAL===q,monospace:!0,muted:!q,success:d.rn.RUNNING===q||d.rn.COMPLETED===q,children:q||"inactive"},"backfill_status")]];return H||n.push.apply(n,[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(P.aw,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"backfill_start_date_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:G},"backfill_start_date")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(P.aw,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"backfill_end_date_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:B},"backfill_end_date")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(P.Pf,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:z&&(0,D.kC)(z)},"interval_type")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(P.Pf,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:Y},"interval_units")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(P.qZ,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Total runs"})]},"total_runs_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:K},"total_runs")]]),(0,U.jsx)(y.Z,{columnFlex:[null,1],rows:n})}),[H,B,z,Y,Oe,G,q]),Pe=(0,s.useMemo)((function(){return Q||{}}),[Q]),Ie=(0,s.useMemo)((function(){var e,n=[];return(0,N.Qr)(Pe)?n=(0,C.wx)(l,(function(e){return"global"===e.uuid})):Object.entries(Pe).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],l=t[1];n.push({uuid:r,value:(0,C.FS)(l)})})),"undefined"!==typeof n&&null!==(e=n)&&void 0!==e&&e.length?(0,U.jsx)(y.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,U.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,U.jsx)(O.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Pe,l]);return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(m.Z,{afterHidden:!fe,before:(0,U.jsxs)(I.M,{children:[(0,U.jsxs)(Z.Z,{mb:w.HN,pt:w.cd,px:w.cd,children:[(0,U.jsx)(Z.Z,{mb:w.cd,children:(0,U.jsx)(P.yg,{size:5*w.iI})}),(0,U.jsx)(v.Z,{children:J})]}),(0,U.jsx)(Z.Z,{px:w.cd,children:(0,U.jsx)(v.Z,{level:5,children:"Settings"})}),(0,U.jsx)(f.Z,{light:!0,mt:1,short:!0}),_e,Ie&&(0,U.jsxs)(Z.Z,{my:w.HN,children:[(0,U.jsx)(Z.Z,{px:w.cd,children:(0,U.jsx)(v.Z,{level:5,children:"Runtime variables"})}),(0,U.jsx)(f.Z,{light:!0,mt:1,short:!0}),Ie]})]}),beforeWidth:34*w.iI,breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat($,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return J},linkProps:{as:"/pipelines/".concat($,"/backfills/").concat(V),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],buildSidekick:function(e){return(0,_.Z)(R(R({},e),{},{selectedRun:fe,selectedTab:me,setSelectedTab:je}))},errors:te,pageName:S.M.BACKFILLS,pipeline:r,setErrors:ie,subheader:(0,U.jsxs)(b.Z,{alignItems:"center",children:[!ke&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(p.Z,{beforeIcon:Oe?(0,U.jsx)(P.dz,{size:2*w.iI}):(0,U.jsx)(P.Py,{inverted:!(d.rn.CANCELLED===q||d.rn.FAILED===q),size:2*w.iI}),danger:Oe,disabled:se,loading:ye,onClick:function(e){(0,L.j)(e),Ze({backfill:{status:Oe?d.rn.CANCELLED:d.rn.INITIAL}})},outline:!0,success:!Oe&&!(d.rn.CANCELLED===q||d.rn.FAILED===q)&&!se,children:Oe?"Cancel backfill":d.rn.CANCELLED===q||d.rn.FAILED===q?"Retry backfill":"Start backfill"}),(0,U.jsx)(Z.Z,{mr:w.cd})]}),!c&&(0,U.jsxs)(U.Fragment,{children:[q===x.V.COMPLETED?(0,U.jsx)(O.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}):(0,U.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat($,"/backfills/").concat(V,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit backfill"}),(0,U.jsx)(Z.Z,{mr:w.cd})]}),!ue&&(0,U.jsxs)(g.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?a.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat($,"/backfills/").concat(V)):(0,E.u7)({page:0,status:e.target.value})},paddingRight:4*w.iI,placeholder:"Select run status",value:(null===ee||void 0===ee?void 0:ee.status)||"all",children:[(0,U.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(x.V).map((function(e){return(0,U.jsx)("option",{value:e,children:x.D[e]},e)}))]})]}),title:function(){return J},uuid:"backfill/detail",children:[(0,U.jsx)(Z.Z,{mt:w.cd,px:w.cd,children:(0,U.jsx)(v.Z,{level:5,children:"Runs for this backfill"})}),(0,U.jsx)(f.Z,{light:!0,mt:w.cd,short:!0}),ve]})})},B=t(2713),V=t(47999),z=t(93461),Y=t(82944),J=[{label:function(){return"Date and time window"},description:function(){return"Backfill between a date and time range."},uuid:d.VV}],W=t(18025),G=t(19395);function q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function K(e){for(var n=1;n"}):n===c.Xm.EVENT&&e.push({uuid:"event",value:""}),e}function m(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),l=t[0],c=t[1],a=c;try{a=JSON.parse(c)}catch(s){}return d(d({},e),{},(0,i.Z)({},l,a))}),{}):e}},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return s},U:function(){return a}});var r=t(9518),i=t(23831),l=t(73942),c=t(49125),a=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],l.TR,14*c.iI,c.cd*c.iI,c.cd*c.iI,40*c.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],l.n_,c.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*c.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*c.iI,"px;\n ")}))},43526:function(e,n,t){"use strict";t.d(n,{I7:function(){return r},IB:function(){return s},VV:function(){return l},_7:function(){return c},rn:function(){return a}});var r,i=t(66050),l="datetime",c="code",a=i.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(r||(r={}));var s=[r.SECOND,r.MINUTE,r.HOUR,r.DAY,r.WEEK,r.MONTH,r.YEAR,r.CUSTOM]},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),l=t(67971),c=t(55378),a=t(86673),s=t(19711),o=t(18025),u=t(49125),d=t(24224),p=t(28598);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n=1&&e>=2&&n.push((0,b.jsx)("div",{style:{marginLeft:1.5*u.iI}},"spacing-".concat(j))),x?n.push((0,b.jsx)(c.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:h,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:h,children:y},j)):n.push((0,b.jsx)("div",{style:{padding:4},children:(0,b.jsx)(i.Z,{borderLess:!0,compact:h,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:h,children:y},"button-tab-".concat(j))}))})),n}),[d,v,m]),x=(0,b.jsx)(l.Z,{alignItems:"center",children:j});return t?x:(0,b.jsx)(p,{allowScroll:n,noPadding:o,children:x})}},82944:function(e,n,t){"use strict";var r=t(82394),i=t(91835),l=t(82684),c=t(9518),a=t(69898),s=t(28598);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n=0?n:0});a.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat($,"/triggers/").concat(V,"?").concat((0,F.uM)(t)))},totalPages:Math.ceil(de/40)})})]})}),[ae,i,ue,fe]),he=(0,s.useState)(_.G[0]),me=he[0],je=he[1],xe=(0,o.Db)(P.ZP.backfills.useUpdate(V),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),ae()},onErrorCallback:function(e,n){return re({errors:n,response:e})}})}}),ge=(0,r.Z)(xe,2),Ze=ge[0],ye=ge[1].isLoading,Oe=(0,s.useMemo)((function(){return!!G&&(d.rn.CANCELLED!==G&&d.rn.FAILED!==G)}),[G]),Pe=(0,s.useMemo)((function(){return G&&d.rn.CANCELLED!==G&&d.rn.FAILED!==G&&d.rn.INITIAL!==G&&d.rn.RUNNING!==G}),[G]),_e=(0,s.useMemo)((function(){var e={default:!0,size:1.5*w.iI},n=[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.VW,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Backfill type"})]},"backfill_type_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:H?d._7:d.VV},"backfill_type")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.rs,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Status"})]},"backfill_status_label"),(0,U.jsx)(O.ZP,{danger:d.rn.CANCELLED===G||d.rn.FAILED==G,default:d.rn.INITIAL===G,monospace:!0,muted:!G,success:d.rn.RUNNING===G||d.rn.COMPLETED===G,children:G||"inactive"},"backfill_status")]];return H||n.push.apply(n,[[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.aw,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"backfill_start_date_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:q},"backfill_start_date")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.aw,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"End date and time"})]},"backfill_end_date_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:B},"backfill_end_date")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.Pf,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval type"})]},"interval_type_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:z&&(0,D.kC)(z)},"interval_type")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.Pf,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Interval units"})]},"interval_units_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:Y},"interval_units")],[(0,U.jsxs)(b.Z,{alignItems:"center",children:[(0,U.jsx)(k.qZ,R({},e)),(0,U.jsx)(Z.Z,{mr:1}),(0,U.jsx)(O.ZP,{default:!0,children:"Total runs"})]},"total_runs_label"),(0,U.jsx)(O.ZP,{monospace:!0,children:K},"total_runs")]]),(0,U.jsx)(y.Z,{columnFlex:[null,1],rows:n})}),[H,B,z,Y,Oe,q,G]),ke=(0,s.useMemo)((function(){return Q||{}}),[Q]),Ie=(0,s.useMemo)((function(){var e,n=[];return(0,N.Qr)(ke)?n=(0,C.wx)(l,(function(e){return"global"===e.uuid})):Object.entries(ke).forEach((function(e){var t=(0,r.Z)(e,2),i=t[0],l=t[1];n.push({uuid:i,value:(0,C.FS)(l)})})),"undefined"!==typeof n&&null!==(e=n)&&void 0!==e&&e.length?(0,U.jsx)(y.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,U.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,U.jsx)(O.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[ke,l]);return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)(m.Z,{afterHidden:!fe,before:(0,U.jsxs)(I.M,{children:[(0,U.jsxs)(Z.Z,{mb:w.HN,pt:w.cd,px:w.cd,children:[(0,U.jsx)(Z.Z,{mb:w.cd,children:(0,U.jsx)(k.yg,{size:5*w.iI})}),(0,U.jsx)(v.Z,{children:J})]}),(0,U.jsx)(Z.Z,{px:w.cd,children:(0,U.jsx)(v.Z,{level:5,children:"Settings"})}),(0,U.jsx)(f.Z,{light:!0,mt:1,short:!0}),_e,Ie&&(0,U.jsxs)(Z.Z,{my:w.HN,children:[(0,U.jsx)(Z.Z,{px:w.cd,children:(0,U.jsx)(v.Z,{level:5,children:"Runtime variables"})}),(0,U.jsx)(f.Z,{light:!0,mt:1,short:!0}),Ie]})]}),beforeWidth:34*w.iI,breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat($,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return J},linkProps:{as:"/pipelines/".concat($,"/backfills/").concat(V),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],buildSidekick:function(e){return(0,_.Z)(R(R({},e),{},{selectedRun:fe,selectedTab:me,setSelectedTab:je}))},errors:te,pageName:S.M.BACKFILLS,pipeline:i,setErrors:re,subheader:(0,U.jsxs)(b.Z,{alignItems:"center",children:[!Pe&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(p.Z,{beforeIcon:Oe?(0,U.jsx)(k.dz,{size:2*w.iI}):(0,U.jsx)(k.Py,{inverted:!(d.rn.CANCELLED===G||d.rn.FAILED===G),size:2*w.iI}),danger:Oe,disabled:se,loading:ye,onClick:function(e){(0,L.j)(e),Ze({backfill:{status:Oe?d.rn.CANCELLED:d.rn.INITIAL}})},outline:!0,success:!Oe&&!(d.rn.CANCELLED===G||d.rn.FAILED===G)&&!se,children:Oe?"Cancel backfill":d.rn.CANCELLED===G||d.rn.FAILED===G?"Retry backfill":"Start backfill"}),(0,U.jsx)(Z.Z,{mr:w.cd})]}),!c&&(0,U.jsxs)(U.Fragment,{children:[G===x.V.COMPLETED?(0,U.jsx)(O.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}):(0,U.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat($,"/backfills/").concat(V,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit backfill"}),(0,U.jsx)(Z.Z,{mr:w.cd})]}),!oe&&(0,U.jsxs)(g.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?a.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat($,"/backfills/").concat(V)):(0,E.u7)({page:0,status:e.target.value})},paddingRight:4*w.iI,placeholder:"Select run status",value:(null===ee||void 0===ee?void 0:ee.status)||"all",children:[(0,U.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(x.V).map((function(e){return(0,U.jsx)("option",{value:e,children:x.D[e]},e)}))]})]}),title:function(){return J},uuid:"backfill/detail",children:[(0,U.jsx)(Z.Z,{mt:w.cd,px:w.cd,children:(0,U.jsx)(v.Z,{level:5,children:"Runs for this backfill"})}),(0,U.jsx)(f.Z,{light:!0,mt:w.cd,short:!0}),ve]})})},B=t(2713),V=t(47999),z=t(93461),Y=t(82944),J=[{label:function(){return"Date and time window"},description:function(){return"Backfill between a date and time range."},uuid:d.VV}],W=t(18025),q=t(19395);function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function K(e){for(var n=1;n div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(e){return e.disableScrolling&&"\n overflow: hidden;\n "}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),k.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||P,"px;\n ")}),y.iD,j.ry,(function(e){return"\n background-color: ".concat((e.theme.background||b.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n ")}),1*_.iI);function A(e){var n=e.original,t=8.5*Math.max.apply(Math,(0,r.Z)(n.map((function(e){return(null===e||void 0===e?void 0:e.length)||0})))),i=Math.ceil(t/(I-2*_.iI));return Math.max(i,1)*y.dN+2*_.iI}function R(e){var n=e.columnHeaderHeight,t=e.columns,i=e.data,c=e.disableScrolling,a=e.height,k=e.index,S=e.invalidValues,T=e.maxHeight,R=e.numberOfIndexes,D=e.previewIndexes,M=e.renderColumnHeader,N=e.width,B=(0,o.useContext)(d.ThemeContext),L=(0,o.useRef)(null),F=(0,o.useRef)(null);(0,o.useEffect)((function(){var e=function(e){var n;null===L||void 0===L||null===(n=L.current)||void 0===n||n.scroll(e.target.scrollLeft,0)};return F&&F.current.addEventListener("scroll",e),function(){var n;null===F||void 0===F||null===(n=F.current)||void 0===n||n.removeEventListener("scroll",e)}}),[L,F]);var U=(0,o.useMemo)((function(){return k&&i&&k.length===i.length}),[i,k]),H=(0,o.useMemo)((function(){var e=[];return(0,O.w6)(R).forEach((function(n,t){var o=8.7*String(null===i||void 0===i?void 0:i.length).length;if(U){var l=k.map((function(e){return R>=2?String(e[t]).length:String(e).length}));o=8.7*Math.max.apply(Math,(0,r.Z)(l))}e.push(o+2*_.iI)})),e}),[i,k,R,U]),z=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),W=(0,o.useMemo)((function(){return x()}),[]),G=(0,o.useMemo)((function(){var e=N-(Math.max.apply(Math,(0,r.Z)(H))+1.5*_.iI+W),n=t.length-1,i=I;return i*n=1})).join("/");null===u||void 0===u||u((function(n){return v(v({},n),{},(0,i.Z)({},o,e.loaded/e.total))}))}})),f=(0,r.Z)(d,1)[0],m=(0,o.useCallback)((function(e){e.forEach((function(e){var n=e.name,r=e.path,o=[t],l=r.split("/").filter((function(e){return e&&e!==n})).join("/");l&&o.push(l);var c=[],a=o.join("/");(null===a||void 0===a?void 0:a.length)>=1&&o.push(a),c.push(n);var d=c.join("/");f({dir_path:a,file:e,overwrite:!1}).then((function(e){var n=e.data,t=n.error,r=n.file;s((function(e){return v(v({},e),{},(0,i.Z)({},d,r||t))}))})),u((function(e){return v(v({},e),{},(0,i.Z)({},d,0))}))}))}),[f,t,u,s]);return(0,a.jsx)(p,{onDragActiveChange:c,setFiles:m,children:n})}},85307:function(e,n,t){"use strict";t.d(n,{$W:function(){return a},cl:function(){return s},cv:function(){return d},dE:function(){return u}});var i=t(9518),r=t(23831),o=t(73942),l=t(49125),c=t(37391),u=i.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],o.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).popup,";\n ")})),a=i.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-1"})(["padding-top:","px;",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeTextarea,";\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-2"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],c.w5,(function(e){return e.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,";\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")})),d=i.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-3"})(["padding:","px;"," "," ",""],2*l.iI,(function(e){return"\n background-color: ".concat((e.theme||r.Z).interactive.defaultBackground,";\n border-bottom: ").concat(o.YF,"px ").concat(o.M8," ").concat((e.theme||r.Z).borders.medium,";\n ")}),(function(e){return e.padding&&"\n padding: ".concat(e.padding,"px;\n ")}),(function(e){return e.rounded&&"\n border-top-left-radius: ".concat(o.n_,"px;\n border-top-right-radius: ").concat(o.n_,"px;\n ")}))},64155:function(e,n,t){"use strict";t.d(n,{Eh:function(){return u},ht:function(){return s},t0:function(){return a}});var i=t(9518),r=t(82386),o=t(1286),l=t(31012),c=t(49125),u=(c.iI,o.O$+3*c.iI+l.dN),a=i.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})(["position:relative;width:fit-content;"," ",""],(function(e){return"\n height: calc(100vh - ".concat(r.uX,"px - ").concat(e.heightOffset,"px);\n ")}),(function(e){return e.fullWidth&&"\n width: calc(100% - ".concat(e.widthOffset||0,"px);\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*c.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}))},76096:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(33591)),l=t(28598),c=["children","fullHeight","gutter","style"];function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var r=[e.parent.name];return(null===i||void 0===i?void 0:i.length)>=1&&r.push(i),ae(e.parent,r.join("/"))}return i}function se(e){return null===e||void 0===e?void 0:e.split("/").slice(1).join("/")}function de(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=ae(e,n,t);return se(i)}function fe(e){var n,t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=ae(e,i).split("/");if(!r)return null;if(1===r.length)(r=null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t.split("/"))&&(n=r[0]===v.tf.CUSTOM?r[0]:(0,ue.C5)(r[0]||""));else if(r[1]===v.tf.CUSTOM)n=r[1];else{var o=r[1];n=v.tf.DBT===o?o:(0,ue.C5)(o||"")}if(!r)return null;var l="";l=r.length>=3?r.slice(2,r.length).join("/"):r[r.length-1];var c=["\\.".concat(A.PY),"\\.".concat(A.R),"\\.".concat(A.SQL),"\\.".concat(A.YAML),"\\.".concat(A.YML)].join("|"),u=new RegExp("".concat(c,"$"));if(v.$W.concat(v.tf.DBT).includes(n)&&l.match(u)){var a=l.split("."),s=a[1];return{language:K[s],type:n,uuid:a[0]}}}function pe(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=ae(e,n).split("/");if(t[1]){var i=(0,ue.C5)(t[n?0:1]);t[1]===v.tf.DBT&&(i=v.tf.DBT);var r=t[t.length-1],o=new RegExp(".".concat(A.YAML,"$")),l=new RegExp(".".concat(A.R,"$")),c=new RegExp(".".concat(A.SQL,"$"));if(r.match(o)&&v.VZ.includes(i))return{type:i,uuid:r.replace(o,"")};if(r.match(l)&&v.J8.includes(i))return{type:i,uuid:r.replace(l,"")};if(r.match(c)&&v.HX.includes(i)){var u=r.replace(/[.]/g,"_"),a=i===v.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(u)):r.replace(c,"");return{type:i,uuid:a}}}}function he(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function me(e){for(var n=1;n=1||r||M||R||(e.preventDefault(),clearTimeout(k.current),k.current=setTimeout((function(){b({x:e.pageX,y:e.pageY}),x(o),j(null)}),300))},style:{alignItems:"center",cursor:"default",display:"flex",minWidth:c*J.Cl+o.name.length*$.Fo+2*$.iI,paddingBottom:$.iI/4,paddingLeft:$.iI/4+J.Cl*c,paddingRight:$.iI/4,paddingTop:$.iI/4},children:[D&&!F&&(0,P.jsx)(X._M,{muted:!0,size:J.ZG}),D&&F&&(0,P.jsx)(X._Q,{muted:!0,size:J.ZG}),!D&&(0,P.jsx)("div",{style:{width:J.ZG}}),(0,P.jsxs)("div",{style:{marginLeft:$.iI/2,marginRight:$.iI/2},children:[!T&&(0,P.jsx)(G,{disabled:M,size:J.ZG}),T&&(0,P.jsx)(L.Z,{color:T,size:J.ZG,square:!0})]}),(0,P.jsx)(_.ZP,{color:T,default:!T&&!M,disabled:M,monospace:!0,small:!0,children:E})]}),(0,P.jsx)("div",{style:{display:F?"none":"block"},children:K})]})},be=t(82531),xe=t(7715),je=t(96510);var ye=function(e){var n=e.fetchFileTree,t=e.file,i=e.onCancel,r=e.selectedFolder,l=e.setErrors,c=(0,s.useRef)(null),u=(0,xe.Qr)(t)?null:t,a=(0,s.useState)(u?de(u,null,!0):""),f=a[0],p=a[1],h=(0,s.useState)(u?null===u||void 0===u?void 0:u.name:""),m=h[0],v=h[1];(0,s.useEffect)((function(){var e;null===c||void 0===c||null===(e=c.current)||void 0===e||e.focus()}),[]),(0,s.useEffect)((function(){r&&p(de(r))}),[r]);var b=(0,d.Db)(be.ZP.files.useCreate(),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),k=(0,o.Z)(b,1)[0],_=(0,d.Db)(be.ZP.files.useUpdate(u&&encodeURIComponent(de(u))),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),w=(0,o.Z)(_,1)[0];return(0,P.jsxs)(y.Z,{footer:(0,P.jsxs)(x.Z,{children:[(0,P.jsxs)(j.ZP,{bold:!0,disabled:!m,inline:!0,keyboardShortcutValidation:function(e){var n=e.keyMapping;return(0,E.y)([O.Uq],n)},onClick:function(){return u?w({file:{dir_path:f,name:m},file_json_only:!0}):k({file:{dir_path:f,name:m,overwrite:!1},file_json_only:!0})},primary:!0,tabIndex:0,uuid:"NewFile/create_file",children:[u?"Rename":"Create"," file"]}),(0,P.jsx)(Z.Z,{ml:1,children:(0,P.jsx)(g.Z,{onClick:function(){return i()},tabIndex:0,children:"Cancel"})})]}),headerTitle:u?"Rename file":"New file",children:[(0,P.jsx)(C.Z,{disabled:!!u,label:"Directory",monospace:!0,onChange:function(e){return p(e.target.value)},setContentOnMount:!0,value:f}),(0,P.jsx)(Z.Z,{mt:2,children:(0,P.jsx)(C.Z,{label:"Filename",monospace:!0,onChange:function(e){return v(e.target.value)},ref:c,required:!0,value:m})})]})},ke=t(55106),Ze=t(66176),_e=t(87815),Ce=t(23831),Oe=t(73942),we=($.iI,N.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],Oe.n_,8*$.iI,100*$.iI,55*$.iI,(function(e){return"\n border: 1px dashed ".concat((e.theme.borders||Ce.Z.borders).contrast,";\n ")}))),Se=N.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1g3zz7z-1"})(["max-width:","px;min-width:","px;"],100*$.iI,55*$.iI);var Ee=function(e){var n=e.fetchFileTree,t=e.onCancel,i=e.selectedFolder,r=(0,s.useState)(!1),l=r[0],c=r[1],u=(0,s.useState)({}),a=u[0],d=u[1],f=(0,s.useState)({}),p=f[0],h=f[1],m=!(0,xe.Qr)(a),v=(0,s.useMemo)((function(){var e=[];return(0,ee.YC)(Object.entries(a),(function(e){var n=(0,o.Z)(e,2),t=n[0];n[1];return t})).forEach((function(n){var t=(0,o.Z)(n,2),i=t[0],r=t[1],l=p[i],c=null===l||void 0===l?void 0:l.message;e.push([(0,P.jsxs)("div",{children:[(0,P.jsx)(_.ZP,{overflowWrap:!0,preWrap:!0,children:i}),c&&(0,P.jsx)(Z.Z,{mt:1,children:(0,P.jsx)(_.ZP,{danger:!0,small:!0,children:c})})]},"name-".concat(i)),(0,P.jsx)(Ze.Z,{danger:!!c,progress:100*r},"progress-".concat(i))])})),(0,P.jsx)(_e.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[a,p]);return(0,P.jsxs)(y.Z,{footer:(0,P.jsxs)(x.Z,{fullWidth:!0,children:[(0,P.jsx)(g.Z,{onClick:function(){return t()},children:"Close"}),m&&(0,P.jsx)(Z.Z,{ml:1,children:(0,P.jsx)(g.Z,{onClick:function(){d({}),h({})},children:"Clear files and retry"})})]}),headerTitle:"Upload files",children:[m&&(0,P.jsx)(Se,{children:v}),!m&&(0,P.jsx)(ke.Z,{directoryPath:i?de(i):"",onDragActiveChange:c,setFileUploadProgress:d,setUploadedFiles:function(e){h(e),null===n||void 0===n||n()},children:(0,P.jsx)(we,{children:(0,P.jsxs)(_.ZP,{center:!0,children:[l&&"Drop to upload",!l&&"Click or drop files and folders to upload"]})})})]})},Pe=t(86585),Ie=function(e){var n=e[0];return n===v.tf.DBT||n===v.tf.CUSTOM?n:e[0].slice(0,-1)};function Te(){return new RegExp(Object.keys(K).map((function(e){return".(".concat(e,")$")})).join("|"))}function Ae(e,n,t){var i,o,l=null===e||void 0===e||null===(i=e.path.match(Te())[0])||void 0===i?void 0:i.split(".")[1],c=t.type===k.qL.INTEGRATION,u=(0,ee.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return v.tf.DATA_EXPORTER===n})),a=e.path.replace(n,"").split("/"),s=e.path.split("/")[0]===v.tf.DBT,d=(o=a)[0]===v.tf.DBT?o.slice(1).join("/"):function(e){return e.at(-1)}(o).split(".")[0];if(a.length>=3&&!s){var f=a.slice(1,a.length-1).join("/");d="".concat(f,"/").concat(d)}var p=Ie(e.path.split("/")),h={configuration:{file_path:s?d:null},language:K[l],name:(0,ue.wE)(d),type:p};if(p===v.tf.CUSTOM&&(h.color=v.Lq.TEAL),c){var m=(0,ee.sE)(t.blocks,(function(e){var n=e.type;return v.tf.DATA_LOADER===n})),g=(0,ee.sE)(t.blocks,(function(e){var n=e.type;return v.tf.TRANSFORMER===n})),b=[];g?b.push(g.uuid):null!==u&&void 0!==u&&u.upstream_blocks?b.push.apply(b,(0,r.Z)(u.upstream_blocks)):m&&b.push(m.uuid),h.upstream_blocks=b}return h}var Re=t(83608),De=["addNewBlock","blocks","deleteBlockFile","deleteWidget","fetchFileTree","fetchPipeline","files","pipeline","setErrors","setSelectedBlock","widgets"];function Me(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Ne(e){for(var n=1;nc+l){var u=(null===p||void 0===p?void 0:p.type)===k.qL.INTEGRATION,a=Ae(Ne(Ne({},S),{},{path:de(S)}),D,p);null===t||void 0===t||t(a,(function(e){u&&U&&z({block:Ne(Ne({},U),{},{upstream_blocks:[e.uuid]})}),null===m||void 0===m||m(e)}))}}},l=function(e){S&&O({x:e.pageX,y:e.pageY})};return null===(e=document)||void 0===e||e.addEventListener("click",W),null===(i=document)||void 0===i||i.addEventListener("mousemove",l),null===(r=document)||void 0===r||r.addEventListener("mouseup",o),function(){var e,n,t;null===(e=document)||void 0===e||e.removeEventListener("click",W),null===(n=document)||void 0===n||n.removeEventListener("mousemove",l),null===(t=document)||void 0===t||t.removeEventListener("mouseup",o)}}),[t,U,S,W,p,n,D,m,j,z]);var G=(0,s.useMemo)((function(){return r.concat(b).map((function(e){return e.uuid}))}),[r,b]),V=(0,s.useMemo)((function(){return null===f||void 0===f?void 0:f.map((function(e){return(0,s.createElement)(ge,Ne(Ne({},x),{},{containerRef:n,file:e,key:e.name,level:0,pipelineBlockUuids:G,setCoordinates:O,setDraggingFile:E,setSelectedFile:A,theme:y,timeout:j}))}))}),[f,G,x,n,y,j]),Q=(0,s.useMemo)((function(){return T&&fe(T)}),[T]),q=(0,s.useMemo)((function(){return S&&fe(S)}),[S]),K=(0,s.useMemo)((function(){return T&&"undefined"!==typeof(null===T||void 0===T?void 0:T.children)&&T}),[T]),Y=(0,Re.dd)((function(){return(0,P.jsx)(Ee,{fetchFileTree:u,onCancel:te,selectedFolder:K})}),{},[u,K],{background:!0,uuid:"upload_files"}),X=(0,o.Z)(Y,2),ne=X[0],te=X[1],ie=(0,Re.dd)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,P.jsx)(ye,{fetchFileTree:u,file:e,onCancel:le,selectedFolder:K,setErrors:h})}),{},[u,K,h],{background:!0,disableClickOutside:!0,uuid:"new_file"}),re=(0,o.Z)(ie,2),oe=re[0],le=re[1],ce=(0,s.useMemo)((function(){var e;if(!Q&&!T&&!K)return(0,P.jsx)("div",{});var t=(null===n||void 0===n||null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect())||{},i=t.x,r=t.width,o=C||{},u=o.x,a=void 0===u?0:u,s=o.y,d=void 0===s?0:s,f=a;a+Le>=i+r&&(f=i+r-(Le+$.iI)),f<0&&(f=0);var p=[];return K?p.push.apply(p,[{label:function(){return"Upload files"},onClick:function(){ne()},uuid:"upload_files"},{label:function(){return"New file"},onClick:function(){oe({})},uuid:"new_file"}]):Q?p.push({label:function(){return"Delete block file"},onClick:function(){Q.type===v.tf.CHART?window.confirm("Are you sure you want to delete widget ".concat(Q.uuid,"?"))&&c(Q):window.confirm("Are you sure you want to delete block ".concat(Q.uuid,"?"))&&l(Q)},uuid:"delete_block_file"}):T&&p.push.apply(p,[{label:function(){return"Rename file"},onClick:function(){oe(T)},uuid:"rename_file"},{label:function(){return"Delete file"},onClick:function(){var e=de(T);window.confirm("Are you sure you want to delete file ".concat(e,"?"))&&F(encodeURIComponent(e))},uuid:"delete_file"}]),(0,P.jsx)("div",{style:{left:f,position:"fixed",top:d+$.iI/2,zIndex:Pe.bf+100},children:(0,P.jsx)(B.Z,{items:p,open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:Le})})}),[C,l,F,c,n,ne,oe,Q,T,K]);return(0,P.jsxs)(J.Nk,{ref:n,children:[V,(Q||T||K)&&ce,q&&(0,P.jsx)("div",{style:{left:(null===C||void 0===C?void 0:C.x)-$.iI,position:"fixed",top:(null===C||void 0===C?void 0:C.y)-$.iI,zIndex:Pe.bf+100},children:(0,P.jsx)(_.ZP,{cursor:"grabbing",monospace:!0,children:null===q||void 0===q?void 0:q.uuid})})]})}!function(e){e.BLOCK_FILE="block_file",e.DISABLED="disabled",e.FILE="file",e.FOLDER="folder",e.PIPELINE="pipeline"}(Be||(Be={}));var Ue=s.forwardRef(Fe),He=t(93461),ze=N.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),We=N.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]),Ge=function(e){var n=e.children,t=e.divider,i=s.Children.toArray(n).length;return(0,P.jsx)(ze,{children:(0,P.jsx)(x.Z,{children:s.Children.map(n,(function(e,n){return e&&(0,P.jsxs)(He.Z,{children:[n>=1&&t&&(0,P.jsx)(We,{}),s.cloneElement(e,{borderRadiusLeft:i>=2&&0===n,borderRadiusRight:i>=2&&n===i-1,halfPaddingLeft:i>=2&&0!==n,halfPaddingRight:i>=2&&n!==i-1,noBorder:i>=2&&n>0&&n=2&&n!==i-1})]},"button-group-child-".concat(n))}))})})},Ve=t(57722),Qe=t(82635),qe=t(33699),Ke=t(94353),Ye=t(28799),Xe=t(41150);function Je(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function $e(e){for(var n=1;n=1&&(n[l]=r.map((function(e){var n=e||{},t=n.sample_data,i=n.shape,r=n.text_data,o=n.type;return t?{data:Nt({shape:i},t),type:o}:r&&(0,ue.Pb)(r)?JSON.parse(r):r}))),t[o]||(t[o]={}),t[o][l]=i})),{content:t,messages:n}}function Lt(e,n,t){e.forEach((function(e){(0,S.t8)("".concat(t,"/").concat(e.uuid,"/codeCollapsed"),(0,S.Od)("".concat(n,"/").concat(e.uuid,"/codeCollapsed"))),(0,S.t8)("".concat(t,"/").concat(e.uuid,"/outputCollapsed"),(0,S.Od)("".concat(n,"/").concat(e.uuid,"/outputCollapsed")))}))}function Ft(e){return"".concat(e,"/").concat(S.kP)}function Ut(e){return(0,S.U2)(Ft(e),[])}function Ht(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function zt(e){for(var n=1;n=1||!h&&C>=1&&O>=w,z=(0,s.useState)(),W=z[0],G=z[1],V=(0,s.useState)(),Q=V[0],q=V[1];(0,s.useEffect)((function(){h||q(100)}),[h]);var K=function(e){return Array.isArray(e)?e.join("\n"):e},Y=(0,s.useMemo)((function(){return b.reduce((function(e,n){var t=e.at(-1);if(Qe.jU.includes(null===t||void 0===t?void 0:t.type)&&(null===t||void 0===t?void 0:t.type)===n.type&&!K(null===n||void 0===n?void 0:n.data).match(Et)){if(Array.isArray(t.data))t.data.concat(n.data);else if("string"===typeof t.data){var i=K(n.data)||"";t.data=[t.data,i].join("\n")}}else Qe.jU.includes(null===n||void 0===n?void 0:n.type)&&!K(null===n||void 0===n?void 0:n.data).match(Et)?e.push(zt(zt({},n),{},{data:K(n.data)})):e.push(zt({},n));return e}),[])}),[b]),J=(0,s.useMemo)((function(){return(0,P.jsx)(Ze.Z,{progress:Q})}),[Q]),ee=v.tf.DBT===(null===n||void 0===n?void 0:n.type),ne=(0,kt.Z)(d);(0,s.useEffect)((function(){ee&&!ne&&d&&M(Tt)}),[d,ne,ee,M]);var te=(0,s.useMemo)((function(){var e=function(e,n){var t=e.columns,i=e.index,r=e.rows,o=e.shape,l=n.borderTop,c=n.selected;return o&&G(o),r.length>=1&&(0,P.jsx)(xt.Z,{columns:t,disableScrolling:!c,index:i,maxHeight:60*$.iI,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,noBorderTop:!l,rows:r,width:m-(2+$.cd*$.iI*2+2+pn.nn)})},n=[],t=[],i=[];return null===Y||void 0===Y||Y.forEach((function(o,l){var u=o.data,a=o.type;if(u&&0!==(null===u||void 0===u?void 0:u.length)){var s=[];s=(s=Array.isArray(u)?u:[u]).filter((function(e){return e}));var d=[];s.forEach((function(e){if(e&&"string"===typeof e){var n=e.split("\n");d.push.apply(d,(0,r.Z)(n))}else"object"===typeof d&&d.push(e)}));var f=d.length,p=[];d.forEach((function(n,r){var o,u={contained:c,first:0===l&&0===r,last:l===Y.length-1&&r===f-1},s=l>=1;if("string"===typeof n&&n.match(Pt)){var d=n.split("\n"),h=[];d.forEach((function(e){if(e.match(Pt)){var t=e.split("[__internal_test__]"),r=t[t.length-1];(0,ue.Pb)(r)&&i.push(JSON.parse(r))}else h.push(e);n=h.length>=1?h.join("\n"):null}))}if(null!==n){if("string"===typeof n&&n.match(Et)){var m=n.split("[__internal_output__]"),v=m[m.length-1],g=v.split("FloatProgress");if(m.length>=2&&(v=g[0]),(0,ue.Pb)(v)){var b=JSON.parse(v),x=b.data,j=b.type;if(Qe.Gi.TABLE===j){!0;var y=e(x,{borderTop:s,selected:E});t.push(y),ee||(o=y)}}}else if(a===Qe.Gi.TABLE){!0;var k=e((0,ue.Pb)(n)?JSON.parse(n):n,{borderTop:s,selected:E});t.push(k),ee||(o=k)}else if(Qe.jU.includes(a)){var Z,C=null===(Z=n)||void 0===Z?void 0:Z.split("\\n");o=(0,P.jsx)(_t,zt(zt({},u),{},{children:C.map((function(e){return(0,P.jsx)(_.ZP,{monospace:!0,preWrap:!0,children:(0,P.jsx)(bt(),{children:e})},e)}))}))}else if(a===Qe.Gi.TEXT_HTML)o=(0,P.jsx)(_t,zt(zt({},u),{},{children:(0,P.jsx)(Ct,{children:(0,P.jsx)(_.ZP,{dangerouslySetInnerHTML:{__html:n},monospace:!0})})}));else if(a===Qe.Gi.IMAGE_PNG)o=(0,P.jsx)("div",{style:{backgroundColor:"white"},children:(0,P.jsx)("img",{alt:"Image ".concat(l," from code output"),src:"data:image/png;base64, ".concat(n)})});else if(a===Qe.Gi.PROGRESS){var O=parseInt(n);q(O>90?90:O)}o&&p.push((0,P.jsx)("div",{children:o},"code-output-".concat(l,"-").concat(r)))}})),p.length>=1&&n.push(p)}})),h&&(null===y||void 0===y?void 0:y.type)===k.qL.PYSPARK&&n.unshift([(0,P.jsx)(_t,{contained:!0,children:(0,P.jsx)(Z.Z,{mt:1,children:J})},"progress_bar")]),{content:n,tableContent:t,testContent:i}}),[Y,c,ee,h,m,y,J,E]),ie=te.content,re=te.tableContent,oe=te.testContent,le=(null===W||void 0===W?void 0:W[1])||0,ce=le>30?" (30 out of ".concat(le," columns displayed)"):"",ae=(0,s.useMemo)((function(){var e;if(ee&&I){var n=I.uuid;if(It.uuid===n)(null===re||void 0===re?void 0:re.length)>=1?e=re:h||(e=(0,P.jsx)(Z.Z,{px:2,py:1,children:(0,P.jsx)(_.ZP,{muted:!0,children:d?"Error, check logs.":"No preview to display yet, try running the block."})}));else if(Tt.uuid===n)(null===ie||void 0===ie?void 0:ie.length)>=1?e=ie:h||(e=(0,P.jsx)(Z.Z,{px:2,py:1,children:(0,P.jsx)(_.ZP,{muted:!0,children:d?"Error, check logs.":"No logs to display yet, try running the block."})}));else if(At.uuid===n){var r,o=null===t||void 0===t||null===(r=t.dbt)||void 0===r?void 0:r.sql;e=o?(0,P.jsx)(Ve.Z,{autoHeight:!0,language:A.SQL,padding:!0,readOnly:!0,value:o,width:"100%"}):null}else if(Rt.uuid===n){var l,c=null===t||void 0===t||null===(l=t.dbt)||void 0===l?void 0:l.lineage;e=c?(0,P.jsx)(jt.Z,{disabled:!0,enablePorts:!1,height:55*$.iI,pannable:E,pipeline:zt(zt({},y),{},{blocks:c}),zoomable:E}):null}}else e=ie;return(0,P.jsxs)(P.Fragment,{children:[i,e]})}),[t,i,ie,d,ee,h,y,E,I,re]);return i||f?(0,P.jsxs)(P.Fragment,{children:[c&&(0,P.jsxs)(Zt,{addBottomPadding:h&&(null===y||void 0===y?void 0:y.type)===k.qL.PYSPARK,blockType:B,dynamicBlock:u,dynamicChildBlock:a,executedAndIdle:H,hasError:d,selected:E,children:[!o&&(null===oe||void 0===oe?void 0:oe.length)>=1&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.Z,{py:2,children:(0,P.jsx)(_t,{contained:!0,children:oe.map((function(e,n){var t=e.error,i=e.message,r=e.stacktrace;return(0,P.jsxs)(Z.Z,{mt:n>=1?3:0,children:[(0,P.jsx)(_.ZP,{monospace:!0,preWrap:!0,children:(0,P.jsx)(bt(),{children:"".concat(i).concat(t?" "+t:"")})}),null===r||void 0===r?void 0:r.map((function(e){return(0,P.jsx)(_.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:(0,P.jsx)(bt(),{children:e})},e)}))]},i)}))})}),(0,P.jsx)(Z.Z,{mb:d?2:0,children:(0,P.jsx)(yt.Z,{medium:!0})})]}),!o&&ae]}),!c&&ae,H&&!p&&(0,P.jsxs)(Ot,{blockType:B,dynamicBlock:u,dynamicChildBlock:a,hasError:d,selected:E,children:[(0,P.jsx)(St,{}),(0,P.jsxs)(x.Z,{justifyContent:"space-between",children:[T&&(0,P.jsx)(He.Z,{alignItems:"center",px:1,children:(0,P.jsx)(g.Z,{basic:!0,iconOnly:!0,noPadding:!0,onClick:function(){return T(!o)},transparent:!0,children:o?(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(X._M,{muted:!0,size:2*$.iI}),"\xa0",(0,P.jsx)(_.ZP,{default:!0,children:"Expand output"})]}):(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(X.Kh,{muted:!0,size:2*$.iI}),W&&(0,P.jsx)(Z.Z,{ml:2,children:(0,P.jsx)(_.ZP,{children:"".concat(W[0]," rows x ").concat(W[1]," columns").concat(ce)})})]})})}),(0,P.jsx)(wt,{children:(0,P.jsxs)(x.Z,{alignItems:"center",fullWidth:!0,justifyContent:"flex-end",children:[(0,P.jsx)(dn.Z,{appearAbove:!0,appearBefore:!0,block:!0,label:C>=1&&w?"Last run at ".concat(new Date(w.valueOf()).toLocaleString()):d?"Block executed with errors":"Block executed successfully",size:null,widthFitContent:!0,children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[C>=1&&Number(O)>Number(w)&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(_.ZP,{small:!0,children:[(Number(O)-Number(w))/1e3,"s"]}),(0,P.jsx)(Z.Z,{mr:1})]}),!d&&(0,P.jsx)(X.Jr,{size:2*$.iI,success:!0}),d&&(0,P.jsx)(L.Z,{danger:!0,size:2*$.iI,children:(0,P.jsx)(_.ZP,{bold:!0,monospace:!0,small:!0,children:"!"})})]})}),!d&&!v.Qj.includes(B)&&(0,P.jsx)(Z.Z,{pl:1,children:(0,P.jsx)(g.Z,{afterIcon:(0,P.jsx)(X.M0,{muted:!0,size:1.75*$.iI}),basic:!0,noPadding:!0,onClick:function(){!function(e,n){var t=Ut(e);t.includes(n)||(0,S.t8)(Ft(e),[].concat((0,r.Z)(t),[n]))}(null===y||void 0===y?void 0:y.uuid,n.uuid),null===j||void 0===j||j(U.DATA),null===R||void 0===R||R((function(e){return e.find((function(e){return e.uuid===n.uuid}))?e:(null===D||void 0===D||D(n),e.concat(n))}))},transparent:!0,children:(0,P.jsx)(_.ZP,{default:!0,children:"Expand table"})})})]})})]})]})]}):null},Vt="buckets",Qt="chart_style",qt="group_by",Kt="height",Yt="index",Xt="legend_labels",Jt="limit",$t="metrics",ei="time_interval",ni="width_percentage",ti="x",ii="y",ri="y_sort_order",oi="data_provider",li="data_provider_database",ci="data_provider_profile",ui="data_provider_schema",ai="data_provider_table",si="dbt_project_name",di="dbt_profile_target",fi="export_write_policy",pi="limit",hi="use_raw_sql",mi=[ti,ii];!function(e){e.BAR_CHART="bar chart",e.HISTOGRAM="histogram",e.LINE_CHART="line chart",e.PIE_CHART="pie chart",e.TABLE="table",e.TIME_SERIES_BAR_CHART="time series bar chart",e.TIME_SERIES_LINE_CHART="time series line chart"}(Wt||(Wt={}));var vi,gi,bi=[Wt.BAR_CHART,Wt.HISTOGRAM,Wt.LINE_CHART,Wt.PIE_CHART,Wt.TABLE,Wt.TIME_SERIES_BAR_CHART,Wt.TIME_SERIES_LINE_CHART];!function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(vi||(vi={})),function(e){e.AVERAGE="average",e.COUNT="count",e.COUNT_DISTINCT="count_distinct",e.MAX="max",e.MEDIAN="median",e.MIN="min",e.MODE="mode",e.SUM="sum"}(gi||(gi={}));var xi,ji,yi,ki,Zi,_i,Ci,Oi,wi,Si=[gi.AVERAGE,gi.COUNT,gi.COUNT_DISTINCT,gi.MAX,gi.MEDIAN,gi.MIN,gi.MODE,gi.SUM];!function(e){e.ASCENDING="ascending",e.DESCENDING="descending"}(xi||(xi={})),function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.MONTH="month",e.ORIGINAL="original",e.SECOND="second",e.WEEK="week",e.YEAR="year"}(ji||(ji={})),function(e){e.COLUMNS="columns",e.METRICS="metrics",e.NUMBER="number"}(wi||(wi={}));var Ei={noCode:[{label:function(){return"time column"},settings:{maxValues:1},type:wi.COLUMNS,uuid:qt},{label:function(){return"time interval"},options:[ji.ORIGINAL,ji.SECOND,ji.MINUTE,ji.HOUR,ji.DAY,ji.WEEK,ji.MONTH,ji.YEAR],uuid:ei},{label:function(){return"metrics"},type:wi.METRICS,uuid:$t}]},Pi=(yi={},(0,l.Z)(yi,Wt.BAR_CHART,{noCode:[{label:function(){return"group by columns"},type:wi.COLUMNS,uuid:qt},{label:function(){return"metrics"},type:wi.METRICS,uuid:$t},{autoRun:!0,label:function(){return"chart style"},options:[vi.HORIZONTAL,vi.VERTICAL],uuid:Qt},{autoRun:!0,label:function(){return"sort direction"},options:[null,xi.ASCENDING,xi.DESCENDING],uuid:ri}],code:[{label:function(){return"variable name of x-axis values"},monospace:!0,uuid:ti},{label:function(){return"variable name of y-axis values"},monospace:!0,uuid:ii}]}),(0,l.Z)(yi,Wt.HISTOGRAM,{noCode:[{label:function(){return"number column for chart"},settings:{maxValues:1},type:wi.COLUMNS,uuid:qt},{autoRun:!0,label:function(){return"Number of buckets"},type:wi.NUMBER,uuid:Vt}],code:[{label:function(){return"variable name of values"},monospace:!0,uuid:ti}]}),(0,l.Z)(yi,Wt.LINE_CHART,{noCode:[{label:function(){return"group by columns"},settings:{maxValues:1},type:wi.COLUMNS,uuid:qt},{label:function(){return"metrics"},type:wi.METRICS,uuid:$t}],code:[{label:function(){return"variable name of x-axis values"},monospace:!0,uuid:ti},{label:function(){return"variable name of y-axis values"},monospace:!0,uuid:ii},{label:function(){return"labels of lines in chart (comma separated)"},uuid:Xt}]}),(0,l.Z)(yi,Wt.PIE_CHART,{noCode:[{label:function(){return"column for chart"},settings:{maxValues:1},type:wi.COLUMNS,uuid:qt},{autoRun:!0,label:function(){return"Number of slices"},type:wi.NUMBER,uuid:Vt}],code:[{label:function(){return"variable name of values"},monospace:!0,uuid:ti}]}),(0,l.Z)(yi,Wt.TABLE,{noCode:[{label:function(){return"columns"},type:wi.COLUMNS,uuid:qt},{label:function(){return"max number of rows"},type:wi.NUMBER,uuid:Jt}],code:[{label:function(){return"variable name of columns"},monospace:!0,uuid:ti},{label:function(){return"variable name of rows"},monospace:!0,uuid:ii}]}),(0,l.Z)(yi,Wt.TIME_SERIES_BAR_CHART,Ei),(0,l.Z)(yi,Wt.TIME_SERIES_LINE_CHART,Ei),yi),Ii=(ki={},(0,l.Z)(ki,Wt.BAR_CHART,{configuration:function(e){var n;return n={},(0,l.Z)(n,ti,"x"),(0,l.Z)(n,ii,"y"),(0,l.Z)(n,Qt,vi.VERTICAL),n},content:function(e){return"columns = df_1.columns\nx = df_1.columns[:7]\ny = [[v] for v in [len(df_1[col].unique()) for col in x]]\n"}}),(0,l.Z)(ki,Wt.HISTOGRAM,{configuration:function(e){var n;return n={},(0,l.Z)(n,Vt,10),(0,l.Z)(n,ti,"x"),n},content:function(e){return"columns = df_1.columns\ncol = list(filter(lambda x: df_1[x].dtype == float or df_1[x].dtype == int, columns))[0]\nx = df_1[col]\n"}}),(0,l.Z)(ki,Wt.LINE_CHART,{configuration:function(e){var n;return n={},(0,l.Z)(n,ti,"x"),(0,l.Z)(n,ii,"y"),n},content:function(e){return"columns = df_1.columns\ncols = list(filter(lambda x: df_1[x].dtype == float or df_1[x].dtype == int, columns))\nx = df_1[cols[0]]\ny = [df_1[cols[1]]]\n"}}),(0,l.Z)(ki,Wt.PIE_CHART,{configuration:function(e){var n;return n={},(0,l.Z)(n,Vt,7),(0,l.Z)(n,ti,"x"),n},content:function(e){return"x = df_1[df_1.columns[0]]"}}),(0,l.Z)(ki,Wt.TABLE,{configuration:function(e){var n;return n={},(0,l.Z)(n,Jt,10),(0,l.Z)(n,ti,"x"),(0,l.Z)(n,ii,"y"),n},content:function(e){return"x = df_1.columns\ny = df_1.to_numpy()"}}),(0,l.Z)(ki,Wt.TIME_SERIES_BAR_CHART,{configuration:function(e){return(0,l.Z)({},ei,ji.ORIGINAL)}}),(0,l.Z)(ki,Wt.TIME_SERIES_LINE_CHART,{configuration:function(e){return(0,l.Z)({},ei,ji.ORIGINAL)}}),ki),Ti=(Oi={},(0,l.Z)(Oi,Wt.BAR_CHART,(Zi={},(0,l.Z)(Zi,ti,(function(){return"must be a list of booleans, dates, integers, floats, or strings."})),(0,l.Z)(Zi,ii,(function(){return"must be a list of lists containing integers or floats."})),Zi)),(0,l.Z)(Oi,Wt.HISTOGRAM,(0,l.Z)({},ti,(function(){return"must be a list of integers or floats."}))),(0,l.Z)(Oi,Wt.LINE_CHART,(_i={},(0,l.Z)(_i,ti,(function(){return"must be a list of integers or floats."})),(0,l.Z)(_i,ii,(function(){return"must be a list of lists containing integers or floats. Each list is a single line in the chart."})),_i)),(0,l.Z)(Oi,Wt.PIE_CHART,(0,l.Z)({},ti,(function(){return"must be a list of booleans, dates, integers, floats, or strings."}))),(0,l.Z)(Oi,Wt.TABLE,(Ci={},(0,l.Z)(Ci,ti,(function(){return"must be a list of strings."})),(0,l.Z)(Ci,ii,(function(){return"must be a list of lists containing booleans, dates, integers, floats, or strings."})),Ci)),Oi),Ai=[{label:function(){return"% of missing values"},widgetTemplate:function(e){var n,t=e.block;return{name:"missing values for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(n={},(0,l.Z)(n,ti,"columns_with_mising_values"),(0,l.Z)(n,ii,"percentage_of_missing_values"),(0,l.Z)(n,Qt,vi.HORIZONTAL),(0,l.Z)(n,ri,xi.DESCENDING),(0,l.Z)(n,"chart_type",Wt.BAR_CHART),n),content:"number_of_rows = len(df_1.index)\ncolumns_with_mising_values = []\npercentage_of_missing_values = []\nfor col in df_1.columns:\n missing = df_1[col].isna().sum()\n if missing > 0:\n columns_with_mising_values.append(col)\n percentage_of_missing_values.append(100 * missing / number_of_rows)\n"}}},{label:function(){return"Unique values"},widgetTemplate:function(e){var n,t=e.block;return{name:"unique values for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(n={},(0,l.Z)(n,ti,"columns"),(0,l.Z)(n,ii,"number_of_unique_values"),(0,l.Z)(n,Qt,vi.HORIZONTAL),(0,l.Z)(n,ri,xi.DESCENDING),(0,l.Z)(n,"chart_type",Wt.BAR_CHART),n),content:"columns = df_1.columns\nnumber_of_unique_values = [df_1[col].nunique() for col in columns]\n"}}},{label:function(){return"Most frequent values"},widgetTemplate:function(e){var n,t=e.block;return{name:"most frequent values for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(n={},(0,l.Z)(n,Kt,3e3),(0,l.Z)(n,Yt,"column_index"),(0,l.Z)(n,ti,"columns"),(0,l.Z)(n,ii,"rows"),(0,l.Z)(n,"chart_type",Wt.TABLE),n),content:"columns = ['mode value', 'frequency', '% of values']\n\ncolumn_index = []\nrows = []\nfor col in df_1.columns:\n value_counts = df_1[col].value_counts()\n if len(value_counts.index) == 0:\n continue\n column_value = value_counts.index[0]\n value = value_counts[column_value]\n number_of_rows = df_1[col].count()\n column_index.append(col)\n rows.append([\n column_value,\n f'{round(100 * value / number_of_rows, 2)}%',\n value,\n ])\n"}}},{label:function(){return"Summary overview"},widgetTemplate:function(e){var n,t=e.block;return{name:"summary overview for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(n={},(0,l.Z)(n,Kt,3e3),(0,l.Z)(n,Yt,"stats"),(0,l.Z)(n,ti,"headers"),(0,l.Z)(n,ii,"rows"),(0,l.Z)(n,"chart_type",Wt.TABLE),n),content:"from mage_ai.data_cleaner.column_types.column_type_detector import infer_column_types\n\n\nheaders = ['value']\nstats = ['Columns', 'Rows']\nrows = [[len(df_1.columns)], [len(df_1.index)]]\n\ncol_counts = {}\nfor col, col_type in infer_column_types(df_1).items():\n col_type_name = col_type.value\n if not col_counts.get(col_type_name):\n col_counts[col_type_name] = 0\n col_counts[col_type_name] += 1\n\nfor col_type, count in sorted(col_counts.items()):\n stats.append(f'# of {col_type}')\n rows.append([count])\n"}}},{label:function(){return"Feature profiles"},widgetTemplate:function(e){var n,t=e.block;return{name:"feature profiles for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(n={},(0,l.Z)(n,Kt,3e3),(0,l.Z)(n,Yt,"stats"),(0,l.Z)(n,ti,"columns"),(0,l.Z)(n,ii,"rows"),(0,l.Z)(n,"chart_type",Wt.TABLE),n),content:"from mage_ai.data_cleaner.column_types.column_type_detector import infer_column_types\nimport statistics\n\n\ncolumns_and_types = infer_column_types(df_1).items()\ncolumns = [t[0] for t in columns_and_types]\nstats = ['Type', 'Missing values', 'Unique values', 'Min', 'Max', 'Mean', 'Median', 'Mode']\nrows = [[] for _ in stats]\n\nfor col, col_type in columns_and_types:\n series = df_1[col]\n min_value = None\n max_value = None\n mean = None\n median = None\n\n not_null = series[series.notnull()]\n\n if col_type.value in ['number', 'number_with_decimals']:\n count = len(not_null.index)\n if count >= 1:\n mean = round(not_null.sum() / count, 2)\n median = sorted(not_null)[int(count / 2)]\n min_value = round(series.min(), 2)\n max_value = round(series.max(), 2)\n else:\n min_value = not_null.astype(str).min()\n max_value = not_null.astype(str).max()\n\n _, mode = sorted(\n [(v, k) for k, v in not_null.value_counts().items()],\n reverse=True,\n )[0]\n\n for idx, value in enumerate([\n col_type.value,\n len(series[series.isna()].index),\n len(series.unique()),\n min_value,\n max_value,\n mean,\n median,\n mode,\n ]):\n rows[idx].append(value)\n"}}}];function Ri(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Di(e){for(var n=1;n=0;){var c;r=n[l-1],v.tf.SCRATCHPAD===(null===(c=r)||void 0===c?void 0:c.type)&&(r=null),l-=1}return r&&o.push(r.uuid),v.Ut.map((function(n){return{label:function(){return"Convert to ".concat((0,ue.wX)(v.V4[n]))},onClick:function(){return i({converted_from_type:n,converted_from_uuid:e.uuid,type:n,upstream_blocks:o})},uuid:"".concat(t,"/convert_to/").concat(n)}}))},Vi=function(e,n,t,i,r,o){var l=e||{},c=l.configuration,u=l.downstream_blocks,a=l.has_callback,s=l.upstream_blocks,d=c||{},f=d.dynamic,p=d.reduce_output,h=v.tf.DBT===(null===e||void 0===e?void 0:e.type),m=[];if(v.tf.EXTENSION===e.type);else{m.push({label:function(){return h?"Execute and run upstream blocks":"Execute with upstream blocks"},onClick:function(){return n({block:e,runUpstream:!0})},uuid:"execute_upstream"}),h||m.push({label:function(){return"Execute block and run tests"},onClick:function(){return n({block:e,runTests:!0})},uuid:"run_tests"});var g=o||{},b=g.blocksMapping,x=g.fetchFileTree,j=g.fetchPipeline,y=g.savePipelineContent,k=g.updatePipeline,Z=[];if(u.forEach((function(e){var n=null===b||void 0===b?void 0:b[e];n&&n.upstream_blocks.forEach((function(e){var n,t;null!==b&&void 0!==b&&null!==(n=b[e])&&void 0!==n&&null!==(t=n.configuration)&&void 0!==t&&t.dynamic&&Z.push(b[e])}))})),h&&m.unshift.apply(m,[{label:function(){return"Run model"},onClick:function(){return n({block:e,runSettings:{run_model:!0}})},tooltip:function(){return"Execute command dbt run."},uuid:"run_model"},{label:function(){return"Test model"},onClick:function(){return n({block:e,runSettings:{test_model:!0}})},tooltip:function(){return"Execute command dbt test."},uuid:"test_model"},{label:function(){return"Build model"},onClick:function(){return n({block:e,runSettings:{build_model:!0}})},tooltip:function(){return"Execute command dbt build."},uuid:"build_model"},{label:function(){return"Add upstream models"},onClick:function(){k({pipeline:{add_upstream_for_block_uuid:null===e||void 0===e?void 0:e.uuid}})},tooltip:function(){return"Add upstream models for this model to the pipeline."},uuid:"add_upstream_models"}]),h||!y||!f&&0!==Z.length||m.push({label:function(){return f?"Disable block as dynamic":"Set block as dynamic"},onClick:function(){return y({block:zi(zi({},e),{},{configuration:zi(zi({},c),{},{dynamic:!f})})})},uuid:"dynamic"}),b)(null===s||void 0===s?void 0:s.find((function(e){var n,t;return null===b||void 0===b||null===(n=b[e])||void 0===n||null===(t=n.configuration)||void 0===t?void 0:t.dynamic})))&&m.push({label:function(){return p?"Don\u2019t reduce output":"Reduce output"},onClick:function(){return y({block:zi(zi({},e),{},{configuration:zi(zi({},c),{},{reduce_output:!p})})})},uuid:"reduce_output"});m.push({label:function(){return a?"Remove callback":"Add callback"},onClick:function(){return y({block:zi(zi({},e),{},{has_callback:!a})}).then((function(){x(),j()}))},uuid:"has_callback"})}return m.push({label:function(){return"Delete block"},onClick:function(){t(e),i(!1)},uuid:"delete_block"}),r?[m.pop()]:m};function Qi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function qi(e){for(var n=1;n=1){var j=lr(h,x.map((function(e){return{filterText:e,insertText:e,kind:t.languages.CompletionItemKind.Method,label:e,range:b}})));if(j.length>=1)return{suggestions:j}}var y=function(e,n,t){var i=(0,nr.M4)(e,n);if(i=i.match(/([\w_]+)./)){var r=(0,nr.S0)(e)[i[1]];if(r){var o=rr(r.split(" as ")[0].replace("from ","").replace("import ","").split(" ").reduce((function(e,n){return n.trim()?e.concat(n):e}),[]).join(".").split("."),t);if(null!==o&&void 0!==o&&o.functions)return null===o||void 0===o?void 0:o.functions}}return[]}(p,b,a);if((null===y||void 0===y?void 0:y.length)>=1){var k=lr(h,y.map((function(e){return{filterText:e,insertText:e,kind:t.languages.CompletionItemKind.Function,label:e,range:b}})));if(k.length>=1)return{suggestions:k}}if((null===u||void 0===u?void 0:u.length)>=1){var Z=new RegExp("\n@".concat(c));p.match(Z)&&f.push.apply(f,(0,r.Z)(lr(h,function(e,n,t){var i=t.block,r=t.blocks,o=i.upstream_blocks,l=(0,ee.HK)(r,(function(e){return e.uuid}));return o.map((function(t,i){var r=l[t].type,o=0===i?"output_0":"args[".concat(i-1,"]");return{label:"df ".concat(t," ").concat(r," block"),kind:e.languages.CompletionItemKind.Variable,documentation:"Variable for ".concat(r," ").concat(t," data."),insertText:o,range:n}}))}(t,b,e))))}if(h.word.match(/i|f/)){var _=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,l=(arguments.length>2?arguments[2]:void 0).word,c=new Set,u={};e.forEach((function(e){var n=e.group,t=e.id,i=e.imports;if([$i.MAGE_LIBRARY,$i.USER_LIBRARY].includes(n)){var r=t;r.match(/__init__.py/)&&(r=r.replace(/\/__init__.py/,"")),r=r.split(".py")[0].replaceAll("/","."),u[r]=e}var o=t.replace(".py","").replace("/__init__","").split("/");if(1===o.length)c.add("import ".concat(o[0]));else if(o.length>=2){var l=o.slice(0,o.length-1).join(".");c.add("from ".concat(l," import ").concat(o[o.length-1]))}i.forEach((function(e){return c.add(e)}))}));var a,s="i"===l,d="f"===l,f=s?"import":d?"from":"",p=(0,nr.M4)(n,i);if(s&&p.match(/from/)&&(a=p.match(/from ([A-Za-z0-9_.]+) /)[1]),a&&u[a]){var h=u[a],m=h.classes,v=h.constants,g=h.files,b=h.functions,x=[];return[[v,t.languages.CompletionItemKind.Constant],[m,t.languages.CompletionItemKind.Class],[b,t.languages.CompletionItemKind.Function]].forEach((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1];t.forEach((function(e){x.push({filterText:"import ".concat(e),insertText:"import ".concat(e),kind:r,label:e,range:i})}))})),g.forEach((function(e){var n=e.split("/"),r=n[n.length-1].split(".py")[0];x.push({filterText:"import ".concat(r),insertText:"import ".concat(r),kind:t.languages.CompletionItemKind.Variable,label:r,range:i})})),x}return(0,r.Z)(c).map((function(e){return{filterText:e,insertText:e,kind:t.languages.CompletionItemKind.File,label:e,range:i}})).concat(Object.entries(u).map((function(e){var n=(0,o.Z)(e,2),r=n[0];return n[1],{filterText:"".concat(f," ").concat(r),insertText:"".concat(f," ").concat(r," "),kind:t.languages.CompletionItemKind.File,label:"".concat(r),range:ir({},i)}})))}(n,p,h,t,b,e);f.push.apply(f,(0,r.Z)(_))}if(v.tf.CHART===c||v.tf.SCRATCHPAD===c){var C=[];if(v.tf.CHART===c?u.forEach((function(e,n){C.push({block:i.find((function(n){var t=n.uuid;return e===t})),matchIndex:0,variableName:"df_".concat(n+1)})})):v.tf.SCRATCHPAD===c&&function(e,n){return e.map((function(e){return{block:e,regex:new RegExp("([\\w_]+)[ ]*=[ ]*get_variable\\('".concat(n.uuid,"', '").concat(e.uuid,"', 'output_0'\\)"),"g")}}))}(i,l).forEach((function(e){var n=e.block,t=e.regex,i=p.matchAll(t);(0,r.Z)(i).forEach((function(e){var t=null===e||void 0===e?void 0:e.index,i=null===e||void 0===e?void 0:e[1];i&&C.push({block:n,matchIndex:t,variableName:i})}))})),C.length>=1){var O,w=null===(O=p.split("\n")[d.lineNumber-1])||void 0===O?void 0:O.slice(0,h.startColumn-1);if(w){var S=[];if(C.forEach((function(e){var n=e.block,i=e.matchIndex,r=e.variableName,o=new RegExp("".concat(r,"\\["));w.match(o)&&S.push({items:or(t,b,n),matchIndex:i})})),S.length>=1)return{suggestions:lr(h,(0,ee.YC)(S,"matchIndex",{ascending:!1})[0].items)}}}1===g&&(v.tf.CHART===c?f.push.apply(f,(0,r.Z)(lr(h,u.map((function(e,n){var i="df_".concat(n+1);return{label:"".concat(i," ").concat(e," block"),kind:t.languages.CompletionItemKind.Snippet,insertText:i,range:b}}))))):v.tf.SCRATCHPAD===c&&f.push.apply(f,(0,r.Z)(lr(h,function(e,n,t){var i=t.block,r=t.blocks,o=t.pipeline;return r.reduce((function(t,r){var l=r.type,c=r.uuid;return i.uuid!==c&&[v.tf.DATA_LOADER,v.tf.TRANSFORMER].includes(l)?t.concat({label:"df ".concat(c," ").concat(l," block"),kind:e.languages.CompletionItemKind.Snippet,documentation:"Get the data from ".concat(l," block ").concat(c,"."),insertText:"from mage_ai.data_preparation.variable_manager import get_variable\n\n\ndf = get_variable('".concat(o.uuid,"', '").concat(c,"', 'output_0')\n"),range:n}):t}),[])}(t,b,e)))))}var E=new Set;i.concat({content:p}).forEach((function(e){var n=e.content;(0,r.Z)(n.matchAll("([A-Za-z_0-9]+)","g")).forEach((function(e){return E.add(e[1])}))}));var P=(0,r.Z)(E);if(P.length){var I=P.map((function(e){return{filterText:e,insertText:e,kind:t.languages.CompletionItemKind.Variable,label:e,range:b}}));f.push.apply(f,(0,r.Z)(lr(h,I)))}return{suggestions:f}}}}var ur=t(32365),ar=t(80636),sr=t(25958),dr=t(66653),fr=t(87323);function pr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function hr(e){for(var n=1;n=1&&Cn(t)}}),[y,Ln,Cn]);var Fn=(0,kt.Z)(K);(0,s.useEffect)((function(){"undefined"!==typeof K&&K.length!==(null===Fn||void 0===Fn?void 0:Fn.length)&&Cn(K)}),[K,Fn,Cn]);var Un=(0,s.useMemo)((function(){var e=new Set;return null===A||void 0===A||A.forEach((function(n){var t=n.profiles;e=new Set([].concat((0,r.Z)(e),(0,r.Z)(t)))})),(0,r.Z)(e)}),[A]),zn=(0,s.useMemo)((function(){return"".concat(null===re||void 0===re?void 0:re.uuid,"/").concat(null===y||void 0===y?void 0:y.uuid,"/codeCollapsed")}),[null===re||void 0===re?void 0:re.uuid,null===y||void 0===y?void 0:y.uuid]),Wn=(0,s.useMemo)((function(){return"".concat(null===re||void 0===re?void 0:re.uuid,"/").concat(null===y||void 0===y?void 0:y.uuid,"/outputCollapsed")}),[null===re||void 0===re?void 0:re.uuid,null===y||void 0===y?void 0:y.uuid]);(0,s.useEffect)((function(){Be((0,S.U2)(zn,!1)),pn((0,S.U2)(Wn,!1))}),[zn,Wn]);var Gn=(0,s.useRef)(null),Vn=(0,s.useMemo)((function(){return(0,ee.HK)(T,(function(e){return e.uuid}))}),[T]),Qn=(0,s.useMemo)((function(){return!(null===Ce||void 0===Ce||!Ce.find((function(e){return e.upstream_blocks.includes(y.uuid)})))}),[y,Ce]),qn=(0,s.useCallback)((function(e){var n=e||{},t=n.block,i=n.code,r=n.disableReset,o=n.runDownstream,l=n.runSettings,c=n.runUpstream,u=n.runTests;if(null===u||"undefined"===typeof u){var a=(t||{}).type;u=[v.tf.DATA_LOADER,v.tf.DATA_EXPORTER,v.tf.TRANSFORMER].includes(a)}oe({block:t,code:i||Fe,runDownstream:o||Qn,runSettings:l,runTests:u||!1,runUpstream:c||!1}),r||(vn(1+Number(mn)),xn(null),pn(!1))}),[Fe,Qn,mn,oe,vn,xn]),Kn=!(null===le||void 0===le||!le.find((function(e){return e.uuid===y.uuid})))||(null===_n||void 0===_n?void 0:_n.length)>=1&&B!==Qe.uF.IDLE;(0,s.useEffect)((function(){Kn&&kn(Number(new Date))}),[Kn,kn]);var Xn=(0,kt.Z)(B);(0,s.useEffect)((function(){B===Qe.uF.IDLE&&B!==Xn&&xn(Number(new Date))}),[B,Xn,xn]);var Jn=(0,s.useCallback)((function(e){var n=e.editorRect,t=(n.height,n.top),i=e.position.lineNumber;if(null!==V&&void 0!==V&&V.current){var r=V.current.getBoundingClientRect().height,o=i*ur.aU;if(t+o>r){var l=V.current.scrollTop+(o-r+t);V.current.scrollTo(0,l)}else if(o+t=0?en.map((function(e){return{data:e,execution_state:Qe.uF.IDLE,type:Qe.Gi.TEXT_PLAIN}})):_n.filter((function(e){return null===e||void 0===e?void 0:e.type}))}),[en,_n]),et=!!$n.find((function(e){return e.error})),nt=(0,ce.qn)(y.type,{blockColor:y.color,theme:Oe}).accent,tt=(null===y||void 0===y||null===(i=y.upstream_blocks)||void 0===i?void 0:i.length)||0,it=(0,fr.cU)([y],T)[0],rt=it.dynamic,ot=it.dynamicUpstreamBlock,lt=it.reduceOutput,ct=it.reduceOutputUpstreamBlock,ut=(0,s.useMemo)((function(){var e=[];rt&&e.push({title:"Dynamic",description:"This block will create N blocks for each of its downstream blocks."});var n=ot&&!ct;return n&&(e.push({title:"Dynamic child",description:"This block is dynamically created by its upstream parent block that is dynamic."}),lt&&e.push({title:"Reduce output",description:"Reduce output from all dynamically created blocks into a single array output."})),{borderColorShareProps:{blockColor:null===y||void 0===y?void 0:y.color,blockType:null===y||void 0===y?void 0:y.type,dynamicBlock:rt,dynamicChildBlock:n,hasError:et,selected:se},tags:e}}),[null===y||void 0===y?void 0:y.color,null===y||void 0===y?void 0:y.type,rt,ot,et,lt,ct,se]),at=ut.borderColorShareProps,ft=ut.tags,pt=$n.length>=1,gt=(0,s.useCallback)((function(){se||(null===fe||void 0===fe||fe(!1),null===ye||void 0===ye||ye(!0))}),[se,fe,ye]),bt=be.ZP.blocks.pipelines.detail(null===re||void 0===re?void 0:re.uuid,Rt.uuid===(null===wn||void 0===wn?void 0:wn.uuid)||At.uuid===(null===wn||void 0===wn?void 0:wn.uuid)?encodeURIComponent(null===y||void 0===y?void 0:y.uuid):null,{_format:"dbt"},{revalidateOnFocus:!0}),xt=bt.data,jt=bt.mutate,Zt=(0,s.useMemo)((function(){var e;return(null===xt||void 0===xt||null===(e=xt.block)||void 0===e?void 0:e.metadata)||{}}),[xt]),_t=(0,d.Db)(be.ZP.blocks.pipelines.useUpdate(null===re||void 0===re?void 0:re.uuid,y.uuid),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(){on(!1),H(),U(),Ue(Fe)},onErrorCallback:function(e){var n=e.error,t=n.errors,i=n.message;console.log(t,i)}})},onError:function(e){var n=(0,je.qQ)(e).messages;nn(n)}}),Ct=(0,o.Z)(_t,1)[0],Ot="CodeBlock/".concat(y.uuid),wt=(0,Xe.y)(),St=wt.registerOnKeyDown,Et=wt.unregisterOnKeyDown;(0,s.useEffect)((function(){return function(){Et(Ot)}}),[Et,Ot]),St(Ot,(function(e,n,t){rn&&String(t[0])===String(O.Uq)&&String(t[1])!==String(O.zX)?y.uuid===cn?e.target.blur():Ct({block:hr(hr({},y),{},{name:cn})}):se&&!W&&((0,E.y)([O.zX,O.Uq],n)||(0,E.y)([O.PQ,O.Uq],n)?qn({block:y}):(0,E.y)([O.XR,O.Uq],n)&&p&&(e.preventDefault(),p({language:y.language,type:y.type,upstream_blocks:[y.uuid]}),qn({block:y})))}),[p,y,W,rn,cn,qn,se,Ct]),(0,s.useEffect)((function(){var e;return yn&&(e=setInterval((function(){return Ge(Number(new Date))}),1e3)),function(){return clearInterval(e)}}),[yn]);var Pt=(0,s.useCallback)((function(e){return(0,l.Z)({},v.tf.SCRATCHPAD,(0,r.Z)(Gi(e,T,"block_menu/scratchpad",p)).map((function(e){return hr(hr({},e),{},{onClick:function(){return ae().then((function(){return e.onClick()}))}})})))[e.type]}),[p,T,ae]),It=(0,s.useMemo)((function(){var e;return(null===y||void 0===y||null===(e=y.metadata)||void 0===e?void 0:e.dbt)||{project:null,projects:{}}}),[y]),Tt=(0,s.useMemo)((function(){return It.projects||{}}),[It]),Mt=(0,s.useMemo)((function(){return It.project||Ye.dbt_project_name}),[Ye,It]),Nt=(0,s.useMemo)((function(){return Tt[Mt]||{target:null,targets:[]}}),[Mt,Tt]),Lt=(0,s.useMemo)((function(){return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ve.Z,{autoHeight:!0,autocompleteProviders:Ie,height:z,language:y.language,onChange:function(e){Ue(e),null===ne||void 0===ne||ne(e)},onDidChangeCursorPosition:Jn,placeholder:v.tf.DBT===y.type&&v.t6.YAML===y.language?"e.g. --select ".concat(Mt||"project","/models --exclude ").concat(Mt||"project","/models/some_dir"):"Start typing here...",selected:se,setSelected:ye,setTextareaFocused:Ze,shortcuts:[function(e,n){return(0,ar.Q)(e,(function(){W||qn({block:y,code:n.getValue()})}))}],textareaFocused:_e,value:Fe,width:"100%"}),Dn&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(yt.Z,{}),(0,P.jsxs)(Z.Z,{mt:1,children:[(0,P.jsxs)(ce.y9,{children:[(0,P.jsx)(_.ZP,{small:!0,children:"Callback block: define @on_success or @on_failure callbacks for this block."}),(0,P.jsxs)(_.ZP,{monospace:!0,muted:!0,small:!0,children:["kwargs",(0,P.jsx)(_.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:" \u2192 "}),"global variables"]})]}),(0,P.jsx)(Ve.Z,{autoHeight:!0,autocompleteProviders:Ie,language:"python",onChange:function(e){Bn(e),null===J||void 0===J||J(e)},onDidChangeCursorPosition:Jn,placeholder:"Start typing here...",selected:se,setSelected:ye,setTextareaFocused:Ze,textareaFocused:_e,value:Nn,width:"100%"})]})]})]})}),[Ie,y,Nn,Fe,Mt,Dn,z,W,J,ne,Jn,qn,se,Ue,ye,Ze,_e]);(0,s.useEffect)((function(){Te({python:cr({autocompleteItems:j,block:y,blocks:T,pipeline:re})})}),[j,y,T,re]);var Ft=(0,s.useMemo)((function(){return Pn?(0,P.jsx)(Z.Z,{py:1,children:(0,P.jsx)(vt.Z,{onClickTab:function(e){Sn(e),Rt.uuid!==e.uuid&&At.uuid!==e.uuid||jt()},selectedTabUUID:null===wn||void 0===wn?void 0:wn.uuid,small:!0,tabs:Dt})}):null}),[jt,Pn,wn]),Ut=(0,s.useMemo)((function(){return(0,P.jsx)(Gt,hr(hr({},at),{},{block:y,blockMetadata:Zt,buttonTabs:Ft,collapsed:fn,hasOutput:pt,isInProgress:Kn,mainContainerWidth:Q,messages:$n,openSidekickView:ie,pipeline:re,runCount:mn,runEndTime:bn,runStartTime:yn,selected:se,selectedTab:wn,setCollapsed:function(e){pn((function(){return(0,S.t8)(Wn,e),e}))},setOutputBlocks:ve,setSelectedOutputBlock:ke,setSelectedTab:Sn}))}),[y,Zt,at,Ft,pt,Kn,Q,$n,ie,fn,Wn,re,mn,bn,yn,se,wn,ve,pn,ke]),Ht=(0,s.useCallback)((function(){return De(!1)}),[]),zt=(0,s.useCallback)((function(e){Je((function(n){var t=hr(hr({},n),e);return(t.data_provider&&t.data_provider_profile||t.dbt_profile_target||t.dbt_project_name||t.limit)&&ae({block:{configuration:t,uuid:y.uuid}}),t}))}),[y,ae]),Wt=Yn.BIGQUERY===Ye.data_provider||Yn.SNOWFLAKE===Ye.data_provider,Vt=(0,s.useMemo)((function(){return(null===T||void 0===T?void 0:T.length)||0}),[T]);return(0,P.jsxs)("div",{ref:n,style:{position:"relative",zIndex:w===h?Vt+9:null},children:[(0,P.jsxs)("div",{style:{position:"relative"},children:[(0,P.jsx)(ce.nz,hr(hr({},at),{},{onClick:function(){return gt()},zIndex:Vt+1-(w||0),children:(0,P.jsxs)(x.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(He.Z,{alignItems:"center",flex:1,children:[(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(mt.Z,{children:v.dO[y.language]}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsx)(L.Z,{color:nt,size:1.5*$.iI,square:!0}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsx)(Hn.Z,{items:Pt(y),onClickCallback:Ht,onClickOutside:Ht,open:Re,parentRef:Gn,uuid:"CodeBlock/block_menu",children:(0,P.jsx)(_.ZP,{color:nt,monospace:!0,children:null===(c=Pn?v.tf.DBT:v.V4[y.type])||void 0===c?void 0:c.toUpperCase()})}),v.tf.SCRATCHPAD===y.type&&(0,P.jsxs)(P.Fragment,{children:["\xa0",(0,P.jsx)(g.Z,{basic:!0,iconOnly:!0,noPadding:!0,onClick:function(){return De(!0)},transparent:!0,children:(0,P.jsx)(X.K5,{muted:!0})})]}),(0,P.jsx)(Z.Z,{mr:1})]}),(0,P.jsx)(Z.Z,{mr:$.cd}),(0,P.jsx)(X.iU,{size:1.5*$.iI}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsxs)(x.Z,{alignItems:"center",children:[Pn&&v.t6.YAML!==y.language&&(0,P.jsx)(_.ZP,{monospace:!0,muted:!0,children:(0,sr.$)(y,{fullPath:!0})}),(!Pn||v.t6.YAML===y.language)&&(0,P.jsx)(In,{bold:!1,inputValue:cn,monospace:!0,muted:!0,notRequired:!0,onBlur:function(){return setTimeout((function(){fe(!1),on(!1)}),300)},onChange:function(e){un(e.target.value),e.preventDefault()},onClick:function(){fe(!0),on(!0)},onFocus:function(){fe(!0),on(!0)},stacked:!0,value:!rn&&y.uuid}),rn&&!Pn&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.Z,{ml:1}),(0,P.jsx)(sn.Z,{onClick:function(){return ae({block:{name:cn,uuid:y.uuid}}).then((function(){on(!1),H(),U()}))},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Update name"})]})]}),(0,P.jsx)(Z.Z,{mr:2}),!v.iZ.includes(y.type)&&(0,P.jsx)(dn.Z,{appearBefore:!0,block:!0,label:"\n ".concat((0,ue._6)("parent block",tt),". ").concat(0===tt?"Click to select 1 or more blocks to depend on.":"Edit parent blocks.","\n "),size:null,widthFitContent:tt>=1,children:(0,P.jsx)(g.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e;ye(!0),he({upstreamBlocks:{block:y,values:null===(e=y.upstream_blocks)||void 0===e?void 0:e.map((function(e){return{uuid:e}}))}})},children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsxs)(_.ZP,{monospace:tt>=1,small:tt>=1,underline:0===tt,children:[0===tt&&"Edit parent blocks",tt>=1&&(0,ue._6)("parent block",tt)]}),(0,P.jsx)(Z.Z,{mr:1}),0===tt&&(0,P.jsx)(X.Jj,{size:3*$.iI}),tt>=1&&(0,P.jsx)(X.eV,{size:3*$.iI})]})})})]}),(0,P.jsx)(Yi,{addNewBlock:p,addWidget:m,block:y,blocks:T,deleteBlock:M,executionState:B,fetchFileTree:U,fetchPipeline:H,interruptKernel:G,pipeline:re,runBlock:W?null:qn,savePipelineContent:ae,setErrors:me,setOutputCollapsed:pn,visible:se||Kn}),(0,P.jsx)(Z.Z,{px:1,children:(0,P.jsx)(g.Z,{basic:!0,iconOnly:!0,noPadding:!0,onClick:function(){Be((function(e){return(0,S.t8)(zn,!e),!e})),Ne||pn((function(){return(0,S.t8)(Wn,!0),!0}))},transparent:!0,children:Ne?(0,P.jsx)(X._M,{muted:!0,size:2*$.iI}):(0,P.jsx)(X.Kh,{muted:!0,size:2*$.iI})})})]})})),(0,P.jsxs)(ce.Nk,{onClick:function(){return gt()},children:[(0,P.jsxs)(ce.jv,hr(hr({},at),{},{className:se&&_e?"selected":null,hasOutput:!!Ft||pt,children:[v.tf.DBT===y.type&&!Ne&&(0,P.jsxs)(ce.y9,{children:[(0,P.jsxs)(x.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(He.Z,{alignItems:"center",children:[v.t6.YAML===y.language&&(0,P.jsxs)(er.Z,{compact:!0,monospace:!0,onBlur:function(){return setTimeout((function(){fe(!1)}),300)},onChange:function(e){var n;zt((n={},(0,l.Z)(n,di,""),(0,l.Z)(n,si,e.target.value),n)),e.preventDefault()},onClick:dr.j,onFocus:function(){fe(!0)},placeholder:"Project",small:!0,value:Ye.dbt_project_name||"",children:[(0,P.jsx)("option",{value:""}),Object.keys(Tt||{}).map((function(e){return(0,P.jsx)("option",{value:e,children:e},e)}))]}),v.t6.YAML!==y.language&&(0,P.jsx)(_.ZP,{monospace:!0,small:!0,children:Mt}),(0,P.jsx)(Z.Z,{mr:2}),(0,P.jsx)(_.ZP,{monospace:!0,muted:!0,small:!0,children:"Target"}),(0,P.jsx)("span",{children:"\xa0"}),(0,P.jsxs)(er.Z,{compact:!0,disabled:!Mt,monospace:!0,onBlur:function(){return setTimeout((function(){fe(!1)}),300)},onChange:function(e){zt((0,l.Z)({},di,e.target.value)),e.preventDefault()},onClick:dr.j,onFocus:function(){fe(!0)},placeholder:Mt?Tn?null===Nt||void 0===Nt?void 0:Nt.target:null:"Select project first",small:!0,value:Ye.dbt_profile_target||"",children:[(0,P.jsx)("option",{value:""}),null===(u=Nt.targets)||void 0===u?void 0:u.map((function(e){return(0,P.jsx)("option",{value:e,children:e},e)}))]})]}),v.t6.YAML!==y.language&&(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(dn.Z,{appearBefore:!0,block:!0,description:(0,P.jsxs)(_.ZP,{default:!0,inline:!0,children:["Limit the number of results that are returned when running this block in the notebook.",(0,P.jsx)("br",{}),"This limit won\u2019t affect the number of results returned when running the pipeline end-to-end."]}),size:null,widthFitContent:!0,children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(X.kI,{muted:!0}),(0,P.jsx)("span",{children:"\xa0"}),(0,P.jsx)(_.ZP,{monospace:!0,muted:!0,small:!0,children:"Sample limit"}),(0,P.jsx)("span",{children:"\xa0"})]})}),(0,P.jsx)(C.Z,{compact:!0,monospace:!0,onBlur:function(){return setTimeout((function(){fe(!1)}),300)},onChange:function(e){zt((0,l.Z)({},pi,e.target.value)),e.preventDefault()},onClick:dr.j,onFocus:function(){fe(!0)},small:!0,type:"number",value:Ye.limit||"",width:10*$.iI}),(0,P.jsx)(Z.Z,{mr:5})]})]}),v.t6.YAML===y.language&&(0,P.jsx)(Z.Z,{mt:1,children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsxs)(He.Z,{flex:1,children:[(0,P.jsxs)(_.ZP,{monospace:!0,default:!0,small:!0,children:["dbt run ",(0,P.jsx)(_.ZP,{inline:!0,monospace:!0,small:!0,children:"[type your --select and --exclude syntax below]"})]}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsxs)(_.ZP,{monospace:!0,muted:!0,small:!0,children:["(paths start from ",(null===Ye||void 0===Ye?void 0:Ye.dbt_project_name)||"project"," folder)"]})]}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsx)(_.ZP,{muted:!0,small:!0,children:(0,P.jsx)(sn.Z,{href:"https://docs.getdbt.com/reference/node-selection/syntax#examples",openNewWindow:!0,small:!0,children:"Examples"})}),(0,P.jsx)(Z.Z,{mr:5})]})})]}),Tn&&!Ne&&v.tf.DBT!==y.type&&(0,P.jsx)(ce.y9,{children:(0,P.jsxs)(x.Z,{justifyContent:"space-between",children:[(0,P.jsxs)(x.Z,{children:[(0,P.jsxs)(er.Z,{compact:!0,label:"Connection",onChange:function(e){return zt((0,l.Z)({},oi,e.target.value))},onClick:dr.j,small:!0,value:Ye.data_provider,children:[(0,P.jsx)("option",{value:""}),null===A||void 0===A?void 0:A.map((function(e){var n=e.id,t=e.value;return(0,P.jsx)("option",{value:t,children:n},n)}))]}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsxs)(er.Z,{compact:!0,label:"Profile",onChange:function(e){return zt((0,l.Z)({},ci,e.target.value))},onClick:dr.j,small:!0,value:Ye.data_provider_profile,children:[(0,P.jsx)("option",{value:""}),null===Un||void 0===Un?void 0:Un.map((function(e){return(0,P.jsx)("option",{value:e,children:e},e)}))]}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsx)(x.Z,{alignItems:"center",children:(0,P.jsx)(dn.Z,{block:!0,description:(0,P.jsxs)(_.ZP,{default:!0,inline:!0,children:["If checked, you\u2019ll have to write your own custom",(0,P.jsx)("br",{}),"CREATE TABLE commands and INSERT commands.",(0,P.jsx)("br",{}),"Separate your commands using a semi-colon: ",(0,P.jsx)(_.ZP,{default:!0,inline:!0,monospace:!0,children:";"})]}),size:null,widthFitContent:!0,children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(b.Z,{checked:Ye.use_raw_sql,label:(0,P.jsx)(_.ZP,{muted:!0,small:!0,children:"Use raw SQL"}),onClick:function(e){(0,dr.j)(e),zt((0,l.Z)({},hi,!Ye.use_raw_sql))}}),(0,P.jsx)("span",{children:"\xa0"}),(0,P.jsx)(X.kI,{muted:!0})]})})}),!Ye.use_raw_sql&&(0,P.jsxs)(P.Fragment,{children:[Wt&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsx)(x.Z,{alignItems:"center",children:(0,P.jsx)(C.Z,{compact:!0,label:"Database",monospace:!0,onBlur:function(){return setTimeout((function(){fe(!1)}),300)},onChange:function(e){zt((0,l.Z)({},li,e.target.value)),e.preventDefault()},onClick:dr.j,onFocus:function(){fe(!0)},small:!0,value:Ye.data_provider_database,width:10*$.iI})})]}),(0,P.jsx)(Z.Z,{mr:1}),Ye.data_provider!==Xi.MYSQL&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(dn.Z,{block:!0,description:(0,P.jsxs)(_.ZP,{default:!0,inline:!0,children:["Schema that is used when creating a table and inserting values.",(0,P.jsx)("br",{}),"This field is required."]}),size:null,widthFitContent:!0,children:(0,P.jsx)(x.Z,{alignItems:"center",children:(0,P.jsx)(C.Z,{compact:!0,label:"Schema",monospace:!0,onBlur:function(){return setTimeout((function(){fe(!1)}),300)},onChange:function(e){zt((0,l.Z)({},ui,e.target.value)),e.preventDefault()},onClick:dr.j,onFocus:function(){fe(!0)},small:!0,value:Ye.data_provider_schema,width:10*$.iI})})}),(0,P.jsx)(Z.Z,{mr:1})]}),(0,P.jsx)(dn.Z,{block:!0,description:(0,P.jsxs)(_.ZP,{default:!0,inline:!0,children:["This value will be used as the table name.",(0,P.jsx)("br",{}),"If blank, the default table name will be:",(0,P.jsx)("br",{}),(0,P.jsxs)(_.ZP,{inline:!0,monospace:!0,children:[null===re||void 0===re?void 0:re.uuid,"_",null===y||void 0===y?void 0:y.uuid]}),(0,P.jsx)("br",{}),"This field is optional."]}),size:null,widthFitContent:!0,children:(0,P.jsx)(x.Z,{alignItems:"center",children:(0,P.jsx)(C.Z,{compact:!0,label:"Table (optional)",monospace:!0,onBlur:function(){return setTimeout((function(){fe(!1)}),300)},onChange:function(e){zt((0,l.Z)({},ai,e.target.value)),e.preventDefault()},onClick:dr.j,onFocus:function(){fe(!0)},small:!0,value:Ye.data_provider_table,width:20*$.iI})})})]})]}),!Ye.use_raw_sql&&(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(dn.Z,{appearBefore:!0,block:!0,description:(0,P.jsxs)(_.ZP,{default:!0,inline:!0,children:["How do you want to handle existing data with the same",Wt?" database,":""," schema, and table name?",(0,P.jsx)("br",{}),(0,P.jsx)(_.ZP,{bold:!0,inline:!0,monospace:!0,children:"Append"}),": add rows to the existing table.",(0,P.jsx)("br",{}),(0,P.jsx)(_.ZP,{bold:!0,inline:!0,monospace:!0,children:"Replace"}),": delete the existing data.",(0,P.jsx)("br",{}),(0,P.jsx)(_.ZP,{bold:!0,inline:!0,monospace:!0,children:"Fail"}),": raise an error during execution."]}),size:null,widthFitContent:!0,children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(X.kI,{muted:!0}),(0,P.jsx)("span",{children:"\xa0"}),(0,P.jsx)(_.ZP,{monospace:!0,muted:!0,small:!0,children:"Write policy:"}),(0,P.jsx)("span",{children:"\xa0"})]})}),(0,P.jsxs)(er.Z,{compact:!0,label:"strategy",onChange:function(e){return zt((0,l.Z)({},fi,e.target.value))},onClick:dr.j,small:!0,value:Ye.export_write_policy,children:[(0,P.jsx)("option",{value:""}),null===Ji||void 0===Ji?void 0:Ji.map((function(e){return(0,P.jsx)("option",{value:e,children:(0,ue.kC)(e)},e)}))]}),(0,P.jsx)(Z.Z,{mr:5})]})]})}),ft.length>=1&&(0,P.jsx)(ce.y9,{normalPadding:!0,children:(0,P.jsx)(x.Z,{children:ft.map((function(e,n){var t=e.description,i=e.title;return(0,P.jsx)(Z.Z,{ml:n>=1?1:0,children:(0,P.jsx)(dn.Z,{block:!0,description:t,size:null,widthFitContent:!0,children:(0,P.jsx)(mt.Z,{children:i})})},i)}))})}),y.upstream_blocks.length>=1&&!Ne&&v.f2.includes(y.type)&&!En&&(0,P.jsxs)(ce.y9,{children:[(0,P.jsx)(Z.Z,{mr:5,children:(0,P.jsxs)(_.ZP,{small:!0,children:[!Tn&&"Positional arguments for ".concat(An?"":"decorated ","function:"),Tn&&'The interpolated tables below are available in queries from upstream blocks. For example, you can use the query "SELECT * FROM {{ df_1 }}" to insert all the rows from an upstream block into the designated database table.']})}),(0,P.jsxs)(Z.Z,{mt:1,children:[!Tn&&!An&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(_.ZP,{monospace:!0,muted:!0,small:!0,children:[v.tf.DATA_EXPORTER===y.type&&"@data_exporter",v.tf.DATA_LOADER===y.type&&"@data_loader",v.tf.TRANSFORMER===y.type&&"@transformer",v.tf.CUSTOM===y.type&&"@custom"]}),(0,P.jsxs)(_.ZP,{monospace:!0,muted:!0,small:!0,children:["def ",(v.tf.DATA_EXPORTER===y.type?"export_data":v.tf.DATA_LOADER===y.type&&"load_data")||v.tf.TRANSFORMER===y.type&&"transform"||v.tf.CUSTOM===y.type&&"transform_custom","(",y.upstream_blocks.map((function(e,n){return n>=1?"data_".concat(n+1):"data"})).join(", "),"):"]})]}),An&&(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)(_.ZP,{monospace:!0,muted:!0,small:!0,children:[v.tf.DATA_EXPORTER===y.type?"export_data":v.tf.TRANSFORMER===y.type&&"transform","\xa0\u2190 function(",y.upstream_blocks.map((function(e,n){return"df_".concat(n+1)})).join(", "),"):"]})}),y.upstream_blocks.map((function(e,n){var t=Vn[e],i=(0,ce.qn)(null===t||void 0===t?void 0:t.type,{blockColor:null===t||void 0===t?void 0:t.color,theme:Oe}).accent,r="{{ df_".concat(n+1," }}");return(0,P.jsxs)("div",{children:[!Tn&&!An&&(0,P.jsxs)(_.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:["\xa0\xa0\xa0\xa0data",n>=1?"_".concat(n+1):null]}),Tn&&(0,P.jsx)(_.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:r}),An&&(0,P.jsxs)(_.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:["\xa0\xa0\xa0\xa0","df".concat(n+1)]})," ",(0,P.jsx)(_.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"\u2192"})," ",(0,P.jsx)(sn.Z,{color:i,onClick:function(){var e,n,i=null===I||void 0===I||null===(e=I.current)||void 0===e?void 0:e["".concat(null===t||void 0===t?void 0:t.type,"s/").concat(null===t||void 0===t?void 0:t.uuid,".py")];null===i||void 0===i||null===(n=i.current)||void 0===n||n.scrollIntoView()},preventDefault:!0,small:!0,children:(0,P.jsx)(_.ZP,{color:i,inline:!0,monospace:!0,small:!0,children:e})})]},e)}))]})]}),!(null!==y&&void 0!==y&&y.error)&&(0,P.jsx)(P.Fragment,{children:Ne?(0,P.jsx)(Z.Z,{px:1,children:(0,P.jsxs)(_.ZP,{monospace:!0,muted:!0,children:["(",(0,ue._6)("line",null===Fe||void 0===Fe?void 0:Fe.split(/\r\n|\r|\n/).length)," collapsed)"]})}):Lt}),F&&s.cloneElement(F,{runBlockAndTrack:qn}),(null===y||void 0===y?void 0:y.error)&&(0,P.jsxs)(Z.Z,{p:$.cd,children:[(0,P.jsx)(_.ZP,{bold:!0,danger:!0,children:null===y||void 0===y||null===(a=y.error)||void 0===a?void 0:a.error}),(0,P.jsx)(_.ZP,{muted:!0,children:null===y||void 0===y||null===(f=y.error)||void 0===f?void 0:f.message})]}),Kn&&We&&We>yn&&(0,P.jsx)(ce.HC,{children:(0,P.jsxs)(_.ZP,{muted:!0,children:["".concat(Math.round((We-yn)/1e3)),"s"]})})]})),Ut]})]}),!Y&&(0,P.jsxs)(ce.gE,{additionalZIndex:Vt-w,onMouseEnter:function(){return Ee(!0)},onMouseLeave:function(){Ee(!1),null===de||void 0===de||de(null)},children:[Se&&p&&(0,P.jsx)(Z.Z,{mt:2,children:(0,P.jsx)(ht,{addNewBlock:function(e){var n=e.content,t=e.configuration,i=Wi(y,e);return[v.tf.DATA_LOADER,v.tf.TRANSFORMER].includes(y.type)&&v.tf.SCRATCHPAD===e.type&&(n="from mage_ai.data_preparation.variable_manager import get_variable\n\n\ndf = get_variable('".concat(re.uuid,"', '").concat(y.uuid,"', 'output_0')")),n=dt(e,n),v.t6.SQL===y.language&&(n=st(n),t=hr(hr({},(0,xe.GL)(y.configuration,[oi,li,ci,ui,fi])),t)),p(hr(hr({},e),{},{configuration:t,content:n,upstream_blocks:i}))},blockIdx:w,compact:!0,hideCustom:En,hideDbt:En,onClickAddSingleDBTModel:te,pipeline:re,setAddNewBlockMenuOpenIdx:de,setCreatingNewDBTModel:pe,setRecsWindowOpenBlockIdx:ge})}),(0,P.jsx)(ce.t1,{className:"block-divider-inner"})]})]})}var vr=s.forwardRef(mr),gr=t(90880),br=6.25*$.iI,xr=($.iI,100*$.iI),jr=N.default.div.withConfig({displayName:"indexstyle__WindowContainerStyle",componentId:"sc-g0cszf-0"})(["border-radius:","px;width:100%;max-width:","px;z-index:101;position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);",""],Oe.n_,xr,(function(e){return"\n box-shadow: ".concat((e.theme||Ce.Z).shadow.window,";\n background-color: ").concat((e.theme||Ce.Z).background.panel,";\n ")})),yr=(0,N.css)(["display:flex;align-items:center;justify-content:space-between;height:","px;padding:","px ","px;",""],br,$.iI,$.cd*$.iI,(function(e){return"\n background-color: ".concat((e.theme||Ce.Z).background.output,";\n ")})),kr=N.default.div.withConfig({displayName:"indexstyle__WindowHeaderStyle",componentId:"sc-g0cszf-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;",""],yr,Oe.n_,Oe.n_,(function(e){return"\n border-bottom: ".concat(Oe.YF,"px ").concat(Oe.M8," ").concat((e.theme||Ce.Z).borders.medium,";\n ")})),Zr=N.default.div.withConfig({displayName:"indexstyle__WindowContentStyle",componentId:"sc-g0cszf-2"})(["overflow:auto;padding:","px 0;"," "," "," ",""],$.iI,pn.w5,(0,gr.eR)(),(function(e){return e.minMaxHeight&&"\n max-height: ".concat(7*$.iI,"px;\n ")}),(function(e){return!e.minMaxHeight&&"\n max-height: calc(100vh - ".concat(6.5*br,"px);\n ")})),_r=N.default.div.withConfig({displayName:"indexstyle__WindowFooterStyle",componentId:"sc-g0cszf-3"})([""," justify-content:flex-end;border-bottom-left-radius:","px;border-bottom-right-radius:","px;",""],yr,Oe.n_,Oe.n_,(function(e){return"\n border-top: ".concat(Oe.YF,"px ").concat(Oe.M8," ").concat((e.theme||Ce.Z).borders.medium,";\n ")})),Cr=N.default.div.withConfig({displayName:"indexstyle__InputRowStyle",componentId:"sc-g0cszf-4"})(["padding:","px ","px;",""],.75*$.iI,2*$.iI,(function(e){return"\n border-bottom: ".concat(Oe.YF,"px ").concat(Oe.M8," ").concat((e.theme||Ce.Z).borders.medium,";\n ")}));function Or(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function wr(e){for(var n=1;n=1&&i.push(wr(wr({},e),{},{children:t}))})),i}),[r]),b=(0,s.useMemo)((function(){return(0,ee.HK)(n,(function(e){return e.configuration.file_path}))}),[n]);return(0,P.jsxs)(jr,{children:[(0,P.jsxs)(kr,{children:[(0,P.jsx)(He.Z,{alignItems:"center",children:(0,P.jsx)(_.ZP,{disableWordBreak:!0,monospace:!0,children:t?"Create new DBT model":"Select DBT model file"})}),(0,P.jsx)(g.Z,{iconOnly:!0,onClick:o,children:(0,P.jsx)(X.x8,{muted:!0})})]}),t&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Cr,{children:(0,P.jsx)(In,{inputValue:i,label:"Model name (cannot be changed):",labelColor:Ce.Z.accent.dbt,minWidth:38*$.iI,notRequired:!0,onBlur:function(){d(!1)},onChange:function(e){c(e.target.value),e.preventDefault()},onClick:function(){d(!0)},onFocus:function(){d(!0)},placeholder:"Enter name",required:!0,stacked:!0,value:!a&&i})}),(0,P.jsxs)(Cr,{children:[(0,P.jsx)(_.ZP,{bold:!0,color:Ce.Z.accent.dbt,children:"Select folder location:"}),(0,P.jsx)(_.ZP,{bold:!0,muted:!p,children:p?"dbt/".concat(p):"Choose folder below"})]})]}),(0,P.jsx)(Zr,{children:(0,P.jsx)(Ue,{allowSelectingFolders:t,disableContextMenu:!0,files:m,isFileDisabled:function(e,n){return t?!n||(null===n||void 0===n?void 0:n.some((function(e){return"models"===(null===e||void 0===e?void 0:e.name)}))):!!b[e]||!(null!==n&&void 0!==n&&n.length)&&!e.match(new RegExp(".".concat(v.t6.SQL,"$")))},openFile:l,selectFile:h,uncollapsed:!0,useRootFolder:!0})}),t&&(0,P.jsx)(_r,{children:(0,P.jsx)(g.Z,{backgroundColor:i&&p?Ce.Z.accent.dbt:Ce.Z.monotone.grey500,disabled:!i||!p,onClick:function(){return l(p)},padding:"6px 8px",children:"Create model"})})]})},Ar=t(4804),Rr=t(65730),Dr=t(87372);!function(e){e.FULL_TABLE="FULL_TABLE",e.INCREMENTAL="INCREMENTAL",e.LOG_BASED="LOG_BASED"}(Er||(Er={})),function(e){e.IGNORE="IGNORE",e.UPDATE="UPDATE"}(Pr||(Pr={})),function(e){e.DATE_TIME="date-time",e.UUID="uuid"}(Ir||(Ir={}));var Mr,Nr="datetime",Br=(Sr={},(0,l.Z)(Sr,Ir.DATE_TIME,Nr),(0,l.Z)(Sr,Ir.UUID,Ir.UUID),Sr);!function(e){e.ARRAY="array",e.BOOLEAN="boolean",e.INTEGER="integer",e.NULL="null",e.NUMBER="number",e.OBJECT="object",e.STRING="string"}(Mr||(Mr={}));var Lr,Fr,Ur,Hr,zr,Wr=[Mr.ARRAY,Mr.BOOLEAN,Nr,Mr.INTEGER,Mr.NULL,Mr.NUMBER,Mr.OBJECT,Mr.STRING,Ir.UUID];!function(e){e.PROPERTIES="properties"}(Lr||(Lr={})),function(e){e.AUTOMATIC="automatic",e.AVAILABLE="available",e.UNSUPPORTED="unsupported"}(Fr||(Fr={})),function(e){e.FORCED_REPLICATION_METHOD="forced-replication-method",e.KEY_PROPERTIES="table-key-properties",e.REPLICATION_KEYS="valid-replication-keys",e.SCHEMA_NAME="schema-name"}(Ur||(Ur={})),function(e){e.AMPLITUDE="amplitude",e.BIGQUERY="bigquery",e.CHARGEBEE="chargebee",e.GOOGLE_SEARCH_CONSOLE="google_search_console",e.GOOGLE_SHEETS="google_sheets",e.INTERCOM="intercom",e.MYSQL="mysql",e.POSTGRESQL="postgresql",e.REDSHIFT="redshift",e.SALESFORCE="salesforce",e.STRIPE="stripe"}(Hr||(Hr={})),function(e){e.BIGQUERY="bigquery",e.DELTA_LAKE_S3="delta_lake_s3",e.MYSQL="mysql",e.POSTGRESQL="postgresql",e.SNOWFLAKE="snowflake"}(zr||(zr={}));var Gr=t(31012),Vr=N.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||Ce.Z.background).popup,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||Ce.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat(($.iI+Gr.Al)/2,"px;\n height: ").concat(1.5*$.iI+Gr.Al,"px;\n padding: ").concat($.iI/1.5,"px ").concat(1.25*$.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat(($.iI/2+Gr.Al)/2,"px;\n height: ").concat(Gr.Al+$.iI/2+2,"px;\n padding: ").concat($.iI/4,"px ").concat($.iI,"px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||Ce.Z.content).muted,";\n ")})),Qr=function(e){var n=e.border,t=e.children,i=e.label,r=e.onClick,o=e.primary,l=e.small;return(0,P.jsx)(Vr,{border:n,primary:o,small:l,children:(0,P.jsx)(g.Z,{basic:!0,noPadding:!0,noBackground:!0,onClick:r,transparent:!0,children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[t,i&&(0,P.jsx)(_.ZP,{small:l,children:i}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsx)(X.x8,{default:o,muted:!o,size:l?$.iI:1.25*$.iI})]})})})},qr=t(70902),Kr=t(85307);function Yr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Xr(e){for(var n=1;n0&&((0,xe.Qr)(e)||!(0,xe.Xy)(n,e))&&X((function(e){return Xr(Xr({},e),{},(0,l.Z)({},R,n))}))}),[null===k||void 0===k?void 0:k.length,n,R]);var ne=(0,s.useMemo)((function(){return(0,ee.HK)(E,(function(e){return e.breadcrumb.join("/")}))}),[E]),te=(0,s.useMemo)((function(){var e;return null===(e=(0,ee.sE)(E,(function(e){return 0===e.breadcrumb.length})))||void 0===e?void 0:e.metadata}),[E]),ie=(0,s.useMemo)((function(){return te[Ur.KEY_PROPERTIES]||[]}),[te]),re=(0,s.useMemo)((function(){return te[Ur.REPLICATION_KEYS]||[]}),[te]),oe=$r.includes(t),le=d.length>1,ce=(0,s.useCallback)((function(e){var n=Xr({},null===Y||void 0===Y?void 0:Y[R]);n.hasOwnProperty(e)&&delete n[e],X((function(e){return Xr(Xr({},e),{},(0,l.Z)({},R,Xr({},n)))})),p({block:{bookmark_values:n,destination_table:B,tap_stream_id:R}})}),[Y,B,R,p]),ae=(0,s.useMemo)((function(){var e=[],n=[],i=(0,ee.mr)(Object.entries(A)).map((function(i,r){var l=(0,o.Z)(i,2),c=l[0],u=l[1],a=u.anyOf,s=void 0===a?[]:a,d=u.format,p=u.type,j=void 0===p?[]:p,y=new Set(Array.isArray(j)?j:[j]),C=new Set(y);s.forEach((function(e){var n=e.format,t=(e.items,e.type);Array.isArray(t)?t.forEach((function(e){y.add(e),C.add(e)})):(y.add(t),C.add(t),n&&C.add(n))}));var O=Array.from(y);d&&C.add(d);var w=(ne["properties/".concat(c)]||{}).metadata,E=(w.inclusion,w.selected);e.push(E),n.push(c);var T=Wr.reduce((function(e,n){return O.indexOf(n)>=0||Nr===String(n)&&Ir.DATE_TIME===d||Ir.UUID===String(n)&&Ir.UUID===d?e:e.concat((0,P.jsx)("option",{value:n,children:n},n))}),[]),A=O.findIndex((function(e){return e===Mr.STRING})),M=[(0,P.jsx)(b.Z,{checked:E,onClick:function(){h(R,[c],{selected:!E})}},"".concat(R,"/").concat(c,"/selected")),(0,P.jsx)(_.ZP,{children:c},"".concat(R,"/").concat(c,"/name")),(0,P.jsxs)(x.Z,{children:[(0,P.jsx)(He.Z,{flex:1,children:(0,P.jsx)(x.Z,{alignItems:"center",flexWrap:"wrap",fullWidth:!0,children:O.map((function(e,n){return(0,P.jsx)(Z.Z,{mb:1,mr:1,children:(0,P.jsx)(Qr,{border:!0,label:d&&Mr.STRING===e&&A===n?Br[d]:e,onClick:function(){var n={format:d,type:O.filter((function(n){return n!==e}))};Ir.DATE_TIME!==d&&Ir.UUID!==d||Mr.STRING!==e||(n.format=null),m(R,c,n)},small:!0})},"".concat(R,"/").concat(c,"/").concat(e,"/").concat(n,"/chip"))}))})}),T.length>=1&&(0,P.jsxs)(er.Z,{compact:!0,onChange:function(e){var n=e.target.value,t={format:d,type:O};Nr===String(n)?(t.format=Ir.DATE_TIME,t.type.push(Mr.STRING)):Ir.UUID===String(n)?(t.format=Ir.UUID,t.type.push(Mr.STRING)):t.type.push(n),m(R,c,t)},primary:!0,small:!0,value:"",width:10*$.iI,children:[(0,P.jsx)("option",{value:""}),T]})]},"".concat(R,"/").concat(c,"/type")),(0,P.jsx)(b.Z,{checked:!(null===D||void 0===D||!D.includes(c)),disabled:ie.length>=1&&!ie.includes(c),onClick:ie.length>=1&&!ie.includes(c)?null:function(){return v(R,(function(e){var n;return null!==(n=e.unique_constraints)&&void 0!==n&&n.includes(c)?e.unique_constraints=(0,ee.Od)(e.unique_constraints,(function(e){return c===e})):e.unique_constraints=[c].concat(e.unique_constraints||[]),e}))}},"".concat(R,"/").concat(c,"/unique")),(0,P.jsx)(b.Z,{checked:!(null===k||void 0===k||!k.includes(c)),disabled:re.length>=1&&!re.includes(c),onClick:re.length>=1&&!re.includes(c)?null:function(){return v(R,(function(e){var n;return null!==(n=e.bookmark_properties)&&void 0!==n&&n.includes(c)?(ce(c),e.bookmark_properties=(0,ee.Od)(e.bookmark_properties,(function(e){return c===e}))):e.bookmark_properties=[c].concat(e.bookmark_properties||[]),e}))}},"".concat(R,"/").concat(c,"/bookmark")),(0,P.jsx)(b.Z,{checked:!(null===S||void 0===S||!S.includes(c)),onClick:function(){return v(R,(function(e){var n;return null!==(n=e.key_properties)&&void 0!==n&&n.includes(c)?e.key_properties=(0,ee.Od)(e.key_properties,(function(e){return c===e})):e.key_properties=[c].concat(e.key_properties||[]),e}))}},"".concat(R,"/").concat(c,"/key_property"))];if(oe){var N=t!==zr.DELTA_LAKE_S3,B=N&&(ie.includes(c)||!C.has(Ir.DATE_TIME));M.push((0,P.jsx)(b.Z,{checked:!(null===I||void 0===I||!I.includes(c)),disabled:B,onClick:B?null:function(){return v(R,(function(e){var n,t;null!==(n=e.partition_keys)&&void 0!==n&&n.includes(c)?e.partition_keys=(0,ee.Od)(e.partition_keys,(function(e){return c===e})):N&&1===(null===(t=e.partition_keys)||void 0===t?void 0:t.length)?e.partition_keys=[c]:e.partition_keys=[c].concat(e.partition_keys||[]);return e}))}},"".concat(R,"/").concat(c,"/partition_key")))}if(le){var L=W===r;M.push((0,P.jsx)(g.Z,{compact:!0,disabled:L,onClick:function(){G(r),setTimeout((function(){return G(null)}),2e3),f((function(e){var n,t;if((null===e||void 0===e?void 0:e.tap_stream_id)!==R&&null!==e&&void 0!==e&&null!==(n=e.schema)&&void 0!==n&&null!==(t=n.properties)&&void 0!==t&&t[c]){var i,r,o,l,u,a,s,f,p;e.schema.properties[c]={format:d||null,type:O};var h=null===(i=(0,ee.sE)((null===e||void 0===e?void 0:e.metadata)||[],(function(e){return 0===e.breadcrumb.length})))||void 0===i?void 0:i.metadata,m=h[Ur.REPLICATION_KEYS]||[],v=h[Ur.KEY_PROPERTIES]||[];null===D||void 0===D||!D.includes(c)||null!==e&&void 0!==e&&null!==(r=e.unique_constraints)&&void 0!==r&&r.includes(c)||!v.includes(c)?null!==D&&void 0!==D&&D.includes(c)||null===e||void 0===e||null===(o=e.unique_constraints)||void 0===o||!o.includes(c)||(e.unique_constraints=(0,ee.Od)(e.unique_constraints,(function(e){return c===e}))):e.unique_constraints=[c].concat(e.unique_constraints||[]),null===k||void 0===k||!k.includes(c)||null!==e&&void 0!==e&&null!==(l=e.bookmark_properties)&&void 0!==l&&l.includes(c)||!m.includes(c)?null!==k&&void 0!==k&&k.includes(c)||null===e||void 0===e||null===(u=e.bookmark_properties)||void 0===u||!u.includes(c)||(e.bookmark_properties=(0,ee.Od)(e.bookmark_properties,(function(e){return c===e}))):e.bookmark_properties=[c].concat(e.bookmark_properties||[]),null===S||void 0===S||!S.includes(c)||null!==e&&void 0!==e&&null!==(a=e.key_properties)&&void 0!==a&&a.includes(c)?null!==S&&void 0!==S&&S.includes(c)||null===e||void 0===e||null===(s=e.key_properties)||void 0===s||!s.includes(c)||(e.key_properties=(0,ee.Od)(e.key_properties,(function(e){return c===e}))):e.key_properties=[c].concat(e.key_properties||[]),null===I||void 0===I||!I.includes(c)||null!==e&&void 0!==e&&null!==(f=e.partition_keys)&&void 0!==f&&f.includes(c)?null!==I&&void 0!==I&&I.includes(c)||null===e||void 0===e||null===(p=e.partition_keys)||void 0===p||!p.includes(c)||(e.partition_keys=(0,ee.Od)(e.partition_keys,(function(e){return c===e}))):e.partition_keys=[c].concat(e.partition_keys||[])}return Xr({},e)}))},pill:!0,secondary:!0,children:(0,P.jsx)(_.ZP,{success:L,children:L?"Applied!":"Apply"})}))}return M})),r=e.every((function(e){return e})),l=[null,2,1,null,null,null],c=[{label:function(){return(0,P.jsx)(b.Z,{checked:r,onClick:function(){h(R,n,{selected:!r})}})},uuid:"Selected"},{uuid:"Name"},{uuid:"Type"},{uuid:"Unique"},{uuid:"Bookmark"},{uuid:"Key prop"}];return oe&&(l.push(null),c.push({uuid:"Partition key"})),le&&(l.push(null),c.push({tooltipMessage:"This will apply this individual feature's schema settings to all selected streams that have the same feature. Unique features must be valid key properties in other streams. Bookmark features must be valid replication keys in other streams.",uuid:"All streams"})),(0,P.jsx)(Kr.cl,{children:(0,P.jsx)(_e.Z,{alignTop:!0,columnFlex:l,columns:c,rows:i,stickyHeader:!0})})}),[k,t,le,W,S,ne,I,A,oe,R,D,f,h,m,v,ie,re]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Dr.Z,{condensed:!0,level:4,spacingBelow:!0,children:[(0,P.jsx)(Dr.Z,{condensed:!0,inline:!0,level:4,monospace:!0,children:R})," schema"]}),(0,P.jsx)(Z.Z,{mb:3,children:(0,P.jsx)(y.Z,{headerTitle:"Output",overflowVisible:!0,children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(_.ZP,{children:"Destination table name"}),(0,P.jsx)(Z.Z,{ml:Jr}),(0,P.jsx)(dn.Z,{label:(0,P.jsxs)(_.ZP,{children:["By default, this stream will be saved to your destination under the table named ",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,monospace:!0,children:R}),". To change the table name, enter in a different value."]}),lightBackground:!0,primary:!0}),(0,P.jsx)(Z.Z,{ml:1}),(0,P.jsx)(C.Z,{compact:!0,monospace:!0,onChange:function(e){var n=e.target.value;L(n),clearTimeout(j.current),j.current=setTimeout((function(){v(R,(function(e){return Xr(Xr({},e),{},{destination_table:n})}))}),300)},value:B||"",width:45*$.iI})]})})}),(0,P.jsx)(Z.Z,{mb:3,children:(0,P.jsx)(y.Z,{headerTitle:"Usage",overflowVisible:!0,children:(0,P.jsxs)(x.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(He.Z,{alignItems:"center",children:[(0,P.jsx)(_.ZP,{children:"Replication method"}),(0,P.jsx)(Z.Z,{ml:Jr}),(0,P.jsx)(dn.Z,{label:(0,P.jsxs)(_.ZP,{children:["Do you want to synchronize the entire stream (",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,monospace:!0,children:Er.FULL_TABLE}),") on each integration pipeline run or only new records (",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,monospace:!0,children:Er.INCREMENTAL}),")?",u===Hr.POSTGRESQL&&(0,P.jsxs)(_.ZP,{children:["Log-based incremental replication (",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,monospace:!0,children:Er.LOG_BASED}),") is also available for PostgreSQL sources."]})]}),lightBackground:!0,primary:!0}),(0,P.jsx)(Z.Z,{ml:1}),(0,P.jsxs)(er.Z,{compact:!0,onChange:function(e){v(R,(function(n){return Xr(Xr({},n),{},{replication_method:e.target.value})}))},primary:!0,value:T,children:[(0,P.jsx)("option",{value:""}),Object.values(Er).filter((function(e){return u===Hr.POSTGRESQL||e!==Er.LOG_BASED})).map((function(e){return(0,P.jsx)("option",{value:e,children:e},e)}))]}),(0,P.jsx)(Z.Z,{ml:3}),(0,P.jsx)(_.ZP,{children:"Unique conflict method"}),(0,P.jsx)(Z.Z,{ml:Jr}),(0,P.jsx)(dn.Z,{label:(0,P.jsxs)(_.ZP,{wordBreak:!0,children:["If a new record has the same value as an existing record in the ",(0,ue._6)("column",null===D||void 0===D?void 0:D.length),(null===D||void 0===D?void 0:D.length)>0&&(0,P.jsx)(P.Fragment,{children:"\xa0"}),null===D||void 0===D?void 0:D.sort().map((function(e,n){return(0,P.jsxs)(_.ZP,{bold:!0,inline:!0,monospace:!0,children:[1!==(null===D||void 0===D?void 0:D.length)&&n===(null===D||void 0===D?void 0:D.length)-1?(0,P.jsx)(_.ZP,{inline:!0,children:" and "},e):n>=1&&(0,P.jsx)(P.Fragment,{children:",\xa0"}),e]},e)})),", how do you want to resolve the conflict? The conflict method ",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,monospace:!0,children:Pr.IGNORE})," will skip the new record if it\u2019s a duplicate of an existing record. The conflict method ",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,monospace:!0,children:Pr.UPDATE})," will not save the new record and instead update the existing record with the new record\u2019s properties."]}),lightBackground:!0,primary:!0}),(0,P.jsx)(Z.Z,{ml:1}),(0,P.jsxs)(er.Z,{compact:!0,inputWidth:11*$.iI,onChange:function(e){v(R,(function(n){return Xr(Xr({},n),{},{unique_conflict_method:e.target.value})}))},primary:!0,value:M,children:[(0,P.jsx)("option",{value:""}),(0,P.jsx)("option",{value:Pr.IGNORE,children:Pr.IGNORE}),(0,P.jsx)("option",{value:Pr.UPDATE,children:Pr.UPDATE})]})]}),le&&(0,P.jsxs)(He.Z,{alignItems:"center",children:[(0,P.jsx)(_.ZP,{default:!0,children:"All streams"}),(0,P.jsx)(Z.Z,{ml:Jr}),(0,P.jsx)(dn.Z,{appearBefore:!0,label:(0,P.jsx)(_.ZP,{children:"This will apply this stream's replication method and unique conflict method settings to all selected streams."}),lightBackground:!0,primary:!0}),(0,P.jsx)(Z.Z,{ml:1}),(0,P.jsx)(g.Z,{compact:!0,disabled:U,onClick:function(){H(!0),setTimeout((function(){return H(!1)}),2e3),f((function(e){return Xr(Xr({},e),{},{replication_method:T,unique_conflict_method:M})}))},pill:!0,secondary:!0,children:(0,P.jsx)(_.ZP,{bold:!U,success:U,children:U?"Applied!":"Apply"})})]})]})})}),(0,P.jsx)(y.Z,{headerTitle:"Features",noPadding:!0,children:ae}),(0,P.jsx)(Z.Z,{mt:2,children:(0,P.jsx)(g.Z,{loading:i,onClick:function(){return c(R)},primary:!0,small:!0,children:"Load sample data"})}),(0,P.jsxs)(Z.Z,{mt:5,children:[(0,P.jsx)(Dr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Settings"}),Er.INCREMENTAL===T&&(0,P.jsxs)(Z.Z,{mb:5,children:[(0,P.jsxs)(Z.Z,{mb:1,children:[(0,P.jsx)(_.ZP,{bold:!0,large:!0,children:"Bookmark properties"}),(0,P.jsxs)(_.ZP,{default:!0,children:["After each integration pipeline run, the last record that was successfully synchronized will be used as the bookmark. The properties listed below will be extracted from the last record and used as the bookmark.",(0,P.jsx)("br",{}),"On the next run, the synchronization will start after the bookmarked record."]})]}),(0,P.jsxs)(x.Z,{alignItems:"center",flexWrap:"wrap",children:[!(null!==k&&void 0!==k&&k.length)&&(0,P.jsxs)(_.ZP,{italic:!0,children:["Click the checkbox under the column ",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,italic:!0,children:"Bookmark"})," to use a specific column as a bookmark property."]}),null===k||void 0===k?void 0:k.sort().map((function(e){return(0,P.jsx)(Z.Z,{mb:1,mr:1,children:(0,P.jsx)(Qr,{label:e,onClick:function(){ce(e),v(R,(function(n){return Xr(Xr({},n),{},{bookmark_properties:(0,ee.Od)(n.bookmark_properties||[],(function(n){return n===e}))})}))},primary:!0})},"bookmark_properties/".concat(e))}))]}),(null===k||void 0===k?void 0:k.length)>0&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.Z,{my:2,children:(0,P.jsxs)(x.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(Z.Z,{mr:2,children:[(0,P.jsx)(_.ZP,{bold:!0,large:!0,children:"Manually edit bookmark property values"}),(0,P.jsx)(_.ZP,{default:!0,children:'In order to override the bookmark values for the next sync, you must first select a destination. Then click the toggle to edit the values for the bookmark properties in the table below. Click the "Save" button to save your changes.'})]}),(0,P.jsx)(qr.Z,{checked:Q,disabled:!t,onCheck:function(){return q((function(e){return!e}))}})]})}),Q&&!!t&&(0,P.jsx)(y.Z,{header:(0,P.jsxs)(x.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsx)(_.ZP,{bold:!0,default:!0,children:"Bookmark property values"}),(0,P.jsx)(g.Z,{compact:!0,loading:r,onClick:function(){p({block:{bookmark_values:(null===Y||void 0===Y?void 0:Y[R])||{},destination_table:B,tap_stream_id:R}})},pill:!0,secondary:!0,children:"Save"})]}),headerPaddingVertical:$.iI,noPadding:!0,overflowVisible:!0,children:(0,P.jsx)(_e.Z,{columnBorders:!0,columnFlex:[null,1],columns:[{uuid:"Bookmark property"},{uuid:"Value"}],rows:k.map((function(e){var n;return[(0,P.jsx)(_.ZP,{default:!0,monospace:!0,children:e},e),(0,P.jsx)(C.Z,{borderless:!0,monospace:!0,onChange:function(n){n.preventDefault(),X((function(t){return Xr(Xr({},t),{},(0,l.Z)({},R,Xr(Xr({},t[R]),{},(0,l.Z)({},e,n.target.value))))}))},paddingHorizontal:0,placeholder:"Enter value",value:null===Y||void 0===Y||null===(n=Y[R])||void 0===n?void 0:n[e]},"".concat(e,"_value"))]}))})})]})]}),(0,P.jsxs)(Z.Z,{mb:5,children:[(0,P.jsxs)(Z.Z,{mb:1,children:[(0,P.jsx)(_.ZP,{bold:!0,large:!0,children:"Unique constraints"}),(0,P.jsx)(_.ZP,{default:!0,children:"Multiple records (e.g. 2 or more) with the same values in the columns listed below will be considered duplicates."})]}),(0,P.jsxs)(x.Z,{alignItems:"center",flexWrap:"wrap",children:[!(null!==D&&void 0!==D&&D.length)&&(0,P.jsxs)(_.ZP,{italic:!0,children:["Click the checkbox under the column ",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,italic:!0,children:"Unique"})," to use a specific column as a unique constraint."]}),null===D||void 0===D?void 0:D.sort().map((function(e){return(0,P.jsx)(Z.Z,{mb:1,mr:1,children:(0,P.jsx)(Qr,{label:e,onClick:function(){v(R,(function(n){return Xr(Xr({},n),{},{unique_constraints:(0,ee.Od)(n.unique_constraints||[],(function(n){return n===e}))})}))},primary:!0})},"unique_constraints/".concat(e))}))]})]}),(0,P.jsxs)(Z.Z,{mb:5,children:[(0,P.jsxs)(Z.Z,{mb:1,children:[(0,P.jsx)(_.ZP,{bold:!0,large:!0,children:"Key properties"}),(0,P.jsx)(_.ZP,{default:!0,children:"Key properties are used as the primary key for the destination table."})]}),(0,P.jsxs)(x.Z,{alignItems:"center",flexWrap:"wrap",children:[!(null!==S&&void 0!==S&&S.length)&&(0,P.jsxs)(_.ZP,{italic:!0,children:["Click the checkbox under the column ",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,italic:!0,children:"Key prop"})," to use a specific column as a key property."]}),null===S||void 0===S?void 0:S.sort().map((function(e){return(0,P.jsx)(Z.Z,{mb:1,mr:1,children:(0,P.jsx)(Qr,{label:e,onClick:function(){v(R,(function(n){return Xr(Xr({},n),{},{key_properties:(0,ee.Od)(n.key_properties||[],(function(n){return n===e}))})}))},primary:!0})},"key_properties/".concat(e))}))]})]}),oe&&(0,P.jsxs)(Z.Z,{mb:3,children:[(0,P.jsxs)(Z.Z,{mb:1,children:[(0,P.jsx)(_.ZP,{bold:!0,large:!0,children:"Partition keys"}),(0,P.jsx)(_.ZP,{default:!0,children:"One datetime column can be used to partition the table. (Note: Partition keys currently only work with BigQuery destinations. Support for other destinations is WIP.)"})]}),(0,P.jsxs)(x.Z,{alignItems:"center",flexWrap:"wrap",children:[!(null!==I&&void 0!==I&&I.length)&&(0,P.jsxs)(_.ZP,{italic:!0,children:["Click the checkbox under the column ",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,italic:!0,children:"Partition key"})," to use a specific column as a partition key."]}),null===I||void 0===I?void 0:I.sort().map((function(e){return(0,P.jsx)(Z.Z,{mb:1,mr:1,children:(0,P.jsx)(Qr,{label:e,onClick:function(){v(R,(function(n){return Xr(Xr({},n),{},{partition_keys:(0,ee.Od)(n.partition_keys||[],(function(n){return n===e}))})}))},primary:!0})},"key_properties/".concat(e))}))]})]})]})]})},no=["catalog","pipeline","setErrors","setSelectedStream"];function to(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function io(e){for(var n=1;n0&&(a&&(0,ee.sE)(h,(function(e){var n=e.uuid;return a.uuid===n}))||f(h[0]))}),[a,f,h]);var R=(0,s.useMemo)((function(){var e=[{uuid:"Stream"},{uuid:"Columns Selected"},{uuid:"Replication Method"},{uuid:"Destination Table"},{uuid:"Bookmark Props"},{uuid:"Key Props"},{uuid:"Unique Constraints"},{uuid:"Unique Conflict Method"},{uuid:"Partition Keys"}];return(0,P.jsx)(Kr.cl,{children:(0,P.jsx)(_e.Z,{alignTop:!0,columnBorders:!0,columnFlex:e.map((function(e){return 1})),columns:e,rows:p.map((function(e){var n=e.replication_method,t=e.destination_table,i=e.bookmark_properties,r=e.key_properties,o=e.metadata,l=e.unique_constraints,c=e.unique_conflict_method,u=e.partition_keys,a=e.tap_stream_id,s=o.reduce((function(e,n){var t=n.breadcrumb,i=n.metadata.selected,r=(null===t||void 0===t?void 0:t.length)>0,o=i&&r?1:0,l=r?1:0;return{selectedCount:e.selectedCount+o,totalCount:e.totalCount+l}}),{selectedCount:0,totalCount:0}),d=(0,P.jsx)(_.ZP,{children:"".concat(s.selectedCount," of ").concat(s.totalCount," total")},"".concat(a,"_col_selected")),f=[a,n,t,i,r,l,c,u].map((function(e,n){return(0,P.jsx)(_.ZP,{bold:0===n,children:Array.isArray(e)?e.sort().join(", "):e},"".concat(a,"_cell_").concat(n))}));return f.slice(0,1).concat(d).concat(f.slice(1))})),stickyFirstColumn:!0,stickyHeader:!0,wrapColumns:!0})})}),[p]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(vt.Z,{allowScroll:!0,noPadding:!0,onClickTab:function(e){f(e),l(e.uuid)},selectedTabUUID:null===a||void 0===a?void 0:a.uuid,tabs:h}),g&&(0,P.jsx)(Z.Z,{mt:1,children:(0,P.jsx)(Kr.dE,{children:(0,P.jsx)(eo,io(io({},c),{},{bookmarkValues:S,isLoadingUpdateDestinationBlockState:A,stream:g,streams:p,updateDestinationBlockState:T}))})}),p.length>=1&&(0,P.jsx)(Z.Z,{mt:1,children:(0,P.jsxs)(Kr.dE,{children:[(0,P.jsx)(Dr.Z,{level:4,children:"Streams Summary"}),(0,P.jsx)(Z.Z,{mt:1}),R]})})]})},lo=t(18776);function co(e){return Object.values(e).filter((function(e){return null!==e})).map((function(e){return e.tap_stream_id}))}function uo(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ao(e){for(var n=1;n50&&(0,P.jsx)(Z.Z,{pb:2,children:(0,P.jsxs)(_.ZP,{danger:!0,maxWidth:so-4*$.iI,rightAligned:!0,whiteSpaceNormal:!0,children:["WARNING: Selecting too many streams (e.g. >50)",(0,P.jsx)("br",{}),"may cause app performance issues."]})}),(0,P.jsx)(x.Z,{justifyContent:"flex-end",children:(0,P.jsx)(g.Z,{loading:t,onClick:function(){return i(u)},primary:!0,children:"Confirm ".concat(co(u).length," streams")})})]})]})};function po(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ho(e){for(var n=1;n0&&S(t[0]),k((function(e){var n=(e||[]).concat(t);return Array.from(new Set(n)).sort()})),m(U.DATA),f()}else ce(null===n||void 0===n?void 0:n.error_message)},onErrorCallback:function(e,n){return y({errors:n,response:e})}})}}),ae=(0,o.Z)(ue,2),se=ae[0],de=ae[1].isLoading,fe=(0,d.Db)(be.ZP.integration_sources.useUpdate(null===b||void 0===b?void 0:b.uuid),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(e){var n=e.integration_source,t=n.selected_streams,i=n.streams,r=((null===ne||void 0===ne?void 0:ne.streams)||[]).filter((function(e){var n=e.tap_stream_id;return t.includes(n)})),o=r.map((function(e){return e.tap_stream_id})),l=i.filter((function(e){var n=e.tap_stream_id;return t.includes(n)&&!o.includes(n)}));l.forEach((function(e){e.metadata.forEach((function(n,t){var i=n.metadata;if(Fr.UNSUPPORTED!==i.inclusion){var r;if(e.replication_method||(e.replication_method=Er.FULL_TABLE),e.unique_conflict_method||(e.unique_conflict_method=Pr.UPDATE),!e.destination_table)e.destination_table=null===e||void 0===e||null===(r=e.tap_stream_id)||void 0===r?void 0:r.replace(/\W+/g,"_");e.metadata[t]=go(go({},n),{},{metadata:go(go({},i),{},{selected:!0})})}}))}));var c={streams:r.concat(l)};k(Me.map((function(e){return e.tap_stream_id})));var s=null===Q||void 0===Q?void 0:Q.catalog;(0,xe.Qr)(s)||h(V.type,V.uuid,(0,Ar.Pz)(go(go({},Q),{},{catalog:{}})));var d={pipeline:go(go({},b),{},{data_integration:go(go({},(null===b||void 0===b?void 0:b.data_integration)||{}),{},{catalog:c})})};j(d).then((function(){a(),u()}))},onErrorCallback:function(e,n){return y({errors:n,response:e})}})}}),pe=(0,o.Z)(fe,2),he=pe[0],me=pe[1].isLoading,ve=(0,s.useState)(null),ge=ve[0],ye=ve[1],ke=(0,d.Db)(be.ZP.integration_source_streams.useUpdate(null===b||void 0===b?void 0:b.uuid),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(e){ye(e.integration_source_stream)},onErrorCallback:function(e,n){return y({errors:n,response:e})}})}}),Ze=(0,o.Z)(ke,2),Ce=Ze[0],Oe=Ze[1].isLoading,we=(0,s.useCallback)((function(e,n){var t=function(e,n){var t,i=[];return e.streams.forEach((function(e){e.tap_stream_id===n?t=e:i.push(e)})),{stream:t,streams:i}}(ne,e),i=t.stream,r=t.streams,o=go(go({},ne),{},{streams:r.concat(n(i))}),l=null===Q||void 0===Q?void 0:Q.catalog;(0,xe.Qr)(l)||h(V.type,V.uuid,(0,Ar.Pz)(go(go({},Q),{},{catalog:{}})));var c={pipeline:go(go({},b),{},{data_integration:go(go({},(null===b||void 0===b?void 0:b.data_integration)||{}),{},{catalog:o})})};j(c).then((function(){return a()}))}),[ne,V,Q,a,h,b,j]),Se=(0,s.useCallback)((function(e){if(null!==ne&&void 0!==ne&&ne.streams){var n=go(go({},ne),{},{streams:ne.streams.map((function(n){return e(n)}))}),t=null===Q||void 0===Q?void 0:Q.catalog;(0,xe.Qr)(t)||h(V.type,V.uuid,(0,Ar.Pz)(go(go({},Q),{},{catalog:{}})));var i={pipeline:go(go({},b),{},{data_integration:go(go({},(null===b||void 0===b?void 0:b.data_integration)||{}),{},{catalog:n})})};j(i).then((function(){return a()}))}}),[ne,V,Q,a,h,b,j]),Ee=(0,s.useCallback)((function(e,n,t){we(e,(function(e){return e.schema.properties[n]=t,e}))}),[we]),Pe=(0,s.useCallback)((function(e,n,t){we(e,(function(e){var i=e.metadata;return n.forEach((function(n){var r=i.findIndex((function(e){var t=e.breadcrumb,i=void 0===t?[]:t;return 2===i.length&&"properties"===i[0]&&i[1]===n}));if(r>=0){var o=i[r].metadata;e.metadata[r].metadata=go(go({},o),t)}})),e}))}),[we]),Ie=(0,d.Db)(be.ZP.blocks.pipelines.useUpdate(null===b||void 0===b?void 0:b.uuid,null===K||void 0===K?void 0:K.uuid),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(e,n){return null===y||void 0===y?void 0:y({errors:n,response:e})}})}}),Te=(0,o.Z)(Ie,1)[0],Ae=(0,s.useMemo)((function(){var e=[];return null===p||void 0===p||p.forEach((function(n){var t=n.variables;return null===t||void 0===t?void 0:t.forEach((function(n){var t=n.uuid,i=n.value,r="\"{{ variables('".concat(t,"') }}\"");if(!t.startsWith("output"))return e.push([(0,P.jsx)(_.ZP,{monospace:!0,children:t},"variable-uuid-".concat(t)),(0,P.jsx)(_.ZP,{monospace:!0,children:i},"variable-uuid-".concat(t,"-{value}")),(0,P.jsx)(_.ZP,{monospace:!0,children:r},"variable-uuid-".concat(t,"-{value}-code")),(0,P.jsx)(Rr.Z,{copiedText:r,monospace:!0,withCopyIcon:!0},"variable-uuid-".concat(t,"-{value}-code-copy"))])}))})),(0,P.jsx)(_e.Z,{alignTop:!0,columnFlex:[null,null,1],columns:[{uuid:"Key"},{uuid:"Value"},{uuid:"Code"}],rows:e})}),[p]),De=(0,s.useCallback)((function(e){return(0,P.jsxs)(Z.Z,{mt:2,children:[(0,P.jsxs)(_.ZP,{default:!0,children:["Use the following variables to interpolate sensitive or dynamic information into the configuration.",(0,P.jsx)("br",{}),"You can also access values from your environment variables by using the following syntax: ",(0,P.jsx)(_.ZP,{inline:!0,monospace:!0,children:"\"{{ env_var('MY_ENV_VARIABLE_NAME') }}\""}),(0,P.jsx)("br",{}),"For more information, check out the ",(0,P.jsx)(sn.Z,{href:e,openNewWindow:!0,primary:!0,children:"documentation"}),"."]}),(0,P.jsx)(Z.Z,{mt:1,children:Ae})]})}),[Ae]),Me=(0,s.useMemo)((function(){return(null===ge||void 0===ge?void 0:ge.streams)||[]}),[ge]),Ne=(0,Re.dd)((function(){return(0,P.jsx)(fo,{catalog:ne,isLoading:me,onActionCallback:function(e){var n=Object.entries(e).reduce((function(e,n){var t=(0,o.Z)(n,2),i=t[0];return t[1]?e.concat(i):e}),[]);if(n.length>0)he({integration_source:{streams:n}}),Fe();else{var t=null===Q||void 0===Q?void 0:Q.catalog;(0,xe.Qr)(t)||h(V.type,V.uuid,(0,Ar.Pz)(go(go({},Q),{},{catalog:{}}))),j({pipeline:go(go({},b),{},{data_integration:go(go({},(null===b||void 0===b?void 0:b.data_integration)||{}),{},{catalog:null})})}).then((function(){return a()})),Fe()}},streams:Me})}),{},[ne,V,Q,a,me,h,j,Me],{background:!0,uuid:"select_streams"}),Be=(0,o.Z)(Ne,2),Le=Be[0],Fe=Be[1];return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.Z,{mb:1,children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(g.Z,{iconOnly:!0,onClick:function(){return D((function(e){return!e}))},children:(0,P.jsxs)(P.Fragment,{children:[R&&(0,P.jsx)(X.Kh,{size:1.5*$.iI}),!R&&(0,P.jsx)(X._M,{size:1.5*$.iI})]})}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(Dr.Z,{children:"Source"}),!R&&(0,P.jsxs)(Dr.Z,{default:!0,inline:!0,children:["\xa0",null===(t=H[null===Q||void 0===Q?void 0:Q.source])||void 0===t?void 0:t.name]})]})]})}),R&&(0,P.jsxs)(Z.Z,{mb:5,children:[(0,P.jsxs)(Kr.dE,{children:[(0,P.jsxs)(Z.Z,{mb:5,children:[(0,P.jsx)(Dr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Select source"}),(null===F||void 0===F?void 0:F.length)>0?(0,P.jsxs)(er.Z,{onChange:function(e){var n,t,i=e.target.value;if(i){var o=null===(n=H[i])||void 0===n||null===(t=n.templates)||void 0===t?void 0:t.config;o&&Object.keys(o).forEach((function(e){o[e]=o[e]||null})),V?h(V.type,V.uuid,(0,Ar.Pz)(go(go({},Q),{},{catalog:{},config:o,source:i}))):r({content:(0,Ar.Pz)({config:o,source:i}),language:v.t6.YAML,type:v.tf.DATA_LOADER},0,O),ye(null),j().then((function(){a()}))}},primary:!0,value:null===Q||void 0===Q?void 0:Q.source,children:[(0,P.jsx)("option",{value:""}),F.map((function(e){var n=e.name,t=e.uuid;return(0,P.jsx)("option",{value:t,children:n},t)}))]}):(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(Ui.Z,{inverted:!0}),(0,P.jsx)(Z.Z,{ml:1}),(0,P.jsx)(Dr.Z,{level:5,primary:!0,children:"Loading sources..."})]})]}),V&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Z.Z,{mb:5,children:[(0,P.jsx)(Dr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Configuration"}),(null===Q||void 0===Q?void 0:Q.source)&&(0,P.jsxs)(Z.Z,{mb:2,children:[(0,P.jsxs)(_.ZP,{default:!0,children:["For more information on how to configure this source, read the ",(0,P.jsxs)(sn.Z,{href:"https://github.com/mage-ai/mage-ai/blob/master/mage_integrations/mage_integrations/sources/".concat(Q.source,"/README.md"),openNewWindow:!0,primary:!0,children:[Q.source," documentation"]})]}),De("https://docs.mage.ai/guides/data-integration-pipeline#configure-source")]}),q]}),(0,P.jsxs)("div",{children:[(0,P.jsx)(Dr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Select stream"}),(0,P.jsx)(g.Z,{loading:Oe,onClick:function(){j().then((function(){Ce().then((function(){return Le()})),a()}))},primary:!0,small:!0,children:"View and select streams"})]}),le&&(0,P.jsx)(_.ZP,{warning:!0,children:le})]})]}),me&&(0,P.jsx)(Z.Z,{p:2,children:(0,P.jsx)(Ui.Z,{})}),!me&&(0,P.jsx)(Z.Z,{mt:3,children:(0,P.jsx)(oo,{catalog:ne,destination:null===Y||void 0===Y?void 0:Y.destination,isLoadingLoadSampleData:de,loadSampleData:function(e){return se({integration_source:{action_type:"sample_data",pipeline_uuid:null===b||void 0===b?void 0:b.uuid,streams:[e]}})},pipeline:b,setErrors:y,setSelectedStream:S,source:null===Q||void 0===Q?void 0:Q.source,updateAllStreams:Se,updateMetadataForColumns:Pe,updateSchemaProperty:Ee,updateStream:we})})]}),(0,P.jsx)(Z.Z,{mb:1,children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(g.Z,{disabled:!V,iconOnly:!0,onClick:function(){return B((function(e){return!e}))},children:(0,P.jsxs)(P.Fragment,{children:[N&&V&&(0,P.jsx)(X.Kh,{size:1.5*$.iI}),(!N||!V)&&(0,P.jsx)(X._M,{disabled:!V,size:1.5*$.iI})]})}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsx)(x.Z,{alignItems:"center",children:(0,P.jsx)(Dr.Z,{children:"Transformers"})})]})}),N&&V&&(0,P.jsx)(Z.Z,{mb:5,children:(0,P.jsxs)(Kr.dE,{children:[c.length>0&&(0,P.jsx)(Z.Z,{mb:1,children:c.map((function(e,n){return(0,P.jsx)(Z.Z,{mb:1,children:e},n)}))}),(0,P.jsx)(Z.Z,{mt:1,children:(0,P.jsx)(ht,{addNewBlock:function(e){var n=e.content,t=e.configuration,i=[];return V&&i.push(V.uuid),r(go(go({},e),{},{configuration:t,content:n,upstream_blocks:i}),l.length-1,(function(e){K&&(Te({block:go(go({},K),{},{upstream_blocks:[e.uuid]})}),O(e))}))},compact:!0,hideCustom:!0,hideDataExporter:!0,hideDataLoader:!0,hideDbt:!0,hideRecommendations:!0,hideScratchpad:!0,hideSensor:!0,hideTransformerDataSources:!0,pipeline:b})})]})}),(0,P.jsx)(Z.Z,{mb:1,children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(g.Z,{disabled:!V,iconOnly:!0,onClick:function(){return T((function(e){return!e}))},children:(0,P.jsxs)(P.Fragment,{children:[I&&V&&(0,P.jsx)(X.Kh,{size:1.5*$.iI}),(!I||!V)&&(0,P.jsx)(X._M,{disabled:!V,size:1.5*$.iI})]})}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(Dr.Z,{children:"Destination"}),!I&&(0,P.jsxs)(Dr.Z,{default:!0,inline:!0,children:["\xa0",null===(i=G[null===Y||void 0===Y?void 0:Y.destination])||void 0===i?void 0:i.name]})]})]})}),I&&V&&(0,P.jsxs)(Kr.dE,{children:[(0,P.jsxs)(Z.Z,{mb:5,children:[(0,P.jsx)(Dr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Select destination"}),(null===W||void 0===W?void 0:W.length)>0?(0,P.jsxs)(er.Z,{onChange:function(e){var n=e.target.value;if(n){if(K)h(K.type,K.uuid,(0,Ar.Pz)(go(go({},Y),{},{destination:n})));else{var t,i,o=null===(t=G[n])||void 0===t||null===(i=t.templates)||void 0===i?void 0:i.config;o&&(Object.keys(o).forEach((function(e){o[e]=o[e]||null})),o.hasOwnProperty("table")&&delete o.table);var c=[];if((null===l||void 0===l?void 0:l.length)>=2){var u=l.find((function(e){var n=e.uuid;return(null===V||void 0===V?void 0:V.uuid)!==n}));u&&c.push(u.uuid)}else V&&c.push(V.uuid);r({content:(0,Ar.Pz)({config:o,destination:n}),language:v.t6.YAML,type:v.tf.DATA_EXPORTER,upstream_blocks:c},1,O)}j().then((function(){a()}))}},primary:!0,value:null===Y||void 0===Y?void 0:Y.destination,children:[(0,P.jsx)("option",{value:""}),W.map((function(e){var n=e.name,t=e.uuid;return(0,P.jsx)("option",{value:t,children:n},t)}))]}):(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(Ui.Z,{inverted:!0}),(0,P.jsx)(Z.Z,{ml:1}),(0,P.jsx)(Dr.Z,{level:5,primary:!0,children:"Loading destinations..."})]})]}),K&&(0,P.jsxs)(Z.Z,{mb:5,children:[(0,P.jsx)(Dr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Configuration"}),(null===Y||void 0===Y?void 0:Y.destination)&&(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)(Z.Z,{mb:2,children:[(0,P.jsxs)(_.ZP,{default:!0,children:["For more information on how to configure this destination, read the ",(0,P.jsxs)(sn.Z,{href:"https://github.com/mage-ai/mage-ai/blob/master/mage_integrations/mage_integrations/destinations/".concat(Y.destination,"/README.md"),openNewWindow:!0,primary:!0,children:[Y.destination," documentation"]}),".",(0,P.jsx)("br",{}),(0,P.jsx)("br",{}),"If your configuration contains a key named ",(0,P.jsx)(_.ZP,{inline:!0,monospace:!0,children:"table"}),", it\u2019s optional.",(0,P.jsx)("br",{}),"The table that\u2019s created in this destination will have a name corresponding to the stream\u2019s unique name (by default) or the value you entered under the input field labeled ",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,children:"Table name"})," in a previous section."]}),De("https://docs.mage.ai/guides/data-integration-pipeline#configure-destination")]})}),J,(0,P.jsx)(Z.Z,{mt:3,children:(0,P.jsxs)(x.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(Z.Z,{mr:2,children:[(0,P.jsx)(_.ZP,{bold:!0,large:!0,children:"Automatically add new fields"}),(0,P.jsx)(_.ZP,{default:!0,children:"Turn the toggle on if you want new table columns in each data source stream to be automatically added and synced with the data destination."})]}),(0,P.jsx)(qr.Z,{checked:!!te,disabled:!(null!==ne&&void 0!==ne&&ne.streams),onCheck:function(){return Se((function(e){return go(go({},e),{},{auto_add_new_fields:!te})}))}})]})}),(0,P.jsx)(Z.Z,{mt:3,children:(0,P.jsxs)(x.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(Z.Z,{mr:2,children:[(0,P.jsx)(_.ZP,{bold:!0,large:!0,children:"Disable column type check"}),(0,P.jsxs)(_.ZP,{default:!0,children:["By default, the value for each column is validated according to the schema property for that column.",(0,P.jsx)("br",{}),"If a value in a column doesn\u2019t match its type, an error will be raised and the process will be stopped.",(0,P.jsx)("br",{}),"Turn this toggle on if you want to disable this strict type checking."]})]}),(0,P.jsx)(qr.Z,{checked:!!ie,disabled:!(null!==ne&&void 0!==ne&&ne.streams),onCheck:function(){return Se((function(e){return go(go({},e),{},{disable_column_type_check:!ie})}))}})]})})]})]})]})};function xo(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function jo(e){for(var n=1;n=0?Q(u[l+1]):Q(null)}),100)}));else if(t[O.Bu]&&l>=1){var c=u[l-1];if(c){var a,s;Q(c);var p="".concat(c.type,"s/").concat(c.uuid,".py");null===(a=o.current[p])||void 0===a||null===(s=a.current)||void 0===s||s.scrollIntoView()}}else if(t[O.kD]&&l<=Ce-2){var h=u[l+1];if(h){var m,g;Q(h);var b="".concat(h.type,"s/").concat(h.uuid,".py");null===(m=o.current[b])||void 0===m||null===(g=m.current)||void 0===g||g.scrollIntoView()}}else(0,E.y)([O.Uq],t)?Y(!0):!i&&(0,E.y)([O.zH],t)?n({type:v.tf.SCRATCHPAD},l,Q):!i&&(0,E.y)([O.Fv],t)&&n({type:v.tf.SCRATCHPAD},l+1,Q)}else _e&&t[O.Uq]&&Q(_e);r[0]===O.OC&&r[1]===O.OC&&R()}}),[n,i,o.current,u,x,Oe,Ce,T,R,B,L,_e,G,Q,Y,X]),(0,s.useEffect)((function(){var e=setInterval((function(){T&&B()}),5e3);return function(){clearInterval(e)}}),[T,B]),(0,s.useEffect)((function(){setTimeout((function(){return oe(!0)}),600)}),[I]);var Ae=(0,s.useCallback)((function(e){te(!0),me(e)}),[te,me]),Re=(0,s.useCallback)((function(){te(!1),be(!1),ke("")}),[]),De=(0,s.useMemo)((function(){return u.filter((function(e){var n=e.type;return!Oe||v.tf.TRANSFORMER===n})).map((function(e,i){var l=e.type,c=e.uuid,f=(null===L||void 0===L?void 0:L.uuid)===c,m=Ze[c],v=m?0===m.priority?Qe.uF.BUSY:Qe.uF.QUEUED:Qe.uF.IDLE,g="".concat(l,"s/").concat(c,".py");return o.current[g]=(0,s.createRef)(),(0,P.jsx)(vr,{addNewBlock:function(e){return Y(!0),n(e,i+1,Q)},addNewBlockMenuOpenIdx:de,addWidget:t,autocompleteItems:r,block:e,blockIdx:i,blockRefs:o,blocks:u,dataProviders:a,defaultValue:e.content,deleteBlock:function(e){d(e),F(!1)},executionState:v,fetchFileTree:p,fetchPipeline:h,interruptKernel:x,mainContainerRef:j,mainContainerWidth:y,messages:_[c],noDivider:i===Ce-1||Oe,onCallbackChange:function(e){return C(l,c,e)},onChange:function(e){return w(l,c,e)},onClickAddSingleDBTModel:Ae,openSidekickView:S,pipeline:I,ref:o.current[g],runBlock:D,runningBlocks:N,savePipelineContent:B,selected:f,setAddNewBlockMenuOpenIdx:fe,setAnyInputFocused:F,setCreatingNewDBTModel:be,setEditingBlock:U,setErrors:H,setOutputBlocks:W,setRecsWindowOpenBlockIdx:V,setSelected:function(n){return Q(!0===n?e:null)},setSelectedOutputBlock:q,setTextareaFocused:Y,textareaFocused:f&&X,widgets:J},c)}))}),[n,de,t,r,o,u,a,d,p,h,x,Oe,j,y,_,Ce,C,w,Ae,S,I,D,N,Ze,B,L,fe,F,U,H,W,V,Q,q,Y,X,J]),Me=(0,s.useMemo)((function(){return(0,P.jsx)(bo,{addNewBlockAtIndex:n,blocks:u,codeBlocks:De,fetchFileTree:p,fetchPipeline:h,fetchSampleData:m,globalVariables:b,onChangeCodeBlock:w,openSidekickView:S,pipeline:I,savePipelineContent:B,setErrors:H,setIntegrationStreams:z,setOutputBlocks:W,setSelectedBlock:Q,setSelectedOutputBlock:q,setSelectedStream:K})}),[n,u,De,p,h,m,b,w,S,I,B,H,z,W,Q,q,K]),Ne=(0,s.useMemo)((function(){return(0,P.jsx)(ht,{addNewBlock:function(e){var t=u[u.length-1],i=null,r={},o=t?Wi(t,e):[];t&&([v.tf.DATA_LOADER,v.tf.TRANSFORMER].includes(t.type)&&v.tf.SCRATCHPAD===e.type&&(i="from mage_ai.data_preparation.variable_manager import get_variable\n\n\ndf = get_variable('".concat(I.uuid,"', '").concat(t.uuid,"', 'output_0')\n")),v.t6.SQL===t.language&&(r=jo(jo({},(0,xe.GL)(t.configuration,[oi,li,ci,ui,fi])),r))),v.t6.SQL===e.language&&(i=st(i)),i=dt(e,i),n(jo(jo({},e),{},{configuration:r,content:i,upstream_blocks:o}),Ce,Q),Y(!0)},hideCustom:Oe||we,hideDataExporter:Oe,hideDataLoader:Oe,hideDbt:Oe||we,hideRecommendations:Oe,hideScratchpad:Oe,hideSensor:Oe,onClickAddSingleDBTModel:Ae,pipeline:I,setCreatingNewDBTModel:be,setRecsWindowOpenBlockIdx:V})}),[n,u,Oe,we,Ce,Ae,I,V,Q,Y]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(mn,{children:ce&&(0,P.jsx)(Rn.Z,{classNames:"pipeline-detail",in:re,onEntered:function(){return setTimeout((function(){return ae(!1)}),hn)},timeout:1,children:(0,P.jsx)(vn,{})})}),(0,P.jsxs)(Z.Z,{mt:1,px:$.cd,children:[Oe&&Me,!Oe&&(0,P.jsxs)(P.Fragment,{children:[De,(0,P.jsx)(Z.Z,{mt:$.cd,children:Ne})]}),ne&&(0,P.jsx)(tn.Z,{onClickOutside:Re,open:!0,children:(0,P.jsx)(Tr,{blocks:u,creatingNewDBTModel:ge,dbtModelName:ye,files:g,onClose:Re,onOpenFile:function(e){var t=ge?"".concat(e,"/").concat((0,ue.RA)(ye||(0,ue.Y6)()),".").concat(A.SQL):e,i={configuration:{file_path:t},language:v.t6.SQL,name:(0,ue.wE)(t),type:v.tf.DBT};ge&&(i.content="--Docs: https://docs.mage.ai/dbt/sources\n");var r="undefined"===typeof he||null===he,o=u[r?u.length-1:he],l=o?Wi(o,i):[];n(jo(jo({},i),{},{upstream_blocks:l}),r?Ce:he+1,Q),Re(),Y(!0)},setDbtModelName:ke})})]})]})},ko=t(28358),Zo=t(12344),_o=t(32063),Co=t(70543),Oo=t(24141);function wo(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function So(e){for(var n=1;n=.8*v?p:f,fontFamily:No.ry,fontSize:14,textAnchor:"middle",x:"50%",y:"50%",children:e.count})]},"heatmap-rect-".concat(e.row,"-").concat(e.column))}))}))}})})})})}var Qo=function(e){var n=e.countMidpoint,t=e.data,i=e.height,r=e.margin,o=e.minCount,l=e.xAxisLabel,c=e.xLabels,u=e.yAxisLabel,a=e.yLabels,s=function(e){return e.length>12?"".concat(e.substring(0,12),"..."):e},d=4*$.iI,f=8*$.iI,p=0;return u&&(p+=d+1*$.iI),a&&(p+=f+1*$.iI),(0,P.jsxs)(P.Fragment,{children:[(l||c)&&(0,P.jsx)("div",{style:{marginBottom:null===r||void 0===r?void 0:r.bottom,marginLeft:null===r||void 0===r?void 0:r.left,marginRight:null===r||void 0===r?void 0:r.right,marginTop:null===r||void 0===r?void 0:r.top,paddingLeft:p},children:(0,P.jsxs)(Z.Z,{mb:{xs:1},children:[l&&(0,P.jsx)(Z.Z,{mb:1,children:(0,P.jsx)(_.ZP,{center:!0,muted:!0,xsmall:!0,children:l})}),c&&(0,P.jsx)(x.Z,{children:c.map((function(e){var n=e.label,t=e.linkProps;return(0,P.jsx)(He.Z,{flex:"1",justifyContent:"center",children:t?(0,P.jsx)(sn.Z,{bold:!0,centerAlign:!0,minWidth:70,onClick:t.onClick,xsmall:!0,children:n}):(0,P.jsx)(_.ZP,{bold:!0,center:!0,minWidth:70,title:String(n),xsmall:!0,children:s(String(n))})},n)}))})]})}),(0,P.jsxs)("div",{style:{height:i,display:"flex",width:"100%"},children:[u&&(0,P.jsx)("div",{style:{marginRight:1*$.iI,width:d},children:(0,P.jsx)(x.Z,{alignItems:"center",justifyContent:"center",children:(0,P.jsx)(Fo,{children:(0,P.jsx)(_.ZP,{center:!0,muted:!0,xsmall:!0,children:u})})})}),a&&(0,P.jsx)("div",{style:{marginRight:1*$.iI},children:(0,P.jsx)(x.Z,{alignItems:"center",flexDirection:"column",fullHeight:!0,width:f,children:a.map((function(e){var n=e.label,t=e.linkProps;return(0,P.jsx)(He.Z,{alignItems:"center",flex:"1",children:t?(0,P.jsx)(sn.Z,{bold:!0,centerAlign:!0,onClick:t.onClick,xsmall:!0,children:n}):(0,P.jsx)(_.ZP,{bold:!0,center:!0,title:String(n),xsmall:!0,children:s(String(n))})},n)}))})}),(0,P.jsx)("div",{style:{height:i,width:"100%"},children:(0,P.jsx)(To.Z,{children:function(e){var i=e.width,l=e.height;return(0,P.jsx)(Vo,{countMidpoint:n,data:t,height:l,margin:r,minCount:o,width:i,yLabels:a})}})})]})]})},qo=t(11754);var Ko=function(e){var n=e.afterWidth,t=e.features,i=e.insightsOverview,r=e.statistics,l=i.correlations,c=void 0===l?[]:l,u=n-(2*$.cd*$.iI+pn.nn),a=function(e){var n=[];return{heatmapData:null===e||void 0===e?void 0:e.map((function(e,t){var i=e.correlations,r=e.feature.uuid;n.push({label:r});var o=i[0].y.map((function(e){var n=e.value;return(0,ue.QV)(n)}));return o.splice(t,0,1),o})),xyLabels:n}}(c),s=a.heatmapData,d=a.xyLabels,f=function(e,n){return(0,ee.YC)(null===e||void 0===e?void 0:e.map((function(e){return{feature:e,value:1-n["".concat(e.uuid,"/null_value_rate")]}})),"value")}(t,r),p=function(e,n){return(0,ee.YC)(null===e||void 0===e?void 0:e.map((function(e){return{feature:e,value:n["".concat(e.uuid,"/count_distinct")]}})),"value")}(t,r),h=function(e,n){return(0,ee.YC)(null===e||void 0===e?void 0:e.map((function(e){var t=Object.entries(n["".concat(e.uuid,"/value_counts")]||{})[0]||[],i=(0,o.Z)(t,2),r=i[0],l=i[1];return{feature:e,percentage:Number(l)/n.count,value:r}})),"percentage")}(t,r);return(0,P.jsxs)(x.Z,{flexDirection:"column",children:[(null===f||void 0===f?void 0:f.length)>=1&&(0,P.jsx)(qo.Z,{headerTitle:"Data completion",width:u,children:(0,P.jsx)(Io.Z,{data:f.map((function(e){var n=e.feature;return{x:e.value,y:n.uuid}})),height:Math.max(3*f.length*$.iI,50*$.iI),renderTooltipContent:function(e){var n=e.x;return"".concat((0,ue.T3)(n)," of rows have a value")},xNumTicks:2,ySerialize:function(e){return e.y}})}),(null===p||void 0===p?void 0:p.length)>=1&&(0,P.jsx)(qo.Z,{headerTitle:"Number of unique values",width:u,children:(0,P.jsx)(Io.Z,{data:p.map((function(e){var n=e.feature;return{x:e.value,y:n.uuid}})),height:Math.max(3*f.length*$.iI,50*$.iI),renderTooltipContent:function(e){var n=e.x;return"".concat(n," unique values")},xNumTicks:2,ySerialize:function(e){return e.y}})}),h.length>=1&&(0,P.jsx)(qo.Z,{headerTitle:"Distribution of values",width:u,children:(0,P.jsx)(Io.Z,{data:h.map((function(e){var n=e.feature,t=e.percentage;return{feature:n,value:e.value,x:t,y:n.uuid}})),height:Math.max(3*h.length*$.iI,50*$.iI),renderTooltipContent:function(e){var n=e.value,t=e.x;return"".concat(n," is ").concat((0,ue.T3)(t)," of all rows")},xNumTicks:2,ySerialize:function(e){return e.y}})}),c&&(null===s||void 0===s?void 0:s.length)>=1&&(0,P.jsx)(qo.Z,{headerTitle:"Correlations",children:(0,P.jsx)(Z.Z,{p:1,children:(0,P.jsx)(Qo,{countMidpoint:0,data:s,height:8*$.iI*d.length,minCount:-1,xLabels:d,yLabels:d})})})]})},Yo=t(92083),Xo=t.n(Yo),Jo=t(84969),$o=t(90948),el=t(65743),nl=t(39048),tl=t(79487),il=t(61655),rl=t(16853),ol=t(65376),ll=t(52359),cl=t(48072),ul=t(24903),al=t(98677),sl=t(73899);function dl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function fl(e){for(var n=1;n20?"".concat(e.substring(0,20),"..."):e});var g=o?Gr.iD:Gr.J5,b=fl(fl({},pl),c),x=n.slice(Math.max(0,n.length-50)),j=(0,s.useMemo)((function(){return Object.keys((null===x||void 0===x?void 0:x[0])||{}).filter((function(e){return e!==i}))}),[x,i]),y=(0,ul.Z)({domain:j,range:[sl.a$,sl.Ej,sl.hM,sl.ZA,sl.$R,sl.X_,sl.er,sl.hl,sl.nQ]}),k=(0,s.useMemo)((function(){return x.map(m)}),[x,m]),Z=(0,al.Z)({domain:k,padding:.1}),_=(0,al.Z)({domain:j,padding:.1}),C=(0,Do.Z)({domain:[0,hl(x,(function(e){return hl(j,(function(n){return Number(e[n])}))}))]}),O={active:(null===h||void 0===h?void 0:h.content.default)||Ce.Z.content.default,backgroundPrimary:(null===h||void 0===h?void 0:h.chart.backgroundPrimary)||Ce.Z.chart.backgroundPrimary,backgroundSecondary:(null===h||void 0===h?void 0:h.chart.backgroundSecondary)||Ce.Z.chart.backgroundSecondary,muted:(null===h||void 0===h?void 0:h.content.muted)||Ce.Z.content.muted,primary:(null===h||void 0===h?void 0:h.chart.primary)||Ce.Z.chart.primary,tooltipBackground:(null===h||void 0===h?void 0:h.background.navigation)||Ce.Z.background.navigation},w=k;a&&(w=x.reduce((function(e,n){return e.concat(j.map((function(e){var t=n[e];return(0,ue.HW)(t)?parseInt(String(t)):t})))}),[]));var S=Math.min(Math.max.apply(Math,(0,r.Z)(w.map((function(e){return String(e).length})))),20);b.left+=7*S;var E=f-(b.left+b.right),P=t-(b.top+b.bottom);a?(Z.rangeRound([0,E]),C.rangeRound([P,0])):(Z.rangeRound([P,0]),C.rangeRound([0,E])),_.rangeRound([0,Z.bandwidth()]);var I=x.map(m).length,T=0;a||(T=Z(w[I-1]));var A=(0,s.useCallback)((function(e){var n=(0,cl.Z)(e)||{x:0,y:0},t=n.x,i=n.y,r=t-b.left,o=i-b.top,l=0;l=a?(r-T/2)/(E-T):1-(o-T/2)/(P-T);var c=Math.floor(l*I),u=x[c];"undefined"===typeof u&&(u=x[c-1]),a?r>T&&rT&&o=2&&(r=r.toFixed(4)),(0,P.jsxs)(_.ZP,{inverted:!0,small:!0,children:[t,": ",r]},t)}}))]})]})}));var jl=function(e){var n,t=e.height,i=e.width,r=e.xAxisLabel,o=e.yAxisLabel,l=(0,M.Z)(e,vl);return n="undefined"===typeof i?"100%":o?0===i?i:i-28:i,(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{style:{display:"flex",height:t,marginBottom:r?$.iI:null,width:"100%"},children:[o&&(0,P.jsx)(x.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,P.jsx)(ll.Z,{children:(0,P.jsx)(_.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,P.jsx)("div",{style:{height:t,width:n},children:(0,P.jsx)(To.Z,{children:function(e){var n=e.width,t=e.height;return(0,P.jsx)(xl,bl(bl({},l),{},{height:t,width:n}))}})})]}),r&&(0,P.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,P.jsx)(_.ZP,{center:!0,muted:!0,small:!0,children:r})})]})},yl=t(95422),kl=["keyForYData"],Zl=["height","width","xAxisLabel","yAxisLabel"];function _l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Cl(e){for(var n=1;n=2&&(l=l.toFixed(4)),(0,P.jsxs)(_.ZP,{inverted:!0,small:!0,children:[i,": ",l]},i)}})),(0,P.jsx)("br",{}),(0,P.jsxs)(_.ZP,{inverted:!0,small:!0,children:[h&&h(T(a)),!h&&T(a)]})]})]})}));var wl=function(e){var n=e.height,t=e.width,i=e.xAxisLabel,r=e.yAxisLabel,o=(0,M.Z)(e,Zl);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{style:{display:"flex",height:n,marginBottom:i?$.iI:null,width:"100%"},children:[r&&(0,P.jsx)(x.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,P.jsx)(ll.Z,{children:(0,P.jsx)(_.ZP,{center:!0,muted:!0,small:!0,children:r})})}),(0,P.jsx)("div",{style:{height:n,width:r?0===t?t:t-28:t},children:(0,P.jsx)(To.Z,{children:function(e){var n=e.height,t=e.width;return(0,P.jsx)(Ol,Cl(Cl({},o),{},{height:n,width:t}))}})})]}),i&&(0,P.jsx)("div",{style:{paddingLeft:r?36:0,paddingTop:4},children:(0,P.jsx)(_.ZP,{center:!0,muted:!0,small:!0,children:i})})]})},Sl=t(66872),El=t(68735),Pl=t(320),Il=40*$.iI,Tl=N.default.div.withConfig({displayName:"indexstyle__ChartBlockStyle",componentId:"sc-1c3ufnj-0"})(["border-radius:","px;margin-left:","px;margin-right:","px;margin-top:","px;",""],Oe.n_,.5*$.iI,.5*$.iI,1*$.iI,(function(e){return"\n background-color: ".concat((e.theme.background||Ce.Z.background).chartBlock,";\n ")})),Al=N.default.div.withConfig({displayName:"indexstyle__ConfigurationOptionsStyle",componentId:"sc-1c3ufnj-1"})(["flex:4;padding-left:","px;padding-right:","px;"],1*$.iI,1*$.iI),Rl=N.default.div.withConfig({displayName:"indexstyle__CodeStyle",componentId:"sc-1c3ufnj-2"})(["padding-top:","px;",""],$.iI/2,(function(e){return"\n background-color: ".concat((e.theme.background||Ce.Z.background).codeTextarea,";\n ")})),Dl=N.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-1c3ufnj-3"})(["margin-bottom:","px;padding-bottom:","px;padding-left:","px;",""],$.cd*$.iI,$.iI,$.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||Ce.Z.borders).medium,";\n ")}));function Ml(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Nl(e){for(var n=1;n=1?1:0,style:{display:"flex",flex:1},children:s.cloneElement(e,{onChange:function(e){o((function(i){return i[n]=e.target.value,t(i,{resetValues:function(){return u((function(e){return e+1}))},setValues:o}),i}))},value:r[n]})},"multi-select-child-".concat(n,"-").concat(c))}))})};function Ul(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Hl(e){for(var n=1;n=1&&m!==Qe.uF.IDLE,De=(0,s.useMemo)((function(){return null===k||void 0===k?void 0:k.filter((function(e){return null===e||void 0===e?void 0:e.type}))}),[k]),Me=!!De.find((function(e){return e.error})),Ne=De.length>=1,Be=(0,s.useMemo)((function(){return{blockType:a.type,hasError:Me,selected:A}}),[a.type,Me,A]);if(null!==De&&void 0!==De&&De.length){var Le,Fe,Ue=De.length-1;c=null===De||void 0===De||null===(Le=De[Ue])||void 0===Le||null===(Fe=Le.data)||void 0===Fe?void 0:Fe[0]}c?(c=(c=c.slice(1,c.length-1)).replaceAll('\\"','"').replaceAll("\\'","'"),(0,ue.Pb)(c)&&(r=JSON.parse(c))):(null===W||void 0===W?void 0:W.length)>=1&&(r={},W.forEach((function(e){var n=e||{},t=n.text_data,i=n.type,o=n.variable_uuid;Qe.Gi.TEXT===i&&(0,ue.Pb)(t)&&(r[o]=JSON.parse(t))})));var ze=(0,s.useCallback)((function(e){var n=Hl(Hl(Hl({},a),e),{},{configuration:Hl(Hl({},a.configuration),e.configuration)});T().then((function(){E({block:n,code:re,ignoreAlreadyRunning:!0,runUpstream:!!ye.find((function(e){var n;return![v.DA.EXECUTED,v.DA.UPDATED].includes(null===(n=Ae[e])||void 0===n?void 0:n.status)}))})})),Oe((function(e){return e+1}))}),[a,Ae,re,Oe,ye]),We=(0,s.useCallback)((function(e){oe(e),w(e)}),[w,oe]),Ge=(0,s.useCallback)((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.autoRun;te((function(n){return Hl(Hl({},n),e)}));var i=Hl(Hl({},a),{},{configuration:Hl(Hl(Hl({},ne),e),{},{chart_type:K})});L(i);Object.keys(e);_e&&t&&ze(i)}),[a,K,ne,_e,ze,te,L]);(0,s.useEffect)((function(){Q({python:cr({autocompleteItems:u,block:a,blocks:p,pipeline:S})})}),[u,a,p,S]);var qe=(0,s.useMemo)((function(){return(0,P.jsx)(Ve.Z,{autoHeight:!0,autocompleteProviders:V,onChange:We,selected:A,setSelected:function(e){return D(!0===e?a:null)},setTextareaFocused:M,showLineNumbers:!1,textareaFocused:B||Wt.TABLE===K&&!ae,value:re,width:"100%"})}),[V,K,re,ae,A,D,M,B,We]),Ke=(0,s.useMemo)((function(){return Me&&Ne&&(0,P.jsx)(Gt,Hl(Hl({},Be),{},{block:a,contained:!1,hideExtraInfo:!0,isInProgress:Re,messages:De,selected:A}))}),[a,Be,Me,Ne,Re,De,A]),Ye=(0,kt.Z)(ae),Je=(0,kt.Z)(F);(0,s.useEffect)((function(){var e,n=null===U||void 0===U||null===(e=U.current)||void 0===e?void 0:e.getBoundingClientRect();Ye!==ae||Je!==F?(ve(0),setTimeout((function(){var e,n,t=null===U||void 0===U||null===(e=U.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.width;t&&ve(t)}),100)):n&&ve(n.width)}),[ae,Ye,U.current,ve,F,Je]);var $e=(0,s.useMemo)((function(){var e=[];return ye.forEach((function(n,t){var i=Ae[n],r=(0,ce.qn)(null===i||void 0===i?void 0:i.type,{blockColor:null===i||void 0===i?void 0:i.color,theme:H}).accent;e.push((0,P.jsxs)(Z.Z,{ml:2,children:[(0,P.jsxs)(_.ZP,{bold:!0,inline:!0,monospace:!0,small:!0,children:["df_",t+1]})," ",(0,P.jsx)(_.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"->"})," ",(0,P.jsx)(sn.Z,{color:r,inline:!0,onClick:function(){var e,n,t=null===f||void 0===f||null===(e=f.current)||void 0===e?void 0:e["".concat(null===i||void 0===i?void 0:i.type,"s/").concat(null===i||void 0===i?void 0:i.uuid,".py")];null===t||void 0===t||null===(n=t.current)||void 0===n||n.scrollIntoView()},preventDefault:!0,small:!0,children:(0,P.jsx)(_.ZP,{color:r,monospace:!0,small:!0,children:n})})]},n))})),e}),[Ae,ye]),en=(0,s.useMemo)((function(){var e,n=[],t=null===Pe||void 0===Pe||null===(e=Pe.code)||void 0===e?void 0:e.reduce((function(e,n){var t=n.uuid;return mi.includes(t)?e.concat(t):e}),[]);null===t||void 0===t||t.length;return null===t||void 0===t||t.forEach((function(e,t){var i=ne[e];if(i){var r,o,l=null===(r=Ti[K])||void 0===r||null===(o=r[e])||void 0===o?void 0:o.call(r);n.push((0,P.jsxs)(Z.Z,{ml:2,children:[(0,P.jsx)(_.ZP,{bold:!0,inline:!0,monospace:!0,small:!0,children:i})," ",l&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(_.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"->"})," ",(0,P.jsx)(_.ZP,{default:!0,inline:!0,small:!0,children:l})]})]},i))}})),n}),[ne,Pe]),nn=(0,kt.Z)(K),tn=(0,kt.Z)(ye);(0,s.useEffect)((function(){if((!nn&&K&&null!==ye&&void 0!==ye&&ye.length||(null===tn||void 0===tn||!tn.length)&&(null===ye||void 0===ye?void 0:ye.length)>=1&&K)&&!re&&(0,xe.Qr)(ne)&&Ie){var e=Hl(Hl({},a),{},{upstream_blocks:ye});Ie.configuration&&Ge(Ie.configuration(e)),Ie.content&&We(Ie.content(e))}}),[a,K,nn,ne,re,Ge,We,ye,tn]);var rn=(0,s.useMemo)((function(){return ne.width_percentage||1}),[ne]),on=(0,s.useMemo)((function(){return Object.entries(Pe||{}).reduce((function(e,n){var t=(0,o.Z)(n,2),i=t[0],r=t[1];return Hl(Hl({},e),{},(0,l.Z)({},i,r.map((function(e){var n,t=e.autoRun,i=e.label,r=e.monospace,o=e.options,c=e.settings,u=void 0===c?{}:c,s=e.type,d=e.uuid,f={fullWidth:!0,key:d,label:(0,ue.kC)(i()),monospace:r,onBlur:function(){return D(a)},onChange:function(e){return Ge((0,l.Z)({},d,e.target.value),{autoRun:t})},onFocus:function(){return D(a)},value:(null===ne||void 0===ne?void 0:ne[d])||""},p=(null!==z&&void 0!==z&&z.block?[z.block]:[]).reduce((function(e,n){var t=n.outputs;return t?e.concat(t.reduce((function(e,n){var t=n.sample_data;return null!==t&&void 0!==t&&t.columns?e.concat(t.columns):e}),[])):e}),[]);if(wi.COLUMNS===s){var h=ne[d]||[];n=(0,P.jsxs)(P.Fragment,{children:[(!u.maxValues||h.length=1&&(0,P.jsxs)(Dl,{children:[(0,P.jsxs)(_.ZP,{muted:!0,small:!0,children:["Variables you can use in your code: ",$e]}),(0,P.jsxs)(_.ZP,{muted:!0,small:!0,children:["Variables that you must define: ",en]})]}),qe]})]}),Ke&&(0,P.jsx)(Z.Z,{px:1,children:Ke})]})})}var Wl=s.forwardRef(zl),Gl=t(97361),Vl=["blockRefs","blocks","chartRefs","deleteWidget","messages","onChangeChartBlock","runBlock","runningBlocks","savePipelineContent","selectedBlock","setAnyInputFocused","setSelectedBlock","setTextareaFocused","textareaFocused","updateWidget","widgets","width"];function Ql(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ql(e){for(var n=1;n=1&&e.push((0,P.jsx)(yt.Z,{light:!0},"divider-".concat(l)));var u=!(null===w||void 0===w||!w[l]),a=![v.t6.PYTHON].includes(r);e.push((0,P.jsx)(Z.Z,{px:2,py:1,children:(0,P.jsxs)(x.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(He.Z,{alignItems:"center",children:[(0,P.jsx)(L.Z,{color:c,size:1.5*$.iI,square:!0}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsx)(_.ZP,{monospace:!0,muted:a,small:!0,children:l})]}),a&&(0,P.jsxs)(_.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:[r," support coming soon"]}),!a&&(0,P.jsx)(b.Z,{checked:!a&&u,disabled:a,onClick:function(){S((function(e){var n=ec({},e);return u?delete n[l]:n[l]=l,n}))}})]})},"option-".concat(l)))})),e}),[D,f,w]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(tn.Z,{onClickOutside:function(){return k(!1)},open:!0,children:[(0,P.jsx)(C.Z,{beforeIcon:(0,P.jsx)(X.HN,{}),borderless:!0,compact:!0,onChange:function(e){return m(e.target.value)},onClick:function(e){(0,dr.j)(e),k(!0)},onFocus:function(e){(0,dr.j)(e),k(!0)},placeholder:"Select blocks to run expectations on",small:!0,value:h}),y&&(0,P.jsxs)(P.Fragment,{children:[M,(0,P.jsx)(Z.Z,{mx:1,children:(0,P.jsx)(x.Z,{justifyContent:"flex-end",children:(0,P.jsx)(g.Z,{compact:!0,loading:R,onClick:function(){A({upstream_blocks:Object.keys(w)})},small:!0,children:"Save selected blocks"})})})]})]}),!y&&(null===i||void 0===i||null===(n=i.upstream_blocks)||void 0===n?void 0:n.length)>=1&&(0,P.jsxs)(Z.Z,{pb:1,pr:1,children:[(0,P.jsx)(Z.Z,{mt:1,pl:1,children:(0,P.jsx)(_.ZP,{muted:!0,small:!0,children:"Click a block name below to run expectations on it."})}),(0,P.jsx)(x.Z,{alignItems:"center",children:null===i||void 0===i||null===(t=i.upstream_blocks)||void 0===t?void 0:t.map((function(e){var n=null===E||void 0===E?void 0:E[e];if(!n)return(0,P.jsx)("div",{},e);var t=n.color,r=n.type,o=(0,ce.qn)(r,{blockColor:t,theme:f}).accent;return(0,P.jsx)(Z.Z,{ml:1,mt:1,children:(0,P.jsx)(g.Z,{backgroundColor:o,compact:!0,disabled:!u,onClick:function(){null===u||void 0===u||u({block:ec(ec({},i),{},{upstream_blocks:[null===n||void 0===n?void 0:n.uuid]})})},small:!0,children:(0,P.jsx)(_.ZP,{monospace:!0,small:!0,children:e})})},e)}))})]})]})};function tc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ic(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:"-",n=arguments.length>1?arguments[1]:void 0,t=vc[n],i=l===sc.RL.TEXT&&t in M,r=i?M[t]:e,o=isNaN(r)?r:(0,ue.QV)(r),c=t in gc&&o/p>gc[t];return(0,P.jsx)(pc,{backgroundColor:n%2===0?H:z,children:(0,P.jsxs)(_.ZP,{bold:c,danger:c,default:!0,textOverflow:!0,title:i?B[t]:"",children:[i?"".concat((0,ue._6)("word",o)):o,t in L&&" (".concat(L[t],")")]})},n)}))]})}var xc=function(e){var n=e.features,t=void 0===n?[]:n,i=e.shouldLink,r=e.statistics,o=(0,s.useContext)(N.ThemeContext),l=(0,s.useMemo)((function(){return t.map((function(e){return e.uuid}))}),[t]);return(0,P.jsx)(qo.Z,{headerTitle:"Feature profiles",children:(0,P.jsxs)(x.Z,{children:[(0,P.jsx)(dc,{children:(0,P.jsxs)(He.Z,{flex:1,flexDirection:"column",style:{background:o.background.table},children:[(0,P.jsx)(Z.Z,{mr:1.25*$.iI,mt:"".concat(53,"px")}),vc.map((function(e,n){return(0,P.jsx)(pc,{children:(0,P.jsx)(_.ZP,{default:!i,secondary:i,children:e})},"".concat(e,"-").concat(n))}))]})}),(0,P.jsx)(hc,{children:(0,P.jsx)(x.Z,{children:t.map((function(e,n){return(0,P.jsx)(fc,{children:(0,P.jsx)(bc,{columns:l,feature:e,shouldLink:i,statistics:r})},"".concat(e,"-").concat(n))}))})})]})})};function jc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function yc(e){for(var n=1;nj+1&&y(e-1):y(e)},rows:R})]})},Zc=t(21764),_c=t(22673),Cc=t(1286),Oc=($.iI,Cc.O$,$.iI,Gr.dN,N.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-cr39lf-0"})(["height:calc(100vh - ","px - ","px);width:fit-content;",""],fn.Wi,pn.nn,(function(e){return e.fullWidth&&"\n width: 100%;\n "})),N.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-cr39lf-1"})(["padding:","px;",""],2*$.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "})),N.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-cr39lf-2"})(["",""],(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))),wc=N.default.td.withConfig({displayName:"indexstyle__CellStyle",componentId:"sc-cr39lf-3"})(["display:flex;align-items:center;justify-content:space-between;border:1px solid #1C1C1C;height:100%;",""],(function(e){return!e.noPadding&&"\n padding: 0 ".concat(2*$.iI,"px;\n ")})),Sc=t(19963);var Ec=function(e){var n=e.copyText,t=e.deleteVariable,i=e.fetchVariables,r=e.hideEdit,l=e.obfuscate,c=e.pipelineUUID,u=e.variable,a=u.uuid,f=(u.type,u.value),p=(0,s.useRef)(null),h=(0,s.useState)(!1),m=h[0],v=h[1],g=(0,s.useState)(a),b=g[0],x=g[1],y=(0,s.useState)(f),k=y[0],Z=y[1],O=(0,s.useState)(!1),w=O[0],S=O[1],E=(0,d.Db)(be.ZP.variables.pipelines.useUpdate(c,a),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(){S(!1),i()}})}}),I=(0,o.Z)(E,1)[0],T=(0,s.useCallback)((function(e){if("Enter"===e.key){var n=k;try{n=JSON.parse(k)}catch(t){}I({variable:{name:b,value:n}})}else"Escape"===e.key&&S(!1)}),[b,k]);(0,s.useEffect)((function(){var e;w&&(null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus())}),[w,p]);var A=n||"kwargs['".concat(a,"']");return(0,P.jsx)("div",{onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)},children:(0,P.jsxs)(Gl.Z,{children:[(0,P.jsx)(Ll.Z,{md:1,hiddenSmDown:!0,children:(0,P.jsx)(wc,{noPadding:!0,children:(0,P.jsx)(j.ZP,{backgroundColor:Sc.qJ,borderless:!0,centerText:!0,muted:!0,onClick:function(){navigator.clipboard.writeText(A),Zc.Am.success("Successfully copied to clipboard.",{position:Zc.Am.POSITION.BOTTOM_RIGHT,toastId:a})},small:!0,uuid:"Sidekick/GlobalVariables/".concat(a),withIcon:!0,children:(0,P.jsx)(X.CK,{size:2.5*$.iI})})})}),(0,P.jsx)(Ll.Z,{md:4,children:w?(0,P.jsx)(wc,{children:(0,P.jsx)(C.Z,{compact:!0,borderless:!0,fullWidth:!0,monospace:!0,onChange:function(e){x(e.target.value),e.preventDefault()},onKeyDown:T,paddingHorizontal:0,placeholder:"variable",small:!0,value:b})}):(0,P.jsx)(wc,{children:(0,P.jsx)(_.ZP,{color:sl.Or,monospace:!0,small:!0,textOverflow:!0,children:a})})}),(0,P.jsx)(Ll.Z,{md:7,children:w?(0,P.jsx)(wc,{children:(0,P.jsx)(C.Z,{compact:!0,borderless:!0,fullWidth:!0,monospace:!0,onChange:function(e){Z(e.target.value),e.preventDefault()},onKeyDown:T,paddingHorizontal:0,placeholder:"enter value",ref:p,small:!0,value:k})}):(0,P.jsxs)(wc,{children:[l?(0,P.jsx)(_.ZP,{monospace:!0,small:!0,children:"********"}):(0,P.jsx)(_.ZP,{monospace:!0,small:!0,children:f}),(0,P.jsxs)(He.Z,{children:[!r&&m&&(0,P.jsx)(j.ZP,{backgroundColor:Sc.qJ,borderless:!0,inline:!0,muted:!0,onClick:function(){S(!0)},small:!0,uuid:"Sidekick/GlobalVariables/edit_".concat(a),withIcon:!0,children:(0,P.jsx)(X.I8,{size:2.5*$.iI})}),t&&m&&(0,P.jsx)(j.ZP,{backgroundColor:Sc.qJ,borderless:!0,inline:!0,muted:!0,onClick:t,small:!0,uuid:"Sidekick/GlobalVariables/delete_".concat(a),withIcon:!0,children:(0,P.jsx)(X.rF,{size:2.5*$.iI})})]})]})})]})})},Pc=t(93348),Ic=t(58122);var Tc=function(e){e.blocks;var n=e.fetchVariables,t=e.pipeline,i=e.selectedBlock,r=e.setErrorMessages,l=e.variables,c=e.width,u=(0,s.useState)(!1),a=u[0],f=u[1],p=(0,s.useState)(),h=p[0],m=p[1],g=(0,s.useState)(),b=g[0],y=g[1],k=null===t||void 0===t?void 0:t.uuid,O=(0,d.Db)(be.ZP.variables.pipelines.useCreate(k),{onSuccess:function(e){return(0,je.wD)(e,{onErrorCallback:function(e){var n=e.error,t=n.message,i=n.exception;r((function(e){var n=e||[];return i&&(n=n.concat(i)),t&&(n=n.concat(t)),n}))}})}}),w=(0,o.Z)(O,1)[0],S=(0,d.Db)((function(e){return be.ZP.variables.pipelines.useDelete(k,e)()}),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(){n()},onErrorCallback:function(e){var n=e.error,t=(n.errors,n.message);r((function(e){return e.concat(t)}))}})}}),E=(0,o.Z)(S,1)[0],I=(0,s.useCallback)((function(e){if("Enter"===e.key){var t=b;try{t=JSON.parse(b)}catch(i){}w({variable:{name:h,value:t}}).then((function(){n(),m(null),y(null)})),f(!1)}else"Escape"===e.key&&f(!1)}),[w,n,h,b]),T=(0,s.useMemo)((function(){return c-4*$.iI}),[c]),A=(0,s.useMemo)((function(){return(0,Ic.wx)(l,(function(e){return"global"===e.uuid}))}),[l]),R=(0,s.useMemo)((function(){return(0,Ic.wx)(l,(function(e){return e.uuid===(null===i||void 0===i?void 0:i.uuid)}))}),[i,l]),D=(0,s.useMemo)((function(){return(0,P.jsxs)(Oc,{width:T,children:[a&&(0,P.jsxs)(Gl.Z,{children:[(0,P.jsx)(Ll.Z,{md:1,children:(0,P.jsx)(wc,{noPadding:!0,children:(0,P.jsx)(j.ZP,{backgroundColor:Sc.qJ,borderless:!0,centerText:!0,muted:!0,onClick:function(){navigator.clipboard.writeText(h),Zc.Am.success("Successfully copied to clipboard.",{position:Zc.Am.POSITION.BOTTOM_RIGHT,toastId:h})},uuid:"Sidekick/GlobalVariables/".concat(h),withIcon:!0,children:(0,P.jsx)(X.CK,{size:2.5*$.iI})})})}),(0,P.jsx)(Ll.Z,{md:4,children:(0,P.jsx)(wc,{children:(0,P.jsx)(C.Z,{compact:!0,borderless:!0,fullWidth:!0,monospace:!0,onChange:function(e){m(e.target.value),e.preventDefault()},onKeyDown:I,paddingHorizontal:0,placeholder:"variable",small:!0,value:h})})}),(0,P.jsx)(Ll.Z,{md:7,children:(0,P.jsx)(wc,{children:(0,P.jsx)(C.Z,{compact:!0,borderless:!0,fullWidth:!0,monospace:!0,onChange:function(e){y(e.target.value),e.preventDefault()},onKeyDown:I,paddingHorizontal:0,placeholder:"enter value",small:!0,value:b})})})]}),null===A||void 0===A?void 0:A.map((function(e){return(0,P.jsx)(Ec,{deleteVariable:function(){return E(e.uuid)},fetchVariables:n,pipelineUUID:k,variable:e})}))]})}),[E,A,h,b,k,m,y,f,a,T]),M=(0,s.useMemo)((function(){return(0,P.jsx)(Oc,{width:T,children:null===R||void 0===R?void 0:R.map((function(e){return(0,P.jsx)(Ec,{copyText:(n=e.uuid,"from mage_ai.data_preparation.variable_manager import (\n get_variable,\n)\n\n".concat(function(e,n,t){return"\n".concat(t," = get_variable('").concat(e,"', '").concat(n,"', '").concat(t,"')\n")}(k,null===i||void 0===i?void 0:i.uuid,n))),hideEdit:!0,pipelineUUID:k,variable:e});var n}))})}),[R,i,T]);return(0,P.jsxs)(Z.Z,{p:$.cd,children:[(0,P.jsx)(Z.Z,{mb:$.cd,children:(0,P.jsxs)(x.Z,{alignItems:"center",children:[(0,P.jsx)(Dr.Z,{level:4,monospace:!0,children:"Global Variables"}),(0,P.jsx)(Z.Z,{ml:2}),(0,P.jsx)(j.ZP,{Icon:X.mm,blackBorder:!0,inline:!0,onClick:function(){return f((function(e){return!e}))},uuid:"Sidekick/GlobalVariables/addNewVariable",children:"New"})]})}),(0,P.jsx)(Z.Z,{mb:$.cd,children:(0,P.jsxs)(_.ZP,{muted:!0,children:["Press ",(0,P.jsx)(_.ZP,{bold:!0,default:!0,inline:!0,monospace:!0,children:"Enter"})," or ",(0,P.jsx)(_.ZP,{bold:!0,default:!0,inline:!0,monospace:!0,children:"Return"})," to save changes."]})}),(0,P.jsx)(Z.Z,{mb:$.cd,children:D}),(0,P.jsx)(Z.Z,{mb:$.cd,children:(0,P.jsx)(_.ZP,{children:"Global variables will be passed into all non-scratchpad blocks as keyword arguments (Python), interpolated variables (SQL), or vector elements (R). To load a global variable, use the following syntax:"})}),(0,P.jsxs)(Z.Z,{mb:$.cd,children:[(0,P.jsxs)(_.ZP,{bold:!0,large:!0,children:["For Python (",(0,P.jsx)(sn.Z,{href:"https://docs.mage.ai/production/configuring-production-settings/runtime-variable",large:!0,openNewWindow:!0,primary:!0,children:"docs"}),"):"]}),(0,P.jsx)(_c.Z,{language:"python",small:!0,source:"\n var = kwargs['variable_name']\n"})]}),(0,P.jsxs)(Z.Z,{mb:$.cd,children:[(0,P.jsxs)(_.ZP,{bold:!0,large:!0,children:["For SQL (",(0,P.jsx)(sn.Z,{href:"https://docs.mage.ai/guides/sql-blocks#variables",large:!0,openNewWindow:!0,primary:!0,children:"docs"}),"):"]}),(0,P.jsx)(_c.Z,{language:"sql",small:!0,source:"\n {{ variable_name }}\n"})]}),(0,P.jsxs)(Z.Z,{mb:$.cd,children:[(0,P.jsxs)(_.ZP,{bold:!0,large:!0,children:["For R (",(0,P.jsx)(sn.Z,{href:"https://docs.mage.ai/guides/r-blocks#runtime-variables",large:!0,openNewWindow:!0,primary:!0,children:"docs"}),"):"]}),(0,P.jsx)(_c.Z,{language:"r",small:!0,source:"\n var <- global_vars['variable_name']\n"})]}),(0,P.jsxs)(Z.Z,{mb:$.cd,children:[(0,P.jsx)(Dr.Z,{level:4,monospace:!0,children:"Trigger Runtime Variables"}),(0,P.jsx)(Z.Z,{mb:$.cd}),(0,P.jsx)(_.ZP,{children:"Depending on what kind of trigger you use for this pipeline, some default runtime variables will be provided."})]}),Object.values(Pc.Xm).map((function(e){var n;return(0,P.jsxs)(Z.Z,{mb:$.cd,children:[(0,P.jsx)(Z.Z,{mb:$.cd,children:(0,P.jsx)(_.ZP,{large:!0,monospace:!0,children:(0,ue.vg)(null===(n=Pc.Z4[e])||void 0===n?void 0:n.call(Pc.Z4))})}),(0,Ic.JZ)([],e).map((function(e){return(0,P.jsx)(Ec,{hideEdit:!0,variable:e,pipelineUUID:k})}))]})})),R&&R.length>0&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.Z,{my:2,children:(0,P.jsx)(Dr.Z,{level:4,monospace:!0,children:"Block Output Variables"})}),(0,P.jsx)(Z.Z,{mb:2,children:M}),(0,P.jsx)(Z.Z,{mb:$.cd,children:(0,P.jsxs)(_.ZP,{children:["Output variables can be used in any ",(0,P.jsx)(_.ZP,{bold:!0,inline:!0,monospace:!0,children:v.tf.SCRATCHPAD})," block."]})}),(0,P.jsx)(Z.Z,{mb:$.cd,children:(0,P.jsx)(_.ZP,{children:"To load the variable, use the following syntax:"})}),(0,P.jsx)(Z.Z,{mb:$.cd,children:(0,P.jsx)(_c.Z,{language:"python",small:!0,source:"\n from mage_ai.data_preparation.variable_manager import (\n get_variable,\n )\n\n\n df = get_variable(\n 'pipeline_uuid',\n 'block_uuid',\n 'variable_name',\n )\n"})})]})]})},Ac=t(37771);function Rc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Dc(e){for(var n=1;n') }}\n ",maxWidth:b})}),(0,P.jsx)(Z.Z,{mb:$.cd,children:(0,P.jsx)(_.ZP,{children:"To reference a secret in code, you can import the `get_secret_value` helper method:"})}),(0,P.jsx)(Z.Z,{mb:$.cd,children:(0,P.jsx)(_c.Z,{language:"python",small:!0,source:"\n from mage_ai.data_preparation.shared.secrets import get_secret_value\n\n get_secret_value('')\n ",maxWidth:b})})]})},Bc=t(66607),Lc=t(15270),Fc=t(64155),Uc=t(72454);function Hc(e){var n=e.activeView,t=e.pipelineUUID;return re.map((function(e){var i=e.key,r=e.label;return{Icon:le[i],id:i,isSelected:function(){return n===i},label:function(){return r},linkProps:{as:"/pipelines/".concat(t,"/edit?").concat(ne,"=").concat(i),href:"/pipelines/[pipeline]/edit"}}}))}var zc=function(e){var n=e.activeView,t=e.addNewBlockAtIndex,i=e.afterWidth,r=e.autocompleteItems,o=e.blockRefs,l=e.blocks,c=e.blocksInNotebook,u=e.cancelPipeline,a=e.chartRefs,d=e.deleteBlock,f=e.deleteWidget,p=e.editingBlock,m=e.executePipeline,v=e.fetchFileTree,b=e.fetchPipeline,j=e.fetchSecrets,y=e.fetchVariables,C=e.globalVariables,O=e.insights,w=e.interruptKernel,E=e.isPipelineExecuting,I=e.messages,T=e.metadata,A=e.onChangeCallbackBlock,R=e.onChangeChartBlock,D=e.onChangeCodeBlock,M=e.pipeline,N=e.pipelineMessages,B=e.runBlock,L=e.runningBlocks,F=e.sampleData,H=e.savePipelineContent,z=e.secrets,W=e.selectedBlock,G=e.selectedFilePath,V=e.setActiveSidekickView,Q=e.setAnyInputFocused,q=e.setDisableShortcuts,K=e.setEditingBlock,Y=e.setErrors,J=e.setSelectedBlock,ne=e.setTextareaFocused,re=e.statistics,oe=e.textareaFocused,le=e.updateWidget,ce=e.widgets,ue=(0,Oo.i)().height,ae=fn.uX,se=(0,s.useState)([]),de=se[0],fe=se[1],pe=(0,s.useState)(!!(0,S.U2)(S.Q9)),he=pe[0],me=pe[1],ve=Uc.k1,ge=(0,s.useMemo)((function(){return i-ve}),[i,ve]),be=((null===p||void 0===p?void 0:p.upstreamBlocks)||{}).block,je=((null===F||void 0===F?void 0:F.columns)||[]).slice(0,100),ye=(null===F||void 0===F?void 0:F.rows)||[],ke=(null===T||void 0===T?void 0:T.column_types)||{},Ze=null===je||void 0===je?void 0:je.map((function(e){return{columnType:ke[e],uuid:e}})),_e=(null===O||void 0===O?void 0:O[1])||{},Ce=(0,s.useMemo)((function(){return(0,ee.HK)((null===O||void 0===O?void 0:O[0])||[],(function(e){return e.feature.uuid}))}),[O]),Oe=(0,Ic.v0)({statistics:re}),we=(0,Ic.CL)({columnTypes:ke,statistics:re}),Se=!!F,Ee=(0,s.useMemo)((function(){return k.qL.INTEGRATION===(null===M||void 0===M?void 0:M.type)}),[M]),Pe=Ee?-78:he?-22:Ac.N,Ie=(0,s.useCallback)((0,Cc.Fk)({columnTypes:ke,columns:je,insightsByFeatureUUID:Ce,insightsOverview:_e,noColumnLinks:!0,statistics:re}),[ke,je,Ce,_e,re]),Te=(0,s.useMemo)((function(){return(0,P.jsx)(Tc,{blocks:l,fetchVariables:y,pipeline:M,selectedBlock:W,setErrorMessages:fe,variables:C,width:ge})}),[ge,l,y,C,M,W]),Ae=(0,s.useMemo)((function(){return(0,P.jsx)(kc,{selectedBlock:W,selectedFilePath:G,setErrors:Y,width:ge>pn.nn?ge-pn.nn:ge})}),[ge,W,G,Y]),Re=(0,s.useMemo)((function(){return(0,P.jsx)(Nc,{fetchSecrets:j,pipelineUUID:null===M||void 0===M?void 0:M.uuid,secrets:z,setErrorMessages:fe,width:ge})}),[ge,j,M,z]);return(0,P.jsxs)(P.Fragment,{children:[(null===de||void 0===de?void 0:de.length)>=1&&(0,P.jsxs)(Z.Z,{mb:3,mt:2,mx:2,children:[(0,P.jsxs)(x.Z,{justifyContent:"space-between",children:[(0,P.jsx)(_.ZP,{bold:!0,danger:!0,children:"Errors"}),(0,P.jsx)(g.Z,{basic:!0,iconOnly:!0,noPadding:!0,onClick:function(){return fe([])},transparent:!0,children:(0,P.jsx)(X.x8,{muted:!0})})]}),null===de||void 0===de?void 0:de.map((function(e){return(0,P.jsx)(Z.Z,{pb:1,children:(0,P.jsx)(_.ZP,{monospace:!0,xsmall:!0,children:e})},e)}))]}),(0,P.jsxs)(x.Z,{children:[(0,P.jsxs)(Fc.t0,{fullWidth:te.includes(n),heightOffset:U.TERMINAL===n?0:pn.nn,onBlur:function(){return q(!1)},onFocus:function(){return q(!0)},widthOffset:ve,children:[n===U.TREE&&(0,P.jsx)(h,{uuid:"PipelineDetail/".concat(null===M||void 0===M?void 0:M.uuid),children:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(jt.Z,{blockRefs:o,editingBlock:p,enablePorts:!Ee,fetchPipeline:b,height:ue-ae-Pe,pipeline:M,runningBlocks:L,selectedBlock:W,setEditingBlock:K,setErrors:Y,setSelectedBlock:J}),!be&&k.qL.INTEGRATION!==(null===M||void 0===M?void 0:M.type)&&(0,P.jsx)(Z.Z,{p:1,children:(0,P.jsx)(Mc,{cancelPipeline:u,executePipeline:m,isPipelineExecuting:E,pipelineExecutionHidden:he,pipelineMessages:N,setPipelineExecutionHidden:me})})]})}),n===U.DATA&&je.length>0&&(0,P.jsx)(xt.Z,{columnHeaderHeight:(0,xe.Qr)(ke)&&(0,xe.Qr)(Ce)&&(0,xe.Qr)(_e)?0:Fc.Eh,columns:je,height:ue-ae-fn.OM,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,noBorderTop:!0,renderColumnHeader:Ie,rows:ye,width:ge}),n===U.REPORTS&&(0,P.jsx)(Fc.ht,{noPadding:!W||!Se,children:(0,P.jsxs)(x.Z,{flexDirection:"column",fullWidth:!0,children:[Oe&&(0,P.jsx)(Bc.Z,{stats:Oe,title:"Quality metrics"}),we&&(0,P.jsx)(Z.Z,{mt:$.cd,children:(0,P.jsx)(Bc.Z,{stats:we,title:"Statistics"})}),Ze.length>0&&(0,P.jsx)(Z.Z,{mt:$.cd,children:(0,P.jsx)(xc,{features:Ze,statistics:re})})]})}),n===U.GRAPHS&&(0,P.jsx)(Fc.ht,{noPadding:!W||!Se,children:(0,P.jsx)(Ko,{afterWidth:ge,features:Ze,insightsOverview:_e,statistics:re})}),U.SECRETS===n&&Re,U.VARIABLES===n&&Te,U.FILE_VERSIONS===n&&(0,P.jsx)(h,{uuid:"FileVersions/".concat(G?decodeURIComponent(G):""),children:Ae}),Ee||W&&Se||!W&&Se&&n===U.DATA?null:ie.includes(n)&&(0,P.jsx)(x.Z,{alignItems:"center",justifyContent:"center",verticalHeight:90,verticalHeightOffset:ae,width:ge,children:(0,P.jsx)(_.ZP,{center:!0,default:!0,disableWordBreak:!0,large:!0,monospace:!0,children:W?!Se&&"No data or insights available":"Select a block for insights"})}),U.CHARTS===n&&(ce.length>0?(0,P.jsx)(Yl,{autocompleteItems:r,blockRefs:o,blocks:l,chartRefs:a,deleteWidget:f,fetchFileTree:v,fetchPipeline:b,messages:I,onChangeChartBlock:R,pipeline:M,runBlock:B,runningBlocks:L,savePipelineContent:H,selectedBlock:W,setAnyInputFocused:Q,setSelectedBlock:J,setTextareaFocused:ne,textareaFocused:oe,updateWidget:le,widgets:ce,width:ge}):(0,P.jsxs)(x.Z,{alignItems:"center",justifyContent:"center",verticalHeight:90,verticalHeightOffset:ae,width:ge,children:[(0,P.jsx)(Z.Z,{pl:1}),(0,P.jsx)(Jl,{size:358}),(0,P.jsx)(Z.Z,{pr:1})]})),U.TERMINAL===n&&(0,P.jsx)("div",{style:{height:"100%",position:"relative",width:ge},children:(0,P.jsx)(qe.Z,{interruptKernel:w,onFocus:function(){return J(null)},width:ge})}),U.EXTENSIONS===n&&(0,P.jsx)(ac,{addNewBlockAtIndex:t,autocompleteItems:r,blockRefs:o,blocks:l,blocksInNotebook:c,deleteBlock:d,fetchFileTree:v,fetchPipeline:b,interruptKernel:w,messages:I,onChangeCallbackBlock:A,onChangeCodeBlock:D,pipeline:M,runBlock:B,runningBlocks:L,savePipelineContent:H,selectedBlock:W,setAnyInputFocused:Q,setErrors:Y,setSelectedBlock:J,setTextareaFocused:ne,textareaFocused:oe})]}),(0,P.jsx)(Uc.lm,{borderLeft:!0,children:(0,P.jsx)(Lc.Z,{aligned:"right",navigationItems:Hc({activeView:n,pipelineUUID:null===M||void 0===M?void 0:M.uuid,setActiveSidekickView:V})})})]})]})},Wc=t(12691),Gc=t.n(Wc);var Vc=function(e){var n=e.activeView,t=e.pipeline,i=null===t||void 0===t?void 0:t.uuid,r=(0,oc.iV)(),o=oe[n],l=(0,P.jsx)(_.ZP,{bold:!0,children:null===o||void 0===o?void 0:o.label}),c=U.EXTENSIONS===n&&(null===r||void 0===r?void 0:r.extension),u=be.ZP.extension_options.list({},{},{pauseFetch:!c}).data,a=(0,s.useMemo)((function(){return(null===u||void 0===u?void 0:u.extension_options)||[]}),[u]),d=(0,s.useMemo)((function(){return(0,ee.HK)(a,(function(e){return e.uuid}))}),[a]);if(!n)return(0,P.jsx)("div",{});if(c){var f=d[null===r||void 0===r?void 0:r.extension];l=(0,P.jsxs)(x.Z,{children:[(0,P.jsx)(Gc(),{as:"/pipelines/".concat(i,"/edit?").concat(ne,"=").concat(U.EXTENSIONS),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,P.jsx)(sn.Z,{default:!0,children:null===o||void 0===o?void 0:o.label})}),(0,P.jsx)(_.ZP,{monospace:!0,muted:!0,children:"\xa0/\xa0"}),(0,P.jsx)(_.ZP,{bold:!0,children:null===f||void 0===f?void 0:f.name})]})}return(0,P.jsx)(Z.Z,{px:$.cd,children:l})};function Qc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function qc(e){for(var n=1;n1&&void 0!==arguments[1])||arguments[1];(0,oc.iV)().sideview!==e&&(0,xn.u7)((0,l.Z)({},ne,e),{pushHistory:n,replaceParams:!0})}),[]);(0,s.useEffect)((function(){qe||en(U.TREE,!1)}),[qe,en]);var tn=(0,s.useCallback)((function(e,n){en(e,n),C(!1)}),[en]),rn=((0,s.useRef)(null),(0,s.useRef)({})),on=(0,s.useRef)({}),ln=(0,s.useRef)({}),cn=(0,s.useRef)({}),un=(0,s.useRef)({}),sn=(0,s.useCallback)((function(e,n,t){var i=ln.current||{};ln.current=qc(qc({},i),{},(0,l.Z)({},e,qc(qc({},i[e]||{}),{},(0,l.Z)({},n,t))))}),[ln]),dn=(0,s.useCallback)((function(e,n,t){var i=cn.current||{};cn.current=qc(qc({},i),{},(0,l.Z)({},e,qc(qc({},i[e]||{}),{},(0,l.Z)({},n,t))))}),[cn]),fn=(0,s.useCallback)((function(e,n,t){sn(e,n,t),Ge(!0)}),[sn,Ge]),pn=(0,s.useCallback)((function(e,n,t){dn(e,n,t),Ge(!0)}),[dn,Ge]),hn=(0,s.useCallback)((function(e){un.current=qc(qc({},un.current),e)}),[un]),mn=(0,s.useCallback)((function(e,n){hn((0,l.Z)({},e,n)),Ge(!0)}),[hn,Ge]),vn=(0,s.useState)(null),gn=vn[0],bn=vn[1],jn=be.ZP.data_providers.list({},{revalidateOnFocus:!0}).data,yn=null===jn||void 0===jn?void 0:jn.data_providers,_n=be.ZP.variables.pipelines.list(we),Cn=_n.data,On=_n.mutate,wn=null===Cn||void 0===Cn?void 0:Cn.variables,Sn=be.ZP.secrets.list(),En=Sn.data,Pn=Sn.mutate,In=null===En||void 0===En?void 0:En.secrets,Tn=(0,s.useState)([]),Rn=Tn[0],Dn=Tn[1],Mn=(0,s.useState)([]),Nn=Mn[0],Bn=Mn[1],Ln=(0,s.useRef)({}),Fn=(0,s.useCallback)((function(e){var n;Ge(!0);var t=Ln.current[e.uuid]||{},i=t.upstream_blocks;(null===e||void 0===e||null===(n=e.upstream_blocks)||void 0===n?void 0:n.length)>=1&&(i=e.upstream_blocks),Ln.current[e.uuid]=qc(qc(qc({},t),e),{},{configuration:qc(qc({},t.configuration),e.configuration),upstream_blocks:i})}),[Ge,Ln]),Un=(0,s.useState)(!1),Hn=Un[0],zn=Un[1],Wn=(0,s.useState)({upstreamBlocks:null}),Gn=Wn[0],Vn=Wn[1],Qn=(0,s.useState)([]),qn=Qn[0],Kn=Qn[1],Yn=(0,s.useState)(null),Xn=Yn[0],Jn=Yn[1],$n=(0,s.useState)(null),et=$n[0],nt=$n[1],tt=function(e,n){var t=(0,ee.HK)(n,(function(e){return e.uuid}));return e.map((function(e){return t[e]})).filter((function(e){return!!e}))}(Ut(we),Rn),it=(0,s.useState)(tt),rt=it[0],ot=it[1],lt=(0,s.useState)(),ct=lt[0],ut=lt[1],at=(0,s.useState)(),st=at[0],dt=at[1],ft=(0,s.useState)(null),pt=ft[0],ht=ft[1],mt=(0,kt.Z)(rt),vt=(0,s.useCallback)((function(){Vn({upstreamBlocks:{block:null,values:[]}}),me({}),Ge(!1),He(null),Kn([]),Jn(null)}),[]);(0,s.useEffect)((function(){we!==Se&&(ln.current={},cn.current={})}),[we,Se]);var gt=be.ZP.blocks.pipelines.outputs.detail(!_&&we,(null===pt||void 0===pt?void 0:pt.type)!==v.tf.SCRATCHPAD&&(null===pt||void 0===pt?void 0:pt.type)!==v.tf.CHART&&(null===pt||void 0===pt?void 0:pt.uuid)&&encodeURIComponent(null===pt||void 0===pt?void 0:pt.uuid)),bt=gt.data,xt=gt.mutate,jt=(0,s.useMemo)((function(){var e,n,t;return Be?null===(e=(0,ee.sE)(null===bt||void 0===bt?void 0:bt.outputs,(function(e){return e.variable_uuid==="output_sample_data_".concat(st)})))||void 0===e?void 0:e.sample_data:null===bt||void 0===bt||null===(n=bt.outputs)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.sample_data}),[bt,Be,st]),yt=be.ZP.blocks.pipelines.analyses.detail(!_&&we,(null===pt||void 0===pt?void 0:pt.type)!==v.tf.SCRATCHPAD&&(null===pt||void 0===pt?void 0:pt.type)!==v.tf.CHART&&(null===pt||void 0===pt?void 0:pt.uuid)&&encodeURIComponent(null===pt||void 0===pt?void 0:pt.uuid)),Zt=yt.data,_t=yt.mutate,Ct=(null===Zt||void 0===Zt||null===(n=Zt.analyses)||void 0===n?void 0:n[0])||{},Ot=Ct.insights,wt=void 0===Ot?{}:Ot,St=Ct.metadata,Pt=void 0===St?{}:St,It=Ct.statistics,Tt=void 0===It?{}:It,At=be.ZP.blocks.pipelines.analyses.detail(we,(null===Xn||void 0===Xn?void 0:Xn.type)!==v.tf.CHART&&null!==et&&(null===Xn||void 0===Xn?void 0:Xn.uuid)),Rt=At.data;At.mutate,null===Rt||void 0===Rt||null===(t=Rt.analyses)||void 0===t||null===(i=t[0])||void 0===i||i.suggestions;(0,s.useEffect)((function(){0===qn.length&&(_t(),xt(),On())}),[_t,xt,On,qn]),(0,s.useEffect)((function(){if(0===rt.length)ht(null);else if((null===mt||void 0===mt?void 0:mt.length)!==(null===rt||void 0===rt?void 0:rt.length)&&(null===rt||void 0===rt?void 0:rt.length)<(null===mt||void 0===mt?void 0:mt.length)){var e=mt.findIndex((function(e){return e.uuid===(null===pt||void 0===pt?void 0:pt.uuid)})),n=mt.length-1===e?e-1:e+1;ht(mt[Math.max(0,n)])}}),[rt,mt,null===pt||void 0===pt?void 0:pt.uuid]),(0,s.useEffect)((function(){var e;null!==(e=Gn.upstreamBlocks)&&void 0!==e&&e.block&&(C(!1),en(U.TREE))}),[Gn.upstreamBlocks,en]);var Dt=be.ZP.autocomplete_items.list({},{refreshInterval:!1,revalidateOnFocus:!0}),Mt=Dt.data,Nt=Dt.mutate,Ht=null===Mt||void 0===Mt?void 0:Mt.autocomplete_items;(0,s.useEffect)((function(){z(Je)}),[Je]),(0,s.useEffect)((function(){(0,ee.fS)($e,G)||V($e)}),[$e,G]);var zt=(0,d.Db)(be.ZP.pipelines.useCreate(),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(e){var n=e.pipeline.uuid;p.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit")),De()},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),Wt=(0,o.Z)(zt,1)[0],Gt=(0,d.Db)(be.ZP.pipelines.useUpdate(we,{update_content:!0}),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(){return Ge(!1)},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),Vt=(0,o.Z)(Gt,2),Qt=Vt[0],qt=Vt[1].isLoading,Kt=(0,s.useCallback)((function(e,n){var t=e||{},i=t.block,r=t.pipeline,l=void 0===r?{extensions:{}}:r,c=(n||{}).contentOnly;He(new Date);var u={},a=[];Rn.forEach((function(e){var n,t,r,l=e.extension_uuid,s=e.type,d=e.uuid,f=null===(n=cn.current[s])||void 0===n?void 0:n[d];"undefined"===typeof f&&(f=e.content);var p,h=null===(t=ln.current[s])||void 0===t?void 0:t[d];"undefined"===typeof h&&(h=e.callback_content);var m=null===(r=he[d])||void 0===r?void 0:r.filter((function(e){return!!e})),g=null===m||void 0===m?void 0:m.find((function(e){return e.error}));if(m){var b=[];m.forEach((function(n){var t=n.data,i=n.type;(v.tf.SCRATCHPAD===e.type||g||"table"!==i)&&(Array.isArray(t)&&(n.data=t.reduce((function(e,n){return n.match(Et)?e:e.concat(n)}),[])),b.push(n))})),p=b.map((function(e,n){return{text_data:JSON.stringify(e),variable_uuid:"".concat(d,"_").concat(n)}}))}var x=qc(qc({},e),{},{callback_content:h,content:f,outputs:p});if((null===i||void 0===i?void 0:i.uuid)===d&&Object.entries(i).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0],i=n[1];"object"===typeof i&&!Array.isArray(i)&&i?Object.entries(i).forEach((function(e){var n=(0,o.Z)(e,2),i=n[0],r=n[1];x[t]||(x[t]={}),x[t][i]=r})):x[t]=i})),c)return{callback_content:x.callback_content,content:x.content,outputs:x.outputs,uuid:x.uuid};[v.tf.EXTENSION].includes(s)?(u[l]||(u[l]=[]),u[l].push(x)):a.push(x)}));var s=qc(qc({},null===Ne||void 0===Ne?void 0:Ne.extensions),null===l||void 0===l?void 0:l.extensions);return Object.entries(u).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0],i=n[1];s[t]||(s[t]={}),s[t].blocks=i})),Qt({pipeline:qc(qc(qc({},Ne),l),{},{blocks:a,extensions:s,widgets:Nn.map((function(e){var n,t,i=un.current[e.uuid],r=Ln.current[e.uuid]||{};"undefined"===typeof i&&(i=e.content);var o=null===(n=he[e.uuid])||void 0===n?void 0:n.filter((function(e){return!!e})),l=null===o||void 0===o?void 0:o.find((function(e){return e.error}));if(o){var c=[];o.forEach((function(n){var t=n.data,i=n.type;(v.tf.SCRATCHPAD===e.type||l||"table"!==i)&&(Array.isArray(t)&&(n.data=t.reduce((function(e,n){return n.match(Et)?e:e.concat(n)}),[])),c.push(n))})),t=c.map((function(n,t){return{text_data:JSON.stringify(n),variable_uuid:"".concat(e.uuid,"_").concat(t)}}))}return qc(qc(qc({},e),r),{},{configuration:qc(qc({},e.configuration),r.configuration),content:i,outputs:t})}))})})}),[Rn,he,Ne,He,Qt,Nn]),Yt=(0,s.useCallback)((function(e){Kt();var n=encodeURIComponent(e),t=(0,oc.iV)()["file_paths[]"]||[];Array.isArray(t)||(t=[t]),t.includes(n)||t.push(n),(0,xn.u7)({"file_paths[]":t,file_path:n})}),[Kt]),Xt=(0,s.useMemo)((function(){var e=[],n=[];return Rn.forEach((function(t){v.tf.EXTENSION===t.type?n.push(t):e.push(t)})),{blocksInNotebook:e,blocksInSidekick:n}}),[Rn]),Jt=Xt.blocksInNotebook,$t=Xt.blocksInSidekick,ei=(0,s.useCallback)((function(e,n){return Kt({pipeline:{name:e,type:n}}).then((function(e){var t,i;if(null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.pipeline){var r=e.data.pipeline.uuid;we!==r?window.location.href="/pipelines/".concat(r,"/edit"):(De(),n!==(null===Ne||void 0===Ne?void 0:Ne.type)&&Ie(),Lt(Jt,we,r),Lt($t,we,r))}else null!==e&&void 0!==e&&null!==(i=e.data)&&void 0!==i&&i.error&&M((function(e){return qc(qc({},e),{},{links:[{label:"Check pipeline configuration",onClick:function(){Yt("pipelines/".concat(we,"/").concat(R.METADATA_YAML)),M(null)}}]})}))}))}),[Jt,$t,De,Ie,Yt,null===Ne||void 0===Ne?void 0:Ne.type,we,Kt]),ni=(0,d.Db)((function(e){var n=e.extension_uuid,t=e.uuid,i={};return n&&(i.extension_uuid=n),be.ZP.blocks.pipelines.useDelete(we,encodeURIComponent(t),i)()}),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(e){var n=e.block,t=n.type,i=n.uuid;Dn((function(e){return(0,ee.oM)(e,e.findIndex((function(e){var n=e.type,r=e.uuid;return t===n&&i===r})))})),Ie(),Jn(null),t===v.tf.SCRATCHPAD&&De()},onErrorCallback:function(e,n){var t=e.url_parameters,i=n.messages;M({errors:n,response:e}),null!==t&&void 0!==t&&t.block_uuid&&me((function(e){return qc(qc({},e),{},(0,l.Z)({},t.block_uuid,i.map((function(e){return{data:"".concat(e,"\n"),error:"".concat(e,"\n"),type:Qe.Gi.TEXT_PLAIN}}))))}))}})}}),ti=(0,o.Z)(ni,1)[0],ii=(0,d.Db)((function(e){var n=e.uuid;return be.ZP.widgets.pipelines.useDelete(we,n)()}),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(e){var n=e.widget.uuid;Bn((function(e){return(0,ee.oM)(e,e.findIndex((function(e){var t=e.uuid;return n===t})))})),Ie(),De()},onErrorCallback:function(e,n){var t=e.url_parameters,i=n.messages;M({errors:n,response:e}),null!==t&&void 0!==t&&t.block_uuid&&me((function(e){return qc(qc({},e),{},(0,l.Z)({},t.block_uuid,i.map((function(e){return{data:"".concat(e,"\n"),error:"".concat(e,"\n"),type:Qe.Gi.TEXT_PLAIN}}))))}))}})}}),ri=(0,o.Z)(ii,1)[0],oi=(0,d.Db)((function(e){var n=e.language,t=e.type,i=e.uuid,r="".concat(t,"/").concat(i);return n&&Y[n]&&(r="".concat(r,".").concat(Y[n].toLowerCase())),be.ZP.blocks.useDelete(encodeURIComponent(r))()}),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(){Nt(),Ie(),De()},onErrorCallback:function(e,n){return M({displayMessage:"Error deleting block file. Check that there are no downstream blocks, then try again.",errors:n,response:e})}})}}),li=(0,o.Z)(oi,1)[0],ci=(0,d.Db)(be.ZP.kernels.useUpdate(null===Oe||void 0===Oe?void 0:Oe.id),{onSuccess:function(e){return(0,je.wD)(e,{callback:function(){return _e()},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),ui=(0,o.Z)(ci,1)[0],ai=(0,s.useCallback)((function(){return ui({kernel:{action_type:"restart"}})}),[ui]),si=(0,s.useCallback)((function(){return ui({kernel:{action_type:"interrupt"}})}),[ui]),di=((0,s.useCallback)((function(){window.confirm("Do you want to restart the kernel? All variables will be cleared.")&&ai()}),[ai]),(0,d.Db)(be.ZP.blocks.pipelines.useCreate(we))),fi=(0,o.Z)(di,1)[0],pi=(0,s.useCallback)((function(e,n,t){var i,l,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,ue.Y6)();e.converted_from_type&&e.converted_from_uuid&&(i=null===(l=cn.current[e.converted_from_type])||void 0===l?void 0:l[e.converted_from_uuid]);var u=e.language,a=e.type;if(Be){var s=(0,ee.HK)((null===Ne||void 0===Ne?void 0:Ne.blocks)||[],(function(e){return e.type})),d=s[v.tf.DATA_EXPORTER],f=s[v.tf.DATA_LOADER],p=s[v.tf.TRANSFORMER];if(v.tf.DATA_LOADER===a){if(v.t6.YAML!==u)return void M({displayMessage:"The source you\u2019re trying to add must contain the language ".concat(v.t6.YAML," and not ").concat(u,".")});if(f)return void M({displayMessage:"Pipeline ".concat(null===Ne||void 0===Ne?void 0:Ne.uuid," already has a source: ").concat(null===f||void 0===f?void 0:f.uuid,".")})}else if(v.tf.TRANSFORMER===a){if(p)return void M({displayMessage:"Pipeline ".concat(null===Ne||void 0===Ne?void 0:Ne.uuid," already has a transformer: ").concat(null===p||void 0===p?void 0:p.uuid,".")})}else if(v.tf.DATA_EXPORTER===a){if(v.t6.YAML!==u)return void M({displayMessage:"The destination you\u2019re trying to add must contain the language ".concat(v.t6.YAML," and not ").concat(u,".")});if(d)return void M({displayMessage:"Pipeline ".concat(null===Ne||void 0===Ne?void 0:Ne.uuid," already has a destination: ").concat(null===d||void 0===d?void 0:d.uuid,".")})}}return fi({block:qc({content:i,name:c,priority:n},e)}).then((function(e){(0,je.wD)(e,{callback:function(){var n=e.data.block;null===t||void 0===t||t(n),nt(null),De(),Ie().then((function(e){var n=e.pipeline,t=n.blocks,i=n.extensions;return Dn((function(e){var n=(0,r.Z)(t);Object.entries(i||{}).forEach((function(e){var t=(0,o.Z)(e,2),i=t[0],l=t[1].blocks;l&&n.push.apply(n,(0,r.Z)(l.map((function(e){return qc(qc({},e),{},{extension_uuid:i})}))))}));var l=(0,ee.HK)(e,(function(e){return e.uuid})),c=[];return n.forEach((function(e){var n=l[e.uuid];n?c.push(n):c.push(e)})),c}))}))},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}))}),[fi,De,Ie,Be,Dn,M,Ne]),hi=(0,s.useState)(!1),mi=hi[0],vi=hi[1];(0,s.useEffect)((function(){vi(!!(0,S.U2)(w.k))}),[]);var gi=(0,Re.dd)((function(e){var n=e.block,t=e.idx,i=e.name,r=void 0===i?(0,ue.Y6)():i,o=e.onCreateCallback;return(0,P.jsx)(D,{block:n,defaultName:r,onClose:ji,onSave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return pi(n,t,o,null===e||void 0===e?void 0:e.name).then((function(){return ji()}))},pipeline:Ne})}),{},[pi,Ne],{background:!0,uuid:"configure_block_name_and_create"}),bi=(0,o.Z)(gi,2),xi=bi[0],ji=bi[1],yi=be.ZP.widgets.pipelines.list(!_&&we),ki=(yi.data,yi.mutate,(0,d.Db)(be.ZP.widgets.pipelines.useCreate(we))),Zi=(0,o.Z)(ki,1)[0],_i=(0,s.useCallback)((function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,ue.Y6)();return Zi({widget:qc({name:i,priority:n,type:v.tf.CHART},e)}).then((function(e){return(0,je.wD)(e,{callback:function(){var n=e.data.widget;null===t||void 0===t||t(n),De(),Ie(),en(U.CHARTS),L(n)},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}))}),[De,Ie,Zi,en]);(0,s.useEffect)((function(){if(B){var e,n=null===(e=on.current[B.uuid])||void 0===e?void 0:e.current;n&&(n.scrollIntoView(),L(null))}}),[B,L]),(0,s.useEffect)((function(){Se!==we&&(Dn([]),Bn([]),ot([]),ye([]))}),[we,Se]),(0,s.useEffect)((function(){if("undefined"!==typeof(null===Ne||void 0===Ne?void 0:Ne.blocks)||"undefined"!==typeof(null===Ne||void 0===Ne?void 0:Ne.extensions)){var e=[];"undefined"!==typeof(null===Ne||void 0===Ne?void 0:Ne.blocks)&&e.push.apply(e,(0,r.Z)(null===Ne||void 0===Ne?void 0:Ne.blocks)),"undefined"!==typeof(null===Ne||void 0===Ne?void 0:Ne.extensions)&&Object.entries((null===Ne||void 0===Ne?void 0:Ne.extensions)||{}).forEach((function(n){var t=(0,o.Z)(n,2),i=t[0],l=t[1].blocks;l&&e.push.apply(e,(0,r.Z)(l.map((function(e){return qc(qc({},e),{},{extension_uuid:i})}))))})),Dn(e)}}),[null===Ne||void 0===Ne?void 0:Ne.blocks,null===Ne||void 0===Ne?void 0:Ne.extensions]),(0,s.useEffect)((function(){"undefined"!==typeof(null===Ne||void 0===Ne?void 0:Ne.widgets)&&Bn(Ne.widgets)}),[null===Ne||void 0===Ne?void 0:Ne.widgets]),(0,s.useEffect)((function(){(null===tt||void 0===tt?void 0:tt.length)>0&&0===(null===rt||void 0===rt?void 0:rt.length)&&(ot(tt),ht(tt[0]))}),[rt,tt]);var Ci=(0,kt.Z)(Rn);(0,s.useEffect)((function(){if("undefined"!==typeof(null===Ne||void 0===Ne?void 0:Ne.blocks)&&(!Rn.length||!(0,ee.fS)(null===Ci||void 0===Ci?void 0:Ci.map((function(e){return e.uuid})).sort(),null===Rn||void 0===Rn?void 0:Rn.map((function(e){return e.uuid})).sort()))){var e=Bt(Ne.blocks),n=e.content,t=e.messages;cn.current=n,me((function(e){return qc(qc({},t),e)}))}}),[Rn,Ci,null===Ne||void 0===Ne?void 0:Ne.blocks,Dn,me]),(0,s.useEffect)((function(){if(!Nn.length&&"undefined"!==typeof(null===Ne||void 0===Ne?void 0:Ne.widgets)){var e=Bt(Ne.widgets),n=e.content,t=e.messages;un.current=n,me((function(e){return qc(qc({},t),e)}))}}),[null===Ne||void 0===Ne?void 0:Ne.widgets,Dn,me,Nn]);var Oi=(0,s.useCallback)((function(e,n,t){var i=Rn.find((function(t){var i=t.type,r=t.uuid;return i===n&&r===e}));if(i){if(Jn(i),null!==rn&&void 0!==rn&&rn.current){var r,o=rn.current["".concat(i.type,"s/").concat(i.uuid,".py")];null===o||void 0===o||null===(r=o.current)||void 0===r||r.scrollIntoView()}(0,xn.u7)({file_path:null,"file_paths[]":[]})}else if(n===v.tf.CHART){var l=Nn.find((function(n){return n.uuid===e}));if(l&&(Jn(l),null!==on&&void 0!==on&&on.current)){var c,u=on.current[l.uuid];null===u||void 0===u||null===(c=u.current)||void 0===c||c.scrollIntoView()}}else t&&Yt(t)}),[Rn,Yt,Nn]);(0,s.useEffect)((function(){if(Xe&&!Xn){var e=Rn.find((function(e){var n=e.uuid;return Xe===n}));e&&Oi(e.uuid,e.type,null)}else(null===Ci||void 0===Ci?void 0:Ci.length)!==(null===Rn||void 0===Rn?void 0:Rn.length)&&Xn&&Oi(Xn.uuid,Xn.type,null)}),[Xe,null===Ci||void 0===Ci?void 0:Ci.length,Rn,Oi,Xn]);var wi=(0,s.useMemo)((function(){return new m.Z}),[]),Si=(0,s.useMemo)((function(){return{api_key:Ke.l,token:wi.decodedToken.token}}),[wi]),Ei=(0,a.ZP)((0,Ye.Ib)(),{onMessage:function(e){if(e){var n=JSON.parse(e.data),t=n.block_type,i=n.execution_state,o=n.msg_type,c=n.uuid,u=Rn.find((function(e){var n=e.type,i=e.uuid;return t===n&&c===i}));"stream_pipeline"!==o?me((function(e){var t=e[c]||[];return qc(qc({},e),{},(0,l.Z)({},c,t.concat(n)))})):(ye((function(e){return[].concat((0,r.Z)(e),[n])})),Qe.uF.IDLE===i&&(Kn([]),Ie(),c||zn(!1))),Qe.uF.BUSY===i?Kn((function(e){return e.find((function(e){var n=e.uuid;return c===n}))||!u?e:e.concat(u)})):Qe.uF.IDLE===i&&Kn((function(e){return e.filter((function(e){var n=e.uuid;return c!==n}))})),Ge(!0)}},onOpen:function(){return console.log("socketUrlPublish opened")},shouldReconnect:function(e){return console.log("Attempting to reconnect..."),!0}}).sendMessage,Pi=(0,s.useCallback)((function(){Kt().then((function(){zn(!0),ye([]),Ei(JSON.stringify(qc(qc({},Si),{},{execute_pipeline:!0,pipeline_uuid:we})))}))}),[we,Kt,Ei,Si]),Ii=(0,s.useCallback)((function(){Ei(JSON.stringify(qc(qc({},Si),{},{cancel_pipeline:!0,pipeline_uuid:we})))}),[we,Ei,Si]),Ti=(0,s.useCallback)((function(e){var n=e.block,t=e.code,i=e.ignoreAlreadyRunning,r=e.runDownstream,o=void 0!==r&&r,l=e.runSettings,c=void 0===l?{}:l,u=e.runUpstream,a=void 0!==u&&u,s=e.runTests,d=void 0!==s&&s,f=n.extension_uuid,p=n.upstream_blocks,h=n.uuid;qn.find((function(e){var n=e.uuid;return h===n}))&&!i||(Ei(JSON.stringify(qc(qc({},Si),{},{code:t,extension_uuid:f,pipeline_uuid:null===Ne||void 0===Ne?void 0:Ne.uuid,run_downstream:o,run_settings:c,run_tests:d,run_upstream:a,type:n.type,upstream_blocks:p,uuid:h}))),me((function(e){return delete e[h],e})),re(!1),Kn((function(e){return e.find((function(e){var n=e.uuid;return h===n}))?e:e.concat(n)}))),Ie()}),[Ie,Ne,qn,Ei,me,Kn,re,Si]),Ai=(0,s.useCallback)((function(e){var n=e.block;return Kt({block:{outputs:[],uuid:n.uuid}},{contentOnly:!0}).then((function(){return Ti(e)}))}),[Ti,Kt]),Ri=(0,s.useMemo)((function(){return(0,P.jsx)(zc,{activeView:qe,addNewBlockAtIndex:function(e,n,t,i){return new Promise((function(){return xi({block:e,idx:n,name:i,onCreateCallback:t})}))},afterWidth:E,autocompleteItems:Ht,blockRefs:rn,blocks:Rn,blocksInNotebook:Jt,cancelPipeline:Ii,chartRefs:on,deleteBlock:ti,deleteWidget:ri,editingBlock:Gn,executePipeline:Pi,fetchFileTree:De,fetchPipeline:Ie,fetchSecrets:Pn,fetchVariables:On,globalVariables:wn,insights:wt,interruptKernel:si,isPipelineExecuting:Hn,messages:he,metadata:Pt,onChangeCallbackBlock:fn,onChangeChartBlock:mn,onChangeCodeBlock:pn,pipeline:Ne,pipelineMessages:ge,runBlock:Ai,runningBlocks:qn,sampleData:jt,savePipelineContent:Kt,secrets:In,selectedBlock:Xn,selectedFilePath:H,setActiveSidekickView:en,setAnyInputFocused:ce,setDisableShortcuts:de,setEditingBlock:Vn,setErrors:M,setSelectedBlock:Jn,setTextareaFocused:re,statistics:Tt,textareaFocused:ie,updateWidget:Fn,widgets:Nn})}),[qe,E,Ht,rn,Rn,Jt,Ii,ti,ri,Gn,Pi,De,Ie,Pn,On,wn,wt,si,Hn,he,Pt,fn,mn,pn,Ne,ge,Ai,qn,jt,Kt,In,Xn,H,en,ce,Vn,M,re,xi,Tt,ie,Fn,Nn]),Di=(0,s.useMemo)((function(){return(0,P.jsx)(yo,{addNewBlockAtIndex:mi?pi:function(e,n,t,i){return new Promise((function(r,o){v.tf.DBT===(null===e||void 0===e?void 0:e.type)&&v.t6.SQL===(null===e||void 0===e?void 0:e.language)?pi(e,n,t,i):xi({block:e,idx:n,name:i,onCreateCallback:t})}))},addWidget:function(e,n){var t=n.onCreateCallback;return _i(e,Nn.length,t)},anyInputFocused:le,autocompleteItems:Ht,blockRefs:rn,blocks:Jt,dataProviders:yn,deleteBlock:ti,disableShortcuts:se,fetchFileTree:De,fetchPipeline:Ie,fetchSampleData:xt,files:Me,globalVariables:wn,interruptKernel:si,isPipelineUpdating:qt,kernel:Oe,mainContainerRef:fe,mainContainerWidth:gn,messages:he,onChangeCallbackBlock:fn,onChangeCodeBlock:pn,openSidekickView:tn,pipeline:Ne,pipelineContentTouched:We,pipelineLastSaved:Fe,restartKernel:ai,runBlock:Ai,runningBlocks:qn,savePipelineContent:Kt,selectedBlock:Xn,setAnyInputFocused:ce,setEditingBlock:Vn,setErrors:M,setIntegrationStreams:ut,setMessages:me,setOutputBlocks:ot,setPipelineContentTouched:Ge,setRecsWindowOpenBlockIdx:nt,setRunningBlocks:Kn,setSelectedBlock:Jn,setSelectedOutputBlock:ht,setSelectedStream:dt,setTextareaFocused:re,textareaFocused:ie,widgets:Nn})}),[pi,_i,le,Ht,mi,rn,Jt,yn,ti,se,De,Ie,xt,Me,wn,si,qt,Oe,fe,gn,he,fn,pn,tn,Ne,We,Fe,ai,Ai,qn,Kt,Xn,ce,Vn,M,me,Ge,Kn,Jn,re,xi,ie,Nn]),Mi=(0,s.useMemo)((function(){if(c===Co.b)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(An,{filePaths:G,filesTouched:K,isBusy:qn.length>=1,isPipelineUpdating:qt,kernel:Oe,pipeline:Ne,pipelineContentTouched:We,pipelineLastSaved:Fe,restartKernel:ai,savePipelineContent:Kt,selectedFilePath:H,setErrors:M,updatePipelineMetadata:ei}),(null===G||void 0===G?void 0:G.length)>0&&(0,P.jsx)(kn,{filePaths:G,filesTouched:K,savePipelineContent:Kt,selectedFilePath:H})]})}),[K,qt,Oe,c,Ne,We,Fe,ai,qn,Kt,H,G,M,ei]),Ni=(0,s.useMemo)((function(){var e;return null===ct||void 0===ct||null===(e=ct.filter((function(e){return(0,ee.sE)(null===bt||void 0===bt?void 0:bt.outputs,(function(n){return n.variable_uuid==="output_sample_data_".concat(e)}))})))||void 0===e?void 0:e.map((function(e){return(0,P.jsx)(Z.Z,{pl:1,children:(0,P.jsx)(j.ZP,{blackBorder:!0,compact:!0,muted:!0,onClick:function(){return dt(e)},selected:st===e,uuid:e,children:e})},e)}))}),[bt,ct,st]),Bi=(0,s.useRef)(null),Li=(0,s.useMemo)((function(){return(0,P.jsx)(Ue,{addNewBlock:function(e,n){pi(e,Rn.length,n,e.name),(null===$e||void 0===$e?void 0:$e.length)>=1&&p.push("/pipelines/".concat(we,"/edit"))},blocks:Rn,deleteBlockFile:li,deleteWidget:ri,fetchFileTree:De,fetchPipeline:Ie,files:Me,onSelectBlockFile:Oi,openFile:Yt,openPipeline:function(e){vt(),p.push("/pipelines/[pipeline]/edit","/pipelines/".concat(e,"/edit"))},openSidekickView:tn,pipeline:Ne,ref:Bi,setErrors:M,setSelectedBlock:Jn,widgets:Nn})}),[pi,Rn,li,ri,De,Ie,null===$e||void 0===$e?void 0:$e.length,Me,Oi,Yt,tn,Ne,we,vt,p,M,Jn,Nn]),Fi=(0,s.useMemo)((function(){if(c===Co.b)return(0,P.jsx)(an,{cancelPipeline:Ii,createPipeline:Wt,executePipeline:Pi,interruptKernel:si,isPipelineExecuting:Hn,restartKernel:ai,savePipelineContent:Kt,setMessages:me})}),[Ii,Wt,Pi,si,Hn,c,ai,Kt,me]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Zn.Z,{title:null===Ne||void 0===Ne?void 0:Ne.name}),(0,P.jsxs)(Eo,{after:Ri,afterHeader:(0,P.jsx)(Vc,{activeView:qe,pipeline:Ne}),afterHidden:_,afterSubheader:(null===rt||void 0===rt?void 0:rt.length)>0&&qe===U.DATA&&(0,P.jsxs)(x.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[!Be&&rt.map((function(e){var n=e.uuid,t=(null===pt||void 0===pt?void 0:pt.uuid)===n;return(0,P.jsx)(Z.Z,{pl:1,children:(0,P.jsx)(j.ZP,{afterElement:t?(0,P.jsx)(g.Z,{basic:!0,highlightOnHover:!0,onClick:function(){!function(e,n){var t=Ut(e).filter((function(e){return e!==n}));(0,S.t8)(Ft(e),t)}(we,e.uuid),ot((function(e){return e.filter((function(e){return e.uuid!==n}))}))},padding:"2px",transparent:!0,children:(0,P.jsx)(X.x8,{muted:!0,size:1.25*$.iI})}):null,blackBorder:!0,compact:!0,muted:!0,onClick:function(){return ht(e)},selected:t,uuid:n,children:n})},n)})),Be&&Ni]}),before:Li,beforeHeader:Fi,errors:A,headerOffset:(null===G||void 0===G?void 0:G.length)>0?36:0,mainContainerHeader:Mi,mainContainerRef:fe,page:c,pipeline:Ne,setAfterHidden:C,setAfterWidthForChildren:I,setErrors:M,setMainContainerWidth:bn,children:[(0,P.jsx)("div",{style:{height:H?0:null,opacity:H?0:null,visibility:H?"hidden":null},children:(0,P.jsx)(h,{uuid:"PipelineDetail/".concat(we),children:Di})}),null===$e||void 0===$e?void 0:$e.map((function(e){return(0,P.jsx)("div",{style:{display:H===e?null:"none"},children:(0,P.jsx)(h,{uuid:"FileEditor/".concat(decodeURIComponent(e)),children:(0,P.jsx)(nn,{active:H===e,addNewBlock:function(e,n){pi(e,Rn.length,n,e.name),p.push("/pipelines/".concat(we,"/edit"))},fetchPipeline:Ie,fetchVariables:On,filePath:e,openSidekickView:tn,pipeline:Ne,selectedFilePath:H,setErrors:M,setFilesTouched:J,setSelectedBlock:Jn})})},e)})),(0,P.jsx)(Z.Z,{pb:Je?0:Math.max(Math.floor(b*(2/3)/$.iI),0)})]})]})}Kc.getInitialProps=function(){var e=(0,i.Z)(u().mark((function e(n){var t,i,r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,i=Co.b,r={page:i,pipeline:{uuid:t}},e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var Yc=(0,Po.Z)(Kc)},11366:function(e,n,t){"use strict";t.d(n,{k:function(){return i}});var i="automatically_name_blocks"},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return d},AY:function(){return f},BP:function(){return s},JX:function(){return a},OC:function(){return o},Pc:function(){return p},d$:function(){return u},lJ:function(){return h},n1:function(){return c}});var i=t(92083),r=t.n(i),o="YYYY-MM-DD HH:mm:ss",l="YYYY-MM-DD HH:mm",c="YYYY-MM-DD";function u(e,n){var t=n.utcFormat,i=n.dayAgo,o=r()(e);return t&&(o=o.utc()),i&&(o=o.subtract(1,"days")),o.format(l)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:l)}function s(e,n,t){return r()(e).utc().hours(+n).minutes(+t).format()}function d(e){return r()(e).unix()}function f(e,n,t){return"".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t)}function p(e){var n=r().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function h(e){return e.padStart(2,"0")}},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return f},u7:function(){return d}});var i=t(75582),r=t(82394),o=t(34376),l=t.n(o),c=t(59e3),u=t(24224);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},r=t.replaceParams,o=t.pushHistory,u=r?{}:(0,c.iV)();n=window.location.pathname;var a=o?l().push:l().replace,d=s(s({},u),e);Object.entries(e).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];"undefined"!==typeof r&&null!==r||delete d[t]}));var f=(0,c.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(n.split("?")[0]).concat(f);return a(l().router.pathname,p,{shallow:!0})}function f(e,n,t){var r=t.addingMultipleValues,o=t.isList,l=t.itemsPerPage,c=t.resetLimitParams,a=s({},e);r?Object.entries(n).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];if(Array.isArray(r)){var o="".concat(t,"[]");a[o]=r.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1],o=String(r),l="".concat(t,"[]"),c=a[l];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?a[l]=(0,u.Od)(c,(function(e){return e===o})):a[l]=c.concat(o):a[l]=[o]})):a=s(s({},a),n),c&&(a._limit=l||20,a._offset=0),d(a)}},76419:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/edit",function(){return t(946)}])}},function(e){e.O(0,[3662,3850,2083,5896,4804,1774,5872,2524,9565,2714,2125,7011,6085,8789,4538,2344,9386,1830,4463,6532,1286,3688,3699,6567,9774,2888,179],(function(){return n=76419,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-dd6041ed29f881f0.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-dd6041ed29f881f0.js deleted file mode 100644 index 8cfac8bfe1f5..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-dd6041ed29f881f0.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2551],{7432:function(e,n,t){var i={"./Active4D.json":[266,266],"./All Hallows Eve.json":[4450,4450],"./Amy.json":[88849,8849],"./Birds of Paradise.json":[78097,8097],"./Blackboard.json":[88018,6115],"./Brilliance Black.json":[73835,3835],"./Brilliance Dull.json":[6507,6507],"./Chrome DevTools.json":[22508,2508],"./Clouds Midnight.json":[49566,9566],"./Clouds.json":[57951,7951],"./Cobalt.json":[80826,826],"./Cobalt2.json":[98256,8256],"./Dawn.json":[76958,6958],"./Dominion Day.json":[89307,9307],"./Dracula.json":[33453,3453],"./Dreamweaver.json":[19363,9363],"./Eiffel.json":[82481,2481],"./Espresso Libre.json":[44776,4776],"./GitHub Dark.json":[792,792],"./GitHub Light.json":[61450,1450],"./GitHub.json":[10739,739],"./IDLE.json":[67947,7947],"./Katzenmilch.json":[81240,1240],"./Kuroir Theme.json":[4388,4388],"./LAZY.json":[25164,5164],"./MagicWB (Amiga).json":[76443,6443],"./Merbivore Soft.json":[99361,9361],"./Merbivore.json":[86042,6042],"./Monokai Bright.json":[14883,4883],"./Monokai.json":[34454,4454],"./Night Owl.json":[60261,261],"./Nord.json":[59785,9785],"./Oceanic Next.json":[58920,8920],"./Pastels on Dark.json":[38901,8901],"./Slush and Poppies.json":[26434,6434],"./Solarized-dark.json":[36116,6116],"./Solarized-light.json":[5008,5008],"./SpaceCadet.json":[20440,440],"./Sunburst.json":[68018,8018],"./Textmate (Mac Classic).json":[15824,5824],"./Tomorrow-Night-Blue.json":[81150,1150],"./Tomorrow-Night-Bright.json":[8762,8762],"./Tomorrow-Night-Eighties.json":[82545,2545],"./Tomorrow-Night.json":[99855,9855],"./Tomorrow.json":[34092,4092],"./Twilight.json":[93898,3898],"./Upstream Sunburst.json":[98807,8807],"./Vibrant Ink.json":[89927,9927],"./Xcode_default.json":[64042,4042],"./Zenburnesque.json":[33467,3467],"./iPlastic.json":[88277,8277],"./idleFingers.json":[5104,5104],"./krTheme.json":[9633,9633],"./monoindustrial.json":[15729,5729],"./themelist.json":[79437,9437]};function r(e){if(!t.o(i,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=i[e],r=n[0];return t.e(n[1]).then((function(){return t.t(r,19)}))}r.keys=function(){return Object.keys(i)},r.id=7432,e.exports=r},5677:function(e,n,t){"use strict";t.d(n,{M4:function(){return d},S0:function(){return u},S_:function(){return a},Yn:function(){return f},rW:function(){return s}});var i=t(82394),r=t(21831),o=t(75582);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function c(e){for(var n=1;n div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(e){return e.disableScrolling&&"\n overflow: hidden;\n "}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),k.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||P,"px;\n ")}),y.iD,j.ry,(function(e){return"\n background-color: ".concat((e.theme.background||b.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n ")}),1*_.iI);function A(e){var n=e.original,t=8.5*Math.max.apply(Math,(0,r.Z)(n.map((function(e){return(null===e||void 0===e?void 0:e.length)||0})))),i=Math.ceil(t/(I-2*_.iI));return Math.max(i,1)*y.dN+2*_.iI}function R(e){var n=e.columnHeaderHeight,t=e.columns,i=e.data,c=e.disableScrolling,u=e.height,k=e.index,S=e.invalidValues,T=e.maxHeight,R=e.numberOfIndexes,D=e.previewIndexes,M=e.renderColumnHeader,N=e.width,B=(0,o.useContext)(d.ThemeContext),L=(0,o.useRef)(null),F=(0,o.useRef)(null);(0,o.useEffect)((function(){var e=function(e){var n;null===L||void 0===L||null===(n=L.current)||void 0===n||n.scroll(e.target.scrollLeft,0)};return F&&F.current.addEventListener("scroll",e),function(){var n;null===F||void 0===F||null===(n=F.current)||void 0===n||n.removeEventListener("scroll",e)}}),[L,F]);var U=(0,o.useMemo)((function(){return k&&i&&k.length===i.length}),[i,k]),H=(0,o.useMemo)((function(){var e=[];return(0,O.w6)(R).forEach((function(n,t){var o=8.7*String(null===i||void 0===i?void 0:i.length).length;if(U){var l=k.map((function(e){return R>=2?String(e[t]).length:String(e).length}));o=8.7*Math.max.apply(Math,(0,r.Z)(l))}e.push(o+2*_.iI)})),e}),[i,k,R,U]),z=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),G=(0,o.useMemo)((function(){return x()}),[]),W=(0,o.useMemo)((function(){var e=N-(Math.max.apply(Math,(0,r.Z)(H))+1.5*_.iI+G),n=t.length-1,i=I;return i*n=1})).join("/");null===a||void 0===a||a((function(n){return v(v({},n),{},(0,i.Z)({},o,e.loaded/e.total))}))}})),f=(0,r.Z)(d,1)[0],m=(0,o.useCallback)((function(e){e.forEach((function(e){var n=e.name,r=e.path,o=[t],l=r.split("/").filter((function(e){return e&&e!==n})).join("/");l&&o.push(l);var c=[],u=o.join("/");(null===u||void 0===u?void 0:u.length)>=1&&o.push(u),c.push(n);var d=c.join("/");f({dir_path:u,file:e,overwrite:!1}).then((function(e){var n=e.data,t=n.error,r=n.file;s((function(e){return v(v({},e),{},(0,i.Z)({},d,r||t))}))})),a((function(e){return v(v({},e),{},(0,i.Z)({},d,0))}))}))}),[f,t,a,s]);return(0,u.jsx)(p,{onDragActiveChange:c,setFiles:m,children:n})}},85307:function(e,n,t){"use strict";t.d(n,{$W:function(){return u},cl:function(){return s},cv:function(){return d},dE:function(){return a}});var i=t(9518),r=t(23831),o=t(73942),l=t(49125),c=t(37391),a=i.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],o.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).popup,";\n ")})),u=i.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-1"})(["padding-top:","px;",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeTextarea,";\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-2"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],c.w5,(function(e){return e.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,";\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")})),d=i.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-3"})(["padding:","px;"," "," ",""],2*l.iI,(function(e){return"\n background-color: ".concat((e.theme||r.Z).interactive.defaultBackground,";\n border-bottom: ").concat(o.YF,"px ").concat(o.M8," ").concat((e.theme||r.Z).borders.medium,";\n ")}),(function(e){return e.padding&&"\n padding: ".concat(e.padding,"px;\n ")}),(function(e){return e.rounded&&"\n border-top-left-radius: ".concat(o.n_,"px;\n border-top-right-radius: ").concat(o.n_,"px;\n ")}))},64155:function(e,n,t){"use strict";t.d(n,{Eh:function(){return a},ht:function(){return s},t0:function(){return u}});var i=t(9518),r=t(82386),o=t(1286),l=t(31012),c=t(49125),a=(c.iI,o.O$+3*c.iI+l.dN),u=i.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})(["position:relative;width:fit-content;"," ",""],(function(e){return"\n height: calc(100vh - ".concat(r.uX,"px - ").concat(e.heightOffset,"px);\n ")}),(function(e){return e.fullWidth&&"\n width: calc(100% - ".concat(e.widthOffset||0,"px);\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*c.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}))},33699:function(e,n,t){"use strict";t.d(n,{y:function(){return R},Z:function(){return D}});var i=t(89565),r=t.n(i),o=t(56085),l=t(82684),c=t(35490),a=t(47999),u=t(67971),s=t(82635),d=t(86673),f=t(54283),p=t(19711),h=t(9518),m=t(23831),v=t(49125),g=t(37391),b=(0,h.css)([""," ",""],(function(e){return!e.width&&"\n width: 100%;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),x=h.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],b,g.w5,(function(e){return"\n background-color: ".concat((e.theme.background||m.Z.background).codeTextarea,";\n ")})),j=h.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],b,v.cd*v.iI),y=h.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),k=(0,h.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(e){return e.focusBeginning&&"\n position: absolute;\n background-color: ".concat((e.theme.accent||m.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(v.iI,"px;\n opacity: 0.3;\n ")}),(function(e){return e.focused&&"\n background-color: ".concat((e.theme.accent||m.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(v.iI,"px;\n opacity: 0.3;\n ")})),Z=h.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],k),_=h.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],k,(function(e){return e.focused&&"\n position: absolute;\n "})),C=t(16115),O=t(94353),w=t(28799),S=t(51504),E=t(66653),P=t(41150),I=t(28598);function T(e,n){var t="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"===typeof e)return A(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return A(e,n)}(e))||n&&e&&"number"===typeof e.length){t&&(e=t);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){c=!0,o=e},f:function(){try{l||null==t.return||t.return()}finally{if(c)throw o}}}}function A(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t0?e-1:e}))}),[]),se=(0,l.useCallback)((function(){V((function(e){return e<=M.length?e+1:e}))}),[M]),de=(0,l.useCallback)((function(e){var n=(null===e||void 0===e?void 0:e.split(/\n/))||[];if(n.length>1){var t=n.slice(0,-1);t[0]=M+t[0];var i=t.map((function(e,n){return{command:0===n,data:e,type:s.Gi.TEXT}}));F(q.length+t.length),Y((function(e){return e.concat(t)})),ne((function(e){return e.concat(i)})),z((function(e){return e+t.join("\n")}));var r=(n.slice(-1)[0]||"").trim();N(r),V(r.length)}else N((function(n){return n+e})),V(M.length+e.length)}),[M,q]);return le(h,(function(e,t,i){var r=e.code,o=e.key;if(X)if((0,E.j)(e),(0,S.y)([C.PQ,C.VS],t))A(!1),ne((function(e){var n;return e.concat({command:!0,data:(null===M||void 0===M||null===(n=M.trim())||void 0===n?void 0:n.length)>=1?M:"\n",type:s.Gi.TEXT})})),N(""),n();else if(!k)if(C.Qj!==r||t[C.zX])if((0,S.y)([C.QK],t))ue();else if((0,S.y)([C.DY],t))se();else if((0,S.y)([C.Bu],t)){if(q.length>=1){var l,a=Math.max(0,L-1);N(q[a]),F(a),V((null===(l=q[a])||void 0===l?void 0:l.length)||0)}}else if((0,S.y)([C.kD],t)){if(q.length>=1){var u=Math.min(q.length,L+1),d=q[u]||"";N(d),F(u),V(d.length)}}else if((0,S.y)([C.Uq],t)){var f=H+M;(null===f||void 0===f?void 0:f.length)>=1&&(A(!0),re(JSON.stringify({api_key:O.l,code:"!".concat(f),token:(new c.Z).decodedToken.token,uuid:h})),F(q.length+1),Y((function(e){return e.concat(M)})),V(0)),ne((function(e){var n;return e.concat({command:!0,data:(null===M||void 0===M||null===(n=M.trim())||void 0===n?void 0:n.length)>=1?M:"\n",type:s.Gi.TEXT})})),z(""),N("")}else if((0,S.y)([C.zX,C.VS],t))navigator.clipboard.writeText(window.getSelection().toString());else if((0,S.y)([C.zX,C.Pd],t)||(0,S.y)([C.PQ,C.Pd],t)){var p,m,v,g,b;"undefined"===typeof(null===(p=navigator)||void 0===p?void 0:p.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(m=navigator)&&void 0!==m&&null!==(v=m.clipboard)&&void 0!==v&&v.readText?navigator.clipboard.readText().then(de).catch((function(e){return alert("".concat(e,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(g=navigator)&&void 0!==g&&null!==(b=g.clipboard)&&void 0!==b&&b.read?navigator.clipboard.read().then((function(e){var n,t=T(e);try{for(t.s();!(n=t.n()).done;){var i,r=n.value,o=T(r.types);try{for(o.s();!(i=o.n()).done;){var l=i.value;if("text/plain"===l)return r.getType(l)}}catch(c){o.e(c)}finally{o.f()}}}catch(c){t.e(c)}finally{t.f()}})).then((function(e){return e.text()})).then(de).catch((function(e){return alert("".concat(e,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else t[C.zX]||t[C.PQ]||1!==o.length||(N((function(e){return e.slice(0,W)+o+e.slice(W)})),se());else{var x=Math.max(0,W-1);N((function(e){return e.slice(0,x)+e.slice(W)})),V((function(e){return Math.max(0,e-1)}))}}),[k,M,q,L,X,n,A,N,Y,F,ne,h]),(0,I.jsx)(x,{ref:v,width:m,children:(0,I.jsx)(a.Z,{isOpen:!0,onClick:function(){null===t||void 0===t||t(),J(!0),ce(!0)},onClickOutside:function(){J(!1),ce(!1)},style:{minHeight:"100%"},children:(0,I.jsxs)(j,{ref:g,width:m,children:[null===ee||void 0===ee?void 0:ee.reduce((function(e,n,t){var i=n||{},o=i.command,l=i.data,c=i.type,a=[];a=(a=Array.isArray(l)?l:[l]).filter((function(e){return e}));var d=[];return a.forEach((function(e,n){var i;if(s.jU.includes(c)&&(i=(0,I.jsxs)(p.ZP,{monospace:!0,noWrapping:!0,pre:!0,children:[e&&(0,I.jsx)(r(),{children:e}),!e&&(0,I.jsx)(I.Fragment,{children:"\xa0"})]})),i){var l="command-".concat(t,"-").concat(n,"-").concat(e);o?d.push((0,I.jsx)(y,{children:(0,I.jsxs)(u.Z,{alignItems:"center",children:[(0,I.jsx)(p.ZP,{inline:!0,monospace:!0,warning:!0,children:"\u2192\xa0"}),i]})},l)):d.push((0,I.jsx)(y,{children:i},l))}})),e.concat(d)}),[]),k&&(0,I.jsx)(d.Z,{mt:1,children:(0,I.jsx)(f.Z,{})}),!k&&(0,I.jsx)(Z,{focused:X&&(0===M.length||W>M.length),children:(0,I.jsxs)(p.ZP,{monospace:!0,children:[(0,I.jsx)(p.ZP,{inline:!0,monospace:!0,warning:!0,children:"\u2192\xa0"}),null===M||void 0===M?void 0:M.split("").map((function(e,n){return(0,I.jsxs)(_,{focusBeginning:X&&0===W&&0===n,focused:X&&W===n+1,children:[" "===e&&(0,I.jsx)(I.Fragment,{children:"\xa0"})," "!==e&&e]},"command-".concat(n,"-").concat(e))}))]})})]})})})}},76096:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(33591)),l=t(28598),c=["children","fullHeight","gutter","style"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function u(e){for(var n=1;n 0:\n columns_with_mising_values.append(col)\n percentage_of_missing_values.append(100 * missing / number_of_rows)\n"}}},{label:function(){return"Unique values"},widgetTemplate:function(e){var n,t=e.block;return{name:"unique values for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(n={},(0,c.Z)(n,O,"columns"),(0,c.Z)(n,w,"number_of_unique_values"),(0,c.Z)(n,g,F.HORIZONTAL),(0,c.Z)(n,S,z.DESCENDING),(0,c.Z)(n,"chart_type",i.BAR_CHART),n),content:"columns = df_1.columns\nnumber_of_unique_values = [df_1[col].nunique() for col in columns]\n"}}},{label:function(){return"Most frequent values"},widgetTemplate:function(e){var n,t=e.block;return{name:"most frequent values for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(n={},(0,c.Z)(n,x,3e3),(0,c.Z)(n,j,"column_index"),(0,c.Z)(n,O,"columns"),(0,c.Z)(n,w,"rows"),(0,c.Z)(n,"chart_type",i.TABLE),n),content:"columns = ['mode value', 'frequency', '% of values']\n\ncolumn_index = []\nrows = []\nfor col in df_1.columns:\n value_counts = df_1[col].value_counts()\n if len(value_counts.index) == 0:\n continue\n column_value = value_counts.index[0]\n value = value_counts[column_value]\n number_of_rows = df_1[col].count()\n column_index.append(col)\n rows.append([\n column_value,\n f'{round(100 * value / number_of_rows, 2)}%',\n value,\n ])\n"}}},{label:function(){return"Summary overview"},widgetTemplate:function(e){var n,t=e.block;return{name:"summary overview for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(n={},(0,c.Z)(n,x,3e3),(0,c.Z)(n,j,"stats"),(0,c.Z)(n,O,"headers"),(0,c.Z)(n,w,"rows"),(0,c.Z)(n,"chart_type",i.TABLE),n),content:"from mage_ai.data_cleaner.column_types.column_type_detector import infer_column_types\n\n\nheaders = ['value']\nstats = ['Columns', 'Rows']\nrows = [[len(df_1.columns)], [len(df_1.index)]]\n\ncol_counts = {}\nfor col, col_type in infer_column_types(df_1).items():\n col_type_name = col_type.value\n if not col_counts.get(col_type_name):\n col_counts[col_type_name] = 0\n col_counts[col_type_name] += 1\n\nfor col_type, count in sorted(col_counts.items()):\n stats.append(f'# of {col_type}')\n rows.append([count])\n"}}},{label:function(){return"Feature profiles"},widgetTemplate:function(e){var n,t=e.block;return{name:"feature profiles for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(n={},(0,c.Z)(n,x,3e3),(0,c.Z)(n,j,"stats"),(0,c.Z)(n,O,"columns"),(0,c.Z)(n,w,"rows"),(0,c.Z)(n,"chart_type",i.TABLE),n),content:"from mage_ai.data_cleaner.column_types.column_type_detector import infer_column_types\nimport statistics\n\n\ncolumns_and_types = infer_column_types(df_1).items()\ncolumns = [t[0] for t in columns_and_types]\nstats = ['Type', 'Missing values', 'Unique values', 'Min', 'Max', 'Mean', 'Median', 'Mode']\nrows = [[] for _ in stats]\n\nfor col, col_type in columns_and_types:\n series = df_1[col]\n min_value = None\n max_value = None\n mean = None\n median = None\n\n not_null = series[series.notnull()]\n\n if col_type.value in ['number', 'number_with_decimals']:\n count = len(not_null.index)\n if count >= 1:\n mean = round(not_null.sum() / count, 2)\n median = sorted(not_null)[int(count / 2)]\n min_value = round(series.min(), 2)\n max_value = round(series.max(), 2)\n else:\n min_value = not_null.astype(str).min()\n max_value = not_null.astype(str).max()\n\n _, mode = sorted(\n [(v, k) for k, v in not_null.value_counts().items()],\n reverse=True,\n )[0]\n\n for idx, value in enumerate([\n col_type.value,\n len(series[series.isna()].index),\n len(series.unique()),\n min_value,\n max_value,\n mean,\n median,\n mode,\n ]):\n rows[idx].append(value)\n"}}}],re=t(49125),oe=t(90211),le=t(28598);function ce(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ae(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var r=[e.parent.name];return(null===i||void 0===i?void 0:i.length)>=1&&r.push(i),en(e.parent,r.join("/"))}return i}function nn(e){return null===e||void 0===e?void 0:e.split("/").slice(1).join("/")}function tn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=en(e,n,t);return nn(i)}function rn(e){var n,t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=en(e,i).split("/");if(!r)return null;if(1===r.length)(r=null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t.split("/"))&&(n=r[0]===h.tf.CUSTOM?r[0]:(0,oe.C5)(r[0]||""));else if(r[1]===h.tf.CUSTOM)n=r[1];else{var o=r[1];n=h.tf.DBT===o?o:(0,oe.C5)(o||"")}if(!r)return null;var l="";l=r.length>=3?r.slice(2,r.length).join("/"):r[r.length-1];var c=["\\.".concat(Ee.PY),"\\.".concat(Ee.R),"\\.".concat(Ee.SQL),"\\.".concat(Ee.YAML),"\\.".concat(Ee.YML)].join("|"),a=new RegExp("".concat(c,"$"));if(h.$W.concat(h.tf.DBT).includes(n)&&l.match(a)){var u=l.split("."),s=u[1];return{language:Ge[s],type:n,uuid:u[0]}}}function on(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=en(e,n).split("/");if(t[1]){var i=(0,oe.C5)(t[n?0:1]);t[1]===h.tf.DBT&&(i=h.tf.DBT);var r=t[t.length-1],o=new RegExp(".".concat(Ee.YAML,"$")),l=new RegExp(".".concat(Ee.R,"$")),c=new RegExp(".".concat(Ee.SQL,"$"));if(r.match(o)&&h.VZ.includes(i))return{type:i,uuid:r.replace(o,"")};if(r.match(l)&&h.J8.includes(i))return{type:i,uuid:r.replace(l,"")};if(r.match(c)&&h.HX.includes(i)){var a=r.replace(/[.]/g,"_"),u=i===h.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(a)):r.replace(c,"");return{type:i,uuid:u}}}}var ln=t(24224);function cn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function an(e){for(var n=1;n=1||r||A||I||(e.preventDefault(),clearTimeout(k.current),k.current=setTimeout((function(){b({x:e.pageX,y:e.pageY}),x(o),j(null)}),300))},style:{alignItems:"center",cursor:"default",display:"flex",minWidth:c*Qe.Cl+o.name.length*re.Fo+2*re.iI,paddingBottom:re.iI/4,paddingLeft:re.iI/4+Qe.Cl*c,paddingRight:re.iI/4,paddingTop:re.iI/4},children:[T&&!M&&(0,le.jsx)(Ve._M,{muted:!0,size:Qe.ZG}),T&&M&&(0,le.jsx)(Ve._Q,{muted:!0,size:Qe.ZG}),!T&&(0,le.jsx)("div",{style:{width:Qe.ZG}}),(0,le.jsxs)("div",{style:{marginLeft:re.iI/2,marginRight:re.iI/2},children:[!E&&(0,le.jsx)(B,{disabled:A,size:Qe.ZG}),E&&(0,le.jsx)(Re.Z,{color:E,size:Qe.ZG,square:!0})]}),(0,le.jsx)(ye.ZP,{color:E,default:!E&&!A,disabled:A,monospace:!0,small:!0,children:w})]}),(0,le.jsx)("div",{style:{display:M?"none":"block"},children:L})]})},dn=t(82531),fn=t(7715),pn=t(96510);var hn=function(e){var n=e.fetchFileTree,t=e.file,i=e.onCancel,r=e.selectedFolder,o=e.setErrors,c=(0,d.useRef)(null),a=(0,fn.Qr)(t)?null:t,u=(0,d.useState)(a?tn(a,null,!0):""),s=u[0],p=u[1],h=(0,d.useState)(a?null===a||void 0===a?void 0:a.name:""),m=h[0],v=h[1];(0,d.useEffect)((function(){var e;null===c||void 0===c||null===(e=c.current)||void 0===e||e.focus()}),[]),(0,d.useEffect)((function(){r&&p(tn(r))}),[r]);var g=(0,f.Db)(dn.ZP.files.useCreate(),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),b=(0,l.Z)(g,1)[0],x=(0,f.Db)(dn.ZP.files.useUpdate(a&&encodeURIComponent(tn(a))),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),j=(0,l.Z)(x,1)[0];return(0,le.jsxs)(be.Z,{footer:(0,le.jsxs)(ve.Z,{children:[(0,le.jsxs)(ge.ZP,{bold:!0,disabled:!m,inline:!0,keyboardShortcutValidation:function(e){var n=e.keyMapping;return(0,Oe.y)([Ze.Uq],n)},onClick:function(){return a?j({file:{dir_path:s,name:m},file_json_only:!0}):b({file:{dir_path:s,name:m,overwrite:!1},file_json_only:!0})},primary:!0,tabIndex:0,uuid:"NewFile/create_file",children:[a?"Rename":"Create"," file"]}),(0,le.jsx)(je.Z,{ml:1,children:(0,le.jsx)(pe.Z,{onClick:function(){return i()},tabIndex:0,children:"Cancel"})})]}),headerTitle:a?"Rename file":"New file",children:[(0,le.jsx)(ke.Z,{disabled:!!a,label:"Directory",monospace:!0,onChange:function(e){return p(e.target.value)},setContentOnMount:!0,value:s}),(0,le.jsx)(je.Z,{mt:2,children:(0,le.jsx)(ke.Z,{label:"Filename",monospace:!0,onChange:function(e){return v(e.target.value)},ref:c,required:!0,value:m})})]})},mn=t(55106),vn=t(66176),gn=t(87815),bn=t(23831),xn=t(73942),jn=(re.iI,Ae.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],xn.n_,8*re.iI,100*re.iI,55*re.iI,(function(e){return"\n border: 1px dashed ".concat((e.theme.borders||bn.Z.borders).contrast,";\n ")}))),yn=Ae.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1g3zz7z-1"})(["max-width:","px;min-width:","px;"],100*re.iI,55*re.iI);var kn=function(e){var n=e.fetchFileTree,t=e.onCancel,i=e.selectedFolder,r=(0,d.useState)(!1),o=r[0],c=r[1],a=(0,d.useState)({}),u=a[0],s=a[1],f=(0,d.useState)({}),p=f[0],h=f[1],m=!(0,fn.Qr)(u),v=(0,d.useMemo)((function(){var e=[];return(0,ln.YC)(Object.entries(u),(function(e){var n=(0,l.Z)(e,2),t=n[0];n[1];return t})).forEach((function(n){var t=(0,l.Z)(n,2),i=t[0],r=t[1],o=p[i],c=null===o||void 0===o?void 0:o.message;e.push([(0,le.jsxs)("div",{children:[(0,le.jsx)(ye.ZP,{overflowWrap:!0,preWrap:!0,children:i}),c&&(0,le.jsx)(je.Z,{mt:1,children:(0,le.jsx)(ye.ZP,{danger:!0,small:!0,children:c})})]},"name-".concat(i)),(0,le.jsx)(vn.Z,{danger:!!c,progress:100*r},"progress-".concat(i))])})),(0,le.jsx)(gn.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[u,p]);return(0,le.jsxs)(be.Z,{footer:(0,le.jsxs)(ve.Z,{fullWidth:!0,children:[(0,le.jsx)(pe.Z,{onClick:function(){return t()},children:"Close"}),m&&(0,le.jsx)(je.Z,{ml:1,children:(0,le.jsx)(pe.Z,{onClick:function(){s({}),h({})},children:"Clear files and retry"})})]}),headerTitle:"Upload files",children:[m&&(0,le.jsx)(yn,{children:v}),!m&&(0,le.jsx)(mn.Z,{directoryPath:i?tn(i):"",onDragActiveChange:c,setFileUploadProgress:s,setUploadedFiles:function(e){h(e),null===n||void 0===n||n()},children:(0,le.jsx)(jn,{children:(0,le.jsxs)(ye.ZP,{center:!0,children:[o&&"Drop to upload",!o&&"Click or drop files and folders to upload"]})})})]})},Zn=t(86585),_n=function(e){var n=e[0];return n===h.tf.DBT||n===h.tf.CUSTOM?n:e[0].slice(0,-1)};function Cn(){return new RegExp(Object.keys(Ge).map((function(e){return".(".concat(e,")$")})).join("|"))}function On(e,n,t){var i,r,l=null===e||void 0===e||null===(i=e.path.match(Cn())[0])||void 0===i?void 0:i.split(".")[1],c=t.type===xe.qL.INTEGRATION,a=(0,ln.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return h.tf.DATA_EXPORTER===n})),u=e.path.replace(n,"").split("/"),s=e.path.split("/")[0]===h.tf.DBT,d=(r=u)[0]===h.tf.DBT?r.slice(1).join("/"):function(e){return e.at(-1)}(r).split(".")[0];if(u.length>=3&&!s){var f=u.slice(1,u.length-1).join("/");d="".concat(f,"/").concat(d)}var p=_n(e.path.split("/")),m={configuration:{file_path:s?d:null},language:Ge[l],name:(0,oe.wE)(d),type:p};if(p===h.tf.CUSTOM&&(m.color=h.Lq.TEAL),c){var v=(0,ln.sE)(t.blocks,(function(e){var n=e.type;return h.tf.DATA_LOADER===n})),g=(0,ln.sE)(t.blocks,(function(e){var n=e.type;return h.tf.TRANSFORMER===n})),b=[];g?b.push(g.uuid):null!==a&&void 0!==a&&a.upstream_blocks?b.push.apply(b,(0,o.Z)(a.upstream_blocks)):v&&b.push(v.uuid),m.upstream_blocks=b}return m}var wn=t(83608),Sn=["addNewBlock","blocks","deleteBlockFile","deleteWidget","fetchFileTree","fetchPipeline","files","pipeline","setErrors","setSelectedBlock","widgets"];function En(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Pn(e){for(var n=1;nc+l){var a=(null===p||void 0===p?void 0:p.type)===xe.qL.INTEGRATION,u=On(Pn(Pn({},w),{},{path:tn(w)}),A,p);null===t||void 0===t||t(u,(function(e){a&&M&&B({block:Pn(Pn({},M),{},{upstream_blocks:[e.uuid]})}),null===g||void 0===g||g(e)}))}}},l=function(e){w&&C({x:e.pageX,y:e.pageY})};return null===(e=document)||void 0===e||e.addEventListener("click",L),null===(i=document)||void 0===i||i.addEventListener("mousemove",l),null===(r=document)||void 0===r||r.addEventListener("mouseup",o),function(){var e,n,t;null===(e=document)||void 0===e||e.removeEventListener("click",L),null===(n=document)||void 0===n||n.removeEventListener("mousemove",l),null===(t=document)||void 0===t||t.removeEventListener("mouseup",o)}}),[t,M,w,L,p,n,A,g,y,B]);var F=(0,d.useMemo)((function(){return r.concat(x).map((function(e){return e.uuid}))}),[r,x]),U=(0,d.useMemo)((function(){return null===s||void 0===s?void 0:s.map((function(e){return(0,d.createElement)(sn,Pn(Pn({},j),{},{containerRef:n,file:e,key:e.name,level:0,pipelineBlockUuids:F,setCoordinates:C,setDraggingFile:S,setSelectedFile:I,theme:k,timeout:y}))}))}),[s,F,j,n,k,y]),H=(0,d.useMemo)((function(){return P&&rn(P)}),[P]),z=(0,d.useMemo)((function(){return w&&rn(w)}),[w]),G=(0,d.useMemo)((function(){return P&&"undefined"!==typeof(null===P||void 0===P?void 0:P.children)&&P}),[P]),W=(0,wn.dd)((function(){return(0,le.jsx)(kn,{fetchFileTree:a,onCancel:q,selectedFolder:G})}),{},[a,G],{background:!0,uuid:"upload_files"}),V=(0,l.Z)(W,2),Q=V[0],q=V[1],Y=(0,wn.dd)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,le.jsx)(hn,{fetchFileTree:a,file:e,onCancel:J,selectedFolder:G,setErrors:v})}),{},[a,G,v],{background:!0,disableClickOutside:!0,uuid:"new_file"}),K=(0,l.Z)(Y,2),X=K[0],J=K[1],$=(0,d.useMemo)((function(){var e;if(!H&&!P&&!G)return(0,le.jsx)("div",{});var t=(null===n||void 0===n||null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect())||{},i=t.x,r=t.width,l=_||{},a=l.x,u=void 0===a?0:a,s=l.y,d=void 0===s?0:s,f=u;u+Tn>=i+r&&(f=i+r-(Tn+re.iI)),f<0&&(f=0);var p=[];return G?p.push.apply(p,[{label:function(){return"Upload files"},onClick:function(){Q()},uuid:"upload_files"},{label:function(){return"New file"},onClick:function(){X({})},uuid:"new_file"}]):H?p.push({label:function(){return"Delete block file"},onClick:function(){H.type===h.tf.CHART?window.confirm("Are you sure you want to delete widget ".concat(H.uuid,"?"))&&c(H):window.confirm("Are you sure you want to delete block ".concat(H.uuid,"?"))&&o(H)},uuid:"delete_block_file"}):P&&p.push.apply(p,[{label:function(){return"Rename file"},onClick:function(){X(P)},uuid:"rename_file"},{label:function(){return"Delete file"},onClick:function(){var e=tn(P);window.confirm("Are you sure you want to delete file ".concat(e,"?"))&&D(encodeURIComponent(e))},uuid:"delete_file"}]),(0,le.jsx)("div",{style:{left:f,position:"fixed",top:d+re.iI/2,zIndex:Zn.bf+100},children:(0,le.jsx)(m.Z,{items:p,open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:Tn})})}),[_,o,D,c,n,Q,X,H,P,G]);return(0,le.jsxs)(Qe.Nk,{ref:n,children:[U,(H||P||G)&&$,z&&(0,le.jsx)("div",{style:{left:(null===_||void 0===_?void 0:_.x)-re.iI,position:"fixed",top:(null===_||void 0===_?void 0:_.y)-re.iI,zIndex:Zn.bf+100},children:(0,le.jsx)(ye.ZP,{cursor:"grabbing",monospace:!0,children:null===z||void 0===z?void 0:z.uuid})})]})}!function(e){e.BLOCK_FILE="block_file",e.DISABLED="disabled",e.FILE="file",e.FOLDER="folder",e.PIPELINE="pipeline"}(In||(In={}));var Rn=d.forwardRef(An),Dn=t(93461),Mn=Ae.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),Nn=Ae.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]),Bn=function(e){var n=e.children,t=e.divider,i=d.Children.toArray(n).length;return(0,le.jsx)(Mn,{children:(0,le.jsx)(ve.Z,{children:d.Children.map(n,(function(e,n){return e&&(0,le.jsxs)(Dn.Z,{children:[n>=1&&t&&(0,le.jsx)(Nn,{}),d.cloneElement(e,{borderRadiusLeft:i>=2&&0===n,borderRadiusRight:i>=2&&n===i-1,halfPaddingLeft:i>=2&&0!==n,halfPaddingRight:i>=2&&n!==i-1,noBorder:i>=2&&n>0&&n=2&&n!==i-1})]},"button-group-child-".concat(n))}))})})},Ln=t(57722),Fn=t(82635),Un=t(33699),Hn=t(94353),zn=t(28799),Gn=t(41150);function Wn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Vn(e){for(var n=1;n=1&&(n[o]=r.map((function(e){var n=e||{},t=n.sample_data,i=n.shape,r=n.text_data,o=n.type;return t?{data:Ri({shape:i},t),type:o}:r&&(0,oe.Pb)(r)?JSON.parse(r):r}))),t[o]=i})),{content:t,messages:n}}function Mi(e){return"".concat(e,"/").concat(Ce.kP)}function Ni(e){return(0,Ce.U2)(Mi(e),[])}function Bi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Li(e){for(var n=1;n=1||!m&&j>=1&&y>=k,A=(0,d.useState)(),R=A[0],D=A[1],M=(0,d.useState)(),N=M[0],B=M[1];(0,d.useEffect)((function(){m||B(100)}),[m]);var L=function(e){return Array.isArray(e)?e.join("\n"):e},F=(0,d.useMemo)((function(){return g.reduce((function(e,n){var t=e.at(-1);if(Fn.jU.includes(null===t||void 0===t?void 0:t.type)&&(null===t||void 0===t?void 0:t.type)===n.type&&!L(null===n||void 0===n?void 0:n.data).match(Oi)){if(Array.isArray(t.data))t.data.concat(n.data);else if("string"===typeof t.data){var i=L(n.data)||"";t.data=[t.data,i].join("\n")}}else Fn.jU.includes(null===n||void 0===n?void 0:n.type)&&!L(null===n||void 0===n?void 0:n.data).match(Oi)?e.push(Li(Li({},n),{},{data:L(n.data)})):e.push(Li({},n));return e}),[])}),[g]),U=(0,d.useMemo)((function(){return(0,le.jsx)(vn.Z,{progress:N})}),[N]),H=h.tf.DBT===(null===n||void 0===n?void 0:n.type),z=(0,xi.Z)(s);(0,d.useEffect)((function(){H&&!z&&s&&S(Ei)}),[s,z,H,S]);var G=(0,d.useMemo)((function(){var e=function(e,n){var t=e.columns,i=e.index,r=e.rows,o=e.shape,l=n.borderTop,c=n.selected;return o&&D(o),r.length>=1&&(0,le.jsx)(vi.Z,{columns:t,disableScrolling:!c,index:i,maxHeight:60*re.iI,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,noBorderTop:!l,rows:r,width:v-(2+re.cd*re.iI*2+2+rt.nn)})},n=[],t=[],i=[];return null===F||void 0===F||F.forEach((function(r,l){var a=r.data,u=r.type;if(a&&0!==(null===a||void 0===a?void 0:a.length)){var s=[];s=(s=Array.isArray(a)?a:[a]).filter((function(e){return e}));var d=[];s.forEach((function(e){if(e&&"string"===typeof e){var n=e.split("\n");d.push.apply(d,(0,o.Z)(n))}else"object"===typeof d&&d.push(e)}));var f=d.length,p=[];d.forEach((function(n,r){var o,a={contained:c,first:0===l&&0===r,last:l===F.length-1&&r===f-1},s=l>=1;if("string"===typeof n&&n.match(wi)){var d=n.split("\n"),h=[];d.forEach((function(e){if(e.match(wi)){var t=e.split("[__internal_test__]"),r=t[t.length-1];(0,oe.Pb)(r)&&i.push(JSON.parse(r))}else h.push(e);n=h.length>=1?h.join("\n"):null}))}if(null!==n){if("string"===typeof n&&n.match(Oi)){var m=n.split("[__internal_output__]"),v=m[m.length-1],g=v.split("FloatProgress");if(m.length>=2&&(v=g[0]),(0,oe.Pb)(v)){var b=JSON.parse(v),x=b.data,j=b.type;if(Fn.Gi.TABLE===j){!0;var y=e(x,{borderTop:s,selected:Z});t.push(y),H||(o=y)}}}else if(u===Fn.Gi.TABLE){!0;var k=e((0,oe.Pb)(n)?JSON.parse(n):n,{borderTop:s,selected:Z});t.push(k),H||(o=k)}else if(Fn.jU.includes(u)){var _,C=null===(_=n)||void 0===_?void 0:_.split("\\n");o=(0,le.jsx)(yi,Li(Li({},a),{},{children:C.map((function(e){return(0,le.jsx)(ye.ZP,{monospace:!0,preWrap:!0,children:(0,le.jsx)(mi(),{children:e})},e)}))}))}else if(u===Fn.Gi.TEXT_HTML)o=(0,le.jsx)(yi,Li(Li({},a),{},{children:(0,le.jsx)(ki,{children:(0,le.jsx)(ye.ZP,{dangerouslySetInnerHTML:{__html:n},monospace:!0})})}));else if(u===Fn.Gi.IMAGE_PNG)o=(0,le.jsx)("div",{style:{backgroundColor:"white"},children:(0,le.jsx)("img",{alt:"Image ".concat(l," from code output"),src:"data:image/png;base64, ".concat(n)})});else if(u===Fn.Gi.PROGRESS){var O=parseInt(n);B(O>90?90:O)}o&&p.push((0,le.jsx)("div",{children:o},"code-output-".concat(l,"-").concat(r)))}})),p.length>=1&&n.push(p)}})),m&&(null===x||void 0===x?void 0:x.type)===xe.qL.PYSPARK&&n.unshift([(0,le.jsx)(yi,{contained:!0,children:(0,le.jsx)(je.Z,{mt:1,children:U})},"progress_bar")]),{content:n,tableContent:t,testContent:i}}),[F,c,H,m,v,x,U,Z]),W=G.content,V=G.tableContent,Q=G.testContent,q=(null===R||void 0===R?void 0:R[1])||0,Y=q>30?" (30 out of ".concat(q," columns displayed)"):"",K=(0,d.useMemo)((function(){var e;if(H&&_){var n=_.uuid;if(Si.uuid===n)(null===V||void 0===V?void 0:V.length)>=1?e=V:m||(e=(0,le.jsx)(je.Z,{px:2,py:1,children:(0,le.jsx)(ye.ZP,{muted:!0,children:s?"Error, check logs.":"No preview to display yet, try running the block."})}));else if(Ei.uuid===n)(null===W||void 0===W?void 0:W.length)>=1?e=W:m||(e=(0,le.jsx)(je.Z,{px:2,py:1,children:(0,le.jsx)(ye.ZP,{muted:!0,children:s?"Error, check logs.":"No logs to display yet, try running the block."})}));else if(Pi.uuid===n){var r,o=null===t||void 0===t||null===(r=t.dbt)||void 0===r?void 0:r.sql;e=o?(0,le.jsx)(Ln.Z,{autoHeight:!0,language:Ee.SQL,padding:!0,readOnly:!0,value:o,width:"100%"}):null}else if(Ii.uuid===n){var l,c=null===t||void 0===t||null===(l=t.dbt)||void 0===l?void 0:l.lineage;e=c?(0,le.jsx)(gi.Z,{disabled:!0,enablePorts:!1,height:55*re.iI,pannable:Z,pipeline:Li(Li({},x),{},{blocks:c}),zoomable:Z}):null}}else e=W;return(0,le.jsxs)(le.Fragment,{children:[i,e]})}),[t,i,W,s,H,m,x,Z,_,V]);return i||f?(0,le.jsxs)(le.Fragment,{children:[c&&(0,le.jsxs)(ji,{addBottomPadding:m&&(null===x||void 0===x?void 0:x.type)===xe.qL.PYSPARK,blockType:P,dynamicBlock:a,dynamicChildBlock:u,executedAndIdle:T,hasError:s,selected:Z,children:[!r&&(null===Q||void 0===Q?void 0:Q.length)>=1&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(je.Z,{py:2,children:(0,le.jsx)(yi,{contained:!0,children:Q.map((function(e,n){var t=e.error,i=e.message,r=e.stacktrace;return(0,le.jsxs)(je.Z,{mt:n>=1?3:0,children:[(0,le.jsx)(ye.ZP,{monospace:!0,preWrap:!0,children:(0,le.jsx)(mi(),{children:"".concat(i).concat(t?" "+t:"")})}),null===r||void 0===r?void 0:r.map((function(e){return(0,le.jsx)(ye.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:(0,le.jsx)(mi(),{children:e})},e)}))]},i)}))})}),(0,le.jsx)(je.Z,{mb:s?2:0,children:(0,le.jsx)(bi.Z,{medium:!0})})]}),!r&&K]}),!c&&K,T&&!p&&(0,le.jsxs)(Zi,{blockType:P,dynamicBlock:a,dynamicChildBlock:u,hasError:s,selected:Z,children:[(0,le.jsx)(Ci,{}),(0,le.jsxs)(ve.Z,{justifyContent:"space-between",children:[C&&(0,le.jsx)(Dn.Z,{alignItems:"center",px:1,children:(0,le.jsx)(pe.Z,{basic:!0,iconOnly:!0,noPadding:!0,onClick:function(){return C(!r)},transparent:!0,children:r?(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(Ve._M,{muted:!0,size:2*re.iI}),"\xa0",(0,le.jsx)(ye.ZP,{default:!0,children:"Expand output"})]}):(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(Ve.Kh,{muted:!0,size:2*re.iI}),R&&(0,le.jsx)(je.Z,{ml:2,children:(0,le.jsx)(ye.ZP,{children:"".concat(R[0]," rows x ").concat(R[1]," columns").concat(Y)})})]})})}),(0,le.jsx)(_i,{children:(0,le.jsxs)(ve.Z,{alignItems:"center",fullWidth:!0,justifyContent:"flex-end",children:[(0,le.jsx)(tt.Z,{appearAbove:!0,appearBefore:!0,block:!0,label:j>=1&&k?"Last run at ".concat(new Date(k.valueOf()).toLocaleString()):s?"Block executed with errors":"Block executed successfully",size:null,widthFitContent:!0,children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[j>=1&&Number(y)>Number(k)&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsxs)(ye.ZP,{small:!0,children:[(Number(y)-Number(k))/1e3,"s"]}),(0,le.jsx)(je.Z,{mr:1})]}),!s&&(0,le.jsx)(Ve.Jr,{size:2*re.iI,success:!0}),s&&(0,le.jsx)(Re.Z,{danger:!0,size:2*re.iI,children:(0,le.jsx)(ye.ZP,{bold:!0,monospace:!0,small:!0,children:"!"})})]})}),!s&&!h.Qj.includes(P)&&(0,le.jsx)(je.Z,{pl:1,children:(0,le.jsx)(pe.Z,{afterIcon:(0,le.jsx)(Ve.M0,{muted:!0,size:1.75*re.iI}),basic:!0,noPadding:!0,onClick:function(){!function(e,n){var t=Ni(e);t.includes(n)||(0,Ce.t8)(Mi(e),[].concat((0,o.Z)(t),[n]))}(null===x||void 0===x?void 0:x.uuid,n.uuid),b(Me.DATA),O((function(e){return e.find((function(e){return e.uuid===n.uuid}))?e:(w(n),e.concat(n))}))},transparent:!0,children:(0,le.jsx)(ye.ZP,{default:!0,children:"Expand table"})})})]})})]})]})]}):null},Ui=t(40656),Hi=Ae.default.svg.withConfig({displayName:"Convert__SVGStyle",componentId:"sc-fmw0vr-0"})([""]),zi=function(e){var n=e.fill,t=e.opacity,i=e.size,r=void 0===i?Ui.C:i,o=e.style,l=e.viewBox,c=void 0===l?"0 0 12 12":l;return(0,le.jsxs)(Hi,{fill:n,height:r,opacity:t,style:o,viewBox:c,width:r,children:[(0,le.jsx)("path",{clipRule:"evenodd",d:"M2.5 1C1.67157 1 1 1.67157 1 2.5v.0625c0 .27614-.223858.5-.5.5s-.5-.22386-.5-.5V2.5C0 1.11929 1.11929 0 2.5 0h7C10.8807 0 12 1.11929 12 2.5v7c0 1.3807-1.1193 2.5-2.5 2.5h-7C1.11929 12 0 10.8807 0 9.5v-.0625c0-.27614.223858-.5.5-.5s.5.22386.5.5V9.5c0 .8284.67157 1.5 1.5 1.5h7c.8284 0 1.5-.6716 1.5-1.5v-7c0-.82843-.6716-1.5-1.5-1.5h-7z",fill:"url(#paint0_linear_1332_60037)",fillRule:"evenodd"}),(0,le.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.05806 3.55806c.24408-.24408.6398-.24408.88388 0l2 2c.24408.24408.24408.6398 0 .88388l-2 2c-.24408.24408-.6398.24408-.88388 0-.24408-.24408-.24408-.6398 0-.88388l.93306-.93306H1C.654822 6.625.375 6.34518.375 6s.279822-.625.625-.625h5.99112l-.93306-.93306c-.24408-.24408-.24408-.6398 0-.88388z",fill:"#fff"}),(0,le.jsx)("defs",{children:(0,le.jsxs)("linearGradient",{id:"paint0_linear_1332_60037",x1:"-.618557",y1:"-.000001",x2:"10.5709",y2:".83113",gradientUnits:"userSpaceOnUse",children:[(0,le.jsx)("stop",{stopColor:"#FFCC19"}),(0,le.jsx)("stop",{offset:".585938",stopColor:"#2ECDF7"}),(0,le.jsx)("stop",{offset:"1",stopColor:"#9E7BFF"})]})})]})},Gi=t(79749),Wi=t(54283);function Vi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Qi(e){for(var n=1;n=0;){var c;r=n[l-1],h.tf.SCRATCHPAD===(null===(c=r)||void 0===c?void 0:c.type)&&(r=null),l-=1}return r&&o.push(r.uuid),h.Ut.map((function(n){return{label:function(){return"Convert to ".concat((0,oe.wX)(h.V4[n]))},onClick:function(){return i({converted_from:e.uuid,type:n,upstream_blocks:o})},uuid:"".concat(t,"/convert_to/").concat(n)}}))},Ki=function(e,n,t,i,r,o){var l=e||{},c=l.configuration,a=l.downstream_blocks,u=l.has_callback,s=l.upstream_blocks,d=c||{},f=d.dynamic,p=d.reduce_output,m=h.tf.DBT===(null===e||void 0===e?void 0:e.type),v=[{label:function(){return m?"Execute and run upstream blocks":"Execute with upstream blocks"},onClick:function(){return n({block:e,runUpstream:!0})},uuid:"execute_upstream"}];m||v.push({label:function(){return"Execute block and run tests"},onClick:function(){return n({block:e,runTests:!0})},uuid:"run_tests"});var g=o||{},b=g.blocksMapping,x=g.fetchFileTree,j=g.fetchPipeline,y=g.savePipelineContent,k=g.updatePipeline,Z=[];(a.forEach((function(e){var n=null===b||void 0===b?void 0:b[e];n&&n.upstream_blocks.forEach((function(e){var n,t;null!==b&&void 0!==b&&null!==(n=b[e])&&void 0!==n&&null!==(t=n.configuration)&&void 0!==t&&t.dynamic&&Z.push(b[e])}))})),m&&v.unshift.apply(v,[{label:function(){return"Run model"},onClick:function(){return n({block:e,runSettings:{run_model:!0}})},tooltip:function(){return"Execute command dbt run."},uuid:"run_model"},{label:function(){return"Test model"},onClick:function(){return n({block:e,runSettings:{test_model:!0}})},tooltip:function(){return"Execute command dbt test."},uuid:"test_model"},{label:function(){return"Build model"},onClick:function(){return n({block:e,runSettings:{build_model:!0}})},tooltip:function(){return"Execute command dbt build."},uuid:"build_model"},{label:function(){return"Add upstream models"},onClick:function(){k({pipeline:{add_upstream_for_block_uuid:null===e||void 0===e?void 0:e.uuid}})},tooltip:function(){return"Add upstream models for this model to the pipeline."},uuid:"add_upstream_models"}]),m||!y||!f&&0!==Z.length||v.push({label:function(){return f?"Disable block as dynamic":"Set block as dynamic"},onClick:function(){return y({block:Qi(Qi({},e),{},{configuration:Qi(Qi({},c),{},{dynamic:!f})})})},uuid:"dynamic"}),b)&&((null===s||void 0===s?void 0:s.find((function(e){var n,t;return null===b||void 0===b||null===(n=b[e])||void 0===n||null===(t=n.configuration)||void 0===t?void 0:t.dynamic})))&&v.push({label:function(){return p?"Don\u2019t reduce output":"Reduce output"},onClick:function(){return y({block:Qi(Qi({},e),{},{configuration:Qi(Qi({},c),{},{reduce_output:!p})})})},uuid:"reduce_output"}));return v.push({label:function(){return u?"Remove callback":"Add callback"},onClick:function(){return y({block:Qi(Qi({},e),{},{has_callback:!u})}).then((function(){x(),j()}))},uuid:"has_callback"}),v.push({label:function(){return"Delete block"},onClick:function(){t(e),i(!1)},uuid:"delete_block"}),r?[v.pop()]:v};function Xi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Ji(e){for(var n=1;n=1){var j=sr(m,x.map((function(e){return{filterText:e,insertText:e,kind:t.languages.CompletionItemKind.Method,label:e,range:b}})));if(j.length>=1)return{suggestions:j}}var y=function(e,n,t){var i=(0,or.M4)(e,n);if(i=i.match(/([\w_]+)./)){var r=(0,or.S0)(e)[i[1]];if(r){var o=ar(r.split(" as ")[0].replace("from ","").replace("import ","").split(" ").reduce((function(e,n){return n.trim()?e.concat(n):e}),[]).join(".").split("."),t);if(null!==o&&void 0!==o&&o.functions)return null===o||void 0===o?void 0:o.functions}}return[]}(p,b,u);if((null===y||void 0===y?void 0:y.length)>=1){var k=sr(m,y.map((function(e){return{filterText:e,insertText:e,kind:t.languages.CompletionItemKind.Function,label:e,range:b}})));if(k.length>=1)return{suggestions:k}}if((null===a||void 0===a?void 0:a.length)>=1){var Z=new RegExp("\n@".concat(c));p.match(Z)&&f.push.apply(f,(0,o.Z)(sr(m,function(e,n,t){var i=t.block,r=t.blocks,o=i.upstream_blocks,l=(0,ln.HK)(r,(function(e){return e.uuid}));return o.map((function(t,i){var r=l[t].type,o=0===i?"output_0":"args[".concat(i-1,"]");return{label:"df ".concat(t," ").concat(r," block"),kind:e.languages.CompletionItemKind.Variable,documentation:"Variable for ".concat(r," ").concat(t," data."),insertText:o,range:n}}))}(t,b,e))))}if(m.word.match(/i|f/)){var _=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,r=(arguments.length>2?arguments[2]:void 0).word,c=new Set,a={};e.forEach((function(e){var n=e.group,t=e.id,i=e.imports;if([ir.MAGE_LIBRARY,ir.USER_LIBRARY].includes(n)){var r=t;r.match(/__init__.py/)&&(r=r.replace(/\/__init__.py/,"")),r=r.split(".py")[0].replaceAll("/","."),a[r]=e}var o=t.replace(".py","").replace("/__init__","").split("/");if(1===o.length)c.add("import ".concat(o[0]));else if(o.length>=2){var l=o.slice(0,o.length-1).join(".");c.add("from ".concat(l," import ").concat(o[o.length-1]))}i.forEach((function(e){return c.add(e)}))}));var u,s="i"===r,d="f"===r,f=s?"import":d?"from":"",p=(0,or.M4)(n,i);if(s&&p.match(/from/)&&(u=p.match(/from ([A-Za-z0-9_.]+) /)[1]),u&&a[u]){var h=a[u],m=h.classes,v=h.constants,g=h.files,b=h.functions,x=[];return[[v,t.languages.CompletionItemKind.Constant],[m,t.languages.CompletionItemKind.Class],[b,t.languages.CompletionItemKind.Function]].forEach((function(e){var n=(0,l.Z)(e,2),t=n[0],r=n[1];t.forEach((function(e){x.push({filterText:"import ".concat(e),insertText:"import ".concat(e),kind:r,label:e,range:i})}))})),g.forEach((function(e){var n=e.split("/"),r=n[n.length-1].split(".py")[0];x.push({filterText:"import ".concat(r),insertText:"import ".concat(r),kind:t.languages.CompletionItemKind.Variable,label:r,range:i})})),x}return(0,o.Z)(c).map((function(e){return{filterText:e,insertText:e,kind:t.languages.CompletionItemKind.File,label:e,range:i}})).concat(Object.entries(a).map((function(e){var n=(0,l.Z)(e,2),r=n[0];return n[1],{filterText:"".concat(f," ").concat(r),insertText:"".concat(f," ").concat(r," "),kind:t.languages.CompletionItemKind.File,label:"".concat(r),range:cr({},i)}})))}(n,p,m,t,b,e);f.push.apply(f,(0,o.Z)(_))}if(h.tf.CHART===c||h.tf.SCRATCHPAD===c){var C=[];if(h.tf.CHART===c?a.forEach((function(e,n){C.push({block:i.find((function(n){var t=n.uuid;return e===t})),matchIndex:0,variableName:"df_".concat(n+1)})})):h.tf.SCRATCHPAD===c&&function(e,n){return e.map((function(e){return{block:e,regex:new RegExp("([\\w_]+)[ ]*=[ ]*get_variable\\('".concat(n.uuid,"', '").concat(e.uuid,"', 'output_0'\\)"),"g")}}))}(i,r).forEach((function(e){var n=e.block,t=e.regex,i=p.matchAll(t);(0,o.Z)(i).forEach((function(e){var t=null===e||void 0===e?void 0:e.index,i=null===e||void 0===e?void 0:e[1];i&&C.push({block:n,matchIndex:t,variableName:i})}))})),C.length>=1){var O,w=null===(O=p.split("\n")[d.lineNumber-1])||void 0===O?void 0:O.slice(0,m.startColumn-1);if(w){var S=[];if(C.forEach((function(e){var n=e.block,i=e.matchIndex,r=e.variableName,o=new RegExp("".concat(r,"\\["));w.match(o)&&S.push({items:ur(t,b,n),matchIndex:i})})),S.length>=1)return{suggestions:sr(m,(0,ln.YC)(S,"matchIndex",{ascending:!1})[0].items)}}}1===g&&(h.tf.CHART===c?f.push.apply(f,(0,o.Z)(sr(m,a.map((function(e,n){var i="df_".concat(n+1);return{label:"".concat(i," ").concat(e," block"),kind:t.languages.CompletionItemKind.Snippet,insertText:i,range:b}}))))):h.tf.SCRATCHPAD===c&&f.push.apply(f,(0,o.Z)(sr(m,function(e,n,t){var i=t.block,r=t.blocks,o=t.pipeline;return r.reduce((function(t,r){var l=r.type,c=r.uuid;return i.uuid!==c&&[h.tf.DATA_LOADER,h.tf.TRANSFORMER].includes(l)?t.concat({label:"df ".concat(c," ").concat(l," block"),kind:e.languages.CompletionItemKind.Snippet,documentation:"Get the data from ".concat(l," block ").concat(c,"."),insertText:"from mage_ai.data_preparation.variable_manager import get_variable\n\n\ndf = get_variable('".concat(o.uuid,"', '").concat(c,"', 'output_0')\n"),range:n}):t}),[])}(t,b,e)))))}var E=new Set;i.concat({content:p}).forEach((function(e){var n=e.content;(0,o.Z)(n.matchAll("([A-Za-z_0-9]+)","g")).forEach((function(e){return E.add(e[1])}))}));var P=(0,o.Z)(E);if(P.length){var I=P.map((function(e){return{filterText:e,insertText:e,kind:t.languages.CompletionItemKind.Variable,label:e,range:b}}));f.push.apply(f,(0,o.Z)(sr(m,I)))}return{suggestions:f}}}}var fr=t(32365),pr=t(80636),hr=t(25958),mr=t(66653),vr=t(87323);function gr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function br(e){for(var n=1;n=1&&wn(n)}}),[b,zn,wn]);var Wn=(0,xi.Z)(G);(0,d.useEffect)((function(){"undefined"!==typeof G&&G.length!==(null===Wn||void 0===Wn?void 0:Wn.length)&&wn(G)}),[G,Wn,wn]);var Vn=(0,d.useMemo)((function(){var e=new Set;return null===k||void 0===k||k.forEach((function(n){var t=n.profiles;e=new Set([].concat((0,o.Z)(e),(0,o.Z)(t)))})),(0,o.Z)(e)}),[k]),Qn=(0,d.useMemo)((function(){return"".concat(null===K||void 0===K?void 0:K.uuid,"/").concat(null===b||void 0===b?void 0:b.uuid,"/codeCollapsed")}),[null===K||void 0===K?void 0:K.uuid,null===b||void 0===b?void 0:b.uuid]),qn=(0,d.useMemo)((function(){return"".concat(null===K||void 0===K?void 0:K.uuid,"/").concat(null===b||void 0===b?void 0:b.uuid,"/outputCollapsed")}),[null===K||void 0===K?void 0:K.uuid,null===b||void 0===b?void 0:b.uuid]);(0,d.useEffect)((function(){Fe((0,Ce.U2)(Qn,!1)),mn((0,Ce.U2)(qn,!1))}),[Qn,qn]);var Yn=(0,d.useRef)(null),Kn=(0,d.useMemo)((function(){return(0,ln.HK)(y,(function(e){return e.uuid}))}),[y]),Xn=(0,d.useMemo)((function(){return!!be.find((function(e){return e.upstream_blocks.includes(b.uuid)}))}),[b,be]),Jn=(0,d.useCallback)((function(e){var n=e||{},t=n.block,i=n.code,r=n.disableReset,o=n.runDownstream,l=n.runSettings,c=n.runUpstream,a=n.runTests;if(null===a||"undefined"===typeof a){var u=(t||{}).type;a=[h.tf.DATA_LOADER,h.tf.DATA_EXPORTER,h.tf.TRANSFORMER].includes(u)}X({block:t,code:i||He,runDownstream:o||Xn,runSettings:l,runTests:a||!1,runUpstream:c||!1}),r||(bn(1+Number(gn)),yn(null),mn(!1))}),[He,Xn,gn,X,bn,yn]),$n=!!J.find((function(e){return e.uuid===b.uuid}))||(null===On||void 0===On?void 0:On.length)>=1&&O!==Fn.uF.IDLE;(0,d.useEffect)((function(){$n&&_n(Number(new Date))}),[$n,_n]);var et=(0,xi.Z)(O);(0,d.useEffect)((function(){O===Fn.uF.IDLE&&O!==et&&yn(Number(new Date))}),[O,et,yn]);var it=(0,d.useCallback)((function(e){var n=e.editorRect,t=(n.height,n.top),i=e.position.lineNumber;if(null!==U&&void 0!==U&&U.current){var r=U.current.getBoundingClientRect().height,o=i*fr.aU;if(t+o>r){var l=U.current.scrollTop+(o-r+t);U.current.scrollTo(0,l)}else if(o+t=0?en.map((function(e){return{data:e,execution_state:Fn.uF.IDLE,type:Fn.Gi.TEXT_PLAIN}})):On.filter((function(e){return null===e||void 0===e?void 0:e.type}))}),[en,On]),ot=!!rt.find((function(e){return e.error})),lt=(0,$e.qn)(b.type,{blockColor:b.color,theme:_e}).accent,ct=(null===b||void 0===b||null===(i=b.upstream_blocks)||void 0===i?void 0:i.length)||0,at=(0,vr.cU)([b],y)[0],ut=at.dynamic,st=at.dynamicUpstreamBlock,dt=at.reduceOutput,ft=at.reduceOutputUpstreamBlock,pt=(0,d.useMemo)((function(){var e=[];ut&&e.push({title:"Dynamic",description:"This block will create N blocks for each of its downstream blocks."});var n=st&&!ft;return n&&(e.push({title:"Dynamic child",description:"This block is dynamically created by its upstream parent block that is dynamic."}),dt&&e.push({title:"Reduce output",description:"Reduce output from all dynamically created blocks into a single array output."})),{borderColorShareProps:{blockColor:null===b||void 0===b?void 0:b.color,blockType:null===b||void 0===b?void 0:b.type,dynamicBlock:ut,dynamicChildBlock:n,hasError:ot,selected:ee},tags:e}}),[null===b||void 0===b?void 0:b.color,null===b||void 0===b?void 0:b.type,ut,st,ot,dt,ft,ee]),ht=pt.borderColorShareProps,mt=pt.tags,vt=rt.length>=1,gt=(0,d.useCallback)((function(){ee||(te(!1),de(!0))}),[ee,te,de]),bt=dn.ZP.blocks.pipelines.detail(null===K||void 0===K?void 0:K.uuid,Ii.uuid===(null===En||void 0===En?void 0:En.uuid)||Pi.uuid===(null===En||void 0===En?void 0:En.uuid)?encodeURIComponent(null===b||void 0===b?void 0:b.uuid):null,{_format:"dbt"},{revalidateOnFocus:!0}),xt=bt.data,jt=bt.mutate,yt=(0,d.useMemo)((function(){var e;return(null===xt||void 0===xt||null===(e=xt.block)||void 0===e?void 0:e.metadata)||{}}),[xt]),Zt=(0,f.Db)(dn.ZP.blocks.pipelines.useUpdate(null===K||void 0===K?void 0:K.uuid,b.uuid),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(){on(!1),S(),w(),ze(He)},onErrorCallback:function(e){var n=e.error,t=n.errors,i=n.message;console.log(t,i)}})},onError:function(e){var n=(0,pn.qQ)(e).messages;nn(n)}}),_t=(0,l.Z)(Zt,1)[0],Ct="CodeBlock/".concat(b.uuid),Ot=(0,Gn.y)(),wt=Ot.registerOnKeyDown,St=Ot.unregisterOnKeyDown;(0,d.useEffect)((function(){return function(){St(Ct)}}),[St,Ct]),wt(Ct,(function(e,n,t){rn&&String(t[0])===String(Ze.Uq)&&String(t[1])!==String(Ze.zX)?b.uuid===an?e.target.blur():_t({block:br(br({},b),{},{name:an})}):ee&&((0,Oe.y)([Ze.zX,Ze.Uq],n)||(0,Oe.y)([Ze.PQ,Ze.Uq],n)?Jn({block:b}):(0,Oe.y)([Ze.XR,Ze.Uq],n)&&(e.preventDefault(),p({language:b.language,type:b.type,upstream_blocks:[b.uuid]}),Jn({block:b})))}),[p,b,rn,an,Jn,ee,_t]),(0,d.useEffect)((function(){var e;return Zn&&(e=setInterval((function(){return Qe(Number(new Date))}),1e3)),function(){return clearInterval(e)}}),[Zn]);var Et=(0,d.useCallback)((function(e){return(0,c.Z)({},h.tf.SCRATCHPAD,(0,o.Z)(Yi(e,y,"block_menu/scratchpad",p)).map((function(e){return br(br({},e),{},{onClick:function(){return $().then((function(){return e.onClick()}))}})})))[e.type]}),[p,y,$]),Pt=(0,d.useMemo)((function(){var e;return(null===b||void 0===b||null===(e=b.metadata)||void 0===e?void 0:e.dbt)||{project:null,projects:{}}}),[b]),It=(0,d.useMemo)((function(){return Pt.projects||{}}),[Pt]),Tt=(0,d.useMemo)((function(){return Pt.project||Ke.dbt_project_name}),[Ke,Pt]),Rt=(0,d.useMemo)((function(){return It[Tt]||{target:null,targets:[]}}),[Tt,It]),Dt=(0,d.useMemo)((function(){return(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(Ln.Z,{autoHeight:!0,autocompleteProviders:Ie,height:L,language:b.language,onChange:function(e){ze(e),null===Q||void 0===Q||Q(e)},onDidChangeCursorPosition:it,placeholder:h.tf.DBT===b.type&&h.t6.YAML===b.language?"e.g. --select ".concat(Tt||"project","/models --exclude ").concat(Tt||"project","/models/some_dir"):"Start typing here...",selected:ee,setSelected:de,setTextareaFocused:he,shortcuts:[function(e,n){return(0,pr.Q)(e,(function(){Jn({block:b,code:n.getValue()})}))}],textareaFocused:ge,value:He,width:"100%"}),Nn&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(bi.Z,{}),(0,le.jsxs)(je.Z,{mt:1,children:[(0,le.jsxs)($e.y9,{children:[(0,le.jsx)(ye.ZP,{small:!0,children:"Callback block: define @on_success or @on_failure callbacks for this block."}),(0,le.jsxs)(ye.ZP,{monospace:!0,muted:!0,small:!0,children:["kwargs",(0,le.jsx)(ye.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:" \u2192 "}),"global variables"]})]}),(0,le.jsx)(Ln.Z,{autoHeight:!0,autocompleteProviders:Ie,language:"python",onChange:function(e){Hn(e),null===V||void 0===V||V(e)},onDidChangeCursorPosition:it,placeholder:"Start typing here...",selected:ee,setSelected:de,setTextareaFocused:he,textareaFocused:ge,value:Un,width:"100%"})]})]})]})}),[Ie,b,Un,He,Tt,Nn,L,Q,it,Jn,ee,ze,de,he,ge]);(0,d.useEffect)((function(){Te({python:dr({autocompleteItems:g,block:b,blocks:y,pipeline:K})})}),[g,b,y,K]);var Mt=(0,d.useMemo)((function(){return Tn?(0,le.jsx)(je.Z,{py:1,children:(0,le.jsx)(pi.Z,{onClickTab:function(e){Pn(e),Ii.uuid!==e.uuid&&Pi.uuid!==e.uuid||jt()},selectedTabUUID:null===En||void 0===En?void 0:En.uuid,small:!0,tabs:Ti})}):null}),[jt,Tn,En]),Nt=(0,d.useMemo)((function(){return(0,le.jsx)(Fi,br(br({},ht),{},{block:b,blockMetadata:yt,buttonTabs:Mt,collapsed:hn,hasOutput:vt,isInProgress:$n,mainContainerWidth:H,messages:rt,openSidekickView:Y,pipeline:K,runCount:gn,runEndTime:jn,runStartTime:Zn,selected:ee,selectedTab:En,setCollapsed:function(e){mn((function(){return(0,Ce.t8)(qn,e),e}))},setOutputBlocks:ue,setSelectedOutputBlock:fe,setSelectedTab:Pn}))}),[b,yt,ht,Mt,vt,$n,H,rt,Y,hn,qn,K,gn,jn,Zn,ee,En,ue,mn,fe]),Bt=(0,d.useCallback)((function(){return Ne(!1)}),[]),Lt=(0,d.useCallback)((function(e){Xe((function(n){var t=br(br({},n),e);return(t.data_provider&&t.data_provider_profile||t.dbt_profile_target||t.dbt_project_name||t.limit)&&$({block:{configuration:t,uuid:b.uuid}}),t}))}),[b,$]),Ft=Ut.BIGQUERY===Ke.data_provider||Ut.SNOWFLAKE===Ke.data_provider,Ht=(0,d.useMemo)((function(){return(null===y||void 0===y?void 0:y.length)||0}),[y]);return(0,le.jsxs)("div",{ref:n,style:{position:"relative",zIndex:x===m?Ht+9:null},children:[(0,le.jsx)($e.nz,br(br({},ht),{},{onClick:function(){return gt()},zIndex:Ht+1-(x||0),children:(0,le.jsxs)(ve.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,le.jsxs)(Dn.Z,{alignItems:"center",flex:1,children:[(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(fi,{children:h.dO[b.language]}),(0,le.jsx)(je.Z,{mr:1}),(0,le.jsx)(Re.Z,{color:lt,size:1.5*re.iI,square:!0}),(0,le.jsx)(je.Z,{mr:1}),(0,le.jsx)(At.Z,{items:Et(b),onClickCallback:Bt,onClickOutside:Bt,open:Me,parentRef:Yn,uuid:"CodeBlock/block_menu",children:(0,le.jsx)(ye.ZP,{color:lt,monospace:!0,children:null===(r=Tn?h.tf.DBT:h.V4[b.type])||void 0===r?void 0:r.toUpperCase()})}),h.tf.SCRATCHPAD===b.type&&(0,le.jsxs)(le.Fragment,{children:["\xa0",(0,le.jsx)(pe.Z,{basic:!0,iconOnly:!0,noPadding:!0,onClick:function(){return Ne(!0)},transparent:!0,children:(0,le.jsx)(Ve.K5,{muted:!0})})]}),(0,le.jsx)(je.Z,{mr:1})]}),(0,le.jsx)(je.Z,{mr:re.cd}),(0,le.jsx)(Ve.iU,{size:1.5*re.iI}),(0,le.jsx)(je.Z,{mr:1}),(0,le.jsxs)(ve.Z,{alignItems:"center",children:[Tn&&h.t6.YAML!==b.language&&(0,le.jsx)(ye.ZP,{monospace:!0,muted:!0,children:(0,hr.$)(b,{fullPath:!0})}),(!Tn||h.t6.YAML===b.language)&&(0,le.jsx)(kt,{bold:!1,inputValue:an,monospace:!0,muted:!0,notRequired:!0,onBlur:function(){return setTimeout((function(){te(!1),on(!1)}),300)},onChange:function(e){un(e.target.value),e.preventDefault()},onClick:function(){te(!0),on(!0)},onFocus:function(){te(!0),on(!0)},stacked:!0,value:!rn&&b.uuid}),rn&&!Tn&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(je.Z,{ml:1}),(0,le.jsx)(nt.Z,{onClick:function(){return $({block:{name:an,uuid:b.uuid}}).then((function(){on(!1),S(),w()}))},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Update name"})]})]}),(0,le.jsx)(je.Z,{mr:2}),!h.iZ.includes(b.type)&&(0,le.jsx)(tt.Z,{appearBefore:!0,block:!0,label:"\n ".concat((0,oe._6)("parent block",ct),". ").concat(0===ct?"Click to select 1 or more blocks to depend on.":"Edit parent blocks.","\n "),size:null,widthFitContent:ct>=1,children:(0,le.jsx)(pe.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e;de(!0),ce({upstreamBlocks:{block:b,values:null===(e=b.upstream_blocks)||void 0===e?void 0:e.map((function(e){return{uuid:e}}))}})},children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsxs)(ye.ZP,{monospace:ct>=1,small:ct>=1,underline:0===ct,children:[0===ct&&"Edit parent blocks",ct>=1&&(0,oe._6)("parent block",ct)]}),(0,le.jsx)(je.Z,{mr:1}),0===ct&&(0,le.jsx)(Ve.Jj,{size:3*re.iI}),ct>=1&&(0,le.jsx)(Ve.eV,{size:3*re.iI})]})})})]}),(0,le.jsx)(er,{addNewBlock:p,addWidget:v,block:b,blocks:y,deleteBlock:C,executionState:O,fetchFileTree:w,fetchPipeline:S,interruptKernel:F,pipeline:K,runBlock:Jn,savePipelineContent:$,setErrors:ae,setOutputCollapsed:mn,visible:ee||$n}),(0,le.jsx)(je.Z,{px:1,children:(0,le.jsx)(pe.Z,{basic:!0,iconOnly:!0,noPadding:!0,onClick:function(){Fe((function(e){return(0,Ce.t8)(Qn,!e),!e})),Le||mn((function(){return(0,Ce.t8)(qn,!0),!0}))},transparent:!0,children:Le?(0,le.jsx)(Ve._M,{muted:!0,size:2*re.iI}):(0,le.jsx)(Ve.Kh,{muted:!0,size:2*re.iI})})})]})})),(0,le.jsxs)($e.Nk,{onClick:function(){return gt()},children:[(0,le.jsxs)($e.jv,br(br({},ht),{},{className:ee&&ge?"selected":null,hasOutput:!!Mt||vt,children:[h.tf.DBT===b.type&&!Le&&(0,le.jsxs)($e.y9,{children:[(0,le.jsxs)(ve.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,le.jsxs)(Dn.Z,{alignItems:"center",children:[h.t6.YAML===b.language&&(0,le.jsxs)(rr.Z,{compact:!0,monospace:!0,onBlur:function(){return setTimeout((function(){te(!1)}),300)},onChange:function(e){var n;Lt((n={},(0,c.Z)(n,D,""),(0,c.Z)(n,R,e.target.value),n)),e.preventDefault()},onClick:mr.j,onFocus:function(){te(!0)},placeholder:"Project",small:!0,value:Ke.dbt_project_name||"",children:[(0,le.jsx)("option",{value:""}),Object.keys(It||{}).map((function(e){return(0,le.jsx)("option",{value:e,children:e},e)}))]}),h.t6.YAML!==b.language&&(0,le.jsx)(ye.ZP,{monospace:!0,small:!0,children:Tt}),(0,le.jsx)(je.Z,{mr:2}),(0,le.jsx)(ye.ZP,{monospace:!0,muted:!0,small:!0,children:"Target"}),(0,le.jsx)("span",{children:"\xa0"}),(0,le.jsxs)(rr.Z,{compact:!0,disabled:!Tt,monospace:!0,onBlur:function(){return setTimeout((function(){te(!1)}),300)},onChange:function(e){Lt((0,c.Z)({},D,e.target.value)),e.preventDefault()},onClick:mr.j,onFocus:function(){te(!0)},placeholder:Tt?An?null===Rt||void 0===Rt?void 0:Rt.target:null:"Select project first",small:!0,value:Ke.dbt_profile_target||"",children:[(0,le.jsx)("option",{value:""}),null===(a=Rt.targets)||void 0===a?void 0:a.map((function(e){return(0,le.jsx)("option",{value:e,children:e},e)}))]})]}),h.t6.YAML!==b.language&&(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(tt.Z,{appearBefore:!0,block:!0,description:(0,le.jsxs)(ye.ZP,{default:!0,inline:!0,children:["Limit the number of results that are returned when running this block in the notebook.",(0,le.jsx)("br",{}),"This limit won\u2019t affect the number of results returned when running the pipeline end-to-end."]}),size:null,widthFitContent:!0,children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(Ve.kI,{muted:!0}),(0,le.jsx)("span",{children:"\xa0"}),(0,le.jsx)(ye.ZP,{monospace:!0,muted:!0,small:!0,children:"Sample limit"}),(0,le.jsx)("span",{children:"\xa0"})]})}),(0,le.jsx)(ke.Z,{compact:!0,monospace:!0,onBlur:function(){return setTimeout((function(){te(!1)}),300)},onChange:function(e){Lt((0,c.Z)({},N,e.target.value)),e.preventDefault()},onClick:mr.j,onFocus:function(){te(!0)},small:!0,type:"number",value:Ke.limit||"",width:10*re.iI}),(0,le.jsx)(je.Z,{mr:5})]})]}),h.t6.YAML===b.language&&(0,le.jsx)(je.Z,{mt:1,children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsxs)(Dn.Z,{flex:1,children:[(0,le.jsxs)(ye.ZP,{monospace:!0,default:!0,small:!0,children:["dbt run ",(0,le.jsx)(ye.ZP,{inline:!0,monospace:!0,small:!0,children:"[type your --select and --exclude syntax below]"})]}),(0,le.jsx)(je.Z,{mr:1}),(0,le.jsxs)(ye.ZP,{monospace:!0,muted:!0,small:!0,children:["(paths start from ",(null===Ke||void 0===Ke?void 0:Ke.dbt_project_name)||"project"," folder)"]})]}),(0,le.jsx)(je.Z,{mr:1}),(0,le.jsx)(ye.ZP,{muted:!0,small:!0,children:(0,le.jsx)(nt.Z,{href:"https://docs.getdbt.com/reference/node-selection/syntax#examples",openNewWindow:!0,small:!0,children:"Examples"})}),(0,le.jsx)(je.Z,{mr:5})]})})]}),An&&!Le&&h.tf.DBT!==b.type&&(0,le.jsx)($e.y9,{children:(0,le.jsxs)(ve.Z,{justifyContent:"space-between",children:[(0,le.jsxs)(ve.Z,{children:[(0,le.jsxs)(rr.Z,{compact:!0,label:"Connection",onChange:function(e){return Lt((0,c.Z)({},E,e.target.value))},onClick:mr.j,small:!0,value:Ke.data_provider,children:[(0,le.jsx)("option",{value:""}),null===k||void 0===k?void 0:k.map((function(e){var n=e.id,t=e.value;return(0,le.jsx)("option",{value:t,children:n},n)}))]}),(0,le.jsx)(je.Z,{mr:1}),(0,le.jsxs)(rr.Z,{compact:!0,label:"Profile",onChange:function(e){return Lt((0,c.Z)({},I,e.target.value))},onClick:mr.j,small:!0,value:Ke.data_provider_profile,children:[(0,le.jsx)("option",{value:""}),null===Vn||void 0===Vn?void 0:Vn.map((function(e){return(0,le.jsx)("option",{value:e,children:e},e)}))]}),(0,le.jsx)(je.Z,{mr:1}),(0,le.jsx)(ve.Z,{alignItems:"center",children:(0,le.jsx)(tt.Z,{block:!0,description:(0,le.jsxs)(ye.ZP,{default:!0,inline:!0,children:["If checked, you\u2019ll have to write your own custom",(0,le.jsx)("br",{}),"CREATE TABLE commands and INSERT commands.",(0,le.jsx)("br",{}),"Separate your commands using a semi-colon: ",(0,le.jsx)(ye.ZP,{default:!0,inline:!0,monospace:!0,children:";"})]}),size:null,widthFitContent:!0,children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(me.Z,{checked:Ke.use_raw_sql,label:(0,le.jsx)(ye.ZP,{muted:!0,small:!0,children:"Use raw SQL"}),onClick:function(e){(0,mr.j)(e),Lt((0,c.Z)({},B,!Ke.use_raw_sql))}}),(0,le.jsx)("span",{children:"\xa0"}),(0,le.jsx)(Ve.kI,{muted:!0})]})})}),!Ke.use_raw_sql&&(0,le.jsxs)(le.Fragment,{children:[Ft&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(je.Z,{mr:1}),(0,le.jsx)(ve.Z,{alignItems:"center",children:(0,le.jsx)(ke.Z,{compact:!0,label:"Database",monospace:!0,onBlur:function(){return setTimeout((function(){te(!1)}),300)},onChange:function(e){Lt((0,c.Z)({},P,e.target.value)),e.preventDefault()},onClick:mr.j,onFocus:function(){te(!0)},small:!0,value:Ke.data_provider_database,width:10*re.iI})})]}),(0,le.jsx)(je.Z,{mr:1}),Ke.data_provider!==nr.MYSQL&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(tt.Z,{block:!0,description:(0,le.jsxs)(ye.ZP,{default:!0,inline:!0,children:["Schema that is used when creating a table and inserting values.",(0,le.jsx)("br",{}),"This field is required."]}),size:null,widthFitContent:!0,children:(0,le.jsx)(ve.Z,{alignItems:"center",children:(0,le.jsx)(ke.Z,{compact:!0,label:"Schema",monospace:!0,onBlur:function(){return setTimeout((function(){te(!1)}),300)},onChange:function(e){Lt((0,c.Z)({},T,e.target.value)),e.preventDefault()},onClick:mr.j,onFocus:function(){te(!0)},small:!0,value:Ke.data_provider_schema,width:10*re.iI})})}),(0,le.jsx)(je.Z,{mr:1})]}),(0,le.jsx)(tt.Z,{block:!0,description:(0,le.jsxs)(ye.ZP,{default:!0,inline:!0,children:["This value will be used as the table name.",(0,le.jsx)("br",{}),"If blank, the default table name will be:",(0,le.jsx)("br",{}),(0,le.jsxs)(ye.ZP,{inline:!0,monospace:!0,children:[null===K||void 0===K?void 0:K.uuid,"_",null===b||void 0===b?void 0:b.uuid]}),(0,le.jsx)("br",{}),"This field is optional."]}),size:null,widthFitContent:!0,children:(0,le.jsx)(ve.Z,{alignItems:"center",children:(0,le.jsx)(ke.Z,{compact:!0,label:"Table (optional)",monospace:!0,onBlur:function(){return setTimeout((function(){te(!1)}),300)},onChange:function(e){Lt((0,c.Z)({},A,e.target.value)),e.preventDefault()},onClick:mr.j,onFocus:function(){te(!0)},small:!0,value:Ke.data_provider_table,width:20*re.iI})})})]})]}),!Ke.use_raw_sql&&(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(tt.Z,{appearBefore:!0,block:!0,description:(0,le.jsxs)(ye.ZP,{default:!0,inline:!0,children:["How do you want to handle existing data with the same",Ft?" database,":""," schema, and table name?",(0,le.jsx)("br",{}),(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,monospace:!0,children:"Append"}),": add rows to the existing table.",(0,le.jsx)("br",{}),(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,monospace:!0,children:"Replace"}),": delete the existing data.",(0,le.jsx)("br",{}),(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,monospace:!0,children:"Fail"}),": raise an error during execution."]}),size:null,widthFitContent:!0,children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(Ve.kI,{muted:!0}),(0,le.jsx)("span",{children:"\xa0"}),(0,le.jsx)(ye.ZP,{monospace:!0,muted:!0,small:!0,children:"Write policy:"}),(0,le.jsx)("span",{children:"\xa0"})]})}),(0,le.jsxs)(rr.Z,{compact:!0,label:"strategy",onChange:function(e){return Lt((0,c.Z)({},M,e.target.value))},onClick:mr.j,small:!0,value:Ke.export_write_policy,children:[(0,le.jsx)("option",{value:""}),null===tr||void 0===tr?void 0:tr.map((function(e){return(0,le.jsx)("option",{value:e,children:(0,oe.kC)(e)},e)}))]}),(0,le.jsx)(je.Z,{mr:5})]})]})}),mt.length>=1&&(0,le.jsx)($e.y9,{normalPadding:!0,children:(0,le.jsx)(ve.Z,{children:mt.map((function(e,n){var t=e.description,i=e.title;return(0,le.jsx)(je.Z,{ml:n>=1?1:0,children:(0,le.jsx)(tt.Z,{block:!0,description:t,size:null,widthFitContent:!0,children:(0,le.jsx)(fi,{children:i})})},i)}))})}),b.upstream_blocks.length>=1&&!Le&&h.f2.includes(b.type)&&!In&&(0,le.jsxs)($e.y9,{children:[(0,le.jsx)(je.Z,{mr:5,children:(0,le.jsxs)(ye.ZP,{small:!0,children:[!An&&"Positional arguments for ".concat(Rn?"":"decorated ","function:"),An&&'The interpolated tables below are available in queries from upstream blocks. For example, you can use the query "SELECT * FROM {{ df_1 }}" to insert all the rows from an upstream block into the designated database table.']})}),(0,le.jsxs)(je.Z,{mt:1,children:[!An&&!Rn&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsxs)(ye.ZP,{monospace:!0,muted:!0,small:!0,children:[h.tf.DATA_EXPORTER===b.type&&"@data_exporter",h.tf.DATA_LOADER===b.type&&"@data_loader",h.tf.TRANSFORMER===b.type&&"@transformer",h.tf.CUSTOM===b.type&&"@custom"]}),(0,le.jsxs)(ye.ZP,{monospace:!0,muted:!0,small:!0,children:["def ",(h.tf.DATA_EXPORTER===b.type?"export_data":h.tf.DATA_LOADER===b.type&&"load_data")||h.tf.TRANSFORMER===b.type&&"transform"||h.tf.CUSTOM===b.type&&"transform_custom","(",b.upstream_blocks.map((function(e,n){return n>=1?"data_".concat(n+1):"data"})).join(", "),"):"]})]}),Rn&&(0,le.jsx)(le.Fragment,{children:(0,le.jsxs)(ye.ZP,{monospace:!0,muted:!0,small:!0,children:[h.tf.DATA_EXPORTER===b.type?"export_data":h.tf.TRANSFORMER===b.type&&"transform","\xa0\u2190 function(",b.upstream_blocks.map((function(e,n){return"df_".concat(n+1)})).join(", "),"):"]})}),b.upstream_blocks.map((function(e,n){var t=Kn[e],i=(0,$e.qn)(null===t||void 0===t?void 0:t.type,{blockColor:null===t||void 0===t?void 0:t.color,theme:_e}).accent,r="{{ df_".concat(n+1," }}");return(0,le.jsxs)("div",{children:[!An&&!Rn&&(0,le.jsxs)(ye.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:["\xa0\xa0\xa0\xa0data",n>=1?"_".concat(n+1):null]}),An&&(0,le.jsx)(ye.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:r}),Rn&&(0,le.jsxs)(ye.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:["\xa0\xa0\xa0\xa0","df".concat(n+1)]})," ",(0,le.jsx)(ye.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"\u2192"})," ",(0,le.jsx)(nt.Z,{color:i,onClick:function(){var e,n,i=null===j||void 0===j||null===(e=j.current)||void 0===e?void 0:e["".concat(null===t||void 0===t?void 0:t.type,"s/").concat(null===t||void 0===t?void 0:t.uuid,".py")];null===i||void 0===i||null===(n=i.current)||void 0===n||n.scrollIntoView()},preventDefault:!0,small:!0,children:(0,le.jsx)(ye.ZP,{color:i,inline:!0,monospace:!0,small:!0,children:e})})]},e)}))]})]}),!(null!==b&&void 0!==b&&b.error)&&(0,le.jsx)(le.Fragment,{children:Le?(0,le.jsx)(je.Z,{px:1,children:(0,le.jsxs)(ye.ZP,{monospace:!0,muted:!0,children:["(",(0,oe._6)("line",null===He||void 0===He?void 0:He.split(/\r\n|\r|\n/).length)," collapsed)"]})}):Dt}),(null===b||void 0===b?void 0:b.error)&&(0,le.jsxs)(je.Z,{p:re.cd,children:[(0,le.jsx)(ye.ZP,{bold:!0,danger:!0,children:null===b||void 0===b||null===(u=b.error)||void 0===u?void 0:u.error}),(0,le.jsx)(ye.ZP,{muted:!0,children:null===b||void 0===b||null===(s=b.error)||void 0===s?void 0:s.message})]}),$n&&We&&We>Zn&&(0,le.jsx)($e.HC,{children:(0,le.jsxs)(ye.ZP,{muted:!0,children:["".concat(Math.round((We-Zn)/1e3)),"s"]})})]})),Nt]}),!W&&(0,le.jsxs)($e.gE,{additionalZIndex:Ht-x,onMouseEnter:function(){return Ee(!0)},onMouseLeave:function(){Ee(!1),ne(null)},children:[Se&&(0,le.jsx)(je.Z,{mt:2,children:(0,le.jsx)(oi,{addNewBlock:function(e){var n=e.content,t=e.configuration,i=qi(b,e);return[h.tf.DATA_LOADER,h.tf.TRANSFORMER].includes(b.type)&&h.tf.SCRATCHPAD===e.type&&(n="from mage_ai.data_preparation.variable_manager import get_variable\n\n\ndf = get_variable('".concat(K.uuid,"', '").concat(b.uuid,"', 'output_0')")),n=ti(e,n),h.t6.SQL===b.language&&(n=ni(n),t=br(br({},(0,fn.GL)(b.configuration,[E,P,I,T,M])),t)),p(br(br({},e),{},{configuration:t,content:n,upstream_blocks:i}))},blockIdx:x,compact:!0,hideCustom:In,hideDbt:In,onClickAddSingleDBTModel:q,pipeline:K,setAddNewBlockMenuOpenIdx:ne,setCreatingNewDBTModel:ie,setRecsWindowOpenBlockIdx:se})}),(0,le.jsx)($e.t1,{className:"block-divider-inner"})]})]})}var jr=d.forwardRef(xr),yr=t(90880),kr=6.25*re.iI,Zr=(re.iI,100*re.iI),_r=Ae.default.div.withConfig({displayName:"indexstyle__WindowContainerStyle",componentId:"sc-g0cszf-0"})(["border-radius:","px;width:100%;max-width:","px;z-index:101;position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);",""],xn.n_,Zr,(function(e){return"\n box-shadow: ".concat((e.theme||bn.Z).shadow.window,";\n background-color: ").concat((e.theme||bn.Z).background.panel,";\n ")})),Cr=(0,Ae.css)(["display:flex;align-items:center;justify-content:space-between;height:","px;padding:","px ","px;",""],kr,re.iI,re.cd*re.iI,(function(e){return"\n background-color: ".concat((e.theme||bn.Z).background.output,";\n ")})),Or=Ae.default.div.withConfig({displayName:"indexstyle__WindowHeaderStyle",componentId:"sc-g0cszf-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;",""],Cr,xn.n_,xn.n_,(function(e){return"\n border-bottom: ".concat(xn.YF,"px ").concat(xn.M8," ").concat((e.theme||bn.Z).borders.medium,";\n ")})),wr=Ae.default.div.withConfig({displayName:"indexstyle__WindowContentStyle",componentId:"sc-g0cszf-2"})(["overflow:auto;padding:","px 0;"," "," "," ",""],re.iI,rt.w5,(0,yr.eR)(),(function(e){return e.minMaxHeight&&"\n max-height: ".concat(7*re.iI,"px;\n ")}),(function(e){return!e.minMaxHeight&&"\n max-height: calc(100vh - ".concat(6.5*kr,"px);\n ")})),Sr=Ae.default.div.withConfig({displayName:"indexstyle__WindowFooterStyle",componentId:"sc-g0cszf-3"})([""," justify-content:flex-end;border-bottom-left-radius:","px;border-bottom-right-radius:","px;",""],Cr,xn.n_,xn.n_,(function(e){return"\n border-top: ".concat(xn.YF,"px ").concat(xn.M8," ").concat((e.theme||bn.Z).borders.medium,";\n ")})),Er=Ae.default.div.withConfig({displayName:"indexstyle__InputRowStyle",componentId:"sc-g0cszf-4"})(["padding:","px ","px;",""],.75*re.iI,2*re.iI,(function(e){return"\n border-bottom: ".concat(xn.YF,"px ").concat(xn.M8," ").concat((e.theme||bn.Z).borders.medium,";\n ")}));function Pr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Ir(e){for(var n=1;n=1&&i.push(Ir(Ir({},e),{},{children:t}))})),i}),[r]),g=(0,d.useMemo)((function(){return(0,ln.HK)(n,(function(e){return e.configuration.file_path}))}),[n]);return(0,le.jsxs)(_r,{children:[(0,le.jsxs)(Or,{children:[(0,le.jsx)(Dn.Z,{alignItems:"center",children:(0,le.jsx)(ye.ZP,{disableWordBreak:!0,monospace:!0,children:t?"Create new DBT model":"Select DBT model file"})}),(0,le.jsx)(pe.Z,{iconOnly:!0,onClick:o,children:(0,le.jsx)(Ve.x8,{muted:!0})})]}),t&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(Er,{children:(0,le.jsx)(kt,{inputValue:i,label:"Model name (cannot be changed):",labelColor:bn.Z.accent.dbt,minWidth:38*re.iI,notRequired:!0,onBlur:function(){s(!1)},onChange:function(e){c(e.target.value),e.preventDefault()},onClick:function(){s(!0)},onFocus:function(){s(!0)},placeholder:"Enter name",required:!0,stacked:!0,value:!u&&i})}),(0,le.jsxs)(Er,{children:[(0,le.jsx)(ye.ZP,{bold:!0,color:bn.Z.accent.dbt,children:"Select folder location:"}),(0,le.jsx)(ye.ZP,{bold:!0,muted:!p,children:p?"dbt/".concat(p):"Choose folder below"})]})]}),(0,le.jsx)(wr,{children:(0,le.jsx)(Rn,{allowSelectingFolders:t,disableContextMenu:!0,files:v,isFileDisabled:function(e,n){return t?!n||(null===n||void 0===n?void 0:n.some((function(e){return"models"===(null===e||void 0===e?void 0:e.name)}))):!!g[e]||!(null!==n&&void 0!==n&&n.length)&&!e.match(new RegExp(".".concat(h.t6.SQL,"$")))},openFile:l,selectFile:m,uncollapsed:!0,useRootFolder:!0})}),t&&(0,le.jsx)(Sr,{children:(0,le.jsx)(pe.Z,{backgroundColor:i&&p?bn.Z.accent.dbt:bn.Z.monotone.grey500,disabled:!i||!p,onClick:function(){return l(p)},padding:"6px 8px",children:"Create model"})})]})},Nr=t(4804),Br=t(65730),Lr=t(87372);!function(e){e.FULL_TABLE="FULL_TABLE",e.INCREMENTAL="INCREMENTAL",e.LOG_BASED="LOG_BASED"}(Ar||(Ar={})),function(e){e.IGNORE="IGNORE",e.UPDATE="UPDATE"}(Rr||(Rr={})),function(e){e.DATE_TIME="date-time",e.UUID="uuid"}(Dr||(Dr={}));var Fr,Ur="datetime",Hr=(Tr={},(0,c.Z)(Tr,Dr.DATE_TIME,Ur),(0,c.Z)(Tr,Dr.UUID,Dr.UUID),Tr);!function(e){e.ARRAY="array",e.BOOLEAN="boolean",e.INTEGER="integer",e.NULL="null",e.NUMBER="number",e.OBJECT="object",e.STRING="string"}(Fr||(Fr={}));var zr,Gr,Wr,Vr,Qr,qr=[Fr.ARRAY,Fr.BOOLEAN,Ur,Fr.INTEGER,Fr.NULL,Fr.NUMBER,Fr.OBJECT,Fr.STRING,Dr.UUID];!function(e){e.PROPERTIES="properties"}(zr||(zr={})),function(e){e.AUTOMATIC="automatic",e.AVAILABLE="available",e.UNSUPPORTED="unsupported"}(Gr||(Gr={})),function(e){e.FORCED_REPLICATION_METHOD="forced-replication-method",e.KEY_PROPERTIES="table-key-properties",e.REPLICATION_KEYS="valid-replication-keys",e.SCHEMA_NAME="schema-name"}(Wr||(Wr={})),function(e){e.AMPLITUDE="amplitude",e.BIGQUERY="bigquery",e.CHARGEBEE="chargebee",e.GOOGLE_SEARCH_CONSOLE="google_search_console",e.GOOGLE_SHEETS="google_sheets",e.INTERCOM="intercom",e.MYSQL="mysql",e.POSTGRESQL="postgresql",e.REDSHIFT="redshift",e.SALESFORCE="salesforce",e.STRIPE="stripe"}(Vr||(Vr={})),function(e){e.BIGQUERY="bigquery",e.DELTA_LAKE_S3="delta_lake_s3",e.MYSQL="mysql",e.POSTGRESQL="postgresql",e.SNOWFLAKE="snowflake"}(Qr||(Qr={}));var Yr=Ae.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||bn.Z.background).popup,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||bn.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((re.iI+ci.Al)/2,"px;\n height: ").concat(1.5*re.iI+ci.Al,"px;\n padding: ").concat(re.iI/1.5,"px ").concat(1.25*re.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((re.iI/2+ci.Al)/2,"px;\n height: ").concat(ci.Al+re.iI/2+2,"px;\n padding: ").concat(re.iI/4,"px ").concat(re.iI,"px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||bn.Z.content).muted,";\n ")})),Kr=function(e){var n=e.border,t=e.children,i=e.label,r=e.onClick,o=e.primary,l=e.small;return(0,le.jsx)(Yr,{border:n,primary:o,small:l,children:(0,le.jsx)(pe.Z,{basic:!0,noPadding:!0,noBackground:!0,onClick:r,transparent:!0,children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[t,i&&(0,le.jsx)(ye.ZP,{small:l,children:i}),(0,le.jsx)(je.Z,{mr:1}),(0,le.jsx)(Ve.x8,{default:o,muted:!o,size:l?re.iI:1.25*re.iI})]})})})},Xr=t(70902),Jr=t(85307);function $r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function eo(e){for(var n=1;n0&&((0,fn.Qr)(e)||!(0,fn.Xy)(n,e))&&z((function(e){return eo(eo({},e),{},(0,c.Z)({},O,n))}))}),[null===b||void 0===b?void 0:b.length,n,O]);var W=(0,d.useMemo)((function(){return(0,ln.HK)(k,(function(e){return e.breadcrumb.join("/")}))}),[k]),V=(0,d.useMemo)((function(){var e;return null===(e=(0,ln.sE)(k,(function(e){return 0===e.breadcrumb.length})))||void 0===e?void 0:e.metadata}),[k]),Q=(0,d.useMemo)((function(){return V[Wr.KEY_PROPERTIES]||[]}),[V]),q=(0,d.useMemo)((function(){return V[Wr.REPLICATION_KEYS]||[]}),[V]),Y=to.includes(t),K=s.length>1,X=(0,d.useCallback)((function(e){var n=eo({},null===H||void 0===H?void 0:H[O]);n.hasOwnProperty(e)&&delete n[e],z((function(e){return eo(eo({},e),{},(0,c.Z)({},O,eo({},n)))})),p({block:{bookmark_values:n,destination_table:P,tap_stream_id:O}})}),[H,P,O,p]),J=(0,d.useMemo)((function(){var e=[],n=[],i=(0,ln.mr)(Object.entries(C)).map((function(i,r){var o=(0,l.Z)(i,2),c=o[0],a=o[1],u=a.anyOf,s=void 0===u?[]:u,d=a.format,p=a.type,g=void 0===p?[]:p,x=new Set(Array.isArray(g)?g:[g]),j=new Set(x);s.forEach((function(e){var n=e.format,t=(e.items,e.type);Array.isArray(t)?t.forEach((function(e){x.add(e),j.add(e)})):(x.add(t),j.add(t),n&&j.add(n))}));var k=Array.from(x);d&&j.add(d);var _=(W["properties/".concat(c)]||{}).metadata,C=(_.inclusion,_.selected);e.push(C),n.push(c);var S=qr.reduce((function(e,n){return k.indexOf(n)>=0||Ur===String(n)&&Dr.DATE_TIME===d||Dr.UUID===String(n)&&Dr.UUID===d?e:e.concat((0,le.jsx)("option",{value:n,children:n},n))}),[]),E=k.findIndex((function(e){return e===Fr.STRING})),P=[(0,le.jsx)(me.Z,{checked:C,onClick:function(){h(O,[c],{selected:!C})}},"".concat(O,"/").concat(c,"/selected")),(0,le.jsx)(ye.ZP,{children:c},"".concat(O,"/").concat(c,"/name")),(0,le.jsxs)(ve.Z,{children:[(0,le.jsx)(Dn.Z,{flex:1,children:(0,le.jsx)(ve.Z,{alignItems:"center",flexWrap:"wrap",fullWidth:!0,children:k.map((function(e,n){return(0,le.jsx)(je.Z,{mb:1,mr:1,children:(0,le.jsx)(Kr,{border:!0,label:d&&Fr.STRING===e&&E===n?Hr[d]:e,onClick:function(){var n={format:d,type:k.filter((function(n){return n!==e}))};Dr.DATE_TIME!==d&&Dr.UUID!==d||Fr.STRING!==e||(n.format=null),m(O,c,n)},small:!0})},"".concat(O,"/").concat(c,"/").concat(e,"/").concat(n,"/chip"))}))})}),S.length>=1&&(0,le.jsxs)(rr.Z,{compact:!0,onChange:function(e){var n=e.target.value,t={format:d,type:k};Ur===String(n)?(t.format=Dr.DATE_TIME,t.type.push(Fr.STRING)):Dr.UUID===String(n)?(t.format=Dr.UUID,t.type.push(Fr.STRING)):t.type.push(n),m(O,c,t)},primary:!0,small:!0,value:"",width:10*re.iI,children:[(0,le.jsx)("option",{value:""}),S]})]},"".concat(O,"/").concat(c,"/type")),(0,le.jsx)(me.Z,{checked:!(null===w||void 0===w||!w.includes(c)),disabled:Q.length>=1&&!Q.includes(c),onClick:Q.length>=1&&!Q.includes(c)?null:function(){return v(O,(function(e){var n;return null!==(n=e.unique_constraints)&&void 0!==n&&n.includes(c)?e.unique_constraints=(0,ln.Od)(e.unique_constraints,(function(e){return c===e})):e.unique_constraints=[c].concat(e.unique_constraints||[]),e}))}},"".concat(O,"/").concat(c,"/unique")),(0,le.jsx)(me.Z,{checked:!(null===b||void 0===b||!b.includes(c)),disabled:q.length>=1&&!q.includes(c),onClick:q.length>=1&&!q.includes(c)?null:function(){return v(O,(function(e){var n;return null!==(n=e.bookmark_properties)&&void 0!==n&&n.includes(c)?(X(c),e.bookmark_properties=(0,ln.Od)(e.bookmark_properties,(function(e){return c===e}))):e.bookmark_properties=[c].concat(e.bookmark_properties||[]),e}))}},"".concat(O,"/").concat(c,"/bookmark")),(0,le.jsx)(me.Z,{checked:!(null===y||void 0===y||!y.includes(c)),onClick:function(){return v(O,(function(e){var n;return null!==(n=e.key_properties)&&void 0!==n&&n.includes(c)?e.key_properties=(0,ln.Od)(e.key_properties,(function(e){return c===e})):e.key_properties=[c].concat(e.key_properties||[]),e}))}},"".concat(O,"/").concat(c,"/key_property"))];if(Y){var I=t!==Qr.DELTA_LAKE_S3,T=I&&(Q.includes(c)||!j.has(Dr.DATE_TIME));P.push((0,le.jsx)(me.Z,{checked:!(null===Z||void 0===Z||!Z.includes(c)),disabled:T,onClick:T?null:function(){return v(O,(function(e){var n,t;null!==(n=e.partition_keys)&&void 0!==n&&n.includes(c)?e.partition_keys=(0,ln.Od)(e.partition_keys,(function(e){return c===e})):I&&1===(null===(t=e.partition_keys)||void 0===t?void 0:t.length)?e.partition_keys=[c]:e.partition_keys=[c].concat(e.partition_keys||[]);return e}))}},"".concat(O,"/").concat(c,"/partition_key")))}if(K){var A=M===r;P.push((0,le.jsx)(pe.Z,{compact:!0,disabled:A,onClick:function(){N(r),setTimeout((function(){return N(null)}),2e3),f((function(e){var n,t;if((null===e||void 0===e?void 0:e.tap_stream_id)!==O&&null!==e&&void 0!==e&&null!==(n=e.schema)&&void 0!==n&&null!==(t=n.properties)&&void 0!==t&&t[c]){var i,r,o,l,a,u,s,f,p;e.schema.properties[c]={format:d||null,type:k};var h=null===(i=(0,ln.sE)((null===e||void 0===e?void 0:e.metadata)||[],(function(e){return 0===e.breadcrumb.length})))||void 0===i?void 0:i.metadata,m=h[Wr.REPLICATION_KEYS]||[],v=h[Wr.KEY_PROPERTIES]||[];null===w||void 0===w||!w.includes(c)||null!==e&&void 0!==e&&null!==(r=e.unique_constraints)&&void 0!==r&&r.includes(c)||!v.includes(c)?null!==w&&void 0!==w&&w.includes(c)||null===e||void 0===e||null===(o=e.unique_constraints)||void 0===o||!o.includes(c)||(e.unique_constraints=(0,ln.Od)(e.unique_constraints,(function(e){return c===e}))):e.unique_constraints=[c].concat(e.unique_constraints||[]),null===b||void 0===b||!b.includes(c)||null!==e&&void 0!==e&&null!==(l=e.bookmark_properties)&&void 0!==l&&l.includes(c)||!m.includes(c)?null!==b&&void 0!==b&&b.includes(c)||null===e||void 0===e||null===(a=e.bookmark_properties)||void 0===a||!a.includes(c)||(e.bookmark_properties=(0,ln.Od)(e.bookmark_properties,(function(e){return c===e}))):e.bookmark_properties=[c].concat(e.bookmark_properties||[]),null===y||void 0===y||!y.includes(c)||null!==e&&void 0!==e&&null!==(u=e.key_properties)&&void 0!==u&&u.includes(c)?null!==y&&void 0!==y&&y.includes(c)||null===e||void 0===e||null===(s=e.key_properties)||void 0===s||!s.includes(c)||(e.key_properties=(0,ln.Od)(e.key_properties,(function(e){return c===e}))):e.key_properties=[c].concat(e.key_properties||[]),null===Z||void 0===Z||!Z.includes(c)||null!==e&&void 0!==e&&null!==(f=e.partition_keys)&&void 0!==f&&f.includes(c)?null!==Z&&void 0!==Z&&Z.includes(c)||null===e||void 0===e||null===(p=e.partition_keys)||void 0===p||!p.includes(c)||(e.partition_keys=(0,ln.Od)(e.partition_keys,(function(e){return c===e}))):e.partition_keys=[c].concat(e.partition_keys||[])}return eo({},e)}))},pill:!0,secondary:!0,children:(0,le.jsx)(ye.ZP,{success:A,children:A?"Applied!":"Apply"})}))}return P})),r=e.every((function(e){return e})),o=[null,2,1,null,null,null],c=[{label:function(){return(0,le.jsx)(me.Z,{checked:r,onClick:function(){h(O,n,{selected:!r})}})},uuid:"Selected"},{uuid:"Name"},{uuid:"Type"},{uuid:"Unique"},{uuid:"Bookmark"},{uuid:"Key prop"}];return Y&&(o.push(null),c.push({uuid:"Partition key"})),K&&(o.push(null),c.push({tooltipMessage:"This will apply this individual feature's schema settings to all selected streams that have the same feature. Unique features must be valid key properties in other streams. Bookmark features must be valid replication keys in other streams.",uuid:"All streams"})),(0,le.jsx)(Jr.cl,{children:(0,le.jsx)(gn.Z,{alignTop:!0,columnFlex:o,columns:c,rows:i,stickyHeader:!0})})}),[b,t,K,M,y,W,Z,C,Y,O,w,f,h,m,v,Q,q]);return(0,le.jsxs)(le.Fragment,{children:[(0,le.jsxs)(Lr.Z,{condensed:!0,level:4,spacingBelow:!0,children:[(0,le.jsx)(Lr.Z,{condensed:!0,inline:!0,level:4,monospace:!0,children:O})," schema"]}),(0,le.jsx)(je.Z,{mb:3,children:(0,le.jsx)(be.Z,{headerTitle:"Output",overflowVisible:!0,children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(ye.ZP,{children:"Destination table name"}),(0,le.jsx)(je.Z,{ml:no}),(0,le.jsx)(tt.Z,{label:(0,le.jsxs)(ye.ZP,{children:["By default, this stream will be saved to your destination under the table named ",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,monospace:!0,children:O}),". To change the table name, enter in a different value."]}),lightBackground:!0,primary:!0}),(0,le.jsx)(je.Z,{ml:1}),(0,le.jsx)(ke.Z,{compact:!0,monospace:!0,onChange:function(e){var n=e.target.value;I(n),clearTimeout(g.current),g.current=setTimeout((function(){v(O,(function(e){return eo(eo({},e),{},{destination_table:n})}))}),300)},value:P||"",width:45*re.iI})]})})}),(0,le.jsx)(je.Z,{mb:3,children:(0,le.jsx)(be.Z,{headerTitle:"Usage",overflowVisible:!0,children:(0,le.jsxs)(ve.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,le.jsxs)(Dn.Z,{alignItems:"center",children:[(0,le.jsx)(ye.ZP,{children:"Replication method"}),(0,le.jsx)(je.Z,{ml:no}),(0,le.jsx)(tt.Z,{label:(0,le.jsxs)(ye.ZP,{children:["Do you want to synchronize the entire stream (",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,monospace:!0,children:Ar.FULL_TABLE}),") on each integration pipeline run or only new records (",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,monospace:!0,children:Ar.INCREMENTAL}),")?",a===Vr.POSTGRESQL&&(0,le.jsxs)(ye.ZP,{children:["Log-based incremental replication (",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,monospace:!0,children:Ar.LOG_BASED}),") is also available for PostgreSQL sources."]})]}),lightBackground:!0,primary:!0}),(0,le.jsx)(je.Z,{ml:1}),(0,le.jsxs)(rr.Z,{compact:!0,onChange:function(e){v(O,(function(n){return eo(eo({},n),{},{replication_method:e.target.value})}))},primary:!0,value:_,children:[(0,le.jsx)("option",{value:""}),Object.values(Ar).filter((function(e){return a===Vr.POSTGRESQL||e!==Ar.LOG_BASED})).map((function(e){return(0,le.jsx)("option",{value:e,children:e},e)}))]}),(0,le.jsx)(je.Z,{ml:3}),(0,le.jsx)(ye.ZP,{children:"Unique conflict method"}),(0,le.jsx)(je.Z,{ml:no}),(0,le.jsx)(tt.Z,{label:(0,le.jsxs)(ye.ZP,{wordBreak:!0,children:["If a new record has the same value as an existing record in the ",(0,oe._6)("column",null===w||void 0===w?void 0:w.length),(null===w||void 0===w?void 0:w.length)>0&&(0,le.jsx)(le.Fragment,{children:"\xa0"}),null===w||void 0===w?void 0:w.sort().map((function(e,n){return(0,le.jsxs)(ye.ZP,{bold:!0,inline:!0,monospace:!0,children:[1!==(null===w||void 0===w?void 0:w.length)&&n===(null===w||void 0===w?void 0:w.length)-1?(0,le.jsx)(ye.ZP,{inline:!0,children:" and "},e):n>=1&&(0,le.jsx)(le.Fragment,{children:",\xa0"}),e]},e)})),", how do you want to resolve the conflict? The conflict method ",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,monospace:!0,children:Rr.IGNORE})," will skip the new record if it\u2019s a duplicate of an existing record. The conflict method ",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,monospace:!0,children:Rr.UPDATE})," will not save the new record and instead update the existing record with the new record\u2019s properties."]}),lightBackground:!0,primary:!0}),(0,le.jsx)(je.Z,{ml:1}),(0,le.jsxs)(rr.Z,{compact:!0,inputWidth:11*re.iI,onChange:function(e){v(O,(function(n){return eo(eo({},n),{},{unique_conflict_method:e.target.value})}))},primary:!0,value:S,children:[(0,le.jsx)("option",{value:""}),(0,le.jsx)("option",{value:Rr.IGNORE,children:Rr.IGNORE}),(0,le.jsx)("option",{value:Rr.UPDATE,children:Rr.UPDATE})]})]}),K&&(0,le.jsxs)(Dn.Z,{alignItems:"center",children:[(0,le.jsx)(ye.ZP,{default:!0,children:"All streams"}),(0,le.jsx)(je.Z,{ml:no}),(0,le.jsx)(tt.Z,{appearBefore:!0,label:(0,le.jsx)(ye.ZP,{children:"This will apply this stream's replication method and unique conflict method settings to all selected streams."}),lightBackground:!0,primary:!0}),(0,le.jsx)(je.Z,{ml:1}),(0,le.jsx)(pe.Z,{compact:!0,disabled:A,onClick:function(){R(!0),setTimeout((function(){return R(!1)}),2e3),f((function(e){return eo(eo({},e),{},{replication_method:_,unique_conflict_method:S})}))},pill:!0,secondary:!0,children:(0,le.jsx)(ye.ZP,{bold:!A,success:A,children:A?"Applied!":"Apply"})})]})]})})}),(0,le.jsx)(be.Z,{headerTitle:"Features",noPadding:!0,children:J}),(0,le.jsx)(je.Z,{mt:2,children:(0,le.jsx)(pe.Z,{loading:i,onClick:function(){return o(O)},primary:!0,small:!0,children:"Load sample data"})}),(0,le.jsxs)(je.Z,{mt:5,children:[(0,le.jsx)(Lr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Settings"}),Ar.INCREMENTAL===_&&(0,le.jsxs)(je.Z,{mb:5,children:[(0,le.jsxs)(je.Z,{mb:1,children:[(0,le.jsx)(ye.ZP,{bold:!0,large:!0,children:"Bookmark properties"}),(0,le.jsxs)(ye.ZP,{default:!0,children:["After each integration pipeline run, the last record that was successfully synchronized will be used as the bookmark. The properties listed below will be extracted from the last record and used as the bookmark.",(0,le.jsx)("br",{}),"On the next run, the synchronization will start after the bookmarked record."]})]}),(0,le.jsxs)(ve.Z,{alignItems:"center",flexWrap:"wrap",children:[!(null!==b&&void 0!==b&&b.length)&&(0,le.jsxs)(ye.ZP,{italic:!0,children:["Click the checkbox under the column ",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,italic:!0,children:"Bookmark"})," to use a specific column as a bookmark property."]}),null===b||void 0===b?void 0:b.sort().map((function(e){return(0,le.jsx)(je.Z,{mb:1,mr:1,children:(0,le.jsx)(Kr,{label:e,onClick:function(){X(e),v(O,(function(n){return eo(eo({},n),{},{bookmark_properties:(0,ln.Od)(n.bookmark_properties||[],(function(n){return n===e}))})}))},primary:!0})},"bookmark_properties/".concat(e))}))]}),(null===b||void 0===b?void 0:b.length)>0&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(je.Z,{my:2,children:(0,le.jsxs)(ve.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,le.jsxs)(je.Z,{mr:2,children:[(0,le.jsx)(ye.ZP,{bold:!0,large:!0,children:"Manually edit bookmark property values"}),(0,le.jsx)(ye.ZP,{default:!0,children:'In order to override the bookmark values for the next sync, you must first select a destination. Then click the toggle to edit the values for the bookmark properties in the table below. Click the "Save" button to save your changes.'})]}),(0,le.jsx)(Xr.Z,{checked:L,disabled:!t,onCheck:function(){return F((function(e){return!e}))}})]})}),L&&!!t&&(0,le.jsx)(be.Z,{header:(0,le.jsxs)(ve.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,le.jsx)(ye.ZP,{bold:!0,default:!0,children:"Bookmark property values"}),(0,le.jsx)(pe.Z,{compact:!0,loading:r,onClick:function(){p({block:{bookmark_values:(null===H||void 0===H?void 0:H[O])||{},destination_table:P,tap_stream_id:O}})},pill:!0,secondary:!0,children:"Save"})]}),headerPaddingVertical:re.iI,noPadding:!0,overflowVisible:!0,children:(0,le.jsx)(gn.Z,{columnBorders:!0,columnFlex:[null,1],columns:[{uuid:"Bookmark property"},{uuid:"Value"}],rows:b.map((function(e){var n;return[(0,le.jsx)(ye.ZP,{default:!0,monospace:!0,children:e},e),(0,le.jsx)(ke.Z,{borderless:!0,monospace:!0,onChange:function(n){n.preventDefault(),z((function(t){return eo(eo({},t),{},(0,c.Z)({},O,eo(eo({},t[O]),{},(0,c.Z)({},e,n.target.value))))}))},paddingHorizontal:0,placeholder:"Enter value",value:null===H||void 0===H||null===(n=H[O])||void 0===n?void 0:n[e]},"".concat(e,"_value"))]}))})})]})]}),(0,le.jsxs)(je.Z,{mb:5,children:[(0,le.jsxs)(je.Z,{mb:1,children:[(0,le.jsx)(ye.ZP,{bold:!0,large:!0,children:"Unique constraints"}),(0,le.jsx)(ye.ZP,{default:!0,children:"Multiple records (e.g. 2 or more) with the same values in the columns listed below will be considered duplicates."})]}),(0,le.jsxs)(ve.Z,{alignItems:"center",flexWrap:"wrap",children:[!(null!==w&&void 0!==w&&w.length)&&(0,le.jsxs)(ye.ZP,{italic:!0,children:["Click the checkbox under the column ",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,italic:!0,children:"Unique"})," to use a specific column as a unique constraint."]}),null===w||void 0===w?void 0:w.sort().map((function(e){return(0,le.jsx)(je.Z,{mb:1,mr:1,children:(0,le.jsx)(Kr,{label:e,onClick:function(){v(O,(function(n){return eo(eo({},n),{},{unique_constraints:(0,ln.Od)(n.unique_constraints||[],(function(n){return n===e}))})}))},primary:!0})},"unique_constraints/".concat(e))}))]})]}),(0,le.jsxs)(je.Z,{mb:5,children:[(0,le.jsxs)(je.Z,{mb:1,children:[(0,le.jsx)(ye.ZP,{bold:!0,large:!0,children:"Key properties"}),(0,le.jsx)(ye.ZP,{default:!0,children:"Key properties are used as the primary key for the destination table."})]}),(0,le.jsxs)(ve.Z,{alignItems:"center",flexWrap:"wrap",children:[!(null!==y&&void 0!==y&&y.length)&&(0,le.jsxs)(ye.ZP,{italic:!0,children:["Click the checkbox under the column ",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,italic:!0,children:"Key prop"})," to use a specific column as a key property."]}),null===y||void 0===y?void 0:y.sort().map((function(e){return(0,le.jsx)(je.Z,{mb:1,mr:1,children:(0,le.jsx)(Kr,{label:e,onClick:function(){v(O,(function(n){return eo(eo({},n),{},{key_properties:(0,ln.Od)(n.key_properties||[],(function(n){return n===e}))})}))},primary:!0})},"key_properties/".concat(e))}))]})]}),Y&&(0,le.jsxs)(je.Z,{mb:3,children:[(0,le.jsxs)(je.Z,{mb:1,children:[(0,le.jsx)(ye.ZP,{bold:!0,large:!0,children:"Partition keys"}),(0,le.jsx)(ye.ZP,{default:!0,children:"One datetime column can be used to partition the table. (Note: Partition keys currently only work with BigQuery destinations. Support for other destinations is WIP.)"})]}),(0,le.jsxs)(ve.Z,{alignItems:"center",flexWrap:"wrap",children:[!(null!==Z&&void 0!==Z&&Z.length)&&(0,le.jsxs)(ye.ZP,{italic:!0,children:["Click the checkbox under the column ",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,italic:!0,children:"Partition key"})," to use a specific column as a partition key."]}),null===Z||void 0===Z?void 0:Z.sort().map((function(e){return(0,le.jsx)(je.Z,{mb:1,mr:1,children:(0,le.jsx)(Kr,{label:e,onClick:function(){v(O,(function(n){return eo(eo({},n),{},{partition_keys:(0,ln.Od)(n.partition_keys||[],(function(n){return n===e}))})}))},primary:!0})},"key_properties/".concat(e))}))]})]})]})]})},ro=["catalog","pipeline","setErrors","setSelectedStream"];function oo(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function lo(e){for(var n=1;n0&&(u&&(0,ln.sE)(m,(function(e){var n=e.uuid;return u.uuid===n}))||s(m[0]))}),[u,s,m]);var I=(0,d.useMemo)((function(){var e=[{uuid:"Stream"},{uuid:"Columns Selected"},{uuid:"Replication Method"},{uuid:"Destination Table"},{uuid:"Bookmark Props"},{uuid:"Key Props"},{uuid:"Unique Constraints"},{uuid:"Unique Conflict Method"},{uuid:"Partition Keys"}];return(0,le.jsx)(Jr.cl,{children:(0,le.jsx)(gn.Z,{alignTop:!0,columnBorders:!0,columnFlex:e.map((function(e){return 1})),columns:e,rows:p.map((function(e){var n=e.replication_method,t=e.destination_table,i=e.bookmark_properties,r=e.key_properties,o=e.metadata,l=e.unique_constraints,c=e.unique_conflict_method,a=e.partition_keys,u=e.tap_stream_id,s=o.reduce((function(e,n){var t=n.breadcrumb,i=n.metadata.selected,r=(null===t||void 0===t?void 0:t.length)>0,o=i&&r?1:0,l=r?1:0;return{selectedCount:e.selectedCount+o,totalCount:e.totalCount+l}}),{selectedCount:0,totalCount:0}),d=(0,le.jsx)(ye.ZP,{children:"".concat(s.selectedCount," of ").concat(s.totalCount," total")},"".concat(u,"_col_selected")),f=[u,n,t,i,r,l,c,a].map((function(e,n){return(0,le.jsx)(ye.ZP,{bold:0===n,children:Array.isArray(e)?e.sort().join(", "):e},"".concat(u,"_cell_").concat(n))}));return f.slice(0,1).concat(d).concat(f.slice(1))})),stickyFirstColumn:!0,stickyHeader:!0,wrapColumns:!0})})}),[p]);return(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(pi.Z,{allowScroll:!0,noPadding:!0,onClickTab:function(e){s(e),o(e.uuid)},selectedTabUUID:null===u||void 0===u?void 0:u.uuid,tabs:m}),g&&(0,le.jsx)(je.Z,{mt:1,children:(0,le.jsx)(Jr.dE,{children:(0,le.jsx)(io,lo(lo({},c),{},{bookmarkValues:O,isLoadingUpdateDestinationBlockState:P,stream:g,streams:p,updateDestinationBlockState:E}))})}),p.length>=1&&(0,le.jsx)(je.Z,{mt:1,children:(0,le.jsxs)(Jr.dE,{children:[(0,le.jsx)(Lr.Z,{level:4,children:"Streams Summary"}),(0,le.jsx)(je.Z,{mt:1}),I]})})]})},ao=Ae.default.div.withConfig({displayName:"indexstyle__PanelStyle",componentId:"sc-1rfr5wd-0"})(["border-radius:","px;width:100%;",""],xn.n_,(function(e){return"\n background-color: ".concat((e.theme.background||bn.Z.background).panel,";\n ")}));var uo,so=function(e){var n=e.children;return(0,le.jsx)(ao,{children:n})};function fo(e){return Object.values(e).filter((function(e){return null!==e})).map((function(e){return e.tap_stream_id}))}function po(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ho(e){for(var n=1;n50&&(0,le.jsx)(je.Z,{pb:2,children:(0,le.jsxs)(ye.ZP,{danger:!0,maxWidth:mo-4*re.iI,rightAligned:!0,whiteSpaceNormal:!0,children:["WARNING: Selecting too many streams (e.g. >50)",(0,le.jsx)("br",{}),"may cause app performance issues."]})}),(0,le.jsx)(ve.Z,{justifyContent:"flex-end",children:(0,le.jsx)(pe.Z,{loading:t,onClick:function(){return i(a)},primary:!0,children:"Confirm ".concat(fo(a).length," streams")})})]})]})};function go(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function bo(e){for(var n=1;n0&&_(t[0]),j((function(e){var n=(e||[]).concat(t);return Array.from(new Set(n)).sort()})),v(Me.DATA),s()}else J(null===n||void 0===n?void 0:n.error_message)},onErrorCallback:function(e,n){return x({errors:n,response:e})}})}}),ee=(0,l.Z)($,2),ne=ee[0],te=ee[1].isLoading,ie=(0,f.Db)(dn.ZP.integration_sources.useUpdate(null===g||void 0===g?void 0:g.uuid),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(e){var n=e.integration_source,t=n.selected_streams,i=n.streams,r=((null===V||void 0===V?void 0:V.streams)||[]).filter((function(e){var n=e.tap_stream_id;return t.includes(n)})),o=r.map((function(e){return e.tap_stream_id})),l=i.filter((function(e){var n=e.tap_stream_id;return t.includes(n)&&!o.includes(n)}));l.forEach((function(e){e.metadata.forEach((function(n,t){var i=n.metadata;if(Gr.UNSUPPORTED!==i.inclusion){var r;if(e.replication_method||(e.replication_method=Ar.FULL_TABLE),e.unique_conflict_method||(e.unique_conflict_method=Rr.UPDATE),!e.destination_table)e.destination_table=null===e||void 0===e||null===(r=e.tap_stream_id)||void 0===r?void 0:r.replace(/\W+/g,"_");e.metadata[t]=yo(yo({},n),{},{metadata:yo(yo({},i),{},{selected:!0})})}}))}));var c={streams:r.concat(l)};j(Se.map((function(e){return e.tap_stream_id})));var s=null===U||void 0===U?void 0:U.catalog;(0,fn.Qr)(s)||m(F.uuid,(0,Nr.Pz)(yo(yo({},U),{},{catalog:{}})));var d={pipeline:yo(yo({},g),{},{data_integration:yo(yo({},(null===g||void 0===g?void 0:g.data_integration)||{}),{},{catalog:c})})};b(d).then((function(){u(),a()}))},onErrorCallback:function(e,n){return x({errors:n,response:e})}})}}),oe=(0,l.Z)(ie,2),ce=oe[0],ae=oe[1].isLoading,ue=(0,d.useState)(null),se=ue[0],de=ue[1],fe=(0,f.Db)(dn.ZP.integration_source_streams.useUpdate(null===g||void 0===g?void 0:g.uuid),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(e){de(e.integration_source_stream)},onErrorCallback:function(e,n){return x({errors:n,response:e})}})}}),he=(0,l.Z)(fe,2),me=he[0],ge=he[1].isLoading,be=(0,d.useCallback)((function(e,n){var t=function(e,n){var t,i=[];return e.streams.forEach((function(e){e.tap_stream_id===n?t=e:i.push(e)})),{stream:t,streams:i}}(V,e),i=t.stream,r=t.streams,o=yo(yo({},V),{},{streams:r.concat(n(i))}),l=null===U||void 0===U?void 0:U.catalog;(0,fn.Qr)(l)||m(F.uuid,(0,Nr.Pz)(yo(yo({},U),{},{catalog:{}})));var c={pipeline:yo(yo({},g),{},{data_integration:yo(yo({},(null===g||void 0===g?void 0:g.data_integration)||{}),{},{catalog:o})})};b(c).then((function(){return u()}))}),[V,F,U,u,m,g,b]),xe=(0,d.useCallback)((function(e){if(null!==V&&void 0!==V&&V.streams){var n=yo(yo({},V),{},{streams:V.streams.map((function(n){return e(n)}))}),t=null===U||void 0===U?void 0:U.catalog;(0,fn.Qr)(t)||m(F.uuid,(0,Nr.Pz)(yo(yo({},U),{},{catalog:{}})));var i={pipeline:yo(yo({},g),{},{data_integration:yo(yo({},(null===g||void 0===g?void 0:g.data_integration)||{}),{},{catalog:n})})};b(i).then((function(){return u()}))}}),[V,F,U,u,m,g,b]),ke=(0,d.useCallback)((function(e,n,t){be(e,(function(e){return e.schema.properties[n]=t,e}))}),[be]),Ze=(0,d.useCallback)((function(e,n,t){be(e,(function(e){var i=e.metadata;return n.forEach((function(n){var r=i.findIndex((function(e){var t=e.breadcrumb,i=void 0===t?[]:t;return 2===i.length&&"properties"===i[0]&&i[1]===n}));if(r>=0){var o=i[r].metadata;e.metadata[r].metadata=yo(yo({},o),t)}})),e}))}),[be]),_e=(0,f.Db)(dn.ZP.blocks.pipelines.useUpdate(null===g||void 0===g?void 0:g.uuid,null===z||void 0===z?void 0:z.uuid),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(){null===u||void 0===u||u()},onErrorCallback:function(e,n){return null===x||void 0===x?void 0:x({errors:n,response:e})}})}}),Ce=(0,l.Z)(_e,1)[0],Oe=(0,d.useMemo)((function(){var e=[];return null===p||void 0===p||p.forEach((function(n){var t=n.variables;return null===t||void 0===t?void 0:t.forEach((function(n){var t=n.uuid,i=n.value,r="\"{{ variables('".concat(t,"') }}\"");if(!t.startsWith("output"))return e.push([(0,le.jsx)(ye.ZP,{monospace:!0,children:t},"variable-uuid-".concat(t)),(0,le.jsx)(ye.ZP,{monospace:!0,children:i},"variable-uuid-".concat(t,"-{value}")),(0,le.jsx)(ye.ZP,{monospace:!0,children:r},"variable-uuid-".concat(t,"-{value}-code")),(0,le.jsx)(Br.Z,{copiedText:r,monospace:!0,withCopyIcon:!0},"variable-uuid-".concat(t,"-{value}-code-copy"))])}))})),(0,le.jsx)(gn.Z,{alignTop:!0,columnFlex:[null,null,1],columns:[{uuid:"Key"},{uuid:"Value"},{uuid:"Code"}],rows:e})}),[p]),we=(0,d.useCallback)((function(e){return(0,le.jsxs)(je.Z,{mt:2,children:[(0,le.jsxs)(ye.ZP,{default:!0,children:["Use the following variables to interpolate sensitive or dynamic information into the configuration.",(0,le.jsx)("br",{}),"You can also access values from your environment variables by using the following syntax: ",(0,le.jsx)(ye.ZP,{inline:!0,monospace:!0,children:"\"{{ env_var('MY_ENV_VARIABLE_NAME') }}\""}),(0,le.jsx)("br",{}),"For more information, check out the ",(0,le.jsx)(nt.Z,{href:e,openNewWindow:!0,primary:!0,children:"documentation"}),"."]}),(0,le.jsx)(je.Z,{mt:1,children:Oe})]})}),[Oe]),Se=(0,d.useMemo)((function(){return(null===se||void 0===se?void 0:se.streams)||[]}),[se]),Ee=(0,wn.dd)((function(){return(0,le.jsx)(vo,{catalog:V,isLoading:ae,onActionCallback:function(e){var n=Object.entries(e).reduce((function(e,n){var t=(0,l.Z)(n,2),i=t[0];return t[1]?e.concat(i):e}),[]);if(n.length>0)ce({integration_source:{streams:n}}),Te();else{var t=null===U||void 0===U?void 0:U.catalog;(0,fn.Qr)(t)||m(F.uuid,(0,Nr.Pz)(yo(yo({},U),{},{catalog:{}}))),b({pipeline:yo(yo({},g),{},{data_integration:yo(yo({},(null===g||void 0===g?void 0:g.data_integration)||{}),{},{catalog:null})})}).then((function(){return u()})),Te()}},streams:Se})}),{},[V,F,U,u,ae,m,b,Se],{background:!0,uuid:"select_streams"}),Pe=(0,l.Z)(Ee,2),Ie=Pe[0],Te=Pe[1];return(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(je.Z,{mb:1,children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(pe.Z,{iconOnly:!0,onClick:function(){return P((function(e){return!e}))},children:(0,le.jsxs)(le.Fragment,{children:[E&&(0,le.jsx)(Ve.Kh,{size:1.5*re.iI}),!E&&(0,le.jsx)(Ve._M,{size:1.5*re.iI})]})}),(0,le.jsx)(je.Z,{mr:1}),(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(Lr.Z,{children:"Source"}),!E&&(0,le.jsxs)(Lr.Z,{default:!0,inline:!0,children:["\xa0",null===(t=M[null===U||void 0===U?void 0:U.source])||void 0===t?void 0:t.name]})]})]})}),E&&(0,le.jsxs)(je.Z,{mb:5,children:[(0,le.jsxs)(Jr.dE,{children:[(0,le.jsxs)(je.Z,{mb:5,children:[(0,le.jsx)(Lr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Select source"}),(null===D||void 0===D?void 0:D.length)>0?(0,le.jsxs)(rr.Z,{onChange:function(e){var n,t,i=e.target.value;if(i){var o=null===(n=M[i])||void 0===n||null===(t=n.templates)||void 0===t?void 0:t.config;o&&Object.keys(o).forEach((function(e){o[e]=o[e]||null})),F?m(F.uuid,(0,Nr.Pz)(yo(yo({},U),{},{catalog:{},config:o,source:i}))):r({content:(0,Nr.Pz)({source:i,config:o}),language:h.t6.YAML,type:h.tf.DATA_LOADER},0,k),de(null),b().then((function(){u()}))}},primary:!0,value:null===U||void 0===U?void 0:U.source,children:[(0,le.jsx)("option",{value:""}),D.map((function(e){var n=e.name,t=e.uuid;return(0,le.jsx)("option",{value:t,children:n},t)}))]}):(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(Wi.Z,{inverted:!0}),(0,le.jsx)(je.Z,{ml:1}),(0,le.jsx)(Lr.Z,{level:5,primary:!0,children:"Loading sources..."})]})]}),F&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsxs)(je.Z,{mb:5,children:[(0,le.jsx)(Lr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Configuration"}),(null===U||void 0===U?void 0:U.source)&&(0,le.jsxs)(je.Z,{mb:2,children:[(0,le.jsxs)(ye.ZP,{default:!0,children:["For more information on how to configure this source, read the ",(0,le.jsxs)(nt.Z,{href:"https://github.com/mage-ai/mage-ai/blob/master/mage_integrations/mage_integrations/sources/".concat(U.source,"/README.md"),openNewWindow:!0,primary:!0,children:[U.source," documentation"]})]}),we("https://docs.mage.ai/guides/data-integration-pipeline#configure-source")]}),H]}),(0,le.jsxs)("div",{children:[(0,le.jsx)(Lr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Select stream"}),(0,le.jsx)(pe.Z,{loading:ge,onClick:function(){b().then((function(){me().then((function(){return Ie()})),u()}))},primary:!0,small:!0,children:"View and select streams"})]}),X&&(0,le.jsx)(ye.ZP,{warning:!0,children:X})]})]}),ae&&(0,le.jsx)(je.Z,{p:2,children:(0,le.jsx)(Wi.Z,{})}),!ae&&(0,le.jsx)(je.Z,{mt:3,children:(0,le.jsx)(co,{catalog:V,destination:null===G||void 0===G?void 0:G.destination,isLoadingLoadSampleData:te,loadSampleData:function(e){return ne({integration_source:{action_type:"sample_data",pipeline_uuid:null===g||void 0===g?void 0:g.uuid,streams:[e]}})},pipeline:g,setErrors:x,setSelectedStream:_,source:null===U||void 0===U?void 0:U.source,updateAllStreams:xe,updateMetadataForColumns:Ze,updateSchemaProperty:ke,updateStream:be})})]}),(0,le.jsx)(je.Z,{mb:1,children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(pe.Z,{disabled:!F,iconOnly:!0,onClick:function(){return A((function(e){return!e}))},children:(0,le.jsxs)(le.Fragment,{children:[T&&F&&(0,le.jsx)(Ve.Kh,{size:1.5*re.iI}),(!T||!F)&&(0,le.jsx)(Ve._M,{disabled:!F,size:1.5*re.iI})]})}),(0,le.jsx)(je.Z,{mr:1}),(0,le.jsx)(ve.Z,{alignItems:"center",children:(0,le.jsx)(Lr.Z,{children:"Transformers"})})]})}),T&&F&&(0,le.jsx)(je.Z,{mb:5,children:(0,le.jsxs)(Jr.dE,{children:[c.length>0&&(0,le.jsx)(je.Z,{mb:1,children:c.map((function(e,n){return(0,le.jsx)(je.Z,{mb:1,children:e},n)}))}),(0,le.jsx)(je.Z,{mt:1,children:(0,le.jsx)(oi,{addNewBlock:function(e){var n=e.content,t=e.configuration,i=[];return F&&i.push(F.uuid),r(yo(yo({},e),{},{configuration:t,content:n,upstream_blocks:i}),o.length-1,(function(e){z&&(Ce({block:yo(yo({},z),{},{upstream_blocks:[e.uuid]})}),k(e))}))},compact:!0,hideCustom:!0,hideDataExporter:!0,hideDataLoader:!0,hideDbt:!0,hideRecommendations:!0,hideScratchpad:!0,hideSensor:!0,hideTransformerDataSources:!0,pipeline:g})})]})}),(0,le.jsx)(je.Z,{mb:1,children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(pe.Z,{disabled:!F,iconOnly:!0,onClick:function(){return w((function(e){return!e}))},children:(0,le.jsxs)(le.Fragment,{children:[O&&F&&(0,le.jsx)(Ve.Kh,{size:1.5*re.iI}),(!O||!F)&&(0,le.jsx)(Ve._M,{disabled:!F,size:1.5*re.iI})]})}),(0,le.jsx)(je.Z,{mr:1}),(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(Lr.Z,{children:"Destination"}),!O&&(0,le.jsxs)(Lr.Z,{default:!0,inline:!0,children:["\xa0",null===(i=L[null===G||void 0===G?void 0:G.destination])||void 0===i?void 0:i.name]})]})]})}),O&&F&&(0,le.jsxs)(Jr.dE,{children:[(0,le.jsxs)(je.Z,{mb:5,children:[(0,le.jsx)(Lr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Select destination"}),(null===B||void 0===B?void 0:B.length)>0?(0,le.jsxs)(rr.Z,{onChange:function(e){var n=e.target.value;if(n){if(z)m(z.uuid,(0,Nr.Pz)(yo(yo({},G),{},{destination:n})));else{var t,i,l=null===(t=L[n])||void 0===t||null===(i=t.templates)||void 0===i?void 0:i.config;l&&(Object.keys(l).forEach((function(e){l[e]=l[e]||null})),l.hasOwnProperty("table")&&delete l.table);var c=[];if((null===o||void 0===o?void 0:o.length)>=2){var a=o.find((function(e){var n=e.uuid;return(null===F||void 0===F?void 0:F.uuid)!==n}));a&&c.push(a.uuid)}else F&&c.push(F.uuid);r({content:(0,Nr.Pz)({config:l,destination:n}),language:h.t6.YAML,type:h.tf.DATA_EXPORTER,upstream_blocks:c},1,k)}b().then((function(){u()}))}},primary:!0,value:null===G||void 0===G?void 0:G.destination,children:[(0,le.jsx)("option",{value:""}),B.map((function(e){var n=e.name,t=e.uuid;return(0,le.jsx)("option",{value:t,children:n},t)}))]}):(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(Wi.Z,{inverted:!0}),(0,le.jsx)(je.Z,{ml:1}),(0,le.jsx)(Lr.Z,{level:5,primary:!0,children:"Loading destinations..."})]})]}),z&&(0,le.jsxs)(je.Z,{mb:5,children:[(0,le.jsx)(Lr.Z,{condensed:!0,level:4,spacingBelow:!0,children:"Configuration"}),(null===G||void 0===G?void 0:G.destination)&&(0,le.jsx)(le.Fragment,{children:(0,le.jsxs)(je.Z,{mb:2,children:[(0,le.jsxs)(ye.ZP,{default:!0,children:["For more information on how to configure this destination, read the ",(0,le.jsxs)(nt.Z,{href:"https://github.com/mage-ai/mage-ai/blob/master/mage_integrations/mage_integrations/destinations/".concat(G.destination,"/README.md"),openNewWindow:!0,primary:!0,children:[G.destination," documentation"]}),".",(0,le.jsx)("br",{}),(0,le.jsx)("br",{}),"If your configuration contains a key named ",(0,le.jsx)(ye.ZP,{inline:!0,monospace:!0,children:"table"}),", it\u2019s optional.",(0,le.jsx)("br",{}),"The table that\u2019s created in this destination will have a name corresponding to the stream\u2019s unique name (by default) or the value you entered under the input field labeled ",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,children:"Table name"})," in a previous section."]}),we("https://docs.mage.ai/guides/data-integration-pipeline#configure-destination")]})}),W,(0,le.jsx)(je.Z,{mt:3,children:(0,le.jsxs)(ve.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,le.jsxs)(je.Z,{mr:2,children:[(0,le.jsx)(ye.ZP,{bold:!0,large:!0,children:"Automatically add new fields"}),(0,le.jsx)(ye.ZP,{default:!0,children:"Turn the toggle on if you want new table columns in each data source stream to be automatically added and synced with the data destination."})]}),(0,le.jsx)(Xr.Z,{checked:!!Q,disabled:!(null!==V&&void 0!==V&&V.streams),onCheck:function(){return xe((function(e){return yo(yo({},e),{},{auto_add_new_fields:!Q})}))}})]})}),(0,le.jsx)(je.Z,{mt:3,children:(0,le.jsxs)(ve.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,le.jsxs)(je.Z,{mr:2,children:[(0,le.jsx)(ye.ZP,{bold:!0,large:!0,children:"Disable column type check"}),(0,le.jsxs)(ye.ZP,{default:!0,children:["By default, the value for each column is validated according to the schema property for that column.",(0,le.jsx)("br",{}),"If a value in a column doesn\u2019t match its type, an error will be raised and the process will be stopped.",(0,le.jsx)("br",{}),"Turn this toggle on if you want to disable this strict type checking."]})]}),(0,le.jsx)(Xr.Z,{checked:!!q,disabled:!(null!==V&&void 0!==V&&V.streams),onCheck:function(){return xe((function(e){return yo(yo({},e),{},{disable_column_type_check:!q})}))}})]})})]})]})]})};function Zo(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function _o(e){for(var n=1;n=0?V(a[l+1]):V(null)}),100)}));else if(t[Ze.Bu]&&l>=1){var c=a[l-1];if(c){var u,d;V(c);var p="".concat(c.type,"s/").concat(c.uuid,".py");null===(u=o.current[p])||void 0===u||null===(d=u.current)||void 0===d||d.scrollIntoView()}}else if(t[Ze.kD]&&l<=Pe-2){var m=a[l+1];if(m){var v,g;V(m);var b="".concat(m.type,"s/").concat(m.uuid,".py");null===(v=o.current[b])||void 0===v||null===(g=v.current)||void 0===g||g.scrollIntoView()}}else(0,Oe.y)([Ze.Uq],t)?Y(!0):!i&&(0,Oe.y)([Ze.zH],t)?n({type:h.tf.SCRATCHPAD},l,V):!i&&(0,Oe.y)([Ze.Fv],t)&&n({type:h.tf.SCRATCHPAD},l+1,V)}else Se&&t[Ze.Uq]&&V(Se);r[0]===Ze.OC&&r[1]===Ze.OC&&S()}}),[n,i,o.current,a,x,Ie,Pe,w,S,N,B,Se,G,V,Y,K]),(0,d.useEffect)((function(){var e=setInterval((function(){w&&N()}),5e3);return function(){clearInterval(e)}}),[w,N]),(0,d.useEffect)((function(){setTimeout((function(){return ie(!0)}),600)}),[O]);var Be=(0,d.useCallback)((function(e){ee(!0),ve(e)}),[ee,ve]),Le=(0,d.useCallback)((function(){ee(!1),ye(!1),Ce("")}),[]),Fe=(0,d.useMemo)((function(){return a.filter((function(e){var n=e.type;return!Ie||h.tf.TRANSFORMER===n})).map((function(e,i){var l=e.type,c=e.uuid,f=(null===B||void 0===B?void 0:B.uuid)===c,h=we[c],v=h?0===h.priority?Fn.uF.BUSY:Fn.uF.QUEUED:Fn.uF.IDLE,g="".concat(l,"s/").concat(c,".py");return o.current[g]=(0,d.createRef)(),(0,le.jsx)(jr,{addNewBlock:function(e){return Y(!0),n(e,i+1,V)},addNewBlockMenuOpenIdx:de,addWidget:t,autocompleteItems:r,block:e,blockIdx:i,blockRefs:o,blocks:a,dataProviders:u,defaultValue:e.content,deleteBlock:function(e){s(e),L(!1)},executionState:v,fetchFileTree:p,fetchPipeline:m,interruptKernel:x,mainContainerRef:j,mainContainerWidth:y,messages:k[c],noDivider:i===Pe-1||Ie,onCallbackChange:function(e){return Z(c,e)},onChange:function(e){return _(c,e)},onClickAddSingleDBTModel:Be,openSidekickView:C,pipeline:O,ref:o.current[g],runBlock:A,runningBlocks:D,savePipelineContent:N,selected:f,setAddNewBlockMenuOpenIdx:fe,setAnyInputFocused:L,setCreatingNewDBTModel:ye,setEditingBlock:F,setErrors:U,setOutputBlocks:z,setRecsWindowOpenBlockIdx:W,setSelected:function(n){return V(!0===n?e:null)},setSelectedOutputBlock:Q,setTextareaFocused:Y,textareaFocused:f&&K,widgets:X},c)}))}),[n,de,t,r,o,a,u,s,p,m,x,Ie,j,y,k,Pe,Z,_,Be,C,O,A,D,we,N,B,fe,L,F,U,z,W,V,Q,Y,K,X]),Ue=(0,d.useMemo)((function(){return(0,le.jsx)(ko,{addNewBlockAtIndex:n,blocks:a,codeBlocks:Fe,fetchFileTree:p,fetchPipeline:m,fetchSampleData:v,globalVariables:b,onChangeCodeBlock:_,openSidekickView:C,pipeline:O,savePipelineContent:N,setErrors:U,setIntegrationStreams:H,setOutputBlocks:z,setSelectedBlock:V,setSelectedOutputBlock:Q,setSelectedStream:q})}),[n,a,Fe,m,b,_,_,O,N,U,V]),He=(0,d.useMemo)((function(){return(0,le.jsx)(oi,{addNewBlock:function(e){var t=a[a.length-1],i=null,r={},o=t?qi(t,e):[];t&&([h.tf.DATA_LOADER,h.tf.TRANSFORMER].includes(t.type)&&h.tf.SCRATCHPAD===e.type&&(i="from mage_ai.data_preparation.variable_manager import get_variable\n\n\ndf = get_variable('".concat(O.uuid,"', '").concat(t.uuid,"', 'output_0')\n")),h.t6.SQL===t.language&&(r=_o(_o({},(0,fn.GL)(t.configuration,[E,P,I,T,M])),r))),h.t6.SQL===e.language&&(i=ni(i)),i=ti(e,i),n(_o(_o({},e),{},{configuration:r,content:i,upstream_blocks:o}),Pe,V),Y(!0)},hideCustom:Ie||Te,hideDataExporter:Ie,hideDataLoader:Ie,hideDbt:Ie||Te,hideRecommendations:Ie,hideScratchpad:Ie,hideSensor:Ie,onClickAddSingleDBTModel:Be,pipeline:O,setCreatingNewDBTModel:ye,setRecsWindowOpenBlockIdx:W})}),[a,Ie,O,Be,W]);return(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(lt,{children:ae&&(0,le.jsx)(Ct.Z,{classNames:"pipeline-detail",in:te,onEntered:function(){return setTimeout((function(){return ue(!1)}),ot)},timeout:1,children:(0,le.jsx)(ct,{})})}),(0,le.jsxs)(je.Z,{mt:1,px:re.cd,children:[Ie&&Ue,!Ie&&(0,le.jsxs)(le.Fragment,{children:[Fe,(0,le.jsx)(je.Z,{mt:re.cd,children:He})]}),$&&(0,le.jsx)(he.Z,{onClickOutside:Le,open:!0,children:(0,le.jsx)(Mr,{blocks:a,creatingNewDBTModel:be,dbtModelName:_e,files:g,onClose:Le,onOpenFile:function(e){var t=be?"".concat(e,"/").concat((0,oe.RA)(_e||(0,oe.Y6)()),".").concat(Ee.SQL):e,i={configuration:{file_path:t},language:h.t6.SQL,name:(0,oe.wE)(t),type:h.tf.DBT};be&&(i.content="--Docs: https://docs.mage.ai/dbt/sources\n");var r="undefined"===typeof me||null===me,o=a[r?a.length-1:me],l=o?qi(o,i):[];n(_o(_o({},i),{},{upstream_blocks:l}),r?Pe:me+1,V),Le(),Y(!0)},setDbtModelName:Ce})})]})]})},Oo=t(49894),wo=t(19767),So=t(32063),Eo=t(70543),Po=t(24141);function Io(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function To(e){for(var n=1;n=.8*v?p:f,fontFamily:li.ry,fontSize:14,textAnchor:"middle",x:"50%",y:"50%",children:e.count})]},"heatmap-rect-".concat(e.row,"-").concat(e.column))}))}))}})})})})}var Ko=function(e){var n=e.countMidpoint,t=e.data,i=e.height,r=e.margin,o=e.minCount,l=e.xAxisLabel,c=e.xLabels,a=e.yAxisLabel,u=e.yLabels,s=function(e){return e.length>12?"".concat(e.substring(0,12),"..."):e},d=4*re.iI,f=8*re.iI,p=0;return a&&(p+=d+1*re.iI),u&&(p+=f+1*re.iI),(0,le.jsxs)(le.Fragment,{children:[(l||c)&&(0,le.jsx)("div",{style:{marginBottom:null===r||void 0===r?void 0:r.bottom,marginLeft:null===r||void 0===r?void 0:r.left,marginRight:null===r||void 0===r?void 0:r.right,marginTop:null===r||void 0===r?void 0:r.top,paddingLeft:p},children:(0,le.jsxs)(je.Z,{mb:{xs:1},children:[l&&(0,le.jsx)(je.Z,{mb:1,children:(0,le.jsx)(ye.ZP,{center:!0,muted:!0,xsmall:!0,children:l})}),c&&(0,le.jsx)(ve.Z,{children:c.map((function(e){var n=e.label,t=e.linkProps;return(0,le.jsx)(Dn.Z,{flex:"1",justifyContent:"center",children:t?(0,le.jsx)(nt.Z,{bold:!0,centerAlign:!0,minWidth:70,onClick:t.onClick,xsmall:!0,children:n}):(0,le.jsx)(ye.ZP,{bold:!0,center:!0,minWidth:70,title:String(n),xsmall:!0,children:s(String(n))})},n)}))})]})}),(0,le.jsxs)("div",{style:{height:i,display:"flex",width:"100%"},children:[a&&(0,le.jsx)("div",{style:{marginRight:1*re.iI,width:d},children:(0,le.jsx)(ve.Z,{alignItems:"center",justifyContent:"center",children:(0,le.jsx)(zo,{children:(0,le.jsx)(ye.ZP,{center:!0,muted:!0,xsmall:!0,children:a})})})}),u&&(0,le.jsx)("div",{style:{marginRight:1*re.iI},children:(0,le.jsx)(ve.Z,{alignItems:"center",flexDirection:"column",fullHeight:!0,width:f,children:u.map((function(e){var n=e.label,t=e.linkProps;return(0,le.jsx)(Dn.Z,{alignItems:"center",flex:"1",children:t?(0,le.jsx)(nt.Z,{bold:!0,centerAlign:!0,onClick:t.onClick,xsmall:!0,children:n}):(0,le.jsx)(ye.ZP,{bold:!0,center:!0,title:String(n),xsmall:!0,children:s(String(n))})},n)}))})}),(0,le.jsx)("div",{style:{height:i,width:"100%"},children:(0,le.jsx)(Mo.Z,{children:function(e){var i=e.width,l=e.height;return(0,le.jsx)(Yo,{countMidpoint:n,data:t,height:l,margin:r,minCount:o,width:i,yLabels:u})}})})]})]})},Xo=t(11754);var Jo=function(e){var n=e.afterWidth,t=e.features,i=e.insightsOverview,r=e.statistics,o=i.correlations,c=void 0===o?[]:o,a=n-(2*re.cd*re.iI+rt.nn),u=function(e){var n=[];return{heatmapData:null===e||void 0===e?void 0:e.map((function(e,t){var i=e.correlations,r=e.feature.uuid;n.push({label:r});var o=i[0].y.map((function(e){var n=e.value;return(0,oe.QV)(n)}));return o.splice(t,0,1),o})),xyLabels:n}}(c),s=u.heatmapData,d=u.xyLabels,f=function(e,n){return(0,ln.YC)(null===e||void 0===e?void 0:e.map((function(e){return{feature:e,value:1-n["".concat(e.uuid,"/null_value_rate")]}})),"value")}(t,r),p=function(e,n){return(0,ln.YC)(null===e||void 0===e?void 0:e.map((function(e){return{feature:e,value:n["".concat(e.uuid,"/count_distinct")]}})),"value")}(t,r),h=function(e,n){return(0,ln.YC)(null===e||void 0===e?void 0:e.map((function(e){var t=Object.entries(n["".concat(e.uuid,"/value_counts")]||{})[0]||[],i=(0,l.Z)(t,2),r=i[0],o=i[1];return{feature:e,percentage:Number(o)/n.count,value:r}})),"percentage")}(t,r);return(0,le.jsxs)(ve.Z,{flexDirection:"column",children:[(null===f||void 0===f?void 0:f.length)>=1&&(0,le.jsx)(Xo.Z,{headerTitle:"Data completion",width:a,children:(0,le.jsx)(Do.Z,{data:f.map((function(e){var n=e.feature;return{x:e.value,y:n.uuid}})),height:Math.max(3*f.length*re.iI,50*re.iI),renderTooltipContent:function(e){var n=e.x;return"".concat((0,oe.T3)(n)," of rows have a value")},xNumTicks:2,ySerialize:function(e){return e.y}})}),(null===p||void 0===p?void 0:p.length)>=1&&(0,le.jsx)(Xo.Z,{headerTitle:"Number of unique values",width:a,children:(0,le.jsx)(Do.Z,{data:p.map((function(e){var n=e.feature;return{x:e.value,y:n.uuid}})),height:Math.max(3*f.length*re.iI,50*re.iI),renderTooltipContent:function(e){var n=e.x;return"".concat(n," unique values")},xNumTicks:2,ySerialize:function(e){return e.y}})}),h.length>=1&&(0,le.jsx)(Xo.Z,{headerTitle:"Distribution of values",width:a,children:(0,le.jsx)(Do.Z,{data:h.map((function(e){var n=e.feature,t=e.percentage;return{feature:n,value:e.value,x:t,y:n.uuid}})),height:Math.max(3*h.length*re.iI,50*re.iI),renderTooltipContent:function(e){var n=e.value,t=e.x;return"".concat(n," is ").concat((0,oe.T3)(t)," of all rows")},xNumTicks:2,ySerialize:function(e){return e.y}})}),c&&(null===s||void 0===s?void 0:s.length)>=1&&(0,le.jsx)(Xo.Z,{headerTitle:"Correlations",children:(0,le.jsx)(je.Z,{p:1,children:(0,le.jsx)(Ko,{countMidpoint:0,data:s,height:8*re.iI*d.length,minCount:-1,xLabels:d,yLabels:d})})})]})},$o=t(92083),el=t.n($o),nl=t(84969),tl=t(90948),il=t(65743),rl=t(39048),ol=t(79487),ll=t(61655),cl=t(16853),al=t(65376),ul=t(52359),sl=t(48072),dl=t(24903),fl=t(98677),pl=t(73899);function hl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ml(e){for(var n=1;n20?"".concat(e.substring(0,20),"..."):e});var g=r?ci.iD:ci.J5,b=ml(ml({},vl),c),x=n.slice(Math.max(0,n.length-50)),j=(0,d.useMemo)((function(){return Object.keys((null===x||void 0===x?void 0:x[0])||{}).filter((function(e){return e!==i}))}),[x,i]),y=(0,dl.Z)({domain:j,range:[pl.a$,pl.Ej,pl.hM,pl.ZA,pl.$R,pl.X_,pl.er,pl.hl,pl.nQ]}),k=(0,d.useMemo)((function(){return x.map(m)}),[x,m]),Z=(0,fl.Z)({domain:k,padding:.1}),_=(0,fl.Z)({domain:j,padding:.1}),C=(0,Lo.Z)({domain:[0,gl(x,(function(e){return gl(j,(function(n){return Number(e[n])}))}))]}),O={active:(null===h||void 0===h?void 0:h.content.default)||bn.Z.content.default,backgroundPrimary:(null===h||void 0===h?void 0:h.chart.backgroundPrimary)||bn.Z.chart.backgroundPrimary,backgroundSecondary:(null===h||void 0===h?void 0:h.chart.backgroundSecondary)||bn.Z.chart.backgroundSecondary,muted:(null===h||void 0===h?void 0:h.content.muted)||bn.Z.content.muted,primary:(null===h||void 0===h?void 0:h.chart.primary)||bn.Z.chart.primary,tooltipBackground:(null===h||void 0===h?void 0:h.background.navigation)||bn.Z.background.navigation},w=k;u&&(w=x.reduce((function(e,n){return e.concat(j.map((function(e){var t=n[e];return(0,oe.HW)(t)?parseInt(String(t)):t})))}),[]));var S=Math.min(Math.max.apply(Math,(0,o.Z)(w.map((function(e){return String(e).length})))),20);b.left+=7*S;var E=f-(b.left+b.right),P=t-(b.top+b.bottom);u?(Z.rangeRound([0,E]),C.rangeRound([P,0])):(Z.rangeRound([P,0]),C.rangeRound([0,E])),_.rangeRound([0,Z.bandwidth()]);var I=x.map(m).length,T=0;u||(T=Z(w[I-1]));var A=(0,d.useCallback)((function(e){var n=(0,sl.Z)(e)||{x:0,y:0},t=n.x,i=n.y,r=t-b.left,o=i-b.top,l=0;l=u?(r-T/2)/(E-T):1-(o-T/2)/(P-T);var c=Math.floor(l*I),a=x[c];"undefined"===typeof a&&(a=x[c-1]),u?r>T&&rT&&o=2&&(r=r.toFixed(4)),(0,le.jsxs)(ye.ZP,{inverted:!0,small:!0,children:[t,": ",r]},t)}}))]})]})}));var Zl=function(e){var n,t=e.height,i=e.width,r=e.xAxisLabel,o=e.yAxisLabel,l=(0,Te.Z)(e,xl);return n="undefined"===typeof i?"100%":o?0===i?i:i-28:i,(0,le.jsxs)(le.Fragment,{children:[(0,le.jsxs)("div",{style:{display:"flex",height:t,marginBottom:r?re.iI:null,width:"100%"},children:[o&&(0,le.jsx)(ve.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,le.jsx)(ul.Z,{children:(0,le.jsx)(ye.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,le.jsx)("div",{style:{height:t,width:n},children:(0,le.jsx)(Mo.Z,{children:function(e){var n=e.width,t=e.height;return(0,le.jsx)(kl,yl(yl({},l),{},{height:t,width:n}))}})})]}),r&&(0,le.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,le.jsx)(ye.ZP,{center:!0,muted:!0,small:!0,children:r})})]})},_l=t(95422),Cl=["keyForYData"],Ol=["height","width","xAxisLabel","yAxisLabel"];function wl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Sl(e){for(var n=1;n=2&&(o=o.toFixed(4)),(0,le.jsxs)(ye.ZP,{inverted:!0,small:!0,children:[i,": ",o]},i)}})),(0,le.jsx)("br",{}),(0,le.jsxs)(ye.ZP,{inverted:!0,small:!0,children:[h&&h(P(u)),!h&&P(u)]})]})]})}));var Pl=function(e){var n=e.height,t=e.width,i=e.xAxisLabel,r=e.yAxisLabel,o=(0,Te.Z)(e,Ol);return(0,le.jsxs)(le.Fragment,{children:[(0,le.jsxs)("div",{style:{display:"flex",height:n,marginBottom:i?re.iI:null,width:"100%"},children:[r&&(0,le.jsx)(ve.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,le.jsx)(ul.Z,{children:(0,le.jsx)(ye.ZP,{center:!0,muted:!0,small:!0,children:r})})}),(0,le.jsx)("div",{style:{height:n,width:r?0===t?t:t-28:t},children:(0,le.jsx)(Mo.Z,{children:function(e){var n=e.height,t=e.width;return(0,le.jsx)(El,Sl(Sl({},o),{},{height:n,width:t}))}})})]}),i&&(0,le.jsx)("div",{style:{paddingLeft:r?36:0,paddingTop:4},children:(0,le.jsx)(ye.ZP,{center:!0,muted:!0,small:!0,children:i})})]})},Il=t(66872),Tl=t(68735),Al=t(320),Rl=40*re.iI,Dl=Ae.default.div.withConfig({displayName:"indexstyle__ChartBlockStyle",componentId:"sc-1c3ufnj-0"})(["border-radius:","px;margin-left:","px;margin-right:","px;margin-top:","px;",""],xn.n_,.5*re.iI,.5*re.iI,1*re.iI,(function(e){return"\n background-color: ".concat((e.theme.background||bn.Z.background).chartBlock,";\n ")})),Ml=Ae.default.div.withConfig({displayName:"indexstyle__ConfigurationOptionsStyle",componentId:"sc-1c3ufnj-1"})(["flex:4;padding-left:","px;padding-right:","px;"],1*re.iI,1*re.iI),Nl=Ae.default.div.withConfig({displayName:"indexstyle__CodeStyle",componentId:"sc-1c3ufnj-2"})(["padding-top:","px;",""],re.iI/2,(function(e){return"\n background-color: ".concat((e.theme.background||bn.Z.background).codeTextarea,";\n ")})),Bl=Ae.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-1c3ufnj-3"})(["margin-bottom:","px;padding-bottom:","px;padding-left:","px;",""],re.cd*re.iI,re.iI,re.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||bn.Z.borders).medium,";\n ")}));function Ll(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Fl(e){for(var n=1;n=1?1:0,style:{display:"flex",flex:1},children:d.cloneElement(e,{onChange:function(e){o((function(i){return i[n]=e.target.value,t(i,{resetValues:function(){return a((function(e){return e+1}))},setValues:o}),i}))},value:r[n]})},"multi-select-child-".concat(n,"-").concat(c))}))})};function Gl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Wl(e){for(var n=1;n=1&&g!==Fn.uF.IDLE,Ne=(0,d.useMemo)((function(){return null===y||void 0===y?void 0:y.filter((function(e){return null===e||void 0===e?void 0:e.type}))}),[y]),Be=!!Ne.find((function(e){return e.error})),Le=Ne.length>=1,Fe=(0,d.useMemo)((function(){return{blockType:s.type,hasError:Be,selected:S}}),[s.type,Be,S]);if(null!==Ne&&void 0!==Ne&&Ne.length){var Ue,He,ze=Ne.length-1;a=null===Ne||void 0===Ne||null===(Ue=Ne[ze])||void 0===Ue||null===(He=Ue.data)||void 0===He?void 0:He[0]}a?(a=(a=a.slice(1,a.length-1)).replaceAll('\\"','"').replaceAll("\\'","'"),(0,oe.Pb)(a)&&(o=JSON.parse(a))):(null===B||void 0===B?void 0:B.length)>=1&&(o={},B.forEach((function(e){var n=e||{},t=n.text_data,i=n.type,r=n.variable_uuid;Fn.Gi.TEXT===i&&(0,oe.Pb)(t)&&(o[r]=JSON.parse(t))})));var Ge=(0,d.useCallback)((function(e){var n=Wl(Wl(Wl({},s),e),{},{configuration:Wl(Wl({},s.configuration),e.configuration)});w().then((function(){_({block:n,code:$,ignoreAlreadyRunning:!0,runUpstream:!!xe.find((function(e){var n;return![h.DA.EXECUTED,h.DA.UPDATED].includes(null===(n=De[e])||void 0===n?void 0:n.status)}))})})),we((function(e){return e+1}))}),[s,De,$,we,xe]),We=(0,d.useCallback)((function(e){ie(e),k(e)}),[k,ie]),Qe=(0,d.useCallback)((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.autoRun;Y((function(n){return Wl(Wl({},n),e)}));var i=Wl(Wl({},s),{},{configuration:Wl(Wl(Wl({},q),e),{},{chart_type:W})});A(i);Object.keys(e);Oe&&t&&Ge(i)}),[s,W,q,Oe,Ge,Y,A]);(0,d.useEffect)((function(){z({python:dr({autocompleteItems:u,block:s,blocks:m,pipeline:Z})})}),[u,s,m,Z]);var qe=(0,d.useMemo)((function(){return(0,le.jsx)(Ln.Z,{autoHeight:!0,autocompleteProviders:U,onChange:We,selected:S,setSelected:function(e){return P(!0===e?s:null)},setTextareaFocused:I,showLineNumbers:!1,textareaFocused:T||i.TABLE===W&&!ae,value:$,width:"100%"})}),[U,W,$,ae,S,P,I,T,We]),Ye=(0,d.useMemo)((function(){return Be&&Le&&(0,le.jsx)(Fi,Wl(Wl({},Fe),{},{block:s,contained:!1,hideExtraInfo:!0,isInProgress:Me,messages:Ne,selected:S}))}),[s,Fe,Be,Le,Me,Ne,S]),Ke=(0,xi.Z)(ae),Xe=(0,xi.Z)(R);(0,d.useEffect)((function(){var e,n=null===D||void 0===D||null===(e=D.current)||void 0===e?void 0:e.getBoundingClientRect();Ke!==ae||Xe!==R?(me(0),setTimeout((function(){var e,n,t=null===D||void 0===D||null===(e=D.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.width;t&&me(t)}),100)):n&&me(n.width)}),[ae,Ke,D.current,me,R,Xe]);var Je=(0,d.useMemo)((function(){var e=[];return xe.forEach((function(n,t){var i=De[n],r=(0,$e.qn)(null===i||void 0===i?void 0:i.type,{blockColor:null===i||void 0===i?void 0:i.color,theme:M}).accent;e.push((0,le.jsxs)(je.Z,{ml:2,children:[(0,le.jsxs)(ye.ZP,{bold:!0,inline:!0,monospace:!0,small:!0,children:["df_",t+1]})," ",(0,le.jsx)(ye.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"->"})," ",(0,le.jsx)(nt.Z,{color:r,inline:!0,onClick:function(){var e,n,t=null===p||void 0===p||null===(e=p.current)||void 0===e?void 0:e["".concat(null===i||void 0===i?void 0:i.type,"s/").concat(null===i||void 0===i?void 0:i.uuid,".py")];null===t||void 0===t||null===(n=t.current)||void 0===n||n.scrollIntoView()},preventDefault:!0,small:!0,children:(0,le.jsx)(ye.ZP,{color:r,monospace:!0,small:!0,children:n})})]},n))})),e}),[De,xe]),en=(0,d.useMemo)((function(){var e,n=[],t=null===Ie||void 0===Ie||null===(e=Ie.code)||void 0===e?void 0:e.reduce((function(e,n){var t=n.uuid;return L.includes(t)?e.concat(t):e}),[]);null===t||void 0===t||t.length;return null===t||void 0===t||t.forEach((function(e,t){var i=q[e];if(i){var r,o,l=null===(r=te[W])||void 0===r||null===(o=r[e])||void 0===o?void 0:o.call(r);n.push((0,le.jsxs)(je.Z,{ml:2,children:[(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,monospace:!0,small:!0,children:i})," ",l&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(ye.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"->"})," ",(0,le.jsx)(ye.ZP,{default:!0,inline:!0,small:!0,children:l})]})]},i))}})),n}),[q,Ie]),nn=(0,xi.Z)(W),tn=(0,xi.Z)(xe);(0,d.useEffect)((function(){if((!nn&&W&&null!==xe&&void 0!==xe&&xe.length||(null===tn||void 0===tn||!tn.length)&&(null===xe||void 0===xe?void 0:xe.length)>=1&&W)&&!$&&(0,fn.Qr)(q)&&Te){var e=Wl(Wl({},s),{},{upstream_blocks:xe});Te.configuration&&Qe(Te.configuration(e)),Te.content&&We(Te.content(e))}}),[s,W,nn,q,$,Qe,We,xe,tn]);var rn=(0,d.useMemo)((function(){return q.width_percentage||1}),[q]),on=(0,d.useMemo)((function(){return Object.entries(Ie||{}).reduce((function(e,n){var t=(0,l.Z)(n,2),i=t[0],r=t[1];return Wl(Wl({},e),{},(0,c.Z)({},i,r.map((function(e){var n,t=e.autoRun,i=e.label,r=e.monospace,o=e.options,l=e.settings,a=void 0===l?{}:l,u=e.type,d=e.uuid,f={fullWidth:!0,key:d,label:(0,oe.kC)(i()),monospace:r,onBlur:function(){return P(s)},onChange:function(e){return Qe((0,c.Z)({},d,e.target.value),{autoRun:t})},onFocus:function(){return P(s)},value:(null===q||void 0===q?void 0:q[d])||""},p=(null!==N&&void 0!==N&&N.block?[N.block]:[]).reduce((function(e,n){var t=n.outputs;return t?e.concat(t.reduce((function(e,n){var t=n.sample_data;return null!==t&&void 0!==t&&t.columns?e.concat(t.columns):e}),[])):e}),[]);if(X.COLUMNS===u){var h=q[d]||[];n=(0,le.jsxs)(le.Fragment,{children:[(!a.maxValues||h.length=1&&(0,le.jsxs)(Bl,{children:[(0,le.jsxs)(ye.ZP,{muted:!0,small:!0,children:["Variables you can use in your code: ",Je]}),(0,le.jsxs)(ye.ZP,{muted:!0,small:!0,children:["Variables that you must define: ",en]})]}),qe]})]}),Ye&&(0,le.jsx)(je.Z,{px:1,children:Ye})]})})}var Ql=d.forwardRef(Vl),ql=t(97361),Yl=["blockRefs","blocks","chartRefs","deleteWidget","messages","onChangeChartBlock","runBlock","runningBlocks","savePipelineContent","selectedBlock","setAnyInputFocused","setSelectedBlock","setTextareaFocused","textareaFocused","updateWidget","widgets","width"];function Kl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Xl(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:"-",n=arguments.length>1?arguments[1]:void 0,t=cc[n],i=l===nc.RL.TEXT&&t in T,r=i?T[t]:e,o=isNaN(r)?r:(0,oe.QV)(r),c=t in ac&&o/p>ac[t];return(0,le.jsx)(rc,{backgroundColor:n%2===0?N:B,children:(0,le.jsxs)(ye.ZP,{bold:c,danger:c,default:!0,textOverflow:!0,title:i?A[t]:"",children:[i?"".concat((0,oe._6)("word",o)):o,t in R&&" (".concat(R[t],")")]})},n)}))]})}var sc=function(e){var n=e.features,t=void 0===n?[]:n,i=e.shouldLink,r=e.statistics,o=(0,d.useContext)(Ae.ThemeContext),l=(0,d.useMemo)((function(){return t.map((function(e){return e.uuid}))}),[t]);return(0,le.jsx)(Xo.Z,{headerTitle:"Feature profiles",children:(0,le.jsxs)(ve.Z,{children:[(0,le.jsx)(tc,{children:(0,le.jsxs)(Dn.Z,{flex:1,flexDirection:"column",style:{background:o.background.table},children:[(0,le.jsx)(je.Z,{mr:1.25*re.iI,mt:"".concat(53,"px")}),cc.map((function(e,n){return(0,le.jsx)(rc,{children:(0,le.jsx)(ye.ZP,{default:!i,secondary:i,children:e})},"".concat(e,"-").concat(n))}))]})}),(0,le.jsx)(oc,{children:(0,le.jsx)(ve.Z,{children:t.map((function(e,n){return(0,le.jsx)(ic,{children:(0,le.jsx)(uc,{columns:l,feature:e,shouldLink:i,statistics:r})},"".concat(e,"-").concat(n))}))})})]})})};function dc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function fc(e){for(var n=1;ng+1&&b(e-1):b(e)},rows:S})]})},hc=t(21764),mc=t(22673),vc=t(1286),gc=(re.iI,vc.O$,re.iI,ci.dN,Ae.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-cr39lf-0"})(["height:calc(100vh - ","px - ","px);width:fit-content;",""],it.Wi,rt.nn,(function(e){return e.fullWidth&&"\n width: 100%;\n "})),Ae.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-cr39lf-1"})(["padding:","px;",""],2*re.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "})),Ae.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-cr39lf-2"})(["",""],(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))),bc=Ae.default.td.withConfig({displayName:"indexstyle__CellStyle",componentId:"sc-cr39lf-3"})(["display:flex;align-items:center;justify-content:space-between;border:1px solid #1C1C1C;height:100%;",""],(function(e){return!e.noPadding&&"\n padding: 0 ".concat(2*re.iI,"px;\n ")})),xc=t(19963);var jc=function(e){var n=e.copyText,t=e.deleteVariable,i=e.fetchVariables,r=e.hideEdit,o=e.obfuscate,c=e.pipelineUUID,a=e.variable,u=a.uuid,s=(a.type,a.value),p=(0,d.useRef)(null),h=(0,d.useState)(!1),m=h[0],v=h[1],g=(0,d.useState)(u),b=g[0],x=g[1],j=(0,d.useState)(s),y=j[0],k=j[1],Z=(0,d.useState)(!1),_=Z[0],C=Z[1],O=(0,f.Db)(dn.ZP.variables.pipelines.useUpdate(c,u),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(){C(!1),i()}})}}),w=(0,l.Z)(O,1)[0],S=(0,d.useCallback)((function(e){if("Enter"===e.key){var n=y;try{n=JSON.parse(y)}catch(t){}w({variable:{name:b,value:n}})}else"Escape"===e.key&&C(!1)}),[b,y]);(0,d.useEffect)((function(){var e;_&&(null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus())}),[_,p]);var E=n||"kwargs['".concat(u,"']");return(0,le.jsx)("div",{onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)},children:(0,le.jsxs)(ql.Z,{children:[(0,le.jsx)(Hl.Z,{md:1,hiddenSmDown:!0,children:(0,le.jsx)(bc,{noPadding:!0,children:(0,le.jsx)(ge.ZP,{backgroundColor:xc.qJ,borderless:!0,centerText:!0,muted:!0,onClick:function(){navigator.clipboard.writeText(E),hc.Am.success("Successfully copied to clipboard.",{position:hc.Am.POSITION.BOTTOM_RIGHT,toastId:u})},small:!0,uuid:"Sidekick/GlobalVariables/".concat(u),withIcon:!0,children:(0,le.jsx)(Ve.CK,{size:2.5*re.iI})})})}),(0,le.jsx)(Hl.Z,{md:4,children:_?(0,le.jsx)(bc,{children:(0,le.jsx)(ke.Z,{compact:!0,borderless:!0,fullWidth:!0,monospace:!0,onChange:function(e){x(e.target.value),e.preventDefault()},onKeyDown:S,paddingHorizontal:0,placeholder:"variable",small:!0,value:b})}):(0,le.jsx)(bc,{children:(0,le.jsx)(ye.ZP,{color:pl.Or,monospace:!0,small:!0,textOverflow:!0,children:u})})}),(0,le.jsx)(Hl.Z,{md:7,children:_?(0,le.jsx)(bc,{children:(0,le.jsx)(ke.Z,{compact:!0,borderless:!0,fullWidth:!0,monospace:!0,onChange:function(e){k(e.target.value),e.preventDefault()},onKeyDown:S,paddingHorizontal:0,placeholder:"enter value",ref:p,small:!0,value:y})}):(0,le.jsxs)(bc,{children:[o?(0,le.jsx)(ye.ZP,{monospace:!0,small:!0,children:"********"}):(0,le.jsx)(ye.ZP,{monospace:!0,small:!0,children:s}),(0,le.jsxs)(Dn.Z,{children:[!r&&m&&(0,le.jsx)(ge.ZP,{backgroundColor:xc.qJ,borderless:!0,inline:!0,muted:!0,onClick:function(){C(!0)},small:!0,uuid:"Sidekick/GlobalVariables/edit_".concat(u),withIcon:!0,children:(0,le.jsx)(Ve.I8,{size:2.5*re.iI})}),t&&m&&(0,le.jsx)(ge.ZP,{backgroundColor:xc.qJ,borderless:!0,inline:!0,muted:!0,onClick:t,small:!0,uuid:"Sidekick/GlobalVariables/delete_".concat(u),withIcon:!0,children:(0,le.jsx)(Ve.rF,{size:2.5*re.iI})})]})]})})]})})},yc=t(93348),kc=t(58122);var Zc=function(e){e.blocks;var n=e.fetchVariables,t=e.pipeline,i=e.selectedBlock,r=e.setErrorMessages,o=e.variables,c=e.width,a=(0,d.useState)(!1),u=a[0],s=a[1],p=(0,d.useState)(),m=p[0],v=p[1],g=(0,d.useState)(),b=g[0],x=g[1],j=null===t||void 0===t?void 0:t.uuid,y=(0,f.Db)(dn.ZP.variables.pipelines.useCreate(j),{onSuccess:function(e){return(0,pn.wD)(e,{onErrorCallback:function(e){var n=e.error,t=n.message,i=n.exception;r((function(e){var n=e||[];return i&&(n=n.concat(i)),t&&(n=n.concat(t)),n}))}})}}),k=(0,l.Z)(y,1)[0],Z=(0,f.Db)((function(e){return dn.ZP.variables.pipelines.useDelete(j,e)()}),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(){n()},onErrorCallback:function(e){var n=e.error,t=(n.errors,n.message);r((function(e){return e.concat(t)}))}})}}),_=(0,l.Z)(Z,1)[0],C=(0,d.useCallback)((function(e){if("Enter"===e.key){var t=b;try{t=JSON.parse(b)}catch(i){}k({variable:{name:m,value:t}}).then((function(){n(),v(null),x(null)})),s(!1)}else"Escape"===e.key&&s(!1)}),[k,n,m,b]),O=(0,d.useMemo)((function(){return c-4*re.iI}),[c]),w=(0,d.useMemo)((function(){return(0,kc.wx)(o,(function(e){return"global"===e.uuid}))}),[o]),S=(0,d.useMemo)((function(){return(0,kc.wx)(o,(function(e){return e.uuid===(null===i||void 0===i?void 0:i.uuid)}))}),[i,o]),E=(0,d.useMemo)((function(){return(0,le.jsxs)(gc,{width:O,children:[u&&(0,le.jsxs)(ql.Z,{children:[(0,le.jsx)(Hl.Z,{md:1,children:(0,le.jsx)(bc,{noPadding:!0,children:(0,le.jsx)(ge.ZP,{backgroundColor:xc.qJ,borderless:!0,centerText:!0,muted:!0,onClick:function(){navigator.clipboard.writeText(m),hc.Am.success("Successfully copied to clipboard.",{position:hc.Am.POSITION.BOTTOM_RIGHT,toastId:m})},uuid:"Sidekick/GlobalVariables/".concat(m),withIcon:!0,children:(0,le.jsx)(Ve.CK,{size:2.5*re.iI})})})}),(0,le.jsx)(Hl.Z,{md:4,children:(0,le.jsx)(bc,{children:(0,le.jsx)(ke.Z,{compact:!0,borderless:!0,fullWidth:!0,monospace:!0,onChange:function(e){v(e.target.value),e.preventDefault()},onKeyDown:C,paddingHorizontal:0,placeholder:"variable",small:!0,value:m})})}),(0,le.jsx)(Hl.Z,{md:7,children:(0,le.jsx)(bc,{children:(0,le.jsx)(ke.Z,{compact:!0,borderless:!0,fullWidth:!0,monospace:!0,onChange:function(e){x(e.target.value),e.preventDefault()},onKeyDown:C,paddingHorizontal:0,placeholder:"enter value",small:!0,value:b})})})]}),null===w||void 0===w?void 0:w.map((function(e){return(0,le.jsx)(jc,{deleteVariable:function(){return _(e.uuid)},fetchVariables:n,pipelineUUID:j,variable:e})}))]})}),[_,w,m,b,j,v,x,s,u,O]),P=(0,d.useMemo)((function(){return(0,le.jsx)(gc,{width:O,children:null===S||void 0===S?void 0:S.map((function(e){return(0,le.jsx)(jc,{copyText:(n=e.uuid,"from mage_ai.data_preparation.variable_manager import (\n get_variable,\n)\n\n".concat(function(e,n,t){return"\n".concat(t," = get_variable('").concat(e,"', '").concat(n,"', '").concat(t,"')\n")}(j,null===i||void 0===i?void 0:i.uuid,n))),hideEdit:!0,pipelineUUID:j,variable:e});var n}))})}),[S,i,O]);return(0,le.jsxs)(je.Z,{p:re.cd,children:[(0,le.jsx)(je.Z,{mb:re.cd,children:(0,le.jsxs)(ve.Z,{alignItems:"center",children:[(0,le.jsx)(Lr.Z,{level:4,monospace:!0,children:"Global Variables"}),(0,le.jsx)(je.Z,{ml:2}),(0,le.jsx)(ge.ZP,{Icon:Ve.mm,blackBorder:!0,inline:!0,onClick:function(){return s((function(e){return!e}))},uuid:"Sidekick/GlobalVariables/addNewVariable",children:"New"})]})}),(0,le.jsx)(je.Z,{mb:re.cd,children:(0,le.jsxs)(ye.ZP,{muted:!0,children:["Press ",(0,le.jsx)(ye.ZP,{bold:!0,default:!0,inline:!0,monospace:!0,children:"Enter"})," or ",(0,le.jsx)(ye.ZP,{bold:!0,default:!0,inline:!0,monospace:!0,children:"Return"})," to save changes."]})}),(0,le.jsx)(je.Z,{mb:re.cd,children:E}),(0,le.jsx)(je.Z,{mb:re.cd,children:(0,le.jsx)(ye.ZP,{children:"Global variables will be passed into all non-scratchpad blocks as keyword arguments (Python), interpolated variables (SQL), or vector elements (R). To load a global variable, use the following syntax:"})}),(0,le.jsxs)(je.Z,{mb:re.cd,children:[(0,le.jsxs)(ye.ZP,{bold:!0,large:!0,children:["For Python (",(0,le.jsx)(nt.Z,{href:"https://docs.mage.ai/production/configuring-production-settings/runtime-variable",large:!0,openNewWindow:!0,primary:!0,children:"docs"}),"):"]}),(0,le.jsx)(mc.Z,{language:"python",small:!0,source:"\n var = kwargs['variable_name']\n"})]}),(0,le.jsxs)(je.Z,{mb:re.cd,children:[(0,le.jsxs)(ye.ZP,{bold:!0,large:!0,children:["For SQL (",(0,le.jsx)(nt.Z,{href:"https://docs.mage.ai/guides/sql-blocks#variables",large:!0,openNewWindow:!0,primary:!0,children:"docs"}),"):"]}),(0,le.jsx)(mc.Z,{language:"sql",small:!0,source:"\n {{ variable_name }}\n"})]}),(0,le.jsxs)(je.Z,{mb:re.cd,children:[(0,le.jsxs)(ye.ZP,{bold:!0,large:!0,children:["For R (",(0,le.jsx)(nt.Z,{href:"https://docs.mage.ai/guides/r-blocks#runtime-variables",large:!0,openNewWindow:!0,primary:!0,children:"docs"}),"):"]}),(0,le.jsx)(mc.Z,{language:"r",small:!0,source:"\n var <- global_vars['variable_name']\n"})]}),(0,le.jsxs)(je.Z,{mb:re.cd,children:[(0,le.jsx)(Lr.Z,{level:4,monospace:!0,children:"Trigger Runtime Variables"}),(0,le.jsx)(je.Z,{mb:re.cd}),(0,le.jsx)(ye.ZP,{children:"Depending on what kind of trigger you use for this pipeline, some default runtime variables will be provided."})]}),Object.values(yc.Xm).map((function(e){var n;return(0,le.jsxs)(je.Z,{mb:re.cd,children:[(0,le.jsx)(je.Z,{mb:re.cd,children:(0,le.jsx)(ye.ZP,{large:!0,monospace:!0,children:(0,oe.vg)(null===(n=yc.Z4[e])||void 0===n?void 0:n.call(yc.Z4))})}),(0,kc.JZ)([],e).map((function(e){return(0,le.jsx)(jc,{hideEdit:!0,variable:e,pipelineUUID:j})}))]})})),S&&S.length>0&&(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(je.Z,{my:2,children:(0,le.jsx)(Lr.Z,{level:4,monospace:!0,children:"Block Output Variables"})}),(0,le.jsx)(je.Z,{mb:2,children:P}),(0,le.jsx)(je.Z,{mb:re.cd,children:(0,le.jsxs)(ye.ZP,{children:["Output variables can be used in any ",(0,le.jsx)(ye.ZP,{bold:!0,inline:!0,monospace:!0,children:h.tf.SCRATCHPAD})," block."]})}),(0,le.jsx)(je.Z,{mb:re.cd,children:(0,le.jsx)(ye.ZP,{children:"To load the variable, use the following syntax:"})}),(0,le.jsx)(je.Z,{mb:re.cd,children:(0,le.jsx)(mc.Z,{language:"python",small:!0,source:"\n from mage_ai.data_preparation.variable_manager import (\n get_variable,\n )\n\n\n df = get_variable(\n 'pipeline_uuid',\n 'block_uuid',\n 'variable_name',\n )\n"})})]})]})},_c=Ae.default.div.withConfig({displayName:"indexstyle__OutputContainerStyle",componentId:"sc-wkjnrg-0"})([""," overflow-y:scroll;"," ",""],rt.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return!e.height&&"\n height: ".concat(300,"px;\n ")}));function Cc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Oc(e){for(var n=1;n') }}\n ",maxWidth:b})}),(0,le.jsx)(je.Z,{mb:re.cd,children:(0,le.jsx)(ye.ZP,{children:"To reference a secret in code, you can import the `get_secret_value` helper method:"})}),(0,le.jsx)(je.Z,{mb:re.cd,children:(0,le.jsx)(mc.Z,{language:"python",small:!0,source:"\n from mage_ai.data_preparation.shared.secrets import get_secret_value\n\n get_secret_value('')\n ",maxWidth:b})})]})},Ec=t(66607),Pc=t(15270),Ic=t(64155),Tc=t(72454);function Ac(e){var n=e.activeView,t=e.setActiveSidekickView;return Xe.map((function(e){var i=e.key,r=e.label;return{Icon:Je[i],id:i,isSelected:function(){return n===i},label:function(){return r},onClick:function(){return t(i)}}}))}var Rc=function(e){var n=e.activeView,t=e.afterWidth,i=e.autocompleteItems,r=e.blockRefs,o=e.blocks,l=e.cancelPipeline,c=e.chartRefs,a=e.deleteWidget,u=e.editingBlock,s=e.executePipeline,f=e.fetchFileTree,p=e.fetchPipeline,h=e.fetchSecrets,m=e.fetchVariables,v=e.globalVariables,g=e.insights,b=e.interruptKernel,x=e.isPipelineExecuting,j=e.messages,y=e.metadata,k=e.onChangeChartBlock,Z=e.pipeline,_=e.pipelineMessages,C=e.runBlock,O=e.runningBlocks,w=e.sampleData,S=e.savePipelineContent,E=e.secrets,P=e.selectedBlock,I=e.selectedFilePath,T=e.setActiveSidekickView,A=e.setAnyInputFocused,R=e.setDisableShortcuts,D=e.setEditingBlock,M=e.setErrors,N=e.setSelectedBlock,B=e.setTextareaFocused,L=e.statistics,F=e.textareaFocused,U=e.updateWidget,H=e.widgets,z=(0,Po.i)().height,G=it.uX,W=(0,d.useState)([]),V=W[0],Q=W[1],q=(0,d.useState)(!!(0,Ce.U2)(Ce.Q9)),Y=q[0],K=q[1],X=Tc.k1,J=((0,d.useMemo)((function(){return t}),[t]),(0,d.useMemo)((function(){return t-X}),[t,X])),$=((null===u||void 0===u?void 0:u.upstreamBlocks)||{}).block,ee=((null===w||void 0===w?void 0:w.columns)||[]).slice(0,100),ne=(null===w||void 0===w?void 0:w.rows)||[],te=(null===y||void 0===y?void 0:y.column_types)||{},ie=null===ee||void 0===ee?void 0:ee.map((function(e){return{columnType:te[e],uuid:e}})),oe=(null===g||void 0===g?void 0:g[1])||{},ce=(0,d.useMemo)((function(){return(0,ln.HK)((null===g||void 0===g?void 0:g[0])||[],(function(e){return e.feature.uuid}))}),[g]),ae=(0,kc.v0)({statistics:L}),ue=(0,kc.CL)({columnTypes:te,statistics:L}),se=!!w,fe=(0,d.useMemo)((function(){return xe.qL.INTEGRATION===(null===Z||void 0===Z?void 0:Z.type)}),[Z]),he=fe?-78:Y?-22:300,me=(0,d.useCallback)((0,vc.Fk)({columnTypes:te,columns:ee,insightsByFeatureUUID:ce,insightsOverview:oe,noColumnLinks:!0,statistics:L}),[te,ee,ce,oe,L]),ge=(0,d.useMemo)((function(){return(0,le.jsx)(Zc,{blocks:o,fetchVariables:m,pipeline:Z,selectedBlock:P,setErrorMessages:Q,variables:v,width:J})}),[J,o,m,v,Z,P]),be=(0,d.useMemo)((function(){return(0,le.jsx)(pc,{selectedBlock:P,selectedFilePath:I,setErrors:M,width:J>rt.nn?J-rt.nn:J})}),[J,P,I,M]),ke=(0,d.useMemo)((function(){return(0,le.jsx)(Sc,{fetchSecrets:h,pipelineUUID:null===Z||void 0===Z?void 0:Z.uuid,secrets:E,setErrorMessages:Q,width:J})}),[J,h,Z,E]);return(0,le.jsxs)(le.Fragment,{children:[(null===V||void 0===V?void 0:V.length)>=1&&(0,le.jsxs)(je.Z,{mb:3,mt:2,mx:2,children:[(0,le.jsxs)(ve.Z,{justifyContent:"space-between",children:[(0,le.jsx)(ye.ZP,{bold:!0,danger:!0,children:"Errors"}),(0,le.jsx)(pe.Z,{basic:!0,iconOnly:!0,noPadding:!0,onClick:function(){return Q([])},transparent:!0,children:(0,le.jsx)(Ve.x8,{muted:!0})})]}),null===V||void 0===V?void 0:V.map((function(e){return(0,le.jsx)(je.Z,{pb:1,children:(0,le.jsx)(ye.ZP,{monospace:!0,xsmall:!0,children:e})},e)}))]}),(0,le.jsxs)(ve.Z,{children:[(0,le.jsxs)(Ic.t0,{fullWidth:Ye.includes(n),heightOffset:Me.TERMINAL===n?0:rt.nn,onBlur:function(){return R(!1)},onFocus:function(){return R(!0)},widthOffset:X,children:[n===Me.TREE&&(0,le.jsx)(de,{uuid:"PipelineDetail/".concat(null===Z||void 0===Z?void 0:Z.uuid),children:(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(gi.Z,{blockRefs:r,editingBlock:u,enablePorts:!fe,fetchPipeline:p,height:z-G-he,pipeline:Z,runningBlocks:O,selectedBlock:P,setEditingBlock:D,setErrors:M,setSelectedBlock:N}),!$&&xe.qL.INTEGRATION!==(null===Z||void 0===Z?void 0:Z.type)&&(0,le.jsx)(je.Z,{p:1,children:(0,le.jsx)(wc,{cancelPipeline:l,executePipeline:s,isPipelineExecuting:x,pipelineExecutionHidden:Y,pipelineMessages:_,setPipelineExecutionHidden:K})})]})}),n===Me.DATA&&ee.length>0&&(0,le.jsx)(vi.Z,{columnHeaderHeight:(0,fn.Qr)(te)&&(0,fn.Qr)(ce)&&(0,fn.Qr)(oe)?0:Ic.Eh,columns:ee,height:z-G-it.OM,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,noBorderTop:!0,renderColumnHeader:me,rows:ne,width:J}),n===Me.REPORTS&&(0,le.jsx)(Ic.ht,{noPadding:!P||!se,children:(0,le.jsxs)(ve.Z,{flexDirection:"column",fullWidth:!0,children:[ae&&(0,le.jsx)(Ec.Z,{stats:ae,title:"Quality metrics"}),ue&&(0,le.jsx)(je.Z,{mt:re.cd,children:(0,le.jsx)(Ec.Z,{stats:ue,title:"Statistics"})}),ie.length>0&&(0,le.jsx)(je.Z,{mt:re.cd,children:(0,le.jsx)(sc,{features:ie,statistics:L})})]})}),n===Me.GRAPHS&&(0,le.jsx)(Ic.ht,{noPadding:!P||!se,children:(0,le.jsx)(Jo,{afterWidth:J,features:ie,insightsOverview:oe,statistics:L})}),Me.SECRETS===n&&ke,Me.VARIABLES===n&&ge,Me.FILE_VERSIONS===n&&(0,le.jsx)(de,{uuid:"FileVersions/".concat(I?decodeURIComponent(I):""),children:be}),fe||P&&se||!P&&se&&n===Me.DATA?null:Ke.includes(n)&&(0,le.jsx)(ve.Z,{alignItems:"center",justifyContent:"center",verticalHeight:90,verticalHeightOffset:G,width:J,children:(0,le.jsx)(ye.ZP,{center:!0,default:!0,disableWordBreak:!0,large:!0,monospace:!0,children:P?!se&&"No data or insights available":"Select a block for insights"})}),Me.CHARTS===n&&(H.length>0?(0,le.jsx)(Jl,{autocompleteItems:i,blockRefs:r,blocks:o,chartRefs:c,deleteWidget:a,fetchFileTree:f,fetchPipeline:p,messages:j,onChangeChartBlock:k,pipeline:Z,runBlock:C,runningBlocks:O,savePipelineContent:S,selectedBlock:P,setAnyInputFocused:A,setSelectedBlock:N,setTextareaFocused:B,textareaFocused:F,updateWidget:U,widgets:H,width:J}):(0,le.jsxs)(ve.Z,{alignItems:"center",justifyContent:"center",verticalHeight:90,verticalHeightOffset:G,width:J,children:[(0,le.jsx)(je.Z,{pl:1}),(0,le.jsx)(ec,{size:358}),(0,le.jsx)(je.Z,{pr:1})]})),Me.TERMINAL===n&&(0,le.jsx)("div",{style:{height:"100%",position:"relative",width:J},children:(0,le.jsx)(Un.Z,{interruptKernel:b,onFocus:function(){return N(null)},width:J})})]}),(0,le.jsx)(Tc.lm,{borderLeft:!0,children:(0,le.jsx)(Pc.Z,{aligned:"right",navigationItems:Ac({activeView:n,setActiveSidekickView:T})})})]})]})},Dc=t(59e3);function Mc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Nc(e){for(var n=1;n1&&void 0!==arguments[1])||arguments[1];(0,Dc.iV)().sideview!==e&&(0,st.u7)((0,c.Z)({},qe,e),{pushHistory:n})}),[]);(0,d.useEffect)((function(){He||Ye(Me.TREE,!1)}),[He,Ye]);var Ke=(0,d.useCallback)((function(e,n){Ye(e,n),b(!1)}),[Ye]),$e=(0,d.useRef)(null),en=(0,d.useRef)({}),nn=(0,d.useRef)({}),tn=(0,d.useRef)({}),rn=(0,d.useRef)({}),on=(0,d.useRef)({}),cn=(0,d.useCallback)((function(e){tn.current=Nc(Nc({},tn.current),e)}),[tn]),an=(0,d.useCallback)((function(e){rn.current=Nc(Nc({},rn.current),e)}),[rn]),un=(0,d.useCallback)((function(e,n){cn((0,c.Z)({},e,n)),Fe(!0)}),[cn,Fe]),sn=(0,d.useCallback)((function(e,n){an((0,c.Z)({},e,n)),Fe(!0)}),[an,Fe]),hn=(0,d.useCallback)((function(e){on.current=Nc(Nc({},on.current),e)}),[on]),mn=(0,d.useCallback)((function(e,n){hn((0,c.Z)({},e,n)),Fe(!0)}),[hn,Fe]),vn=(0,d.useState)(null),gn=vn[0],bn=vn[1],xn=dn.ZP.data_providers.list({},{revalidateOnFocus:!0}).data,jn=null===xn||void 0===xn?void 0:xn.data_providers,yn=dn.ZP.variables.pipelines.list(me),kn=yn.data,Zn=yn.mutate,_n=null===kn||void 0===kn?void 0:kn.variables,Cn=dn.ZP.secrets.list(),On=Cn.data,Sn=Cn.mutate,En=null===On||void 0===On?void 0:On.secrets,Pn=(0,d.useState)([]),In=Pn[0],Tn=Pn[1],An=(0,d.useState)([]),Mn=An[0],Nn=An[1],Bn=(0,d.useRef)({}),Ln=(0,d.useCallback)((function(e){var n;Fe(!0);var t=Bn.current[e.uuid]||{},i=t.upstream_blocks;(null===e||void 0===e||null===(n=e.upstream_blocks)||void 0===n?void 0:n.length)>=1&&(i=e.upstream_blocks),Bn.current[e.uuid]=Nc(Nc(Nc({},t),e),{},{configuration:Nc(Nc({},t.configuration),e.configuration),upstream_blocks:i})}),[Fe,Bn]),Un=(0,d.useState)(!1),Gn=Un[0],Wn=Un[1],Vn=(0,d.useState)({upstreamBlocks:null}),Qn=Vn[0],Yn=Vn[1],Kn=(0,d.useState)([]),Xn=Kn[0],Jn=Kn[1],$n=(0,d.useState)(null),nt=$n[0],tt=$n[1],it=(0,d.useState)(null),rt=it[0],ot=it[1],lt=function(e,n){var t=(0,ln.HK)(n,(function(e){return e.uuid}));return e.map((function(e){return t[e]})).filter((function(e){return!!e}))}(Ni(me),In),ct=(0,d.useState)(lt),at=ct[0],ut=ct[1],dt=(0,d.useState)(),ft=dt[0],mt=dt[1],vt=(0,d.useState)(),gt=vt[0],bt=vt[1],xt=(0,d.useState)(null),jt=xt[0],yt=xt[1],kt=(0,xi.Z)(at),Zt=(0,d.useCallback)((function(){Yn({upstreamBlocks:{block:null,values:[]}}),J({}),Fe(!1),Ne(null),Jn([]),tt(null)}),[]);(0,d.useEffect)((function(){me!==be&&(tn.current={},rn.current={})}),[me,be]);var Ct=dn.ZP.blocks.pipelines.outputs.detail(!g&&me,(null===jt||void 0===jt?void 0:jt.type)!==h.tf.SCRATCHPAD&&(null===jt||void 0===jt?void 0:jt.type)!==h.tf.CHART&&(null===jt||void 0===jt?void 0:jt.uuid)&&encodeURIComponent(null===jt||void 0===jt?void 0:jt.uuid)),Ot=Ct.data,wt=Ct.mutate,St=(0,d.useMemo)((function(){var e,n,t;return Ae?null===(e=(0,ln.sE)(null===Ot||void 0===Ot?void 0:Ot.outputs,(function(e){return e.variable_uuid==="output_sample_data_".concat(gt)})))||void 0===e?void 0:e.sample_data:null===Ot||void 0===Ot||null===(n=Ot.outputs)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.sample_data}),[Ot,Ae,gt]),Et=dn.ZP.blocks.pipelines.analyses.detail(!g&&me,(null===jt||void 0===jt?void 0:jt.type)!==h.tf.SCRATCHPAD&&(null===jt||void 0===jt?void 0:jt.type)!==h.tf.CHART&&(null===jt||void 0===jt?void 0:jt.uuid)&&encodeURIComponent(null===jt||void 0===jt?void 0:jt.uuid)),Pt=Et.data,It=Et.mutate,Tt=(null===Pt||void 0===Pt||null===(n=Pt.analyses)||void 0===n?void 0:n[0])||{},At=Tt.insights,Rt=void 0===At?{}:At,Dt=Tt.metadata,Mt=void 0===Dt?{}:Dt,Nt=Tt.statistics,Bt=void 0===Nt?{}:Nt,Lt=dn.ZP.blocks.pipelines.analyses.detail(me,(null===nt||void 0===nt?void 0:nt.type)!==h.tf.CHART&&null!==rt&&(null===nt||void 0===nt?void 0:nt.uuid)),Ft=Lt.data;Lt.mutate,null===Ft||void 0===Ft||null===(t=Ft.analyses)||void 0===t||null===(i=t[0])||void 0===i||i.suggestions;(0,d.useEffect)((function(){0===Xn.length&&(It(),wt(),Zn())}),[It,wt,Zn,Xn]),(0,d.useEffect)((function(){if(0===at.length)yt(null);else if((null===kt||void 0===kt?void 0:kt.length)!==(null===at||void 0===at?void 0:at.length)&&(null===at||void 0===at?void 0:at.length)<(null===kt||void 0===kt?void 0:kt.length)){var e=kt.findIndex((function(e){return e.uuid===(null===jt||void 0===jt?void 0:jt.uuid)})),n=kt.length-1===e?e-1:e+1;yt(kt[Math.max(0,n)])}}),[at,kt,null===jt||void 0===jt?void 0:jt.uuid]),(0,d.useEffect)((function(){var e;null!==(e=Qn.upstreamBlocks)&&void 0!==e&&e.block&&(b(!1),Ye(Me.TREE))}),[Qn.upstreamBlocks,Ye]);var Ut=dn.ZP.autocomplete_items.list({},{refreshInterval:!1,revalidateOnFocus:!0}),Ht=Ut.data,zt=Ut.mutate,Gt=null===Ht||void 0===Ht?void 0:Ht.autocomplete_items;(0,d.useEffect)((function(){P(Ge)}),[Ge]),(0,d.useEffect)((function(){(0,ln.fS)(Qe,T)||A(Qe)}),[Qe,T]);var Wt=(0,f.Db)(dn.ZP.pipelines.useCreate(),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(e){var n=e.pipeline.uuid;u.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit")),Se()},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),Vt=(0,l.Z)(Wt,1)[0],Qt=(0,f.Db)(dn.ZP.pipelines.useUpdate(me,{update_content:!0}),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(){return Fe(!1)},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),qt=(0,l.Z)(Qt,2),Yt=qt[0],Kt=qt[1].isLoading,Xt=(0,d.useCallback)((function(e,n){var t=e||{},i=t.block,r=t.pipeline,o=void 0===r?{}:r,c=(n||{}).contentOnly;return Ne(new Date),Yt({pipeline:Nc(Nc(Nc({},Te),o),{},{blocks:In.map((function(e){var n,t=rn.current[e.uuid];"undefined"===typeof t&&(t=e.content);var r,o=tn.current[e.uuid];"undefined"===typeof o&&(o=e.callback_content);var a=null===(n=X[e.uuid])||void 0===n?void 0:n.filter((function(e){return!!e})),u=null===a||void 0===a?void 0:a.find((function(e){return e.error}));if(a){var s=[];a.forEach((function(n){var t=n.data,i=n.type;(h.tf.SCRATCHPAD===e.type||u||"table"!==i)&&(Array.isArray(t)&&(n.data=t.reduce((function(e,n){return n.match(Oi)?e:e.concat(n)}),[])),s.push(n))})),r=s.map((function(n,t){return{text_data:JSON.stringify(n),variable_uuid:"".concat(e.uuid,"_").concat(t)}}))}var d=Nc(Nc({},e),{},{callback_content:o,content:t,outputs:r});return(null===i||void 0===i?void 0:i.uuid)===e.uuid&&Object.entries(i).forEach((function(e){var n=(0,l.Z)(e,2),t=n[0],i=n[1];"object"===typeof i&&!Array.isArray(i)&&i?Object.entries(i).forEach((function(e){var n=(0,l.Z)(e,2),i=n[0],r=n[1];d[t]||(d[t]={}),d[t][i]=r})):d[t]=i})),c?{callback_content:d.callback_content,content:d.content,outputs:d.outputs,uuid:d.uuid}:d})),widgets:Mn.map((function(e){var n,t,i=on.current[e.uuid],r=Bn.current[e.uuid]||{};"undefined"===typeof i&&(i=e.content);var o=null===(n=X[e.uuid])||void 0===n?void 0:n.filter((function(e){return!!e})),l=null===o||void 0===o?void 0:o.find((function(e){return e.error}));if(o){var c=[];o.forEach((function(n){var t=n.data,i=n.type;(h.tf.SCRATCHPAD===e.type||l||"table"!==i)&&(Array.isArray(t)&&(n.data=t.reduce((function(e,n){return n.match(Oi)?e:e.concat(n)}),[])),c.push(n))})),t=c.map((function(n,t){return{text_data:JSON.stringify(n),variable_uuid:"".concat(e.uuid,"_").concat(t)}}))}return Nc(Nc(Nc({},e),r),{},{configuration:Nc(Nc({},e.configuration),r.configuration),content:i,outputs:t})}))})})}),[In,X,Te,Ne,Yt,Mn]),Jt=(0,d.useCallback)((function(e){Xt();var n=encodeURIComponent(e),t=(0,Dc.iV)()["file_paths[]"]||[];Array.isArray(t)||(t=[t]),t.includes(n)||t.push(n),(0,st.u7)({"file_paths[]":t,file_path:n})}),[Xt]),$t=(0,d.useCallback)((function(e,n){return Xt({pipeline:{name:e,type:n}}).then((function(e){var t,i;if(null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.pipeline){var r=e.data.pipeline.uuid;me!==r?window.location.href="/pipelines/".concat(r,"/edit"):(Se(),n!==(null===Te||void 0===Te?void 0:Te.type)&&Ze(),function(e,n,t){e.forEach((function(e){(0,Ce.t8)("".concat(t,"/").concat(e.uuid,"/codeCollapsed"),(0,Ce.Od)("".concat(n,"/").concat(e.uuid,"/codeCollapsed"))),(0,Ce.t8)("".concat(t,"/").concat(e.uuid,"/outputCollapsed"),(0,Ce.Od)("".concat(n,"/").concat(e.uuid,"/outputCollapsed")))}))}(In,me,r))}else null!==e&&void 0!==e&&null!==(i=e.data)&&void 0!==i&&i.error&&_((function(e){return Nc(Nc({},e),{},{links:[{label:"Check pipeline configuration",onClick:function(){Jt("pipelines/".concat(me,"/").concat(Pe.METADATA_YAML)),_(null)}}]})}))}))}),[In,Se,Ze,Jt,null===Te||void 0===Te?void 0:Te.type,me,Xt]),ei=(0,f.Db)((function(e){var n=e.uuid;return dn.ZP.blocks.pipelines.useDelete(me,encodeURIComponent(n))()}),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(e){var n=e.block,t=n.type,i=n.uuid;Tn((function(e){return(0,ln.oM)(e,e.findIndex((function(e){var n=e.uuid;return i===n})))})),Ze(),tt(null),t===h.tf.SCRATCHPAD&&Se()},onErrorCallback:function(e,n){var t=e.url_parameters,i=n.messages;_({errors:n,response:e}),null!==t&&void 0!==t&&t.block_uuid&&J((function(e){return Nc(Nc({},e),{},(0,c.Z)({},t.block_uuid,i.map((function(e){return{data:"".concat(e,"\n"),error:"".concat(e,"\n"),type:Fn.Gi.TEXT_PLAIN}}))))}))}})}}),ni=(0,l.Z)(ei,1)[0],ti=(0,f.Db)((function(e){var n=e.uuid;return dn.ZP.widgets.pipelines.useDelete(me,n)()}),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(e){var n=e.widget.uuid;Nn((function(e){return(0,ln.oM)(e,e.findIndex((function(e){var t=e.uuid;return n===t})))})),Ze(),Se()},onErrorCallback:function(e,n){var t=e.url_parameters,i=n.messages;_({errors:n,response:e}),null!==t&&void 0!==t&&t.block_uuid&&J((function(e){return Nc(Nc({},e),{},(0,c.Z)({},t.block_uuid,i.map((function(e){return{data:"".concat(e,"\n"),error:"".concat(e,"\n"),type:Fn.Gi.TEXT_PLAIN}}))))}))}})}}),ii=(0,l.Z)(ti,1)[0],ri=(0,f.Db)((function(e){var n=e.language,t=e.type,i=e.uuid,r="".concat(t,"/").concat(i);return n&&We[n]&&(r="".concat(r,".").concat(We[n].toLowerCase())),dn.ZP.blocks.useDelete(encodeURIComponent(r))()}),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(){zt(),Ze(),Se()},onErrorCallback:function(e,n){return _({displayMessage:"Error deleting block file. Check that there are no downstream blocks, then try again.",errors:n,response:e})}})}}),oi=(0,l.Z)(ri,1)[0],li=(0,f.Db)(dn.ZP.kernels.useUpdate(null===se||void 0===se?void 0:se.id),{onSuccess:function(e){return(0,pn.wD)(e,{callback:function(){return ce()},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),ci=(0,l.Z)(li,1)[0],ai=(0,d.useCallback)((function(){return ci({kernel:{action_type:"restart"}})}),[ci]),ui=(0,d.useCallback)((function(){return ci({kernel:{action_type:"interrupt"}})}),[ci]),si=((0,d.useCallback)((function(){window.confirm("Do you want to restart the kernel? All variables will be cleared.")&&ai()}),[ai]),(0,f.Db)(dn.ZP.blocks.pipelines.useCreate(me))),di=(0,l.Z)(si,1)[0],fi=(0,d.useCallback)((function(e,n,t){var i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,oe.Y6)();e.converted_from&&(i=rn.current[e.converted_from]);var o=e.language,l=e.type;if(Ae){var c=(0,ln.HK)((null===Te||void 0===Te?void 0:Te.blocks)||[],(function(e){return e.type})),a=c[h.tf.DATA_EXPORTER],u=c[h.tf.DATA_LOADER],s=c[h.tf.TRANSFORMER];if(h.tf.DATA_LOADER===l){if(h.t6.YAML!==o)return void _({displayMessage:"The source you\u2019re trying to add must contain the language ".concat(h.t6.YAML," and not ").concat(o,".")});if(u)return void _({displayMessage:"Pipeline ".concat(null===Te||void 0===Te?void 0:Te.uuid," already has a source: ").concat(null===u||void 0===u?void 0:u.uuid,".")})}else if(h.tf.TRANSFORMER===l){if(s)return void _({displayMessage:"Pipeline ".concat(null===Te||void 0===Te?void 0:Te.uuid," already has a transformer: ").concat(null===s||void 0===s?void 0:s.uuid,".")})}else if(h.tf.DATA_EXPORTER===l){if(h.t6.YAML!==o)return void _({displayMessage:"The destination you\u2019re trying to add must contain the language ".concat(h.t6.YAML," and not ").concat(o,".")});if(a)return void _({displayMessage:"Pipeline ".concat(null===Te||void 0===Te?void 0:Te.uuid," already has a destination: ").concat(null===a||void 0===a?void 0:a.uuid,".")})}}return di({block:Nc({content:i,name:r,priority:n},e)}).then((function(e){(0,pn.wD)(e,{callback:function(){var n=e.data.block;null===t||void 0===t||t(n),ot(null),Se(),Ze().then((function(e){var n=e.pipeline.blocks;return Tn((function(e){var t=(0,ln.HK)(e,(function(e){return e.uuid})),i=[];return n.forEach((function(e){var n=t[e.uuid];n?i.push(n):i.push(e)})),i}))}))},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}))}),[di,Se,Ze,Ae,Tn,_,Te]),pi=(0,d.useState)(!1),hi=pi[0],mi=pi[1];(0,d.useEffect)((function(){mi(!!(0,Ce.U2)(_e.k))}),[]);var vi=(0,wn.dd)((function(e){var n=e.block,t=e.idx,i=e.name,r=void 0===i?(0,oe.Y6)():i,o=e.onCreateCallback;return(0,le.jsx)(Ie,{block:n,defaultName:r,onClose:ji,onSave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return fi(n,t,o,null===e||void 0===e?void 0:e.name).then((function(){return ji()}))},pipeline:Te})}),{},[fi,Te],{background:!0,uuid:"configure_block_name_and_create"}),gi=(0,l.Z)(vi,2),bi=gi[0],ji=gi[1],yi=dn.ZP.widgets.pipelines.list(!g&&me),ki=(yi.data,yi.mutate,(0,f.Db)(dn.ZP.widgets.pipelines.useCreate(me))),Zi=(0,l.Z)(ki,1)[0],_i=(0,d.useCallback)((function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,oe.Y6)();return Zi({widget:Nc({name:i,priority:n,type:h.tf.CHART},e)}).then((function(e){return(0,pn.wD)(e,{callback:function(){var n=e.data.widget;null===t||void 0===t||t(n),Se(),Ze(),Ye(Me.CHARTS),w(n)},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}))}),[Se,Ze,Zi,Ye]);(0,d.useEffect)((function(){if(O){var e,n=null===(e=nn.current[O.uuid])||void 0===e?void 0:e.current;n&&(n.scrollIntoView(),w(null))}}),[O,w]),(0,d.useEffect)((function(){be!==me&&(Tn([]),Nn([]),ut([]),ne([]))}),[me,be]),(0,d.useEffect)((function(){"undefined"!==typeof(null===Te||void 0===Te?void 0:Te.blocks)&&Tn(Te.blocks)}),[null===Te||void 0===Te?void 0:Te.blocks]),(0,d.useEffect)((function(){"undefined"!==typeof(null===Te||void 0===Te?void 0:Te.widgets)&&Nn(Te.widgets)}),[null===Te||void 0===Te?void 0:Te.widgets]),(0,d.useEffect)((function(){(null===lt||void 0===lt?void 0:lt.length)>0&&0===(null===at||void 0===at?void 0:at.length)&&(ut(lt),yt(lt[0]))}),[at,lt]);var Ci=(0,xi.Z)(In);(0,d.useEffect)((function(){if("undefined"!==typeof(null===Te||void 0===Te?void 0:Te.blocks)&&(!In.length||!(0,ln.fS)(null===Ci||void 0===Ci?void 0:Ci.map((function(e){return e.uuid})).sort(),null===In||void 0===In?void 0:In.map((function(e){return e.uuid})).sort()))){var e=Di(Te.blocks),n=e.content,t=e.messages;rn.current=n,J((function(e){return Nc(Nc({},t),e)}))}}),[In,Ci,null===Te||void 0===Te?void 0:Te.blocks,Tn,J]),(0,d.useEffect)((function(){if(!Mn.length&&"undefined"!==typeof(null===Te||void 0===Te?void 0:Te.widgets)){var e=Di(Te.widgets),n=e.content,t=e.messages;on.current=n,J((function(e){return Nc(Nc({},t),e)}))}}),[null===Te||void 0===Te?void 0:Te.widgets,Tn,J,Mn]);var wi=(0,d.useCallback)((function(e,n,t){var i=In.find((function(t){var i=t.type,r=t.uuid;return i===n&&r===e}));if(i){if(tt(i),null!==en&&void 0!==en&&en.current){var r,o=en.current["".concat(i.type,"s/").concat(i.uuid,".py")];null===o||void 0===o||null===(r=o.current)||void 0===r||r.scrollIntoView()}(0,st.u7)({file_path:null,"file_paths[]":[]})}else if(n===h.tf.CHART){var l=Mn.find((function(n){return n.uuid===e}));if(l&&(tt(l),null!==nn&&void 0!==nn&&nn.current)){var c,a=nn.current[l.uuid];null===a||void 0===a||null===(c=a.current)||void 0===c||c.scrollIntoView()}}else t&&Jt(t)}),[In,Jt,Mn]);(0,d.useEffect)((function(){if(ze&&!nt){var e=In.find((function(e){var n=e.uuid;return ze===n}));e&&wi(e.uuid,e.type,null)}else(null===Ci||void 0===Ci?void 0:Ci.length)!==(null===In||void 0===In?void 0:In.length)&&nt&&wi(nt.uuid,nt.type,null)}),[ze,null===Ci||void 0===Ci?void 0:Ci.length,In,wi,nt]);var Si=(0,d.useMemo)((function(){return new fe.Z}),[]),Ei=(0,d.useMemo)((function(){return{api_key:Hn.l,token:Si.decodedToken.token}}),[Si]),Pi=(0,s.ZP)((0,zn.Ib)(),{onMessage:function(e){if(e){var n=JSON.parse(e.data),t=n.execution_state,i=n.msg_type,r=n.uuid,l=In.find((function(e){var n=e.uuid;return r===n}));"stream_pipeline"!==i?J((function(e){var t=e[r]||[];return Nc(Nc({},e),{},(0,c.Z)({},r,t.concat(n)))})):(ne((function(e){return[].concat((0,o.Z)(e),[n])})),Fn.uF.IDLE===t&&(Jn([]),Ze(),r||Wn(!1))),Fn.uF.BUSY===t?Jn((function(e){return e.find((function(e){var n=e.uuid;return r===n}))||!l?e:e.concat(l)})):Fn.uF.IDLE===t&&Jn((function(e){return e.filter((function(e){var n=e.uuid;return r!==n}))})),Fe(!0)}},onOpen:function(){return console.log("socketUrlPublish opened")},shouldReconnect:function(e){return console.log("Attempting to reconnect..."),!0}}).sendMessage,Ii=(0,d.useCallback)((function(){Xt().then((function(){Wn(!0),ne([]),Pi(JSON.stringify(Nc(Nc({},Ei),{},{execute_pipeline:!0,pipeline_uuid:me})))}))}),[me,Xt,Pi,Ei]),Ti=(0,d.useCallback)((function(){Pi(JSON.stringify(Nc(Nc({},Ei),{},{cancel_pipeline:!0,pipeline_uuid:me})))}),[me,Pi,Ei]),Ai=(0,d.useCallback)((function(e){var n=e.block,t=e.code,i=e.ignoreAlreadyRunning,r=e.runDownstream,o=void 0!==r&&r,l=e.runSettings,c=void 0===l?{}:l,a=e.runUpstream,u=void 0!==a&&a,s=e.runTests,d=void 0!==s&&s,f=n.uuid;Xn.find((function(e){var n=e.uuid;return f===n}))&&!i||(Pi(JSON.stringify(Nc(Nc({},Ei),{},{code:t,pipeline_uuid:null===Te||void 0===Te?void 0:Te.uuid,run_downstream:o,run_settings:c,run_tests:d,run_upstream:u,type:n.type,uuid:f}))),J((function(e){return delete e[f],e})),H(!1),Jn((function(e){return e.find((function(e){var n=e.uuid;return f===n}))?e:e.concat(n)}))),Ze()}),[Ze,Te,Xn,Pi,J,Jn,H,Ei]),Ri=(0,d.useCallback)((function(e){var n=e.block;return Xt({block:{outputs:[],uuid:n.uuid}},{contentOnly:!0}).then((function(){return Ai(e)}))}),[Ai,Xt]),Bi=(null===at||void 0===at?void 0:at.length)>0?Xe:Xe.filter((function(e){return e.key!==Me.DATA})),Li=(0,d.useMemo)((function(){return(0,le.jsx)(Rc,{activeView:He,afterWidth:j,autocompleteItems:Gt,blockRefs:en,blocks:In,cancelPipeline:Ti,chartRefs:nn,deleteWidget:ii,editingBlock:Qn,executePipeline:Ii,fetchFileTree:Se,fetchPipeline:Ze,fetchSecrets:Sn,fetchVariables:Zn,globalVariables:_n,insights:Rt,interruptKernel:ui,isPipelineExecuting:Gn,messages:X,metadata:Mt,onChangeChartBlock:mn,pipeline:Te,pipelineMessages:ee,runBlock:Ri,runningBlocks:Xn,sampleData:St,savePipelineContent:Xt,secrets:En,selectedBlock:nt,selectedFilePath:E,setActiveSidekickView:Ye,setAnyInputFocused:W,setDisableShortcuts:q,setEditingBlock:Yn,setErrors:_,setSelectedBlock:tt,setTextareaFocused:H,statistics:Bt,textareaFocused:U,updateWidget:Ln,widgets:Mn})}),[He,j,Gt,en,In,Ti,ii,Qn,Ii,Se,Ze,Sn,Zn,_n,Rt,ui,Gn,X,Mt,mn,Te,ee,Ri,Xn,St,Xt,En,nt,E,Ye,W,Yn,_,H,Bt,U,Ln,Mn]),Fi=(0,d.useMemo)((function(){return(0,le.jsx)(Co,{addNewBlockAtIndex:hi?fi:function(e,n,t,i){return new Promise((function(r,o){h.tf.DBT===(null===e||void 0===e?void 0:e.type)&&h.t6.SQL===(null===e||void 0===e?void 0:e.language)?fi(e,n,t,i):bi({block:e,idx:n,name:i,onCreateCallback:t})}))},addWidget:function(e,n){var t=n.onCreateCallback;return _i(e,Mn.length,t)},anyInputFocused:G,autocompleteItems:Gt,blockRefs:en,blocks:In,dataProviders:jn,deleteBlock:ni,disableShortcuts:Q,fetchFileTree:Se,fetchPipeline:Ze,fetchSampleData:wt,files:Ee,globalVariables:_n,interruptKernel:ui,isPipelineUpdating:Kt,kernel:se,mainContainerRef:Y,mainContainerWidth:gn,messages:X,onChangeCallbackBlock:un,onChangeCodeBlock:sn,openSidekickView:Ke,pipeline:Te,pipelineContentTouched:Le,pipelineLastSaved:De,restartKernel:ai,runBlock:Ri,runningBlocks:Xn,savePipelineContent:Xt,selectedBlock:nt,setAnyInputFocused:W,setEditingBlock:Yn,setErrors:_,setIntegrationStreams:mt,setMessages:J,setOutputBlocks:ut,setPipelineContentTouched:Fe,setRecsWindowOpenBlockIdx:ot,setRunningBlocks:Jn,setSelectedBlock:tt,setSelectedOutputBlock:yt,setSelectedStream:bt,setTextareaFocused:H,textareaFocused:U,widgets:Mn})}),[fi,_i,G,Gt,hi,en,In,jn,ni,Q,Se,Ze,wt,Ee,_n,ui,Kt,se,Y,gn,X,un,sn,Ke,Te,Le,De,ai,Ri,Xn,Xt,nt,W,Yn,_,J,Fe,Jn,tt,H,bi,U,Mn]),Ui=(0,d.useMemo)((function(){if(r===Eo.b)return(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(_t,{filePaths:T,filesTouched:B,isBusy:Xn.length>=1,isPipelineUpdating:Kt,kernel:se,pipeline:Te,pipelineContentTouched:Le,pipelineLastSaved:De,restartKernel:ai,savePipelineContent:Xt,selectedFilePath:E,setErrors:_,updatePipelineMetadata:$t}),(null===T||void 0===T?void 0:T.length)>0&&(0,le.jsx)(pt,{filePaths:T,filesTouched:B,savePipelineContent:Xt,selectedFilePath:E})]})}),[B,Kt,se,r,Te,Le,De,ai,Xn,Xt,E,T,_,$t]),Hi=((0,d.useMemo)((function(){var e=null===In||void 0===In?void 0:In.filter((function(e){var n=e.type;return h.tf.SCRATCHPAD!==n}));return(0,le.jsxs)(ve.Z,{alignItems:"center",fullWidth:!0,justifyContent:"space-between",children:[(0,le.jsx)(Dn.Z,{children:Bi.map((function(e){var n=e.key,t=e.label,i=n===He,r=Je[n];return(0,le.jsx)(je.Z,{pl:1,children:(0,le.jsx)(ge.ZP,{beforeElement:r&&(0,le.jsx)(r,{}),blackBorder:!0,compact:!0,onClick:function(){return Ye(n)},selected:i,uuid:n,children:t})},n)}))}),(0,le.jsxs)(je.Z,{px:1,ref:$e,style:{position:"relative"},children:[(0,le.jsx)(ge.ZP,{beforeElement:(0,le.jsx)(Ve.mm,{}),blackBorder:!0,compact:!0,disabled:0===(null===e||void 0===e?void 0:e.length),onClick:function(){return M(!0)},primaryGradient:!0,uuid:"Pipeline/afterHeader/add_chart",children:"Add chart"}),(0,le.jsx)(he.Z,{disableEscape:!0,onClickOutside:function(){return M(!1)},open:D,children:(0,le.jsx)(ue,{addWidget:function(e,n){var t=n.onCreateCallback;return _i(e,Mn.length,t)},block:e[e.length-1],onClickCallback:function(){return M(!1)},open:D,parentRef:$e,rightOffset:2*re.iI,runBlock:Ri})})]})]})}),[He,_i,In,Bi,$e,Ri,Ye,M,D,Mn]),(0,d.useMemo)((function(){var e;return null===ft||void 0===ft||null===(e=ft.filter((function(e){return(0,ln.sE)(null===Ot||void 0===Ot?void 0:Ot.outputs,(function(n){return n.variable_uuid==="output_sample_data_".concat(e)}))})))||void 0===e?void 0:e.map((function(e){return(0,le.jsx)(je.Z,{pl:1,children:(0,le.jsx)(ge.ZP,{blackBorder:!0,compact:!0,muted:!0,onClick:function(){return bt(e)},selected:gt===e,uuid:e,children:e})},e)}))}),[Ot,ft,gt])),zi=(0,d.useRef)(null),Gi=(0,d.useMemo)((function(){return(0,le.jsx)(Rn,{addNewBlock:function(e,n){fi(e,In.length,n,e.name),(null===Qe||void 0===Qe?void 0:Qe.length)>=1&&u.push("/pipelines/".concat(me,"/edit"))},blocks:In,deleteBlockFile:oi,deleteWidget:ii,fetchFileTree:Se,fetchPipeline:Ze,files:Ee,onSelectBlockFile:wi,openFile:Jt,openPipeline:function(e){Zt(),u.push("/pipelines/[pipeline]/edit","/pipelines/".concat(e,"/edit"))},openSidekickView:Ke,pipeline:Te,ref:zi,setErrors:_,setSelectedBlock:tt,widgets:Mn})}),[fi,In,oi,ii,Se,Ze,null===Qe||void 0===Qe?void 0:Qe.length,Ee,wi,Jt,Ke,Te,me,Zt,u,_,tt,Mn]),Wi=(0,d.useMemo)((function(){if(r===Eo.b)return(0,le.jsx)(et,{cancelPipeline:Ti,createPipeline:Vt,executePipeline:Ii,interruptKernel:ui,isPipelineExecuting:Gn,restartKernel:ai,savePipelineContent:Xt,setMessages:J})}),[Ti,Vt,Ii,ui,Gn,r,ai,Xt,J]);return(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(ht.Z,{title:null===Te||void 0===Te?void 0:Te.name}),(0,le.jsxs)(Ao,{after:Li,afterHidden:g,afterSubheader:(null===at||void 0===at?void 0:at.length)>0&&He===Me.DATA&&(0,le.jsxs)(ve.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[!Ae&&at.map((function(e){var n=e.uuid,t=(null===jt||void 0===jt?void 0:jt.uuid)===n;return(0,le.jsx)(je.Z,{pl:1,children:(0,le.jsx)(ge.ZP,{afterElement:t?(0,le.jsx)(pe.Z,{basic:!0,highlightOnHover:!0,onClick:function(){!function(e,n){var t=Ni(e).filter((function(e){return e!==n}));(0,Ce.t8)(Mi(e),t)}(me,e.uuid),ut((function(e){return e.filter((function(e){return e.uuid!==n}))}))},padding:"2px",transparent:!0,children:(0,le.jsx)(Ve.x8,{muted:!0,size:1.25*re.iI})}):null,blackBorder:!0,compact:!0,muted:!0,onClick:function(){return yt(e)},selected:t,uuid:n,children:n})},n)})),Ae&&Hi]}),before:Gi,beforeHeader:Wi,errors:Z,headerOffset:(null===T||void 0===T?void 0:T.length)>0?36:0,mainContainerHeader:Ui,mainContainerRef:Y,page:r,pipeline:Te,setAfterHidden:b,setAfterWidthForChildren:y,setErrors:_,setMainContainerWidth:bn,children:[(0,le.jsx)("div",{style:{height:E?0:null,opacity:E?0:null,visibility:E?"hidden":null},children:(0,le.jsx)(de,{uuid:"PipelineDetail/".concat(me),children:Fi})}),null===Qe||void 0===Qe?void 0:Qe.map((function(e){return(0,le.jsx)("div",{style:{display:E===e?null:"none"},children:(0,le.jsx)(de,{uuid:"FileEditor/".concat(decodeURIComponent(e)),children:(0,le.jsx)(qn,{active:E===e,addNewBlock:function(e,n){fi(e,In.length,n,e.name),u.push("/pipelines/".concat(me,"/edit"))},fetchPipeline:Ze,fetchVariables:Zn,filePath:e,openSidekickView:Ke,pipeline:Te,selectedFilePath:E,setErrors:_,setFilesTouched:L,setSelectedBlock:tt})})},e)})),(0,le.jsx)(je.Z,{pb:Ge?0:Math.max(Math.floor(m*(2/3)/re.iI),0)})]})]})}Bc.getInitialProps=function(){var e=(0,r.Z)(u().mark((function e(n){var t,i,r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,i=Eo.b,r={page:i,pipeline:{uuid:t}},e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var Lc=(0,Ro.Z)(Bc)},11366:function(e,n,t){"use strict";t.d(n,{k:function(){return i}});var i="automatically_name_blocks"},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return d},AY:function(){return f},BP:function(){return s},JX:function(){return u},OC:function(){return o},Pc:function(){return p},d$:function(){return a},lJ:function(){return h},n1:function(){return c}});var i=t(92083),r=t.n(i),o="YYYY-MM-DD HH:mm:ss",l="YYYY-MM-DD HH:mm",c="YYYY-MM-DD";function a(e,n){var t=n.utcFormat,i=n.dayAgo,o=r()(e);return t&&(o=o.utc()),i&&(o=o.subtract(1,"days")),o.format(l)}function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:l)}function s(e,n,t){return r()(e).utc().hours(+n).minutes(+t).format()}function d(e){return r()(e).unix()}function f(e,n,t){return"".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t)}function p(e){var n=r().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function h(e){return e.padStart(2,"0")}},51504:function(e,n,t){"use strict";t.d(n,{y:function(){return o}});var i=t(75582),r=t(16115);function o(e,n){var t=e.map((function(e){return String(e)})),o=e.includes(r.PQ),l=e.includes(r.zX),c=e.includes(r.XR),a=r.xU.map((function(e){return String(e)})),u=r.vk.map((function(e){return String(e)})),s=r.Tr.map((function(e){return String(e)})),d=Object.entries(n).find((function(e){var n=(0,i.Z)(e,2),r=n[0];return n[1]&&!t.includes(String(r))&&(!l||!u.includes(String(r)))&&(!o||!a.includes(String(r)))&&(!c||!s.includes(String(r)))}));return e.every((function(e){return n[e]}))&&!d}},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return f},u7:function(){return d}});var i=t(75582),r=t(82394),o=t(34376),l=t.n(o),c=t(59e3),a=t(24224);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},r=t.replaceParams,o=t.pushHistory,a=r?{}:(0,c.iV)();n=window.location.pathname;var u=o?l().push:l().replace,d=s(s({},a),e);Object.entries(e).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];"undefined"!==typeof r&&null!==r||delete d[t]}));var f=(0,c.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(n.split("?")[0]).concat(f);return u(l().router.pathname,p,{shallow:!0})}function f(e,n,t){var r=t.addingMultipleValues,o=t.isList,l=t.itemsPerPage,c=t.resetLimitParams,u=s({},e);r?Object.entries(n).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];if(Array.isArray(r)){var o="".concat(t,"[]");u[o]=r.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1],o=String(r),l="".concat(t,"[]"),c=u[l];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?u[l]=(0,a.Od)(c,(function(e){return e===o})):u[l]=c.concat(o):u[l]=[o]})):u=s(s({},u),n),c&&(u._limit=l||20,u._offset=0),d(u)}},76419:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/edit",function(){return t(98274)}])}},function(e){e.O(0,[3662,3850,2083,5896,4804,1774,5872,2524,9565,2714,2125,7011,6085,8789,4538,9767,9386,9898,1830,4463,6532,1286,7281,6641,9774,2888,179],(function(){return n=76419,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-589e73550828aedf.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-589e73550828aedf.js deleted file mode 100644 index 66dacea29852..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-589e73550828aedf.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4794],{59739:function(e,n,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,i,c){if(c!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),o=t(23831),i=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],i.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}))},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return u},U:function(){return l}});var r=t(9518),o=t(23831),i=t(73942),c=t(49125),l=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],i.TR,14*c.iI,c.cd*c.iI,c.cd*c.iI,40*c.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||o.Z.interactive).linkPrimary,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],i.n_,c.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||o.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*c.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*c.iI,"px;\n ")}))},2713:function(e,n,t){"use strict";var r=t(82394),o=t(44495),i=t(67971),c=t(55378),l=t(86673),u=t(19711),a=t(18025),s=t(49125),d=t(24224),p=t(28598);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*s.iI}},"spacing-".concat(v))),j?n.push((0,h.jsx)(c.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:g,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:g,children:O},v)):n.push((0,h.jsx)("div",{style:{padding:4},children:(0,h.jsx)(o.Z,{borderLess:!0,compact:g,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:g,children:O},"button-tab-".concat(v))}))})),n}),[d,m,b]),j=(0,h.jsx)(i.Z,{alignItems:"center",children:v});return t?j:(0,h.jsx)(p,{allowScroll:n,noPadding:a,children:j})}},38341:function(e,n,t){"use strict";var r=t(21831),o=t(82394),i=t(26304),c=(t(82684),t(9518)),l=t(67971),u=t(86673),a=t(19711),s=t(23831),d=t(10503),p=t(73942),f=t(49125),h=t(28598),m=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n\n \n ",a.iI,a.iI,2.5*a.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).inverted,";\n ")})),m=function(e,n){var t=e.beforeIcon,r=e.children,i=e.label,c=e.multiple,u=e.placeholder,a=(0,o.Z)(e,d);return(0,s.jsx)(l.Z,f(f({},a),{},{beforeIcon:t,input:(0,s.jsxs)(h,f(f({multiple:c},a),{},{children:[(i||u)&&(0,s.jsx)("option",{disabled:!0,selected:!0,value:"",children:i||u}),r]})),label:i,placeholder:u,ref:n,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};n.Z=i.forwardRef(m)},82944:function(e,n,t){"use strict";var r=t(82394),o=t(91835),i=t(82684),c=t(9518),l=t(69898),u=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n=1&&t.push(r.join(" ").trim()),r=[]):r.filter((function(e){return e})).length<=1&&r.push(e.trim())})),t.push(r.join(" ").trim()),t.map((function(n){return function(e){var n=e.content.trim().match(Q),t=null===n||void 0===n?void 0:n[1],r=null===n||void 0===n?void 0:n[2],o={};return r&&(0,L.Pb)(r)&&(o=JSON.parse(r)),K(K({},e),{},{createdAt:t,data:o})}(K(K({},e),{},{content:n}))}))}function ee(e){return e&&X().unix(e).utc().format("YYYY-MM-DD HH:mm:ss.SSS")}var ne=t(24224);function te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function re(e){for(var n=1;n=ce&&+(null===H||void 0===H?void 0:H._limit)>=le,ae=(0,h.useMemo)((function(){return(0,ne.YC)(oe.concat(ie).reduce((function(e,n){return e.concat($(n))}),[]),(function(e){var n=e.data;return(null===n||void 0===n?void 0:n.timestamp)||0}))}),[oe,ie]),fe=(0,h.useMemo)((function(){return ae.filter((function(e){var n=e.data,t=[];if(!l)return!0;if(l["level[]"]&&t.push(l["level[]"].includes(null===n||void 0===n?void 0:n.level)),l["block_type[]"]){var r,o,i=null===n||void 0===n?void 0:n.block_uuid;if(q)i=null===n||void 0===n||null===(o=n.block_uuid)||void 0===o?void 0:o.split(":").slice(0,2).join(":");t.push(l["block_type[]"].includes(null===(r=U[i])||void 0===r?void 0:r.type))}if(l["pipeline_run_id[]"]){var c=null===n||void 0===n?void 0:n.pipeline_run_id;t.push(l["pipeline_run_id[]"].includes(String(c)))}if(l["block_run_id[]"]){var u=null===n||void 0===n?void 0:n.block_run_id;t.push(l["block_run_id[]"].includes(String(u)))}return t.every((function(e){return e}))}))}),[U,q,ae,l]),me=fe.length,ge=(0,je.Z)(H);(0,h.useEffect)((function(){var e;z&&(0,T.u7)((e={},(0,i.Z)(e,xe,Oe),(0,i.Z)(e,ye,0),(0,i.Z)(e,"start_timestamp",X),e))}),[z]),(0,h.useEffect)((function(){(0,we.Xy)(H,ge)||u(H)}),[H,ge]);var be=(0,je.Z)(v);(0,h.useEffect)((function(){var e=H.log_uuid;!e||v||be||j(ae.find((function(n){var t=n.data;return(null===t||void 0===t?void 0:t.uuid)===e})))}),[ae,H,v,be]),(0,h.useEffect)((function(){var e;C&&!te&&(null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView(),I(!1))}),[C,te]);var ve=H._limit,Ze=H._offset,ke=+(ve||0),Ce=+(Ze||0),Ie=Math.max(ce,le),De=(0,h.useCallback)((function(){var e,n=ke,t=Ce;(ce>ke||le>ke)&&(n=Math.min(Ie,ke+Oe),t=Math.min(Ce+Oe,Ie-Ie%Oe),(0,T.u7)(Re(Re({},H),{},(e={},(0,i.Z)(e,xe,n),(0,i.Z)(e,ye,t),e))))}),[Ie,ke,Ce,H,ce,le]),Ae=(0,h.useCallback)((function(){var e,n=ke,t=Ce;ke>=Oe&&(n=Math.max(Oe,ke-Oe),ke>=Ie&&Ie%Oe!==0&&(n=Ie-Ie%Oe),t=Math.max(0,Ce-Oe),(0,T.u7)(Re(Re({},H),{},(e={},(0,i.Z)(e,xe,n),(0,i.Z)(e,ye,t),e))))}),[Ie,ke,Ce,H]);return(0,A.jsxs)(de.Z,{after:v&&(0,A.jsx)(se,{log:v,onClose:function(){(0,T.u7)((0,i.Z)({},Ne,null)),j(null)}}),afterHidden:!v,afterWidth:80*_.iI,before:(0,A.jsx)(M,{blocks:F,query:l}),beforeWidth:20*_.iI,breadcrumbs:[{label:function(){return"Logs"}}],pageName:Te.M.PIPELINE_LOGS,pipeline:N,subheader:null,title:function(e){var n=e.name;return"".concat(n," logs")},uuid:"pipeline/logs",children:[(0,A.jsx)(y.Z,{px:_.cd,py:1,children:(0,A.jsxs)(O.ZP,{children:[!te&&(0,A.jsxs)(A.Fragment,{children:[(0,L.x6)(me)," logs found",(0,A.jsx)(Le,{allPastLogsLoaded:ue,loadNewerLogInterval:Ae,loadPastLogInterval:De,selectedRange:P,setSelectedRange:w})]}),te&&"Searching..."]})}),(0,A.jsx)(b.Z,{light:!0}),te&&(0,A.jsx)(y.Z,{p:_.cd,children:(0,A.jsx)(he.Z,{})}),!te&&fe.length>=1&&(0,A.jsx)(J.Z,{columnFlex:[null,null,1,9,null],columnMaxWidth:function(e){return 3===e?"100px":null},columns:[{label:function(){return""},uuid:"!"},{uuid:"Date"},{uuid:"Block"},{uuid:"Message"},{label:function(){return""},uuid:">"}],compact:!0,onClickRow:function(e){var n,t=fe[e],r=null===(n=t.data)||void 0===n?void 0:n.uuid;l.log_uuid===r&&(r=null),(0,T.u7)((0,i.Z)({},Ne,r)),j(r?t:null)},rows:null===fe||void 0===fe?void 0:fe.map((function(e){var n,r,c,l=e.content,u=(e.createdAt,e.data),s=e.name,p=u||{},f=p.block_uuid,h=p.level,m=p.message,b=(p.pipeline_uuid,p.timestamp),v=f||s.split(".log")[0],j=v.split(":");pe.qL.INTEGRATION===N.type&&(v=j[0],r=j[1],c=j[2]);var Z=U[v];if(Z||(Z=U[j[0]]),Z){var P=(0,E.qn)(Z.type,{blockColor:Z.color,theme:t}).accent;n=(0,A.jsx)(x.Z,{alignItems:"center",children:(0,A.jsx)(d(),{as:"/pipelines/".concat(o,"/edit?block_uuid=").concat(v),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,A.jsxs)(W.Z,{block:!0,fullWidth:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,A.jsx)(g.Z,{color:P,size:1.5*_.iI,square:!0}),(0,A.jsx)(y.Z,{mr:1}),(0,A.jsxs)(O.ZP,{monospace:!0,children:[v,r&&": ",r&&(0,A.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,children:r}),c>=0&&": ",c>=0&&(0,A.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,children:c})]})]})})})}return[(0,A.jsx)(B.Z,{alignItems:"center",justifyContent:"center",children:(0,A.jsx)(D,Re({},(0,i.Z)({},null===h||void 0===h?void 0:h.toLowerCase(),!0)))},"log_type"),(0,A.jsx)(O.ZP,{default:!0,monospace:!0,children:ee(b)},"log_timestamp"),n,(0,A.jsx)(O.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,title:m||l,children:(0,A.jsx)(a(),{children:m||l})},"log_message"),(0,A.jsx)(B.Z,{flex:1,justifyContent:"flex-end",children:(0,A.jsx)(G._Q,{default:!0,size:2*_.iI})},"chevron_right_icon")]})),uuid:"logs"}),(0,A.jsx)(y.Z,{p:_.cd,ref:r,children:(0,A.jsx)(Y.ZP,{blackBorder:!0,inline:!0,onClick:function(){I(!0),"0"===(null===H||void 0===H?void 0:H._offset)&&(null===H||void 0===H?void 0:H._limit)===String(Oe)?Q(null):(0,T.u7)({_limit:Oe,_offset:0})},paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/toolbar/load_newest",children:"Load latest logs"})})]})}Ye.getInitialProps=function(){var e=(0,o.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var We=(0,fe.Z)(Ye)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return d},AY:function(){return p},BP:function(){return s},JX:function(){return a},OC:function(){return i},Pc:function(){return f},d$:function(){return u},lJ:function(){return h},n1:function(){return l}});var r=t(92083),o=t.n(r),i="YYYY-MM-DD HH:mm:ss",c="YYYY-MM-DD HH:mm",l="YYYY-MM-DD";function u(e,n){var t=n.utcFormat,r=n.dayAgo,i=o()(e);return t&&(i=i.utc()),r&&(i=i.subtract(1,"days")),i.format(c)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?i:c)}function s(e,n,t){return o()(e).utc().hours(+n).minutes(+t).format()}function d(e){return o()(e).unix()}function p(e,n,t){return"".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t)}function f(e){var n=o().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function h(e){return e.padStart(2,"0")}},84779:function(e,n,t){"use strict";t.d(n,{DU:function(){return c},JI:function(){return l},Jw:function(){return i}});var r=t(75582),o=function(e){var n=String(e).split("."),t=(0,r.Z)(n,2),o=t[0],i=t[1];return"".concat(o.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(i?".".concat(i):"")},i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=parseFloat(e).toFixed(n);return 0===e&&(t=parseFloat(e).toFixed(0)),o(t)};function c(e){if(void 0===e)return"";var n=1===e||0===e?100*e:(100*e).toFixed(2);return"".concat(n,"%")}function l(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return p},u7:function(){return d}});var r=t(75582),o=t(82394),i=t(34376),c=t.n(i),l=t(59e3),u=t(24224);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},o=t.replaceParams,i=t.pushHistory,u=o?{}:(0,l.iV)();n=window.location.pathname;var a=i?c().push:c().replace,d=s(s({},u),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],o=n[1];"undefined"!==typeof o&&null!==o||delete d[t]}));var p=(0,l.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return a(c().router.pathname,f,{shallow:!0})}function p(e,n,t){var o=t.addingMultipleValues,i=t.isList,c=t.itemsPerPage,l=t.resetLimitParams,a=s({},e);o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],o=n[1];if(Array.isArray(o)){var i="".concat(t,"[]");a[i]=o.map(String)}})):i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],o=n[1],i=String(o),c="".concat(t,"[]"),l=a[c];l&&Array.isArray(l)?(l=l.map(String)).includes(i)?a[c]=(0,u.Od)(l,(function(e){return e===i})):a[c]=l.concat(i):a[c]=[i]})):a=s(s({},a),n),l&&(a._limit=c||20,a._offset=0),d(a)}},62453:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/logs",function(){return t(44613)}])}},function(e){e.O(0,[3850,2083,4804,9565,4495,9767,9386,9898,1830,2626,4463,9774,2888,179],(function(){return n=62453,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-72011b08ef047531.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-72011b08ef047531.js new file mode 100644 index 000000000000..0997bffb365d --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-72011b08ef047531.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4794],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,c){if(c!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return u},U:function(){return l}});var r=t(9518),i=t(23831),o=t(73942),c=t(49125),l=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],o.TR,14*c.iI,c.cd*c.iI,c.cd*c.iI,40*c.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.n_,c.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*c.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*c.iI,"px;\n ")}))},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),o=t(67971),c=t(55378),l=t(86673),u=t(19711),a=t(18025),s=t(49125),d=t(24224),p=t(28598);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*s.iI}},"spacing-".concat(b))),j?n.push((0,h.jsx)(c.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:g,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:g,children:Z},b)):n.push((0,h.jsx)("div",{style:{padding:4},children:(0,h.jsx)(i.Z,{borderLess:!0,compact:g,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:g,children:Z},"button-tab-".concat(b))}))})),n}),[d,m,v]),j=(0,h.jsx)(o.Z,{alignItems:"center",children:b});return t?j:(0,h.jsx)(p,{allowScroll:n,noPadding:a,children:j})}},38341:function(e,n,t){"use strict";var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(9518)),l=t(67971),u=t(86673),a=t(19711),s=t(23831),d=t(10503),p=t(73942),f=t(49125),h=t(28598),m=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n=1&&t.push(r.join(" ").trim()),r=[]):r.filter((function(e){return e})).length<=1&&r.push(e.trim())})),t.push(r.join(" ").trim()),t.map((function(n){return function(e){var n=e.content.trim().match(Q),t=null===n||void 0===n?void 0:n[1],r=null===n||void 0===n?void 0:n[2],i={};return r&&(0,L.Pb)(r)&&(i=JSON.parse(r)),K(K({},e),{},{createdAt:t,data:i})}(K(K({},e),{},{content:n}))}))}function ee(e){return e&&X().unix(e).utc().format("YYYY-MM-DD HH:mm:ss.SSS")}var ne=t(24224);function te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function re(e){for(var n=1;n=ce&&+(null===H||void 0===H?void 0:H._limit)>=le,ae=(0,h.useMemo)((function(){return(0,ne.YC)(ie.concat(oe).reduce((function(e,n){return e.concat($(n))}),[]),(function(e){var n=e.data;return(null===n||void 0===n?void 0:n.timestamp)||0}))}),[ie,oe]),fe=(0,h.useMemo)((function(){return ae.filter((function(e){var n=e.data,t=[];if(!l)return!0;if(l["level[]"]&&t.push(l["level[]"].includes(null===n||void 0===n?void 0:n.level)),l["block_type[]"]){var r,i,o=null===n||void 0===n?void 0:n.block_uuid;if(q)o=null===n||void 0===n||null===(i=n.block_uuid)||void 0===i?void 0:i.split(":").slice(0,2).join(":");t.push(l["block_type[]"].includes(null===(r=U[o])||void 0===r?void 0:r.type))}if(l["pipeline_run_id[]"]){var c=null===n||void 0===n?void 0:n.pipeline_run_id;t.push(l["pipeline_run_id[]"].includes(String(c)))}if(l["block_run_id[]"]){var u=null===n||void 0===n?void 0:n.block_run_id;t.push(l["block_run_id[]"].includes(String(u)))}return t.every((function(e){return e}))}))}),[U,q,ae,l]),me=fe.length,ge=(0,je.Z)(H);(0,h.useEffect)((function(){var e;z&&(0,T.u7)((e={},(0,o.Z)(e,xe,Ze),(0,o.Z)(e,ye,0),(0,o.Z)(e,"start_timestamp",X),e))}),[z]),(0,h.useEffect)((function(){(0,we.Xy)(H,ge)||u(H)}),[H,ge]);var ve=(0,je.Z)(b);(0,h.useEffect)((function(){var e=H.log_uuid;!e||b||ve||j(ae.find((function(n){var t=n.data;return(null===t||void 0===t?void 0:t.uuid)===e})))}),[ae,H,b,ve]),(0,h.useEffect)((function(){var e;C&&!te&&(null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView(),I(!1))}),[C,te]);var be=H._limit,Oe=H._offset,ke=+(be||0),Ce=+(Oe||0),Ie=Math.max(ce,le),De=(0,h.useCallback)((function(){var e,n=ke,t=Ce;(ce>ke||le>ke)&&(n=Math.min(Ie,ke+Ze),t=Math.min(Ce+Ze,Ie-Ie%Ze),(0,T.u7)(Re(Re({},H),{},(e={},(0,o.Z)(e,xe,n),(0,o.Z)(e,ye,t),e))))}),[Ie,ke,Ce,H,ce,le]),Ee=(0,h.useCallback)((function(){var e,n=ke,t=Ce;ke>=Ze&&(n=Math.max(Ze,ke-Ze),ke>=Ie&&Ie%Ze!==0&&(n=Ie-Ie%Ze),t=Math.max(0,Ce-Ze),(0,T.u7)(Re(Re({},H),{},(e={},(0,o.Z)(e,xe,n),(0,o.Z)(e,ye,t),e))))}),[Ie,ke,Ce,H]);return(0,E.jsxs)(de.Z,{after:b&&(0,E.jsx)(se,{log:b,onClose:function(){(0,T.u7)((0,o.Z)({},Ne,null)),j(null)}}),afterHidden:!b,afterWidth:80*_.iI,before:(0,E.jsx)(M,{blocks:F,query:l}),beforeWidth:20*_.iI,breadcrumbs:[{label:function(){return"Logs"}}],pageName:Te.M.PIPELINE_LOGS,pipeline:N,subheader:null,title:function(e){var n=e.name;return"".concat(n," logs")},uuid:"pipeline/logs",children:[(0,E.jsx)(y.Z,{px:_.cd,py:1,children:(0,E.jsxs)(Z.ZP,{children:[!te&&(0,E.jsxs)(E.Fragment,{children:[(0,L.x6)(me)," logs found",(0,E.jsx)(Le,{allPastLogsLoaded:ue,loadNewerLogInterval:Ee,loadPastLogInterval:De,selectedRange:P,setSelectedRange:w})]}),te&&"Searching..."]})}),(0,E.jsx)(v.Z,{light:!0}),te&&(0,E.jsx)(y.Z,{p:_.cd,children:(0,E.jsx)(he.Z,{})}),!te&&fe.length>=1&&(0,E.jsx)(J.Z,{columnFlex:[null,null,1,9,null],columnMaxWidth:function(e){return 3===e?"100px":null},columns:[{label:function(){return""},uuid:"!"},{uuid:"Date"},{uuid:"Block"},{uuid:"Message"},{label:function(){return""},uuid:">"}],compact:!0,onClickRow:function(e){var n,t=fe[e],r=null===(n=t.data)||void 0===n?void 0:n.uuid;l.log_uuid===r&&(r=null),(0,T.u7)((0,o.Z)({},Ne,r)),j(r?t:null)},rows:null===fe||void 0===fe?void 0:fe.map((function(e){var n,r,c,l=e.content,u=(e.createdAt,e.data),s=e.name,p=u||{},f=p.block_uuid,h=p.level,m=p.message,v=(p.pipeline_uuid,p.timestamp),b=f||s.split(".log")[0],j=b.split(":");pe.qL.INTEGRATION===N.type&&(b=j[0],r=j[1],c=j[2]);var O=U[b];if(O||(O=U[j[0]]),O){var P=(0,A.qn)(O.type,{blockColor:O.color,theme:t}).accent;n=(0,E.jsx)(x.Z,{alignItems:"center",children:(0,E.jsx)(d(),{as:"/pipelines/".concat(i,"/edit?block_uuid=").concat(b),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,E.jsxs)(W.Z,{block:!0,fullWidth:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,E.jsx)(g.Z,{color:P,size:1.5*_.iI,square:!0}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsxs)(Z.ZP,{monospace:!0,children:[b,r&&": ",r&&(0,E.jsx)(Z.ZP,{default:!0,inline:!0,monospace:!0,children:r}),c>=0&&": ",c>=0&&(0,E.jsx)(Z.ZP,{default:!0,inline:!0,monospace:!0,children:c})]})]})})})}return[(0,E.jsx)(B.Z,{alignItems:"center",justifyContent:"center",children:(0,E.jsx)(D,Re({},(0,o.Z)({},null===h||void 0===h?void 0:h.toLowerCase(),!0)))},"log_type"),(0,E.jsx)(Z.ZP,{default:!0,monospace:!0,children:ee(v)},"log_timestamp"),n,(0,E.jsx)(Z.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,title:m||l,children:(0,E.jsx)(a(),{children:m||l})},"log_message"),(0,E.jsx)(B.Z,{flex:1,justifyContent:"flex-end",children:(0,E.jsx)(G._Q,{default:!0,size:2*_.iI})},"chevron_right_icon")]})),uuid:"logs"}),(0,E.jsx)(y.Z,{p:_.cd,ref:r,children:(0,E.jsx)(Y.ZP,{blackBorder:!0,inline:!0,onClick:function(){I(!0),"0"===(null===H||void 0===H?void 0:H._offset)&&(null===H||void 0===H?void 0:H._limit)===String(Ze)?Q(null):(0,T.u7)({_limit:Ze,_offset:0})},paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/toolbar/load_newest",children:"Load latest logs"})})]})}Ye.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var We=(0,fe.Z)(Ye)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return d},AY:function(){return p},BP:function(){return s},JX:function(){return a},OC:function(){return o},Pc:function(){return f},d$:function(){return u},lJ:function(){return h},n1:function(){return l}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",c="YYYY-MM-DD HH:mm",l="YYYY-MM-DD";function u(e,n){var t=n.utcFormat,r=n.dayAgo,o=i()(e);return t&&(o=o.utc()),r&&(o=o.subtract(1,"days")),o.format(c)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:c)}function s(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function d(e){return i()(e).unix()}function p(e,n,t){return"".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t)}function f(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function h(e){return e.padStart(2,"0")}},84779:function(e,n,t){"use strict";t.d(n,{DU:function(){return c},JI:function(){return l},Jw:function(){return o}});var r=t(75582),i=function(e){var n=String(e).split("."),t=(0,r.Z)(n,2),i=t[0],o=t[1];return"".concat(i.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(o?".".concat(o):"")},o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=parseFloat(e).toFixed(n);return 0===e&&(t=parseFloat(e).toFixed(0)),i(t)};function c(e){if(void 0===e)return"";var n=1===e||0===e?100*e:(100*e).toFixed(2);return"".concat(n,"%")}function l(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return p},u7:function(){return d}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),l=t(59e3),u=t(24224);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,u=i?{}:(0,l.iV)();n=window.location.pathname;var a=o?c().push:c().replace,d=s(s({},u),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var p=(0,l.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return a(c().router.pathname,f,{shallow:!0})}function p(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,l=t.resetLimitParams,a=s({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");a[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),c="".concat(t,"[]"),l=a[c];l&&Array.isArray(l)?(l=l.map(String)).includes(o)?a[c]=(0,u.Od)(l,(function(e){return e===o})):a[c]=l.concat(o):a[c]=[o]})):a=s(s({},a),n),l&&(a._limit=c||20,a._offset=0),d(a)}},62453:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/logs",function(){return t(44613)}])}},function(e){e.O(0,[3850,2083,4804,9565,4495,2344,9386,1830,2626,4463,9774,2888,179],(function(){return n=62453,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6bdc079054552e55.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-204daac985c03b62.js similarity index 81% rename from mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6bdc079054552e55.js rename to mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-204daac985c03b62.js index 6259e3739a13..b449d6f3f84a 100644 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6bdc079054552e55.js +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-204daac985c03b62.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{89677:function(n,_,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return i(67400)}])}},function(n){n.O(0,[3850,2083,5896,2714,9767,9386,1830,2626,7400,9774,2888,179],(function(){return _=89677,n(n.s=_);var _}));var _=n.O();_N_E=_}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{89677:function(n,_,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return i(67400)}])}},function(n){n.O(0,[3850,2083,5896,2714,2344,9386,1830,2626,7400,9774,2888,179],(function(){return _=89677,n(n.s=_);var _}));var _=n.O();_N_E=_}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-6583de6edab67f4a.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-6583de6edab67f4a.js deleted file mode 100644 index bc1b3c597c37..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-6583de6edab67f4a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5912],{44162:function(e,n,t){"use strict";t.d(n,{HC:function(){return g},Kf:function(){return s},Nk:function(){return p},gE:function(){return v},jv:function(){return b},nz:function(){return f},oh:function(){return a},qn:function(){return d},t1:function(){return h},y9:function(){return m}});var r=t(9518),o=t(23831),i=t(86422),c=t(73942),u=t(49125),l=t(90880),a=68;function d(e,n){var t,r,c=((null===n||void 0===n||null===(t=n.theme)||void 0===t?void 0:t.borders)||o.Z.borders).light,u=((null===n||void 0===n||null===(r=n.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,l=n||{},a=l.blockColor,d=l.isSelected,s=l.theme;return d?c=((null===s||void 0===s?void 0:s.content)||o.Z.content).active:i.tf.TRANSFORMER===e||a===i.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purple,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).purpleLight):i.tf.DATA_EXPORTER===e||a===i.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellow,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).yellowLight):i.tf.DATA_LOADER===e||a===i.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blue,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).blueLight):i.tf.SENSOR===e||a===i.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pink,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).pinkLight):i.tf.DBT===e?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbt,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).dbtLight):a===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):(i.tf.SCRATCHPAD===e||a===i.Lq.GREY||i.tf.CUSTOM===e&&!a)&&(c=((null===s||void 0===s?void 0:s.content)||o.Z.content).default,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,l.eR)(),(function(e){return!e.selected&&!e.hasError&&"\n border-color: ".concat(d(e.blockType,e).accentLight,";\n ")}),(function(e){return e.selected&&!e.hasError&&"\n border-color: ".concat(d(e.blockType,e).accent,";\n ")}),(function(e){return!e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(e){return e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).danger,";\n ")}),(function(e){return e.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(e){return e.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.content,";\n ")}),(function(e){return e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-2"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(e){return!e.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-3"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(e){return e.additionalZIndex>0&&"\n z-index: ".concat(8+e.additionalZIndex,";\n ")}),(function(e){return"\n background-color: ".concat((e.theme.text||o.Z.text).fileBrowser,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-4"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),m=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-5"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?u.iI:a,"px;\n ")})),g=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,a)},43032:function(e,n,t){"use strict";t.d(n,{Cl:function(){return u},Nk:function(){return l},ZG:function(){return c}});var r=t(9518),o=t(23831),i=t(49125),c=1.5*i.iI,u=1*c+i.iI/2,l=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return p},DA:function(){return s},HX:function(){return v},J8:function(){return b},Lq:function(){return a},Qj:function(){return h},Ut:function(){return A},V4:function(){return O},VZ:function(){return f},dO:function(){return d},f2:function(){return g},iZ:function(){return m},t6:function(){return c},tf:function(){return l}});var r,o,i,c,u=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var l,a,d=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(e){e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.TRANSFORMER="transformer"}(l||(l={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(a||(a={}));var s,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.TRANSFORMER],f=[l.DATA_EXPORTER,l.DATA_LOADER],b=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],v=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],h=[l.CHART,l.SCRATCHPAD,l.SENSOR],m=[l.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(s||(s={}));var g=[l.CUSTOM,l.DATA_EXPORTER,l.TRANSFORMER],O=(o={},(0,u.Z)(o,l.CUSTOM,"Custom"),(0,u.Z)(o,l.DATA_EXPORTER,"Data exporter"),(0,u.Z)(o,l.DATA_LOADER,"Data loader"),(0,u.Z)(o,l.SCRATCHPAD,"Scratchpad"),(0,u.Z)(o,l.SENSOR,"Sensor"),(0,u.Z)(o,l.TRANSFORMER,"Transformer"),o),A=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER];i={},(0,u.Z)(i,l.DATA_EXPORTER,"DE"),(0,u.Z)(i,l.DATA_LOADER,"DL"),(0,u.Z)(i,l.SCRATCHPAD,"SP"),(0,u.Z)(i,l.SENSOR,"SR"),(0,u.Z)(i,l.TRANSFORMER,"TF")},55378:function(e,n,t){"use strict";var r=t(82394),o=t(26304),i=t(82684),c=t(9518),u=t(69898),l=t(31969),a=t(49125),d=t(28598),s=["beforeIcon","children","label","multiple","placeholder"];function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n\n \n ",a.iI,a.iI,2.5*a.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||l.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||l.Z.content).inverted,";\n ")})),v=function(e,n){var t=e.beforeIcon,r=e.children,i=e.label,c=e.multiple,l=e.placeholder,a=(0,o.Z)(e,s);return(0,d.jsx)(u.Z,f(f({},a),{},{beforeIcon:t,input:(0,d.jsxs)(b,f(f({multiple:c},a),{},{children:[(i||l)&&(0,d.jsx)("option",{disabled:!0,selected:!0,value:"",children:i||l}),r]})),label:i,placeholder:l,ref:n,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};n.Z=i.forwardRef(v)},50094:function(e,n,t){"use strict";t.r(n);var r=t(77837),o=t(75582),i=t(82394),c=t(38860),u=t.n(c),l=t(82684),a=t(92083),d=t.n(a),s=t(9518),p=t(21679),f=t(16634),b=t(67971),v=t(87372),h=t(87465),m=t(41788),g=t(55378),O=t(86673),A=t(82531),R=t(23831),T=t(67400),E=t(43032),x=t(92953),y=t(44162),_=t(24224),Z=t(28598);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-4"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),h=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-5"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:a,"px;\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,a)},43032:function(n,t,e){"use strict";e.d(t,{Cl:function(){return u},Nk:function(){return d},ZG:function(){return c}});var r=e(9518),o=e(23831),i=e(49125),c=1.5*i.iI,u=1*c+i.iI/2,d=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},86422:function(n,t,e){"use strict";e.d(t,{$W:function(){return p},DA:function(){return s},HX:function(){return b},J8:function(){return v},Lq:function(){return a},Qj:function(){return m},Ut:function(){return E},V4:function(){return T},VZ:function(){return f},dO:function(){return l},f2:function(){return A},iZ:function(){return h},t6:function(){return c},tf:function(){return d}});var r,o,i,c,u=e(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var d,a,l=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,p=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.TRANSFORMER],f=[d.DATA_EXPORTER,d.DATA_LOADER],v=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],b=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],m=[d.CHART,d.SCRATCHPAD,d.SENSOR],h=[d.EXTENSION,d.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var A=[d.CUSTOM,d.DATA_EXPORTER,d.TRANSFORMER],T=(o={},(0,u.Z)(o,d.CUSTOM,"Custom"),(0,u.Z)(o,d.DATA_EXPORTER,"Data exporter"),(0,u.Z)(o,d.DATA_LOADER,"Data loader"),(0,u.Z)(o,d.EXTENSION,"Extension"),(0,u.Z)(o,d.SCRATCHPAD,"Scratchpad"),(0,u.Z)(o,d.SENSOR,"Sensor"),(0,u.Z)(o,d.TRANSFORMER,"Transformer"),o),E=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER];i={},(0,u.Z)(i,d.DATA_EXPORTER,"DE"),(0,u.Z)(i,d.DATA_LOADER,"DL"),(0,u.Z)(i,d.SCRATCHPAD,"SP"),(0,u.Z)(i,d.SENSOR,"SR"),(0,u.Z)(i,d.TRANSFORMER,"TF")},50094:function(n,t,e){"use strict";e.r(t);var r=e(77837),o=e(75582),i=e(82394),c=e(38860),u=e.n(c),d=e(82684),a=e(92083),l=e.n(a),s=e(9518),p=e(21679),f=e(16634),v=e(67971),b=e(87372),m=e(87465),h=e(41788),A=e(55378),T=e(86673),E=e(82531),R=e(23831),O=e(67400),_=e(43032),x=e(92953),g=e(44162),Z=e(24224),y=e(28598);function S(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function D(n){for(var t=1;t0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||i.Z.text).fileBrowser,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-4"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),b=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-5"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||i.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:a,"px;\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,a)},92953:function(n,e,t){"use strict";var r;t.d(e,{a:function(){return r}}),function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}))},87465:function(n,e,t){"use strict";t.d(e,{Z:function(){return h}});t(82684);var r=t(34376),i=t(87372),o=t(2626),c=t(86673),u=t(19711),d=t(2850),a=t(9518),l=t(23831),s=t(49125),p=a.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],s.iI,s.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||l.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),f=t(92953),m=t(59920),v=t(28598);var h=function(n){var e=n.breadcrumbs,t=n.children,a=n.monitorType,l=n.pipeline,h=n.subheader,b=(0,r.useRouter)();return(0,v.jsx)(o.Z,{before:(0,v.jsxs)(d.M,{children:[(0,v.jsx)(c.Z,{p:s.cd,children:(0,v.jsx)(i.Z,{level:4,muted:!0,children:"Insights"})}),(0,v.jsx)(p,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===l||void 0===l?void 0:l.uuid,"/monitors"))},selected:f.a.PIPELINE_RUNS==a,children:(0,v.jsx)(u.ZP,{children:"Pipeline runs"})}),(0,v.jsx)(p,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===l||void 0===l?void 0:l.uuid,"/monitors/block-runs"))},selected:f.a.BLOCK_RUNS==a,children:(0,v.jsx)(u.ZP,{children:"Block runs"})}),(0,v.jsx)(p,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===l||void 0===l?void 0:l.uuid,"/monitors/block-runtime"))},selected:f.a.BLOCK_RUNTIME==a,children:(0,v.jsx)(u.ZP,{children:"Block runtime"})})]}),breadcrumbs:e,pageName:m.M.MONITOR,pipeline:l,subheader:h,uuid:"pipeline/monitor",children:t})}},2850:function(n,e,t){"use strict";t.d(e,{M:function(){return u},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(n){return"\n border-left: 1px solid ".concat((n.theme.borders||i.Z.borders).medium,";\n ")}))},45739:function(n,e,t){"use strict";t.d(e,{K:function(){return i}});var r=t(31969),i=function(n){var e=n||r.Z,t=e.brand,i=t.earth200,o=t.earth300,c=t.earth400,u=t.energy200,d=t.energy300,a=t.energy400,l=t.fire200,s=t.fire300,p=t.fire400,f=t.water200,m=t.water300,v=t.water400,h=t.wind200,b=t.wind300,x=t.wind400,R=e.chart;return[R.backgroundPrimary,R.backgroundSecondary,R.backgroundTertiary].concat([x,v,p,a,c,b,m,s,d,o,h,f,l,u,i])}},52359:function(n,e,t){"use strict";var r=t(9518).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},344:function(n,e,t){"use strict";t.d(e,{P5:function(){return i},Vs:function(){return o}});t(90211);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function i(n){return"number"!==typeof n?n:n>=1e4?r.format(n):n.toString()}function o(n,e,t){var r,i;if("undefined"===typeof n||"undefined"===typeof e)return 0;var o=null===n||void 0===n||null===(r=n(e,t))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return p},DA:function(){return s},HX:function(){return v},J8:function(){return m},Lq:function(){return a},Qj:function(){return h},Ut:function(){return T},V4:function(){return R},VZ:function(){return f},dO:function(){return l},f2:function(){return x},iZ:function(){return b},t6:function(){return c},tf:function(){return d}});var r,i,o,c,u=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var d,a,l=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,p=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.TRANSFORMER],f=[d.DATA_EXPORTER,d.DATA_LOADER],m=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],v=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],h=[d.CHART,d.SCRATCHPAD,d.SENSOR],b=[d.EXTENSION,d.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var x=[d.CUSTOM,d.DATA_EXPORTER,d.TRANSFORMER],R=(i={},(0,u.Z)(i,d.CUSTOM,"Custom"),(0,u.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,d.DATA_LOADER,"Data loader"),(0,u.Z)(i,d.EXTENSION,"Extension"),(0,u.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,d.SENSOR,"Sensor"),(0,u.Z)(i,d.TRANSFORMER,"Transformer"),i),T=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER];o={},(0,u.Z)(o,d.DATA_EXPORTER,"DE"),(0,u.Z)(o,d.DATA_LOADER,"DL"),(0,u.Z)(o,d.SCRATCHPAD,"SP"),(0,u.Z)(o,d.SENSOR,"SR"),(0,u.Z)(o,d.TRANSFORMER,"TF")},68805:function(n,e,t){"use strict";t.r(e);var r=t(77837),i=t(75582),o=t(82394),c=t(38860),u=t.n(c),d=t(82684),a=t(92083),l=t.n(a),s=t(16634),p=t(67971),f=t(87372),m=t(68735),v=t(87465),h=t(41788),b=t(86673),x=t(55378),R=t(19711),T=t(82531),E=t(23831),g=t(73942),A=t(43032),y=t(92953),O=t(9518),_=t(44162),Z=t(24224),D=t(28598);function S(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function C(n){for(var e=1;e0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||i.Z.text).fileBrowser,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-4"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),b=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-5"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||i.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:a,"px;\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,a)},92953:function(n,e,t){"use strict";var r;t.d(e,{a:function(){return r}}),function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}))},87465:function(n,e,t){"use strict";t.d(e,{Z:function(){return h}});t(82684);var r=t(34376),i=t(87372),o=t(2626),c=t(86673),u=t(19711),d=t(2850),a=t(9518),l=t(23831),s=t(49125),p=a.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],s.iI,s.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||l.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),f=t(92953),m=t(59920),v=t(28598);var h=function(n){var e=n.breadcrumbs,t=n.children,a=n.monitorType,l=n.pipeline,h=n.subheader,b=(0,r.useRouter)();return(0,v.jsx)(o.Z,{before:(0,v.jsxs)(d.M,{children:[(0,v.jsx)(c.Z,{p:s.cd,children:(0,v.jsx)(i.Z,{level:4,muted:!0,children:"Insights"})}),(0,v.jsx)(p,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===l||void 0===l?void 0:l.uuid,"/monitors"))},selected:f.a.PIPELINE_RUNS==a,children:(0,v.jsx)(u.ZP,{children:"Pipeline runs"})}),(0,v.jsx)(p,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===l||void 0===l?void 0:l.uuid,"/monitors/block-runs"))},selected:f.a.BLOCK_RUNS==a,children:(0,v.jsx)(u.ZP,{children:"Block runs"})}),(0,v.jsx)(p,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===l||void 0===l?void 0:l.uuid,"/monitors/block-runtime"))},selected:f.a.BLOCK_RUNTIME==a,children:(0,v.jsx)(u.ZP,{children:"Block runtime"})})]}),breadcrumbs:e,pageName:m.M.MONITOR,pipeline:l,subheader:h,uuid:"pipeline/monitor",children:t})}},2850:function(n,e,t){"use strict";t.d(e,{M:function(){return u},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(n){return"\n border-left: 1px solid ".concat((n.theme.borders||i.Z.borders).medium,";\n ")}))},45739:function(n,e,t){"use strict";t.d(e,{K:function(){return i}});var r=t(31969),i=function(n){var e=n||r.Z,t=e.brand,i=t.earth200,o=t.earth300,c=t.earth400,u=t.energy200,d=t.energy300,a=t.energy400,l=t.fire200,s=t.fire300,p=t.fire400,f=t.water200,m=t.water300,v=t.water400,h=t.wind200,b=t.wind300,x=t.wind400,R=e.chart;return[R.backgroundPrimary,R.backgroundSecondary,R.backgroundTertiary].concat([x,v,p,a,c,b,m,s,d,o,h,f,l,u,i])}},52359:function(n,e,t){"use strict";var r=t(9518).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},344:function(n,e,t){"use strict";t.d(e,{P5:function(){return i},Vs:function(){return o}});t(90211);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function i(n){return"number"!==typeof n?n:n>=1e4?r.format(n):n.toString()}function o(n,e,t){var r,i;if("undefined"===typeof n||"undefined"===typeof e)return 0;var o=null===n||void 0===n||null===(r=n(e,t))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return p},DA:function(){return s},HX:function(){return v},J8:function(){return m},Lq:function(){return a},Qj:function(){return h},Ut:function(){return g},V4:function(){return R},VZ:function(){return f},dO:function(){return l},f2:function(){return x},iZ:function(){return b},t6:function(){return c},tf:function(){return d}});var r,i,o,c,u=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var d,a,l=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,p=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.TRANSFORMER],f=[d.DATA_EXPORTER,d.DATA_LOADER],m=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],v=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],h=[d.CHART,d.SCRATCHPAD,d.SENSOR],b=[d.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var x=[d.CUSTOM,d.DATA_EXPORTER,d.TRANSFORMER],R=(i={},(0,u.Z)(i,d.CUSTOM,"Custom"),(0,u.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,d.DATA_LOADER,"Data loader"),(0,u.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,d.SENSOR,"Sensor"),(0,u.Z)(i,d.TRANSFORMER,"Transformer"),i),g=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER];o={},(0,u.Z)(o,d.DATA_EXPORTER,"DE"),(0,u.Z)(o,d.DATA_LOADER,"DL"),(0,u.Z)(o,d.SCRATCHPAD,"SP"),(0,u.Z)(o,d.SENSOR,"SR"),(0,u.Z)(o,d.TRANSFORMER,"TF")},68805:function(n,e,t){"use strict";t.r(e);var r=t(77837),i=t(75582),o=t(82394),c=t(38860),u=t.n(c),d=t(82684),a=t(92083),l=t.n(a),s=t(16634),p=t(67971),f=t(87372),m=t(68735),v=t(87465),h=t(41788),b=t(86673),x=t(55378),R=t(19711),g=t(82531),T=t(23831),A=t(73942),y=t(43032),E=t(92953),_=t(9518),O=t(44162),Z=t(24224),D=t(28598);function C(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function P(n){for(var e=1;e=0&&": ",o>=0&&(0,_.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:o})]})]})}),(0,_.jsx)(b.ZP,{monospace:!0,default:!0,children:h||"-"}),(0,_.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(Z,"/logs?block_run_id[]=").concat(O))},children:(0,_.jsx)(g.B4,{default:!0,size:2*m.iI})})]})),uuid:"block-runs"})}},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return j},Z:function(){return _}});var i=t(75582),r=t(82394),u=t(26304),o=t(32316),l=t(22673),s=t(86532),c=t(86673),a=t(19711),d=t(87815),p=t(49125),f=t(19395),v=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function g(e){for(var n=1;n=1&&e>=2&&n.push((0,v.jsx)("div",{style:{marginLeft:1.5*a.iI}},"spacing-".concat(m))),x?n.push((0,v.jsx)(o.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:b,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:b,children:y},m)):n.push((0,v.jsx)("div",{style:{padding:4},children:(0,v.jsx)(r.Z,{borderLess:!0,compact:b,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:b,children:y},"button-tab-".concat(m))}))})),n}),[d,h,g]),x=(0,v.jsx)(u.Z,{alignItems:"center",children:m});return t?x:(0,v.jsx)(p,{allowScroll:n,noPadding:c,children:x})}},77980:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return G}});var i=t(77837),r=t(75582),u=t(82394),o=t(38860),l=t.n(o),s=t(82684),c=t(83455),a=t(34376),d=t(16953),p=t(27125),f=t(60328),v=t(32316),h=t(67971),b=t(9518),g=t(23831),m=b.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:2;",""],(function(e){return"\n background-color: ".concat(e.backgroundColor||(e.theme.background||g.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||g.Z.borders).medium,";\n ")})),x=t(51099),j=t(2626),_=t(28598);var y=function(e){var n=e.size;return(0,_.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("g",{"clip-path":"url(#clip0_3007_70027)",children:(0,_.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,_.jsxs)("defs",{children:[(0,_.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,_.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,_.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,_.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,_.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},Z=t(47409),O=t(97496),k=t(41788),w=t(55378),P=t(86673),C=t(82531),I=t(56681),S=t(66166),T=t(10503),R=t(59920),E=t(66050),N=t(49125),D=t(33766),L=t(7715),M=t(96510),U=t(59e3);function H(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function V(e){for(var n=1;n=0?n:0});t.push("/pipelines/[pipeline]/runs","/pipelines/".concat(G,"/runs?").concat((0,U.uM)(i)))},page:Number(e),totalPages:Math.ceil(oe/25)})})]})}),[re,q,ue,$,Y,oe]),ve=(0,s.useMemo)((function(){return(0,_.jsx)(p.Z,{blockRuns:J,pipeline:q})}),[J,q]);return(0,_.jsxs)(j.Z,{afterHidden:z.uuid===(null===d||void 0===d?void 0:d.uuid)&&!Y,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:z.uuid===(null===d||void 0===d?void 0:d.uuid)?function(e){return(0,I.Z)(V(V({},e),{},{selectedRun:Y,selectedTab:y,setSelectedTab:k}))}:function(e){return(0,I.Z)(e)},errors:u,pageName:R.M.RUNS,pipeline:q,setErrors:o,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(R.M.RUNS,"_").concat(G),children:[(0,_.jsx)(m,{children:(0,_.jsx)(P.Z,{py:1,children:(0,_.jsxs)(h.Z,{alignItems:"center",children:[le&&z.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,_.jsx)(P.Z,{pl:2,children:(0,_.jsx)(f.Z,{danger:!0,loading:de,onClick:function(){ae({pipeline:{status:E.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),(0,_.jsx)(v.Z,{onClickTab:function(e){var n=e.uuid;B(null),(0,D.u7)({tab:n},{replaceParams:!0})},selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:F}),z.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,_.jsxs)(w.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(B(null),(0,D.u7)({tab:z.uuid},{replaceParams:!0})):(0,D.u7)({page:0,status:e.target.value})},paddingRight:4*N.iI,placeholder:"Select run status",value:null===H||void 0===H?void 0:H.status,children:[(0,_.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(E.V).map((function(e){return(0,_.jsx)("option",{value:e,children:Z.D[e]},e)}))]})]})})}),z.uuid===(null===d||void 0===d?void 0:d.uuid)&&fe,A.uuid===(null===d||void 0===d?void 0:d.uuid)&&ve]})}B.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var G=(0,k.Z)(B)},79897:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(77980)}])}},function(e){e.O(0,[3850,2083,4804,1774,2524,9767,9386,9898,1830,2626,4463,6532,4846,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{59739:function(e,n,t){"use strict";var i=t(56669);function r(){}function u(){}u.resetWarningCache=r,e.exports=function(){function e(e,n,t,r,u,o){if(o!==i){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:u,resetWarningCache:r};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},27125:function(e,n,t){"use strict";var i=t(82684),r=t(12691),u=t.n(r),o=t(34376),l=t.n(o),s=t(9518),c=t(66050),a=t(60328),d=t(16634),p=t(10919),f=t(98781),v=t(86673),h=t(87815),b=t(19711),g=t(10503),m=t(49125),x=t(44162),j=t(24224),_=t(28598);n.Z=function(e){var n=e.blockRuns,t=e.onClickRow,r=e.pipeline,o=e.selectedRun,y=(0,i.useContext)(s.ThemeContext),Z=(r||{}).uuid,O=(0,i.useMemo)((function(){return r.blocks||[]}),[r]),k=(0,i.useMemo)((function(){return(0,j.HK)(O,(function(e){return e.uuid}))}),[O]);return(0,_.jsx)(h.Z,{columnFlex:[null,1,3,2,null,null],columns:[{uuid:"Date"},{uuid:"Status"},{uuid:"Trigger"},{uuid:"Block"},{uuid:"Completed"},{uuid:"Logs"}],isSelectedRow:function(e){return n[e].id===(null===o||void 0===o?void 0:o.id)},onClickRow:t,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,i,o,s=e.block_uuid,h=e.completed_at,j=e.created_at,O=e.id,w=e.pipeline_schedule_id,P=e.pipeline_schedule_name,C=e.status,I=s,S=I.split(":");f.qL.INTEGRATION===r.type&&(I=S[0],i=S[1],o=S[2]);var T=k[I];return T||(T=k[S[0]]),[(0,_.jsx)(b.ZP,{monospace:!0,default:!0,children:j}),(0,_.jsx)(b.ZP,{danger:c.V.FAILED===C,default:c.V.CANCELLED===C,info:c.V.INITIAL===C,monospace:!0,success:c.V.COMPLETED===C,warning:c.V.RUNNING===C,children:C}),(0,_.jsx)(u(),{as:"/pipelines/".concat(Z,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,_.jsx)(p.Z,{bold:!0,sameColorAsText:!0,children:P})}),(0,_.jsx)(u(),{as:"/pipelines/".concat(Z,"/edit?block_uuid=").concat(I),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,_.jsxs)(p.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,_.jsx)(d.Z,{color:(0,x.qn)(null===(n=T)||void 0===n?void 0:n.type,{blockColor:null===(t=T)||void 0===t?void 0:t.color,theme:y}).accent,size:1.5*m.iI,square:!0}),(0,_.jsx)(v.Z,{mr:1}),(0,_.jsxs)(b.ZP,{monospace:!0,children:[I,i&&": ",i&&(0,_.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:i}),o>=0&&": ",o>=0&&(0,_.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:o})]})]})}),(0,_.jsx)(b.ZP,{monospace:!0,default:!0,children:h||"-"}),(0,_.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(Z,"/logs?block_run_id[]=").concat(O))},children:(0,_.jsx)(g.B4,{default:!0,size:2*m.iI})})]})),uuid:"block-runs"})}},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return j},Z:function(){return _}});var i=t(75582),r=t(82394),u=t(26304),o=t(32316),l=t(22673),s=t(86532),c=t(86673),a=t(19711),d=t(87815),p=t(49125),f=t(19395),v=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function g(e){for(var n=1;n=1&&e>=2&&n.push((0,v.jsx)("div",{style:{marginLeft:1.5*a.iI}},"spacing-".concat(m))),x?n.push((0,v.jsx)(o.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:b,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:b,children:y},m)):n.push((0,v.jsx)("div",{style:{padding:4},children:(0,v.jsx)(r.Z,{borderLess:!0,compact:b,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:b,children:y},"button-tab-".concat(m))}))})),n}),[d,h,g]),x=(0,v.jsx)(u.Z,{alignItems:"center",children:m});return t?x:(0,v.jsx)(p,{allowScroll:n,noPadding:c,children:x})}},77980:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return G}});var i=t(77837),r=t(75582),u=t(82394),o=t(38860),l=t.n(o),s=t(82684),c=t(83455),a=t(34376),d=t(16953),p=t(27125),f=t(60328),v=t(32316),h=t(67971),b=t(9518),g=t(23831),m=b.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:2;",""],(function(e){return"\n background-color: ".concat(e.backgroundColor||(e.theme.background||g.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||g.Z.borders).medium,";\n ")})),x=t(51099),j=t(2626),_=t(28598);var y=function(e){var n=e.size;return(0,_.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("g",{"clip-path":"url(#clip0_3007_70027)",children:(0,_.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,_.jsxs)("defs",{children:[(0,_.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,_.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,_.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,_.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,_.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},Z=t(47409),O=t(97496),k=t(41788),w=t(55378),P=t(86673),C=t(82531),I=t(56681),S=t(66166),T=t(10503),R=t(59920),E=t(66050),N=t(49125),D=t(33766),L=t(7715),M=t(96510),U=t(59e3);function H(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function V(e){for(var n=1;n=0?n:0});t.push("/pipelines/[pipeline]/runs","/pipelines/".concat(G,"/runs?").concat((0,U.uM)(i)))},page:Number(e),totalPages:Math.ceil(oe/25)})})]})}),[re,q,ue,$,Y,oe]),ve=(0,s.useMemo)((function(){return(0,_.jsx)(p.Z,{blockRuns:J,pipeline:q})}),[J,q]);return(0,_.jsxs)(j.Z,{afterHidden:z.uuid===(null===d||void 0===d?void 0:d.uuid)&&!Y,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:z.uuid===(null===d||void 0===d?void 0:d.uuid)?function(e){return(0,I.Z)(V(V({},e),{},{selectedRun:Y,selectedTab:y,setSelectedTab:k}))}:function(e){return(0,I.Z)(e)},errors:u,pageName:R.M.RUNS,pipeline:q,setErrors:o,title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(R.M.RUNS,"_").concat(G),children:[(0,_.jsx)(m,{children:(0,_.jsx)(P.Z,{py:1,children:(0,_.jsxs)(h.Z,{alignItems:"center",children:[le&&z.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,_.jsx)(P.Z,{pl:2,children:(0,_.jsx)(f.Z,{danger:!0,loading:de,onClick:function(){ae({pipeline:{status:E.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),(0,_.jsx)(v.Z,{onClickTab:function(e){var n=e.uuid;B(null),(0,D.u7)({tab:n},{replaceParams:!0})},selectedTabUUID:null===d||void 0===d?void 0:d.uuid,tabs:F}),z.uuid===(null===d||void 0===d?void 0:d.uuid)&&(0,_.jsxs)(w.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?(B(null),(0,D.u7)({tab:z.uuid},{replaceParams:!0})):(0,D.u7)({page:0,status:e.target.value})},paddingRight:4*N.iI,placeholder:"Select run status",value:null===H||void 0===H?void 0:H.status,children:[(0,_.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(E.V).map((function(e){return(0,_.jsx)("option",{value:e,children:Z.D[e]},e)}))]})]})})}),z.uuid===(null===d||void 0===d?void 0:d.uuid)&&fe,A.uuid===(null===d||void 0===d?void 0:d.uuid)&&ve]})}B.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var G=(0,k.Z)(B)},79897:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(77980)}])}},function(e){e.O(0,[3850,2083,4804,1774,2524,2344,9386,1830,2626,4463,6532,4178,9774,2888,179],(function(){return n=79897,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-dca97d649160fed7.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-44533e244974a422.js similarity index 99% rename from mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-dca97d649160fed7.js rename to mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-44533e244974a422.js index 366eaf9c21b4..bb6732c95a79 100644 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-dca97d649160fed7.js +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-44533e244974a422.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{62976:function(e,n,t){"use strict";t.d(n,{Z:function(){return R}});var r=t(82394),i=t(21831),o=t(82684),u=t(10919),l=t(12691),c=t.n(l),a=t(34376),s=t.n(a),d=t(9518),p=t(63068),f=t(44628),h=t(6508),m=t(67971),v=t(19711),g=t(23831),b=t(31969),y=function(){var e=document.createElement("div");e.setAttribute("style","width: 100px; height: 100px; overflow: scroll; position:absolute; top:-9999px;"),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n},x=t(2005),O=t(31012),j=t(37391),w=t(6753),Z=t(49125),P=t(20567),E=t(24224),k=t(28598);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(e){return e.disableScrolling&&"\n overflow: hidden;\n "}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),j.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||D,"px;\n ")}),O.iD,x.ry,(function(e){return"\n background-color: ".concat((e.theme.background||b.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n ")}),1*Z.iI);function T(e){var n=e.original,t=8.5*Math.max.apply(Math,(0,i.Z)(n.map((function(e){return(null===e||void 0===e?void 0:e.length)||0})))),r=Math.ceil(t/(I-2*Z.iI));return Math.max(r,1)*O.dN+2*Z.iI}function N(e){var n=e.columnHeaderHeight,t=e.columns,r=e.data,l=e.disableScrolling,a=e.height,j=e.index,_=e.invalidValues,C=e.maxHeight,N=e.numberOfIndexes,R=e.previewIndexes,H=e.renderColumnHeader,M=e.width,A=(0,o.useContext)(d.ThemeContext),B=(0,o.useRef)(null),L=(0,o.useRef)(null);(0,o.useEffect)((function(){var e=function(e){var n;null===B||void 0===B||null===(n=B.current)||void 0===n||n.scroll(e.target.scrollLeft,0)};return L&&L.current.addEventListener("scroll",e),function(){var n;null===L||void 0===L||null===(n=L.current)||void 0===n||n.removeEventListener("scroll",e)}}),[B,L]);var U=(0,o.useMemo)((function(){return j&&r&&j.length===r.length}),[r,j]),V=(0,o.useMemo)((function(){var e=[];return(0,E.w6)(N).forEach((function(n,t){var o=8.7*String(null===r||void 0===r?void 0:r.length).length;if(U){var u=j.map((function(e){return N>=2?String(e[t]).length:String(e).length}));o=8.7*Math.max.apply(Math,(0,i.Z)(u))}e.push(o+2*Z.iI)})),e}),[r,j,N,U]),F=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),G=(0,o.useMemo)((function(){return y()}),[]),X=(0,o.useMemo)((function(){var e=M-(Math.max.apply(Math,(0,i.Z)(V))+1.5*Z.iI+G),n=t.length-1,r=I;return r*n=0&&": ",u>=0&&(0,O.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})}),(0,O.jsx)(v.ZP,{monospace:!0,default:!0,children:m||"-"}),(0,O.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(w,"/logs?block_run_id[]=").concat(Z))},children:(0,O.jsx)(g.B4,{default:!0,size:2*b.iI})})]})),uuid:"block-runs"})}},64155:function(e,n,t){"use strict";t.d(n,{Eh:function(){return c},ht:function(){return s},t0:function(){return a}});var r=t(9518),i=t(82386),o=t(1286),u=t(31012),l=t(49125),c=(l.iI,o.O$+3*l.iI+u.dN),a=r.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})(["position:relative;width:fit-content;"," ",""],(function(e){return"\n height: calc(100vh - ".concat(i.uX,"px - ").concat(e.heightOffset,"px);\n ")}),(function(e){return e.fullWidth&&"\n width: calc(100% - ".concat(e.widthOffset||0,"px);\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*l.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}))},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return s},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},vJ:function(){return m}});var r,i,o=t(82394),u=t(92083),l=t.n(u);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n0?(0,S.jsx)(x.Z,{columnHeaderHeight:c?E.Eh:0,columns:t,height:i-o-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:c,rows:a}):h,v=(0,_.Pb)(d)?JSON.stringify(JSON.parse(d),null,2):d,b=d?(0,S.jsx)(g.Z,{ml:2,children:(0,S.jsx)(Z.ZP,{monospace:!0,children:(0,S.jsx)("pre",{children:v})})}):h;return(0,S.jsxs)(S.Fragment,{children:[!s&&(0,S.jsx)(O.Z,C(C({},p),{},{height:i,heightOffset:o||0,pipeline:l})),s&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(g.Z,{pl:2,py:3,style:{position:"fixed"},children:(0,S.jsx)(f.Z,{level:4,muted:!0,children:"Block Output"})}),(0,S.jsxs)("div",{style:{position:"relative",top:"75px"},children:[u&&(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(j.Z,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,S.jsx)(w.Z,{color:"white",large:!0})})}),!u&&r===P.Gi.TABLE&&m,!u&&r!==P.Gi.TABLE&&b]})]})]})}(A(A({},e),{},{blockRuns:ne,columns:te,dataType:ee,loadingData:z,rows:re,selectedRun:u,showDynamicBlocks:!0,textData:$}))},errors:I,pageName:T.M.RUNS,pipeline:U,setErrors:M,subheader:(null===F||void 0===F?void 0:F.status)&&F.status!==m.V.COMPLETED&&(0,S.jsx)(d.Z,{danger:!0,loading:q,onClick:function(e){(0,H.j)(e),W({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(T.M.RUNS,"_").concat(B,"_").concat(null===F||void 0===F?void 0:F.id),children:[(0,S.jsx)(g.Z,{mt:N.cd,px:N.cd,children:(0,S.jsx)(f.Z,{level:5,children:"Block runs"})}),(0,S.jsx)(p.Z,{light:!0,mt:N.cd,short:!0}),ie]})}B.getInitialProps=function(){var e=(0,r.Z)(l().mark((function e(n){var t,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,r=t.pipeline,i=t.run,e.abrupt("return",{pipeline:{uuid:r},pipelineRun:{id:i}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var L=(0,v.Z)(B)},39525:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return t(23588)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2125,9767,9386,1830,2626,4463,6532,1286,9774,2888,179],(function(){return n=39525,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8662],{62976:function(e,n,t){"use strict";t.d(n,{Z:function(){return R}});var r=t(82394),i=t(21831),o=t(82684),u=t(10919),l=t(12691),c=t.n(l),a=t(34376),s=t.n(a),d=t(9518),p=t(63068),f=t(44628),h=t(6508),m=t(67971),v=t(19711),g=t(23831),b=t(31969),y=function(){var e=document.createElement("div");e.setAttribute("style","width: 100px; height: 100px; overflow: scroll; position:absolute; top:-9999px;"),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n},x=t(2005),O=t(31012),j=t(37391),w=t(6753),Z=t(49125),P=t(20567),E=t(24224),k=t(28598);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(e){return e.disableScrolling&&"\n overflow: hidden;\n "}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),j.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||b.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||D,"px;\n ")}),O.iD,x.ry,(function(e){return"\n background-color: ".concat((e.theme.background||b.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||b.Z.borders).medium,";\n ")}),1*Z.iI);function T(e){var n=e.original,t=8.5*Math.max.apply(Math,(0,i.Z)(n.map((function(e){return(null===e||void 0===e?void 0:e.length)||0})))),r=Math.ceil(t/(I-2*Z.iI));return Math.max(r,1)*O.dN+2*Z.iI}function N(e){var n=e.columnHeaderHeight,t=e.columns,r=e.data,l=e.disableScrolling,a=e.height,j=e.index,_=e.invalidValues,C=e.maxHeight,N=e.numberOfIndexes,R=e.previewIndexes,H=e.renderColumnHeader,M=e.width,A=(0,o.useContext)(d.ThemeContext),B=(0,o.useRef)(null),L=(0,o.useRef)(null);(0,o.useEffect)((function(){var e=function(e){var n;null===B||void 0===B||null===(n=B.current)||void 0===n||n.scroll(e.target.scrollLeft,0)};return L&&L.current.addEventListener("scroll",e),function(){var n;null===L||void 0===L||null===(n=L.current)||void 0===n||n.removeEventListener("scroll",e)}}),[B,L]);var U=(0,o.useMemo)((function(){return j&&r&&j.length===r.length}),[r,j]),V=(0,o.useMemo)((function(){var e=[];return(0,E.w6)(N).forEach((function(n,t){var o=8.7*String(null===r||void 0===r?void 0:r.length).length;if(U){var u=j.map((function(e){return N>=2?String(e[t]).length:String(e).length}));o=8.7*Math.max.apply(Math,(0,i.Z)(u))}e.push(o+2*Z.iI)})),e}),[r,j,N,U]),F=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),G=(0,o.useMemo)((function(){return y()}),[]),X=(0,o.useMemo)((function(){var e=M-(Math.max.apply(Math,(0,i.Z)(V))+1.5*Z.iI+G),n=t.length-1,r=I;return r*n=0&&": ",u>=0&&(0,O.jsx)(v.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})}),(0,O.jsx)(v.ZP,{monospace:!0,default:!0,children:m||"-"}),(0,O.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(w,"/logs?block_run_id[]=").concat(Z))},children:(0,O.jsx)(g.B4,{default:!0,size:2*b.iI})})]})),uuid:"block-runs"})}},64155:function(e,n,t){"use strict";t.d(n,{Eh:function(){return c},ht:function(){return s},t0:function(){return a}});var r=t(9518),i=t(82386),o=t(1286),u=t(31012),l=t(49125),c=(l.iI,o.O$+3*l.iI+u.dN),a=r.default.div.withConfig({displayName:"indexstyle__SidekickContainerStyle",componentId:"sc-15ofupc-0"})(["position:relative;width:fit-content;"," ",""],(function(e){return"\n height: calc(100vh - ".concat(i.uX,"px - ").concat(e.heightOffset,"px);\n ")}),(function(e){return e.fullWidth&&"\n width: calc(100% - ".concat(e.widthOffset||0,"px);\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__PaddingContainerStyle",componentId:"sc-15ofupc-1"})(["padding:","px;",""],2*l.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}))},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return s},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},vJ:function(){return m}});var r,i,o=t(82394),u=t(92083),l=t.n(u);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n0?(0,S.jsx)(x.Z,{columnHeaderHeight:c?E.Eh:0,columns:t,height:i-o-90,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,renderColumnHeader:c,rows:a}):h,v=(0,_.Pb)(d)?JSON.stringify(JSON.parse(d),null,2):d,b=d?(0,S.jsx)(g.Z,{ml:2,children:(0,S.jsx)(Z.ZP,{monospace:!0,children:(0,S.jsx)("pre",{children:v})})}):h;return(0,S.jsxs)(S.Fragment,{children:[!s&&(0,S.jsx)(O.Z,C(C({},p),{},{height:i,heightOffset:o||0,pipeline:l})),s&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(g.Z,{pl:2,py:3,style:{position:"fixed"},children:(0,S.jsx)(f.Z,{level:4,muted:!0,children:"Block Output"})}),(0,S.jsxs)("div",{style:{position:"relative",top:"75px"},children:[u&&(0,S.jsx)(g.Z,{mt:2,children:(0,S.jsx)(j.Z,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,S.jsx)(w.Z,{color:"white",large:!0})})}),!u&&r===P.Gi.TABLE&&m,!u&&r!==P.Gi.TABLE&&b]})]})]})}(A(A({},e),{},{blockRuns:ne,columns:te,dataType:ee,loadingData:z,rows:re,selectedRun:u,showDynamicBlocks:!0,textData:$}))},errors:I,pageName:T.M.RUNS,pipeline:U,setErrors:M,subheader:(null===F||void 0===F?void 0:F.status)&&F.status!==m.V.COMPLETED&&(0,S.jsx)(d.Z,{danger:!0,loading:q,onClick:function(e){(0,H.j)(e),W({pipeline_run:{pipeline_run_action:"retry_blocks"}})},outline:!0,children:"Retry incomplete blocks"}),title:function(e){var n=e.name;return"".concat(n," runs")},uuid:"".concat(T.M.RUNS,"_").concat(B,"_").concat(null===F||void 0===F?void 0:F.id),children:[(0,S.jsx)(g.Z,{mt:N.cd,px:N.cd,children:(0,S.jsx)(f.Z,{level:5,children:"Block runs"})}),(0,S.jsx)(p.Z,{light:!0,mt:N.cd,short:!0}),ie]})}B.getInitialProps=function(){var e=(0,r.Z)(l().mark((function e(n){var t,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query,r=t.pipeline,i=t.run,e.abrupt("return",{pipeline:{uuid:r},pipelineRun:{id:i}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var L=(0,v.Z)(B)},39525:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs/[run]",function(){return t(23588)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2125,2344,9386,1830,2626,4463,6532,1286,9774,2888,179],(function(){return n=39525,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-6671ee4e4f219f14.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-6671ee4e4f219f14.js deleted file mode 100644 index e95785ee0f35..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-6671ee4e4f219f14.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7803],{45838:function(n,e,r){"use strict";r.d(e,{GZ:function(){return d},Vq:function(){return s},cE:function(){return f},cl:function(){return l},kA:function(){return u}});var t=r(9518),o=r(23831),i=r(37391),c=r(49125),l=t.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),u=t.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),s=t.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),a=(0,t.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=t.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],a,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=t.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],a,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,r){"use strict";var t=r(82394),o=r(12691),i=r.n(o),c=r(82684),l=r(67971),u=r(10919),s=r(86673),a=r(19711),d=r(46261),f=r(45838),p=r(28598);function m(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function v(n){for(var e=1;e=1&&!w&&(0,p.jsx)(f.Vq,{noHover:!0,children:g.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:m,compact:j,last:e===g.length-1,noBorder:k,sticky:N,children:(0,p.jsxs)(l.Z,{alignItems:"center",children:[(0,p.jsx)(a.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(s.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(a.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(E,"-col-").concat(n.uuid,"-").concat(e))}))}),V]})}},66050:function(n,e,r){"use strict";var t;r.d(e,{V:function(){return t}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(t||(t={}))},47409:function(n,e,r){"use strict";r.d(e,{D:function(){return c},V:function(){return i}});var t,o=r(82394),i=r(66050).V,c=(t={},(0,o.Z)(t,i.CANCELLED,"Cancelled"),(0,o.Z)(t,i.COMPLETED,"Done"),(0,o.Z)(t,i.FAILED,"Failed"),(0,o.Z)(t,i.INITIAL,"Ready"),(0,o.Z)(t,i.RUNNING,"Running"),t)},89745:function(n,e,r){"use strict";r.r(e),r.d(e,{default:function(){return cn}});var t=r(77837),o=r(38860),i=r.n(o),c=r(82684),l=r(2626),u=r(41788),s=r(75582),a=r(82394),d=r(93461),f=r(67971),p=r(87372),m=r(47409),v=r(86673),h=r(54283),b=r(19711),x=r(23831),g=r(10503),j=r(9518),Z=r(73942),y=r(2005),k=r(49125),w=r(31012),_=j.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-15svh8z-0"})(["border-radius:","px;margin:","px;overflow:hidden;"," "," "," "," "," "," &:hover{"," "," "," "," ","}"],Z.n_,k.cd*k.iI,(function(n){return"\n background-color: ".concat((n.theme.background||x.Z.background).panel,";\n border: 1px solid ").concat((n.theme.borders||x.Z.borders).dark,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(n){return n.selected&&n.danger&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.selected&&n.primary&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.selected&&n.default&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")}),(function(n){return n.selected&&n.success&&"\n border-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.selected&&n.warning&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")}),(function(n){return n.success&&"\n border-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")})),I=(0,j.css)([""," "," "," "," ",""],(function(n){return n.danger&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")})),P=j.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-15svh8z-1"})([""," ",";border-radius:","px;display:inline-block;font-family:",";padding:6px;"," "," "," "," "," ",""],I,w.iD,Z.D7,y.ry,(function(n){return n.danger&&"\n color: ".concat((n.theme.content||x.Z.content).active,";\n ")}),(function(n){return n.primary&&"\n color: ".concat((n.theme.content||x.Z.content).active,";\n ")}),(function(n){return(n.default||n.success)&&"\n "}),(function(n){return n.default&&"\n color: ".concat((n.theme.content||x.Z.content).default,";\n ")}),(function(n){return n.success&&"\n color: ".concat((n.theme.content||x.Z.content).inverted,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.content||x.Z.content).inverted,";\n ")})),O=j.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-15svh8z-2"})([""," display:flex;height:auto;width:3px;",""],I,(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")})),N=r(90211),E=r(92083),C=r.n(E),M=r(66050),S=r(24224);function V(n){var e;return Object.keys((null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{}).sort()}function A(n){var e,r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=null,i=null,c=null,l=null,u={},a=(null===n||void 0===n?void 0:n.block_runs)||[],d=(null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{},f=(null===n||void 0===n||null===(r=n.metrics)||void 0===r?void 0:r.pipeline)||{},p=D(n);return Object.entries(d).forEach((function(n){var e,r=(0,s.Z)(n,2),a=r[0],d=r[1];if(!t||t===a){var m,v=d||{},h=v.destinations,b=void 0===h?{records_affected:null,records_inserted:null,records_updated:null}:h,x=v.sources,g=void 0===x?{records:null}:x,j=p[a]||[];if(t&&t===a&&j.every((function(n){var e=n.status;return M.V.COMPLETED===e}))&&null===o&&(o=0),null!==f&&void 0!==f&&null!==(e=f[a])&&void 0!==e&&e.record_counts)null===o&&(o=0),o+=Number(null===f||void 0===f||null===(m=f[a])||void 0===m?void 0:m.record_counts);else null!==g&&void 0!==g&&g.records&&(null===o&&(o=0),o+=Number(g.records));null!==b&&void 0!==b&&b.records_updated?(null===c&&(c=0),c+=Number(b.records_updated),null===l&&(l=0),l+=Number(b.records_updated)):null!==b&&void 0!==b&&b.records_inserted?(null===c&&(c=0),c+=Number(b.records_inserted),null===i&&(i=0),i+=Number(b.records_inserted)):null!==b&&void 0!==b&&b.records_affected&&(null===c&&(c=0),c+=Number(b.records_affected)),["destinations","sources"].forEach((function(n){var e=d[n]||{};null!==e&&void 0!==e&&e.error&&(u[a]||(u[a]={}),u[a][n]={error:null===e||void 0===e?void 0:e.error,errors:null===e||void 0===e?void 0:e.errors,message:null===e||void 0===e?void 0:e.message})}))}})),null===a||void 0===a||a.forEach((function(n){var e=n.block_uuid,r=n.metrics,t=n.status;if(M.V.FAILED===t&&null!==r&&void 0!==r&&r.error&&e){var o=e.split(":"),i=(0,s.Z)(o,3),c=(i[0],i[1]);i[2];u[c]||(u[c]={}),u[c][""]=r.error}})),{errors:u,records:o,recordsInserted:i,recordsProcessed:c,recordsUpdated:l}}function D(n){var e=n.block_runs,r={};return null===e||void 0===e||e.forEach((function(n){var e=n.block_uuid.split(":"),t=(0,s.Z)(e,3),o=(t[0],t[1]);t[2];r[o]||(r[o]=[]),r[o].push(n)})),r}function L(n){var e=D(n),r={};return Object.entries(e).forEach((function(n){var e=(0,s.Z)(n,2),t=e[0],o=e[1],i=o.filter((function(n){var e=n.status;return M.V.COMPLETED===e})),c=i.map((function(n){var e=n.completed_at,r=n.started_at,t=C().utc(e),o=C().utc(r);return t.diff(o,"second")})),l=i.length,u=o.length;r[t]={completed:l,runtime:c.length>=1?(0,S.Sm)(c)/c.length:null,total:u}})),r}function T(n){var e=n.block_runs,r=(null===e||void 0===e?void 0:e.length)||1,t=function(n){var e=(null===n||void 0===n?void 0:n.block_runs)||[];return null===e||void 0===e?void 0:e.filter((function(n){var e=n.status;return M.V.COMPLETED===e}))}(n).length||0;return t/r}function R(n){var e=n.completed_at,r=n.block_runs,t=void 0===r?[]:r,o=n.status;if(null===t||void 0===t||!t.length)return 0;var i=C().utc();if(e)i=C().utc(e);else if([m.V.CANCELLED,m.V.FAILED].includes(o)){var c=(0,S.YC)(t,(function(n){return n.started_at}),{ascending:!1})[0];i=C().utc(c.updated_at)}var l=C().utc(n.created_at);return i.diff(l,"second")}function B(n,e){var r,t,o,i,c,l=D(n),u=L(n),s=(null===n||void 0===n?void 0:n.metrics)||{blocks:null,pipeline:null},a=s.blocks||{},d=s.pipeline||{},f=(a[e],d[e],u[e]||{completed:null,total:null}),p=f.completed,m=f.total,v=p&&m?p/m:0,h=l[e]||[],b=h.every((function(n){var e=n.status;return M.V.COMPLETED===e})),x=(0,S.YC)(h,(function(n){return n.updated_at}),{ascending:!1})[0],g=null===(r=(0,S.YC)(h,(function(n){return n.started_at}),{ascending:!0})[0])||void 0===r?void 0:r.started_at;b?t=null===(c=(0,S.YC)(h,(function(n){return n.completed_at}),{ascending:!1})[0])||void 0===c?void 0:c.completed_at:x&&(i=null===x||void 0===x?void 0:x.updated_at);var j=b?C().utc(t||i):C().utc(),Z=C().utc(g);return{completed:p,completedAt:t,done:b,progress:v,runtime:o=j.diff(Z,"second"),startedAt:g,status:null===x||void 0===x?void 0:x.status,timeText:(0,N.zf)(o),total:m,updatedAt:i}}var z=r(28598);function F(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function U(n){for(var e=1;e=1&&(0,z.jsx)(v.Z,{mt:1,children:Object.entries(w).map((function(n,e){var r=(0,s.Z)(n,2),t=r[0];r[1];return(0,z.jsxs)(b.ZP,{monospace:!0,muted:!0,small:!0,children:[t," stream failed"]},t)}))})]})}),(0,z.jsxs)(d.Z,{flex:1,children:[(0,z.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,z.jsxs)(v.Z,{ml:3,py:3,children:[(0,z.jsxs)(v.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows processed"}),(0,z.jsx)(b.ZP,{monospace:!0,children:E>=1?(0,N.x6)(E):"-"})]}),(0,z.jsxs)(v.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows remaining"}),(0,z.jsx)(b.ZP,{monospace:!0,children:I>=1&&I>=E?(0,N.x6)(I-E):"-"})]}),m.V.RUNNING!==i&&(0,z.jsxs)(v.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Runtime"}),(0,z.jsx)(b.ZP,{monospace:!0,children:V})]})]})}),(0,z.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,z.jsxs)(v.Z,{ml:3,py:3,children:[(0,z.jsxs)(v.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Source"}),(0,z.jsx)(b.ZP,{monospace:!0,children:j||"-"})]}),(0,z.jsxs)(v.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Destination"}),(0,z.jsx)(b.ZP,{monospace:!0,children:a||"-"})]}),(0,z.jsxs)(v.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Streams"}),(0,z.jsx)(b.ZP,{monospace:!0,children:Z>=1?(0,N.x6)(Z):"-"})]})]})})]})]})}))},G=r(89565),W=r.n(G),Y=r(34376),q=r(60328),J=r(10919),X=r(87815),K=j.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1thr560-0"})(["display:flex;flex:1;"," "," ",""],(function(n){return n.even&&n.fill&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).cyan,";\n ")}),(function(n){return n.even&&!n.fill&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).cyanTransparent,";\n ")}),(function(n){return"\n height: ".concat((n.small?1:2)*k.iI,"px;\n ")})),Q=r(66653);var $=function(n){var e=n.onClickRow,r=n.pipelineRun,t=n.selectedStream,o=(0,Y.useRouter)(),i=(0,c.useState)(null),l=i[0],u=i[1],a=(0,c.useState)(null),d=a[0],h=a[1],x=(0,c.useMemo)((function(){return r?D(r):{}}),[r]),j=(0,c.useMemo)((function(){return r?L(r):{}}),[r]),Z=(0,c.useMemo)((function(){var n=0,e=[],r=[];if(Object.entries(j).forEach((function(t){var o=(0,s.Z)(t,2),i=(o[0],o[1]),c=i.completed,l=i.runtime,u=i.total;null===l?r.push(i):(e.push(l),n+=l*(u-c))})),0===e.length)return null;var t=(0,S.Sm)(e)/e.length;return r.forEach((function(e){var r=e.completed,o=e.total;n+=t*(o-r)})),n}),[j]),y=(0,c.useMemo)((function(){return t?j[t]:null}),[j,t]),w=(0,c.useMemo)((function(){if(t&&j){var n=j[t]||{},e=n.completed,o=n.total;if(o>=1)return e/o}else if(r)return T(r);return 0}),[y,r,t]),_=(0,c.useMemo)((function(){return(0,z.jsx)(f.Z,{children:(0,S.w6)(101).map((function(n,e){return(0,z.jsx)(K,{even:e%2===0,fill:w>0&&Math.round(100*w)>=e},e)}))})}),[w]),I=(0,c.useMemo)((function(){if(t){var n=x[t]||[],e=n.every((function(n){var e=n.status;return M.V.COMPLETED===e})),o=(0,S.YC)(n,(function(n){return n.updated_at}),{ascending:!1})[0],i=null===o||void 0===o?void 0:o.status,c=y||{},l=c.completed,u=c.runtime,s=c.total;if(e)return"Sync complete for ".concat(t);if([M.V.CANCELLED,M.V.FAILED].includes(i))return m.D[i];if(u&&s>=1){var a=Math.ceil(u*(s-l)/60);return"".concat((0,N._6)("minute",a,!0)," to completion")}return"Estimating time remaining for stream..."}if(m.V.COMPLETED===(null===r||void 0===r?void 0:r.status))return"Sync complete";if(r){if([m.V.CANCELLED,m.V.FAILED].includes(null===r||void 0===r?void 0:r.status))return m.D[null===r||void 0===r?void 0:r.status];if(m.V.INITIAL===(null===r||void 0===r?void 0:r.status))return"Initializing sync (this can take several minutes)";if(null===Z)return"Estimating time remaining...";var d=Math.ceil(Z/60);return"".concat((0,N._6)("minute",d,!0)," to completion")}return"Select a sync"}),[x,Z,y,r,t]),P=(0,c.useMemo)((function(){return r&&t?B(r,t):{completed:null,completedAt:null,done:null,progress:null,runtime:null,startedAt:null,status:null,timeText:null,total:null,updatedAt:null}}),[r,t]);(0,c.useEffect)((function(){var n;if(r){var e=R(r);u(e),n=setInterval((function(){return u((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[r]),(0,c.useEffect)((function(){var n;if(r&&t&&P){var e=(null===P||void 0===P?void 0:P.runtime)||0;h(e),n=setInterval((function(){return h((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[r,t,P]);var O=(0,c.useMemo)((function(){if(r){if(t)return null===P||void 0===P?void 0:P.timeText;var n=R(r);return(0,N.zf)(n)}}),[r,t,P]),E=(0,c.useMemo)((function(){var n=Math.floor(l%86400/3600),e=Math.floor(l%3600/60),r=Math.floor(l%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),r>=10?String(r):"0".concat(r)].join(":")}),[l]),C=(0,c.useMemo)((function(){var n=Math.floor(d%86400/3600),e=Math.floor(d%3600/60),r=Math.floor(d%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),r>=10?String(r):"0".concat(r)].join(":")}),[d]),F=(0,c.useMemo)((function(){return r?A(r):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[r]),U=F.errors,H=F.records,G=F.recordsInserted,$=F.recordsProcessed,nn=F.recordsUpdated,en=(0,c.useMemo)((function(){return r&&t?A(r,t):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[r,t]),rn=(0,c.useMemo)((function(){var n=t?null===en||void 0===en?void 0:en.records:H,e=t?null===en||void 0===en?void 0:en.recordsInserted:G,r=t?null===en||void 0===en?void 0:en.recordsProcessed:$,o=t?null===en||void 0===en?void 0:en.recordsUpdated:nn,i=[{label:"Rows fetched",value:null===n?"-":(0,N.x6)(n)}];return null===e&&null===o?i.push({label:"Rows processed",value:null===r?"-":(0,N.x6)(r)}):null!==e?i.push({label:"Rows inserted",value:(0,N.x6)(e)}):null!==o&&i.push({label:"Rows updated",value:(0,N.x6)(o)}),i.map((function(n){var e=n.label,r=n.value;return(0,z.jsxs)("div",{children:[(0,z.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:e}),(0,z.jsx)(b.ZP,{headline:!0,children:r})]},e)}))}),[H,en,G,$,nn,O,E,status]),tn=(0,c.useMemo)((function(){if(!r)return(0,z.jsx)("div",{});var n=V(r);return(0,z.jsx)(X.Z,{columnFlex:[null,null,null,null,null,null],columns:[{uuid:"Stream"},{uuid:"Start"},{uuid:"End"},{uuid:"Time"},{uuid:"Progress"},{uuid:"Logs"}],isSelectedRow:function(e){return t&&t===n[e]},onClickRow:e,rows:n.map((function(n){var e=B(r,n),t=(e.completed,e.completedAt),i=e.done,c=e.progress,l=e.startedAt,u=e.status,s=e.timeText,a=(e.total,!!U[n]);return[(0,z.jsx)(b.ZP,{danger:a,default:!a,monospace:!0,children:n},"stream"),(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:l?l.split(".")[0]:"-"},"started_at"),(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:t?t.split(".")[0]:"-"},"completed_at"),(0,z.jsx)(b.ZP,{default:!0,children:[M.V.INITIAL,M.V.RUNNING].includes(u)?"-":s},"runtime"),(0,z.jsxs)("div",{children:[i&&(0,z.jsx)(g.Jr,{default:!0,size:2*k.iI}),!i&&(0,z.jsx)(f.Z,{children:(0,S.w6)(51).map((function(n,e){return(0,z.jsx)(K,{fill:c>0&&Math.round(50*c)>=e,even:e%2===0,small:!0},e)}))})]},"progress"),(0,z.jsx)(q.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(n){o.push("/pipelines/".concat(r.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(r.id)),(0,Q.j)(n)},children:(0,z.jsx)(g.B4,{default:!0,size:2*k.iI})},"logs")]})),uuid:"".concat(null===r||void 0===r?void 0:r.id,"-streams-table")})}),[U,j,r,t]),on=(0,c.useMemo)((function(){var n,e,o,i,c,l,u,a;if(r&&t){var d=(null===r||void 0===r?void 0:r.metrics)||{blocks:null,destination:null,pipeline:null,source:null},f=null===d||void 0===d||null===(n=d.pipeline)||void 0===n||null===(e=n[t])||void 0===e||null===(o=e.bookmarks)||void 0===o?void 0:o[t],p=null===d||void 0===d||null===(i=d.blocks)||void 0===i||null===(c=i[t])||void 0===c||null===(l=c.destinations)||void 0===l||null===(u=l.state)||void 0===u||null===(a=u.bookmarks)||void 0===a?void 0:a[t];if(f||p){var m=Array.from(new Set(Object.keys(f||{}).concat(Object.keys(p||{})))).sort(),v=[];m.forEach((function(n){var e=[(0,z.jsx)(b.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[f,p].forEach((function(r,t){r&&e.push((0,z.jsx)(b.ZP,{monospace:!0,small:!0,children:r[n]},"".concat(n,"-").concat(t)))})),v.push(e)}));var h=[{label:function(){return""},uuid:"column"}];return[[null===d||void 0===d?void 0:d.source,"source",f],[null===d||void 0===d?void 0:d.destination,"destination",p]].forEach((function(n){var e=(0,s.Z)(n,3),r=e[0],t=e[1];e[2]&&h.push({uuid:"".concat(r," (").concat(t,")")})})),(0,z.jsx)(X.Z,{columnFlex:[null,1,1],columns:h,rows:v,uuid:"".concat(t,"-bookmark-table")})}}}),[r,t]),cn=(0,c.useMemo)((function(){var n,e,o,i,c,l;if(r&&t){var u=(null===r||void 0===r?void 0:r.metrics)||{blocks:null,destination:null,pipeline:null,source:null},a=null===u||void 0===u||null===(n=u.blocks)||void 0===n||null===(e=n[t])||void 0===e||null===(o=e.sources)||void 0===o?void 0:o.record,d=null===u||void 0===u||null===(i=u.blocks)||void 0===i||null===(c=i[t])||void 0===c||null===(l=c.destinations)||void 0===l?void 0:l.record;if(a||d){var f=Object.keys(d||a||{}).sort(),p=[];f.forEach((function(n){var e=[(0,z.jsx)(b.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[a,d].forEach((function(r,t){if(r){var o=r[n],i="object"===typeof o;e.push((0,z.jsxs)(b.ZP,{monospace:!0,small:!0,textOverflow:!0,whiteSpaceNormal:!0,wordBreak:!0,children:[i&&(0,z.jsx)("pre",{children:JSON.stringify(o,null,2)}),!i&&o]},"".concat(n,"-").concat(t)))}})),p.push(e)}));var m=[{label:function(){return""},uuid:"column"}];return[[null===u||void 0===u?void 0:u.source,"source",a],[null===u||void 0===u?void 0:u.destination,"destination",d]].forEach((function(n){var e=(0,s.Z)(n,3),r=e[0],t=e[1];e[2]&&m.push({uuid:"".concat(r," (").concat(t,")")})})),(0,z.jsx)(X.Z,{columnFlex:[null,1,1],columns:m,rows:p.map((function(n){return n.map((function(n){return(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:n},n)}))})),uuid:"".concat(t,"-bookmark-table")})}}}),[r,t]),ln=(0,c.useMemo)((function(){var n,e,o,i,c,l,u=null===r||void 0===r||null===(n=r.metrics)||void 0===n||null===(e=n.blocks)||void 0===e?void 0:e[t];return(null===u||void 0===u||null===(o=u.sources)||void 0===o||null===(i=o.block_tags)||void 0===i?void 0:i.destination_table)||(null===u||void 0===u||null===(c=u.destinations)||void 0===c||null===(l=c.block_tags)||void 0===l?void 0:l.destination_table)}),[r,t]);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(v.Z,{p:3,children:[t&&(0,z.jsx)(v.Z,{mb:3,children:(0,z.jsxs)(f.Z,{alignItems:"center",children:[(0,z.jsx)(J.Z,{block:!0,onClick:function(){return o.push("/pipelines/".concat(r.pipeline_uuid,"/syncs?pipeline_run_id=").concat(r.id))},preventDefault:!0,children:(0,z.jsxs)(f.Z,{alignItems:"center",children:[(0,z.jsx)(g.Xd,{default:!0,size:1.5*k.iI}),(0,z.jsx)(v.Z,{mr:1}),(0,z.jsx)(b.ZP,{default:!0,children:"Syncs"})]})}),(0,z.jsx)(v.Z,{mx:1,children:(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:"/"})}),(0,z.jsx)(b.ZP,{bold:!0,monospace:!0,children:t})]})}),(0,z.jsxs)(f.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,z.jsx)(v.Z,{mr:2,my:1,children:(0,z.jsx)(p.Z,{level:5,muted:!r,children:I})}),r&&(0,z.jsx)(q.Z,{onClick:function(){return o.push("/pipelines/".concat(r.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(r.id))},small:!0,children:"Logs"})]}),(0,z.jsx)(v.Z,{mt:2,children:_}),r&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(v.Z,{mt:3,children:(0,z.jsxs)(f.Z,{justifyContent:"space-between",children:[(0,z.jsxs)("div",{children:[(0,z.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:"Runtime"}),(0,z.jsxs)(b.ZP,{headline:!0,children:[t&&[M.V.INITIAL,M.V.RUNNING].includes(null===P||void 0===P?void 0:P.status)&&C,t&&![M.V.INITIAL,M.V.RUNNING].includes(null===P||void 0===P?void 0:P.status)&&(null===P||void 0===P?void 0:P.timeText),!t&&[m.V.INITIAL,m.V.RUNNING].includes(null===r||void 0===r?void 0:r.status)&&E,!t&&![m.V.INITIAL,m.V.RUNNING].includes(null===r||void 0===r?void 0:r.status)&&O]})]}),rn]})}),Object.values(U).length>=1&&(0,z.jsxs)(v.Z,{mt:3,children:[(0,z.jsx)(p.Z,{level:5,muted:!0,children:"Errors"}),Object.entries(U).map((function(n,e){var r=(0,s.Z)(n,2),o=r[0],i=r[1];return(!t||t===o)&&(0,z.jsx)(v.Z,{mt:e>=1?1:0,children:Object.entries(i).map((function(n){var e=(0,s.Z)(n,2),r=e[0],t=e[1],i=t.error,c=t.errors,l=t.message,u=Array.isArray(i)?i.join(" "):i;return(0,z.jsxs)("div",{children:[(0,z.jsx)(v.Z,{mb:l||(null===c||void 0===c?void 0:c.length)>=1?2:0,children:(0,z.jsxs)(b.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,children:[o,!!r&&(0,z.jsxs)(b.ZP,{inline:!0,monospace:!0,muted:!0,children:["\xa0(",r,")"]}),": ",(0,z.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:u&&(0,z.jsx)(W(),{children:u})})]})}),(0,z.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:l}),c.map((function(n){return(0,z.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:n},n)}))]},"".concat(o,"-").concat(r))}))},o)}))]})]})]}),r&&!t&&(0,z.jsx)(v.Z,{my:3,children:tn}),r&&t&&(0,z.jsxs)(z.Fragment,{children:[ln&&(0,z.jsx)(v.Z,{my:3,children:(0,z.jsxs)(v.Z,{px:3,children:[(0,z.jsx)(p.Z,{level:5,children:"Table name"}),(0,z.jsx)(v.Z,{mt:1,children:(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:ln})})]})}),on&&(0,z.jsxs)(v.Z,{my:3,children:[(0,z.jsx)(v.Z,{px:3,children:(0,z.jsx)(p.Z,{level:5,children:"Bookmarks"})}),(0,z.jsx)(v.Z,{px:1,children:on})]}),cn&&(0,z.jsxs)(v.Z,{my:3,children:[(0,z.jsx)(v.Z,{px:3,children:(0,z.jsx)(p.Z,{level:5,children:"Sample row"})}),(0,z.jsx)(v.Z,{px:1,children:cn})]})]})]})},nn=r(82531),en=r(59920),rn=r(33766),tn=r(59e3);function on(n){var e=n.pipeline,r=e.uuid,t=nn.ZP.pipeline_runs.list({_limit:20,_offset:0,pipeline_uuid:r},{refreshInterval:5e3}),o=t.data,i=(t.mutate,(0,c.useMemo)((function(){return(null===o||void 0===o?void 0:o.pipeline_runs)||[]}),[o])),u=(0,tn.iV)(),s=(0,c.useState)(null),a=s[0],d=s[1],f=(0,c.useState)(null),p=f[0],m=f[1];(0,c.useEffect)((function(){null!==u&&void 0!==u&&u.pipeline_run_id?m(null===i||void 0===i?void 0:i.find((function(n){return n.id===Number(u.pipeline_run_id)}))):p&&m(null),null!==u&&void 0!==u&&u.stream?d(u.stream):a&&d(null)}),[i,u,p,a]);var v=(0,c.useCallback)((function(){var n=p?V(p):[];return(0,z.jsx)($,{onClickRow:function(e){var r=n[e];(0,rn.u7)({stream:a===r?null:r})},pipelineRun:p,selectedStream:a})}),[p,a]),h=(0,c.useMemo)((function(){var n="/pipelines/".concat(r,"/syncs");p&&(n="".concat(n,"?pipeline_run_id=").concat(p.id));var e=[{label:function(){return"Syncs"},linkProps:a?{as:n,href:"/pipelines/[pipeline]/syncs"}:null}];return a&&e.push({label:function(){return a}}),e}),[p,a]);return(0,z.jsx)(l.Z,{breadcrumbs:h,buildSidekick:v,pageName:en.M.SYNCS,pipeline:e,title:function(n){var e=n.name;return"".concat(e," syncs")},uuid:"".concat(en.M.SYNCS,"_").concat(r),children:i.map((function(n){var e=(null===p||void 0===p?void 0:p.id)===n.id;return(0,z.jsx)(H,{onSelect:function(n){return(0,rn.u7)({pipeline_run_id:n,stream:null})},pipelineRun:n,selected:e},n.id)}))})}on.getInitialProps=function(){var n=(0,t.Z)(i().mark((function n(e){var r;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:r}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var cn=(0,u.Z)(on)},33766:function(n,e,r){"use strict";r.d(e,{g_:function(){return f},u7:function(){return d}});var t=r(75582),o=r(82394),i=r(34376),c=r.n(i),l=r(59e3),u=r(24224);function s(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function a(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=r.replaceParams,i=r.pushHistory,u=o?{}:(0,l.iV)();e=window.location.pathname;var s=i?c().push:c().replace,d=a(a({},u),n);Object.entries(n).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1];"undefined"!==typeof o&&null!==o||delete d[r]}));var f=(0,l.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return s(c().router.pathname,p,{shallow:!0})}function f(n,e,r){var o=r.addingMultipleValues,i=r.isList,c=r.itemsPerPage,l=r.resetLimitParams,s=a({},n);o?Object.entries(e).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1];if(Array.isArray(o)){var i="".concat(r,"[]");s[i]=o.map(String)}})):i?Object.entries(e).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1],i=String(o),c="".concat(r,"[]"),l=s[c];l&&Array.isArray(l)?(l=l.map(String)).includes(i)?s[c]=(0,u.Od)(l,(function(n){return n===i})):s[c]=l.concat(i):s[c]=[i]})):s=a(a({},s),e),l&&(s._limit=c||20,s._offset=0),d(s)}},59416:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/syncs",function(){return r(89745)}])}},function(n){n.O(0,[3850,2083,9565,9767,9386,1830,2626,9774,2888,179],(function(){return e=59416,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-c31fec2be1160dbe.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-c31fec2be1160dbe.js new file mode 100644 index 000000000000..68251f78652a --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-c31fec2be1160dbe.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7803],{45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return s},cE:function(){return f},cl:function(){return l},kA:function(){return u}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),l=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),u=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),s=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),a=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],a,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],a,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),l=t(67971),u=t(10919),s=t(86673),a=t(19711),d=t(46261),f=t(45838),p=t(28598);function v(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e=1&&!w&&(0,p.jsx)(f.Vq,{noHover:!0,children:g.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:v,compact:j,last:e===g.length-1,noBorder:k,sticky:E,children:(0,p.jsxs)(l.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,p.jsx)(a.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(s.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(a.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(C,"-col-").concat(n.uuid,"-").concat(e))}))}),D]})}},66050:function(n,e,t){"use strict";var r;t.d(e,{V:function(){return r}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(r||(r={}))},47409:function(n,e,t){"use strict";t.d(e,{D:function(){return c},V:function(){return i}});var r,o=t(82394),i=t(66050).V,c=(r={},(0,o.Z)(r,i.CANCELLED,"Cancelled"),(0,o.Z)(r,i.COMPLETED,"Done"),(0,o.Z)(r,i.FAILED,"Failed"),(0,o.Z)(r,i.INITIAL,"Ready"),(0,o.Z)(r,i.RUNNING,"Running"),r)},89745:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return cn}});var r=t(77837),o=t(38860),i=t.n(o),c=t(82684),l=t(2626),u=t(41788),s=t(75582),a=t(82394),d=t(93461),f=t(67971),p=t(87372),v=t(47409),m=t(86673),h=t(54283),b=t(19711),x=t(23831),g=t(10503),j=t(9518),Z=t(73942),y=t(2005),k=t(49125),w=t(31012),_=j.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-15svh8z-0"})(["border-radius:","px;margin:","px;overflow:hidden;"," "," "," "," "," "," &:hover{"," "," "," "," ","}"],Z.n_,k.cd*k.iI,(function(n){return"\n background-color: ".concat((n.theme.background||x.Z.background).panel,";\n border: 1px solid ").concat((n.theme.borders||x.Z.borders).dark,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(n){return n.selected&&n.danger&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.selected&&n.primary&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.selected&&n.default&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")}),(function(n){return n.selected&&n.success&&"\n border-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.selected&&n.warning&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")}),(function(n){return n.success&&"\n border-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")})),I=(0,j.css)([""," "," "," "," ",""],(function(n){return n.danger&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")})),P=j.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-15svh8z-1"})([""," ",";border-radius:","px;display:inline-block;font-family:",";padding:6px;"," "," "," "," "," ",""],I,w.iD,Z.D7,y.ry,(function(n){return n.danger&&"\n color: ".concat((n.theme.content||x.Z.content).active,";\n ")}),(function(n){return n.primary&&"\n color: ".concat((n.theme.content||x.Z.content).active,";\n ")}),(function(n){return(n.default||n.success)&&"\n "}),(function(n){return n.default&&"\n color: ".concat((n.theme.content||x.Z.content).default,";\n ")}),(function(n){return n.success&&"\n color: ".concat((n.theme.content||x.Z.content).inverted,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.content||x.Z.content).inverted,";\n ")})),O=j.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-15svh8z-2"})([""," display:flex;height:auto;width:3px;",""],I,(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")})),N=t(90211),E=t(92083),C=t.n(E),M=t(66050),S=t(24224);function V(n){var e;return Object.keys((null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{}).sort()}function D(n){var e,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=null,i=null,c=null,l=null,u={},a=(null===n||void 0===n?void 0:n.block_runs)||[],d=(null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{},f=(null===n||void 0===n||null===(t=n.metrics)||void 0===t?void 0:t.pipeline)||{},p=A(n);return Object.entries(d).forEach((function(n){var e,t=(0,s.Z)(n,2),a=t[0],d=t[1];if(!r||r===a){var v,m=d||{},h=m.destinations,b=void 0===h?{records_affected:null,records_inserted:null,records_updated:null}:h,x=m.sources,g=void 0===x?{records:null}:x,j=p[a]||[];if(r&&r===a&&j.every((function(n){var e=n.status;return M.V.COMPLETED===e}))&&null===o&&(o=0),null!==f&&void 0!==f&&null!==(e=f[a])&&void 0!==e&&e.record_counts)null===o&&(o=0),o+=Number(null===f||void 0===f||null===(v=f[a])||void 0===v?void 0:v.record_counts);else null!==g&&void 0!==g&&g.records&&(null===o&&(o=0),o+=Number(g.records));null!==b&&void 0!==b&&b.records_updated?(null===c&&(c=0),c+=Number(b.records_updated),null===l&&(l=0),l+=Number(b.records_updated)):null!==b&&void 0!==b&&b.records_inserted?(null===c&&(c=0),c+=Number(b.records_inserted),null===i&&(i=0),i+=Number(b.records_inserted)):null!==b&&void 0!==b&&b.records_affected&&(null===c&&(c=0),c+=Number(b.records_affected)),["destinations","sources"].forEach((function(n){var e=d[n]||{};null!==e&&void 0!==e&&e.error&&(u[a]||(u[a]={}),u[a][n]={error:null===e||void 0===e?void 0:e.error,errors:null===e||void 0===e?void 0:e.errors,message:null===e||void 0===e?void 0:e.message})}))}})),null===a||void 0===a||a.forEach((function(n){var e=n.block_uuid,t=n.metrics,r=n.status;if(M.V.FAILED===r&&null!==t&&void 0!==t&&t.error&&e){var o=e.split(":"),i=(0,s.Z)(o,3),c=(i[0],i[1]);i[2];u[c]||(u[c]={}),u[c][""]=t.error}})),{errors:u,records:o,recordsInserted:i,recordsProcessed:c,recordsUpdated:l}}function A(n){var e=n.block_runs,t={};return null===e||void 0===e||e.forEach((function(n){var e=n.block_uuid.split(":"),r=(0,s.Z)(e,3),o=(r[0],r[1]);r[2];t[o]||(t[o]=[]),t[o].push(n)})),t}function L(n){var e=A(n),t={};return Object.entries(e).forEach((function(n){var e=(0,s.Z)(n,2),r=e[0],o=e[1],i=o.filter((function(n){var e=n.status;return M.V.COMPLETED===e})),c=i.map((function(n){var e=n.completed_at,t=n.started_at,r=C().utc(e),o=C().utc(t);return r.diff(o,"second")})),l=i.length,u=o.length;t[r]={completed:l,runtime:c.length>=1?(0,S.Sm)(c)/c.length:null,total:u}})),t}function T(n){var e=n.block_runs,t=(null===e||void 0===e?void 0:e.length)||1,r=function(n){var e=(null===n||void 0===n?void 0:n.block_runs)||[];return null===e||void 0===e?void 0:e.filter((function(n){var e=n.status;return M.V.COMPLETED===e}))}(n).length||0;return r/t}function R(n){var e=n.completed_at,t=n.block_runs,r=void 0===t?[]:t,o=n.status;if(null===r||void 0===r||!r.length)return 0;var i=C().utc();if(e)i=C().utc(e);else if([v.V.CANCELLED,v.V.FAILED].includes(o)){var c=(0,S.YC)(r,(function(n){return n.started_at}),{ascending:!1})[0];i=C().utc(c.updated_at)}var l=C().utc(n.created_at);return i.diff(l,"second")}function B(n,e){var t,r,o,i,c,l=A(n),u=L(n),s=(null===n||void 0===n?void 0:n.metrics)||{blocks:null,pipeline:null},a=s.blocks||{},d=s.pipeline||{},f=(a[e],d[e],u[e]||{completed:null,total:null}),p=f.completed,v=f.total,m=p&&v?p/v:0,h=l[e]||[],b=h.every((function(n){var e=n.status;return M.V.COMPLETED===e})),x=(0,S.YC)(h,(function(n){return n.updated_at}),{ascending:!1})[0],g=null===(t=(0,S.YC)(h,(function(n){return n.started_at}),{ascending:!0})[0])||void 0===t?void 0:t.started_at;b?r=null===(c=(0,S.YC)(h,(function(n){return n.completed_at}),{ascending:!1})[0])||void 0===c?void 0:c.completed_at:x&&(i=null===x||void 0===x?void 0:x.updated_at);var j=b?C().utc(r||i):C().utc(),Z=C().utc(g);return{completed:p,completedAt:r,done:b,progress:m,runtime:o=j.diff(Z,"second"),startedAt:g,status:null===x||void 0===x?void 0:x.status,timeText:(0,N.zf)(o),total:v,updatedAt:i}}var z=t(28598);function F(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function U(n){for(var e=1;e=1&&(0,z.jsx)(m.Z,{mt:1,children:Object.entries(w).map((function(n,e){var t=(0,s.Z)(n,2),r=t[0];t[1];return(0,z.jsxs)(b.ZP,{monospace:!0,muted:!0,small:!0,children:[r," stream failed"]},r)}))})]})}),(0,z.jsxs)(d.Z,{flex:1,children:[(0,z.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,z.jsxs)(m.Z,{ml:3,py:3,children:[(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows processed"}),(0,z.jsx)(b.ZP,{monospace:!0,children:E>=1?(0,N.x6)(E):"-"})]}),(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows remaining"}),(0,z.jsx)(b.ZP,{monospace:!0,children:I>=1&&I>=E?(0,N.x6)(I-E):"-"})]}),v.V.RUNNING!==i&&(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Runtime"}),(0,z.jsx)(b.ZP,{monospace:!0,children:V})]})]})}),(0,z.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,z.jsxs)(m.Z,{ml:3,py:3,children:[(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Source"}),(0,z.jsx)(b.ZP,{monospace:!0,children:j||"-"})]}),(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Destination"}),(0,z.jsx)(b.ZP,{monospace:!0,children:a||"-"})]}),(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Streams"}),(0,z.jsx)(b.ZP,{monospace:!0,children:Z>=1?(0,N.x6)(Z):"-"})]})]})})]})]})}))},G=t(89565),W=t.n(G),Y=t(34376),q=t(60328),J=t(10919),X=t(87815),K=j.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1thr560-0"})(["display:flex;flex:1;"," "," ",""],(function(n){return n.even&&n.fill&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).cyan,";\n ")}),(function(n){return n.even&&!n.fill&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).cyanTransparent,";\n ")}),(function(n){return"\n height: ".concat((n.small?1:2)*k.iI,"px;\n ")})),Q=t(66653);var $=function(n){var e=n.onClickRow,t=n.pipelineRun,r=n.selectedStream,o=(0,Y.useRouter)(),i=(0,c.useState)(null),l=i[0],u=i[1],a=(0,c.useState)(null),d=a[0],h=a[1],x=(0,c.useMemo)((function(){return t?A(t):{}}),[t]),j=(0,c.useMemo)((function(){return t?L(t):{}}),[t]),Z=(0,c.useMemo)((function(){var n=0,e=[],t=[];if(Object.entries(j).forEach((function(r){var o=(0,s.Z)(r,2),i=(o[0],o[1]),c=i.completed,l=i.runtime,u=i.total;null===l?t.push(i):(e.push(l),n+=l*(u-c))})),0===e.length)return null;var r=(0,S.Sm)(e)/e.length;return t.forEach((function(e){var t=e.completed,o=e.total;n+=r*(o-t)})),n}),[j]),y=(0,c.useMemo)((function(){return r?j[r]:null}),[j,r]),w=(0,c.useMemo)((function(){if(r&&j){var n=j[r]||{},e=n.completed,o=n.total;if(o>=1)return e/o}else if(t)return T(t);return 0}),[y,t,r]),_=(0,c.useMemo)((function(){return(0,z.jsx)(f.Z,{children:(0,S.w6)(101).map((function(n,e){return(0,z.jsx)(K,{even:e%2===0,fill:w>0&&Math.round(100*w)>=e},e)}))})}),[w]),I=(0,c.useMemo)((function(){if(r){var n=x[r]||[],e=n.every((function(n){var e=n.status;return M.V.COMPLETED===e})),o=(0,S.YC)(n,(function(n){return n.updated_at}),{ascending:!1})[0],i=null===o||void 0===o?void 0:o.status,c=y||{},l=c.completed,u=c.runtime,s=c.total;if(e)return"Sync complete for ".concat(r);if([M.V.CANCELLED,M.V.FAILED].includes(i))return v.D[i];if(u&&s>=1){var a=Math.ceil(u*(s-l)/60);return"".concat((0,N._6)("minute",a,!0)," to completion")}return"Estimating time remaining for stream..."}if(v.V.COMPLETED===(null===t||void 0===t?void 0:t.status))return"Sync complete";if(t){if([v.V.CANCELLED,v.V.FAILED].includes(null===t||void 0===t?void 0:t.status))return v.D[null===t||void 0===t?void 0:t.status];if(v.V.INITIAL===(null===t||void 0===t?void 0:t.status))return"Initializing sync (this can take several minutes)";if(null===Z)return"Estimating time remaining...";var d=Math.ceil(Z/60);return"".concat((0,N._6)("minute",d,!0)," to completion")}return"Select a sync"}),[x,Z,y,t,r]),P=(0,c.useMemo)((function(){return t&&r?B(t,r):{completed:null,completedAt:null,done:null,progress:null,runtime:null,startedAt:null,status:null,timeText:null,total:null,updatedAt:null}}),[t,r]);(0,c.useEffect)((function(){var n;if(t){var e=R(t);u(e),n=setInterval((function(){return u((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[t]),(0,c.useEffect)((function(){var n;if(t&&r&&P){var e=(null===P||void 0===P?void 0:P.runtime)||0;h(e),n=setInterval((function(){return h((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[t,r,P]);var O=(0,c.useMemo)((function(){if(t){if(r)return null===P||void 0===P?void 0:P.timeText;var n=R(t);return(0,N.zf)(n)}}),[t,r,P]),E=(0,c.useMemo)((function(){var n=Math.floor(l%86400/3600),e=Math.floor(l%3600/60),t=Math.floor(l%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),t>=10?String(t):"0".concat(t)].join(":")}),[l]),C=(0,c.useMemo)((function(){var n=Math.floor(d%86400/3600),e=Math.floor(d%3600/60),t=Math.floor(d%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),t>=10?String(t):"0".concat(t)].join(":")}),[d]),F=(0,c.useMemo)((function(){return t?D(t):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t]),U=F.errors,H=F.records,G=F.recordsInserted,$=F.recordsProcessed,nn=F.recordsUpdated,en=(0,c.useMemo)((function(){return t&&r?D(t,r):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t,r]),tn=(0,c.useMemo)((function(){var n=r?null===en||void 0===en?void 0:en.records:H,e=r?null===en||void 0===en?void 0:en.recordsInserted:G,t=r?null===en||void 0===en?void 0:en.recordsProcessed:$,o=r?null===en||void 0===en?void 0:en.recordsUpdated:nn,i=[{label:"Rows fetched",value:null===n?"-":(0,N.x6)(n)}];return null===e&&null===o?i.push({label:"Rows processed",value:null===t?"-":(0,N.x6)(t)}):null!==e?i.push({label:"Rows inserted",value:(0,N.x6)(e)}):null!==o&&i.push({label:"Rows updated",value:(0,N.x6)(o)}),i.map((function(n){var e=n.label,t=n.value;return(0,z.jsxs)("div",{children:[(0,z.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:e}),(0,z.jsx)(b.ZP,{headline:!0,children:t})]},e)}))}),[H,en,G,$,nn,O,E,status]),rn=(0,c.useMemo)((function(){if(!t)return(0,z.jsx)("div",{});var n=V(t);return(0,z.jsx)(X.Z,{columnFlex:[null,null,null,null,null,null],columns:[{uuid:"Stream"},{uuid:"Start"},{uuid:"End"},{uuid:"Time"},{uuid:"Progress"},{uuid:"Logs"}],isSelectedRow:function(e){return r&&r===n[e]},onClickRow:e,rows:n.map((function(n){var e=B(t,n),r=(e.completed,e.completedAt),i=e.done,c=e.progress,l=e.startedAt,u=e.status,s=e.timeText,a=(e.total,!!U[n]);return[(0,z.jsx)(b.ZP,{danger:a,default:!a,monospace:!0,children:n},"stream"),(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:l?l.split(".")[0]:"-"},"started_at"),(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:r?r.split(".")[0]:"-"},"completed_at"),(0,z.jsx)(b.ZP,{default:!0,children:[M.V.INITIAL,M.V.RUNNING].includes(u)?"-":s},"runtime"),(0,z.jsxs)("div",{children:[i&&(0,z.jsx)(g.Jr,{default:!0,size:2*k.iI}),!i&&(0,z.jsx)(f.Z,{children:(0,S.w6)(51).map((function(n,e){return(0,z.jsx)(K,{fill:c>0&&Math.round(50*c)>=e,even:e%2===0,small:!0},e)}))})]},"progress"),(0,z.jsx)(q.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(n){o.push("/pipelines/".concat(t.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(t.id)),(0,Q.j)(n)},children:(0,z.jsx)(g.B4,{default:!0,size:2*k.iI})},"logs")]})),uuid:"".concat(null===t||void 0===t?void 0:t.id,"-streams-table")})}),[U,j,t,r]),on=(0,c.useMemo)((function(){var n,e,o,i,c,l,u,a;if(t&&r){var d=(null===t||void 0===t?void 0:t.metrics)||{blocks:null,destination:null,pipeline:null,source:null},f=null===d||void 0===d||null===(n=d.pipeline)||void 0===n||null===(e=n[r])||void 0===e||null===(o=e.bookmarks)||void 0===o?void 0:o[r],p=null===d||void 0===d||null===(i=d.blocks)||void 0===i||null===(c=i[r])||void 0===c||null===(l=c.destinations)||void 0===l||null===(u=l.state)||void 0===u||null===(a=u.bookmarks)||void 0===a?void 0:a[r];if(f||p){var v=Array.from(new Set(Object.keys(f||{}).concat(Object.keys(p||{})))).sort(),m=[];v.forEach((function(n){var e=[(0,z.jsx)(b.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[f,p].forEach((function(t,r){t&&e.push((0,z.jsx)(b.ZP,{monospace:!0,small:!0,children:t[n]},"".concat(n,"-").concat(r)))})),m.push(e)}));var h=[{label:function(){return""},uuid:"column"}];return[[null===d||void 0===d?void 0:d.source,"source",f],[null===d||void 0===d?void 0:d.destination,"destination",p]].forEach((function(n){var e=(0,s.Z)(n,3),t=e[0],r=e[1];e[2]&&h.push({uuid:"".concat(t," (").concat(r,")")})})),(0,z.jsx)(X.Z,{columnFlex:[null,1,1],columns:h,rows:m,uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),cn=(0,c.useMemo)((function(){var n,e,o,i,c,l;if(t&&r){var u=(null===t||void 0===t?void 0:t.metrics)||{blocks:null,destination:null,pipeline:null,source:null},a=null===u||void 0===u||null===(n=u.blocks)||void 0===n||null===(e=n[r])||void 0===e||null===(o=e.sources)||void 0===o?void 0:o.record,d=null===u||void 0===u||null===(i=u.blocks)||void 0===i||null===(c=i[r])||void 0===c||null===(l=c.destinations)||void 0===l?void 0:l.record;if(a||d){var f=Object.keys(d||a||{}).sort(),p=[];f.forEach((function(n){var e=[(0,z.jsx)(b.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[a,d].forEach((function(t,r){if(t){var o=t[n],i="object"===typeof o;e.push((0,z.jsxs)(b.ZP,{monospace:!0,small:!0,textOverflow:!0,whiteSpaceNormal:!0,wordBreak:!0,children:[i&&(0,z.jsx)("pre",{children:JSON.stringify(o,null,2)}),!i&&o]},"".concat(n,"-").concat(r)))}})),p.push(e)}));var v=[{label:function(){return""},uuid:"column"}];return[[null===u||void 0===u?void 0:u.source,"source",a],[null===u||void 0===u?void 0:u.destination,"destination",d]].forEach((function(n){var e=(0,s.Z)(n,3),t=e[0],r=e[1];e[2]&&v.push({uuid:"".concat(t," (").concat(r,")")})})),(0,z.jsx)(X.Z,{columnFlex:[null,1,1],columns:v,rows:p.map((function(n){return n.map((function(n){return(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:n},n)}))})),uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),ln=(0,c.useMemo)((function(){var n,e,o,i,c,l,u=null===t||void 0===t||null===(n=t.metrics)||void 0===n||null===(e=n.blocks)||void 0===e?void 0:e[r];return(null===u||void 0===u||null===(o=u.sources)||void 0===o||null===(i=o.block_tags)||void 0===i?void 0:i.destination_table)||(null===u||void 0===u||null===(c=u.destinations)||void 0===c||null===(l=c.block_tags)||void 0===l?void 0:l.destination_table)}),[t,r]);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(m.Z,{p:3,children:[r&&(0,z.jsx)(m.Z,{mb:3,children:(0,z.jsxs)(f.Z,{alignItems:"center",children:[(0,z.jsx)(J.Z,{block:!0,onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/syncs?pipeline_run_id=").concat(t.id))},preventDefault:!0,children:(0,z.jsxs)(f.Z,{alignItems:"center",children:[(0,z.jsx)(g.Xd,{default:!0,size:1.5*k.iI}),(0,z.jsx)(m.Z,{mr:1}),(0,z.jsx)(b.ZP,{default:!0,children:"Syncs"})]})}),(0,z.jsx)(m.Z,{mx:1,children:(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:"/"})}),(0,z.jsx)(b.ZP,{bold:!0,monospace:!0,children:r})]})}),(0,z.jsxs)(f.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,z.jsx)(m.Z,{mr:2,my:1,children:(0,z.jsx)(p.Z,{level:5,muted:!t,children:I})}),t&&(0,z.jsx)(q.Z,{onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(t.id))},small:!0,children:"Logs"})]}),(0,z.jsx)(m.Z,{mt:2,children:_}),t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(m.Z,{mt:3,children:(0,z.jsxs)(f.Z,{justifyContent:"space-between",children:[(0,z.jsxs)("div",{children:[(0,z.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:"Runtime"}),(0,z.jsxs)(b.ZP,{headline:!0,children:[r&&[M.V.INITIAL,M.V.RUNNING].includes(null===P||void 0===P?void 0:P.status)&&C,r&&![M.V.INITIAL,M.V.RUNNING].includes(null===P||void 0===P?void 0:P.status)&&(null===P||void 0===P?void 0:P.timeText),!r&&[v.V.INITIAL,v.V.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&E,!r&&![v.V.INITIAL,v.V.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&O]})]}),tn]})}),Object.values(U).length>=1&&(0,z.jsxs)(m.Z,{mt:3,children:[(0,z.jsx)(p.Z,{level:5,muted:!0,children:"Errors"}),Object.entries(U).map((function(n,e){var t=(0,s.Z)(n,2),o=t[0],i=t[1];return(!r||r===o)&&(0,z.jsx)(m.Z,{mt:e>=1?1:0,children:Object.entries(i).map((function(n){var e=(0,s.Z)(n,2),t=e[0],r=e[1],i=r.error,c=r.errors,l=r.message,u=Array.isArray(i)?i.join(" "):i;return(0,z.jsxs)("div",{children:[(0,z.jsx)(m.Z,{mb:l||(null===c||void 0===c?void 0:c.length)>=1?2:0,children:(0,z.jsxs)(b.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,children:[o,!!t&&(0,z.jsxs)(b.ZP,{inline:!0,monospace:!0,muted:!0,children:["\xa0(",t,")"]}),": ",(0,z.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:u&&(0,z.jsx)(W(),{children:u})})]})}),(0,z.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:l}),c.map((function(n){return(0,z.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:n},n)}))]},"".concat(o,"-").concat(t))}))},o)}))]})]})]}),t&&!r&&(0,z.jsx)(m.Z,{my:3,children:rn}),t&&r&&(0,z.jsxs)(z.Fragment,{children:[ln&&(0,z.jsx)(m.Z,{my:3,children:(0,z.jsxs)(m.Z,{px:3,children:[(0,z.jsx)(p.Z,{level:5,children:"Table name"}),(0,z.jsx)(m.Z,{mt:1,children:(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:ln})})]})}),on&&(0,z.jsxs)(m.Z,{my:3,children:[(0,z.jsx)(m.Z,{px:3,children:(0,z.jsx)(p.Z,{level:5,children:"Bookmarks"})}),(0,z.jsx)(m.Z,{px:1,children:on})]}),cn&&(0,z.jsxs)(m.Z,{my:3,children:[(0,z.jsx)(m.Z,{px:3,children:(0,z.jsx)(p.Z,{level:5,children:"Sample row"})}),(0,z.jsx)(m.Z,{px:1,children:cn})]})]})]})},nn=t(82531),en=t(59920),tn=t(33766),rn=t(59e3);function on(n){var e=n.pipeline,t=e.uuid,r=nn.ZP.pipeline_runs.list({_limit:20,_offset:0,pipeline_uuid:t},{refreshInterval:5e3}),o=r.data,i=(r.mutate,(0,c.useMemo)((function(){return(null===o||void 0===o?void 0:o.pipeline_runs)||[]}),[o])),u=(0,rn.iV)(),s=(0,c.useState)(null),a=s[0],d=s[1],f=(0,c.useState)(null),p=f[0],v=f[1];(0,c.useEffect)((function(){null!==u&&void 0!==u&&u.pipeline_run_id?v(null===i||void 0===i?void 0:i.find((function(n){return n.id===Number(u.pipeline_run_id)}))):p&&v(null),null!==u&&void 0!==u&&u.stream?d(u.stream):a&&d(null)}),[i,u,p,a]);var m=(0,c.useCallback)((function(){var n=p?V(p):[];return(0,z.jsx)($,{onClickRow:function(e){var t=n[e];(0,tn.u7)({stream:a===t?null:t})},pipelineRun:p,selectedStream:a})}),[p,a]),h=(0,c.useMemo)((function(){var n="/pipelines/".concat(t,"/syncs");p&&(n="".concat(n,"?pipeline_run_id=").concat(p.id));var e=[{label:function(){return"Syncs"},linkProps:a?{as:n,href:"/pipelines/[pipeline]/syncs"}:null}];return a&&e.push({label:function(){return a}}),e}),[p,a]);return(0,z.jsx)(l.Z,{breadcrumbs:h,buildSidekick:m,pageName:en.M.SYNCS,pipeline:e,title:function(n){var e=n.name;return"".concat(e," syncs")},uuid:"".concat(en.M.SYNCS,"_").concat(t),children:i.map((function(n){var e=(null===p||void 0===p?void 0:p.id)===n.id;return(0,z.jsx)(H,{onSelect:function(n){return(0,tn.u7)({pipeline_run_id:n,stream:null})},pipelineRun:n,selected:e},n.id)}))})}on.getInitialProps=function(){var n=(0,r.Z)(i().mark((function n(e){var t;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var cn=(0,u.Z)(on)},33766:function(n,e,t){"use strict";t.d(e,{g_:function(){return f},u7:function(){return d}});var r=t(75582),o=t(82394),i=t(34376),c=t.n(i),l=t(59e3),u=t(24224);function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=t.replaceParams,i=t.pushHistory,u=o?{}:(0,l.iV)();e=window.location.pathname;var s=i?c().push:c().replace,d=a(a({},u),n);Object.entries(n).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],o=e[1];"undefined"!==typeof o&&null!==o||delete d[t]}));var f=(0,l.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return s(c().router.pathname,p,{shallow:!0})}function f(n,e,t){var o=t.addingMultipleValues,i=t.isList,c=t.itemsPerPage,l=t.resetLimitParams,s=a({},n);o?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],o=e[1];if(Array.isArray(o)){var i="".concat(t,"[]");s[i]=o.map(String)}})):i?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],o=e[1],i=String(o),c="".concat(t,"[]"),l=s[c];l&&Array.isArray(l)?(l=l.map(String)).includes(i)?s[c]=(0,u.Od)(l,(function(n){return n===i})):s[c]=l.concat(i):s[c]=[i]})):s=a(a({},s),e),l&&(s._limit=c||20,s._offset=0),d(s)}},59416:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/syncs",function(){return t(89745)}])}},function(n){n.O(0,[3850,2083,9565,2344,9386,1830,2626,9774,2888,179],(function(){return e=59416,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-181343d8eb894426.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-181343d8eb894426.js new file mode 100644 index 000000000000..95f3efa9acbb --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-181343d8eb894426.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4249],{58122:function(e,n,t){"use strict";t.d(n,{CL:function(){return f},FS:function(){return h},JZ:function(){return b},e7:function(){return v},v0:function(){return p},wx:function(){return g}});var r=t(75582),i=t(82394),o=t(43313),c=t(93348),u=t(1286),l=t(90211),a=t(84779);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n"}):n===c.Xm.EVENT&&e.push({uuid:"event",value:""}),e}function v(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),o=t[0],c=t[1],u=c;try{u=JSON.parse(c)}catch(l){}return d(d({},e),{},(0,i.Z)({},o,u))}),{}):e}},97225:function(e,n,t){"use strict";var r=t(75582),i=t(12691),o=t.n(i),c=t(82684),u=t(83455),l=t(34376),a=t(60328),s=t(47999),d=t(67971),p=t(10919),f=t(93348),h=t(62609),g=t(86673),b=t(87815),v=t(19711),m=t(82531),x=t(10503),j=t(49125),y=t(45838),O=t(9736),Z=t(96510),w=t(66653),P=t(28598);n.Z=function(e){var n=e.fetchPipelineSchedules,t=e.highlightRowOnHover,i=e.includeCreatedAtColumn,_=e.includePipelineColumn,k=e.pipeline,C=e.pipelineSchedules,S=e.selectedSchedule,I=e.setErrors,E=e.setSelectedSchedule,T=e.stickyHeader,D=null===k||void 0===k?void 0:k.uuid,N=(0,l.useRouter)(),A=(0,c.useRef)({}),H=(0,c.useState)(null),V=H[0],R=H[1],Y=(0,c.useState)(0),M=Y[0],B=Y[1],F=(0,c.useState)(0),W=F[0],q=F[1],J=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),L=(0,r.Z)(J,1)[0],z=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){n(),D?N.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(D,"/triggers")):n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),U=(0,r.Z)(z,1)[0],X=[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest run status"},{uuid:"Logs"}];(0,O.Ct)()||X.push({label:function(){return""},uuid:"edit/delete"});var G=[null,1,1,3,1,null,null,null,null];return _&&(X.splice(2,0,{uuid:"Pipeline"}),G.splice(2,0,2)),i&&(X.splice(3,0,{uuid:"Created at"}),G.splice(3,0,null)),(0,P.jsx)(y.cl,{overflowVisible:!0,children:0===C.length?(0,P.jsx)(g.Z,{px:3,py:1,children:(0,P.jsx)(v.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(b.Z,{columnFlex:G,columns:X,highlightRowOnHover:t,isSelectedRow:function(e){return C[e].id===(null===S||void 0===S?void 0:S.id)},onClickRow:E?function(e){return null===E||void 0===E?void 0:E(C[e])}:null,rowVerticalPadding:6,rows:C.map((function(e,n){var t,r=e.id,u=e.created_at,l=e.pipeline_runs_count,b=e.pipeline_uuid,m=e.last_pipeline_run_status,y=e.name,Z=e.schedule_interval,k=e.status,C=D||b;A.current[r]=(0,c.createRef)();var S=[(0,P.jsx)(a.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,w.j)(n),L({id:e.id,status:f.fq.ACTIVE===k?f.fq.INACTIVE:f.fq.ACTIVE})},children:f.fq.ACTIVE===k?(0,P.jsx)(x.dz,{muted:!0,size:2*j.iI}):(0,P.jsx)(x.Py,{default:!0,size:2*j.iI})},"toggle_trigger_".concat(n)),(0,P.jsx)(v.ZP,{default:f.fq.INACTIVE===k,monospace:!0,success:f.fq.ACTIVE===k,children:k},"trigger_status_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:null===(t=f.Z4[e.schedule_type])||void 0===t?void 0:t.call(f.Z4)},"trigger_type_".concat(n)),(0,P.jsx)(o(),{as:"/pipelines/".concat(C,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(p.Z,{bold:!0,onClick:function(e){(0,w.j)(e),N.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(C,"/triggers/").concat(r))},sameColorAsText:!0,children:y})},"trigger_name_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:Z},"trigger_frequency_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:l},"trigger_run_count_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:m||"N/A"},"latest_run_status_".concat(n)),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(C,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,P.jsx)(x.B4,{default:!0,size:2*j.iI})},"logs_button_".concat(n))];return(0,O.Ct)()||S.push((0,P.jsxs)(d.Z,{children:[(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(C,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,P.jsx)(x.I8,{default:!0,size:2*j.iI})}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,i;R(r),B((null===(e=A.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),q((null===(t=A.current[r])||void 0===t||null===(i=t.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:A.current[r],title:"Delete",children:(0,P.jsx)(x.rF,{default:!0,size:2*j.iI})}),(0,P.jsx)(s.Z,{onClickOutside:function(){return R(null)},open:V===r,children:(0,P.jsx)(h.Z,{danger:!0,left:(W||0)-286,onCancel:function(){return R(null)},onClick:function(){R(null),U(r)},title:"Are you sure you want to delete the trigger ".concat(y,"?"),top:(M||0)-(n<=1?40:96),width:40*j.iI})})]},"edit_delete_buttons_".concat(n))),_&&S.splice(2,0,(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:C},"pipeline_name_".concat(n))),i&&S.splice(3,0,(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:u},"created_at_".concat(n))),S})),stickyHeader:T,uuid:"pipeline-triggers"})})}},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return s},fq:function(){return u},kJ:function(){return a}});var r,i,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var u,l,a,s=(r={},(0,c.Z)(r,o.API,(function(){return"API"})),(0,c.Z)(r,o.EVENT,(function(){return"event"})),(0,c.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(u||(u={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(a||(a={}));var d=(i={},(0,c.Z)(i,a.CREATED_AT,"Created at"),(0,c.Z)(i,a.NAME,"Name"),(0,c.Z)(i,a.PIPELINE,"Pipeline"),(0,c.Z)(i,a.STATUS,"Status"),(0,c.Z)(i,a.TYPE,"Type"),i)},29237:function(e,n,t){"use strict";var r=t(9518),i=t(67971),o=t(86673),c=t(19711),u=t(23831),l=t(73942),a=t(37391),s=t(49125),d=t(28598),p=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),f=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return!e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),p,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),g=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*s.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,u=e.contentContainerRef,l=e.dark,a=e.footer,s=e.fullHeight,p=void 0===s||s,v=e.fullWidth,m=void 0===v||v,x=e.header,j=e.headerHeight,y=e.headerIcon,O=e.headerPaddingVertical,Z=e.headerTitle,w=e.maxHeight,P=e.maxWidth,_=e.minWidth,k=e.noPadding,C=e.overflowVisible,S=e.subtitle;return(0,d.jsxs)(f,{borderless:n,dark:l,fullHeight:p,fullWidth:m,maxHeight:w,maxWidth:P,minWidth:_,overflowVisible:C,ref:r,children:[(x||Z)&&(0,d.jsxs)(h,{headerPaddingVertical:O,height:j,children:[x&&x,Z&&(0,d.jsx)(i.Z,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.Z,{alignItems:"center",children:[y&&y,(0,d.jsx)(o.Z,{ml:y?1:0,children:(0,d.jsx)(c.ZP,{bold:!0,default:!0,children:Z})})]})})]}),(0,d.jsxs)(g,{maxHeight:w,noPadding:k,overflowVisible:C,ref:u,children:[S&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(c.ZP,{default:!0,children:S})}),t]}),a&&(0,d.jsx)(b,{children:a})]})}},38435:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(28598),a=["rows"];function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n0&&(0,V.jsx)(w.Z,{mt:2,children:(0,V.jsx)(P.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(m).map((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1];return[(0,V.jsx)(_.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),y(t,r)]}))})})]})},F=t(37391),W=E.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1xgfh62-0"})(["border-bottom:1px solid ",";padding:","px;"],I.Z.borders.medium,D.tr),q=E.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-1xgfh62-1"})([""," height:80px;display:flex;overflow-x:scroll;"],F.w5),J=E.default.div.withConfig({displayName:"indexstyle__VariableCardStyle",componentId:"sc-1xgfh62-2"})(["background-color:",";border-radius:","px;flex-shrink:0;margin-right:","px;padding:","px;"],I.Z.background.output,T.n_,D.iI,D.tr),L=t(73899);var z=function(e){var n=e.hasOverride,t=e.scheduleType,r=e.variables,i=e.variablesOverride,c=[];return Object.entries(r).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1],u=null===i||void 0===i?void 0:i[t];c.push({uuid:t,value:(0,H.FS)(u||r)})})),(0,H.JZ)(c,t),(0,V.jsxs)(W,{children:[(0,V.jsx)(w.Z,{mb:2,children:(0,V.jsxs)(_.ZP,{bold:!0,large:!0,monospace:!0,muted:!0,children:["Runtime variables",n&&" (override)"]})}),(0,V.jsx)(q,{noScrollbarTrackBackground:!0,children:r&&c.map((function(e){var n=e.uuid,t=e.value;return(0,V.jsxs)(J,{children:[(0,V.jsx)(_.ZP,{monospace:!0,small:!0,children:n}),(0,V.jsx)(_.ZP,{color:L.Or,monospace:!0,small:!0,children:(0,H.FS)(t)})]})}))})]})},U=t(46261),X=t(97225),G=t(82531),Q=t(10503),$=t(59920),K=t(42305),ee=t(7715),ne=t(9736),te=t(96510),re=t(83608);function ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function oe(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:c)}function s(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function d(e){return i()(e).unix()}function p(e,n,t){return"".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t)}function f(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function h(e){return e.padStart(2,"0")}},40183:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers",function(){return t(6087)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2344,9386,1830,2626,4463,6532,1286,9774,2888,179],(function(){return n=40183,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bf6d2785d72322a8.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bf6d2785d72322a8.js deleted file mode 100644 index d1dceb2a767d..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bf6d2785d72322a8.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4249],{58122:function(e,n,t){"use strict";t.d(n,{CL:function(){return f},FS:function(){return h},JZ:function(){return b},e7:function(){return v},v0:function(){return p},wx:function(){return g}});var r=t(75582),i=t(82394),o=t(43313),c=t(93348),u=t(1286),l=t(90211),a=t(84779);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n"}):n===c.Xm.EVENT&&e.push({uuid:"event",value:""}),e}function v(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),o=t[0],c=t[1],u=c;try{u=JSON.parse(c)}catch(l){}return d(d({},e),{},(0,i.Z)({},o,u))}),{}):e}},97225:function(e,n,t){"use strict";var r=t(75582),i=t(12691),o=t.n(i),c=t(82684),u=t(83455),l=t(34376),a=t(60328),s=t(47999),d=t(67971),p=t(10919),f=t(93348),h=t(62609),g=t(86673),b=t(87815),v=t(19711),m=t(82531),x=t(10503),j=t(49125),y=t(45838),O=t(9736),Z=t(96510),w=t(66653),P=t(28598);n.Z=function(e){var n=e.fetchPipelineSchedules,t=e.highlightRowOnHover,i=e.includeCreatedAtColumn,_=e.includePipelineColumn,k=e.pipeline,C=e.pipelineSchedules,S=e.selectedSchedule,I=e.setErrors,E=e.setSelectedSchedule,D=e.stickyHeader,T=null===k||void 0===k?void 0:k.uuid,N=(0,l.useRouter)(),A=(0,c.useRef)({}),H=(0,c.useState)(null),V=H[0],R=H[1],Y=(0,c.useState)(0),M=Y[0],B=Y[1],F=(0,c.useState)(0),q=F[0],J=F[1],L=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),z=(0,r.Z)(L,1)[0],U=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){n(),T?N.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(T,"/triggers")):n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),W=(0,r.Z)(U,1)[0],X=[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest run status"},{uuid:"Logs"}];(0,O.Ct)()||X.push({label:function(){return""},uuid:"edit/delete"});var G=[null,1,1,3,1,null,null,null,null];return _&&(X.splice(2,0,{uuid:"Pipeline"}),G.splice(2,0,2)),i&&(X.splice(3,0,{uuid:"Created at"}),G.splice(3,0,null)),(0,P.jsx)(y.cl,{overflowVisible:!0,children:0===C.length?(0,P.jsx)(g.Z,{px:3,py:1,children:(0,P.jsx)(v.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(b.Z,{columnFlex:G,columns:X,highlightRowOnHover:t,isSelectedRow:function(e){return C[e].id===(null===S||void 0===S?void 0:S.id)},onClickRow:E?function(e){return null===E||void 0===E?void 0:E(C[e])}:null,rowVerticalPadding:6,rows:C.map((function(e,n){var t,r=e.id,u=e.created_at,l=e.pipeline_runs_count,b=e.pipeline_uuid,m=e.last_pipeline_run_status,y=e.name,Z=e.schedule_interval,k=e.status,C=T||b;A.current[r]=(0,c.createRef)();var S=[(0,P.jsx)(a.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,w.j)(n),z({id:e.id,status:f.fq.ACTIVE===k?f.fq.INACTIVE:f.fq.ACTIVE})},children:f.fq.ACTIVE===k?(0,P.jsx)(x.dz,{muted:!0,size:2*j.iI}):(0,P.jsx)(x.Py,{default:!0,size:2*j.iI})},"toggle_trigger_".concat(n)),(0,P.jsx)(v.ZP,{default:f.fq.INACTIVE===k,monospace:!0,success:f.fq.ACTIVE===k,children:k},"trigger_status_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:null===(t=f.Z4[e.schedule_type])||void 0===t?void 0:t.call(f.Z4)},"trigger_type_".concat(n)),(0,P.jsx)(o(),{as:"/pipelines/".concat(C,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(p.Z,{bold:!0,onClick:function(e){(0,w.j)(e),N.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(C,"/triggers/").concat(r))},sameColorAsText:!0,children:y})},"trigger_name_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:Z},"trigger_frequency_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:l},"trigger_run_count_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:m||"N/A"},"latest_run_status_".concat(n)),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(C,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,P.jsx)(x.B4,{default:!0,size:2*j.iI})},"logs_button_".concat(n))];return(0,O.Ct)()||S.push((0,P.jsxs)(d.Z,{children:[(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(C,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,P.jsx)(x.I8,{default:!0,size:2*j.iI})}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,i;R(r),B((null===(e=A.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),J((null===(t=A.current[r])||void 0===t||null===(i=t.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:A.current[r],title:"Delete",children:(0,P.jsx)(x.rF,{default:!0,size:2*j.iI})}),(0,P.jsx)(s.Z,{onClickOutside:function(){return R(null)},open:V===r,children:(0,P.jsx)(h.Z,{danger:!0,left:(q||0)-286,onCancel:function(){return R(null)},onClick:function(){R(null),W(r)},title:"Are you sure you want to delete the trigger ".concat(y,"?"),top:(M||0)-(n<=1?40:96),width:40*j.iI})})]},"edit_delete_buttons_".concat(n))),_&&S.splice(2,0,(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:C},"pipeline_name_".concat(n))),i&&S.splice(3,0,(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:u},"created_at_".concat(n))),S})),stickyHeader:D,uuid:"pipeline-triggers"})})}},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return s},fq:function(){return u},kJ:function(){return a}});var r,i,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var u,l,a,s=(r={},(0,c.Z)(r,o.API,(function(){return"API"})),(0,c.Z)(r,o.EVENT,(function(){return"event"})),(0,c.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(u||(u={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(a||(a={}));var d=(i={},(0,c.Z)(i,a.CREATED_AT,"Created at"),(0,c.Z)(i,a.NAME,"Name"),(0,c.Z)(i,a.PIPELINE,"Pipeline"),(0,c.Z)(i,a.STATUS,"Status"),(0,c.Z)(i,a.TYPE,"Type"),i)},29237:function(e,n,t){"use strict";var r=t(9518),i=t(67971),o=t(86673),c=t(19711),u=t(31969),l=t(73942),a=t(37391),s=t(49125),d=t(28598),p=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),f=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;width:100%;"," "," "," "," "," ",""],l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).panel,";\n border: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),p,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),g=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*s.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,u=e.contentContainerRef,l=e.footer,a=e.fullHeight,s=void 0===a||a,p=e.header,v=e.headerHeight,m=e.headerIcon,x=e.headerPaddingVertical,j=e.headerTitle,y=e.maxHeight,O=e.noPadding,Z=e.overflowVisible,w=e.subtitle,P=e.minWidth;return(0,d.jsxs)(f,{borderless:n,fullHeight:s,maxHeight:y,minWidth:P,overflowVisible:Z,ref:r,children:[(p||j)&&(0,d.jsxs)(h,{headerPaddingVertical:x,height:v,children:[p&&p,j&&(0,d.jsx)(i.Z,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.Z,{alignItems:"center",children:[m&&m,(0,d.jsx)(o.Z,{ml:m?1:0,children:(0,d.jsx)(c.ZP,{bold:!0,default:!0,children:j})})]})})]}),(0,d.jsxs)(g,{maxHeight:y,noPadding:O,overflowVisible:Z,ref:u,children:[w&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(c.ZP,{default:!0,children:w})}),t]}),l&&(0,d.jsx)(b,{children:l})]})}},82944:function(e,n,t){"use strict";var r=t(82394),i=t(91835),o=t(82684),c=t(9518),u=t(69898),l=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n0&&(0,I.jsx)(w.Z,{mt:2,children:(0,I.jsx)(P.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(m).map((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1];return[(0,I.jsx)(_.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),y(t,r)]}))})})]})},X=t(37391),G=C.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1xgfh62-0"})(["border-bottom:1px solid ",";padding:","px;"],Y.Z.borders.medium,B.tr),Q=C.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-1xgfh62-1"})([""," height:80px;display:flex;overflow-x:scroll;"],X.w5),$=C.default.div.withConfig({displayName:"indexstyle__VariableCardStyle",componentId:"sc-1xgfh62-2"})(["background-color:",";border-radius:","px;flex-shrink:0;margin-right:","px;padding:","px;"],Y.Z.background.output,M.n_,B.iI,B.tr),K=t(73899);var ee=function(e){var n=e.hasOverride,t=e.scheduleType,r=e.variables,i=e.variablesOverride,c=[];return Object.entries(r).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1],u=null===i||void 0===i?void 0:i[t];c.push({uuid:t,value:(0,J.FS)(u||r)})})),(0,J.JZ)(c,t),(0,I.jsxs)(G,{children:[(0,I.jsx)(w.Z,{mb:2,children:(0,I.jsxs)(_.ZP,{bold:!0,large:!0,monospace:!0,muted:!0,children:["Runtime variables",n&&" (override)"]})}),(0,I.jsx)(Q,{noScrollbarTrackBackground:!0,children:r&&c.map((function(e){var n=e.uuid,t=e.value;return(0,I.jsxs)($,{children:[(0,I.jsx)(_.ZP,{monospace:!0,small:!0,children:n}),(0,I.jsx)(_.ZP,{color:K.Or,monospace:!0,small:!0,children:(0,J.FS)(t)})]})}))})]})},ne=t(46261),te=t(97225),re=t(82531),ie=t(10503),oe=t(59920),ce=t(42305),ue=t(7715),le=t(9736),ae=t(96510),se=t(83608);function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function pe(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:c)}function s(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function d(e){return i()(e).unix()}function p(e,n,t){return"".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t)}function f(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function h(e){return e.padStart(2,"0")}},40183:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers",function(){return t(56312)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,9767,9386,9898,1830,2626,4463,6532,1286,9774,2888,179],(function(){return n=40183,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-79e262eab1263ad6.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a60003fce7dfb93.js similarity index 99% rename from mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-79e262eab1263ad6.js rename to mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a60003fce7dfb93.js index c9d2f22adf86..1ef7a959ffe9 100644 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-79e262eab1263ad6.js +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a60003fce7dfb93.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[643],{90659:function(e,n,t){"use strict";var r=t(67403),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,n){var t,o,l,c,s,u,a=!1;n||(n={}),t=n.debug||!1;try{if(l=r(),c=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),n.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[n.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(n.format,e);n.onCopy&&(r.preventDefault(),n.onCopy(r.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),s.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(d){t&&console.error("unable to copy using execCommand: ",d),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),a=!0}catch(d){t&&console.error("unable to copy using clipboardData: ",d),t&&console.error("falling back to prompt"),o=function(e){var n=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,n)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(c):s.removeAllRanges()),u&&document.body.removeChild(u),l()}return a}},11984:function(e,n,t){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.CopyToClipboard=void 0;var i=c(t(82684)),o=c(t(90659)),l=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function p(e,n){for(var t=0;t=0?n:0});l.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(W,"/triggers/").concat(B,"?").concat((0,L.uM)(t)))},totalPages:Math.ceil(de/30)})})]})}),[ue,t,ae,fe]),ge=(0,u.useState)(S.G[0]),ve=ge[0],je=ge[1],xe=(0,a.Db)((function(e){return w.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:(0,F.gR)(e,["id"])})}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return T({errors:n,response:e})}})}}),be=(0,i.Z)(xe,2),ye=be[0],Ze=be[1].isLoading,_e=(0,u.useMemo)((function(){return b.fq.ACTIVE===te}),[te]),Oe=(0,u.useMemo)((function(){var e,n,t={default:!0,size:1.5*I.iI},r=[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.VW,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger type"})]},"trigger_type_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:null===(e=b.Z4[Q])||void 0===e?void 0:e.call(b.Z4)},"trigger_type")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.rs,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Status"})]},"trigger_status_label"),(0,V.jsx)(O.ZP,{danger:!_e,monospace:!0,success:_e,children:te},"trigger_status")]];if(ee){var i=(0,N.gU)(ee),o=i.time,l=i.unit,c=1===o?l:"".concat(l,"s");r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.kI,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"SLA"})]},"trigger_sla_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:"".concat(o," ").concat(c)},"trigger_sla")])}(Y&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.Pf,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Frequency"})]},"trigger_frequency_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:Y.replace("@","")},"trigger_frequency")]),ne&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.aw,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Start date"})]},"trigger_start_date_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:ne},"trigger_start_date")]),null!==$&&void 0!==$&&$.skip_if_previous_running)&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(P.Z,{default:!0,label:"Skip current run if any previous runs are still in progress",size:1.5*I.iI,widthFitContent:!0}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Skip if running"})]},"trigger_skip_if_running"),(0,V.jsx)(O.ZP,{monospace:!0,children:null===(n=$.skip_if_previous_running)||void 0===n?void 0:n.toString()},"trigger_skip_if_running_label")]);return null!==$&&void 0!==$&&$.allow_blocks_to_fail&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(P.Z,{default:!0,label:"Trigger runs will continue running blocks if other unrelated blocks fail",size:1.5*I.iI,widthFitContent:!0}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Allow blocks to fail"})]},"trigger_allow_blocks_to_fail"),(0,V.jsx)(O.ZP,{monospace:!0,children:$.allow_blocks_to_fail.toString()},"trigger_allow_blocks_to_fail_label")]),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:r})}),[_e,Y,$,ee,ne,Q]),Pe=(0,u.useMemo)((function(){return ie||{}}),[ie]),we=(0,u.useMemo)((function(){var e,n=[];return(0,F.Qr)(Pe)?n=(0,R.wx)(o,(function(e){return"global"===e.uuid})):Object.entries(Pe).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];n.push({uuid:r,value:(0,R.FS)(o)})})),"undefined"!==typeof(n=(0,R.JZ)(n||[],Q))&&null!==(e=n)&&void 0!==e&&e.length?(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,V.jsx)(O.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Q,ie,o]),Se=(0,u.useMemo)((function(){return(0,V.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Provider"},{uuid:"Event"}],rows:null===G||void 0===G?void 0:G.map((function(e,n){var t=e.event_type,r=e.name;return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:M[t].label()},"".concat(t,"_").concat(n,"_label")),(0,V.jsx)(O.ZP,{monospace:!0,children:r},"".concat(t,"_").concat(n,"_name"))]}))})}),[G]);return(0,V.jsxs)(v.Z,{afterHidden:!fe,before:(0,V.jsxs)(C.M,{children:[(0,V.jsxs)(Z.Z,{mb:I.HN,pt:I.cd,px:I.cd,children:[(0,V.jsxs)(Z.Z,{mb:I.cd,children:[b.Xm.TIME===Q&&(0,V.jsx)(k.kO,{size:5*I.iI}),b.Xm.EVENT===Q&&(0,V.jsx)(k.Jp,{size:5*I.iI}),!Q&&(0,V.jsx)(k.VW,{size:5*I.iI})]}),(0,V.jsx)(m.Z,{children:K})]}),(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),Oe,(null===G||void 0===G?void 0:G.length)>=1&&(0,V.jsxs)(Z.Z,{my:I.HN,children:[(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Events"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),Se]}),we&&(0,V.jsxs)(Z.Z,{my:I.HN,children:[(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Runtime variables"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),we]})]}),beforeWidth:C.W,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(W,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return K},linkProps:{as:"/pipelines/".concat(W,"/triggers/").concat(B),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],buildSidekick:function(e){return(0,S.Z)(X(X({},e),{},{selectedRun:fe,selectedTab:ve,setSelectedTab:je}))},errors:D,pageName:E.M.TRIGGERS,pipeline:t,setErrors:T,subheader:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(p.Z,{beforeIcon:_e?(0,V.jsx)(k.dz,{size:2*I.iI}):(0,V.jsx)(k.Py,{inverted:!c,size:2*I.iI}),danger:_e&&!c,loading:Ze,onClick:function(e){(0,q.j)(e),ye({id:B,status:_e?b.fq.INACTIVE:b.fq.ACTIVE})},outline:!0,success:!_e&&!c,children:_e?"Pause trigger":"Start trigger"}),(0,V.jsx)(Z.Z,{mr:I.cd}),!c&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(W,"/triggers/").concat(B,"/edit"),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit trigger"}),(0,V.jsx)(Z.Z,{mr:I.cd})]}),(0,V.jsxs)(y.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?l.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(W,"/triggers/").concat(B)):(0,U.u7)({page:0,status:e.target.value})},paddingRight:4*I.iI,placeholder:"Select run status",value:(null===oe||void 0===oe?void 0:oe.status)||"all",children:[(0,V.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(A.V).map((function(e){return(0,V.jsx)("option",{value:e,children:x.D[e]},e)}))]})]}),title:function(){return K},uuid:"triggers/detail",children:[(0,V.jsx)(Z.Z,{mt:I.cd,px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Runs for this trigger"})}),(0,V.jsx)(f.Z,{light:!0,mt:I.cd,short:!0}),me]})},B=t(21831),G=t(21764),K=t(2713),Y=t(38341),Q=t(47999),$=t(22673),ee=t(65730),ne=t(93461),te=t(10919),re=t(26304),ie=t(9518),oe=t(23831),le=t(2005),ce=t(31012),se=["children","large","lineHeight","ordered"];function ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ae(e){for(var n=1;n=1},o),{},{children:u.cloneElement(e)}),e.props.key)}))}))},ge=t(98781),ve=t(82944),je=t(70902),xe=t(18025);function be(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ye(e){for(var n=1;n0&&q(!0)}),[Be]),(0,u.useEffect)((function(){ce(z?null===Oe||void 0===Oe?void 0:Oe.reduce((function(e,n){var t=n.uuid,r=n.value;return ye(ye({},e),{},(0,l.Z)({},t,Be[t]||r))}),{}):null)}),[Oe,z]),(0,u.useEffect)((function(){if(r&&(A(r.event_matchers),Ke?(ae(ye(ye({},r),{},{schedule_interval:"custom"})),_e(Se)):ae(j?ye(ye({},r),{},{schedule_interval:b.U5.ONCE}):r),r.sla)){X(!0);var e=(0,N.gU)(Ee),n=e.time,t=e.unit;ae((function(e){return ye(ye({},e),{},{slaAmount:n,slaUnit:t})}))}}),[r]);var Ge=(0,u.useCallback)((function(){var e=ye(ye({},(0,F.GL)(ue,["name","schedule_type"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,R.e7)(le)});if(b.Xm.EVENT===ue.schedule_type?e.event_matchers=M:(e.schedule_interval=Ke?be:ue.schedule_interval,e.start_time=Re&&null!==Fe&&void 0!==Fe&&Fe.hour&&null!==Fe&&void 0!==Fe&&Fe.minute?"".concat(Re.toISOString().split("T")[0]," ").concat(null===Fe||void 0===Fe?void 0:Fe.hour,":").concat(null===Fe||void 0===Fe?void 0:Fe.minute,":00"):null),W){var n=null===ue||void 0===ue?void 0:ue.slaAmount,t=null===ue||void 0===ue?void 0:ue.slaUnit;if(!n||isNaN(n)||!t)return void G.Am.error("Please enter a valid SLA",{position:G.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,N.vJ)(n,t)}else null!==r&&void 0!==r&&r.sla&&(e.sla=0);e.settings=re,Xe({pipeline_schedule:e})}),[be,Re,W,M,r,le,ue,re,Fe,Xe]),Ke=(0,u.useMemo)((function(){return Se&&!Object.values(b.U5).includes(Se)}),[Se]),Ye=(0,u.useMemo)((function(){var e=[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_detail"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_detail")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.Pf,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;ae((function(e){return ye(ye({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:Se,children:[!Se&&(0,V.jsx)("option",{value:""}),Object.values(b.U5).map((function(e){return(0,V.jsx)("option",{value:e,children:e.substring(1)},e)})),(0,V.jsx)("option",{value:"custom",children:"custom"},"custom")]},"frequency_input")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.aw,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,V.jsxs)("div",{style:{minHeight:"".concat(5.75*I.iI,"px")},children:[!pe&&(0,V.jsx)(ve.Z,{monospace:!0,onClick:function(){return fe((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Re?"".concat(Re.toISOString().split("T")[0]," ").concat(null===Fe||void 0===Fe?void 0:Fe.hour,":").concat(null===Fe||void 0===Fe?void 0:Fe.minute):""}),(0,V.jsx)("div",{style:{width:"400px"},children:(0,V.jsx)(Q.Z,{disableEscape:!0,onClickOutside:function(){return fe(!1)},open:pe,style:{position:"relative"},children:(0,V.jsx)(K.Z,{selectedDate:Re,selectedTime:Fe,setSelectedDate:Ne,setSelectedTime:ze,topPosition:!0})})})]},"start_time_input")]];return j&&e.splice(1,1),Ke&&e.splice(2,0,[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.EK,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),_e(e.target.value)},placeholder:"* * * * *",value:be},"cron_expression_input")]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:2,px:I.cd,children:(0,V.jsx)(m.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:e})]})}),[be,Re,ue,pe,Fe]),Qe=(0,u.useCallback)((function(e,n){A((function(t){return Object.entries(n).forEach((function(n){var r=(0,i.Z)(n,2),o=r[0],l=r[1];t[e][o]=l})),(0,B.Z)(t)}))}),[A]),$e=(0,u.useMemo)((function(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:I.cd,px:I.cd,children:(0,V.jsx)(m.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_event"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_event")]]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Events"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,V.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,V.jsxs)(Z.Z,{mt:I.Mq,children:[(0,V.jsx)(O.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,V.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,V.jsx)(te.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,V.jsx)(Z.Z,{mt:1,children:(0,V.jsxs)(me,{monospace:!0,ordered:!0,children:[(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(null===M||void 0===M?void 0:M.length)>=1&&(0,V.jsx)(_.Z,{alignTop:!0,columnFlex:[1,1,2,null],columns:[{uuid:"Provider"},{uuid:"Event"},{uuid:"Pattern"},{label:function(){return""},uuid:"delete"}],rows:null===M||void 0===M?void 0:M.map((function(e,n){var t=e.event_type,r=e.name,i=e.pattern,o=e.id||"".concat(t,"-").concat(r,"-").concat(n,"-").concat(JSON.stringify(i)),l=[];return i&&JSON.stringify(i,null,2).split("\n").forEach((function(e){l.push(" ".concat(e))})),[(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){return Qe(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:[!t&&(0,V.jsx)("option",{value:""}),T.map((function(e){var n=e.label,t=e.uuid;return(0,V.jsx)("option",{value:t,children:n()},t)}))]},"event-provider-".concat(o)),(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){var t,r=e.target.value,i=null===(t=Le[r])||void 0===t?void 0:t.event_pattern;Qe(n,{name:r,pattern:i?JSON.parse(i):null})},placeholder:"Event name",value:r,children:[!r&&(0,V.jsx)("option",{value:""}),qe.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))]},"event-name-".concat(o)),i&&(0,V.jsx)($.Z,{language:"json",small:!0,source:l.join("\n")}),(0,V.jsx)(p.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return A((function(e){return(0,D.oM)(e,n)}))},children:(0,V.jsx)(k.rF,{default:!0,size:2*I.iI})},"remove_event")]}))}),(0,V.jsx)(Z.Z,{p:I.cd,children:(0,V.jsx)(p.Z,{beforeIcon:(0,V.jsx)(k.mm,{size:2*I.iI}),onClick:function(){return A((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[M,qe,we]),en=(0,u.useMemo)((function(){var e,n="";return n="".concat(window.origin,"/api/pipeline_schedules/").concat(null===r||void 0===r?void 0:r.id,"/pipeline_runs"),null!==r&&void 0!==r&&r.token&&(n="".concat(n,"/").concat(r.token)),(e=window.location.port)&&(n=n.replace(e,"6789")),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:I.cd,px:I.cd,children:(0,V.jsx)(m.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_api"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_api")]]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Endpoint"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["Make a ",(0,V.jsx)(O.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)(ee.Z,{copiedText:n,linkText:n,monospace:!0,withCopyIcon:!0})})]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Payload"}),(0,V.jsx)(O.ZP,{muted:!0,children:"You can optionally include runtime variables in your request payload. These runtime variables are accessible from within each pipeline block."}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)(ee.Z,{withCopyIcon:!0,copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',children:(0,V.jsx)($.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Sample cURL command"}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)($.Z,{language:"bash",small:!0,source:"\n curl -X POST ".concat(n,' \\\n --header \'Content-Type: application/json\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n')})})]})]})}),[we,r,"object"]),nn=!Ce||b.Xm.TIME===Ce&&!(j&&Re||!j&&Re&&Se)||b.Xm.EVENT===Ce&&(!(null!==M&&void 0!==M&&M.length)||!M.every((function(e){var n=e.event_type,t=e.name;return n&&t}))),tn=(0,u.useMemo)((function(){return(0,V.jsxs)(Z.Z,{p:I.cd,children:[!(0,F.Qr)(Oe)&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Z.Z,{mr:2,children:(0,V.jsx)(je.Z,{checked:z,onCheck:q})}),(0,V.jsx)(O.ZP,{monospace:!0,muted:!0,children:"Overwrite global variables"})]}),z&&le&&Object.entries(le).length>0&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(le).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),(0,V.jsx)(ve.Z,{borderless:!0,monospace:!0,onChange:function(e){e.preventDefault(),ce((function(n){return ye(ye({},n),{},(0,l.Z)({},t,e.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:r},"variable_uuid_input_".concat(t))]}))})})]}),(0,V.jsxs)(Z.Z,{mt:2,children:[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Z.Z,{mr:2,children:(0,V.jsx)(je.Z,{checked:W,onCheck:function(e){X(e),e||ae((function(e){return ye(ye({},e),{},{slaAmount:0})}))}})}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),W&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.aw,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,V.jsxs)(h.Z,{children:[(0,V.jsx)(ne.Z,{flex:1,children:(0,V.jsx)(ve.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===ue||void 0===ue?void 0:ue.slaAmount})}),(0,V.jsx)(ne.Z,{flex:1,children:(0,V.jsx)(y.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===ue||void 0===ue?void 0:ue.slaUnit,children:Object.keys(N.tL).map((function(e){return(0,V.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})}),(0,V.jsxs)(Z.Z,{mt:2,children:[(0,V.jsx)(m.Z,{level:5,monospace:!0,children:"Additional settings"}),b.Xm.TIME===Ce&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Y.Z,{checked:null===re||void 0===re?void 0:re.skip_if_previous_running,onClick:function(){return ie((function(e){return ye(ye({},e),{},{skip_if_previous_running:!(null!==re&&void 0!==re&&re.skip_if_previous_running)})}))}}),(0,V.jsx)(Z.Z,{ml:2}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:"Skip run if previous run still in progress"})]})}),(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Y.Z,{checked:null===re||void 0===re?void 0:re.allow_blocks_to_fail,onClick:function(){return ie((function(e){return ye(ye({},e),{},{allow_blocks_to_fail:!(null!==re&&void 0!==re&&re.allow_blocks_to_fail)})}))}}),(0,V.jsx)(Z.Z,{ml:2}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:"Keep running pipeline even if blocks fail"})]})})]})]})]})}),[W,Oe,z,le,ue,X,q,re]);return(0,V.jsx)(V.Fragment,{children:(0,V.jsxs)(v.Z,{after:tn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(s,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===r||void 0===r?void 0:r.name},linkProps:{as:"/pipelines/".concat(s,"/triggers/").concat(g),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:P,pageName:E.M.TRIGGERS,pipeline:t,setErrors:S,subheader:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(p.Z,{disabled:nn,loading:Je,onClick:Ge,outline:!0,primary:!0,children:"Save changes"}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/triggers/[...slug]",as:"/pipelines/".concat(s,"/triggers/").concat(g)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===r||void 0===r?void 0:r.name)},uuid:"triggers/edit",children:[(0,V.jsxs)(Z.Z,{p:I.cd,children:[(0,V.jsxs)(Z.Z,{mb:2,children:[(0,V.jsx)(m.Z,{children:"Trigger type"}),(0,V.jsx)(O.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,V.jsx)(h.Z,{children:Ze(j).map((function(e){var n=e.label,t=e.description,r=e.uuid,i=Ce===r,o=Ce&&!i;return(0,V.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){b.Xm.EVENT!==r||null!==M&&void 0!==M&&M.length||A([{}]),ae((function(e){return ye(ye({},e),{},{schedule_type:r})}))},children:(0,V.jsx)(xe.U,{selected:i,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(ne.Z,{children:(0,V.jsx)("input",{checked:i,type:"radio"})}),(0,V.jsx)(Z.Z,{mr:I.cd}),(0,V.jsxs)(ne.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,V.jsx)(m.Z,{bold:!0,default:!i&&!o,level:5,muted:!i&&o,children:n()}),(0,V.jsx)(O.ZP,{default:!i&&!o,leftAligned:!0,muted:o,children:t()})]})]})})},r)}))})]}),(0,V.jsxs)(Z.Z,{mt:5,children:[b.Xm.TIME===Ce&&Ye,b.Xm.EVENT===Ce&&$e,b.Xm.API===Ce&&en]})]})})},Oe=t(41788),Pe=t(70543);function we(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Se(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function p(e,n){for(var t=0;t=0?n:0});l.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(W,"/triggers/").concat(B,"?").concat((0,L.uM)(t)))},totalPages:Math.ceil(de/30)})})]})}),[ue,t,ae,fe]),ge=(0,u.useState)(S.G[0]),ve=ge[0],je=ge[1],xe=(0,a.Db)((function(e){return w.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:(0,F.gR)(e,["id"])})}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return T({errors:n,response:e})}})}}),be=(0,i.Z)(xe,2),ye=be[0],Ze=be[1].isLoading,_e=(0,u.useMemo)((function(){return b.fq.ACTIVE===te}),[te]),Oe=(0,u.useMemo)((function(){var e,n,t={default:!0,size:1.5*I.iI},r=[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.VW,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger type"})]},"trigger_type_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:null===(e=b.Z4[Q])||void 0===e?void 0:e.call(b.Z4)},"trigger_type")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.rs,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Status"})]},"trigger_status_label"),(0,V.jsx)(O.ZP,{danger:!_e,monospace:!0,success:_e,children:te},"trigger_status")]];if(ee){var i=(0,N.gU)(ee),o=i.time,l=i.unit,c=1===o?l:"".concat(l,"s");r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.kI,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"SLA"})]},"trigger_sla_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:"".concat(o," ").concat(c)},"trigger_sla")])}(Y&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.Pf,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Frequency"})]},"trigger_frequency_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:Y.replace("@","")},"trigger_frequency")]),ne&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.aw,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Start date"})]},"trigger_start_date_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:ne},"trigger_start_date")]),null!==$&&void 0!==$&&$.skip_if_previous_running)&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(P.Z,{default:!0,label:"Skip current run if any previous runs are still in progress",size:1.5*I.iI,widthFitContent:!0}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Skip if running"})]},"trigger_skip_if_running"),(0,V.jsx)(O.ZP,{monospace:!0,children:null===(n=$.skip_if_previous_running)||void 0===n?void 0:n.toString()},"trigger_skip_if_running_label")]);return null!==$&&void 0!==$&&$.allow_blocks_to_fail&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(P.Z,{default:!0,label:"Trigger runs will continue running blocks if other unrelated blocks fail",size:1.5*I.iI,widthFitContent:!0}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Allow blocks to fail"})]},"trigger_allow_blocks_to_fail"),(0,V.jsx)(O.ZP,{monospace:!0,children:$.allow_blocks_to_fail.toString()},"trigger_allow_blocks_to_fail_label")]),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:r})}),[_e,Y,$,ee,ne,Q]),Pe=(0,u.useMemo)((function(){return ie||{}}),[ie]),we=(0,u.useMemo)((function(){var e,n=[];return(0,F.Qr)(Pe)?n=(0,R.wx)(o,(function(e){return"global"===e.uuid})):Object.entries(Pe).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];n.push({uuid:r,value:(0,R.FS)(o)})})),"undefined"!==typeof(n=(0,R.JZ)(n||[],Q))&&null!==(e=n)&&void 0!==e&&e.length?(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,V.jsx)(O.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Q,ie,o]),Se=(0,u.useMemo)((function(){return(0,V.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Provider"},{uuid:"Event"}],rows:null===G||void 0===G?void 0:G.map((function(e,n){var t=e.event_type,r=e.name;return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:M[t].label()},"".concat(t,"_").concat(n,"_label")),(0,V.jsx)(O.ZP,{monospace:!0,children:r},"".concat(t,"_").concat(n,"_name"))]}))})}),[G]);return(0,V.jsxs)(v.Z,{afterHidden:!fe,before:(0,V.jsxs)(C.M,{children:[(0,V.jsxs)(Z.Z,{mb:I.HN,pt:I.cd,px:I.cd,children:[(0,V.jsxs)(Z.Z,{mb:I.cd,children:[b.Xm.TIME===Q&&(0,V.jsx)(k.kO,{size:5*I.iI}),b.Xm.EVENT===Q&&(0,V.jsx)(k.Jp,{size:5*I.iI}),!Q&&(0,V.jsx)(k.VW,{size:5*I.iI})]}),(0,V.jsx)(m.Z,{children:K})]}),(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),Oe,(null===G||void 0===G?void 0:G.length)>=1&&(0,V.jsxs)(Z.Z,{my:I.HN,children:[(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Events"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),Se]}),we&&(0,V.jsxs)(Z.Z,{my:I.HN,children:[(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Runtime variables"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),we]})]}),beforeWidth:C.W,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(W,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return K},linkProps:{as:"/pipelines/".concat(W,"/triggers/").concat(B),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],buildSidekick:function(e){return(0,S.Z)(X(X({},e),{},{selectedRun:fe,selectedTab:ve,setSelectedTab:je}))},errors:D,pageName:E.M.TRIGGERS,pipeline:t,setErrors:T,subheader:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(p.Z,{beforeIcon:_e?(0,V.jsx)(k.dz,{size:2*I.iI}):(0,V.jsx)(k.Py,{inverted:!c,size:2*I.iI}),danger:_e&&!c,loading:Ze,onClick:function(e){(0,q.j)(e),ye({id:B,status:_e?b.fq.INACTIVE:b.fq.ACTIVE})},outline:!0,success:!_e&&!c,children:_e?"Pause trigger":"Start trigger"}),(0,V.jsx)(Z.Z,{mr:I.cd}),!c&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(W,"/triggers/").concat(B,"/edit"),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit trigger"}),(0,V.jsx)(Z.Z,{mr:I.cd})]}),(0,V.jsxs)(y.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?l.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(W,"/triggers/").concat(B)):(0,U.u7)({page:0,status:e.target.value})},paddingRight:4*I.iI,placeholder:"Select run status",value:(null===oe||void 0===oe?void 0:oe.status)||"all",children:[(0,V.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(A.V).map((function(e){return(0,V.jsx)("option",{value:e,children:x.D[e]},e)}))]})]}),title:function(){return K},uuid:"triggers/detail",children:[(0,V.jsx)(Z.Z,{mt:I.cd,px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Runs for this trigger"})}),(0,V.jsx)(f.Z,{light:!0,mt:I.cd,short:!0}),me]})},B=t(21831),G=t(21764),K=t(2713),Y=t(38341),Q=t(47999),$=t(22673),ee=t(65730),ne=t(93461),te=t(10919),re=t(26304),ie=t(9518),oe=t(23831),le=t(2005),ce=t(31012),se=["children","large","lineHeight","ordered"];function ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ae(e){for(var n=1;n=1},o),{},{children:u.cloneElement(e)}),e.props.key)}))}))},ge=t(98781),ve=t(82944),je=t(70902),xe=t(18025);function be(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ye(e){for(var n=1;n0&&q(!0)}),[Be]),(0,u.useEffect)((function(){ce(z?null===Oe||void 0===Oe?void 0:Oe.reduce((function(e,n){var t=n.uuid,r=n.value;return ye(ye({},e),{},(0,l.Z)({},t,Be[t]||r))}),{}):null)}),[Oe,z]),(0,u.useEffect)((function(){if(r&&(A(r.event_matchers),Ke?(ae(ye(ye({},r),{},{schedule_interval:"custom"})),_e(Se)):ae(j?ye(ye({},r),{},{schedule_interval:b.U5.ONCE}):r),r.sla)){X(!0);var e=(0,N.gU)(Ee),n=e.time,t=e.unit;ae((function(e){return ye(ye({},e),{},{slaAmount:n,slaUnit:t})}))}}),[r]);var Ge=(0,u.useCallback)((function(){var e=ye(ye({},(0,F.GL)(ue,["name","schedule_type"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,R.e7)(le)});if(b.Xm.EVENT===ue.schedule_type?e.event_matchers=M:(e.schedule_interval=Ke?be:ue.schedule_interval,e.start_time=Re&&null!==Fe&&void 0!==Fe&&Fe.hour&&null!==Fe&&void 0!==Fe&&Fe.minute?"".concat(Re.toISOString().split("T")[0]," ").concat(null===Fe||void 0===Fe?void 0:Fe.hour,":").concat(null===Fe||void 0===Fe?void 0:Fe.minute,":00"):null),W){var n=null===ue||void 0===ue?void 0:ue.slaAmount,t=null===ue||void 0===ue?void 0:ue.slaUnit;if(!n||isNaN(n)||!t)return void G.Am.error("Please enter a valid SLA",{position:G.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,N.vJ)(n,t)}else null!==r&&void 0!==r&&r.sla&&(e.sla=0);e.settings=re,Xe({pipeline_schedule:e})}),[be,Re,W,M,r,le,ue,re,Fe,Xe]),Ke=(0,u.useMemo)((function(){return Se&&!Object.values(b.U5).includes(Se)}),[Se]),Ye=(0,u.useMemo)((function(){var e=[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_detail"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_detail")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.Pf,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;ae((function(e){return ye(ye({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:Se,children:[!Se&&(0,V.jsx)("option",{value:""}),Object.values(b.U5).map((function(e){return(0,V.jsx)("option",{value:e,children:e.substring(1)},e)})),(0,V.jsx)("option",{value:"custom",children:"custom"},"custom")]},"frequency_input")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.aw,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,V.jsxs)("div",{style:{minHeight:"".concat(5.75*I.iI,"px")},children:[!pe&&(0,V.jsx)(ve.Z,{monospace:!0,onClick:function(){return fe((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Re?"".concat(Re.toISOString().split("T")[0]," ").concat(null===Fe||void 0===Fe?void 0:Fe.hour,":").concat(null===Fe||void 0===Fe?void 0:Fe.minute):""}),(0,V.jsx)("div",{style:{width:"400px"},children:(0,V.jsx)(Q.Z,{disableEscape:!0,onClickOutside:function(){return fe(!1)},open:pe,style:{position:"relative"},children:(0,V.jsx)(K.Z,{selectedDate:Re,selectedTime:Fe,setSelectedDate:Ne,setSelectedTime:ze,topPosition:!0})})})]},"start_time_input")]];return j&&e.splice(1,1),Ke&&e.splice(2,0,[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.EK,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),_e(e.target.value)},placeholder:"* * * * *",value:be},"cron_expression_input")]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:2,px:I.cd,children:(0,V.jsx)(m.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:e})]})}),[be,Re,ue,pe,Fe]),Qe=(0,u.useCallback)((function(e,n){A((function(t){return Object.entries(n).forEach((function(n){var r=(0,i.Z)(n,2),o=r[0],l=r[1];t[e][o]=l})),(0,B.Z)(t)}))}),[A]),$e=(0,u.useMemo)((function(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:I.cd,px:I.cd,children:(0,V.jsx)(m.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_event"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_event")]]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Events"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,V.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,V.jsxs)(Z.Z,{mt:I.Mq,children:[(0,V.jsx)(O.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,V.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,V.jsx)(te.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,V.jsx)(Z.Z,{mt:1,children:(0,V.jsxs)(me,{monospace:!0,ordered:!0,children:[(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(null===M||void 0===M?void 0:M.length)>=1&&(0,V.jsx)(_.Z,{alignTop:!0,columnFlex:[1,1,2,null],columns:[{uuid:"Provider"},{uuid:"Event"},{uuid:"Pattern"},{label:function(){return""},uuid:"delete"}],rows:null===M||void 0===M?void 0:M.map((function(e,n){var t=e.event_type,r=e.name,i=e.pattern,o=e.id||"".concat(t,"-").concat(r,"-").concat(n,"-").concat(JSON.stringify(i)),l=[];return i&&JSON.stringify(i,null,2).split("\n").forEach((function(e){l.push(" ".concat(e))})),[(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){return Qe(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:[!t&&(0,V.jsx)("option",{value:""}),T.map((function(e){var n=e.label,t=e.uuid;return(0,V.jsx)("option",{value:t,children:n()},t)}))]},"event-provider-".concat(o)),(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){var t,r=e.target.value,i=null===(t=Le[r])||void 0===t?void 0:t.event_pattern;Qe(n,{name:r,pattern:i?JSON.parse(i):null})},placeholder:"Event name",value:r,children:[!r&&(0,V.jsx)("option",{value:""}),qe.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))]},"event-name-".concat(o)),i&&(0,V.jsx)($.Z,{language:"json",small:!0,source:l.join("\n")}),(0,V.jsx)(p.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return A((function(e){return(0,D.oM)(e,n)}))},children:(0,V.jsx)(k.rF,{default:!0,size:2*I.iI})},"remove_event")]}))}),(0,V.jsx)(Z.Z,{p:I.cd,children:(0,V.jsx)(p.Z,{beforeIcon:(0,V.jsx)(k.mm,{size:2*I.iI}),onClick:function(){return A((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[M,qe,we]),en=(0,u.useMemo)((function(){var e,n="";return n="".concat(window.origin,"/api/pipeline_schedules/").concat(null===r||void 0===r?void 0:r.id,"/pipeline_runs"),null!==r&&void 0!==r&&r.token&&(n="".concat(n,"/").concat(r.token)),(e=window.location.port)&&(n=n.replace(e,"6789")),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:I.cd,px:I.cd,children:(0,V.jsx)(m.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_api"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_api")]]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Endpoint"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["Make a ",(0,V.jsx)(O.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)(ee.Z,{copiedText:n,linkText:n,monospace:!0,withCopyIcon:!0})})]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Payload"}),(0,V.jsx)(O.ZP,{muted:!0,children:"You can optionally include runtime variables in your request payload. These runtime variables are accessible from within each pipeline block."}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)(ee.Z,{withCopyIcon:!0,copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',children:(0,V.jsx)($.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Sample cURL command"}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)($.Z,{language:"bash",small:!0,source:"\n curl -X POST ".concat(n,' \\\n --header \'Content-Type: application/json\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n')})})]})]})}),[we,r,"object"]),nn=!Ce||b.Xm.TIME===Ce&&!(j&&Re||!j&&Re&&Se)||b.Xm.EVENT===Ce&&(!(null!==M&&void 0!==M&&M.length)||!M.every((function(e){var n=e.event_type,t=e.name;return n&&t}))),tn=(0,u.useMemo)((function(){return(0,V.jsxs)(Z.Z,{p:I.cd,children:[!(0,F.Qr)(Oe)&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Z.Z,{mr:2,children:(0,V.jsx)(je.Z,{checked:z,onCheck:q})}),(0,V.jsx)(O.ZP,{monospace:!0,muted:!0,children:"Overwrite global variables"})]}),z&&le&&Object.entries(le).length>0&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(le).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),(0,V.jsx)(ve.Z,{borderless:!0,monospace:!0,onChange:function(e){e.preventDefault(),ce((function(n){return ye(ye({},n),{},(0,l.Z)({},t,e.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:r},"variable_uuid_input_".concat(t))]}))})})]}),(0,V.jsxs)(Z.Z,{mt:2,children:[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Z.Z,{mr:2,children:(0,V.jsx)(je.Z,{checked:W,onCheck:function(e){X(e),e||ae((function(e){return ye(ye({},e),{},{slaAmount:0})}))}})}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),W&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.aw,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,V.jsxs)(h.Z,{children:[(0,V.jsx)(ne.Z,{flex:1,children:(0,V.jsx)(ve.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===ue||void 0===ue?void 0:ue.slaAmount})}),(0,V.jsx)(ne.Z,{flex:1,children:(0,V.jsx)(y.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===ue||void 0===ue?void 0:ue.slaUnit,children:Object.keys(N.tL).map((function(e){return(0,V.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})}),(0,V.jsxs)(Z.Z,{mt:2,children:[(0,V.jsx)(m.Z,{level:5,monospace:!0,children:"Additional settings"}),b.Xm.TIME===Ce&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Y.Z,{checked:null===re||void 0===re?void 0:re.skip_if_previous_running,onClick:function(){return ie((function(e){return ye(ye({},e),{},{skip_if_previous_running:!(null!==re&&void 0!==re&&re.skip_if_previous_running)})}))}}),(0,V.jsx)(Z.Z,{ml:2}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:"Skip run if previous run still in progress"})]})}),(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Y.Z,{checked:null===re||void 0===re?void 0:re.allow_blocks_to_fail,onClick:function(){return ie((function(e){return ye(ye({},e),{},{allow_blocks_to_fail:!(null!==re&&void 0!==re&&re.allow_blocks_to_fail)})}))}}),(0,V.jsx)(Z.Z,{ml:2}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:"Keep running pipeline even if blocks fail"})]})})]})]})]})}),[W,Oe,z,le,ue,X,q,re]);return(0,V.jsx)(V.Fragment,{children:(0,V.jsxs)(v.Z,{after:tn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(s,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===r||void 0===r?void 0:r.name},linkProps:{as:"/pipelines/".concat(s,"/triggers/").concat(g),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:P,pageName:E.M.TRIGGERS,pipeline:t,setErrors:S,subheader:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(p.Z,{disabled:nn,loading:Je,onClick:Ge,outline:!0,primary:!0,children:"Save changes"}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/triggers/[...slug]",as:"/pipelines/".concat(s,"/triggers/").concat(g)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===r||void 0===r?void 0:r.name)},uuid:"triggers/edit",children:[(0,V.jsxs)(Z.Z,{p:I.cd,children:[(0,V.jsxs)(Z.Z,{mb:2,children:[(0,V.jsx)(m.Z,{children:"Trigger type"}),(0,V.jsx)(O.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,V.jsx)(h.Z,{children:Ze(j).map((function(e){var n=e.label,t=e.description,r=e.uuid,i=Ce===r,o=Ce&&!i;return(0,V.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){b.Xm.EVENT!==r||null!==M&&void 0!==M&&M.length||A([{}]),ae((function(e){return ye(ye({},e),{},{schedule_type:r})}))},children:(0,V.jsx)(xe.U,{selected:i,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(ne.Z,{children:(0,V.jsx)("input",{checked:i,type:"radio"})}),(0,V.jsx)(Z.Z,{mr:I.cd}),(0,V.jsxs)(ne.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,V.jsx)(m.Z,{bold:!0,default:!i&&!o,level:5,muted:!i&&o,children:n()}),(0,V.jsx)(O.ZP,{default:!i&&!o,leftAligned:!0,muted:o,children:t()})]})]})})},r)}))})]}),(0,V.jsxs)(Z.Z,{mt:5,children:[b.Xm.TIME===Ce&&Ye,b.Xm.EVENT===Ce&&$e,b.Xm.API===Ce&&en]})]})})},Oe=t(41788),Pe=t(70543);function we(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Se(e){for(var n=1;n=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return M}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||Y||Q||null===K||void 0===K||K(T.current.getBoundingClientRect().width)}),[Y,R,Q,X,T,K,N]),(0,o.useEffect)((function(){Y||(0,k.t8)(A,R)}),[r,Y,R,A]),(0,o.useEffect)((function(){Q||(0,k.t8)(q,X)}),[Q,X,q]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){O&&te!==p&&F(p)}),[O,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d.Z,{title:M}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:S,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(a.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(a.lm,{children:(0,f.jsx)(v.Z,{navigationItems:D})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:r,afterMousedownActive:Y,afterWidth:R,before:Z,beforeHeightOffset:x.Mz,beforeMousedownActive:Q,beforeWidth:a.k1+(Z?X:0),hideAfterCompletely:!0,leftOffset:Z?a.k1:null,mainContainerRef:T,setAfterMousedownActive:z,setAfterWidth:F,setBeforeMousedownActive:V,setBeforeWidth:J,children:[W&&(0,f.jsx)(h,{children:W}),_]})})]}),I&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,f.jsx)(l.Z,w(w({},I),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return s},HY:function(){return c},SA:function(){return a},WH:function(){return o},eC:function(){return u},fF:function(){return l},tC:function(){return d}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",l="Git settings",u="Users",d="Account",s="Profile",a=function(e){var n=e.owner,t=e.roles,a=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&a.push({linkProps:{href:"/settings/workspace/users"},uuid:u}),(!(0,i.YB)()||t<=r.No.EDITOR)&&a.push({linkProps:{href:"/settings/workspace/sync_data"},uuid:l});var f=[{items:a,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:s}],uuid:d}]):f}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),l=t(10919),u=t(86673),d=t(19711),s=t(9518),a=t(23831),f=t(49125),p=t(90880),h=(f.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),b=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||a.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||a.Z.background).codeTextarea,";\n ")})),v=t(28598),m=t(82684);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return M}}]),(0,i.useEffect)((function(){null===B||void 0===B||!B.current||F||Q||null===K||void 0===K||K(B.current.getBoundingClientRect().width)}),[F,R,Q,G,B,K,N]),(0,i.useEffect)((function(){F||(0,k.t8)(A,R)}),[r,F,R,A]),(0,i.useEffect)((function(){Q||(0,k.t8)(q,G)}),[Q,G,q]);var te=(0,g.Z)(p);return(0,i.useEffect)((function(){O&&te!==p&&U(p)}),[O,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d.Z,{title:M}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:S,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(s.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(s.lm,{children:(0,f.jsx)(v.Z,{navigationItems:D})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:r,afterMousedownActive:F,afterWidth:R,before:Z,beforeHeightOffset:x.Mz,beforeMousedownActive:Q,beforeWidth:s.k1+(Z?G:0),hideAfterCompletely:!0,leftOffset:Z?s.k1:null,mainContainerRef:B,setAfterMousedownActive:z,setAfterWidth:U,setBeforeMousedownActive:V,setBeforeWidth:J,children:[W&&(0,f.jsx)(h,{children:W}),_]})})]}),I&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,f.jsx)(l.Z,w(w({},I),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),o=t(23831),i=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],i.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}))},79585:function(e,n,t){"use strict";t.d(n,{B0:function(){return l},DQ:function(){return a},HY:function(){return c},SA:function(){return s},WH:function(){return i},eC:function(){return u},tC:function(){return d}});var r=t(81132),o=t(9736),i="Workspace",c="Preferences",l="Sync data",u="Users",d="Account",a="Profile",s=function(e){var n=e.owner,t=e.roles,s=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&s.push({linkProps:{href:"/settings/workspace/users"},uuid:u}),(!(0,o.YB)()||t<=r.No.EDITOR)&&s.push({linkProps:{href:"/settings/workspace/sync_data"},uuid:l});var f=[{items:s,uuid:i}];return(0,o.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:d}]):f}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(1210),o=t(82394),i=t(12691),c=t.n(i),l=t(10919),u=t(86673),d=t(19711),a=t(9518),s=t(23831),f=t(49125),p=t(90880),h=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),b=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||s.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||s.Z.background).codeTextarea,";\n ")})),v=t(28598),m=t(82684);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return E}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||Y||J||null===K||void 0===K||K(T.current.getBoundingClientRect().width)}),[Y,B,J,U,T,K,M]),(0,o.useEffect)((function(){Y||(0,j.t8)(W,B)}),[r,Y,B,W]),(0,o.useEffect)((function(){J||(0,j.t8)(A,U)}),[J,U,A]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){O&&te!==p&&R(p)}),[O,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:E}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:S,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(b.Z,{navigationItems:N})}),(0,f.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:v.Mz,afterHidden:r,afterMousedownActive:Y,afterWidth:B,before:k,beforeHeightOffset:v.Mz,beforeMousedownActive:J,beforeWidth:d.k1+(k?U:0),hideAfterCompletely:!0,leftOffset:k?d.k1:null,mainContainerRef:T,setAfterMousedownActive:L,setAfterWidth:R,setBeforeMousedownActive:V,setBeforeWidth:Q,children:[D&&(0,f.jsx)(h,{children:D}),C]})})]}),I&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(l.Z,Z(Z({},I),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return s},HY:function(){return c},SA:function(){return d},WH:function(){return o},eC:function(){return a},fF:function(){return l},tC:function(){return u}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",l="Git settings",a="Users",u="Account",s="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:a}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync_data"},uuid:l});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:s}],uuid:u}]):f}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),l=t(10919),a=t(86673),u=t(19711),s=t(9518),d=t(23831),f=t(49125),p=t(90880),h=(f.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),m=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),b=t(28598),y=t(82684);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return T}}]),(0,o.useEffect)((function(){null===W||void 0===W||!W.current||F||J||null===K||void 0===K||K(W.current.getBoundingClientRect().width)}),[F,q,J,U,W,K,z]),(0,o.useEffect)((function(){F||(0,x.t8)(M,q)}),[r,F,q,M]),(0,o.useEffect)((function(){J||(0,x.t8)(A,U)}),[J,U,A]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){w&&te!==p&&R(p)}),[w,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:T}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:C,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(b.Z,{navigationItems:N})}),(0,f.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:v.Mz,afterHidden:r,afterMousedownActive:F,afterWidth:q,before:k,beforeHeightOffset:v.Mz,beforeMousedownActive:J,beforeWidth:d.k1+(k?U:0),hideAfterCompletely:!0,leftOffset:k?d.k1:null,mainContainerRef:W,setAfterMousedownActive:L,setAfterWidth:R,setBeforeMousedownActive:V,setBeforeWidth:Q,children:[D&&(0,f.jsx)(h,{children:D}),P]})})]}),S&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(l.Z,Z(Z({},S),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){"use strict";t.d(n,{B0:function(){return l},DQ:function(){return s},HY:function(){return c},SA:function(){return d},WH:function(){return o},eC:function(){return a},tC:function(){return u}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",l="Sync data",a="Users",u="Account",s="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:a}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync_data"},uuid:l});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:s}],uuid:u}]):f}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),l=t(10919),a=t(86673),u=t(19711),s=t(9518),d=t(23831),f=t(49125),p=t(90880),h=(f.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),m=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),b=t(28598),y=t(82684);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n=1&&!P&&(0,p.jsx)(f.Vq,{noHover:!0,children:w.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:h,compact:y,last:e===w.length-1,noBorder:x,sticky:C,children:(0,p.jsxs)(u.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(E,"-col-").concat(n.uuid,"-").concat(e))}))}),M]})}},60921:function(n,e,r){"use strict";r.r(e);var t=r(77837),o=r(82394),i=r(38860),c=r.n(i),u=r(82684),l=r(34376),a=r(60328),s=r(87372),d=r(41788),f=r(30775),p=r(86673),h=r(87815),v=r(19711),b=r(20582),m=r(82531),g=r(66166),w=r(10503),y=r(49125),O=r(79585),j=r(63153),x=r(9736),P=r(33766),_=r(7715),Z=r(59e3),k=r(28598);function S(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function C(n){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},t=r.ascending,i=void 0===t||t,c=r.absoluteValue,u=void 0!==c&&c,l="string"===typeof e||"number"===typeof e?function(n){return u?Math.abs((0,o.t2)(n,e)):(0,o.t2)(n,e)}:function(n){return u?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var r=0;return l(n)>l(e)?r=i?1:-1:l(n)1&&void 0!==arguments[1]?arguments[1]:{},r=e.ascending,t=void 0===r||r;return n.sort((function(n,e){var r=0;return n[0]>e[0]?r=t?1:-1:n[0]>1);e(n[o])?r=o:t=o}return t}function p(n,e){var r=n.findIndex(e);return h(n,r)}function h(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function v(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function b(n,e){return n>e}function m(n,e){return n1&&void 0!==arguments[1]?arguments[1]:0,r=Array.from(Array(n).keys());return 0!==e&&(r=r.map((function(n){return n+e}))),r}function y(n){return n.reduce((function(n,e){return n+e}),0)}function O(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-r,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function j(n){return n[Math.floor(Math.random()*n.length)]}},33766:function(n,e,r){"use strict";r.d(e,{g_:function(){return f},u7:function(){return d}});var t=r(75582),o=r(82394),i=r(34376),c=r.n(i),u=r(59e3),l=r(24224);function a(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function s(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=r.replaceParams,i=r.pushHistory,l=o?{}:(0,u.iV)();e=window.location.pathname;var a=i?c().push:c().replace,d=s(s({},l),n);Object.entries(n).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1];"undefined"!==typeof o&&null!==o||delete d[r]}));var f=(0,u.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return a(c().router.pathname,p,{shallow:!0})}function f(n,e,r){var o=r.addingMultipleValues,i=r.isList,c=r.itemsPerPage,u=r.resetLimitParams,a=s({},n);o?Object.entries(e).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1];if(Array.isArray(o)){var i="".concat(r,"[]");a[i]=o.map(String)}})):i?Object.entries(e).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1],i=String(o),c="".concat(r,"[]"),u=a[c];u&&Array.isArray(u)?(u=u.map(String)).includes(i)?a[c]=(0,l.Od)(u,(function(n){return n===i})):a[c]=u.concat(i):a[c]=[i]})):a=s(s({},a),e),u&&(a._limit=c||20,a._offset=0),d(a)}},48673:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users",function(){return r(60921)}])}},function(n){n.O(0,[3850,9767,9386,9898,5477,9774,2888,179],(function(){return e=48673,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-ff24167e21f2f0cf.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-ff24167e21f2f0cf.js new file mode 100644 index 000000000000..c414981b7e36 --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-ff24167e21f2f0cf.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2287],{45838:function(n,e,r){"use strict";r.d(e,{GZ:function(){return d},Vq:function(){return a},cE:function(){return f},cl:function(){return u},kA:function(){return l}});var t=r(9518),o=r(23831),i=r(37391),c=r(49125),u=t.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),l=t.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=t.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,t.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=t.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=t.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,r){"use strict";var t=r(82394),o=r(12691),i=r.n(o),c=r(82684),u=r(67971),l=r(10919),a=r(86673),s=r(19711),d=r(46261),f=r(45838),p=r(28598);function v(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function h(n){for(var e=1;e=1&&!P&&(0,p.jsx)(f.Vq,{noHover:!0,children:w.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:v,compact:y,last:e===w.length-1,noBorder:x,sticky:E,children:(0,p.jsxs)(u.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(D,"-col-").concat(n.uuid,"-").concat(e))}))}),I]})}},60921:function(n,e,r){"use strict";r.r(e);var t=r(77837),o=r(82394),i=r(38860),c=r.n(i),u=r(82684),l=r(34376),a=r(60328),s=r(87372),d=r(41788),f=r(30775),p=r(86673),v=r(87815),h=r(19711),b=r(20582),m=r(82531),g=r(66166),w=r(10503),y=r(49125),O=r(79585),j=r(63153),x=r(9736),P=r(33766),_=r(7715),Z=r(59e3),k=r(28598);function S(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function C(n){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},t=r.ascending,i=void 0===t||t,c=r.absoluteValue,u=void 0!==c&&c,l="string"===typeof e||"number"===typeof e?function(n){return u?Math.abs((0,o.t2)(n,e)):(0,o.t2)(n,e)}:function(n){return u?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var r=0;return l(n)>l(e)?r=i?1:-1:l(n)1&&void 0!==arguments[1]?arguments[1]:{},r=e.ascending,t=void 0===r||r;return n.sort((function(n,e){var r=0;return n[0]>e[0]?r=t?1:-1:n[0]>1);e(n[o])?r=o:t=o}return t}function p(n,e){var r=n.findIndex(e);return v(n,r)}function v(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function h(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function b(n,e){return n>e}function m(n,e){return n1&&void 0!==arguments[1]?arguments[1]:0,r=Array.from(Array(n).keys());return 0!==e&&(r=r.map((function(n){return n+e}))),r}function y(n){return n.reduce((function(n,e){return n+e}),0)}function O(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-r,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function j(n){return n[Math.floor(Math.random()*n.length)]}},33766:function(n,e,r){"use strict";r.d(e,{g_:function(){return f},u7:function(){return d}});var t=r(75582),o=r(82394),i=r(34376),c=r.n(i),u=r(59e3),l=r(24224);function a(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function s(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=r.replaceParams,i=r.pushHistory,l=o?{}:(0,u.iV)();e=window.location.pathname;var a=i?c().push:c().replace,d=s(s({},l),n);Object.entries(n).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1];"undefined"!==typeof o&&null!==o||delete d[r]}));var f=(0,u.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return a(c().router.pathname,p,{shallow:!0})}function f(n,e,r){var o=r.addingMultipleValues,i=r.isList,c=r.itemsPerPage,u=r.resetLimitParams,a=s({},n);o?Object.entries(e).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1];if(Array.isArray(o)){var i="".concat(r,"[]");a[i]=o.map(String)}})):i?Object.entries(e).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1],i=String(o),c="".concat(r,"[]"),u=a[c];u&&Array.isArray(u)?(u=u.map(String)).includes(i)?a[c]=(0,l.Od)(u,(function(n){return n===i})):a[c]=u.concat(i):a[c]=[i]})):a=s(s({},a),e),u&&(a._limit=c||20,a._offset=0),d(a)}},48673:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users",function(){return r(60921)}])}},function(n){n.O(0,[3850,2344,9386,5477,9774,2888,179],(function(){return e=48673,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-404d934deb8950d5.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-404d934deb8950d5.js new file mode 100644 index 000000000000..b948e435b724 --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-404d934deb8950d5.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1312],{76096:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(33591)),c=t(28598),u=["children","fullHeight","gutter","style"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};return function(t){(0,P.Z)(u,t);var i=R(u);function u(){var e;(0,v.Z)(this,u);for(var n=arguments.length,t=new Array(n),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return function(n){(0,P.Z)(u,n);var i=M(u);function u(){var e;(0,v.Z)(this,u);for(var t=arguments.length,n=new Array(t),r=0;r=1&&en.push.apply(en,[{label:function(){var n;return null===(n=nn[0])||void 0===n?void 0:n.name},linkProps:{href:"/"}},{bold:!0,label:function(){return N}}]),(0,o.useEffect)((function(){null===X||void 0===X||!X.current||Y||q||null===J||void 0===J||J(X.current.getBoundingClientRect().width)}),[Y,G,q,Q,X,J,R]),(0,o.useEffect)((function(){Y||(0,w.t8)(D,G)}),[r,Y,G,D]),(0,o.useEffect)((function(){q||(0,w.t8)(F,Q)}),[q,Q,F]);var tn=(0,m.Z)(h);return(0,o.useEffect)((function(){j&&tn!==h&&H(h)}),[j,h,tn]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Z,{title:N}),(0,f.jsx)(s.Z,{breadcrumbs:en,menuItems:I,project:null===nn||void 0===nn?void 0:nn[0],version:null===nn||void 0===nn||null===(e=nn[0])||void 0===e?void 0:e.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===Z||void 0===Z?void 0:Z.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(g.Z,{navigationItems:Z})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:t,afterHeightOffset:b.Mz,afterHidden:r,afterMousedownActive:Y,afterWidth:G,before:T,beforeHeightOffset:b.Mz,beforeMousedownActive:q,beforeWidth:d.k1+(T?Q:0),hideAfterCompletely:!0,leftOffset:T?d.k1:null,mainContainerRef:X,setAfterMousedownActive:B,setAfterWidth:H,setBeforeMousedownActive:V,setBeforeWidth:W,children:[A&&(0,f.jsx)(p,{children:A}),O]})})]}),_&&(0,f.jsx)(a.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===C||void 0===C?void 0:C(null)},children:(0,f.jsx)(c.Z,P(P({},_),{},{onClose:function(){return null===C||void 0===C?void 0:C(null)}}))})]})}},33699:function(n,e,t){"use strict";t.d(e,{y:function(){return N},Z:function(){return M}});var r=t(89565),i=t.n(r),o=t(56085),a=t(82684),c=t(35490),u=t(47999),l=t(67971),s=t(82635),d=t(86673),f=t(54283),h=t(19711),p=t(9518),v=t(23831),g=t(49125),y=t(37391),m=(0,p.css)([""," ",""],(function(n){return!n.width&&"\n width: 100%;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")})),b=p.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],m,y.w5,(function(n){return"\n background-color: ".concat((n.theme.background||v.Z.background).codeTextarea,";\n ")})),x=p.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],m,g.cd*g.iI),w=p.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),S=(0,p.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(n){return n.focusBeginning&&"\n position: absolute;\n background-color: ".concat((n.theme.accent||v.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(g.iI,"px;\n opacity: 0.3;\n ")}),(function(n){return n.focused&&"\n background-color: ".concat((n.theme.accent||v.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(g.iI,"px;\n opacity: 0.3;\n ")})),j=p.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],S),P=p.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],S,(function(n){return n.focused&&"\n position: absolute;\n "})),T=t(16115),k=t(94353),E=t(28799),O=t(51504),_=t(66653),I=t(41150),Z=t(28598);function C(n,e){var t="undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"===typeof n)return A(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return A(n,e)}(n))||e&&n&&"number"===typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){c=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw o}}}}function A(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0?n-1:n}))}),[]),dn=(0,a.useCallback)((function(){K((function(n){return n<=R.length?n+1:n}))}),[R]),fn=(0,a.useCallback)((function(n){var e=(null===n||void 0===n?void 0:n.split(/\n/))||[];if(e.length>1){var t=e.slice(0,-1);t[0]=R+t[0];var r=t.map((function(n,e){return{command:0===e,data:n,type:s.Gi.TEXT}}));U(W.length+t.length),z((function(n){return n.concat(t)})),en((function(n){return n.concat(r)})),L((function(n){return n+t.join("\n")}));var i=(e.slice(-1)[0]||"").trim();D(i),K(i.length)}else D((function(e){return e+n})),K(R.length+n.length)}),[R,W]);return cn(p,(function(n,t,r){var i=n.code,o=n.key;if(V)if((0,_.j)(n),(0,O.y)([T.PQ,T.VS],t))A(!1),en((function(n){var e;return n.concat({command:!0,data:(null===R||void 0===R||null===(e=R.trim())||void 0===e?void 0:e.length)>=1?R:"\n",type:s.Gi.TEXT})})),D(""),e();else if(!S)if(T.Qj!==i||t[T.zX])if((0,O.y)([T.QK],t))sn();else if((0,O.y)([T.DY],t))dn();else if((0,O.y)([T.Bu],t)){if(W.length>=1){var a,u=Math.max(0,X-1);D(W[u]),U(u),K((null===(a=W[u])||void 0===a?void 0:a.length)||0)}}else if((0,O.y)([T.kD],t)){if(W.length>=1){var l=Math.min(W.length,X+1),d=W[l]||"";D(d),U(l),K(d.length)}}else if((0,O.y)([T.Uq],t)){var f=H+R;(null===f||void 0===f?void 0:f.length)>=1&&(A(!0),on(JSON.stringify({api_key:k.l,code:"!".concat(f),token:(new c.Z).decodedToken.token,uuid:p})),U(W.length+1),z((function(n){return n.concat(R)})),K(0)),en((function(n){var e;return n.concat({command:!0,data:(null===R||void 0===R||null===(e=R.trim())||void 0===e?void 0:e.length)>=1?R:"\n",type:s.Gi.TEXT})})),L(""),D("")}else if((0,O.y)([T.zX,T.VS],t))navigator.clipboard.writeText(window.getSelection().toString());else if((0,O.y)([T.zX,T.Pd],t)||(0,O.y)([T.PQ,T.Pd],t)){var h,v,g,y,m;"undefined"===typeof(null===(h=navigator)||void 0===h?void 0:h.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(v=navigator)&&void 0!==v&&null!==(g=v.clipboard)&&void 0!==g&&g.readText?navigator.clipboard.readText().then(fn).catch((function(n){return alert("".concat(n,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(y=navigator)&&void 0!==y&&null!==(m=y.clipboard)&&void 0!==m&&m.read?navigator.clipboard.read().then((function(n){var e,t=C(n);try{for(t.s();!(e=t.n()).done;){var r,i=e.value,o=C(i.types);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("text/plain"===a)return i.getType(a)}}catch(c){o.e(c)}finally{o.f()}}}catch(c){t.e(c)}finally{t.f()}})).then((function(n){return n.text()})).then(fn).catch((function(n){return alert("".concat(n,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else t[T.zX]||t[T.PQ]||1!==o.length||(D((function(n){return n.slice(0,B)+o+n.slice(B)})),dn());else{var b=Math.max(0,B-1);D((function(n){return n.slice(0,b)+n.slice(B)})),K((function(n){return Math.max(0,n-1)}))}}),[S,R,W,X,V,e,A,D,z,U,en,p]),(0,Z.jsx)(b,{ref:g,width:v,children:(0,Z.jsx)(u.Z,{isOpen:!0,onClick:function(){null===t||void 0===t||t(),J(!0),un(!0)},onClickOutside:function(){J(!1),un(!1)},style:{minHeight:"100%"},children:(0,Z.jsxs)(x,{ref:y,width:v,children:[null===nn||void 0===nn?void 0:nn.reduce((function(n,e,t){var r=e||{},o=r.command,a=r.data,c=r.type,u=[];u=(u=Array.isArray(a)?a:[a]).filter((function(n){return n}));var d=[];return u.forEach((function(n,e){var r;if(s.jU.includes(c)&&(r=(0,Z.jsxs)(h.ZP,{monospace:!0,noWrapping:!0,pre:!0,children:[n&&(0,Z.jsx)(i(),{children:n}),!n&&(0,Z.jsx)(Z.Fragment,{children:"\xa0"})]})),r){var a="command-".concat(t,"-").concat(e,"-").concat(n);o?d.push((0,Z.jsx)(w,{children:(0,Z.jsxs)(l.Z,{alignItems:"center",children:[(0,Z.jsx)(h.ZP,{inline:!0,monospace:!0,warning:!0,children:"\u2192\xa0"}),r]})},a)):d.push((0,Z.jsx)(w,{children:r},a))}})),n.concat(d)}),[]),S&&(0,Z.jsx)(d.Z,{mt:1,children:(0,Z.jsx)(f.Z,{})}),!S&&(0,Z.jsx)(j,{focused:V&&(0===R.length||B>R.length),children:(0,Z.jsxs)(h.ZP,{monospace:!0,children:[(0,Z.jsx)(h.ZP,{inline:!0,monospace:!0,warning:!0,children:"\u2192\xa0"}),null===R||void 0===R?void 0:R.split("").map((function(n,e){return(0,Z.jsxs)(P,{focusBeginning:V&&0===B&&0===e,focused:V&&B===e+1,children:[" "===n&&(0,Z.jsx)(Z.Fragment,{children:"\xa0"})," "!==n&&n]},"command-".concat(e,"-").concat(n))}))]})})]})})})}},82635:function(n,e,t){"use strict";var r,i;t.d(e,{Gi:function(){return i},jU:function(){return a},uF:function(){return r}}),function(n){n.BUSY="busy",n.IDLE="idle",n.QUEUED="queued"}(r||(r={})),function(n){n.IMAGE_PNG="image/png",n.PROGRESS="progress",n.TABLE="table",n.TEXT="text",n.TEXT_HTML="text/html",n.TEXT_PLAIN="text/plain"}(i||(i={}));var o,a=[i.TEXT,i.TEXT_PLAIN];!function(n){n.DISPLAY_DATA="display_data",n.STATUS="status",n.STREAM="stream",n.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},98781:function(n,e,t){"use strict";t.d(e,{G7:function(){return u},QK:function(){return c},a_:function(){return l},qL:function(){return o}});var r,i,o,a=t(82394);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(o||(o={}));var c,u=(r={},(0,a.Z)(r,o.INTEGRATION,"Integration"),(0,a.Z)(r,o.PYTHON,"Standard"),(0,a.Z)(r,o.PYSPARK,"PySpark"),(0,a.Z)(r,o.STREAMING,"Streaming"),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules"}(c||(c={}));var l=(i={},(0,a.Z)(i,o.PYTHON,"python3"),(0,a.Z)(i,o.PYSPARK,"pysparkkernel"),i)},72433:function(n,e,t){"use strict";t.r(e);var r=t(77837),i=t(75582),o=t(38860),a=t.n(o),c=t(82684),u=t(83455),l=t(1210),s=t(41788),d=t(33699),f=t(82531),h=t(98781),p=t(96510),v=t(28598);function g(){var n=(0,u.Db)(f.ZP.kernels.useUpdate(h.a_[h.qL.PYTHON]),{onSuccess:function(n){return(0,p.wD)(n,{onErrorCallback:function(n,e){console.log(n),alert(e)}})}}),e=(0,i.Z)(n,1)[0],t=(0,c.useCallback)((function(){return e({kernel:{action_type:"interrupt"}})}),[e]);return(0,v.jsx)(l.Z,{title:"Terminal",uuid:"terminal/index",children:(0,v.jsx)(d.Z,{interruptKernel:t})})}g.getInitialProps=(0,r.Z)(a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,s.Z)(g)},51504:function(n,e,t){"use strict";t.d(e,{y:function(){return o}});var r=t(75582),i=t(16115);function o(n,e){var t=n.map((function(n){return String(n)})),o=n.includes(i.PQ),a=n.includes(i.zX),c=n.includes(i.XR),u=i.xU.map((function(n){return String(n)})),l=i.vk.map((function(n){return String(n)})),s=i.Tr.map((function(n){return String(n)})),d=Object.entries(e).find((function(n){var e=(0,r.Z)(n,2),i=e[0];return e[1]&&!t.includes(String(i))&&(!a||!l.includes(String(i)))&&(!o||!u.includes(String(i)))&&(!c||!s.includes(String(i)))}));return n.every((function(n){return e[n]}))&&!d}},27271:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/terminal",function(){return t(72433)}])}},function(n){n.O(0,[3850,9565,6085,9767,9386,9774,2888,179],(function(){return e=27271,n(n.s=e);var e}));var e=n.O();_N_E=e}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-90abd9c4dfca2556.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-90abd9c4dfca2556.js new file mode 100644 index 000000000000..dffa3781c046 --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-90abd9c4dfca2556.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4841],{1210:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(82394),i=n(21831),o=n(82684),u=n(47999),c=n(28358),s=n(93461),a=n(57384),l=n(12344),f=n(72454),d=n(28598);function v(e,t){var n=e.children;return(0,d.jsx)(f.HS,{ref:t,children:n})}var h=o.forwardRef(v),p=n(32063),b=n(15270),O=n(82531),j=n(66166),P=n(3055),w=n(49125),Z=n(91427),m=n(24141);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t=1&&te.push.apply(te,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return C}}]),(0,o.useEffect)((function(){null===W||void 0===W||!W.current||B||X||null===J||void 0===J||J(W.current.getBoundingClientRect().width)}),[B,G,X,z,W,J,H]),(0,o.useEffect)((function(){B||(0,Z.t8)(M,G)}),[r,B,G,M]),(0,o.useEffect)((function(){X||(0,Z.t8)(D,z)}),[X,z,D]);var ne=(0,j.Z)(v);return(0,o.useEffect)((function(){_&&ne!==v&&K(v)}),[_,v,ne]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.Z,{title:C}),(0,d.jsx)(l.Z,{breadcrumbs:te,menuItems:N,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(t=ee[0])||void 0===t?void 0:t.version}),(0,d.jsxs)(f.Nk,{children:[0!==(null===A||void 0===A?void 0:A.length)&&(0,d.jsx)(f.lm,{children:(0,d.jsx)(b.Z,{navigationItems:A})}),(0,d.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,d.jsxs)(p.Z,{after:n,afterHeightOffset:P.Mz,afterHidden:r,afterMousedownActive:B,afterWidth:G,before:E,beforeHeightOffset:P.Mz,beforeMousedownActive:X,beforeWidth:f.k1+(E?z:0),hideAfterCompletely:!0,leftOffset:E?f.k1:null,mainContainerRef:W,setAfterMousedownActive:L,setAfterWidth:K,setBeforeMousedownActive:Q,setBeforeWidth:F,children:[T&&(0,d.jsx)(h,{children:T}),x]})})]}),S&&(0,d.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===I||void 0===I?void 0:I(null)},children:(0,d.jsx)(c.Z,g(g({},S),{},{onClose:function(){return null===I||void 0===I?void 0:I(null)}}))})]})}},98781:function(e,t,n){"use strict";n.d(t,{G7:function(){return s},QK:function(){return c},a_:function(){return a},qL:function(){return o}});var r,i,o,u=n(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(o||(o={}));var c,s=(r={},(0,u.Z)(r,o.INTEGRATION,"Integration"),(0,u.Z)(r,o.PYTHON,"Standard"),(0,u.Z)(r,o.PYSPARK,"PySpark"),(0,u.Z)(r,o.STREAMING,"Streaming"),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules"}(c||(c={}));var a=(i={},(0,u.Z)(i,o.PYTHON,"python3"),(0,u.Z)(i,o.PYSPARK,"pysparkkernel"),i)},72433:function(e,t,n){"use strict";n.r(t);var r=n(77837),i=n(75582),o=n(38860),u=n.n(o),c=n(82684),s=n(83455),a=n(1210),l=n(41788),f=n(33699),d=n(82531),v=n(98781),h=n(96510),p=n(28598);function b(){var e=(0,s.Db)(d.ZP.kernels.useUpdate(v.a_[v.qL.PYTHON]),{onSuccess:function(e){return(0,h.wD)(e,{onErrorCallback:function(e,t){console.log(e),alert(t)}})}}),t=(0,i.Z)(e,1)[0],n=(0,c.useCallback)((function(){return t({kernel:{action_type:"interrupt"}})}),[t]);return(0,p.jsx)(a.Z,{title:"Terminal",uuid:"terminal/index",children:(0,p.jsx)(f.Z,{interruptKernel:n})})}b.getInitialProps=(0,r.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,l.Z)(b)},27271:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/terminal",function(){return n(72433)}])}},function(e){e.O(0,[3850,9565,6085,2344,9386,3699,9774,2888,179],(function(){return t=27271,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-6540e41d09691d6b.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-6540e41d09691d6b.js new file mode 100644 index 000000000000..253ae0259851 --- /dev/null +++ b/mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-6540e41d09691d6b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[585],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),u=t(28358),l=t(93461),a=t(57384),s=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),g=t(32063),v=t(15270),b=t(82531),m=t(66166),j=t(3055),y=t(49125),x=t(91427),O=t(24141);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return D}}]),(0,o.useEffect)((function(){null===N||void 0===N||!N.current||F||K||null===G||void 0===G||G(N.current.getBoundingClientRect().width)}),[F,z,K,Y,N,G,H]),(0,o.useEffect)((function(){F||(0,x.t8)(B,z)}),[r,F,z,B]),(0,o.useEffect)((function(){K||(0,x.t8)(R,Y)}),[K,Y,R]);var te=(0,m.Z)(p);return(0,o.useEffect)((function(){w&&te!==p&&L(p)}),[w,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:D}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:A,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===S||void 0===S?void 0:S.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:S})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(g.Z,{after:t,afterHeightOffset:j.Mz,afterHidden:r,afterMousedownActive:F,afterWidth:z,before:P,beforeHeightOffset:j.Mz,beforeMousedownActive:K,beforeWidth:d.k1+(P?Y:0),hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerRef:N,setAfterMousedownActive:W,setAfterWidth:L,setBeforeMousedownActive:X,setBeforeWidth:Q,children:[T&&(0,f.jsx)(h,{children:T}),C]})})]}),E&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===I||void 0===I?void 0:I(null)},children:(0,f.jsx)(u.Z,Z(Z({},E),{},{onClose:function(){return null===I||void 0===I?void 0:I(null)}}))})]})}},97225:function(e,n,t){"use strict";var r=t(75582),i=t(12691),o=t.n(i),c=t(82684),u=t(83455),l=t(34376),a=t(60328),s=t(47999),d=t(67971),f=t(10919),p=t(93348),h=t(62609),g=t(86673),v=t(87815),b=t(19711),m=t(82531),j=t(10503),y=t(49125),x=t(45838),O=t(9736),w=t(96510),Z=t(66653),P=t(28598);n.Z=function(e){var n=e.fetchPipelineSchedules,t=e.highlightRowOnHover,i=e.includeCreatedAtColumn,k=e.includePipelineColumn,_=e.pipeline,C=e.pipelineSchedules,E=e.selectedSchedule,A=e.setErrors,S=e.setSelectedSchedule,I=e.stickyHeader,T=null===_||void 0===_?void 0:_.uuid,D=(0,l.useRouter)(),M=(0,c.useRef)({}),H=(0,c.useState)(null),B=H[0],R=H[1],N=(0,c.useState)(0),V=N[0],z=N[1],L=(0,c.useState)(0),q=L[0],F=L[1],W=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),U=(0,r.Z)(W,1)[0],Y=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){n(),T?D.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(T,"/triggers")):n()},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),Q=(0,r.Z)(Y,1)[0],J=[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest run status"},{uuid:"Logs"}];(0,O.Ct)()||J.push({label:function(){return""},uuid:"edit/delete"});var K=[null,1,1,3,1,null,null,null,null];return k&&(J.splice(2,0,{uuid:"Pipeline"}),K.splice(2,0,2)),i&&(J.splice(3,0,{uuid:"Created at"}),K.splice(3,0,null)),(0,P.jsx)(x.cl,{overflowVisible:!0,children:0===C.length?(0,P.jsx)(g.Z,{px:3,py:1,children:(0,P.jsx)(b.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(v.Z,{columnFlex:K,columns:J,highlightRowOnHover:t,isSelectedRow:function(e){return C[e].id===(null===E||void 0===E?void 0:E.id)},onClickRow:S?function(e){return null===S||void 0===S?void 0:S(C[e])}:null,rowVerticalPadding:6,rows:C.map((function(e,n){var t,r=e.id,u=e.created_at,l=e.pipeline_runs_count,v=e.pipeline_uuid,m=e.last_pipeline_run_status,x=e.name,w=e.schedule_interval,_=e.status,C=T||v;M.current[r]=(0,c.createRef)();var E=[(0,P.jsx)(a.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,Z.j)(n),U({id:e.id,status:p.fq.ACTIVE===_?p.fq.INACTIVE:p.fq.ACTIVE})},children:p.fq.ACTIVE===_?(0,P.jsx)(j.dz,{muted:!0,size:2*y.iI}):(0,P.jsx)(j.Py,{default:!0,size:2*y.iI})},"toggle_trigger_".concat(n)),(0,P.jsx)(b.ZP,{default:p.fq.INACTIVE===_,monospace:!0,success:p.fq.ACTIVE===_,children:_},"trigger_status_".concat(n)),(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:null===(t=p.Z4[e.schedule_type])||void 0===t?void 0:t.call(p.Z4)},"trigger_type_".concat(n)),(0,P.jsx)(o(),{as:"/pipelines/".concat(C,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(f.Z,{bold:!0,onClick:function(e){(0,Z.j)(e),D.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(C,"/triggers/").concat(r))},sameColorAsText:!0,children:x})},"trigger_name_".concat(n)),(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:w},"trigger_frequency_".concat(n)),(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:l},"trigger_run_count_".concat(n)),(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:m||"N/A"},"latest_run_status_".concat(n)),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return D.push("/pipelines/".concat(C,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,P.jsx)(j.B4,{default:!0,size:2*y.iI})},"logs_button_".concat(n))];return(0,O.Ct)()||E.push((0,P.jsxs)(d.Z,{children:[(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return D.push("/pipelines/".concat(C,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,P.jsx)(j.I8,{default:!0,size:2*y.iI})}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,i;R(r),z((null===(e=M.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),F((null===(t=M.current[r])||void 0===t||null===(i=t.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:M.current[r],title:"Delete",children:(0,P.jsx)(j.rF,{default:!0,size:2*y.iI})}),(0,P.jsx)(s.Z,{onClickOutside:function(){return R(null)},open:B===r,children:(0,P.jsx)(h.Z,{danger:!0,left:(q||0)-286,onCancel:function(){return R(null)},onClick:function(){R(null),Q(r)},title:"Are you sure you want to delete the trigger ".concat(x,"?"),top:(V||0)-(n<=1?40:96),width:40*y.iI})})]},"edit_delete_buttons_".concat(n))),k&&E.splice(2,0,(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:C},"pipeline_name_".concat(n))),i&&E.splice(3,0,(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:u},"created_at_".concat(n))),E})),stickyHeader:I,uuid:"pipeline-triggers"})})}},51099:function(e,n,t){"use strict";t.d(n,{Q:function(){return s}});t(82684);var r=t(60328),i=t(67971),o=t(86673),c=t(10503),u=t(73899),l=t(49125),a=t(28598),s=22;n.Z=function(e){var n=e.page,t=e.maxPages,s=e.onUpdate,d=e.totalPages,f=[],p=t;if(p>d)f=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(p/2),g=n-h;n+h>=d?(g=d-p+2,p-=2):n-h<=0?(g=0,p-=2):(p-=4,g=n-Math.floor(p/2)),f=Array.from({length:p},(function(e,n){return n+g}))}return(0,a.jsx)(a.Fragment,{children:d>0&&(0,a.jsxs)(i.Z,{alignItems:"center",children:[(0,a.jsx)(r.Z,{disabled:0===n,onClick:function(){return s(n-1)},children:(0,a.jsx)(c.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!f.includes(0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){return s(0)},borderLess:!0,noBackground:!0,children:1})},0),!f.includes(1)&&(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),f.map((function(e){return(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){e!==n&&s(e)},notClickable:e===n,backgroundColor:e===n&&u.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!f.includes(d-1)&&(0,a.jsxs)(a.Fragment,{children:[!f.includes(d-2)&&(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,a.jsx)(o.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){return s(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,a.jsx)(o.Z,{ml:1}),(0,a.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return s(n+1)},children:(0,a.jsx)(c.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},45838:function(e,n,t){"use strict";t.d(n,{GZ:function(){return d},Vq:function(){return a},cE:function(){return f},cl:function(){return u},kA:function(){return l}});var r=t(9518),i=t(23831),o=t(37391),c=t(49125),u=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],o.w5,(function(e){return e.minHeight&&"\n min-height: ".concat(e.minHeight,"px;\n ")}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),l=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(e){return(e.columnBorders||e.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(e){return e.highlightOnHover&&"\n &:hover {\n background: ".concat((e.theme.interactive||i.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(e){return!e.noHover&&"\n &:hover {\n background: ".concat((e.theme.interactive||i.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(e){return!e.alignTop&&"\n vertical-align: middle;\n "}),(function(e){return e.alignTop&&"\n vertical-align: top;\n "}),(function(e){return!e.noBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(e){return!e.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(e){return e.columnBorders&&"\n border: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n border-right: none;\n ")}),(function(e){return e.columnBorders&&e.last&&"\n border-right: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.sticky&&"\n background-color: ".concat((e.theme||i.Z).background.panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(e){return e.rowVerticalPadding&&"\n padding-top: ".concat(e.rowVerticalPadding,"px;\n padding-bottom: ").concat(e.rowVerticalPadding,"px;\n ")}),(function(e){return e.columnBorders&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.columnBorders&&e.last&&"\n border-right: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.stickyFirstColumn&&"\n background-color: ".concat((e.theme||i.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).activeBorder,";\n ")}),(function(e){return e.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(e,n,t){"use strict";var r=t(82394),i=t(12691),o=t.n(i),c=t(82684),u=t(67971),l=t(10919),a=t(86673),s=t(19711),d=t(46261),f=t(45838),p=t(28598);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n=1&&!Z&&(0,p.jsx)(f.Vq,{noHover:!0,children:j.map((function(e,n){return(0,p.jsx)(f.GZ,{columnBorders:h,compact:y,last:n===j.length-1,noBorder:w,sticky:A,children:(0,p.jsxs)(u.Z,{alignItems:"center",justifyContent:e.center?"center":"flex-start",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:e.label?e.label():e.uuid}),e.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:e.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(S,"-col-").concat(e.uuid,"-").concat(n))}))}),M]})}},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return s},fq:function(){return u},kJ:function(){return a}});var r,i,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var u,l,a,s=(r={},(0,c.Z)(r,o.API,(function(){return"API"})),(0,c.Z)(r,o.EVENT,(function(){return"event"})),(0,c.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(u||(u={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(a||(a={}));var d=(i={},(0,c.Z)(i,a.CREATED_AT,"Created at"),(0,c.Z)(i,a.NAME,"Name"),(0,c.Z)(i,a.PIPELINE,"Pipeline"),(0,c.Z)(i,a.STATUS,"Status"),(0,c.Z)(i,a.TYPE,"Type"),i)},46756:function(e,n,t){"use strict";t.r(n);var r=t(77837),i=t(82394),o=t(75582),c=t(38860),u=t.n(c),l=t(82684),a=t(34376),s=t(1210),d=t(67971),f=t(51099),p=t(41788),h=t(55378),g=t(86673),v=t(19711),b=t(97225),m=t(82531),j=t(93348),y=t(49125),x=t(33766),O=t(59e3),w=t(28598);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n=0?r:0});e.push("/triggers","/triggers?".concat((0,O.uM)(i)))},page:Number(t),totalPages:Math.ceil(k/f.Q)})})]})}k.getInitialProps=(0,r.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,p.Z)(k)},24224:function(e,n,t){"use strict";t.d(n,{HK:function(){return a},Hk:function(){return u},IN:function(){return x},Od:function(){return p},Qj:function(){return b},Sm:function(){return y},YC:function(){return s},fS:function(){return g},m5:function(){return j},mp:function(){return O},mr:function(){return d},oM:function(){return h},ry:function(){return f},sE:function(){return l},tS:function(){return v},w6:function(){return m}});var r=t(82394),i=t(7715);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,o=void 0===r||r,c=t.absoluteValue,u=void 0!==c&&c,l="string"===typeof n||"number"===typeof n?function(e){return u?Math.abs((0,i.t2)(e,n)):(0,i.t2)(e,n)}:function(e){return u?Math.abs(n(e)):n(e)};return e.sort((function(e,n){var t=0;return l(e)>l(n)?t=o?1:-1:l(e)1&&void 0!==arguments[1]?arguments[1]:{},t=n.ascending,r=void 0===t||t;return e.sort((function(e,n){var t=0;return e[0]>n[0]?t=r?1:-1:e[0]>1);n(e[i])?t=i:r=i}return r}function p(e,n){var t=e.findIndex(n);return h(e,t)}function h(e,n){return e.slice(0,n).concat(e.slice(n+1,e.length))}function g(e,n){return e.map((function(e){return String(e)})).join()===n.map((function(e){return String(e)})).join()}function v(e,n){return e>n}function b(e,n){return e1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(e).keys());return 0!==n&&(t=t.map((function(e){return e+n}))),t}function y(e){return e.reduce((function(e,n){return e+n}),0)}function x(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=e.reduce((function(e,n){return e+n}),0)/e.length;return Math.sqrt(e.reduce((function(e,n){return e.concat(Math.pow(n-t,2))}),[]).reduce((function(e,n){return e+n}),0)/(e.length-(n?0:1)))}function O(e){return e[Math.floor(Math.random()*e.length)]}},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return f},u7:function(){return d}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),u=t(59e3),l=t(24224);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,u.iV)();n=window.location.pathname;var a=o?c().push:c().replace,d=s(s({},l),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var f=(0,u.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(n.split("?")[0]).concat(f);return a(c().router.pathname,p,{shallow:!0})}function f(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,u=t.resetLimitParams,a=s({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");a[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),c="".concat(t,"[]"),u=a[c];u&&Array.isArray(u)?(u=u.map(String)).includes(o)?a[c]=(0,l.Od)(u,(function(e){return e===o})):a[c]=u.concat(o):a[c]=[o]})):a=s(s({},a),n),u&&(a._limit=c||20,a._offset=0),d(a)}},59733:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/triggers",function(){return t(46756)}])}},function(e){e.O(0,[3850,2344,9386,9774,2888,179],(function(){return n=59733,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-e81119f500c86a27.js b/mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-e81119f500c86a27.js deleted file mode 100644 index 3a48f93a8cc6..000000000000 --- a/mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-e81119f500c86a27.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[585],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),o=t(21831),i=t(82684),c=t(47999),u=t(49894),l=t(93461),a=t(57384),s=t(19767),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=i.forwardRef(p),g=t(32063),v=t(15270),b=t(82531),m=t(66166),j=t(3055),y=t(49125),O=t(91427),x=t(24141);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return D}}]),(0,i.useEffect)((function(){null===N||void 0===N||!N.current||F||K||null===G||void 0===G||G(N.current.getBoundingClientRect().width)}),[F,L,K,Y,N,G,B]),(0,i.useEffect)((function(){F||(0,O.t8)(H,L)}),[r,F,L,H]),(0,i.useEffect)((function(){K||(0,O.t8)(R,Y)}),[K,Y,R]);var te=(0,m.Z)(p);return(0,i.useEffect)((function(){w&&te!==p&&z(p)}),[w,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:D}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:I,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===S||void 0===S?void 0:S.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:S})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(g.Z,{after:t,afterHeightOffset:j.Mz,afterHidden:r,afterMousedownActive:F,afterWidth:L,before:P,beforeHeightOffset:j.Mz,beforeMousedownActive:K,beforeWidth:d.k1+(P?Y:0),hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerRef:N,setAfterMousedownActive:W,setAfterWidth:z,setBeforeMousedownActive:X,setBeforeWidth:Q,children:[T&&(0,f.jsx)(h,{children:T}),C]})})]}),E&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===A||void 0===A?void 0:A(null)},children:(0,f.jsx)(u.Z,Z(Z({},E),{},{onClose:function(){return null===A||void 0===A?void 0:A(null)}}))})]})}},97225:function(e,n,t){"use strict";var r=t(75582),o=t(12691),i=t.n(o),c=t(82684),u=t(83455),l=t(34376),a=t(60328),s=t(47999),d=t(67971),f=t(10919),p=t(93348),h=t(62609),g=t(86673),v=t(87815),b=t(19711),m=t(82531),j=t(10503),y=t(49125),O=t(45838),x=t(9736),w=t(96510),Z=t(66653),P=t(28598);n.Z=function(e){var n=e.fetchPipelineSchedules,t=e.highlightRowOnHover,o=e.includeCreatedAtColumn,k=e.includePipelineColumn,_=e.pipeline,C=e.pipelineSchedules,E=e.selectedSchedule,I=e.setErrors,S=e.setSelectedSchedule,A=e.stickyHeader,T=null===_||void 0===_?void 0:_.uuid,D=(0,l.useRouter)(),M=(0,c.useRef)({}),B=(0,c.useState)(null),H=B[0],R=B[1],N=(0,c.useState)(0),V=N[0],L=N[1],z=(0,c.useState)(0),q=z[0],F=z[1],W=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),U=(0,r.Z)(W,1)[0],Y=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){n(),T?D.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(T,"/triggers")):n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),Q=(0,r.Z)(Y,1)[0],J=[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest run status"},{uuid:"Logs"}];(0,x.Ct)()||J.push({label:function(){return""},uuid:"edit/delete"});var K=[null,1,1,3,1,null,null,null,null];return k&&(J.splice(2,0,{uuid:"Pipeline"}),K.splice(2,0,2)),o&&(J.splice(3,0,{uuid:"Created at"}),K.splice(3,0,null)),(0,P.jsx)(O.cl,{overflowVisible:!0,children:0===C.length?(0,P.jsx)(g.Z,{px:3,py:1,children:(0,P.jsx)(b.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(v.Z,{columnFlex:K,columns:J,highlightRowOnHover:t,isSelectedRow:function(e){return C[e].id===(null===E||void 0===E?void 0:E.id)},onClickRow:S?function(e){return null===S||void 0===S?void 0:S(C[e])}:null,rowVerticalPadding:6,rows:C.map((function(e,n){var t,r=e.id,u=e.created_at,l=e.pipeline_runs_count,v=e.pipeline_uuid,m=e.last_pipeline_run_status,O=e.name,w=e.schedule_interval,_=e.status,C=T||v;M.current[r]=(0,c.createRef)();var E=[(0,P.jsx)(a.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,Z.j)(n),U({id:e.id,status:p.fq.ACTIVE===_?p.fq.INACTIVE:p.fq.ACTIVE})},children:p.fq.ACTIVE===_?(0,P.jsx)(j.dz,{muted:!0,size:2*y.iI}):(0,P.jsx)(j.Py,{default:!0,size:2*y.iI})},"toggle_trigger_".concat(n)),(0,P.jsx)(b.ZP,{default:p.fq.INACTIVE===_,monospace:!0,success:p.fq.ACTIVE===_,children:_},"trigger_status_".concat(n)),(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:null===(t=p.Z4[e.schedule_type])||void 0===t?void 0:t.call(p.Z4)},"trigger_type_".concat(n)),(0,P.jsx)(i(),{as:"/pipelines/".concat(C,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(f.Z,{bold:!0,onClick:function(e){(0,Z.j)(e),D.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(C,"/triggers/").concat(r))},sameColorAsText:!0,children:O})},"trigger_name_".concat(n)),(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:w},"trigger_frequency_".concat(n)),(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:l},"trigger_run_count_".concat(n)),(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:m||"N/A"},"latest_run_status_".concat(n)),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return D.push("/pipelines/".concat(C,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,P.jsx)(j.B4,{default:!0,size:2*y.iI})},"logs_button_".concat(n))];return(0,x.Ct)()||E.push((0,P.jsxs)(d.Z,{children:[(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return D.push("/pipelines/".concat(C,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,P.jsx)(j.I8,{default:!0,size:2*y.iI})}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,o;R(r),L((null===(e=M.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),F((null===(t=M.current[r])||void 0===t||null===(o=t.current)||void 0===o?void 0:o.offsetLeft)||0)},ref:M.current[r],title:"Delete",children:(0,P.jsx)(j.rF,{default:!0,size:2*y.iI})}),(0,P.jsx)(s.Z,{onClickOutside:function(){return R(null)},open:H===r,children:(0,P.jsx)(h.Z,{danger:!0,left:(q||0)-286,onCancel:function(){return R(null)},onClick:function(){R(null),Q(r)},title:"Are you sure you want to delete the trigger ".concat(O,"?"),top:(V||0)-(n<=1?40:96),width:40*y.iI})})]},"edit_delete_buttons_".concat(n))),k&&E.splice(2,0,(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:C},"pipeline_name_".concat(n))),o&&E.splice(3,0,(0,P.jsx)(b.ZP,{default:!0,monospace:!0,children:u},"created_at_".concat(n))),E})),stickyHeader:A,uuid:"pipeline-triggers"})})}},51099:function(e,n,t){"use strict";t.d(n,{Q:function(){return s}});t(82684);var r=t(60328),o=t(67971),i=t(86673),c=t(10503),u=t(73899),l=t(49125),a=t(28598),s=22;n.Z=function(e){var n=e.page,t=e.maxPages,s=e.onUpdate,d=e.totalPages,f=[],p=t;if(p>d)f=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(p/2),g=n-h;n+h>=d?(g=d-p+2,p-=2):n-h<=0?(g=0,p-=2):(p-=4,g=n-Math.floor(p/2)),f=Array.from({length:p},(function(e,n){return n+g}))}return(0,a.jsx)(a.Fragment,{children:d>0&&(0,a.jsxs)(o.Z,{alignItems:"center",children:[(0,a.jsx)(r.Z,{disabled:0===n,onClick:function(){return s(n-1)},children:(0,a.jsx)(c.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!f.includes(0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){return s(0)},borderLess:!0,noBackground:!0,children:1})},0),!f.includes(1)&&(0,a.jsx)(i.Z,{ml:1,children:(0,a.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),f.map((function(e){return(0,a.jsx)(i.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){e!==n&&s(e)},notClickable:e===n,backgroundColor:e===n&&u.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!f.includes(d-1)&&(0,a.jsxs)(a.Fragment,{children:[!f.includes(d-2)&&(0,a.jsx)(i.Z,{ml:1,children:(0,a.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,a.jsx)(i.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){return s(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,a.jsx)(i.Z,{ml:1}),(0,a.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return s(n+1)},children:(0,a.jsx)(c.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},45838:function(e,n,t){"use strict";t.d(n,{GZ:function(){return d},Vq:function(){return a},cE:function(){return f},cl:function(){return u},kA:function(){return l}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),u=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(e){return e.minHeight&&"\n min-height: ".concat(e.minHeight,"px;\n ")}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),l=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(e){return(e.columnBorders||e.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(e){return e.highlightOnHover&&"\n &:hover {\n background: ".concat((e.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(e){return!e.noHover&&"\n &:hover {\n background: ".concat((e.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(e){return!e.alignTop&&"\n vertical-align: middle;\n "}),(function(e){return e.alignTop&&"\n vertical-align: top;\n "}),(function(e){return!e.noBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).light,";\n ")}),(function(e){return e.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(e){return!e.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(e){return e.columnBorders&&"\n border: 1px solid ".concat((e.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(e){return e.columnBorders&&e.last&&"\n border-right: 1px solid ".concat((e.theme.borders||o.Z.borders).light,";\n ")}),(function(e){return e.sticky&&"\n background-color: ".concat((e.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(e){return e.rowVerticalPadding&&"\n padding-top: ".concat(e.rowVerticalPadding,"px;\n padding-bottom: ").concat(e.rowVerticalPadding,"px;\n ")}),(function(e){return e.columnBorders&&"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).light,";\n ")}),(function(e){return e.columnBorders&&e.last&&"\n border-right: 1px solid ".concat((e.theme.borders||o.Z.borders).light,";\n ")}),(function(e){return e.stickyFirstColumn&&"\n background-color: ".concat((e.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(e){return e.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(e,n,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),u=t(67971),l=t(10919),a=t(86673),s=t(19711),d=t(46261),f=t(45838),p=t(28598);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n=1&&!Z&&(0,p.jsx)(f.Vq,{noHover:!0,children:j.map((function(e,n){return(0,p.jsx)(f.GZ,{columnBorders:h,compact:y,last:n===j.length-1,noBorder:w,sticky:E,children:(0,p.jsxs)(u.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:e.label?e.label():e.uuid}),e.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:e.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(I,"-col-").concat(e.uuid,"-").concat(n))}))}),D]})}},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return i},Z4:function(){return s},fq:function(){return u},kJ:function(){return a}});var r,o,i,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(i||(i={}));var u,l,a,s=(r={},(0,c.Z)(r,i.API,(function(){return"API"})),(0,c.Z)(r,i.EVENT,(function(){return"event"})),(0,c.Z)(r,i.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(u||(u={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(a||(a={}));var d=(o={},(0,c.Z)(o,a.CREATED_AT,"Created at"),(0,c.Z)(o,a.NAME,"Name"),(0,c.Z)(o,a.PIPELINE,"Pipeline"),(0,c.Z)(o,a.STATUS,"Status"),(0,c.Z)(o,a.TYPE,"Type"),o)},55378:function(e,n,t){"use strict";var r=t(82394),o=t(26304),i=t(82684),c=t(9518),u=t(69898),l=t(31969),a=t(49125),s=t(28598),d=["beforeIcon","children","label","multiple","placeholder"];function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n\n \n ",a.iI,a.iI,2.5*a.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||l.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||l.Z.content).inverted,";\n ")})),g=function(e,n){var t=e.beforeIcon,r=e.children,i=e.label,c=e.multiple,l=e.placeholder,a=(0,o.Z)(e,d);return(0,s.jsx)(u.Z,p(p({},a),{},{beforeIcon:t,input:(0,s.jsxs)(h,p(p({multiple:c},a),{},{children:[(i||l)&&(0,s.jsx)("option",{disabled:!0,selected:!0,value:"",children:i||l}),r]})),label:i,placeholder:l,ref:n,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};n.Z=i.forwardRef(g)},46756:function(e,n,t){"use strict";t.r(n);var r=t(77837),o=t(82394),i=t(75582),c=t(38860),u=t.n(c),l=t(82684),a=t(34376),s=t(1210),d=t(67971),f=t(51099),p=t(41788),h=t(55378),g=t(86673),v=t(19711),b=t(97225),m=t(82531),j=t(93348),y=t(49125),O=t(33766),x=t(59e3),w=t(28598);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n=0?r:0});e.push("/triggers","/triggers?".concat((0,x.uM)(o)))},page:Number(t),totalPages:Math.ceil(k/f.Q)})})]})}k.getInitialProps=(0,r.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,p.Z)(k)},24224:function(e,n,t){"use strict";t.d(n,{HK:function(){return a},Hk:function(){return u},IN:function(){return O},Od:function(){return p},Qj:function(){return b},Sm:function(){return y},YC:function(){return s},fS:function(){return g},m5:function(){return j},mp:function(){return x},mr:function(){return d},oM:function(){return h},ry:function(){return f},sE:function(){return l},tS:function(){return v},w6:function(){return m}});var r=t(82394),o=t(7715);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,i=void 0===r||r,c=t.absoluteValue,u=void 0!==c&&c,l="string"===typeof n||"number"===typeof n?function(e){return u?Math.abs((0,o.t2)(e,n)):(0,o.t2)(e,n)}:function(e){return u?Math.abs(n(e)):n(e)};return e.sort((function(e,n){var t=0;return l(e)>l(n)?t=i?1:-1:l(e)1&&void 0!==arguments[1]?arguments[1]:{},t=n.ascending,r=void 0===t||t;return e.sort((function(e,n){var t=0;return e[0]>n[0]?t=r?1:-1:e[0]>1);n(e[o])?t=o:r=o}return r}function p(e,n){var t=e.findIndex(n);return h(e,t)}function h(e,n){return e.slice(0,n).concat(e.slice(n+1,e.length))}function g(e,n){return e.map((function(e){return String(e)})).join()===n.map((function(e){return String(e)})).join()}function v(e,n){return e>n}function b(e,n){return e1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(e).keys());return 0!==n&&(t=t.map((function(e){return e+n}))),t}function y(e){return e.reduce((function(e,n){return e+n}),0)}function O(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=e.reduce((function(e,n){return e+n}),0)/e.length;return Math.sqrt(e.reduce((function(e,n){return e.concat(Math.pow(n-t,2))}),[]).reduce((function(e,n){return e+n}),0)/(e.length-(n?0:1)))}function x(e){return e[Math.floor(Math.random()*e.length)]}},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return f},u7:function(){return d}});var r=t(75582),o=t(82394),i=t(34376),c=t.n(i),u=t(59e3),l=t(24224);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},o=t.replaceParams,i=t.pushHistory,l=o?{}:(0,u.iV)();n=window.location.pathname;var a=i?c().push:c().replace,d=s(s({},l),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],o=n[1];"undefined"!==typeof o&&null!==o||delete d[t]}));var f=(0,u.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(n.split("?")[0]).concat(f);return a(c().router.pathname,p,{shallow:!0})}function f(e,n,t){var o=t.addingMultipleValues,i=t.isList,c=t.itemsPerPage,u=t.resetLimitParams,a=s({},e);o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],o=n[1];if(Array.isArray(o)){var i="".concat(t,"[]");a[i]=o.map(String)}})):i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],o=n[1],i=String(o),c="".concat(t,"[]"),u=a[c];u&&Array.isArray(u)?(u=u.map(String)).includes(i)?a[c]=(0,l.Od)(u,(function(e){return e===i})):a[c]=u.concat(i):a[c]=[i]})):a=s(s({},a),n),u&&(a._limit=c||20,a._offset=0),d(a)}},59733:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/triggers",function(){return t(46756)}])}},function(e){e.O(0,[3850,9767,9386,9898,9774,2888,179],(function(){return n=59733,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/mage_ai/server/frontend_dist/images/extensions/great_expectations/logo.png b/mage_ai/server/frontend_dist/images/extensions/great_expectations/logo.png new file mode 100644 index 000000000000..e2f5f4e2ad3e Binary files /dev/null and b/mage_ai/server/frontend_dist/images/extensions/great_expectations/logo.png differ diff --git a/mage_ai/server/frontend_dist/index.html b/mage_ai/server/frontend_dist/index.html index fae1c8cbaf71..0de97f7dedf9 100644 --- a/mage_ai/server/frontend_dist/index.html +++ b/mage_ai/server/frontend_dist/index.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/manage.html b/mage_ai/server/frontend_dist/manage.html index 72461f4b3da1..aa67ff57f54c 100644 --- a/mage_ai/server/frontend_dist/manage.html +++ b/mage_ai/server/frontend_dist/manage.html @@ -1,4 +1,4 @@ -Manage | Mage
\ No newline at end of file +data-styled.g79[id="indexstyle__ContainerStyle-sc-ecogjt-0"]{content:"ijwRXz,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipeline-runs.html b/mage_ai/server/frontend_dist/pipeline-runs.html index 60a15c3b5b12..febb08414445 100644 --- a/mage_ai/server/frontend_dist/pipeline-runs.html +++ b/mage_ai/server/frontend_dist/pipeline-runs.html @@ -1,4 +1,4 @@ -Pipeline runs | Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines.html b/mage_ai/server/frontend_dist/pipelines.html index 0bc2f8923c0b..678d475d9fae 100644 --- a/mage_ai/server/frontend_dist/pipelines.html +++ b/mage_ai/server/frontend_dist/pipelines.html @@ -1,4 +1,4 @@ -Pipelines | Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline].html b/mage_ai/server/frontend_dist/pipelines/[pipeline].html index 01847ea32bfe..66064febd60a 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline].html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline].html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html index 4e5adff66cae..f98ed77923fa 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html index 1c9245f596ee..16e060493533 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html index 00ed5c1a8a23..3ef3ef2c8d38 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html index 7ad5dbfa86d9..436b6de99b53 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html index 44cef9a27cdd..219df0800332 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html index 160a0a605f44..395f708ed5a3 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html index 4eb86f6651ff..0a36924245a0 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html index 1da707d21109..e983aba4a05e 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html index 542ccd74addd..22784be29ba1 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html index c6c307007f01..a11d217934bd 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html index 2e1e8d27ff6e..5b9a3b23eebc 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html b/mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html index e21c485aa457..be915d051fe0 100644 --- a/mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +++ b/mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/settings.html b/mage_ai/server/frontend_dist/settings.html index c26962e8e009..3ac6216c04d0 100644 --- a/mage_ai/server/frontend_dist/settings.html +++ b/mage_ai/server/frontend_dist/settings.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/settings/account/profile.html b/mage_ai/server/frontend_dist/settings/account/profile.html index 9ef9f7c944e9..9a2728581aab 100644 --- a/mage_ai/server/frontend_dist/settings/account/profile.html +++ b/mage_ai/server/frontend_dist/settings/account/profile.html @@ -1,4 +1,4 @@ -Settings | Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/settings/workspace/preferences.html b/mage_ai/server/frontend_dist/settings/workspace/preferences.html index 9bf3fb17fac6..a3a313a006ea 100644 --- a/mage_ai/server/frontend_dist/settings/workspace/preferences.html +++ b/mage_ai/server/frontend_dist/settings/workspace/preferences.html @@ -1,4 +1,4 @@ -Settings | Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/settings/workspace/sync_data.html b/mage_ai/server/frontend_dist/settings/workspace/sync_data.html index 3c547ee1f65d..96c4fc4b8705 100644 --- a/mage_ai/server/frontend_dist/settings/workspace/sync_data.html +++ b/mage_ai/server/frontend_dist/settings/workspace/sync_data.html @@ -1,4 +1,4 @@ -Settings | Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/settings/workspace/users.html b/mage_ai/server/frontend_dist/settings/workspace/users.html index 90444b039d85..0117940ca9fd 100644 --- a/mage_ai/server/frontend_dist/settings/workspace/users.html +++ b/mage_ai/server/frontend_dist/settings/workspace/users.html @@ -1,4 +1,4 @@ -Settings | Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/sign-in.html b/mage_ai/server/frontend_dist/sign-in.html index f605bae282ca..ca574fed5e5a 100644 --- a/mage_ai/server/frontend_dist/sign-in.html +++ b/mage_ai/server/frontend_dist/sign-in.html @@ -1,4 +1,4 @@ -Sign in | Mage

👋 Sign in

Sign in abstract image
\ No newline at end of file +data-styled.g213[id="indexstyle__BackgroundImageStyle-sc-641xul-1"]{content:"dDoioK,"}/*!sc*/ +

👋 Sign in

Sign in abstract image
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/terminal.html b/mage_ai/server/frontend_dist/terminal.html index 50f70f7714c2..49de7df66270 100644 --- a/mage_ai/server/frontend_dist/terminal.html +++ b/mage_ai/server/frontend_dist/terminal.html @@ -1,4 +1,4 @@ -Terminal | Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/test.html b/mage_ai/server/frontend_dist/test.html index 441273996e82..7c8b0c15c292 100644 --- a/mage_ai/server/frontend_dist/test.html +++ b/mage_ai/server/frontend_dist/test.html @@ -1,4 +1,4 @@ -Mage
\ No newline at end of file +data-styled.g136[id="MultiFileInput__DropzoneStyle-sc-1l6yd2y-0"]{content:"flrenm,"}/*!sc*/ +
\ No newline at end of file diff --git a/mage_ai/server/frontend_dist/triggers.html b/mage_ai/server/frontend_dist/triggers.html index 78fc991aa291..9dbd2dc4b6fe 100644 --- a/mage_ai/server/frontend_dist/triggers.html +++ b/mage_ai/server/frontend_dist/triggers.html @@ -1,4 +1,4 @@ -Triggers | Mage
\ No newline at end of file +data-styled.g80[id="indexstyle__VerticalNavigationStyle-sc-ecogjt-1"]{content:"jUQyGa,"}/*!sc*/ +
\ No newline at end of file