From 27a7ed6489097139200328771abac0a8dcba9337 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 14 Aug 2024 18:32:31 +0000 Subject: [PATCH] CI Build Artifacts --- assets/capi/capi-0.6.0-2.8.tgz | Bin 0 -> 1229 bytes assets/index.yaml | 23 ++- charts/capi/0.6.0-2.8/Chart.yaml | 17 ++ charts/capi/0.6.0-2.8/templates/_helpers.tpl | 52 +++++ charts/capi/0.6.0-2.8/templates/cr.yaml | 12 ++ charts/capi/0.6.0-2.8/values.yaml | 6 + extensions/capi/0.6.0-2.8/files.txt | 100 ++++++++++ .../plugin/capi-0.6.0-2.8.umd.min.0.js | 2 + .../plugin/capi-0.6.0-2.8.umd.min.0.js.map | 1 + .../plugin/capi-0.6.0-2.8.umd.min.5.js | 2 + .../plugin/capi-0.6.0-2.8.umd.min.5.js.map | 1 + .../plugin/capi-0.6.0-2.8.umd.min.6.js | 2 + .../plugin/capi-0.6.0-2.8.umd.min.6.js.map | 1 + .../plugin/capi-0.6.0-2.8.umd.min.7.js | 2 + .../plugin/capi-0.6.0-2.8.umd.min.7.js.map | 1 + .../plugin/capi-0.6.0-2.8.umd.min.8.js | 2 + .../plugin/capi-0.6.0-2.8.umd.min.8.js.map | 1 + .../plugin/capi-0.6.0-2.8.umd.min.edit.js | 2 + .../plugin/capi-0.6.0-2.8.umd.min.edit.js.map | 1 + .../capi-0.6.0-2.8.umd.min.formatters.js | 2 + .../capi-0.6.0-2.8.umd.min.formatters.js.map | 1 + .../plugin/capi-0.6.0-2.8.umd.min.js | 16 ++ .../plugin/capi-0.6.0-2.8.umd.min.js.map | 1 + .../capi-0.6.0-2.8.umd.min.vendors~edit.js | 87 +++++++++ ...capi-0.6.0-2.8.umd.min.vendors~edit.js.map | 1 + .../plugin/img/aliyun-black.b576ca7f.svg | 14 ++ .../0.6.0-2.8/plugin/img/aliyun.05625b68.svg | 17 ++ .../plugin/img/aliyunecs-black.47c0410f.svg | 13 ++ .../plugin/img/aliyunecs.d971267d.svg | 21 ++ .../plugin/img/amazonec2-black.d1821012.svg | 8 + .../plugin/img/amazonec2.1aa39ab0.svg | 19 ++ .../plugin/img/amazoneks-black.a84e95fa.svg | 10 + .../plugin/img/amazoneks.08036fe5.svg | 14 ++ .../0.6.0-2.8/plugin/img/aws.259e1339.svg | 38 ++++ .../plugin/img/azure-black.5f0d4c16.svg | 29 +++ .../0.6.0-2.8/plugin/img/azure.eb8fe01e.svg | 32 +++ .../plugin/img/azuread-black.df47a4be.svg | 22 +++ .../0.6.0-2.8/plugin/img/azuread.89d0693d.svg | 25 +++ .../plugin/img/azureaks-black.c476b248.svg | 28 +++ .../plugin/img/azureaks.f30a4ee5.svg | 31 +++ .../plugin/img/baidu-black.fbfb0a3d.svg | 19 ++ .../0.6.0-2.8/plugin/img/baidu.59230de0.svg | 25 +++ .../plugin/img/cloudca-black.e617e95a.svg | 45 +++++ .../0.6.0-2.8/plugin/img/cloudca.1095d0cc.svg | 49 +++++ .../plugin/img/cloudscale-black.05c818ff.svg | 24 +++ .../plugin/img/cloudscale.15af4521.svg | 28 +++ .../0.6.0-2.8/plugin/img/custom.73e585f1.svg | 85 ++++++++ .../img/digitalocean-black.c7b0f38c.svg | 21 ++ .../plugin/img/digitalocean.acdee7f1.svg | 24 +++ .../0.6.0-2.8/plugin/img/docker.c06657b9.svg | 1 + .../plugin/img/equinix-black.74a27b4d.svg | 13 ++ .../0.6.0-2.8/plugin/img/equinix.439fbbbe.svg | 13 ++ .../plugin/img/exoscale.7a312d6d.svg | 1 + .../0.6.0-2.8/plugin/img/gcp.92c9d851.svg | 6 + .../plugin/img/generic-catalog.99bdaecf.svg | 15 ++ .../plugin/img/generic-driver.58cd1dcb.svg | 17 ++ .../plugin/img/gke-black.270042cf.svg | 10 + .../0.6.0-2.8/plugin/img/gke.deaff14c.svg | 28 +++ .../0.6.0-2.8/plugin/img/google.778e7144.svg | 29 +++ .../plugin/img/googlegke-black.270042cf.svg | 10 + .../plugin/img/googlegke.deaff14c.svg | 28 +++ .../plugin/img/harvester.b14e570b.svg | 1 + .../plugin/img/huaweicce-black.39ee46f2.svg | 109 +++++++++++ .../plugin/img/huaweicce.4fb3a929.svg | 184 ++++++++++++++++++ .../0.6.0-2.8/plugin/img/import.2e2e359c.svg | 99 ++++++++++ .../plugin/img/k3s-black.d52e5687.svg | 10 + .../0.6.0-2.8/plugin/img/k3s.01e2b406.svg | 15 ++ .../plugin/img/kubernetes-black.3e32c1a8.svg | 37 ++++ .../plugin/img/kubernetes.2e2e359c.svg | 99 ++++++++++ .../0.6.0-2.8/plugin/img/linode.72ae9a55.svg | 54 +++++ .../plugin/img/linodelke-black.058df1a0.svg | 40 ++++ .../plugin/img/linodelke.72ae9a55.svg | 54 +++++ .../plugin/img/local-cluster.c77b2023.svg | 20 ++ .../plugin/img/minikube-black.b739e7a9.svg | 25 +++ .../plugin/img/minikube.b39dc584.svg | 36 ++++ .../0.6.0-2.8/plugin/img/nutanix.87666923.svg | 1 + .../plugin/img/oci-black.f960feb5.svg | 41 ++++ .../0.6.0-2.8/plugin/img/oci.8b52fe45.svg | 44 +++++ .../plugin/img/openstack-black.46740f63.svg | 16 ++ .../plugin/img/openstack.638b1003.svg | 20 ++ .../0.6.0-2.8/plugin/img/oracle.8219cfb5.svg | 66 +++++++ .../plugin/img/oracleoke-black.aaa9e8cf.svg | 51 +++++ .../plugin/img/oracleoke.ddaa8a0e.svg | 55 ++++++ .../plugin/img/otc-black.007c6157.svg | 15 ++ .../0.6.0-2.8/plugin/img/otc.d7330474.svg | 33 ++++ .../0.6.0-2.8/plugin/img/otccce.d7330474.svg | 33 ++++ .../plugin/img/outscale.97c433a9.svg | 19 ++ .../plugin/img/ovhcloudmks.ccb13957.svg | 122 ++++++++++++ .../img/ovhcloudpubliccloud.ccb13957.svg | 122 ++++++++++++ .../plugin/img/packet-black.cdd96d23.svg | 15 ++ .../0.6.0-2.8/plugin/img/packet.5fce6e98.svg | 16 ++ .../img/pinganyunecs-black.2ff2c7d9.svg | 26 +++ .../plugin/img/pinganyunecs.e75d4c8a.svg | 26 +++ .../plugin/img/pnap-black.1b1773d7.svg | 43 ++++ .../0.6.0-2.8/plugin/img/pnap.0cb6fe69.svg | 48 +++++ .../plugin/img/rackspace-black.b5378844.svg | 14 ++ .../plugin/img/rackspace.6f98715f.svg | 18 ++ .../0.6.0-2.8/plugin/img/rke.d10540bf.svg | 26 +++ .../0.6.0-2.8/plugin/img/rke2.d10540bf.svg | 26 +++ .../plugin/img/softlayer.d474be09.svg | 27 +++ .../plugin/img/tencenttke-black.58828585.svg | 22 +++ .../plugin/img/tencenttke.0b34fe07.svg | 39 ++++ .../img/vmwarevsphere-black.2f9d3f1d.svg | 60 ++++++ .../plugin/img/vmwarevsphere.32594541.svg | 51 +++++ .../plugin/img/vsphere-black.2f9d3f1d.svg | 60 ++++++ .../0.6.0-2.8/plugin/img/vsphere.32594541.svg | 51 +++++ extensions/capi/0.6.0-2.8/plugin/package.json | 19 ++ index.yaml | 23 ++- 108 files changed, 3177 insertions(+), 2 deletions(-) create mode 100644 assets/capi/capi-0.6.0-2.8.tgz create mode 100644 charts/capi/0.6.0-2.8/Chart.yaml create mode 100644 charts/capi/0.6.0-2.8/templates/_helpers.tpl create mode 100644 charts/capi/0.6.0-2.8/templates/cr.yaml create mode 100644 charts/capi/0.6.0-2.8/values.yaml create mode 100644 extensions/capi/0.6.0-2.8/files.txt create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.0.js create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.0.js.map create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.5.js create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.5.js.map create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.6.js create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.6.js.map create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.7.js create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.7.js.map create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.8.js create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.8.js.map create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.edit.js create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.edit.js.map create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.formatters.js create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.formatters.js.map create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.js create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.js.map create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.vendors~edit.js create mode 100644 extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.vendors~edit.js.map create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/aliyun-black.b576ca7f.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/aliyun.05625b68.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/aliyunecs-black.47c0410f.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/aliyunecs.d971267d.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/amazonec2-black.d1821012.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/amazonec2.1aa39ab0.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/amazoneks-black.a84e95fa.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/amazoneks.08036fe5.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/aws.259e1339.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/azure-black.5f0d4c16.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/azure.eb8fe01e.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/azuread-black.df47a4be.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/azuread.89d0693d.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/azureaks-black.c476b248.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/azureaks.f30a4ee5.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/baidu-black.fbfb0a3d.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/baidu.59230de0.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/cloudca-black.e617e95a.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/cloudca.1095d0cc.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/cloudscale-black.05c818ff.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/cloudscale.15af4521.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/custom.73e585f1.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/digitalocean-black.c7b0f38c.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/digitalocean.acdee7f1.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/docker.c06657b9.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/equinix-black.74a27b4d.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/equinix.439fbbbe.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/exoscale.7a312d6d.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/gcp.92c9d851.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/generic-catalog.99bdaecf.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/generic-driver.58cd1dcb.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/gke-black.270042cf.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/gke.deaff14c.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/google.778e7144.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/googlegke-black.270042cf.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/googlegke.deaff14c.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/harvester.b14e570b.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/huaweicce-black.39ee46f2.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/huaweicce.4fb3a929.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/import.2e2e359c.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/k3s-black.d52e5687.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/k3s.01e2b406.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/kubernetes-black.3e32c1a8.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/kubernetes.2e2e359c.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/linode.72ae9a55.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/linodelke-black.058df1a0.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/linodelke.72ae9a55.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/local-cluster.c77b2023.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/minikube-black.b739e7a9.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/minikube.b39dc584.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/nutanix.87666923.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/oci-black.f960feb5.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/oci.8b52fe45.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/openstack-black.46740f63.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/openstack.638b1003.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/oracle.8219cfb5.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/oracleoke-black.aaa9e8cf.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/oracleoke.ddaa8a0e.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/otc-black.007c6157.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/otc.d7330474.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/otccce.d7330474.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/outscale.97c433a9.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/ovhcloudmks.ccb13957.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/ovhcloudpubliccloud.ccb13957.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/packet-black.cdd96d23.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/packet.5fce6e98.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/pinganyunecs-black.2ff2c7d9.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/pinganyunecs.e75d4c8a.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/pnap-black.1b1773d7.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/pnap.0cb6fe69.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/rackspace-black.b5378844.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/rackspace.6f98715f.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/rke.d10540bf.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/rke2.d10540bf.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/softlayer.d474be09.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/tencenttke-black.58828585.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/tencenttke.0b34fe07.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/vmwarevsphere-black.2f9d3f1d.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/vmwarevsphere.32594541.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/vsphere-black.2f9d3f1d.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/img/vsphere.32594541.svg create mode 100644 extensions/capi/0.6.0-2.8/plugin/package.json diff --git a/assets/capi/capi-0.6.0-2.8.tgz b/assets/capi/capi-0.6.0-2.8.tgz new file mode 100644 index 0000000000000000000000000000000000000000..767a1e2e9a278ff0b279639ba2af684b768f58cd GIT binary patch literal 1229 zcmV;;1Ty;{iwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PI*_Z`(Ey&$B+oL0Hj0n`p^#(oR?h6xkkv4Q;WY-D5#hCz~im zu_WchaQfW`lCo?oYU6fGx?#Q-)70_!yCd&M9vM}9bT+5jk|nLg(OpQIrs?Tq;(yaL z?f+(3Ha^NGrzcOdr;~I%K1#E3mZe9K-U*tXG{#bWl>Y6x`p*4Fgi2XkYI!Y99sw|F zsi4;EwcjC=yLVYR{>Dk|v=U3><$ z8lJGaQnf^Ba|k|}h${YeJ?|yR*Wv#PRL7KN2`{1Dlt14fk+ocX;HEpA%>);swiUn8FX7gRK8?(6`#h5yrRa?W>0%(a~M;k!aXOzt`hms0|2Wt5D ziqC(Gl@ipV8NHjMP^b;D>Yt;6Tk`)n9cR7#pPZzVL;l}~tX88Z(XUsE$^z^h!KFUb zrEfD|7DP`*A3sK`RRRT;Tq4AHWl_4UPYmh>YT^dPkZjawBP@_mR=ji;$=h(mY%>d7 zI}(u$PLF+)R~JoL@+*jw7+PB>3)hT1%rlMDBG7II$5l)C&`{xTsP2a19U#%47;Jle z>t=Ay7?>iXjX^MVh45Q5MJ>^y32v7hMPYzy1i>qAu>f0xopS?^rb{1^UtV4~T`p%} z6tc%8Ixj(^Kx*39v07Tnr3ujsecZw&7XqdTjd3^)P!GOEdwYb}th|XbFT0@jDSI8f zPk!Gg@WOOi z=I-{}T344e?E&c4)UR#3QG%ABQxyBGuUFqJZr`cxc!zd-y@zYis03vQ@%J&r@8U1d zs=BIb8K9aypa#W&b&jGUW)9 z?i*E#yzg?^6-ixrvRVxcxrPr-ZLt@Pn^r<4RwUD9FtpxU7pNDU^~Z;3UbNu%k7wWA zWDrZJ#y%Ujzz<~D7cPyZlHsl=+gaGU@vRS}gWRk1?te_*K^1u0``^v`-|^(+@cwr% zvi)#$^Ra1>Men&Ra(Hw8+LwS)g_ai7QdbM^!AYBYi|3^~6Or!@T7f)ou`Rmu z;Tj~D1xgDOH{RXM9KKD}`gK^l>edf@WUyMGhDW_y(AL4Sz6*tkNv}43{FuDbe8wde zYx^h*RdZ=`m|Lq%J{oCyNoL&6n`vWEyW0~=OITg4-xEhJW0Qs_9sbd5o+vs)GwQmG r*BWge=X?m(MY#+7F4FeXf&UM3kb@lLe= 1.16.0-0 < 1.29.0-0' + catalog.cattle.io/namespace: cattle-ui-plugin-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux, windows + catalog.cattle.io/rancher-version: '>= v2.8.0' + catalog.cattle.io/scope: management + catalog.cattle.io/ui-component: plugins + apiVersion: v2 + appVersion: 0.6.0-2.8 + created: "2024-08-14T18:31:46.364180446Z" + description: UI for CAPI cluster provisioning + digest: 1dc78d078bc7984e999bb5e82fe0f1011c966aacffa35b1a830dfc145e3a35af + name: capi + type: application + urls: + - assets/capi/capi-0.6.0-2.8.tgz + version: 0.6.0-2.8 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/display-name: CAPI UI @@ -185,4 +206,4 @@ entries: urls: - assets/capi/capi-0.1.0.tgz version: 0.1.0 -generated: "2024-08-07T22:24:35.998578768Z" +generated: "2024-08-14T18:31:46.363598441Z" diff --git a/charts/capi/0.6.0-2.8/Chart.yaml b/charts/capi/0.6.0-2.8/Chart.yaml new file mode 100644 index 0000000..6e1612a --- /dev/null +++ b/charts/capi/0.6.0-2.8/Chart.yaml @@ -0,0 +1,17 @@ +annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.29.0-0' + catalog.cattle.io/namespace: cattle-ui-plugin-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux, windows + catalog.cattle.io/rancher-version: '>= v2.8.0' + catalog.cattle.io/scope: management + catalog.cattle.io/ui-component: plugins + catalog.cattle.io/display-name: CAPI UI + catalog.cattle.io/experimental: 'true' +apiVersion: v2 +appVersion: 0.6.0-2.8 +description: UI for CAPI cluster provisioning +name: capi +type: application +version: 0.6.0-2.8 diff --git a/charts/capi/0.6.0-2.8/templates/_helpers.tpl b/charts/capi/0.6.0-2.8/templates/_helpers.tpl new file mode 100644 index 0000000..bd2ec19 --- /dev/null +++ b/charts/capi/0.6.0-2.8/templates/_helpers.tpl @@ -0,0 +1,52 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "extension-server.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "extension-server.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "extension-server.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "extension-server.labels" -}} +helm.sh/chart: {{ include "extension-server.chart" . }} +{{ include "extension-server.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "extension-server.selectorLabels" -}} +app.kubernetes.io/name: {{ include "extension-server.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} diff --git a/charts/capi/0.6.0-2.8/templates/cr.yaml b/charts/capi/0.6.0-2.8/templates/cr.yaml new file mode 100644 index 0000000..f4f9339 --- /dev/null +++ b/charts/capi/0.6.0-2.8/templates/cr.yaml @@ -0,0 +1,12 @@ +apiVersion: catalog.cattle.io/v1 +kind: UIPlugin +metadata: + name: {{ include "extension-server.fullname" . }} + namespace: {{ .Release.Namespace }} + labels: {{ include "extension-server.labels" . | nindent 4 }} +spec: + plugin: + name: {{ include "extension-server.fullname" . }} + version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }} + endpoint: https://raw.githubusercontent.com/rancher/capi-ui-extension/gh-pages/extensions/capi/0.6.0-2.8 + noCache: {{ .Values.plugin.noCache }} diff --git a/charts/capi/0.6.0-2.8/values.yaml b/charts/capi/0.6.0-2.8/values.yaml new file mode 100644 index 0000000..9cc1bd5 --- /dev/null +++ b/charts/capi/0.6.0-2.8/values.yaml @@ -0,0 +1,6 @@ +nameOverride: "" +fullnameOverride: "" +plugin: + enabled: true + versionOverride: "" + noCache: false diff --git a/extensions/capi/0.6.0-2.8/files.txt b/extensions/capi/0.6.0-2.8/files.txt new file mode 100644 index 0000000..b00e5fd --- /dev/null +++ b/extensions/capi/0.6.0-2.8/files.txt @@ -0,0 +1,100 @@ +plugin/capi-0.6.0-2.8.umd.min.0.js +plugin/capi-0.6.0-2.8.umd.min.0.js.map +plugin/capi-0.6.0-2.8.umd.min.5.js +plugin/capi-0.6.0-2.8.umd.min.5.js.map +plugin/capi-0.6.0-2.8.umd.min.6.js +plugin/capi-0.6.0-2.8.umd.min.6.js.map +plugin/capi-0.6.0-2.8.umd.min.7.js +plugin/capi-0.6.0-2.8.umd.min.7.js.map +plugin/capi-0.6.0-2.8.umd.min.8.js +plugin/capi-0.6.0-2.8.umd.min.8.js.map +plugin/capi-0.6.0-2.8.umd.min.edit.js +plugin/capi-0.6.0-2.8.umd.min.edit.js.map +plugin/capi-0.6.0-2.8.umd.min.formatters.js +plugin/capi-0.6.0-2.8.umd.min.formatters.js.map +plugin/capi-0.6.0-2.8.umd.min.js +plugin/capi-0.6.0-2.8.umd.min.js.map +plugin/capi-0.6.0-2.8.umd.min.vendors~edit.js +plugin/capi-0.6.0-2.8.umd.min.vendors~edit.js.map +plugin/img/aliyun-black.b576ca7f.svg +plugin/img/aliyun.05625b68.svg +plugin/img/aliyunecs-black.47c0410f.svg +plugin/img/aliyunecs.d971267d.svg +plugin/img/amazonec2-black.d1821012.svg +plugin/img/amazonec2.1aa39ab0.svg +plugin/img/amazoneks-black.a84e95fa.svg +plugin/img/amazoneks.08036fe5.svg +plugin/img/aws.259e1339.svg +plugin/img/azure-black.5f0d4c16.svg +plugin/img/azure.eb8fe01e.svg +plugin/img/azuread-black.df47a4be.svg +plugin/img/azuread.89d0693d.svg +plugin/img/azureaks-black.c476b248.svg +plugin/img/azureaks.f30a4ee5.svg +plugin/img/baidu-black.fbfb0a3d.svg +plugin/img/baidu.59230de0.svg +plugin/img/cloudca-black.e617e95a.svg +plugin/img/cloudca.1095d0cc.svg +plugin/img/cloudscale-black.05c818ff.svg +plugin/img/cloudscale.15af4521.svg +plugin/img/custom.73e585f1.svg +plugin/img/digitalocean-black.c7b0f38c.svg +plugin/img/digitalocean.acdee7f1.svg +plugin/img/docker.c06657b9.svg +plugin/img/equinix-black.74a27b4d.svg +plugin/img/equinix.439fbbbe.svg +plugin/img/exoscale.7a312d6d.svg +plugin/img/gcp.92c9d851.svg +plugin/img/generic-catalog.99bdaecf.svg +plugin/img/generic-driver.58cd1dcb.svg +plugin/img/gke-black.270042cf.svg +plugin/img/gke.deaff14c.svg +plugin/img/google.778e7144.svg +plugin/img/googlegke-black.270042cf.svg +plugin/img/googlegke.deaff14c.svg +plugin/img/harvester.b14e570b.svg +plugin/img/huaweicce-black.39ee46f2.svg +plugin/img/huaweicce.4fb3a929.svg +plugin/img/import.2e2e359c.svg +plugin/img/k3s-black.d52e5687.svg +plugin/img/k3s.01e2b406.svg +plugin/img/kubernetes-black.3e32c1a8.svg +plugin/img/kubernetes.2e2e359c.svg +plugin/img/linode.72ae9a55.svg +plugin/img/linodelke-black.058df1a0.svg +plugin/img/linodelke.72ae9a55.svg +plugin/img/local-cluster.c77b2023.svg +plugin/img/minikube-black.b739e7a9.svg +plugin/img/minikube.b39dc584.svg +plugin/img/nutanix.87666923.svg +plugin/img/oci-black.f960feb5.svg +plugin/img/oci.8b52fe45.svg +plugin/img/openstack-black.46740f63.svg +plugin/img/openstack.638b1003.svg +plugin/img/oracle.8219cfb5.svg +plugin/img/oracleoke-black.aaa9e8cf.svg +plugin/img/oracleoke.ddaa8a0e.svg +plugin/img/otc-black.007c6157.svg +plugin/img/otc.d7330474.svg +plugin/img/otccce.d7330474.svg +plugin/img/outscale.97c433a9.svg +plugin/img/ovhcloudmks.ccb13957.svg +plugin/img/ovhcloudpubliccloud.ccb13957.svg +plugin/img/packet-black.cdd96d23.svg +plugin/img/packet.5fce6e98.svg +plugin/img/pinganyunecs-black.2ff2c7d9.svg +plugin/img/pinganyunecs.e75d4c8a.svg +plugin/img/pnap-black.1b1773d7.svg +plugin/img/pnap.0cb6fe69.svg +plugin/img/rackspace-black.b5378844.svg +plugin/img/rackspace.6f98715f.svg +plugin/img/rke.d10540bf.svg +plugin/img/rke2.d10540bf.svg +plugin/img/softlayer.d474be09.svg +plugin/img/tencenttke-black.58828585.svg +plugin/img/tencenttke.0b34fe07.svg +plugin/img/vmwarevsphere-black.2f9d3f1d.svg +plugin/img/vmwarevsphere.32594541.svg +plugin/img/vsphere-black.2f9d3f1d.svg +plugin/img/vsphere.32594541.svg +plugin/package.json diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.0.js b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.0.js new file mode 100644 index 0000000..8136066 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.0.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]||[]).push([[0],{"46c7":function(e,n,a){"use strict";a.r(n);var t=function(){var e=this,n=e._self._c;e._self._setupProxy;return n("Banner",{attrs:{color:"warning","label-key":"capi.experimental"}})},l=[],s=a("8bbf"),r=a.n(s),i=a("eb32"),p=r.a.extend({name:"ExperimentalWarningBanner",components:{Banner:i["a"]}}),f=p,_=a("d802"),c=Object(_["a"])(f,t,l,!1,null,null,null);n["default"]=c.exports}}]); +//# sourceMappingURL=capi-0.6.0-2.8.umd.min.0.js.map \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.0.js.map b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.0.js.map new file mode 100644 index 0000000..250d80d --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.0.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://capi-0.6.0-2.8/./components/ExperimentalBanner.vue","webpack://capi-0.6.0-2.8/./components/ExperimentalBanner.vue?93cd","webpack://capi-0.6.0-2.8/./components/ExperimentalBanner.vue?cf6f","webpack://capi-0.6.0-2.8/./components/ExperimentalBanner.vue?f39c"],"names":["render","_vm","this","_c","_self","_setupProxy","attrs","staticRenderFns","Vue","extend","name","components","Banner","component"],"mappings":"oMAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,SAAS,CAACG,MAAM,CAAC,MAAQ,UAAU,YAAY,wBAE9IC,EAAkB,G,iCCEPC,MAAIC,OAAO,CACxBC,KAAM,4BAENC,WAAY,CAAEC,iBCP4a,I,YCOxbC,EAAY,eACd,EACAb,EACAO,GACA,EACA,KACA,KACA,MAIa,aAAAM,E","file":"capi-0.6.0-2.8.umd.min.0.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Banner',{attrs:{\"color\":\"warning\",\"label-key\":\"capi.experimental\"}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport Vue from 'vue';\nimport Banner from '@components/Banner/Banner.vue';\n\nexport default Vue.extend({\n name: 'ExperimentalWarningBanner',\n\n components: { Banner },\n\n});\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ExperimentalBanner.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ExperimentalBanner.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./ExperimentalBanner.vue?vue&type=template&id=7db387dc\"\nimport script from \"./ExperimentalBanner.vue?vue&type=script&lang=ts\"\nexport * from \"./ExperimentalBanner.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.5.js b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.5.js new file mode 100644 index 0000000..c7cf84c --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.5.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]||[]).push([[5],{"64c9":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("Checkbox",{attrs:{value:e.capiLabel,"label-key":"capi.autoImport.checkbox.label"},on:{input:e.toggleCapiLabel}},[t("br"),e._v(" "+e._s({...e.resource})+" ")])],1)},s=[],r=a("8bbf"),o=a.n(r),u=a("1032"),i=a("7e89"),n=o.a.extend({name:"CAPIAutoImportConfiguration",components:{Checkbox:u["a"]},props:{resource:{type:Object,required:!0},mode:{type:String,default:"create"}},methods:{toggleCapiLabel(e){e?this.$set(this.resource.metadata.labels,i["d"].AUTO_IMPORT,"true"):delete this.resource.metadata.labels[i["d"].AUTO_IMPORT]}},computed:{capiLabel(){var e;return"true"===(null===(e=this.resource)||void 0===e||null===(e=e.metadata.labels)||void 0===e?void 0:e[i["d"].AUTO_IMPORT])},labels(){return this.resource.labels}}}),c=n,p=a("d802"),d=Object(p["a"])(c,l,s,!1,null,null,null);t["default"]=d.exports}}]); +//# sourceMappingURL=capi-0.6.0-2.8.umd.min.5.js.map \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.5.js.map b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.5.js.map new file mode 100644 index 0000000..6a21a19 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.5.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://capi-0.6.0-2.8/./components/AutoImport.vue","webpack://capi-0.6.0-2.8/components/AutoImport.vue","webpack://capi-0.6.0-2.8/./components/AutoImport.vue?c9d5","webpack://capi-0.6.0-2.8/./components/AutoImport.vue?320f"],"names":["render","_vm","this","_c","_self","_setupProxy","attrs","capiLabel","on","toggleCapiLabel","_v","_s","resource","staticRenderFns","Vue","extend","name","components","Checkbox","props","type","Object","required","mode","String","default","methods","e","$set","metadata","labels","LABELS","AUTO_IMPORT","computed","_this$resource","component"],"mappings":"oMAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACA,EAAG,WAAW,CAACG,MAAM,CAAC,MAAQL,EAAIM,UAAU,YAAY,kCAAkCC,GAAG,CAAC,MAAQP,EAAIQ,kBAAkB,CAACN,EAAG,MAAMF,EAAIS,GAAG,IAAIT,EAAIU,GAAG,IAAIV,EAAIW,WAAW,QAAQ,IAEzRC,EAAkB,G,6CCGtBC,MAAAC,OAAA,CACAC,KAAA,8BAEAC,WAAA,CAAAC,iBAEAC,MAAA,CAEAP,SAAA,CACAQ,KAAAC,OACAC,UAAA,GAGAC,KAAA,CACAH,KAAAI,OACAC,QAAA,WAIAC,QAAA,CACAjB,gBAAAkB,GACAA,EACA,KAAAC,KAAA,KAAAhB,SAAAiB,SAAAC,OAAAC,OAAAC,YAAA,eAEA,KAAApB,SAAAiB,SAAAC,OAAAC,OAAAC,eAKAC,SAAA,CACA1B,YAAA,IAAA2B,EACA,wBAAAA,EAAA,KAAAtB,gBAAA,IAAAsB,GAAA,QAAAA,IAAAL,SAAAC,cAAA,IAAAI,OAAA,EAAAA,EAAAH,OAAAC,eAEAF,SACA,YAAAlB,SAAAkB,WCtCgY,I,YCO5XK,EAAY,eACd,EACAnC,EACAa,GACA,EACA,KACA,KACA,MAIa,aAAAsB,E","file":"capi-0.6.0-2.8.umd.min.5.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('Checkbox',{attrs:{\"value\":_vm.capiLabel,\"label-key\":\"capi.autoImport.checkbox.label\"},on:{\"input\":_vm.toggleCapiLabel}},[_c('br'),_vm._v(\" \"+_vm._s({..._vm.resource})+\" \")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./AutoImport.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./AutoImport.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./AutoImport.vue?vue&type=template&id=ea5d47f6\"\nimport script from \"./AutoImport.vue?vue&type=script&lang=js\"\nexport * from \"./AutoImport.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.6.js b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.6.js new file mode 100644 index 0000000..6446e9a --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.6.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]||[]).push([[6],{deec:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return e.showWarning?t("Banner",{attrs:{color:"warning","label-key":"capi.warnings.embeddedFeatureFlag"}}):e._e()},n=[],r=a("907c"),l=a("eb32"),i=a("7e89"),c={name:"ClusterListCAPIWarning",components:{Banner:l["a"]},async fetch(){this.$store.getters["management/schemaFor"](r["l"].FEATURE)&&await this.$store.dispatch("management/findAll",{type:r["l"].FEATURE})},computed:{capiFeatureDisabled(){var e;const t=this.$store.getters["management/byId"](r["l"].FEATURE,"embedded-cluster-api");return t&&!(null!==t&&void 0!==t&&null!==(e=t.spec)&&void 0!==e&&e.value)},hasClusterClassSchema(){return!!this.$store.getters["management/schemaFor"](i["b"].CLUSTER_CLASS)},showWarning(){return this.capiFeatureDisabled&&!this.hasClusterClassSchema}}},u=c,o=a("d802"),d=Object(o["a"])(u,s,n,!1,null,null,null);t["default"]=d.exports}}]); +//# sourceMappingURL=capi-0.6.0-2.8.umd.min.6.js.map \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.6.js.map b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.6.js.map new file mode 100644 index 0000000..8618910 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.6.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://capi-0.6.0-2.8/./components/ClusterListBanner.vue","webpack://capi-0.6.0-2.8/components/ClusterListBanner.vue","webpack://capi-0.6.0-2.8/./components/ClusterListBanner.vue?4b98","webpack://capi-0.6.0-2.8/./components/ClusterListBanner.vue?cd38"],"names":["render","_vm","this","_c","_self","showWarning","attrs","_e","staticRenderFns","name","components","Banner","$store","getters","MANAGEMENT","FEATURE","dispatch","type","computed","capiFeatureDisabled","_capiFeature$spec","capiFeature","spec","value","hasClusterClassSchema","CAPI","CLUSTER_CLASS","component"],"mappings":"kMAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAQF,EAAII,YAAaF,EAAG,SAAS,CAACG,MAAM,CAAC,MAAQ,UAAU,YAAY,uCAAuCL,EAAIM,MAE9KC,EAAkB,G,oCCGP,GACfC,KAAA,yBAEAC,WAAA,CAAAC,eAEA,cACA,KAAAC,OAAAC,QAAA,wBAAAC,OAAAC,gBACA,KAAAH,OAAAI,SAAA,sBAAAC,KAAAH,OAAAC,WAIAG,SAAA,CACAC,sBAAA,IAAAC,EACA,MAAAC,EAAA,KAAAT,OAAAC,QAAA,mBAAAC,OAAAC,QAAA,wBAEA,OAAAM,KAAA,OAAAA,QAAA,IAAAA,GAAA,QAAAD,EAAAC,EAAAC,YAAA,IAAAF,KAAAG,QAGAC,wBACA,aAAAZ,OAAAC,QAAA,wBAAAY,OAAAC,gBAEArB,cACA,YAAAc,sBAAA,KAAAK,yBC3BuY,I,YCOnYG,EAAY,eACd,EACA3B,EACAQ,GACA,EACA,KACA,KACA,MAIa,aAAAmB,E","file":"capi-0.6.0-2.8.umd.min.6.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.showWarning)?_c('Banner',{attrs:{\"color\":\"warning\",\"label-key\":\"capi.warnings.embeddedFeatureFlag\"}}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterListBanner.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterListBanner.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ClusterListBanner.vue?vue&type=template&id=76eac155\"\nimport script from \"./ClusterListBanner.vue?vue&type=script&lang=js\"\nexport * from \"./ClusterListBanner.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.7.js b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.7.js new file mode 100644 index 0000000..cf9b153 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.7.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]||[]).push([[7],{"7ada":function(e,t,n){(function(n){var o,a,i;(function(n,r){a=[],o=r,i="function"===typeof o?o.apply(t,a):o,void 0===i||(e.exports=i)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function o(e,t,n){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){c(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function a(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(o){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,c=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,n){var c=r.URL||r.webkitURL,s=document.createElement("a");t=t||e.name||"download",s.download=t,s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?i(s):a(s.href)?o(e,t,n):i(s,s.target="_blank")):(s.href=c.createObjectURL(e),setTimeout((function(){c.revokeObjectURL(s.href)}),4e4),setTimeout((function(){i(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,r){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,r),n);else if(a(e))o(e,n,r);else{var c=document.createElement("a");c.href=e,c.target="_blank",setTimeout((function(){i(c)}))}}:function(e,t,n,a){if(a=a||open("","_blank"),a&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return o(e,t,n);var i="application/octet-stream"===e.type,c=/constructor/i.test(r.HTMLElement)||r.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&c)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},l.readAsDataURL(e)}else{var f=r.URL||r.webkitURL,u=f.createObjectURL(e);a?a.location=u:location.href=u,a=null,setTimeout((function(){f.revokeObjectURL(u)}),4e4)}});r.saveAs=c.saveAs=c,e.exports=c}))}).call(this,n("7d15"))}}]); +//# sourceMappingURL=capi-0.6.0-2.8.umd.min.7.js.map \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.7.js.map b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.7.js.map new file mode 100644 index 0000000..8f9fea7 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.7.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://capi-0.6.0-2.8//home/runner/work/capi-ui-extension/capi-ui-extension/node_modules/file-saver/dist/FileSaver.min.js"],"names":["this","b","a","autoBom","console","warn","test","type","Blob","c","d","e","XMLHttpRequest","open","responseType","onload","response","onerror","error","send","status","dispatchEvent","MouseEvent","document","createEvent","initMouseEvent","window","f","self","global","saveAs","HTMLAnchorElement","prototype","g","h","i","URL","webkitURL","j","createElement","name","download","rel","href","origin","location","target","createObjectURL","setTimeout","revokeObjectURL","navigator","msSaveOrOpenBlob","title","body","innerText","HTMLElement","safari","userAgent","FileReader","onloadend","result","replace","readAsDataURL","k","l","module","exports"],"mappings":"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","file":"capi-0.6.0-2.8.umd.min.7.js","sourcesContent":["(function(a,b){if(\"function\"==typeof define&&define.amd)define([],b);else if(\"undefined\"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){\"use strict\";function b(a,b){return\"undefined\"==typeof b?b={autoBom:!1}:\"object\"!=typeof b&&(console.warn(\"Deprecated: Expected third argument to be a object\"),b={autoBom:!b}),b.autoBom&&/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(a.type)?new Blob([\"\\uFEFF\",a],{type:a.type}):a}function c(b,c,d){var e=new XMLHttpRequest;e.open(\"GET\",b),e.responseType=\"blob\",e.onload=function(){a(e.response,c,d)},e.onerror=function(){console.error(\"could not download file\")},e.send()}function d(a){var b=new XMLHttpRequest;b.open(\"HEAD\",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent(\"click\"))}catch(c){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"click\",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f=\"object\"==typeof window&&window.window===window?window:\"object\"==typeof self&&self.self===self?self:\"object\"==typeof global&&global.global===global?global:void 0,a=f.saveAs||(\"object\"!=typeof window||window!==f?function(){}:\"download\"in HTMLAnchorElement.prototype?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement(\"a\");g=g||b.name||\"download\",j.download=g,j.rel=\"noopener\",\"string\"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target=\"_blank\")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:\"msSaveOrOpenBlob\"in navigator?function(f,g,h){if(g=g||f.name||\"download\",\"string\"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement(\"a\");i.href=f,i.target=\"_blank\",setTimeout(function(){e(i)})}}:function(a,b,d,e){if(e=e||open(\"\",\"_blank\"),e&&(e.document.title=e.document.body.innerText=\"downloading...\"),\"string\"==typeof a)return c(a,b,d);var g=\"application/octet-stream\"===a.type,h=/constructor/i.test(f.HTMLElement)||f.safari,i=/CriOS\\/[\\d]+/.test(navigator.userAgent);if((i||g&&h)&&\"object\"==typeof FileReader){var j=new FileReader;j.onloadend=function(){var a=j.result;a=i?a:a.replace(/^data:[^;]*;/,\"data:attachment/file;\"),e?e.location.href=a:location=a,e=null},j.readAsDataURL(a)}else{var k=f.URL||f.webkitURL,l=k.createObjectURL(a);e?e.location=l:location.href=l,e=null,setTimeout(function(){k.revokeObjectURL(l)},4E4)}});f.saveAs=a.saveAs=a,\"undefined\"!=typeof module&&(module.exports=a)});\n\n//# sourceMappingURL=FileSaver.min.js.map"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.8.js b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.8.js new file mode 100644 index 0000000..74714d6 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.8.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]||[]).push([[8],{"1bb6":function(e,t){const r=[{action:{createCluster:"Create Cluster"},capi:{installation:{title:"Rancher Turtles",description:"The Rancher Turtles operator allows users to import CAPI-provisioned clusters into Rancher.",disableFeatureFlag:'The embedded-cluster-api feature flag must be disabled before installing the CAPI Turtles extension. Follow instructions in the documentation here to do so.',turtlesNeeded:'Either the user doesn\'t have permission to run the Turtles extension or the Turtles operator isn\'t installed. To learn how to install the Rancher Turtles extension, read the documentation.'},autoImport:{label:"CAPI Auto-Import",checkbox:{label:"Automatically import CAPI clusters created in this namespace"},enableAction:"Enable CAPI Auto-Import",disableAction:"Disable CAPI Auto-Import"},warnings:{embeddedFeatureFlag:"It looks like the Rancher-managed cluster API feature is disabled. To provision and manage RKE2 clusters you must either enable the embedded-cluster-api feature flag or install the Rancher Turtles extension."},cluster:{steps:{clusterClass:{title:"Cluster Class",label:"Cluster Class",subtext:null,description:""},configuration:{title:"Configuration",label:"Configuration",subtext:null,description:""},variables:{title:"Variables",label:"Variables",subtext:null,description:""}},secret:{reuse:"Use existing credential",create:"Create new credential"},controlPlane:{title:"Control Plane Options",provisioner:"Type"},providerConfig:{title:"Infrastructure"},clusterClass:{title:"Cluster Class",label:"Cluster Class",description:"Cluster Class Description"},variables:{title:"Variables"},version:{title:"Kubernetes Version"},networking:{title:"Networking",apiServerPort:"API Server Port",serviceDomain:"Service Domain",pods:"Pod CIDR Blocks",services:"Service VIP CIDR Blocks"},controlPlaneEndpoint:{title:"Control Plane Endpoint",host:"Host",port:"Port"},workers:{title:"Workers",class:"Class",name:"Name",machineDeployments:{title:"Machine Deployments"},machinePools:{title:"Machine Pools"}}},clusterClassCard:{title:"Cluster Class Name: {name}",controlPlaneName:"Control Plane Name",controlPlaneKind:"Control Plane Kind",controlPlaneNamespace:"Control Plane Namespace",machineDeploymentsCount:"{count, plural,\n one {{count} Machine Deployment }\n other {{count} Machine Deployments }\n}",machinePoolsCount:"{count, plural,\n one {{count} Machine Pool }\n other {{count} Machine Pools }\n}"},experimental:"The Rancher CAPI UI extension is experimental and is not currently supported.",provider:{title:"Provider",label:"Provider",placeholder:"eg. custom-provider",banner:"Editing configuration will affect all clusters that are using this provider and may cause errors.",name:{label:"Name",placeholder:"Provider name"},description:{label:"Description",placeholder:"Any text you want that better describes this provider"},type:{label:"Provider type",infrastructure:{label:"Infrastructure"},bootstrap:{label:"Bootstrap"},controlPlane:{label:"Control Plane"},addon:{label:"Add-On"}},version:{label:"Version",placeholder:"eg. v1.0.0"},fetchConfigURL:{label:"URL",placeholder:"https://github.com/example/releases/latest/client.yaml"},cloudCredential:{title:"Cloud Credential"},features:{title:"Features",clusterResourceSet:"Enable cluster resource set",clusterTopology:"Enable cluster topology",machinePool:"Enable machine pool"},variables:{title:"Variables",add:"Add"},secret:{title:"Secret Configuration",create:"Create new secret",reuse:"Use core provider secret",data:"Data",label:"Secret Name"}}},nav:{group:{CAPITurtles:"CAPI"}},typeLabel:{"cluster.x-k8s.io.cluster":"{count, plural,\n one { Cluster }\n other { Clusters }\n}","turtles-capi.cattle.io.capiprovider":"{count, plural,\n one { Provider }\n other { Providers }\n}","cluster.x-k8s.io.machineset":"{count, plural,\n one { Machine Set}\n other { Machine Sets }\n}","cluster.x-k8s.io.machinedeployment":"{count, plural,\n one { Machine Deployment}\n other { Machine Deployments }\n}","cluster.x-k8s.io.clusterclass":"{count, plural,\n one { Cluster Class}\n other { Cluster Classes}\n}"},validation:{exclusiveMaxValue:'"{key}" must be less than {maximum}.',exclusiveMinValue:'"{key}" must be greater than {minimum}.',maxItems:'{maxItems, plural,\n one {"{key}" may contain no more than {maxItems} item.}\n other {"{key}" may contain no more than {maxItems} items.}\n}',minItems:'{minItems, plural,\n one {"{key}" must contain at least {minItems} item.}\n other {"{key}" must contain at least {minItems} items.}\n}',pattern:'"{key}" must match the pattern {pattern}.',stringFormat:'"{key}" must be a valid {format}.',uniqueItems:'"{key}" may not contain duplicate elements.',version:"Version format should be in the semver format prefixed with 'v'. Example: v1.9.3",name:"Name is required and must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character.",port:"Port value must be a number.",url:'"Value" must be a valid URL.'},error:{clusterClassNotFound:"Could not find corresponding cluster class. Please check that cluster class exists and is valid."}}];e.exports=r.length<=1?r[0]:r}}]); +//# sourceMappingURL=capi-0.6.0-2.8.umd.min.8.js.map \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.8.js.map b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.8.js.map new file mode 100644 index 0000000..3de387d --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.8.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://capi-0.6.0-2.8/./l10n/en-us.yaml"],"names":["doc","module","exports","length"],"mappings":"8KAAA,MAAMA,EAAM,CAAC,CAAE,OAAS,CAAE,cAAgB,kBAAoB,KAAO,CAAE,aAAe,CAAE,MAAQ,kBAAmB,YAAc,8FAA+F,mBAAqB,kZAA2Z,cAAgB,gZAAwZ,WAAa,CAAE,MAAQ,mBAAoB,SAAW,CAAE,MAAQ,gEAAkE,aAAe,0BAA2B,cAAgB,4BAA8B,SAAW,CAAE,oBAAsB,mNAAqN,QAAU,CAAE,MAAQ,CAAE,aAAe,CAAE,MAAQ,gBAAiB,MAAQ,gBAAiB,QAAU,KAAM,YAAc,IAAM,cAAgB,CAAE,MAAQ,gBAAiB,MAAQ,gBAAiB,QAAU,KAAM,YAAc,IAAM,UAAY,CAAE,MAAQ,YAAa,MAAQ,YAAa,QAAU,KAAM,YAAc,KAAQ,OAAS,CAAE,MAAQ,0BAA2B,OAAS,yBAA2B,aAAe,CAAE,MAAQ,wBAAyB,YAAc,QAAU,eAAiB,CAAE,MAAQ,kBAAoB,aAAe,CAAE,MAAQ,gBAAiB,MAAQ,gBAAiB,YAAc,6BAA+B,UAAY,CAAE,MAAQ,aAAe,QAAU,CAAE,MAAQ,sBAAwB,WAAa,CAAE,MAAQ,aAAc,cAAgB,kBAAmB,cAAgB,iBAAkB,KAAO,kBAAmB,SAAW,2BAA6B,qBAAuB,CAAE,MAAQ,yBAA0B,KAAO,OAAQ,KAAO,QAAU,QAAU,CAAE,MAAQ,UAAW,MAAQ,QAAS,KAAO,OAAQ,mBAAqB,CAAE,MAAQ,uBAAyB,aAAe,CAAE,MAAQ,mBAAuB,iBAAmB,CAAE,MAAQ,6BAA8B,iBAAmB,qBAAsB,iBAAmB,qBAAsB,sBAAwB,0BAA2B,wBAA0B,kGAAmG,kBAAoB,uFAAyF,aAAe,gFAAiF,SAAW,CAAE,MAAQ,WAAY,MAAQ,WAAY,YAAc,sBAAuB,OAAS,oGAAqG,KAAO,CAAE,MAAQ,OAAQ,YAAc,iBAAmB,YAAc,CAAE,MAAQ,cAAe,YAAc,yDAA2D,KAAO,CAAE,MAAQ,gBAAiB,eAAiB,CAAE,MAAQ,kBAAoB,UAAY,CAAE,MAAQ,aAAe,aAAe,CAAE,MAAQ,iBAAmB,MAAQ,CAAE,MAAQ,WAAc,QAAU,CAAE,MAAQ,UAAW,YAAc,cAAgB,eAAiB,CAAE,MAAQ,MAAO,YAAc,0DAA4D,gBAAkB,CAAE,MAAQ,oBAAsB,SAAW,CAAE,MAAQ,WAAY,mBAAqB,8BAA+B,gBAAkB,0BAA2B,YAAc,uBAAyB,UAAY,CAAE,MAAQ,YAAa,IAAM,OAAS,OAAS,CAAE,MAAQ,uBAAwB,OAAS,oBAAqB,MAAQ,2BAA4B,KAAO,OAAQ,MAAQ,iBAAqB,IAAM,CAAE,MAAQ,CAAE,YAAc,SAAY,UAAY,CAAE,2BAA2B,8DAA+D,sCAAsC,gEAAiE,8BAA8B,qEAAsE,qCAAqC,mFAAoF,gCAAgC,0EAA4E,WAAa,CAAE,kBAAoB,uCAA0C,kBAAoB,0CAA6C,SAAW,iJAAsJ,SAAW,2IAAgJ,QAAU,yDAA4D,aAAe,oCAAuC,YAAc,8CAAiD,QAAU,oFAAqF,KAAO,8IAA+I,KAAO,+BAAgC,IAAM,gCAAoC,MAAQ,CAAE,qBAAuB,sGACp0LC,EAAOC,QAAUF,EAAIG,QAAU,EAAIH,EAAI,GAAKA","file":"capi-0.6.0-2.8.umd.min.8.js","sourcesContent":["const doc = [({\"action\":({\"createCluster\":\"Create Cluster\"}), \"capi\":({\"installation\":({\"title\":\"Rancher Turtles\", \"description\":\"The Rancher Turtles operator allows users to import CAPI-provisioned clusters into Rancher.\", \"disableFeatureFlag\":\"The embedded-cluster-api feature flag must be disabled before installing the CAPI Turtles extension. Follow instructions in the documentation here to do so.\", \"turtlesNeeded\":\"Either the user doesn't have permission to run the Turtles extension or the Turtles operator isn't installed. To learn how to install the Rancher Turtles extension, read the documentation.\"}), \"autoImport\":({\"label\":\"CAPI Auto-Import\", \"checkbox\":({\"label\":\"Automatically import CAPI clusters created in this namespace\"}), \"enableAction\":\"Enable CAPI Auto-Import\", \"disableAction\":\"Disable CAPI Auto-Import\"}), \"warnings\":({\"embeddedFeatureFlag\":\"It looks like the Rancher-managed cluster API feature is disabled. To provision and manage RKE2 clusters you must either enable the embedded-cluster-api feature flag or install the Rancher Turtles extension.\"}), \"cluster\":({\"steps\":({\"clusterClass\":({\"title\":\"Cluster Class\", \"label\":\"Cluster Class\", \"subtext\":null, \"description\":\"\"}), \"configuration\":({\"title\":\"Configuration\", \"label\":\"Configuration\", \"subtext\":null, \"description\":\"\"}), \"variables\":({\"title\":\"Variables\", \"label\":\"Variables\", \"subtext\":null, \"description\":\"\"})}), \"secret\":({\"reuse\":\"Use existing credential\", \"create\":\"Create new credential\"}), \"controlPlane\":({\"title\":\"Control Plane Options\", \"provisioner\":\"Type\"}), \"providerConfig\":({\"title\":\"Infrastructure\"}), \"clusterClass\":({\"title\":\"Cluster Class\", \"label\":\"Cluster Class\", \"description\":\"Cluster Class Description\"}), \"variables\":({\"title\":\"Variables\"}), \"version\":({\"title\":\"Kubernetes Version\"}), \"networking\":({\"title\":\"Networking\", \"apiServerPort\":\"API Server Port\", \"serviceDomain\":\"Service Domain\", \"pods\":\"Pod CIDR Blocks\", \"services\":\"Service VIP CIDR Blocks\"}), \"controlPlaneEndpoint\":({\"title\":\"Control Plane Endpoint\", \"host\":\"Host\", \"port\":\"Port\"}), \"workers\":({\"title\":\"Workers\", \"class\":\"Class\", \"name\":\"Name\", \"machineDeployments\":({\"title\":\"Machine Deployments\"}), \"machinePools\":({\"title\":\"Machine Pools\"})})}), \"clusterClassCard\":({\"title\":\"Cluster Class Name: {name}\", \"controlPlaneName\":\"Control Plane Name\", \"controlPlaneKind\":\"Control Plane Kind\", \"controlPlaneNamespace\":\"Control Plane Namespace\", \"machineDeploymentsCount\":\"{count, plural,\\n one {{count} Machine Deployment }\\n other {{count} Machine Deployments }\\n}\", \"machinePoolsCount\":\"{count, plural,\\n one {{count} Machine Pool }\\n other {{count} Machine Pools }\\n}\"}), \"experimental\":\"The Rancher CAPI UI extension is experimental and is not currently supported.\", \"provider\":({\"title\":\"Provider\", \"label\":\"Provider\", \"placeholder\":\"eg. custom-provider\", \"banner\":\"Editing configuration will affect all clusters that are using this provider and may cause errors.\", \"name\":({\"label\":\"Name\", \"placeholder\":\"Provider name\"}), \"description\":({\"label\":\"Description\", \"placeholder\":\"Any text you want that better describes this provider\"}), \"type\":({\"label\":\"Provider type\", \"infrastructure\":({\"label\":\"Infrastructure\"}), \"bootstrap\":({\"label\":\"Bootstrap\"}), \"controlPlane\":({\"label\":\"Control Plane\"}), \"addon\":({\"label\":\"Add-On\"})}), \"version\":({\"label\":\"Version\", \"placeholder\":\"eg. v1.0.0\"}), \"fetchConfigURL\":({\"label\":\"URL\", \"placeholder\":\"https://github.com/example/releases/latest/client.yaml\"}), \"cloudCredential\":({\"title\":\"Cloud Credential\"}), \"features\":({\"title\":\"Features\", \"clusterResourceSet\":\"Enable cluster resource set\", \"clusterTopology\":\"Enable cluster topology\", \"machinePool\":\"Enable machine pool\"}), \"variables\":({\"title\":\"Variables\", \"add\":\"Add\"}), \"secret\":({\"title\":\"Secret Configuration\", \"create\":\"Create new secret\", \"reuse\":\"Use core provider secret\", \"data\":\"Data\", \"label\":\"Secret Name\"})})}), \"nav\":({\"group\":({\"CAPITurtles\":\"CAPI\"})}), \"typeLabel\":({\"cluster.x-k8s.io.cluster\":\"{count, plural,\\n one { Cluster }\\n other { Clusters }\\n}\", \"turtles-capi.cattle.io.capiprovider\":\"{count, plural,\\n one { Provider }\\n other { Providers }\\n}\", \"cluster.x-k8s.io.machineset\":\"{count, plural,\\n one { Machine Set}\\n other { Machine Sets }\\n}\", \"cluster.x-k8s.io.machinedeployment\":\"{count, plural,\\n one { Machine Deployment}\\n other { Machine Deployments }\\n}\", \"cluster.x-k8s.io.clusterclass\":\"{count, plural,\\n one { Cluster Class}\\n other { Cluster Classes}\\n}\"}), \"validation\":({\"exclusiveMaxValue\":\"\\\"{key}\\\" must be less than {maximum}.\", \"exclusiveMinValue\":\"\\\"{key}\\\" must be greater than {minimum}.\", \"maxItems\":\"{maxItems, plural,\\n one {\\\"{key}\\\" may contain no more than {maxItems} item.}\\n other {\\\"{key}\\\" may contain no more than {maxItems} items.}\\n}\", \"minItems\":\"{minItems, plural,\\n one {\\\"{key}\\\" must contain at least {minItems} item.}\\n other {\\\"{key}\\\" must contain at least {minItems} items.}\\n}\", \"pattern\":\"\\\"{key}\\\" must match the pattern {pattern}.\", \"stringFormat\":\"\\\"{key}\\\" must be a valid {format}.\", \"uniqueItems\":\"\\\"{key}\\\" may not contain duplicate elements.\", \"version\":\"Version format should be in the semver format prefixed with 'v'. Example: v1.9.3\", \"name\":\"Name is required and must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character.\", \"port\":\"Port value must be a number.\", \"url\":\"\\\"Value\\\" must be a valid URL.\"}), \"error\":({\"clusterClassNotFound\":\"Could not find corresponding cluster class. Please check that cluster class exists and is valid.\"})})];\nmodule.exports = doc.length <= 1 ? doc[0] : doc;"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.edit.js b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.edit.js new file mode 100644 index 0000000..67f7b4e --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.edit.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_6_0_2_8"]||[]).push([[2],{"00e3":function(e,t,a){"use strict";a("f427")},"0175":function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".container[data-v-e4d7fae2]{display:grid;grid-template-columns:1fr 1fr 1fr}@media only screen and (max-width:992px){.container[data-v-e4d7fae2]{grid-template-columns:1fr 1fr}}@media only screen and (max-width:1281px){.container[data-v-e4d7fae2]{grid-template-columns:1fr}}",""]),e.exports=t},"12bf":function(e,t,a){var s=a("1703");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("443656e6",s,!0,{sourceMap:!1,shadowMode:!1})},"13ff":function(e,t,a){"use strict";a("1b1c")},1703:function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,'.align-center[data-v-70ba7c10]{align-self:"center"}.input-label[data-v-70ba7c10]{color:var(--input-label);margin-bottom:5px;display:block;width:100%}.input-label .icon-warning[data-v-70ba7c10]{color:var(--error)}',""]),e.exports=t},"1a4b":function(e,t,a){"use strict";a("3775")},"1b1c":function(e,t,a){var s=a("cc98");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("4b80d816",s,!0,{sourceMap:!1,shadowMode:!1})},"33e0":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("CruResource",{staticClass:"create-cluster",attrs:{mode:e.mode,"validation-passed":!0,"selected-subtype":e.subType,resource:e.value,errors:e.errors,subtypes:e.subTypes,"cancel-event":!0,"prevent-enter-submit":!0},on:{finish:e.save,cancel:e.done,"select-type":e.selectType,error:t=>e.errors=t},scopedSlots:e._u([{key:"subtypes",fn:function(){return[t("div",{staticClass:"mb-20",staticStyle:{width:"100%"}},[t("SelectIconGrid",{attrs:{rows:e.subTypes,"key-field":"id","name-field":"label","side-label-field":"tag"},on:{clicked:e.clickedType}})],1)]},proxy:!0},e.subType?{key:"form-footer",fn:function(){return[t("div")]},proxy:!0}:null],null,!0)},[e.subType?t("ProviderConfig",{attrs:{"initial-value":e.initialValue,"live-value":e.liveValue,mode:e.mode,provider:e.subType},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}):e._e()],1)},l=[],r=a("8bbf"),i=a("305c"),o=a("fd5f"),n=a("500e"),c=a("da25"),d=a("7e89"),u=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.loading?t("Loading"):t("CruResource",{ref:"providercruresource",staticClass:"provider",attrs:{"can-yaml":!1,mode:e.mode,"validation-passed":e.fvFormIsValid,resource:e.value,errors:e.fvUnreportedValidationErrors,"cancel-event":!0,"done-route":e.doneRoute,"apply-hooks":e.applyHooks,"component-testid":"capi-provider-create"},on:{done:e.done,finish:e.saveOverride,cancel:e.done,error:t=>e.errors=t},scopedSlots:e._u([e.waitingForCredential?{key:"form-footer",fn:function(){return[t("div")]},proxy:!0}:null],null,!0)},[t("NameNsDescription",{attrs:{mode:e.mode,namespaced:!0,"namespace-options":e.allNamespaces,"namespace-new-allowed":!0,"name-label":"capi.provider.name.label","name-placeholder":"capi.provider.name.placeholder","description-label":"capi.provider.description.label","description-placeholder":"capi.provider.description.placeholder",rules:{name:e.fvGetAndReportPathRules("metadata.name")}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),e.isCustom?t("div",[t("div",{staticClass:"row mb-20"},[t("div",{staticClass:"col span-3"},[t("LabeledInput",{attrs:{mode:e.mode,"label-key":"capi.provider.label","placeholder-key":"capi.provider.placeholder",required:"",rules:e.fvGetAndReportPathRules("spec.name")},model:{value:e.value.spec.name,callback:function(t){e.$set(e.value.spec,"name",t)},expression:"value.spec.name"}})],1),t("div",{staticClass:"col span-3"},[t("LabeledSelect",{attrs:{mode:e.mode,options:e.typeOptions,"label-key":"capi.provider.type.label",disabled:e.isEdit,required:""},model:{value:e.value.spec.type,callback:function(t){e.$set(e.value.spec,"type",t)},expression:"value.spec.type"}})],1),t("div",{staticClass:"col span-3"},[t("LabeledInput",{attrs:{mode:e.mode,"label-key":"capi.provider.version.label","placeholder-key":"capi.provider.version.placeholder",rules:e.fvGetAndReportPathRules("spec.version"),required:""},model:{value:e.value.spec.version,callback:function(t){e.$set(e.value.spec,"version",t)},expression:"value.spec.version"}})],1)]),t("div",{staticClass:"row mb-40"},[t("div",{staticClass:"col span-6"},[t("LabeledInput",{attrs:{mode:e.mode,"label-key":"capi.provider.fetchConfigURL.label","placeholder-key":"capi.provider.fetchConfigURL.placeholder",rules:e.fvGetAndReportPathRules("spec.fetchConfig.url")},model:{value:e.value.spec.fetchConfig.url,callback:function(t){e.$set(e.value.spec.fetchConfig,"url",t)},expression:"value.spec.fetchConfig.url"}})],1)])]):e._e(),e.needCredential?t("div",{staticClass:"mb-40"}):e._e(),e.hasFeatures||e.hasVariables?t("h2",{staticClass:"mb-20"},[t("t",{attrs:{k:"capi.provider.secret.title"}})],1):e._e(),e.needCredential?t("div",[t("h3",{staticClass:"mb-20"},[t("t",{attrs:{k:"capi.provider.cloudCredential.title"}})],1),t("SelectCredential",{staticClass:"mb-40",attrs:{mode:e.mode,provider:e.provider,cancel:e.cancelCredential,"showing-form":e.showForm},model:{value:e.value.spec.credentials.rancherCloudCredentialNamespaceName,callback:function(t){e.$set(e.value.spec.credentials,"rancherCloudCredentialNamespaceName",t)},expression:"value.spec.credentials.rancherCloudCredentialNamespaceName"}})],1):e._e(),e.waitingForCredential?e._e():t("div",[e.shouldShowBanner?t("Banner",{attrs:{color:"info"}},[e._v(" "+e._s(e.t("capi.provider.banner"))+" ")]):e._e(),e.hasFeatures?t("div",{staticClass:"mb-40"},[t("h3",{staticClass:"mb-20"},[t("t",{attrs:{k:"capi.provider.features.title"}})],1),t("Checkbox",{attrs:{mode:e.mode,label:e.t("capi.provider.features.clusterResourceSet")},model:{value:e.value.spec.features.clusterResourceSet,callback:function(t){e.$set(e.value.spec.features,"clusterResourceSet",t)},expression:"value.spec.features.clusterResourceSet"}}),t("Checkbox",{attrs:{mode:e.mode,label:e.t("capi.provider.features.clusterTopology")},model:{value:e.value.spec.features.clusterTopology,callback:function(t){e.$set(e.value.spec.features,"clusterTopology",t)},expression:"value.spec.features.clusterTopology"}}),t("Checkbox",{attrs:{mode:e.mode,label:e.t("capi.provider.features.machinePool")},model:{value:e.value.spec.features.machinePool,callback:function(t){e.$set(e.value.spec.features,"machinePool",t)},expression:"value.spec.features.machinePool"}})],1):e._e(),e.hasVariables?t("div",[t("h3",[t("t",{attrs:{k:"capi.provider.variables.title"}})],1),t("KeyValue",{attrs:{"add-label":e.t("capi.provider.variables.add"),mode:e.mode,"value-can-be-empty":!0,"handle-base64":!1,"value-trim":!1,"add-allowed":!0,"read-allowed":!0,"parse-lines-from-file":!0},model:{value:e.value.spec.variables,callback:function(t){e.$set(e.value.spec,"variables",t)},expression:"value.spec.variables"}})],1):e._e()],1)],1)},v=[],p=a("9ce4"),m=a("bddd"),h=a("907c"),f=a("15ca"),b=a("ab51"),g=a("ebab"),y=a("1032"),C=a("2cb5"),k=a("e24b"),w=a("3c8c"),x=a("a232"),_=a("e26b"),O=a("466b"),P=a("eb32"),j=a("a8b9"),S=a("bfe9");const N={clusterResourceSet:!0,clusterTopology:!0,machinePool:!0},$={},R={name:"",type:"infrastructure",configSecret:{name:""},credentials:{rancherCloudCredentialNamespaceName:""}},V={name:"",type:"infrastructure",configSecret:{name:""},credentials:{rancherCloudCredentialNamespaceName:""},fetchConfig:{url:""},version:""},D=["infrastructure","bootstrap","controlPlane","addon"];var E=Object(r["defineComponent"])({components:{CruResource:o["a"],Loading:f["a"],NameNsDescription:w["a"],SelectCredential:b["a"],Checkbox:y["a"],KeyValue:x["a"],LabeledInput:_["a"],LabeledSelect:O["a"],Banner:P["a"]},mixins:[i["a"],g["a"]],props:{mode:{type:String,required:!0},value:{type:Object,required:!0},provider:{type:String,required:!0}},beforeMount(){this.getDependencies().then(e=>{this.allNamespaces=e.namespaces||[],this.coreProviderSecret=e.coreProviderSecret||{},this.initSpecs(),this.loading=!1}).catch(e=>{this.errors.push(e),this.initSpecs(),this.loading=!1})},data(){const e=d["e"].find(e=>e.id===this.provider)||{needCredentials:!1,disabled:!1,id:"0"};return{loading:!0,fvFormRuleSets:[{path:"metadata.name",rules:["name"]},{path:"spec.name",rules:["required"]},{path:"spec.version",rules:["version"]},{path:"spec.fetchConfig.url",rules:["url"]}],allNamespaces:[],needCredential:(null===e||void 0===e?void 0:e.needCredentials)||!1}},computed:{...Object(p["a"])(["namespaces"]),fvExtraRules(){return{name:Object(S["g"])(this.$store.getters["i18n/t"]),version:Object(S["h"])(this.$store.getters["i18n/t"],this.isCustom),url:Object(S["i"])(this.$store.getters["i18n/t"])}},typeOptions(){return D.map(e=>({label:this.t(`capi.provider.type.${e}.label`),value:e}))},showForm(){return!!this.value.spec.credentials.rancherCloudCredentialNamespaceName||!this.needCredential},isCreate(){return this.mode===c["l"]},isEdit(){return this.mode===c["n"]},hasFeatures(){var e;return!(null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||!e.features)},hasVariables(){var e;return!(null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||!e.features)},isCustom(){return"custom"===this.provider},shouldShowBanner(){return this.isEdit&&(this.hasFeatures||this.hasVariables)},waitingForCredential(){return this.needCredential&&!this.value.spec.credentials.rancherCloudCredentialNamespaceName}},methods:{initSpecs(){if(!this.value.spec){const e=this.getSpecFromCoreSecret();"custom"!==this.provider?(Object(k["k"])(this.value,"spec",{...Object(k["e"])(R),...e}),Object(k["k"])(this.value.spec,"name",this.provider)):Object(k["k"])(this.value,"spec",{...Object(k["e"])(V),...e})}this.value.spec.configSecret.name||Object(k["k"])(this.value.spec.configSecret,"name",this.generateName(this.provider))},getSpecFromCoreSecret(){var e;const t=null===(e=this.coreProviderSecret)||void 0===e?void 0:e.data;if(t){const e=["EXP_CLUSTER_RESOURCE_SET","CLUSTER_TOPOLOGY","EXP_MACHINE_POOL"],a=Object(k["e"])(t);return e.forEach(e=>{delete a[e]}),{features:{clusterResourceSet:"dHJ1ZQ=="===t.EXP_CLUSTER_RESOURCE_SET,clusterTopology:"dHJ1ZQ=="===t.CLUSTER_TOPOLOGY,machinePool:"dHJ1ZQ=="===t.EXP_MACHINE_POOL},variables:a}}return{features:Object(k["e"])(N),variables:Object(k["e"])($)}},generateName(e){return e?`${e}-credentials-${Object(C["n"])(5).toLowerCase()}`:void 0},async getDependencies(){const e=this.$store.getters["currentStore"](h["n"]),{$store:t}=this,a={namespaces:t.dispatch(e+"/findAll",{type:h["n"]}),coreProviderSecret:t.dispatch("management/find",{type:h["y"],id:`${d["h"]}/${d["g"]}`,opt:{watch:!1,force:!0}})};return await Object(j["a"])(a)},async saveOverride(e){var t;this.errors&&Object(m["c"])(this.errors),this.needCredential||null!==(t=this.value.spec)&&void 0!==t&&null!==(t=t.credentials)&&void 0!==t&&t.rancherCloudCredentialNamespaceName||(this.value.spec.credentials=null);try{await this.save(e,null)}catch(a){this.errors.push(a),e(!1)}},cancelCredential(){this.$refs.providercruresource&&this.$refs.providercruresource.emitOrRoute()}}}),A=E,q=a("d802"),L=Object(q["a"])(A,u,v,!1,null,null,null),T=L.exports,I=Object(r["defineComponent"])({name:"CreateProvider",components:{CruResource:o["a"],SelectIconGrid:n["a"],ProviderConfig:T},mixins:[i["a"]],props:{value:{type:Object,default:null},componentTestid:{type:String,default:"capi-provider-create"}},beforeMount(){var e;null!==(e=this.value)&&void 0!==e&&null!==(e=e.spec)&&void 0!==e&&e.name&&this.selectType(this.value.spec.name)},data(){const e=this.$route,t=(null===e||void 0===e?void 0:e.query[c["g"]])||null;return{subType:t}},computed:{subTypes(){const e=[],t=this.$store.getters;return null===d["e"]||void 0===d["e"]||d["e"].forEach(e=>{s(e.id,e.disabled)}),e;function s(s,l=!1){const r=t["i18n/withFallback"](`cluster.provider."${s}"`,null,s),i=t["i18n/withFallback"](`cluster.providerDescription."${s}"`,null,"");let o;try{o=a("499d")(`./${s}.svg`)}catch(c){try{o=a("3c84")(`./${s}.svg`)}catch(c){o=a("2de0")}}const n={id:s,label:r,description:i,icon:o,disabled:l};e.push(n)}}},methods:{clickedType(e){const t=e.id;this.$router.applyQuery({[c["g"]]:t}),this.selectType(t)},selectType(e){this.subType=e,this.$emit("set-subtype",this.$store.getters["i18n/withFallback"](`cluster.provider."${e}"`,null,e))}}}),F=I,M=(a("1a4b"),Object(q["a"])(F,s,l,!1,null,null,null));t["default"]=M.exports},3775:function(e,t,a){var s=a("3bc6");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("5ce51653",s,!0,{sourceMap:!1,shadowMode:!1})},"3bc6":function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".grouped-type{position:relative}.rke-switch{margin-top:-10px;position:absolute;right:0}",""]),e.exports=t},"3c84":function(e,t,a){var s={"./docker.svg":"7003","./vsphere-black.svg":"81be","./vsphere.svg":"8827"};function l(e){var t=r(e);return a(t)}function r(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}l.keys=function(){return Object.keys(s)},l.resolve=r,e.exports=l,l.id="3c84"},"499d":function(e,t,a){var s={"./aliyun-black.svg":"073d","./aliyun.svg":"817e","./aliyunecs-black.svg":"cfa4","./aliyunecs.svg":"6673","./amazonec2-black.svg":"1ca7","./amazonec2.svg":"b3fa","./amazoneks-black.svg":"b111","./amazoneks.svg":"a734","./aws.svg":"d1df","./azure-black.svg":"f9f9","./azure.svg":"ff0f","./azuread-black.svg":"34d3","./azuread.svg":"7c72","./azureaks-black.svg":"0dc3","./azureaks.svg":"89ef","./baidu-black.svg":"7c76","./baidu.svg":"8c46","./cloudca-black.svg":"0965","./cloudca.svg":"68b8","./cloudscale-black.svg":"bdf2","./cloudscale.svg":"05fa","./custom.svg":"ab8e","./digitalocean-black.svg":"460c","./digitalocean.svg":"11f4","./equinix-black.svg":"3e8d","./equinix.svg":"2e41","./exoscale.svg":"04e7","./gcp.svg":"2e3b","./gke-black.svg":"394b","./gke.svg":"d10d","./google.svg":"6de9","./googlegke-black.svg":"38e0","./googlegke.svg":"29f9","./harvester.svg":"481a","./huaweicce-black.svg":"d7b3","./huaweicce.svg":"03cb","./import.svg":"4eb1","./k3s-black.svg":"bf04","./k3s.svg":"fbfb","./kubernetes-black.svg":"7b99","./kubernetes.svg":"ecef","./linode.svg":"4f2d","./linodelke-black.svg":"d904","./linodelke.svg":"58dc","./local-cluster.svg":"a46f","./minikube-black.svg":"001a","./minikube.svg":"5abd","./nutanix.svg":"80b4","./oci-black.svg":"e518","./oci.svg":"6a48","./openstack-black.svg":"a409","./openstack.svg":"d8b2","./oracle.svg":"ce4d","./oracleoke-black.svg":"8ebd","./oracleoke.svg":"8faa","./otc-black.svg":"eae0","./otc.svg":"271c","./otccce.svg":"25b5","./outscale.svg":"f278","./ovhcloudmks.svg":"513f","./ovhcloudpubliccloud.svg":"8a44","./packet-black.svg":"798e","./packet.svg":"a67d","./pinganyunecs-black.svg":"c28c","./pinganyunecs.svg":"f63b","./pnap-black.svg":"5ad1","./pnap.svg":"0353","./rackspace-black.svg":"b20c","./rackspace.svg":"1b53","./rke.svg":"7a27","./rke2.svg":"43bd","./softlayer.svg":"da9b","./tencenttke-black.svg":"af66","./tencenttke.svg":"39ca","./vmwarevsphere-black.svg":"6cfe","./vmwarevsphere.svg":"0a79"};function l(e){var t=r(e);return a(t)}function r(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}l.keys=function(){return Object.keys(s)},l.resolve=r,e.exports=l,l.id="499d"},"5a4b":function(e,t,a){var s=a("b228");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("61ff8856",s,!0,{sourceMap:!1,shadowMode:!1})},7003:function(e,t,a){e.exports=a.p+"img/docker.c06657b9.svg"},7800:function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".required[data-v-a373f1fc]{color:var(--error)}",""]),e.exports=t},"81be":function(e,t,a){e.exports=a.p+"img/vsphere-black.2f9d3f1d.svg"},8827:function(e,t,a){e.exports=a.p+"img/vsphere.32594541.svg"},"9e72":function(e,t,a){"use strict";a("d9ce")},b228:function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".variables[data-v-2a4e7b12]{display:flex;flex-direction:row;flex-wrap:wrap}.variables>*[data-v-2a4e7b12]{flex:0 1 23.25%;margin:0 1.75% 10px 0;max-width:23.25%}.variables[data-v-2a4e7b12]>.wider{flex:0 1 48.25%;max-width:48.25%}.variables>.force-newline[data-v-2a4e7b12]{flex:1 0 100%;max-width:none}",""]),e.exports=t},bfe9:function(e,t,a){"use strict";a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return v})),a.d(t,"j",(function(){return p})),a.d(t,"k",(function(){return m})),a.d(t,"c",(function(){return h})),a.d(t,"f",(function(){return f})),a.d(t,"b",(function(){return b})),a.d(t,"a",(function(){return g})),a.d(t,"i",(function(){return y})),a.d(t,"h",(function(){return C})),a.d(t,"g",(function(){return k}));var s=a("330a"),l=a.n(s),r=a("2cb5"),i=a("c4c6"),o=a("760b"),n=a("7e89");const c=function(e,{key:t="Value"},a){const{exclusiveMinimum:s,exclusiveMaximum:l,maxItems:r,maxLength:i,maximum:o,minItems:n,minLength:c,minimum:v,pattern:p,uniqueItems:m,required:h,format:f}=a,b=[];return o&&(l?b.push(a=>Number(a)>=Number(o)?e("validation.exclusiveMaxValue",{key:t,maximum:o}):void 0):b.push(a=>Number(a)>Number(o)?e("validation.maxValue",{key:t,max:o}):void 0)),void 0!==v&&(s?b.push(a=>Number(a)<=Number(v)?e("validation.exclusiveMinValue",{key:t,minimum:v}):void 0):b.push(a=>Number(a)a&&a.lengtha&&a.length>Number(i)?e("validation.maxLength",{key:t,max:i}):void 0),r&&b.push(a=>a&&a.length>r?e("validation.maxItems",{key:t,maxItems:r}):void 0),void 0!==n&&b.push(a=>a&&a.lengtha&&a.filter((e,t)=>a.indexOf(e)!==t).length?e("validation.uniqueItems",{key:t}):void 0),h&&b.push(a=>h.find(e=>void 0===a[e])?e("validation.requiredFields",{key:t,requiredFields:h.toString()}):void 0),b},d=function(e,t){return a=>a&&!a.match(t)?e:void 0},u=function(e,{key:t="Value"},a){const s=Object(o["a"])(e,{key:t}),l=e("validation.stringFormat",{key:t,format:a});switch(a){case"hostname":return e=>s.wildcardHostname(e);case"ipv4":return e=>e&&!Object(r["i"])(e)?l:void 0;case"cidr":return e=>e&&!Object(i["a"])(e)?l:void 0;case"mac":return e=>e&&!Object(i["b"])(e)?l:void 0;case"uuid":return d(l,/^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$/i);case"uuid3":return d(l,/^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$/i);case"uuid4":return d(l,/^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$/i);case"uuid5":return d(l,/^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$/i);default:return}},v=e=>e||!1===e||!l()(e),p=function(e,t){let a="";return n["c"][t]&&(a=`\\+(${n["c"][t].join("|")})`),new RegExp(`^v(\\d+.){2}\\d+${a}$`)},m=function(e,t){const a=p(e,t);return d(e("validation.version"),a)},h=function(e){return u(e,{key:"Host"},"hostname")},f=function(e){return t=>t&&isNaN(t)?e("validation.port"):void 0},b=function(e){return u(e,{key:"Value"},"cidr")},g=function(e){return e.every(e=>Object(i["a"])(e))},y=function(e){return t=>t&&!t.match(/^https?:\/\/(.*)$/)?e("validation.url"):void 0},C=function(e,t){return a=>t&&!a||a&&!a.match(/^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)?e("validation.version"):void 0},k=function(e){return t=>t&&t.match(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/)?void 0:e("validation.name")}},c5a9:function(e,t,a){var s=a("7800");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("7dbef2b1",s,!0,{sourceMap:!1,shadowMode:!1})},c5da:function(e,t,a){"use strict";a("12bf")},cc98:function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".label[data-v-7407ec5d]{display:flex;flex-direction:column;margin-bottom:10px}.label .text-label[data-v-7407ec5d]{font-size:12px;line-height:18px;color:var(--darker)}.label .value[data-v-7407ec5d]{line-height:18px}",""]),e.exports=t},d9ce:function(e,t,a){var s=a("e35d");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("37d2fa5c",s,!0,{sourceMap:!1,shadowMode:!1})},e2e28:function(e,t,a){"use strict";a("c5a9")},e35d:function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".cluster-card-container[data-v-40d0155a]{display:flex;flex-basis:40%;margin:10px;min-height:100px;padding:10px 20px;height:90%;border:1px solid var(--border);border-radius:var(--border-radius)}.cluster-card-container.selected[data-v-40d0155a]{border:2px solid var(--app-rancher-accent)}.cluster-card-container[data-v-40d0155a]:hover{box-shadow:0 0 30px var(--shadow);transition:box-shadow .1s ease-in-out;cursor:pointer;text-decoration:none!important}.cluster-card-container.rancher .deploys-os-label[data-v-40d0155a],.cluster-card-container.rancher .side-label[data-v-40d0155a]{background-color:var(--app-rancher-accent)}.cluster-card-container.rancher .deploys-os-label label[data-v-40d0155a],.cluster-card-container.rancher .side-label label[data-v-40d0155a]{color:var(--app-rancher-accent-text)}.cluster-card-container.rancher[data-v-40d0155a]:hover{border-color:var(--app-rancher-accent)}.cluster-card-container.partner .deploys-os-label[data-v-40d0155a],.cluster-card-container.partner .side-label[data-v-40d0155a]{background-color:var(--app-partner-accent)}.cluster-card-container.partner .deploys-os-label label[data-v-40d0155a],.cluster-card-container.partner .side-label label[data-v-40d0155a]{color:var(--app-partner-accent-text)}.cluster-card-container.partner[data-v-40d0155a]:hover{border-color:var(--app-partner-accent)}.cluster-card-container .card-wrap[data-v-40d0155a]{width:100%}.name[data-v-40d0155a]{font-size:16px;font-weight:700;margin-bottom:10px}.description[data-v-40d0155a]{font-size:14px;margin-bottom:20px}.container[data-v-40d0155a]{display:grid;padding:0;grid-template-columns:1fr 1fr}@media only screen and (max-width:1281px){.container[data-v-40d0155a]{grid-template-columns:1fr}}.leftcol[data-v-40d0155a]{justify-self:start;margin-right:10px}.rightcol[data-v-40d0155a]{justify-self:end}@media only screen and (max-width:1281px){.rightcol[data-v-40d0155a]{justify-self:start}}",""]),e.exports=t},e810:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.loading?t("Loading"):t("div",[e.preselectedClass?t("ClusterConfig",{attrs:{"initial-value":e.initialValue,"live-value":e.liveValue,mode:e.mode,"preselected-class":e.preselectedClass,"cluster-classes":e.clusterClasses},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}):t("CruResource",{staticClass:"create-cluster",attrs:{mode:e.mode,"validation-passed":!0,resource:e.value,errors:e.errors,"cancel-event":!0,"prevent-enter-submit":!0},on:{finish:e.save,cancel:e.cancel,error:t=>e.errors=t},scopedSlots:e._u([{key:"form-footer",fn:function(){return[t("div")]},proxy:!0}])},[t("ClusterConfig",{attrs:{"initial-value":e.initialValue,"live-value":e.liveValue,mode:e.mode,"cluster-classes":e.clusterClasses},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)],1)],1)},l=[],r=a("8bbf"),i=a.n(r),o=a("da25"),n=a("e24b"),c=a("305c"),d=a("15ca"),u=a("fd5f"),v=a("7e89"),p=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.loading?t("Loading"):t("CruResource",{attrs:{mode:e.mode,"show-as-form":!0,resource:e.value,errors:e.errors,"validation-passed":!0,"cancel-event":!0,"done-route":e.doneRoute,"apply-hooks":e.applyHooks,steps:e.addSteps,"component-testid":"capi-cluster-create"},on:{done:e.done,error:t=>e.errors=t,finish:e.saveOverride,cancel:e.cancel},scopedSlots:e._u([{key:"stepClusterClass",fn:function(){return[t("CardGrid",{attrs:{rows:e.clusterClassOptions,"key-field":"id","name-field":"label","side-label-field":"tag"},on:{clicked:e.clickedType}})]},proxy:!0},{key:"stepConfiguration",fn:function(){return[e.isView?e._e():t("NameNsDescription",{attrs:{mode:e.mode,namespaced:!1,"name-label":"cluster.name.label","name-placeholder":"cluster.name.placeholder","description-label":"cluster.description.label","description-placeholder":"cluster.description.placeholder",rules:{name:e.fvGetAndReportPathRules("metadata.name")}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),t("div",{staticClass:"row mb-20"},[t("div",{staticClass:"col span-3"},[t("h2",[t("t",{attrs:{k:"capi.cluster.version.title"}})],1),t("LabeledInput",{attrs:{mode:e.mode,"label-key":"cluster.kubernetesVersion.label",required:"",rules:e.fvGetAndReportPathRules("spec.topology.version")},model:{value:e.value.spec.topology.version,callback:function(t){e.$set(e.value.spec.topology,"version",t)},expression:"value.spec.topology.version"}})],1),t("div",{staticClass:"col"},[t("h2",[t("t",{attrs:{k:"capi.cluster.controlPlaneEndpoint.title"}})],1),t("ControlPlaneEndpointSection",{attrs:{mode:e.mode,rules:{host:e.fvGetAndReportPathRules("spec.controlPlaneEndpoint.host"),port:e.fvGetAndReportPathRules("spec.controlPlaneEndpoint.port")}},model:{value:e.controlPlaneEndpoint,callback:function(t){e.controlPlaneEndpoint=t},expression:"controlPlaneEndpoint"}})],1)]),t("div",{staticClass:"mt-20 block"},[t("h2",[t("t",{attrs:{k:"capi.cluster.networking.title"}})],1),t("NetworkSection",{attrs:{mode:e.mode,rules:{serviceDomain:e.fvGetAndReportPathRules("spec.clusterNetwork.serviceDomain"),apiServerPort:e.fvGetAndReportPathRules("spec.clusterNetwork.apiServerPort"),pods:e.fvGetAndReportPathRules("spec.clusterNetwork.pods"),services:e.fvGetAndReportPathRules("spec.clusterNetwork.services")}},on:{"api-server-port-changed":t=>e.$set(e.value.spec.clusterNetwork,"apiServerPort",Number(t)||""),"service-domain-changed":t=>e.$set(e.value.spec.clusterNetwork,"serviceDomain",t),"pods-cidr-blocks-changed":e.podsCidrBlocksChanged,"services-cidr-blocks-changed":e.servicesCidrBlocksChanged},model:{value:e.clusterNetwork,callback:function(t){e.clusterNetwork=t},expression:"clusterNetwork"}})],1),t("div",{staticClass:"mt-20 block"},[t("h2",[t("t",{attrs:{k:"capi.cluster.workers.title"}}),t("span",{staticClass:"required"},[e._v("*")])],1),t("div",{staticClass:"row mb-20"},[e.machineDeploymentOptions?t("div",{staticClass:"col span-3"},[t("WorkerItem",{attrs:{mode:e.mode,title:e.t("capi.cluster.workers.machineDeployments.title"),"default-add-value":e.defaultWorkerAddValue,"class-options":e.machineDeploymentOptions,"initial-empty-row":!0},model:{value:e.value.spec.topology.workers.machineDeployments,callback:function(t){e.$set(e.value.spec.topology.workers,"machineDeployments",t)},expression:"value.spec.topology.workers.machineDeployments"}})],1):e._e(),e.machinePoolOptions?t("div",{staticClass:"col span-3"},[t("WorkerItem",{attrs:{mode:e.mode,title:e.t("capi.cluster.workers.machinePools.title"),"default-add-value":e.defaultWorkerAddValue,"class-options":e.machinePoolOptions,"initial-empty-row":!0},model:{value:e.value.spec.topology.workers.machinePools,callback:function(t){e.$set(e.value.spec.topology.workers,"machinePools",t)},expression:"value.spec.topology.workers.machinePools"}})],1):e._e()])])]},proxy:!0},{key:"stepVariables",fn:function(){return[t("h2",[t("t",{attrs:{k:"capi.cluster.variables.title"}})],1),t("ClusterClassVariables",{attrs:{"cluster-class":e.clusterClassObj},on:{"validation-passed":t=>e.variablesReady=t},model:{value:e.value.spec.topology.variables,callback:function(t){e.$set(e.value.spec.topology,"variables",t)},expression:"value.spec.topology.variables"}})]},proxy:!0}])})},m=[],h=a("bddd"),f=a("e26b"),b=a("3c8c"),g=a("ebab"),y=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"variables"},[e.variableDefinitions&&e.variableDefinitions.length?[e._l(e.variableDefinitions,(function(a,s){return[t("Variable",{key:""+a.name,ref:a.name+"-input",refInFor:!0,attrs:{variable:a,value:e.valueFor(a),"validate-required":!e.machineDeploymentClass&&!e.machinePoolClass},on:{input:t=>e.updateVariables(t,a),"validation-passed":e.updateErrors}}),e.newComponentType(a,s)?t("div",{key:`${s}-${e.rerenderKey}`,staticClass:"force-newline"}):e._e()]}))]:e._e()],2)},C=[],k=a("44db"),w=a.n(k),x=a("2cb5"),_=function(){var e,t=this,a=t._self._c;t._self._setupProxy;return t.componentForType?a("div",{class:{wider:t.listComponent,"align-center":"checkbox-var"===(null===(e=t.componentForType)||void 0===e?void 0:e.name),[""+t.componentForType.name]:!0}},[t.componentForType?a(t.componentForType.component,{tag:"component",attrs:{value:t.value,label:t.variable.name,placeholder:t.schema.example,tooltip:t.schema.description,required:t.variable.required&&t.validateRequired,title:t.variable.name,options:t.variableOptions,rules:t.listComponent?[]:t.validationRules,type:"number"===t.schema.type||"integer"===t.schema.type?"number":"text"},on:{input:t.setValue},scopedSlots:t._u([{key:"title",fn:function(){return[a("div",{staticClass:"input-label"},[a("span",[t._v(t._s(t.variable.name)+" "),t.schema.description?a("i",{directives:[{name:"clean-tooltip",rawName:"v-clean-tooltip",value:t.schema.description,expression:"schema.description"}],staticClass:"icon icon-sm icon-info"}):t._e(),t.isValid?t._e():a("i",{directives:[{name:"clean-tooltip",rawName:"v-clean-tooltip",value:t.validationErrors.join(" "),expression:"validationErrors.join(' ')"}],staticClass:"icon icon-warning"})])])]},proxy:!0}],null,!1,149827440)}):t._e(),a("div",{staticClass:"flexbox-newline"})],1):t._e()},O=[],P=a("9e74"),j=a.n(P),S=a("1032"),N=a("a232"),$=a("977f"),R=a("466b"),V=a("9ce4"),D=a("bfe9"),E=i.a.extend({name:"CCVariable",props:{variable:{type:Object,required:!0},value:{type:[String,Object,Boolean,Array,Number],default:()=>null},validateRequired:{type:Boolean,default:!0}},watch:{isValid(e){this.$emit("validation-passed",e)}},created(){this.isValid||this.$emit("validation-passed",!1)},computed:{...Object(V["a"])({t:"i18n/t"}),componentForType(){const{type:e}=this.schema;let t;if(this.variableOptions)t={component:R["a"],name:"text-var"};else switch(e){case"object":t={component:N["a"],name:"keyvalue-var"};break;case"array":t={component:$["a"],name:"arraylist-var"};break;case"string":t={component:f["a"],name:"text-var"};break;case"integer":t={component:f["a"],name:"text-var"};break;case"number":t={component:f["a"],name:"text-var"};break;case"boolean":t={component:S["a"],name:"checkbox-var"};break;default:break}return t},schema(){var e;return null===(e=this.variable)||void 0===e||null===(e=e.schema)||void 0===e?void 0:e.openAPIV3Schema},variableOptions(){var e;const t=null===(e=this.schema)||void 0===e?void 0:e.enum;return t&&t.length?t.map(e=>"object"===typeof e?JSON.stringify(e):e):null},validationRules(){var e;if(this.isDefaultValue)return[];const t=this.t,a=Object(D["e"])(t,{key:this.variable.name},this.schema),s=null===(e=this.variable)||void 0===e?void 0:e.required;return s&&this.validateRequired&&a.push(e=>Object(D["d"])(e)?void 0:t("validation.required",{key:this.variable.name})),a},isDefaultValue(){const e=this.schema.default;return void 0!==e&&j()(e,this.value)},isValid(){return!this.validationErrors.length},validationErrors(){return this.validationRules.reduce((e,t)=>{const a=t(this.value);return a&&e.push(a),e},[])},listComponent(){var e,t;return"arraylist-var"===(null===(e=this.componentForType)||void 0===e?void 0:e.name)||"keyvalue-var"===(null===(t=this.componentForType)||void 0===t?void 0:t.name)}},methods:{setValue(e){let t=e;const{type:a}=this.schema;if("object"===a)try{t=JSON.parse(e)}catch{}this.$emit("input",t)}}}),A=E,q=(a("c5da"),a("d802")),L=Object(q["a"])(A,_,O,!1,null,"70ba7c10",null),T=L.exports,I=i.a.extend({name:"ClusterClassVariables",components:{Variable:T},props:{clusterClass:{type:Object,default:()=>{}},value:{type:Array,default:()=>[]},machineDeploymentClass:{type:String,default:null},machinePoolClass:{type:String,default:null}},data(){return{errorCount:0,rerenderKey:Object(x["n"])()}},watch:{errorCount:{handler:w()((function(e){this.$emit("validation-passed",!e)}),5)},variableDefinitions(e,t){this.updateVariableDefaults(e,t),this.$nextTick(()=>{this.rerenderKey=Object(x["n"])()})}},created(){this.updateVariableDefaults(this.variableDefinitions,[])},computed:{variableDefinitions(){var e;const t=(null===(e=this.clusterClass)||void 0===e||null===(e=e.spec)||void 0===e?void 0:e.variables)||[];if(!this.machineDeploymentClass&&!this.machinePoolClass)return t;const a=this.machineScopedJsonPatches.reduce((e,t)=>{var a;const s=null===t||void 0===t||null===(a=t.valueFrom)||void 0===a?void 0:a.variable;if(!s)return e;const l=s.split(/\.|\[/)[0];return"builtin"!==l&&e.push(l),e},[]);return t.filter(e=>a.includes(e.name))},machineScopedJsonPatches(){var e;if(!this.machineDeploymentClass&&!this.machinePoolClass)return[];const t=[],a=this.machineDeploymentClass||this.machinePoolClass,s=this.machineDeploymentClass?"machineDeploymentClass":"machinePoolClass",l=(null===(e=this.clusterClass)||void 0===e||null===(e=e.spec)||void 0===e?void 0:e.patches)||[];return l.forEach(e=>{const l=(null===e||void 0===e?void 0:e.definitions)||[];l.forEach(e=>{var l;const r=(null===e||void 0===e||null===(l=e.selector)||void 0===l||null===(l=l.matchResources)||void 0===l||null===(l=l[s])||void 0===l?void 0:l.names)||[];r.includes(a)&&t.push(...e.jsonPatches)})}),t}},methods:{valueFor(e){return(this.value.find(t=>t.name===e.name)||{}).value},updateVariables(e,t){const a=[...this.value],s=this.value.findIndex(e=>e.name===t.name);s>=0?a[s].value=e:a.push({value:e,name:t.name}),this.$emit("input",a)},updateVariableDefaults(e,t){const a=[...this.value].reduce((a,s)=>{var l,r,i;const o=(e||[]).find(e=>e.name===s.name);if(!o)return a;const n=null===(l=(t||[]).find(e=>e.name===s.name))||void 0===l||null===(l=l.schema)||void 0===l||null===(l=l.openAPIV3Schema)||void 0===l?void 0:l.default;void 0!==n&&s.value===n&&delete s.value;let c=null===(r=o.schema)||void 0===r||null===(r=r.openAPIV3Schema)||void 0===r?void 0:r.default;return"boolean"!==(null===(i=o.schema)||void 0===i||null===(i=i.openAPIV3Schema)||void 0===i?void 0:i.type)||c||(c=!1),void 0===c||s.value||(s.value=c),a.push(s),a},[]);e.forEach(e=>{var t,s;let l=null===(t=e.schema)||void 0===t||null===(t=t.openAPIV3Schema)||void 0===t?void 0:t.default;"boolean"!==(null===(s=e.schema)||void 0===s||null===(s=s.openAPIV3Schema)||void 0===s?void 0:s.type)||l||(l=!1),void 0===l||a.find(t=>t.name===e.name)||a.push({name:e.name,value:l})}),this.errorCount=0,this.$emit("input",a)},updateErrors(e){e?this.errorCount--:this.errorCount++},newComponentType(e,t){var a,s,l;const r=this.$refs,i=null===(a=r[e.name+"-input"])||void 0===a||null===(a=a[0])||void 0===a?void 0:a.$el,o=null===(s=r[(null===(l=this.variableDefinitions[t+1])||void 0===l?void 0:l.name)+"-input"])||void 0===s||null===(s=s[0])||void 0===s?void 0:s.$el;return!!o&&(null===i||void 0===i?void 0:i._prevClass)!==o._prevClass}}}),F=I,M=(a("f0f1"),Object(q["a"])(F,y,C,!1,null,"2a4e7b12",null)),B=M.exports,z=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.rows.length?t("div",{staticClass:"container"},e._l(e.rows,(function(a,s){return t("div",{key:e.get(a,e.keyField),attrs:{"data-testid":e.componentTestid+"-"+s},on:{click:function(t){return e.select(a,s)}}},[t("ClusterClassCard",{attrs:{value:a.obj,selected:a.selected}})],1)})),0):t("div",{staticClass:"m-50 text-center"},[t("h1",{directives:[{name:"t",rawName:"v-t",value:e.noDataKey,expression:"noDataKey"}]})])},U=[],G=a("87ef"),K=a.n(G),W=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"cluster-card-container",class:{selected:!!e.selected},attrs:{"data-testid":"cluster-class-card"}},[t("div",{staticClass:"card-wrap"},[t("div",{staticClass:"name"},[e._v(" "+e._s(e.name)+" ")]),t("div",{staticClass:"description"},[t("p",[e._v(e._s(e.description))])]),t("div",{staticClass:"container"},[t("div",{staticClass:"leftcol"},[t("ClusterCardField",{attrs:{value:e.controlPlaneName,name:e.t("capi.clusterClassCard.controlPlaneName")}}),t("ClusterCardField",{attrs:{value:e.controlPlaneKind,name:e.t("capi.clusterClassCard.controlPlaneKind")}}),t("ClusterCardField",{attrs:{value:e.controlPlaneNamespace,name:e.t("capi.clusterClassCard.controlPlaneNamespace")}})],1),t("div",{staticClass:"rightcol"},[e.machineDeploymentsCount>0?t("ClusterCardField",{attrs:{value:e.machineDeploymentsList,name:e.t("capi.clusterClassCard.machineDeploymentsCount",{count:e.machineDeploymentsCount})}}):e._e(),e.machinePoolsCount>0?t("ClusterCardField",{attrs:{value:e.machinePoolsList,name:e.t("capi.clusterClassCard.machinePoolsCount",{count:e.machinePoolsCount})}}):e._e()],1)])])])},H=[],J=function(){var e=this,t=e._self._c;return t("div",{staticClass:"label"},[t("div",{staticClass:"text-label"},[e._t("name",(function(){return[e._v(" "+e._s(e.name)+" ")]}))],2),t("div",{staticClass:"value"},[e._t("value",(function(){return[e._v(" "+e._s(e.value)+" ")]}))],2)])},Z=[],Q={props:{name:{type:String,required:!0},value:{type:[Number,String,void 0],default:""}}},X=Q,Y=(a("13ff"),Object(q["a"])(X,J,Z,!1,null,"7407ec5d",null)),ee=Y.exports,te=i.a.extend({name:"ClusterClassCard",components:{ClusterCardField:ee},props:{value:{type:Object,required:!0},selected:{type:Boolean,default:!1}},data(){return{cloneData:!0,errors:[]}},computed:{...Object(V["a"])({t:"i18n/t"}),name(){var e;return(null===(e=this.value)||void 0===e||null===(e=e.metadata)||void 0===e?void 0:e.name)||""},description(){var e;return(null===(e=this.value)||void 0===e||null===(e=e.metadata)||void 0===e||null===(e=e.annotations)||void 0===e?void 0:e.description)||""},controlPlaneName(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.controlPlane)||void 0===e||null===(e=e.ref)||void 0===e?void 0:e.name},controlPlaneKind(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.controlPlane)||void 0===e||null===(e=e.ref)||void 0===e?void 0:e.kind},controlPlaneNamespace(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.controlPlane)||void 0===e||null===(e=e.ref)||void 0===e?void 0:e.namespace},machineDeploymentsCount(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machineDeployments)||void 0===e?void 0:e.length},machineDeploymentsList(){var e;return(null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machineDeployments)||void 0===e?void 0:e.map(e=>e.class).join(", "))||""},machinePoolsCount(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machinePools)||void 0===e?void 0:e.length},machinePoolsList(){var e;return(null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machinePools)||void 0===e?void 0:e.map(e=>e.class).join(", "))||""}}}),ae=te,se=(a("9e72"),Object(q["a"])(ae,W,H,!1,null,"40d0155a",null)),le=se.exports,re=i.a.extend({components:{ClusterClassCard:le},name:"CardGrid",props:{rows:{type:Array,required:!0},keyField:{type:String,default:"key"},noDataKey:{type:String,default:"sortableTable.noRows"},componentTestid:{type:String,default:"select-card-grid"}},methods:{get:n["g"],select(e,t){this.resetSelected(),this.rows[t].selected=!0,this.$emit("clicked",e,t)},resetSelected(){this.rows.map(e=>{e.selected=!1})},capitalize:K.a}}),ie=re,oe=(a("00e3"),Object(q["a"])(ie,z,U,!1,null,"e4d7fae2",null)),ne=oe.exports,ce=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.title?t("div",{staticClass:"clearfix"},[e._t("title",(function(){return[t("h3",[e._v(" "+e._s(e.title)+" ")])]}))],2):e._e(),e.rows.length?e._l(e.rows,(function(a,s){return t("div",{key:s,staticClass:"box",attrs:{"data-testid":"array-list-box"+s}},[e._t("columns",(function(){return[t("div",{staticClass:"value"},[e._t("value",(function(){return[t("div",{staticClass:"col mt-20"},[t("LabeledInput",{ref:"value",refInFor:!0,attrs:{mode:e.mode,disabled:!1,label:e.t("capi.cluster.workers.name")},model:{value:a.value.name,callback:function(t){e.$set(a.value,"name",t)},expression:"row.value.name"}})],1),t("div",{staticClass:"col mt-20"},[t("LabeledSelect",{attrs:{mode:e.mode,options:e.classOptions,"label-key":"capi.cluster.workers.class"},model:{value:a.value.class,callback:function(t){e.$set(a.value,"class",t)},expression:"row.value.class"}})],1)]}),{row:a,mode:e.mode,isView:e.isView,queueUpdate:e.queueUpdate}),e.removeAllowed?t("div",{staticClass:"remove"},[e._t("remove-button",(function(){return[t("button",{staticClass:"btn role-link",attrs:{type:"button",disabled:e.isView,"data-testid":"remove-item-"+s},on:{click:function(t){return e.remove(a,s)}}},[e._v(" "+e._s(e.removeLabel)+" ")])]}),{remove:()=>e.remove(a,s),i:s,row:a})],2):e._e()],2)]}),{queueUpdate:e.queueUpdate,i:s,rows:e.rows,row:a,mode:e.mode,isView:e.isView})],2)})):"view"===e.mode?t("div",{staticClass:"text-muted"},[e._v(" — ")]):t("div",[e._t("empty")],2),e.addAllowed&&!e.isView?t("div",{staticClass:"footer"},[e.addAllowed?e._t("add",(function(){return[t("button",{staticClass:"btn role-tertiary add",attrs:{type:"button",disabled:e.loading,"data-testid":"array-list-button"},on:{click:function(t){return e.add()}}},[e.loading?t("i",{staticClass:"mr-5 icon icon-spinner icon-spin icon-lg"}):e._e(),e._v(" "+e._s(e.addLabel)+" ")])]}),{add:e.add}):e._e()],2):e._e()],2)},de=[],ue=i.a.extend({components:{LabeledSelect:R["a"],LabeledInput:f["a"]},props:{value:{type:Array,default:null},mode:{type:String,default:o["n"]},title:{type:String,required:!0},classOptions:{type:Array,default:null},addAllowed:{type:Boolean,default:!0},removeAllowed:{type:Boolean,default:!0},defaultAddValue:{type:[String,Number,Object,Array],default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data(){const e=(this.value||[]).slice(),t=[];for(const a of e)t.push({value:a});if(!t.length){const e=this.defaultAddValue?Object(n["e"])(this.defaultAddValue):"";t.push({value:e})}return{rows:t,lastUpdateWasFromValue:!1}},computed:{isView(){return this.mode===o["r"]},removeLabel(){return this.$store.getters["i18n/t"]("generic.remove")},addLabel(){return this.$store.getters["i18n/t"]("generic.add")}},watch:{value(){this.lastUpdateWasFromValue=!0,this.rows=(this.value||[]).map(e=>({value:e}))},rows:{deep:!0,handler(){this.lastUpdateWasFromValue||this.queueUpdate(),this.lastUpdateWasFromValue=!1}}},created(){this.queueUpdate=w()(this.update,50)},methods:{add(){this.rows.push({value:Object(n["e"])(this.defaultAddValue)}),this.defaultAddValue&&this.queueUpdate(),this.$nextTick(()=>{const e=this.$refs.value;e&&e.length>0&&e[e.length-1].focus(),this.$emit("add")})},remove(e,t){this.$emit("remove",{row:e,index:t}),Object(h["h"])(this.rows,t),this.queueUpdate()},update(){if(this.isView)return;const e=[];for(const t of this.rows){const a=t.value;"undefined"!==typeof a&&e.push(a)}this.$emit("input",e)}}}),ve=ue,pe=Object(q["a"])(ve,ce,de,!1,null,null,null),me=pe.exports,he=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"row mb-20"},[t("div",{staticClass:"col span-3"},[t("LabeledInput",{attrs:{value:e.apiServerPort,mode:e.mode,disabled:e.clusterIsAlreadyCreated,label:e.t("capi.cluster.networking.apiServerPort"),rules:e.rules.apiServerPort,required:""},on:{input:function(t){return e.$emit("api-server-port-changed",t)}}})],1),t("div",{staticClass:"col span-3"},[t("LabeledInput",{attrs:{value:e.serviceDomain,mode:e.mode,disabled:e.clusterIsAlreadyCreated,label:e.t("capi.cluster.networking.serviceDomain"),rules:e.rules.serviceDomain},on:{input:function(t){return e.$emit("service-domain-changed",t)}}})],1)]),t("div",{staticClass:"row mb-20"},[t("div",{staticClass:"col span-3"},[t("ArrayList",{attrs:{value:e.podsCidrBlocks,protip:!1,mode:e.mode,title:e.t("capi.cluster.networking.pods"),rules:e.rules.pods},on:{input:function(t){return e.$emit("pods-cidr-blocks-changed",t)}}})],1),t("div",{staticClass:"col span-3"},[t("ArrayList",{attrs:{value:e.servicesCidrBlocks,protip:!1,mode:e.mode,title:e.t("capi.cluster.networking.services"),rules:e.rules.services},on:{input:function(t){return e.$emit("services-cidr-blocks-changed",t)}}})],1)])])},fe=[],be=i.a.extend({components:{LabeledInput:f["a"],ArrayList:$["a"]},props:{value:{type:Object,required:!0},mode:{type:String,required:!0},rules:{default:()=>({serviceDomain:[],apiServerPort:[],pods:[],services:[]}),type:Object}},computed:{...Object(V["a"])({t:"i18n/t"}),clusterIsAlreadyCreated(){return this.mode===o["n"]},apiServerPort(){var e;return null===(e=this.value)||void 0===e?void 0:e.apiServerPort},serviceDomain(){var e;return null===(e=this.value)||void 0===e?void 0:e.serviceDomain},podsCidrBlocks(){var e;return null===(e=this.value)||void 0===e||null===(e=e.pods)||void 0===e?void 0:e.cidrBlocks},servicesCidrBlocks(){var e;return null===(e=this.value)||void 0===e||null===(e=e.services)||void 0===e?void 0:e.cidrBlocks}}}),ge=be,ye=Object(q["a"])(ge,he,fe,!1,null,null,null),Ce=ye.exports,ke=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"row mb-20"},[t("div",{staticClass:"col"},[t("LabeledInput",{attrs:{mode:e.mode,disabled:e.clusterIsAlreadyCreated,label:e.t("capi.cluster.controlPlaneEndpoint.host"),rules:e.rules.host},model:{value:e.value.host,callback:function(t){e.$set(e.value,"host",t)},expression:"value.host"}})],1),t("div",{staticClass:"col"},[t("LabeledInput",{attrs:{mode:e.mode,disabled:e.clusterIsAlreadyCreated,label:e.t("capi.cluster.controlPlaneEndpoint.port"),rules:e.rules.port},model:{value:e.value.port,callback:function(t){e.$set(e.value,"port",e._n(t))},expression:"value.port"}})],1)])])},we=[],xe=i.a.extend({name:"ControlPlaneEndpointSection",components:{LabeledInput:f["a"]},props:{value:{type:Object,required:!0},mode:{type:String,required:!0},rules:{default:()=>({host:[],port:[]}),type:Object}},computed:{...Object(V["a"])({t:"i18n/t"}),clusterIsAlreadyCreated(){return this.mode===o["n"]}}}),_e=xe,Oe=Object(q["a"])(_e,ke,we,!1,null,null,null),Pe=Oe.exports;const je={version:"",class:"",workers:{machineDeployments:[],machinePools:[]}},Se={apiServerPort:6443,pods:{cidrBlocks:[]},serviceDomain:"",services:{cidrBlocks:[]}},Ne={host:"",port:49152};var $e=Object(r["defineComponent"])({name:"ClusterConfig",components:{CruResource:u["a"],Loading:d["a"],NameNsDescription:b["a"],LabeledInput:f["a"],WorkerItem:me,NetworkSection:Ce,ControlPlaneEndpointSection:Pe,ClusterClassVariables:B,CardGrid:ne},mixins:[c["a"],g["a"]],props:{mode:{type:String,required:!0},value:{type:Object,required:!0},preselectedClass:{type:String,required:!1,default:""},clusterClasses:{type:Array,required:!0}},beforeMount(){this.initSpecs(),this.$nextTick(()=>{this.loading=!1})},data(){const e=this.$store,t=e.getters["i18n/t"],a={name:"stepClusterClass",title:t("capi.cluster.steps.clusterClass.title"),label:t("capi.cluster.steps.clusterClass.label"),subtext:"",descriptionKey:"capi.cluster.steps.clusterClass.description",ready:!1,weight:30},s={name:"stepConfiguration",title:t("capi.cluster.steps.configuration.title"),label:t("capi.cluster.steps.configuration.label"),subtext:"",descriptionKey:"capi.cluster.steps.configuration.description",ready:!1,weight:30},l={name:"stepVariables",title:t("capi.cluster.steps.variables.title"),label:t("capi.cluster.steps.variables.label"),subtext:"",descriptionKey:"capi.cluster.steps.variables.description",ready:!0,weight:30},r=this.preselectedClass?[s,l]:[a,s,l];return{addSteps:r,fvFormRuleSets:[{path:"metadata.name",rules:["required"]},{path:"spec.topology.version",rules:["required","version"]},{path:"spec.controlPlaneEndpoint.host",rules:["host"]},{path:"spec.controlPlaneEndpoint.port",rules:["port"]},{path:"spec.clusterNetwork.serviceDomain",rules:["host"]},{path:"spec.clusterNetwork.apiServerPort",rules:["required","port"]},{path:"spec.clusterNetwork.pods",rules:["cidr"]},{path:"spec.clusterNetwork.services",rules:["cidr"]}],credentialId:"",credential:null,versionInfo:{},defaultWorkerAddValue:{name:"",class:""},variablesReady:!0,clusterClassObj:null,loading:!0}},watch:{clusterClassObj(e){const t=this.addSteps.find(e=>"stepClusterClass"===e.name);t&&this.$set(t,"ready",!!e)},stepConfigurationRequires(e){const t=this.addSteps.find(e=>"stepConfiguration"===e.name);this.$set(t,"ready",e)},variablesReady(e){const t=this.addSteps.find(e=>"stepVariables"===e.name);this.$set(t,"ready",e)}},computed:{modeOptions(){return[{label:this.t("capi.cluster.secret.reuse"),value:!1},{label:this.t("capi.cluster.secret.create"),value:!0}]},fvExtraRules(){return{version:Object(D["k"])(this.$store.getters["i18n/t"],this.controlPlane),host:Object(D["c"])(this.$store.getters["i18n/t"]),port:Object(D["f"])(this.$store.getters["i18n/t"]),cidr:Object(D["b"])(this.$store.getters["i18n/t"])}},stepConfigurationRequires(){var e,t,a,s,l,r,i,o,n,c,d,u,v,p;const m=!!this.value.metadata.name,h=Object(D["j"])(this.$store.getters["i18n/t"],this.controlPlane),f=(null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.topology)||void 0===e?void 0:e.version)&&!(null===(t=this.value)||void 0===t||null===(t=t.spec)||void 0===t||null===(t=t.topology)||void 0===t||!t.version.match(h)),b=!Object(D["f"])(this.$store.getters["i18n/t"])(null===(a=this.value)||void 0===a||null===(a=a.spec)||void 0===a||null===(a=a.controlPlaneEndpoint)||void 0===a?void 0:a.port),g=!Object(D["c"])(this.$store.getters["i18n/t"])(null===(s=this.value)||void 0===s||null===(s=s.spec)||void 0===s||null===(s=s.controlPlaneEndpoint)||void 0===s?void 0:s.host),y=(null===(l=this.value)||void 0===l||null===(l=l.spec)||void 0===l||null===(l=l.topology)||void 0===l||null===(l=l.workers)||void 0===l||null===(l=l.machineDeployments)||void 0===l?void 0:l.length)>0&&!(null===(r=this.value)||void 0===r||null===(r=r.spec)||void 0===r||null===(r=r.topology)||void 0===r||null===(r=r.workers)||void 0===r||null===(r=r.machineDeployments[0])||void 0===r||!r.name)&&!(null===(i=this.value)||void 0===i||null===(i=i.spec)||void 0===i||null===(i=i.topology)||void 0===i||null===(i=i.workers)||void 0===i||null===(i=i.machineDeployments[0])||void 0===i||!i.class),C=(null===(o=this.value)||void 0===o||null===(o=o.spec)||void 0===o||null===(o=o.topology)||void 0===o||null===(o=o.workers)||void 0===o||null===(o=o.machinePools)||void 0===o?void 0:o.length)>0&&!(null===(n=this.value)||void 0===n||null===(n=n.spec)||void 0===n||null===(n=n.topology)||void 0===n||null===(n=n.workers)||void 0===n||null===(n=n.machinePools[0])||void 0===n||!n.name)&&!(null===(c=this.value)||void 0===c||null===(c=c.spec)||void 0===c||null===(c=c.topology)||void 0===c||null===(c=c.workers)||void 0===c||null===(c=c.machinePools[0])||void 0===c||!c.class),k=!(null!==(d=this.value)&&void 0!==d&&null!==(d=d.spec)&&void 0!==d&&null!==(d=d.clusterNetwork)&&void 0!==d&&null!==(d=d.pods)&&void 0!==d&&d.cidrBlocks)||Object(D["a"])(this.value.spec.clusterNetwork.pods.cidrBlocks),w=!(null!==(u=this.value)&&void 0!==u&&null!==(u=u.spec)&&void 0!==u&&null!==(u=u.clusterNetwork)&&void 0!==u&&null!==(u=u.services)&&void 0!==u&&u.cidrBlocks)||Object(D["a"])(this.value.spec.clusterNetwork.services.cidrBlocks),x=!(null===(v=this.value)||void 0===v||null===(v=v.spec)||void 0===v||null===(v=v.clusterNetwork)||void 0===v||!v.apiServerPort)&&!isNaN(null===(p=this.value)||void 0===p||null===(p=p.spec)||void 0===p||null===(p=p.clusterNetwork)||void 0===p?void 0:p.apiServerPort)&&k&&w;return m&&f&&g&&b&&x&&(y||C)},clusterNetwork(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e?void 0:e.clusterNetwork},controlPlaneEndpoint(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e?void 0:e.controlPlaneEndpoint},machineDeploymentOptions(){var e;return null===(e=this.clusterClassObj)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machineDeployments)||void 0===e?void 0:e.map(e=>e.class)},machinePoolOptions(){var e;return null===(e=this.clusterClassObj)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machinePools)||void 0===e?void 0:e.map(e=>e.class)},controlPlane(){var e;return null===(e=this.clusterClassObj)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.controlPlane)||void 0===e||null===(e=e.ref)||void 0===e?void 0:e.name},clusterClassOptions(){const e=[],t=this.clusterClassObj;return this.clusterClasses.forEach(e=>{a(e)}),e;function a(a){const s=null===a||void 0===a?void 0:a.id,l={id:s,obj:a,selected:t===a};e.push(l)}}},methods:{set:n["k"],setClassInfo(e){this.clusterClassObj=this.clusterClasses.find(t=>{const a=unescape(e).split("/");return t.metadata.namespace===a[0]&&t.metadata.name===a[1]})||null,this.clusterClassObj?(this.setClass(),this.setNamespace()):this.errors.push(this.t("error.clusterClassNotFound"))},setClass(){var e;const t=null===(e=this.clusterClassObj)||void 0===e||null===(e=e.metadata)||void 0===e?void 0:e.name;this.set(this.value.spec.topology,"class",t)},setNamespace(){var e;const t=null===(e=this.clusterClassObj)||void 0===e||null===(e=e.metadata)||void 0===e?void 0:e.namespace;this.set(this.value.metadata,"namespace",t)},async saveOverride(){this.errors&&Object(h["c"])(this.errors);try{return await this.value.save(),this.done()}catch(e){this.errors.push(e)}},initSpecs(){this.value.spec||Object(n["k"])(this.value,"spec",{}),this.value.spec.topology||Object(n["k"])(this.value.spec,"topology",Object(n["e"])(je)),this.value.spec.clusterNetwork||Object(n["k"])(this.value.spec,"clusterNetwork",Object(n["e"])(Se)),this.value.spec.controlPlaneEndpoint||Object(n["k"])(this.value.spec,"controlPlaneEndpoint",Object(n["e"])(Ne)),this.preselectedClass&&this.setClassInfo(this.preselectedClass)},cancelCredential(){this.$refs.cruresource&&this.$refs.cruresource.emitOrRoute()},cancel(){this.$router.push({name:"c-cluster-manager-capi",params:{}})},done(){this.$router.push({name:"c-cluster-manager-capi",params:{}})},clickedType(e){this.clusterClassObj=this.clusterClasses.find(t=>t.id===e.id)||null,this.setClass(),this.setNamespace()},podsCidrBlocksChanged(e){var t;null!==(t=this.value.spec.clusterNetwork)&&void 0!==t&&t.pods||Object(n["k"])(this.value.spec.clusterNetwork,"pods",[]),Object(n["k"])(this.value.spec.clusterNetwork.pods,"cidrBlocks",e)},servicesCidrBlocksChanged(e){var t;null!==(t=this.value.spec.clusterNetwork)&&void 0!==t&&t.services||Object(n["k"])(this.value.spec.clusterNetwork,"services",[]),Object(n["k"])(this.value.spec.clusterNetwork.services,"cidrBlocks",e)}}}),Re=$e,Ve=(a("e2e28"),Object(q["a"])(Re,p,m,!1,null,"a373f1fc",null)),De=Ve.exports,Ee=Object(r["defineComponent"])({name:"CreateCluster",components:{CruResource:u["a"],Loading:d["a"],ClusterConfig:De},mixins:[c["a"]],props:{value:{type:Object,default:null},componentTestid:{type:String,default:"capi-provider-create"},mode:{type:String,required:!0}},beforeMount(){this.value.spec||Object(n["k"])(this.value,"spec",{}),this.value.id||this.value.metadata||Object(n["k"])(this.value,"metadata",{}),this.getClusterClasses().then(e=>{this.clusterClasses=e,this.loading=!1}).catch(e=>{this.errors.push(e),this.loading=!1})},data(){var e,t;const a=this.$route,s=a.query[o["g"]]||null,l=a.query[v["f"].CLASS],r=null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.topology)||void 0===e?void 0:e.class,i=null===(t=this.value)||void 0===t||null===(t=t.metadata)||void 0===t?void 0:t.namespace,n=i&&r?escape(`${i}/${r}`):null,c=l||n||null;return{subType:s,preselectedClass:c,capiProviders:[],clusterClasses:[],loading:!0}},methods:{async getClusterClasses(){const e=await this.$store.dispatch("management/findAll",{type:v["b"].CLUSTER_CLASS});return e},cancel(){this.$router.push({name:"c-cluster-manager-capi",params:{}})}}}),Ae=Ee,qe=Object(q["a"])(Ae,s,l,!1,null,null,null);t["default"]=qe.exports},f0f1:function(e,t,a){"use strict";a("5a4b")},f427:function(e,t,a){var s=a("0175");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("4c2cabe4",s,!0,{sourceMap:!1,shadowMode:!1})}}]); +//# sourceMappingURL=capi-0.6.0-2.8.umd.min.edit.js.map \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.edit.js.map b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.edit.js.map new file mode 100644 index 0000000..11e6267 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/capi-0.6.0-2.8.umd.min.edit.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://capi-0.6.0-2.8/./components/CardGrid.vue?9870","webpack://capi-0.6.0-2.8/./components/CardGrid.vue?9b73","webpack://capi-0.6.0-2.8/./components/CCVariables/Variable.vue?8e78","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/ClusterCardField.vue?79e6","webpack://capi-0.6.0-2.8/./components/CCVariables/Variable.vue?f7aa","webpack://capi-0.6.0-2.8/./edit/turtles-capi.cattle.io.capiprovider/index.vue?4004","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/ClusterCardField.vue?65a4","webpack://capi-0.6.0-2.8/./edit/turtles-capi.cattle.io.capiprovider/index.vue","webpack://capi-0.6.0-2.8/./edit/turtles-capi.cattle.io.capiprovider/ProviderConfig.vue","webpack://capi-0.6.0-2.8/./edit/turtles-capi.cattle.io.capiprovider/ProviderConfig.vue?0ac4","webpack://capi-0.6.0-2.8/./edit/turtles-capi.cattle.io.capiprovider/ProviderConfig.vue?2402","webpack://capi-0.6.0-2.8/./edit/turtles-capi.cattle.io.capiprovider/ProviderConfig.vue?fb78","webpack://capi-0.6.0-2.8/./edit/turtles-capi.cattle.io.capiprovider/index.vue?99bc","webpack://capi-0.6.0-2.8/./edit/turtles-capi.cattle.io.capiprovider/index.vue?54ae","webpack://capi-0.6.0-2.8/./edit/turtles-capi.cattle.io.capiprovider/index.vue?df1a","webpack://capi-0.6.0-2.8/./edit/turtles-capi.cattle.io.capiprovider/index.vue?a59a","webpack://capi-0.6.0-2.8/./edit/turtles-capi.cattle.io.capiprovider/index.vue?e231","webpack://capi-0.6.0-2.8/./assets/images/providers sync ^\\.\\/.*\\.svg$","webpack://capi-0.6.0-2.8/./.shell/assets/images/providers sync ^\\.\\/.*\\.svg$","webpack://capi-0.6.0-2.8/./components/CCVariables/index.vue?dea2","webpack://capi-0.6.0-2.8/./assets/images/providers/docker.svg","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/ClusterConfig.vue?27ce","webpack://capi-0.6.0-2.8/./assets/images/providers/vsphere-black.svg","webpack://capi-0.6.0-2.8/./assets/images/providers/vsphere.svg","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/index.vue?f1a5","webpack://capi-0.6.0-2.8/./components/CCVariables/index.vue?4874","webpack://capi-0.6.0-2.8/./util/validators.ts","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/ClusterConfig.vue?ee14","webpack://capi-0.6.0-2.8/./components/CCVariables/Variable.vue?65ff","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/ClusterCardField.vue?327b","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/index.vue?a4b8","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/ClusterConfig.vue?0689","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/index.vue?1157","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/index.vue","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/ClusterConfig.vue","webpack://capi-0.6.0-2.8/./components/CCVariables/index.vue","webpack://capi-0.6.0-2.8/./components/CCVariables/Variable.vue","webpack://capi-0.6.0-2.8/./components/CCVariables/Variable.vue?ab83","webpack://capi-0.6.0-2.8/./components/CCVariables/Variable.vue?4241","webpack://capi-0.6.0-2.8/./components/CCVariables/Variable.vue?a70f","webpack://capi-0.6.0-2.8/./components/CCVariables/index.vue?af05","webpack://capi-0.6.0-2.8/./components/CCVariables/index.vue?47b8","webpack://capi-0.6.0-2.8/./components/CCVariables/index.vue?ca61","webpack://capi-0.6.0-2.8/./components/CardGrid.vue","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/index.vue","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/ClusterCardField.vue","webpack://capi-0.6.0-2.8/components/ClusterClassCard/ClusterCardField.vue","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/ClusterCardField.vue?5649","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/ClusterCardField.vue?c04e","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/index.vue?8ca6","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/index.vue?0ede","webpack://capi-0.6.0-2.8/./components/ClusterClassCard/index.vue?8a64","webpack://capi-0.6.0-2.8/./components/CardGrid.vue?1cdc","webpack://capi-0.6.0-2.8/./components/CardGrid.vue?6c3e","webpack://capi-0.6.0-2.8/./components/CardGrid.vue?4f39","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/WorkerItem.vue","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/WorkerItem.vue?8f0a","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/WorkerItem.vue?8b14","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/WorkerItem.vue?9eea","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/NetworkSection.vue","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/NetworkSection.vue?44fe","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/NetworkSection.vue?5a12","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/NetworkSection.vue?d9e3","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/ControlPlaneEndpointSection.vue","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/ControlPlaneEndpointSection.vue?ed97","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/ControlPlaneEndpointSection.vue?a20b","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/ControlPlaneEndpointSection.vue?4d01","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/ClusterConfig.vue?270d","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/ClusterConfig.vue?77cc","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/ClusterConfig.vue?d0ed","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/index.vue?6be1","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/index.vue?7f13","webpack://capi-0.6.0-2.8/./edit/cluster.x-k8s.io.cluster/index.vue?43a1","webpack://capi-0.6.0-2.8/./components/CCVariables/index.vue?26a0","webpack://capi-0.6.0-2.8/./components/CardGrid.vue?54fe"],"names":["___CSS_LOADER_API_IMPORT___","exports","push","module","i","content","__esModule","default","locals","add","render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","mode","subType","value","errors","subTypes","on","save","done","selectType","e","scopedSlots","_u","key","fn","staticStyle","clickedType","proxy","initialValue","liveValue","model","callback","$$v","expression","_e","staticRenderFns","loading","ref","fvFormIsValid","fvUnreportedValidationErrors","doneRoute","applyHooks","saveOverride","waitingForCredential","allNamespaces","name","fvGetAndReportPathRules","isCustom","spec","$set","typeOptions","isEdit","type","version","fetchConfig","url","needCredential","hasFeatures","hasVariables","provider","cancelCredential","showForm","credentials","rancherCloudCredentialNamespaceName","shouldShowBanner","_v","_s","t","features","clusterResourceSet","clusterTopology","machinePool","variables","defaultFeatures","defaultVariables","defaultSpec","configSecret","customProviderSpec","providerTypes","defineComponent","components","CruResource","Loading","NameNsDescription","SelectCredential","Checkbox","KeyValue","LabeledInput","LabeledSelect","Banner","mixins","CreateEditView","FormValidation","props","String","required","Object","beforeMount","getDependencies","then","hash","namespaces","coreProviderSecret","initSpecs","catch","err","data","providerDetails","PROVIDER_TYPES","find","p","id","needCredentials","disabled","fvFormRuleSets","path","rules","computed","mapGetters","fvExtraRules","providerNameValidator","$store","getters","providerVersionValidator","urlValidator","map","label","isCreate","_CREATE","_EDIT","_this$value","_this$value2","methods","defaultsFromCoreProvider","getSpecFromCoreSecret","set","clone","generateName","_this$coreProviderSec","coreProviderSecretData","FEATURES_KEYS","forEach","EXP_CLUSTER_RESOURCE_SET","CLUSTER_TOPOLOGY","EXP_MACHINE_POOL","randomStr","toLowerCase","undefined","inStore","NAMESPACE","hashPromises","dispatch","SECRET","RANCHER_TURTLES_SYSTEM_NAMESPACE","RANCHER_TURTLES_SYSTEM_NAME","opt","watch","force","allHash","btnCb","_this$value$spec","clear","$refs","providercruresource","emitOrRoute","component","SelectIconGrid","ProviderConfig","componentTestid","route","$route","query","SUB_TYPE","out","addType","description","icon","require","providerType","obj","$router","applyQuery","$emit","webpackContext","req","webpackContextResolve","__webpack_require__","o","Error","code","keys","resolve","openAPIV3SchemaValidators","openAPIV3Schema","exclusiveMinimum","exclusiveMaximum","maxItems","maxLength","maximum","minItems","minLength","minimum","pattern","uniqueItems","requiredFields","format","val","Number","max","min","length","regexValidator","RegExp","stringFormatValidators","filter","item","index","indexOf","toString","errorMessage","regexp","match","formRules","formRulesGenerator","wildcardHostname","isIpv4","isValidCIDR","isValidMac","isDefined","isEmpty","versionTest","ending","CP_VERSIONS","join","versionValidator","test","hostValidator","portValidator","isNaN","cidrValidator","cidrArrayValid","arr","every","preselectedClass","clusterClasses","cancel","addSteps","clusterClassOptions","isView","topology","host","port","controlPlaneEndpoint","serviceDomain","apiServerPort","pods","services","clusterNetwork","podsCidrBlocksChanged","servicesCidrBlocksChanged","machineDeploymentOptions","defaultWorkerAddValue","workers","machineDeployments","machinePoolOptions","machinePools","clusterClassObj","variablesReady","variableDefinitions","_l","variableDef","refInFor","valueFor","machineDeploymentClass","machinePoolClass","updateVariables","updateErrors","newComponentType","rerenderKey","_vm$componentForType","componentForType","class","listComponent","tag","variable","schema","example","validateRequired","variableOptions","validationRules","setValue","directives","rawName","isValid","validationErrors","Vue","extend","Boolean","Array","neu","created","ArrayList","_this$variable","_this$schema","opts","enum","JSON","stringify","_this$variable2","isDefaultValue","defaulVal","isEqual","reduce","errs","rule","message","_this$componentForTyp","_this$componentForTyp2","parse","Variable","clusterClass","errorCount","handler","debounce","old","updateVariableDefaults","$nextTick","_this$clusterClass","allVariableDefinitions","variableNames","machineScopedJsonPatches","names","patch","_patch$valueFrom","valueFromVariable","valueFrom","parsedName","split","v","includes","_this$clusterClass2","matchName","matchKey","patches","definitions","definition","_definition$selector","matchMachines","selector","matchResources","jsonPatches","existingIdx","findIndex","acc","existingVar","_find","_neuDef$schema","_neuDef$schema2","neuDef","n","oldDefault","d","newDefault","def","_def$schema","_def$schema2","_refs","_refs2","_this$variableDefinit","refs","inputEl","$el","nextInputEl","_prevClass","rows","r","idx","get","keyField","$event","select","selected","noDataKey","controlPlaneName","controlPlaneKind","controlPlaneNamespace","machineDeploymentsCount","machineDeploymentsList","count","machinePoolsCount","machinePoolsList","_t","ClusterCardField","cloneData","metadata","annotations","_this$value3","controlPlane","_this$value4","kind","_this$value5","namespace","_this$value6","_this$value7","w","_this$value8","_this$value9","ClusterClassCard","row","resetSelected","el","capitalize","title","classOptions","queueUpdate","removeAllowed","remove","removeLabel","addAllowed","addLabel","defaultAddValue","input","slice","lastUpdateWasFromValue","_VIEW","deep","update","inputs","focus","removeAt","clusterIsAlreadyCreated","podsCidrBlocks","servicesCidrBlocks","cidrBlocks","_n","defaultTopologyConfig","defaultClusterNetwork","defaultCPEndpointConfig","WorkerItem","NetworkSection","ControlPlaneEndpointSection","ClusterClassVariables","CardGrid","store","stepClusterClass","subtext","descriptionKey","ready","weight","stepConfiguration","stepVariables","credentialId","credential","versionInfo","step","s","stepConfigurationRequires","modeOptions","cidr","_this$value10","_this$value11","_this$value12","_this$value13","_this$value14","nameValid","versionTestString","versionValid","controlPlaneEndpointPortValid","controlPlaneEndpointHostValid","machineDeploymentsValid","machinePoolsValid","networkPodsValid","networkServicesValid","networkValid","_this$value15","_this$value16","_this$clusterClassObj","_this$clusterClassObj2","_this$clusterClassObj3","currentObject","subtype","setClassInfo","x","unescape","setClass","setNamespace","_this$clusterClassObj4","clusterClassName","_this$clusterClassObj5","clusterClassNs","cruresource","params","_this$value$spec$clus","_this$value$spec$clus2","ClusterConfig","getClusterClasses","cc","classFromURL","QUERY_PARAMS","CLASS","curClass","curNs","classFromValue","escape","capiProviders","allClusterClasses","CAPI","CLUSTER_CLASS"],"mappings":"6LAAA,W,uBCCA,IAAIA,EAA8B,EAAQ,QAC1CC,EAAUD,GAA4B,GAEtCC,EAAQC,KAAK,CAACC,EAAOC,EAAI,mRAAoR,KAE7SD,EAAOF,QAAUA,G,uBCHjB,IAAII,EAAU,EAAQ,QACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,EAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOF,QAAUI,EAAQG,QAE5C,IAAIC,EAAM,EAAQ,QAAqEF,QAC1EE,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,oCCT5E,W,qBCCA,IAAIL,EAA8B,EAAQ,QAC1CC,EAAUD,GAA4B,GAEtCC,EAAQC,KAAK,CAACC,EAAOC,EAAI,uNAA0N,KAEnPD,EAAOF,QAAUA,G,oCCNjB,W,uBCGA,IAAII,EAAU,EAAQ,QACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,EAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOF,QAAUI,EAAQG,QAE5C,IAAIC,EAAM,EAAQ,QAAqEF,QAC1EE,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,2CCT5E,IAAIK,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,cAAc,CAACG,YAAY,iBAAiBC,MAAM,CAAC,KAAON,EAAIO,KAAK,qBAAoB,EAAK,mBAAmBP,EAAIQ,QAAQ,SAAWR,EAAIS,MAAM,OAAST,EAAIU,OAAO,SAAWV,EAAIW,SAAS,gBAAe,EAAK,wBAAuB,GAAMC,GAAG,CAAC,OAASZ,EAAIa,KAAK,OAASb,EAAIc,KAAK,cAAcd,EAAIe,WAAW,MAAQC,GAAGhB,EAAIU,OAASM,GAAGC,YAAYjB,EAAIkB,GAAG,CAAC,CAACC,IAAI,WAAWC,GAAG,WAAW,MAAO,CAAClB,EAAG,MAAM,CAACG,YAAY,QAAQgB,YAAY,CAAC,MAAQ,SAAS,CAACnB,EAAG,iBAAiB,CAACI,MAAM,CAAC,KAAON,EAAIW,SAAS,YAAY,KAAK,aAAa,QAAQ,mBAAmB,OAAOC,GAAG,CAAC,QAAUZ,EAAIsB,gBAAgB,KAAKC,OAAM,GAAOvB,EAAIQ,QAAS,CAACW,IAAI,cAAcC,GAAG,WAAW,MAAO,CAAClB,EAAG,SAASqB,OAAM,GAAM,MAAM,MAAK,IAAO,CAAEvB,EAAIQ,QAASN,EAAG,iBAAiB,CAACI,MAAM,CAAC,gBAAgBN,EAAIwB,aAAa,aAAaxB,EAAIyB,UAAU,KAAOzB,EAAIO,KAAK,SAAWP,EAAIQ,SAASkB,MAAM,CAACjB,MAAOT,EAAIS,MAAOkB,SAAS,SAAUC,GAAM5B,EAAIS,MAAMmB,GAAKC,WAAW,WAAW7B,EAAI8B,MAAM,IAEvhCC,EAAkB,G,wECFlBhC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAQJ,EAAIgC,QAAS9B,EAAG,WAAWA,EAAG,cAAc,CAAC+B,IAAI,sBAAsB5B,YAAY,WAAWC,MAAM,CAAC,YAAW,EAAM,KAAON,EAAIO,KAAK,oBAAoBP,EAAIkC,cAAc,SAAWlC,EAAIS,MAAM,OAAST,EAAImC,6BAA6B,gBAAe,EAAK,aAAanC,EAAIoC,UAAU,cAAcpC,EAAIqC,WAAW,mBAAmB,wBAAwBzB,GAAG,CAAC,KAAOZ,EAAIc,KAAK,OAASd,EAAIsC,aAAa,OAAStC,EAAIc,KAAK,MAAQE,GAAGhB,EAAIU,OAAOM,GAAGC,YAAYjB,EAAIkB,GAAG,CAAElB,EAAIuC,qBAAsB,CAACpB,IAAI,cAAcC,GAAG,WAAW,MAAO,CAAClB,EAAG,SAASqB,OAAM,GAAM,MAAM,MAAK,IAAO,CAACrB,EAAG,oBAAoB,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,YAAa,EAAK,oBAAoBP,EAAIwC,cAAc,yBAAwB,EAAK,aAAa,2BAA2B,mBAAmB,iCAAiC,oBAAoB,kCAAkC,0BAA0B,wCAAwC,MAAQ,CAACC,KAAKzC,EAAI0C,wBAAwB,mBAAmBhB,MAAM,CAACjB,MAAOT,EAAIS,MAAOkB,SAAS,SAAUC,GAAM5B,EAAIS,MAAMmB,GAAKC,WAAW,WAAY7B,EAAI2C,SAAUzC,EAAG,MAAM,CAACA,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,eAAe,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,YAAY,sBAAsB,kBAAkB,4BAA4B,SAAW,GAAG,MAAQP,EAAI0C,wBAAwB,cAAchB,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKH,KAAMd,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAM,OAAQhB,IAAMC,WAAW,sBAAsB,GAAG3B,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,gBAAgB,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,QAAUP,EAAI8C,YAAY,YAAY,2BAA2B,SAAW9C,EAAI+C,OAAO,SAAW,IAAIrB,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKI,KAAMrB,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAM,OAAQhB,IAAMC,WAAW,sBAAsB,GAAG3B,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,eAAe,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,YAAY,8BAA8B,kBAAkB,oCAAoC,MAAQP,EAAI0C,wBAAwB,gBAAgB,SAAW,IAAIhB,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKK,QAAStB,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAM,UAAWhB,IAAMC,WAAW,yBAAyB,KAAK3B,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,eAAe,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,YAAY,qCAAqC,kBAAkB,2CAA2C,MAAQP,EAAI0C,wBAAwB,yBAAyBhB,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKM,YAAYC,IAAKxB,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAKM,YAAa,MAAOtB,IAAMC,WAAW,iCAAiC,OAAO7B,EAAI8B,KAAM9B,EAAIoD,eAAgBlD,EAAG,MAAM,CAACG,YAAY,UAAUL,EAAI8B,KAAM9B,EAAIqD,aAAerD,EAAIsD,aAAcpD,EAAG,KAAK,CAACG,YAAY,SAAS,CAACH,EAAG,IAAI,CAACI,MAAM,CAAC,EAAI,iCAAiC,GAAGN,EAAI8B,KAAM9B,EAAIoD,eAAgBlD,EAAG,MAAM,CAACA,EAAG,KAAK,CAACG,YAAY,SAAS,CAACH,EAAG,IAAI,CAACI,MAAM,CAAC,EAAI,0CAA0C,GAAGJ,EAAG,mBAAmB,CAACG,YAAY,QAAQC,MAAM,CAAC,KAAON,EAAIO,KAAK,SAAWP,EAAIuD,SAAS,OAASvD,EAAIwD,iBAAiB,eAAexD,EAAIyD,UAAU/B,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKc,YAAYC,oCAAqChC,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAKc,YAAa,sCAAuC9B,IAAMC,WAAW,iEAAiE,GAAG7B,EAAI8B,KAAO9B,EAAIuC,qBAA6mDvC,EAAI8B,KAA3lD5B,EAAG,MAAM,CAAEF,EAAI4D,iBAAkB1D,EAAG,SAAS,CAACI,MAAM,CAAC,MAAQ,SAAS,CAACN,EAAI6D,GAAG,IAAI7D,EAAI8D,GAAG9D,EAAI+D,EAAE,yBAAyB,OAAO/D,EAAI8B,KAAM9B,EAAIqD,YAAanD,EAAG,MAAM,CAACG,YAAY,SAAS,CAACH,EAAG,KAAK,CAACG,YAAY,SAAS,CAACH,EAAG,IAAI,CAACI,MAAM,CAAC,EAAI,mCAAmC,GAAGJ,EAAG,WAAW,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,MAAQP,EAAI+D,EAAE,8CAA8CrC,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKoB,SAASC,mBAAoBtC,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAKoB,SAAU,qBAAsBpC,IAAMC,WAAW,4CAA4C3B,EAAG,WAAW,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,MAAQP,EAAI+D,EAAE,2CAA2CrC,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKoB,SAASE,gBAAiBvC,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAKoB,SAAU,kBAAmBpC,IAAMC,WAAW,yCAAyC3B,EAAG,WAAW,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,MAAQP,EAAI+D,EAAE,uCAAuCrC,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKoB,SAASG,YAAaxC,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAKoB,SAAU,cAAepC,IAAMC,WAAW,sCAAsC,GAAG7B,EAAI8B,KAAM9B,EAAIsD,aAAcpD,EAAG,MAAM,CAACA,EAAG,KAAK,CAACA,EAAG,IAAI,CAACI,MAAM,CAAC,EAAI,oCAAoC,GAAGJ,EAAG,WAAW,CAACI,MAAM,CAAC,YAAYN,EAAI+D,EAAE,+BAA+B,KAAO/D,EAAIO,KAAK,sBAAqB,EAAK,iBAAgB,EAAM,cAAa,EAAM,eAAc,EAAK,gBAAe,EAAK,yBAAwB,GAAMmB,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKwB,UAAWzC,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAM,YAAahB,IAAMC,WAAW,2BAA2B,GAAG7B,EAAI8B,MAAM,IAAa,IAEliKC,EAAkB,G,gMCqBtB,MAAMsC,EAAkB,CACtBJ,oBAAoB,EACpBC,iBAAoB,EACpBC,aAAoB,GAEhBG,EAAmB,GACnBC,EAAc,CAClB9B,KAAc,GACdO,KAAc,iBACdwB,aAAc,CAAE/B,KAAM,IACtBiB,YAAc,CAAEC,oCAAqC,KAEjDc,EAAqB,CACzBhC,KAAc,GACdO,KAAc,iBACdwB,aAAc,CAAE/B,KAAM,IACtBiB,YAAc,CAAEC,oCAAqC,IACrDT,YAAc,CAAEC,IAAK,IACrBF,QAAc,IAGVyB,EAAgB,CAAC,iBAAkB,YAAa,eAAgB,SAavDC,mCAAgB,CAC7BC,WAAY,CACVC,mBACAC,eACAC,yBACAC,wBACAC,gBACAC,gBACAC,oBACAC,qBACAC,eAEFC,OAAQ,CAACC,OAAgBC,QACzBC,MAAY,CACVlF,KAAM,CACJyC,KAAU0C,OACVC,UAAU,GAEZlF,MAAO,CACLuC,KAAU4C,OACVD,UAAU,GAEZpC,SAAU,CACRP,KAAU0C,OACVC,UAAU,IAGdE,cACE5F,KAAK6F,kBAAkBC,KAAMC,IAC3B/F,KAAKuC,cAAgBwD,EAAKC,YAAc,GACxChG,KAAKiG,mBAAqBF,EAAKE,oBAAsB,GACrDjG,KAAKkG,YACLlG,KAAK+B,SAAU,IACdoE,MAAOC,IACRpG,KAAKS,OAAOnB,KAAK8G,GACjBpG,KAAKkG,YACLlG,KAAK+B,SAAU,KAGnBsE,OACE,MAAMC,EAA4BC,OAAeC,KAAKC,GAAKA,EAAEC,KAAO1G,KAAKsD,WAAa,CACpFqD,iBAAiB,EAAOC,UAAU,EAAOF,GAAI,KAG/C,MAAO,CACL3E,SAAoB,EACpB8E,eAAyB,CACvB,CAAEC,KAAM,gBAAiBC,MAAO,CAAC,SACjC,CAAED,KAAM,YAAaC,MAAO,CAAC,aAC7B,CAAED,KAAM,eAAgBC,MAAO,CAAC,YAChC,CAAED,KAAM,uBAAwBC,MAAO,CAAC,SAE1CxE,cAAuB,GACvBY,gBAAmC,OAAfmD,QAAe,IAAfA,OAAe,EAAfA,EAAiBK,mBAAmB,IAI5DK,SAAU,IACLC,eAAW,CAAC,eACfC,eACE,MAAO,CACL1E,KAAS2E,eAAsBnH,KAAKoH,OAAOC,QAAQ,WACnDrE,QAASsE,eAAyBtH,KAAKoH,OAAOC,QAAQ,UAAWrH,KAAK0C,UACtEQ,IAASqE,eAAavH,KAAKoH,OAAOC,QAAQ,aAG9CxE,cACE,OAAO4B,EAAc+C,IAAKzE,IAAe,CAAC0E,MAAOzH,KAAK8D,EAAE,sBAAsBf,WAAevC,MAAOuC,MAEtGS,WACE,QAASxD,KAAKQ,MAAMmC,KAAKc,YAAYC,sCAAwC1D,KAAKmD,gBAEpFuE,WACE,OAAO1H,KAAKM,OAASqH,QAEvB7E,SACE,OAAO9C,KAAKM,OAASsH,QAEvBxE,cAAW,IAAAyE,EACT,QAAmB,QAAXA,EAAC7H,KAAKQ,aAAK,IAAAqH,GAAM,QAANA,EAAVA,EAAYlF,YAAI,IAAAkF,IAAhBA,EAAkB9D,WAE7BV,eAAY,IAAAyE,EACV,QAAmB,QAAXA,EAAC9H,KAAKQ,aAAK,IAAAsH,GAAM,QAANA,EAAVA,EAAYnF,YAAI,IAAAmF,IAAhBA,EAAkB/D,WAE7BrB,WACE,MAAyB,WAAlB1C,KAAKsD,UAEdK,mBACE,OAAO3D,KAAK8C,SAAW9C,KAAKoD,aAAepD,KAAKqD,eAElDf,uBACE,OAAOtC,KAAKmD,iBAAmBnD,KAAKQ,MAAMmC,KAAKc,YAAYC,sCAG/DqE,QAAU,CACR7B,YACE,IAAMlG,KAAKQ,MAAMmC,KAAO,CACtB,MAAMqF,EAA2BhI,KAAKiI,wBAEf,WAAlBjI,KAAKsD,UACR4E,eAAIlI,KAAKQ,MAAO,OAAQ,IAAK2H,eAAM7D,MAAiB0D,IACpDE,eAAIlI,KAAKQ,MAAMmC,KAAM,OAAQ3C,KAAKsD,WAElC4E,eAAIlI,KAAKQ,MAAO,OAAQ,IAAK2H,eAAM3D,MAAwBwD,IAG1DhI,KAAKQ,MAAMmC,KAAK4B,aAAa/B,MAChC0F,eAAIlI,KAAKQ,MAAMmC,KAAK4B,aAAc,OAAQvE,KAAKoI,aAAapI,KAAKsD,YAGrE2E,wBAAqB,IAAAI,EACnB,MAAMC,EAAgD,QAA1BD,EAAGrI,KAAKiG,0BAAkB,IAAAoC,OAAA,EAAvBA,EAAyBhC,KAExD,GAAIiC,EAAwB,CAC1B,MAAMC,EAAgB,CAAC,2BAA4B,mBAAoB,oBAEjEpE,EAAYgE,eAAMG,GAMxB,OAJAC,EAAcC,QAAStH,WACdiD,EAAUjD,KAGZ,CACL6C,SAAU,CACRC,mBAAwE,aAApDsE,EAAuBG,yBAC3CxE,gBAAgE,aAA5CqE,EAAuBI,iBAC3CxE,YAAgE,aAA5CoE,EAAuBK,kBAE7CxE,aAIJ,MAAO,CACLJ,SAAWoE,eAAM/D,GACjBD,UAAWgE,eAAM9D,KAGrB+D,aAAa5F,GACX,OAAOA,EAAO,GAAIA,iBAAsBoG,eAAU,GAAGC,qBAAmBC,GAE1E,wBACE,MAAMC,EAAU/I,KAAKoH,OAAOC,QAAQ,gBAAgB2B,SAC9C,OAAE5B,GAAWpH,KACbiJ,EAAe,CACnBjD,WAAoBoB,EAAO8B,SAAaH,EAAJ,WAAwB,CAAEhG,KAAMiG,SACpE/C,mBAAoBmB,EAAO8B,SAAS,kBAAmB,CACrDnG,KAAMoG,OAAQzC,GAAI,GAAI0C,UAAsCC,SAAgCC,IAAK,CAAEC,OAAO,EAAOC,OAAO,MAI5H,aAAaC,eAAQR,IAGvB,mBAAmBS,GAAe,IAAAC,EAC3B3J,KAAKS,QACRmJ,eAAM5J,KAAKS,QAEPT,KAAKmD,gBAAkC,QAAhBwG,EAAC3J,KAAKQ,MAAMmC,YAAI,IAAAgH,GAAa,QAAbA,EAAfA,EAAiBlG,mBAAW,IAAAkG,GAA5BA,EAA8BjG,sCAC1D1D,KAAKQ,MAAMmC,KAAKc,YAAc,MAEhC,UACQzD,KAAKY,KAAK8I,EAAO,MACvB,MAAOtD,GACPpG,KAAKS,OAAOnB,KAAK8G,GACjBsD,GAAM,KAGVnG,mBACOvD,KAAK6J,MAAMC,qBACd9J,KAAK6J,MAAMC,oBAAoBC,kBClOma,I,YCOtcC,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,E,QCGAtF,+BAAgB,CAC7BlC,KAAM,iBAENmC,WAAY,CACVC,mBACAqF,sBACAC,kBAGF7E,OAAQ,CAACC,QAETE,MAAO,CAELhF,MAAO,CACLuC,KAAS4C,OACThG,QAAS,MAOXwK,gBAAiB,CACfpH,KAAS0C,OACT9F,QAAS,yBAGbiG,cAAW,IAAAiC,EACM,QAAfA,EAAK7H,KAAKQ,aAAK,IAAAqH,GAAM,QAANA,EAAVA,EAAYlF,YAAI,IAAAkF,GAAhBA,EAAkBrF,MACrBxC,KAAKc,WAAWd,KAAKQ,MAAMmC,KAAKH,OAIpC6D,OACE,MAAM+D,EAAQpK,KAAKqK,OACb9J,GAA8B,OAAL6J,QAAK,IAALA,OAAK,EAALA,EAAOE,MAAMC,UAAa,KAEzD,MAAO,CAAEhK,YAGXyG,SAAU,CACRtG,WACE,MAAM8J,EAAsB,GACtBnD,EAAUrH,KAAKoH,OAAOC,QAM5B,OAJc,OAAdd,aAAc,IAAdA,eAAgBiC,QAASlF,IACvBmH,EAAQnH,EAASoD,GAAIpD,EAASsD,YAGzB4D,EAEP,SAASC,EAAQ/D,EAAYE,GAAW,GACtC,MAAMa,EAAQJ,EAAQ,qBAAqB,qBAAsBX,KAAQ,KAAMA,GACzEgE,EAAcrD,EAAQ,qBAAqB,gCAAiCX,KAAQ,KAAM,IAChG,IAAIiE,EAEJ,IACEA,EAAOC,UAAQ,KAAmClE,SAClD,MAAO3F,GACP,IACE4J,EAAOC,UAAQ,KAAkClE,SACjD,MAAO3F,GACP4J,EAAOC,EAAQ,SAInB,MAAMC,EAA6B,CACjCnE,KACAe,QACAiD,cACAC,OACA/D,YAGF4D,EAAIlL,KAAKuL,MAKf9C,QAAS,CAEP1G,YAAYyJ,GACV,MAAMpE,EAAKoE,EAAIpE,GAEf1G,KAAK+K,QAAQC,WAAW,CAAE,CAACT,QAAW7D,IACtC1G,KAAKc,WAAW4F,IAGlB5F,WAAWiC,GACT/C,KAAKO,QAAUwC,EACf/C,KAAKiL,MAAM,cAAejL,KAAKoH,OAAOC,QAAQ,qBAAqB,qBAAsBtE,KAAU,KAAMA,QC/GkV,ICQ7b,G,UAAY,eACd,EACAjD,EACAgC,GACA,EACA,KACA,KACA,OAIa,e,8BChBf,IAAIrC,EAAU,EAAQ,QACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,EAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOF,QAAUI,EAAQG,QAE5C,IAAIC,EAAM,EAAQ,QAAqEF,QAC1EE,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,uBCR5E,IAAIL,EAA8B,EAAQ,QAC1CC,EAAUD,GAA4B,GAEtCC,EAAQC,KAAK,CAACC,EAAOC,EAAI,0FAA2F,KAEpHD,EAAOF,QAAUA,G,uBCNjB,IAAImI,EAAM,CACT,eAAgB,OAChB,sBAAuB,OACvB,gBAAiB,QAIlB,SAAS0D,EAAeC,GACvB,IAAIzE,EAAK0E,EAAsBD,GAC/B,OAAOE,EAAoB3E,GAE5B,SAAS0E,EAAsBD,GAC9B,IAAIE,EAAoBC,EAAE9D,EAAK2D,GAAM,CACpC,IAAIpK,EAAI,IAAIwK,MAAM,uBAAyBJ,EAAM,KAEjD,MADApK,EAAEyK,KAAO,mBACHzK,EAEP,OAAOyG,EAAI2D,GAEZD,EAAeO,KAAO,WACrB,OAAO9F,OAAO8F,KAAKjE,IAEpB0D,EAAeQ,QAAUN,EACzB7L,EAAOF,QAAU6L,EACjBA,EAAexE,GAAK,Q,uBCxBpB,IAAIc,EAAM,CACT,qBAAsB,OACtB,eAAgB,OAChB,wBAAyB,OACzB,kBAAmB,OACnB,wBAAyB,OACzB,kBAAmB,OACnB,wBAAyB,OACzB,kBAAmB,OACnB,YAAa,OACb,oBAAqB,OACrB,cAAe,OACf,sBAAuB,OACvB,gBAAiB,OACjB,uBAAwB,OACxB,iBAAkB,OAClB,oBAAqB,OACrB,cAAe,OACf,sBAAuB,OACvB,gBAAiB,OACjB,yBAA0B,OAC1B,mBAAoB,OACpB,eAAgB,OAChB,2BAA4B,OAC5B,qBAAsB,OACtB,sBAAuB,OACvB,gBAAiB,OACjB,iBAAkB,OAClB,YAAa,OACb,kBAAmB,OACnB,YAAa,OACb,eAAgB,OAChB,wBAAyB,OACzB,kBAAmB,OACnB,kBAAmB,OACnB,wBAAyB,OACzB,kBAAmB,OACnB,eAAgB,OAChB,kBAAmB,OACnB,YAAa,OACb,yBAA0B,OAC1B,mBAAoB,OACpB,eAAgB,OAChB,wBAAyB,OACzB,kBAAmB,OACnB,sBAAuB,OACvB,uBAAwB,OACxB,iBAAkB,OAClB,gBAAiB,OACjB,kBAAmB,OACnB,YAAa,OACb,wBAAyB,OACzB,kBAAmB,OACnB,eAAgB,OAChB,wBAAyB,OACzB,kBAAmB,OACnB,kBAAmB,OACnB,YAAa,OACb,eAAgB,OAChB,iBAAkB,OAClB,oBAAqB,OACrB,4BAA6B,OAC7B,qBAAsB,OACtB,eAAgB,OAChB,2BAA4B,OAC5B,qBAAsB,OACtB,mBAAoB,OACpB,aAAc,OACd,wBAAyB,OACzB,kBAAmB,OACnB,YAAa,OACb,aAAc,OACd,kBAAmB,OACnB,yBAA0B,OAC1B,mBAAoB,OACpB,4BAA6B,OAC7B,sBAAuB,QAIxB,SAAS0D,EAAeC,GACvB,IAAIzE,EAAK0E,EAAsBD,GAC/B,OAAOE,EAAoB3E,GAE5B,SAAS0E,EAAsBD,GAC9B,IAAIE,EAAoBC,EAAE9D,EAAK2D,GAAM,CACpC,IAAIpK,EAAI,IAAIwK,MAAM,uBAAyBJ,EAAM,KAEjD,MADApK,EAAEyK,KAAO,mBACHzK,EAEP,OAAOyG,EAAI2D,GAEZD,EAAeO,KAAO,WACrB,OAAO9F,OAAO8F,KAAKjE,IAEpB0D,EAAeQ,QAAUN,EACzB7L,EAAOF,QAAU6L,EACjBA,EAAexE,GAAK,Q,uBC9FpB,IAAIjH,EAAU,EAAQ,QACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,EAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOF,QAAUI,EAAQG,QAE5C,IAAIC,EAAM,EAAQ,QAAqEF,QAC1EE,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCT5EF,EAAOF,QAAU,IAA0B,2B,qBCC3C,IAAID,EAA8B,EAAQ,QAC1CC,EAAUD,GAA4B,GAEtCC,EAAQC,KAAK,CAACC,EAAOC,EAAI,iDAAkD,KAE3ED,EAAOF,QAAUA,G,uBCNjBE,EAAOF,QAAU,IAA0B,kC,qBCA3CE,EAAOF,QAAU,IAA0B,4B,oCCA3C,W,qBCCA,IAAID,EAA8B,EAAQ,QAC1CC,EAAUD,GAA4B,GAEtCC,EAAQC,KAAK,CAACC,EAAOC,EAAI,+SAAgT,KAEzUD,EAAOF,QAAUA,G,kCCJjB,+bAcO,MAAMsM,EAA4B,SAAS7H,GAAgB,IAAE5C,EAAM,SAA8B0K,GACtG,MAAM,iBACJC,EAAgB,iBAChBC,EAAgB,SAChBC,EAAQ,UACRC,EAAS,QACTC,EAAO,SACPC,EAAQ,UACRC,EAAS,QACTC,EAAO,QACPC,EAAO,YACPC,EACA5G,SAAU6G,EAAc,OACxBC,GACEZ,EAEEpB,EAAM,GA+CZ,OA7CIyB,IACEH,EACFtB,EAAIlL,KAAMmN,GAAyBC,OAAOD,IAAQC,OAAOT,GAAWnI,EAAE,+BAAgC,CAAE5C,MAAK+K,iBAAanD,GAE1H0B,EAAIlL,KAAMmN,GAAyBC,OAAOD,GAAOC,OAAOT,GAAWnI,EAAE,sBAAuB,CAAE5C,MAAKyL,IAAKV,SAAanD,SAIzGA,IAAZsD,IACEP,EACFrB,EAAIlL,KAAMmN,GAAyBC,OAAOD,IAAQC,OAAON,GAAWtI,EAAE,+BAAgC,CAAE5C,MAAKkL,iBAAatD,GAE1H0B,EAAIlL,KAAMmN,GAAyBC,OAAOD,GAAOC,OAAON,GAAWtI,EAAE,sBAAuB,CAAE5C,MAAK0L,IAAKR,SAAatD,SAGvGA,IAAdqD,GACF3B,EAAIlL,KAAMmN,GAAgBA,GAAOA,EAAII,OAASH,OAAOP,GAAarI,EAAE,uBAAwB,CAAE5C,MAAK0L,IAAKT,SAAerD,GAErHkD,GACFxB,EAAIlL,KAAMmN,GAAgBA,GAAOA,EAAII,OAASH,OAAOV,GAAalI,EAAE,uBAAwB,CAAE5C,MAAKyL,IAAKX,SAAelD,GAErHiD,GACFvB,EAAIlL,KAAMmN,GAAeA,GAAOA,EAAII,OAASd,EAAWjI,EAAE,sBAAuB,CAAE5C,MAAK6K,kBAAcjD,QAGvFA,IAAboD,GACF1B,EAAIlL,KAAMmN,GAAeA,GAAOA,EAAII,OAASX,EAAWpI,EAAE,sBAAuB,CAAE5C,MAAKgL,kBAAcpD,GAGpGuD,GACF7B,EAAIlL,KAAKwN,EAAehJ,EAAE,qBAAsB,CAAE5C,MAAKmL,YAAY,IAAIU,OAAOV,KAG5EG,GAAUQ,EAAuBlJ,EAAG,CAAE5C,OAAOsL,IAC/ChC,EAAIlL,KAAK0N,EAAuBlJ,EAAG,CAAE5C,OAAOsL,IAG1CF,GACF9B,EAAIlL,KAAMmN,GAAeA,GAAOA,EAAIQ,OAAO,CAACC,EAAMC,IAAUV,EAAIW,QAAQF,KAAUC,GAAON,OAAS/I,EAAE,yBAA0B,CAAE5C,aAAS4H,GAGvIyD,GACF/B,EAAIlL,KAAMmN,GAAaF,EAAe/F,KAAMtF,QAA6B4H,IAAb2D,EAAIvL,IAAsB4C,EAAE,4BAA6B,CAAE5C,MAAKqL,eAAgBA,EAAec,kBAAgBvE,GAGtK0B,GAGHsC,EAAiB,SAASQ,EAAsBC,GACpD,OAAQd,GAAgBA,IAAQA,EAAIe,MAAMD,GAAUD,OAAexE,GAY/DkE,EAAyB,SAASlJ,GAAgB,IAAE5C,EAAM,SAA8BsL,GAC5F,MAAMiB,EAAYC,eAAmB5J,EAAG,CAAE5C,QACpCoM,EAAexJ,EAAE,0BAA2B,CAAE5C,MAAKsL,WAIzD,OAAQA,GACR,IAAK,WACH,OAAQC,GAAgBgB,EAAUE,iBAAiBlB,GACrD,IAAK,OACH,OAAQA,GAAgBA,IAAQmB,eAAOnB,GAAOa,OAAexE,EAC/D,IAAK,OACH,OAAQ2D,GAAgBA,IAAQoB,eAAYpB,GAAOa,OAAexE,EACpE,IAAK,MACH,OAAQ2D,GAAgBA,IAAQqB,eAAWrB,GAAOa,OAAexE,EACnE,IAAK,OACH,OAAOgE,EAAeQ,EAAc,uEACtC,IAAK,QACH,OAAOR,EAAeQ,EAAc,wEACtC,IAAK,QACH,OAAOR,EAAeQ,EAAc,8EACtC,IAAK,QACH,OAAOR,EAAeQ,EAAc,8EACtC,QACE,SAISS,EAAatB,GAAcA,IAAe,IAARA,IAAmBuB,IAAQvB,GAE7DwB,EAAc,SAASnK,EAAgBf,GAClD,IAAImL,EAAS,GAMb,OAJIC,OAAYpL,KACdmL,EAAS,OAAQC,OAAYpL,GAAkCqL,KAAK,SAG/D,IAAIrB,OAAO,mBAAoBmB,OAG3BG,EAAmB,SAASvK,EAAgBf,GACvD,MAAMuL,EAAOL,EAAYnK,EAAGf,GAE5B,OAAO+J,EAAehJ,EAAE,sBAAuBwK,IAGpCC,EAAgB,SAASzK,GACpC,OAAOkJ,EAAuBlJ,EAAG,CAAE5C,IAAK,QAAU,aAGvCsN,EAAgB,SAAS1K,GACpC,OAAQ2I,GAAgBA,GAAOgC,MAAMhC,GAAO3I,EAAE,wBAAqBgF,GAGxD4F,EAAgB,SAAS5K,GACpC,OAAOkJ,EAAuBlJ,EAAG,CAAE5C,IAAK,SAAW,SAExCyN,EAAiB,SAASC,GACrC,OAAOA,EAAIC,MAAO3B,GACTW,eAAYX,KAGV3F,EAAe,SAASzD,GACnC,OAAQ2I,GAAgBA,IAAQA,EAAIe,MAAM,qBAAuB1J,EAAE,uBAAoBgF,GAG5ExB,EAA2B,SAASxD,EAAgB4B,GAC/D,OAAQ+G,GAAiB/G,IAAa+G,GAASA,IAAQA,EAAIe,MAAM,wLAA2L1J,EAAE,2BAAwBgF,GAG3Q3B,EAAwB,SAASrD,GAC5C,OAAQ2I,GAAiBA,GAAQA,EAAIe,MAAM,0EAA8F1E,EAAvBhF,EAAE,qB,qBCnKtH,IAAIrE,EAAU,EAAQ,QACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,EAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOF,QAAUI,EAAQG,QAE5C,IAAIC,EAAM,EAAQ,QAAqEF,QAC1EE,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,kCCT5E,W,qBCCA,IAAIL,EAA8B,EAAQ,QAC1CC,EAAUD,GAA4B,GAEtCC,EAAQC,KAAK,CAACC,EAAOC,EAAI,yNAA0N,KAEnPD,EAAOF,QAAUA,G,qBCHjB,IAAII,EAAU,EAAQ,QACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,EAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOF,QAAUI,EAAQG,QAE5C,IAAIC,EAAM,EAAQ,QAAqEF,QAC1EE,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,mCCT5E,W,qBCCA,IAAIL,EAA8B,EAAQ,QAC1CC,EAAUD,GAA4B,GAEtCC,EAAQC,KAAK,CAACC,EAAOC,EAAI,w3DAAy3D,KAEl5DD,EAAOF,QAAUA,G,yCCNjB,IAAIS,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAAEF,EAAIgC,QAAS9B,EAAG,WAAWA,EAAG,MAAM,CAAEF,EAAI+O,iBAAkB7O,EAAG,gBAAgB,CAACI,MAAM,CAAC,gBAAgBN,EAAIwB,aAAa,aAAaxB,EAAIyB,UAAU,KAAOzB,EAAIO,KAAK,oBAAoBP,EAAI+O,iBAAiB,kBAAkB/O,EAAIgP,gBAAgBtN,MAAM,CAACjB,MAAOT,EAAIS,MAAOkB,SAAS,SAAUC,GAAM5B,EAAIS,MAAMmB,GAAKC,WAAW,WAAW3B,EAAG,cAAc,CAACG,YAAY,iBAAiBC,MAAM,CAAC,KAAON,EAAIO,KAAK,qBAAoB,EAAK,SAAWP,EAAIS,MAAM,OAAST,EAAIU,OAAO,gBAAe,EAAK,wBAAuB,GAAME,GAAG,CAAC,OAASZ,EAAIa,KAAK,OAASb,EAAIiP,OAAO,MAAQjO,GAAGhB,EAAIU,OAASM,GAAGC,YAAYjB,EAAIkB,GAAG,CAAC,CAACC,IAAI,cAAcC,GAAG,WAAW,MAAO,CAAClB,EAAG,SAASqB,OAAM,MAAS,CAACrB,EAAG,gBAAgB,CAACI,MAAM,CAAC,gBAAgBN,EAAIwB,aAAa,aAAaxB,EAAIyB,UAAU,KAAOzB,EAAIO,KAAK,kBAAkBP,EAAIgP,gBAAgBtN,MAAM,CAACjB,MAAOT,EAAIS,MAAOkB,SAAS,SAAUC,GAAM5B,EAAIS,MAAMmB,GAAKC,WAAW,YAAY,IAAI,IAAI,IAEp/BE,EAAkB,G,6FCFlBhC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAQJ,EAAIgC,QAAS9B,EAAG,WAAWA,EAAG,cAAc,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,gBAAe,EAAK,SAAWP,EAAIS,MAAM,OAAST,EAAIU,OAAO,qBAAoB,EAAK,gBAAe,EAAK,aAAaV,EAAIoC,UAAU,cAAcpC,EAAIqC,WAAW,MAAQrC,EAAIkP,SAAS,mBAAmB,uBAAuBtO,GAAG,CAAC,KAAOZ,EAAIc,KAAK,MAAQE,GAAGhB,EAAIU,OAASM,EAAE,OAAShB,EAAIsC,aAAa,OAAStC,EAAIiP,QAAQhO,YAAYjB,EAAIkB,GAAG,CAAC,CAACC,IAAI,mBAAmBC,GAAG,WAAW,MAAO,CAAClB,EAAG,WAAW,CAACI,MAAM,CAAC,KAAON,EAAImP,oBAAoB,YAAY,KAAK,aAAa,QAAQ,mBAAmB,OAAOvO,GAAG,CAAC,QAAUZ,EAAIsB,iBAAiBC,OAAM,GAAM,CAACJ,IAAI,oBAAoBC,GAAG,WAAW,MAAO,CAAGpB,EAAIoP,OAA0ZpP,EAAI8B,KAAtZ5B,EAAG,oBAAoB,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,YAAa,EAAM,aAAa,qBAAqB,mBAAmB,2BAA2B,oBAAoB,4BAA4B,0BAA0B,kCAAkC,MAAQ,CAACkC,KAAKzC,EAAI0C,wBAAwB,mBAAmBhB,MAAM,CAACjB,MAAOT,EAAIS,MAAOkB,SAAS,SAAUC,GAAM5B,EAAIS,MAAMmB,GAAKC,WAAW,WAAoB3B,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,KAAK,CAACA,EAAG,IAAI,CAACI,MAAM,CAAC,EAAI,iCAAiC,GAAGJ,EAAG,eAAe,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,YAAY,kCAAkC,SAAW,GAAG,MAAQP,EAAI0C,wBAAwB,0BAA0BhB,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKyM,SAASpM,QAAStB,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAKyM,SAAU,UAAWzN,IAAMC,WAAW,kCAAkC,GAAG3B,EAAG,MAAM,CAACG,YAAY,OAAO,CAACH,EAAG,KAAK,CAACA,EAAG,IAAI,CAACI,MAAM,CAAC,EAAI,8CAA8C,GAAGJ,EAAG,8BAA8B,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,MAAQ,CAAC+O,KAAKtP,EAAI0C,wBAAwB,kCAAmC6M,KAAKvP,EAAI0C,wBAAwB,oCAAqChB,MAAM,CAACjB,MAAOT,EAAIwP,qBAAsB7N,SAAS,SAAUC,GAAM5B,EAAIwP,qBAAqB5N,GAAKC,WAAW,2BAA2B,KAAK3B,EAAG,MAAM,CAACG,YAAY,eAAe,CAACH,EAAG,KAAK,CAACA,EAAG,IAAI,CAACI,MAAM,CAAC,EAAI,oCAAoC,GAAGJ,EAAG,iBAAiB,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,MAAQ,CAC7sEkP,cAAczP,EAAI0C,wBAAwB,qCAC1CgN,cAAc1P,EAAI0C,wBAAwB,qCAC1CiN,KAAM3P,EAAI0C,wBAAwB,4BAClCkN,SAAU5P,EAAI0C,wBAAwB,kCACrC9B,GAAG,CAAC,0BAA2B8L,GAAQ1M,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAKiN,eAAgB,gBAAiBlD,OAAOD,IAAQ,IAAI,yBAA0BA,GAAQ1M,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAKiN,eAAgB,gBAAiBnD,GAAK,2BAA2B1M,EAAI8P,sBAAsB,+BAA+B9P,EAAI+P,2BAA2BrO,MAAM,CAACjB,MAAOT,EAAI6P,eAAgBlO,SAAS,SAAUC,GAAM5B,EAAI6P,eAAejO,GAAKC,WAAW,qBAAqB,GAAG3B,EAAG,MAAM,CAACG,YAAY,eAAe,CAACH,EAAG,KAAK,CAACA,EAAG,IAAI,CAACI,MAAM,CAAC,EAAI,gCAAgCJ,EAAG,OAAO,CAACG,YAAY,YAAY,CAACL,EAAI6D,GAAG,QAAQ,GAAG3D,EAAG,MAAM,CAACG,YAAY,aAAa,CAAIL,EAAIgQ,yBAA0B9P,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,aAAa,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,MAAQP,EAAI+D,EAAE,iDAAiD,oBAAoB/D,EAAIiQ,sBAAsB,gBAAgBjQ,EAAIgQ,yBAAyB,qBAAoB,GAAMtO,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKyM,SAASa,QAAQC,mBAAoBxO,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAKyM,SAASa,QAAS,qBAAsBtO,IAAMC,WAAW,qDAAqD,GAAG7B,EAAI8B,KAAQ9B,EAAIoQ,mBAAoBlQ,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,aAAa,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,MAAQP,EAAI+D,EAAE,2CAA2C,oBAAoB/D,EAAIiQ,sBAAsB,gBAAgBjQ,EAAIoQ,mBAAmB,qBAAoB,GAAM1O,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKyM,SAASa,QAAQG,aAAc1O,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAKyM,SAASa,QAAS,eAAgBtO,IAAMC,WAAW,+CAA+C,GAAG7B,EAAI8B,WAAWP,OAAM,GAAM,CAACJ,IAAI,gBAAgBC,GAAG,WAAW,MAAO,CAAClB,EAAG,KAAK,CAACA,EAAG,IAAI,CAACI,MAAM,CAAC,EAAI,mCAAmC,GAAGJ,EAAG,wBAAwB,CAACI,MAAM,CAAC,gBAAgBN,EAAIsQ,iBAAiB1P,GAAG,CAAC,oBAAoBI,GAAGhB,EAAIuQ,eAAevP,GAAGU,MAAM,CAACjB,MAAOT,EAAIS,MAAMmC,KAAKyM,SAASjL,UAAWzC,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAMmC,KAAKyM,SAAU,YAAazN,IAAMC,WAAW,qCAAqCN,OAAM,QAEtiEQ,EAAkB,G,gDCPlBhC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,aAAa,CAAEL,EAAIwQ,qBAAuBxQ,EAAIwQ,oBAAoB1D,OAAQ,CAAC9M,EAAIyQ,GAAIzQ,EAAIwQ,qBAAqB,SAASE,EAAYjR,GAAG,MAAO,CAACS,EAAG,WAAW,CAACiB,IAAI,GAAGuP,EAAYjO,KAAOR,IAAOyO,EAAYjO,KAAf,SAA4BkO,UAAS,EAAKrQ,MAAM,CAAC,SAAWoQ,EAAY,MAAQ1Q,EAAI4Q,SAASF,GAAa,qBAAqB1Q,EAAI6Q,yBAA2B7Q,EAAI8Q,kBAAkBlQ,GAAG,CAAC,MAAQI,GAAGhB,EAAI+Q,gBAAgB/P,EAAG0P,GAAa,oBAAoB1Q,EAAIgR,gBAAiBhR,EAAIiR,iBAAiBP,EAAajR,GAAIS,EAAG,MAAM,CAACiB,IAAI,GAAG1B,KAAKO,EAAIkR,cAAc7Q,YAAY,kBAAkBL,EAAI8B,UAAS9B,EAAI8B,MAAM,IAE9rBC,EAAkB,G,iCCFlBhC,EAAS,WAAiB,IAAAoR,EAAKnR,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAQJ,EAAIoR,iBAAkBlR,EAAG,MAAM,CAACmR,MAAM,CAAC,MAASrR,EAAIsR,cAAe,eAA6C,kBAAT,QAApBH,EAAAnR,EAAIoR,wBAAgB,IAAAD,OAAA,EAApBA,EAAsB1O,MAAuB,CAAC,GAAGzC,EAAIoR,iBAAiB3O,OAAS,IAAO,CAAEzC,EAAIoR,iBAAkBlR,EAAGF,EAAIoR,iBAAiBnH,UAAU,CAACsH,IAAI,YAAYjR,MAAM,CAAC,MAAQN,EAAIS,MAAM,MAAQT,EAAIwR,SAAS/O,KAAK,YAAczC,EAAIyR,OAAOC,QAAQ,QAAU1R,EAAIyR,OAAO9G,YAAY,SAAW3K,EAAIwR,SAAS7L,UAAY3F,EAAI2R,iBAAiB,MAAQ3R,EAAIwR,SAAS/O,KAAK,QAAUzC,EAAI4R,gBAAgB,MAAS5R,EAAIsR,cAAsC,GAAtBtR,EAAI6R,gBAAqB,KAA2B,WAApB7R,EAAIyR,OAAOzO,MAAyC,YAApBhD,EAAIyR,OAAOzO,KAAqB,SAAW,QAAQpC,GAAG,CAAC,MAAQZ,EAAI8R,UAAU7Q,YAAYjB,EAAIkB,GAAG,CAAC,CAACC,IAAI,QAAQC,GAAG,WAAW,MAAO,CAAClB,EAAG,MAAM,CAACG,YAAY,eAAe,CAACH,EAAG,OAAO,CAACF,EAAI6D,GAAG7D,EAAI8D,GAAG9D,EAAIwR,SAAS/O,MAAM,KAAMzC,EAAIyR,OAAO9G,YAAazK,EAAG,IAAI,CAAC6R,WAAW,CAAC,CAACtP,KAAK,gBAAgBuP,QAAQ,kBAAkBvR,MAAOT,EAAIyR,OAAO9G,YAAa9I,WAAW,uBAAuBxB,YAAY,2BAA2BL,EAAI8B,KAAO9B,EAAIiS,QAAgMjS,EAAI8B,KAA3L5B,EAAG,IAAI,CAAC6R,WAAW,CAAC,CAACtP,KAAK,gBAAgBuP,QAAQ,kBAAkBvR,MAAOT,EAAIkS,iBAAiB7D,KAAK,KAAMxM,WAAW,+BAA+BxB,YAAY,4BAAqCkB,OAAM,IAAO,MAAK,EAAM,aAAavB,EAAI8B,KAAK5B,EAAG,MAAM,CAACG,YAAY,qBAAqB,GAAGL,EAAI8B,MAEl3CC,EAAkB,G,6FCcPoQ,MAAIC,OAAO,CACxB3P,KAAM,aAENgD,MAAO,CACL+L,SAAU,CACRxO,KAAU4C,OACVD,UAAU,GAGZlF,MAAO,CACLuC,KAAS,CAAC0C,OAAQE,OAAQyM,QAASC,MAAO3F,QAC1C/M,QAASA,IAAM,MAGjB+R,iBAAkB,CAChB3O,KAASqP,QACTzS,SAAS,IAIb4J,MAAO,CACLyI,QAAQM,GACNtS,KAAKiL,MAAM,oBAAqBqH,KAIpCC,UACOvS,KAAKgS,SACRhS,KAAKiL,MAAM,qBAAqB,IAIpCjE,SAAU,IACLC,eAAW,CAAEnD,EAAG,WAEnBqN,mBACE,MAAM,KAAEpO,GAAS/C,KAAKwR,OACtB,IAAIhH,EAEJ,GAAIxK,KAAK2R,gBACPnH,EAAM,CAAER,UAAW7E,OAAe3C,KAAM,iBAExC,OAAQO,GACR,IAAK,SACHyH,EAAM,CAAER,UAAW/E,OAAUzC,KAAM,gBACnC,MACF,IAAK,QACHgI,EAAM,CAAER,UAAWwI,OAAWhQ,KAAM,iBACpC,MACF,IAAK,SACHgI,EAAM,CAAER,UAAW9E,OAAc1C,KAAM,YACvC,MACF,IAAK,UACHgI,EAAM,CAAER,UAAW9E,OAAc1C,KAAM,YAEvC,MACF,IAAK,SACHgI,EAAM,CAAER,UAAW9E,OAAc1C,KAAM,YAEvC,MACF,IAAK,UACHgI,EAAM,CAAER,UAAWhF,OAAUxC,KAAM,gBAEnC,MACF,QACE,MAIJ,OAAOgI,GAGTgH,SAAM,IAAAiB,EACJ,OAAoB,QAApBA,EAAOzS,KAAKuR,gBAAQ,IAAAkB,GAAQ,QAARA,EAAbA,EAAejB,cAAM,IAAAiB,OAAA,EAArBA,EAAuB7G,iBAIhC+F,kBAAe,IAAAe,EACb,MAAMC,EAAkB,QAAdD,EAAG1S,KAAKwR,cAAM,IAAAkB,OAAA,EAAXA,EAAaE,KAE1B,OAAKD,GAASA,EAAK9F,OAIZ8F,EAAKnL,IAAK8B,GACO,kBAARA,EAAmBuJ,KAAKC,UAAUxJ,GAAOA,GAJhD,MAQXsI,kBAAe,IAAAmB,EACb,GAAI/S,KAAKgT,eACP,MAAO,GAET,MAAMlP,EAAI9D,KAAK8D,EACT0G,EAAMmB,eAA0B7H,EAAG,CAAE5C,IAAKlB,KAAKuR,SAAS/O,MAAQxC,KAAKwR,QAErE9L,EAAwB,QAAhBqN,EAAG/S,KAAKuR,gBAAQ,IAAAwB,OAAA,EAAbA,EAAerN,SAMhC,OAJIA,GAAY1F,KAAK0R,kBACnBlH,EAAIlL,KAAMmN,GAAcsB,eAAUtB,QAA+D3D,EAAxDhF,EAAE,sBAAuB,CAAE5C,IAAKlB,KAAKuR,SAAS/O,QAGlFgI,GAGTwI,iBACE,MAAMC,EAAYjT,KAAKwR,OAAO7R,QAE9B,YAAkBmJ,IAAdmK,GACKC,IAAQD,EAAWjT,KAAKQ,QAMnCwR,UACE,OAAQhS,KAAKiS,iBAAiBpF,QAGhCoF,mBACE,OAAOjS,KAAK4R,gBAAgBuB,OAAO,CAACC,EAAgBC,KAClD,MAAMC,EAAUD,EAAKrT,KAAKQ,OAM1B,OAJI8S,GACFF,EAAK9T,KAAKgU,GAGLF,GACN,KAGL/B,gBAAa,IAAAkC,EAAAC,EACX,MAAuC,mBAAX,QAArBD,EAAAvT,KAAKmR,wBAAgB,IAAAoC,OAAA,EAArBA,EAAuB/Q,OAA4D,kBAAX,QAArBgR,EAAAxT,KAAKmR,wBAAgB,IAAAqC,OAAA,EAArBA,EAAuBhR,QAIrFuF,QAAS,CACP8J,SAAS9Q,GACP,IAAIyJ,EAAMzJ,EAEV,MAAM,KAAEgC,GAAS/C,KAAKwR,OAEtB,GAAa,WAATzO,EACF,IACEyH,EAAMqI,KAAKY,MAAM1S,GACjB,OAEJf,KAAKiL,MAAM,QAAST,OCnK0a,I,wBCQhcR,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,EAAAA,E,QCRAkI,MAAIC,OAAO,CACxB3P,KAAM,wBAENmC,WAAY,CAAE+O,YAEdlO,MAAO,CACLmO,aAAc,CACZ5Q,KAAS4C,OACThG,QAASA,QAGXa,MAAO,CACLuC,KAASsP,MACT1S,QAASA,IACA,IAMXiR,uBAAwB,CACtB7N,KAAS0C,OACT9F,QAAS,MAGXkR,iBAAkB,CAChB9N,KAAS0C,OACT9F,QAAS,OAIb0G,OAEE,MAAO,CAAEuN,WAAY,EAAG3C,YAAarI,mBAGvCW,MAAO,CACLqK,WAAY,CACVC,QAASC,KAAS,SAAoBxB,GACpCtS,KAAKiL,MAAM,qBAAsBqH,KAChC,IAGL/B,oBAAoB+B,EAAKyB,GACvB/T,KAAKgU,uBAAuB1B,EAAKyB,GACjC/T,KAAKiU,UAAU,KACbjU,KAAKiR,YAAcrI,qBAKzB2J,UACEvS,KAAKgU,uBAAuBhU,KAAKuQ,oBAAqB,KAGxDvJ,SAAU,CACRuJ,sBAAmB,IAAA2D,EACjB,MAAMC,GAA0C,QAAjBD,EAAAlU,KAAK2T,oBAAY,IAAAO,GAAM,QAANA,EAAjBA,EAAmBvR,YAAI,IAAAuR,OAAA,EAAvBA,EAAyB/P,YAAa,GAErE,IAAKnE,KAAK4Q,yBAA2B5Q,KAAK6Q,iBACxC,OAAOsD,EAET,MAAMC,EAAgBpU,KAAKqU,yBAAyBlB,OAAO,CAACmB,EAAiBC,KAAc,IAAAC,EACzF,MAAMC,EAAyB,OAALF,QAAK,IAALA,GAAgB,QAAXC,EAALD,EAAOG,iBAAS,IAAAF,OAAA,EAAhBA,EAAkBjD,SAE5C,IAAKkD,EACH,OAAOH,EAIT,MAAMK,EAAaF,EAAkBG,MAAM,SAAS,GAMpD,MAJmB,YAAfD,GACFL,EAAMhV,KAAKqV,GAGNL,GACN,IAEH,OAAOH,EAAuBlH,OAAQ4H,GAA4BT,EAAcU,SAASD,EAAErS,QAG7F6R,2BAAwB,IAAAU,EACtB,IAAK/U,KAAK4Q,yBAA2B5Q,KAAK6Q,iBACxC,MAAO,GAET,MAAMrG,EAAM,GACNwK,EAAYhV,KAAK4Q,wBAA0B5Q,KAAK6Q,iBAChDoE,EAAWjV,KAAK4Q,uBAAyB,yBAA2B,mBAEpEsE,GAA2B,QAAjBH,EAAA/U,KAAK2T,oBAAY,IAAAoB,GAAM,QAANA,EAAjBA,EAAmBpS,YAAI,IAAAoS,OAAA,EAAvBA,EAAyBG,UAAW,GAcpD,OAZAA,EAAQ1M,QAAS/B,IACf,MAAM0O,GAAe,OAAD1O,QAAC,IAADA,OAAC,EAADA,EAAG0O,cAAe,GAEtCA,EAAY3M,QAAS4M,IAAmB,IAAAC,EACtC,MAAMC,GAA0B,OAAVF,QAAU,IAAVA,GAAoB,QAAVC,EAAVD,EAAYG,gBAAQ,IAAAF,GAAgB,QAAhBA,EAApBA,EAAsBG,sBAAc,IAAAH,GAAY,QAAZA,EAApCA,EAAuCJ,UAAS,IAAAI,OAAA,EAAhDA,EAAkDf,QAAS,GAE7EgB,EAAcR,SAASE,IACzBxK,EAAIlL,QAAQ8V,EAAWK,iBAKtBjL,IAIXzC,QAAS,CACP4I,SAASF,GACP,OAAQzQ,KAAKQ,MAAMgG,KAAM+K,GAAkBA,EAAS/O,OAASiO,EAAYjO,OAAS,IAAIhC,OAGxFsQ,gBAAgBrE,EAAUgE,GACxB,MAAMjG,EAAM,IAAIxK,KAAKQ,OACfkV,EAAc1V,KAAKQ,MAAMmV,UAAWpE,GAAkBA,EAAS/O,OAASiO,EAAYjO,MAEtFkT,GAAe,EACjBlL,EAAIkL,GAAalV,MAAQiM,EAEzBjC,EAAIlL,KAAK,CAAEkB,MAAOiM,EAAKjK,KAAMiO,EAAYjO,OAE3CxC,KAAKiL,MAAM,QAAST,IAItBwJ,uBAAuB1B,EAA6ByB,GAElD,MAAMvJ,EAAM,IAAIxK,KAAKQ,OAAO2S,OAAO,CAACyC,EAA4BC,KAAoC,IAAAC,EAAAC,EAAAC,EAClG,MAAMC,GAAU3D,GAAO,IAAI9L,KAAK0P,GAAKA,EAAE1T,OAASqT,EAAYrT,MAG5D,IAAKyT,EACH,OAAOL,EAET,MAAMO,EAA+D,QAArDL,GAAI/B,GAAO,IAAIvN,KAAK4P,GAAKA,EAAE5T,OAASqT,EAAYrT,aAAK,IAAAsT,GAAQ,QAARA,EAAlDA,EAAoDtE,cAAM,IAAAsE,GAAiB,QAAjBA,EAA1DA,EAA4DlK,uBAAe,IAAAkK,OAAA,EAA3EA,EAA6EnW,aAG7EmJ,IAAfqN,GAA4BN,EAAYrV,QAAU2V,UAC7CN,EAAYrV,MAErB,IAAI6V,EAA0B,QAAhBN,EAAGE,EAAOzE,cAAM,IAAAuE,GAAiB,QAAjBA,EAAbA,EAAenK,uBAAe,IAAAmK,OAAA,EAA9BA,EAAgCpW,QAcjD,MAV6C,aAA5B,QAAbqW,EAAAC,EAAOzE,cAAM,IAAAwE,GAAiB,QAAjBA,EAAbA,EAAepK,uBAAe,IAAAoK,OAAA,EAA9BA,EAAgCjT,OAAuBsT,IACzDA,GAAa,QAIIvN,IAAfuN,GAA6BR,EAAYrV,QAC3CqV,EAAYrV,MAAQ6V,GAEtBT,EAAItW,KAAKuW,GAEFD,GACN,IAGHtD,EAAI9J,QAAS8N,IAAO,IAAAC,EAAAC,EAClB,IAAIH,EAAuB,QAAbE,EAAGD,EAAI9E,cAAM,IAAA+E,GAAiB,QAAjBA,EAAVA,EAAY3K,uBAAe,IAAA2K,OAAA,EAA3BA,EAA6B5W,QAEJ,aAA5B,QAAV6W,EAAAF,EAAI9E,cAAM,IAAAgF,GAAiB,QAAjBA,EAAVA,EAAY5K,uBAAe,IAAA4K,OAAA,EAA3BA,EAA6BzT,OAAuBsT,IACtDA,GAAa,QAEIvN,IAAfuN,GAA6B7L,EAAIhE,KAAKqO,GAAKA,EAAErS,OAAS8T,EAAI9T,OAC5DgI,EAAIlL,KAAK,CAAEkD,KAAM8T,EAAI9T,KAAMhC,MAAO6V,MAItCrW,KAAK4T,WAAa,EAClB5T,KAAKiL,MAAM,QAAST,IAGtBuG,aAAaiB,GACNA,EAGHhS,KAAK4T,aAFL5T,KAAK4T,cAMT5C,iBAAiBP,EAAmCjR,GAAS,IAAAiX,EAAAC,EAAAC,EAC3D,MAAMC,EAAO5W,KAAK6J,MACZgN,EAA6C,QAAtCJ,EAAGG,EAASnG,EAAYjO,KAAhB,iBAA8B,IAAAiU,GAAK,QAALA,EAAnCA,EAAsC,UAAE,IAAAA,OAAA,EAAxCA,EAA0CK,IACpDC,EAAsE,QAA3DL,EAAGE,GAAwC,QAAnCD,EAAI3W,KAAKuQ,oBAAoB/Q,EAAI,UAAE,IAAAmX,OAAA,EAA/BA,EAAiCnU,MAArC,iBAAmD,IAAAkU,GAAK,QAALA,EAAxDA,EAA2D,UAAE,IAAAA,OAAA,EAA7DA,EAA+DI,IAEnF,QAAKC,IAIS,OAAPF,QAAO,IAAPA,OAAO,EAAPA,EAASG,cAAeD,EAAYC,eC1MgZ,ICQ7b,G,UAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,OAIa,I,QCnBXlX,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAQJ,EAAIkX,KAAKpK,OAAQ5M,EAAG,MAAM,CAACG,YAAY,aAAaL,EAAIyQ,GAAIzQ,EAAIkX,MAAM,SAASC,EAAEC,GAAK,OAAOlX,EAAG,MAAM,CAACiB,IAAInB,EAAIqX,IAAIF,EAAGnX,EAAIsX,UAAUhX,MAAM,CAAC,cAAcN,EAAIoK,gBAAkB,IAAMgN,GAAKxW,GAAG,CAAC,MAAQ,SAAS2W,GAAQ,OAAOvX,EAAIwX,OAAOL,EAAGC,MAAQ,CAAClX,EAAG,mBAAmB,CAACI,MAAM,CAAC,MAAQ6W,EAAEpM,IAAI,SAAWoM,EAAEM,aAAa,MAAK,GAAGvX,EAAG,MAAM,CAACG,YAAY,oBAAoB,CAACH,EAAG,KAAK,CAAC6R,WAAW,CAAC,CAACtP,KAAK,IAAIuP,QAAQ,MAAMvR,MAAOT,EAAI0X,UAAW7V,WAAW,mBAEzhBE,EAAkB,G,qBCFlBhC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,yBAAyBgR,MAAM,CAACoG,WAAYzX,EAAIyX,UAAUnX,MAAM,CAAC,cAAc,uBAAuB,CAACJ,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACL,EAAI6D,GAAG,IAAI7D,EAAI8D,GAAG9D,EAAIyC,MAAM,OAAOvC,EAAG,MAAM,CAACG,YAAY,eAAe,CAACH,EAAG,IAAI,CAACF,EAAI6D,GAAG7D,EAAI8D,GAAG9D,EAAI2K,kBAAkBzK,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,mBAAmB,CAACI,MAAM,CAAC,MAAQN,EAAI2X,iBAAiB,KAAO3X,EAAI+D,EAAE,6CAA6C7D,EAAG,mBAAmB,CAACI,MAAM,CAAC,MAAQN,EAAI4X,iBAAiB,KAAO5X,EAAI+D,EAAE,6CAA6C7D,EAAG,mBAAmB,CAACI,MAAM,CAAC,MAAQN,EAAI6X,sBAAsB,KAAO7X,EAAI+D,EAAE,mDAAmD,GAAG7D,EAAG,MAAM,CAACG,YAAY,YAAY,CAAEL,EAAI8X,wBAA0B,EAAG5X,EAAG,mBAAmB,CAACI,MAAM,CAAC,MAAQN,EAAI+X,uBAAuB,KAAO/X,EAAI+D,EAAE,gDAAgD,CAACiU,MAAOhY,EAAI8X,6BAA6B9X,EAAI8B,KAAM9B,EAAIiY,kBAAoB,EAAG/X,EAAG,mBAAmB,CAACI,MAAM,CAAC,MAAQN,EAAIkY,iBAAiB,KAAOlY,EAAI+D,EAAE,0CAA0C,CAACiU,MAAOhY,EAAIiY,uBAAuBjY,EAAI8B,MAAM,UAEpvCC,EAAkB,GCFlBhC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACG,YAAY,SAAS,CAACH,EAAG,MAAM,CAACG,YAAY,cAAc,CAACL,EAAImY,GAAG,QAAO,WAAW,MAAO,CAACnY,EAAI6D,GAAG,IAAI7D,EAAI8D,GAAG9D,EAAIyC,MAAM,UAAS,GAAGvC,EAAG,MAAM,CAACG,YAAY,SAAS,CAACL,EAAImY,GAAG,SAAQ,WAAW,MAAO,CAACnY,EAAI6D,GAAG,IAAI7D,EAAI8D,GAAG9D,EAAIS,OAAO,UAAS,MAErTsB,EAAkB,GCDP,GACf0D,MAAA,CACAhD,KAAA,CACAO,KAAA0C,OACAC,UAAA,GAEAlF,MAAA,CACAuC,KAAA,CAAA2J,OAAAjH,YAAAqD,GACAnJ,QAAA,MCTqZ,ICQjZ,G,UAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,OAIa,K,QCbAuS,OAAIC,OAAO,CACxB3P,KAAY,mBACZmC,WAAY,CAAEwT,qBAEd3S,MAAO,CACLhF,MAAO,CACLuC,KAAU4C,OACVD,UAAU,GAEZ8R,SAAU,CACRzU,KAASqP,QACTzS,SAAS,IAIb0G,OACE,MAAO,CACL+R,WAAW,EACX3X,OAAW,KAIfuG,SAAU,IACLC,eAAW,CAAEnD,EAAG,WAEnBtB,OAAI,IAAAqF,EACF,OAAiB,QAAVA,EAAA7H,KAAKQ,aAAK,IAAAqH,GAAU,QAAVA,EAAVA,EAAYwQ,gBAAQ,IAAAxQ,OAAA,EAApBA,EAAsBrF,OAAQ,IAEvCkI,cAAW,IAAA5C,EACT,OAAiB,QAAVA,EAAA9H,KAAKQ,aAAK,IAAAsH,GAAU,QAAVA,EAAVA,EAAYuQ,gBAAQ,IAAAvQ,GAAa,QAAbA,EAApBA,EAAsBwQ,mBAAW,IAAAxQ,OAAA,EAAjCA,EAAmC4C,cAAe,IAE3DgN,mBAAgB,IAAAa,EACd,OAAiB,QAAjBA,EAAOvY,KAAKQ,aAAK,IAAA+X,GAAM,QAANA,EAAVA,EAAY5V,YAAI,IAAA4V,GAAc,QAAdA,EAAhBA,EAAkBC,oBAAY,IAAAD,GAAK,QAALA,EAA9BA,EAAgCvW,WAAG,IAAAuW,OAAA,EAAnCA,EAAqC/V,MAE9CmV,mBAAgB,IAAAc,EACd,OAAiB,QAAjBA,EAAOzY,KAAKQ,aAAK,IAAAiY,GAAM,QAANA,EAAVA,EAAY9V,YAAI,IAAA8V,GAAc,QAAdA,EAAhBA,EAAkBD,oBAAY,IAAAC,GAAK,QAALA,EAA9BA,EAAgCzW,WAAG,IAAAyW,OAAA,EAAnCA,EAAqCC,MAE9Cd,wBAAqB,IAAAe,EACnB,OAAiB,QAAjBA,EAAO3Y,KAAKQ,aAAK,IAAAmY,GAAM,QAANA,EAAVA,EAAYhW,YAAI,IAAAgW,GAAc,QAAdA,EAAhBA,EAAkBH,oBAAY,IAAAG,GAAK,QAALA,EAA9BA,EAAgC3W,WAAG,IAAA2W,OAAA,EAAnCA,EAAqCC,WAE9Cf,0BAAuB,IAAAgB,EACrB,OAAiB,QAAjBA,EAAO7Y,KAAKQ,aAAK,IAAAqY,GAAM,QAANA,EAAVA,EAAYlW,YAAI,IAAAkW,GAAS,QAATA,EAAhBA,EAAkB5I,eAAO,IAAA4I,GAAoB,QAApBA,EAAzBA,EAA2B3I,0BAAkB,IAAA2I,OAAA,EAA7CA,EAA+ChM,QAExDiL,yBAAsB,IAAAgB,EACpB,OAAiB,QAAVA,EAAA9Y,KAAKQ,aAAK,IAAAsY,GAAM,QAANA,EAAVA,EAAYnW,YAAI,IAAAmW,GAAS,QAATA,EAAhBA,EAAkB7I,eAAO,IAAA6I,GAAoB,QAApBA,EAAzBA,EAA2B5I,0BAAkB,IAAA4I,OAAA,EAA7CA,EAA+CtR,IAAKuR,GAAcA,EAAE3H,OAAOhD,KAAK,QAAS,IAElG4J,oBAAiB,IAAAgB,EACf,OAAiB,QAAjBA,EAAOhZ,KAAKQ,aAAK,IAAAwY,GAAM,QAANA,EAAVA,EAAYrW,YAAI,IAAAqW,GAAS,QAATA,EAAhBA,EAAkB/I,eAAO,IAAA+I,GAAc,QAAdA,EAAzBA,EAA2B5I,oBAAY,IAAA4I,OAAA,EAAvCA,EAAyCnM,QAElDoL,mBAAgB,IAAAgB,EACd,OAAiB,QAAVA,EAAAjZ,KAAKQ,aAAK,IAAAyY,GAAM,QAANA,EAAVA,EAAYtW,YAAI,IAAAsW,GAAS,QAATA,EAAhBA,EAAkBhJ,eAAO,IAAAgJ,GAAc,QAAdA,EAAzBA,EAA2B7I,oBAAY,IAAA6I,OAAA,EAAvCA,EAAyCzR,IAAKuR,GAAcA,EAAE3H,OAAOhD,KAAK,QAAS,OCxDiW,MCQ7b,I,UAAY,eACd,GACA,EACA,GACA,EACA,KACA,WACA,OAIa,M,QCNA8D,OAAIC,OAAO,CACxBxN,WAAY,CAAEuU,qBACd1W,KAAY,WAEZgD,MAAO,CACLyR,KAAM,CACJlU,KAAUsP,MACV3M,UAAU,GAGZ2R,SAAU,CACRtU,KAAS0C,OACT9F,QAAS,OAGX8X,UAAW,CACT1U,KAAS0C,OACT9F,QAAS,wBAOXwK,gBAAiB,CACfpH,KAAS0C,OACT9F,QAAS,qBAIboI,QAAS,CACPqP,WACAG,OAAO4B,EAAahC,GAClBnX,KAAKoZ,gBACLpZ,KAAKiX,KAAKE,GAAKK,UAAW,EAC1BxX,KAAKiL,MAAM,UAAWkO,EAAKhC,IAE7BiC,gBACEpZ,KAAKiX,KAAKzP,IAAK6R,IACbA,EAAG7B,UAAW,KAGlB8B,kBCvD8a,MCQ9a,I,UAAY,eACd,GACA,EACA,GACA,EACA,KACA,WACA,OAIa,M,QCnBXxZ,GAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAAEF,EAAIwZ,MAAOtZ,EAAG,MAAM,CAACG,YAAY,YAAY,CAACL,EAAImY,GAAG,SAAQ,WAAW,MAAO,CAACjY,EAAG,KAAK,CAACF,EAAI6D,GAAG,IAAI7D,EAAI8D,GAAG9D,EAAIwZ,OAAO,YAAW,GAAGxZ,EAAI8B,KAAM9B,EAAIkX,KAAKpK,OAAQ9M,EAAIyQ,GAAIzQ,EAAIkX,MAAM,SAASkC,EAAIhC,GAAK,OAAOlX,EAAG,MAAM,CAACiB,IAAIiW,EAAI/W,YAAY,MAAMC,MAAM,CAAC,cAAc,iBAAkB8W,IAAS,CAACpX,EAAImY,GAAG,WAAU,WAAW,MAAO,CAACjY,EAAG,MAAM,CAACG,YAAY,SAAS,CAACL,EAAImY,GAAG,SAAQ,WAAW,MAAO,CAACjY,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,eAAe,CAAC+B,IAAI,QAAQ0O,UAAS,EAAKrQ,MAAM,CAAC,KAAON,EAAIO,KAAK,UAAW,EAAM,MAAQP,EAAI+D,EAAE,8BAA8BrC,MAAM,CAACjB,MAAO2Y,EAAI3Y,MAAMgC,KAAMd,SAAS,SAAUC,GAAM5B,EAAI6C,KAAKuW,EAAI3Y,MAAO,OAAQmB,IAAMC,WAAW,qBAAqB,GAAG3B,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,gBAAgB,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,QAAUP,EAAIyZ,aAAa,YAAY,8BAA8B/X,MAAM,CAACjB,MAAO2Y,EAAI3Y,MAAM4Q,MAAO1P,SAAS,SAAUC,GAAM5B,EAAI6C,KAAKuW,EAAI3Y,MAAO,QAASmB,IAAMC,WAAW,sBAAsB,MAAK,CAAC,IAAMuX,EAAI,KAAOpZ,EAAIO,KAAK,OAASP,EAAIoP,OAAO,YAAcpP,EAAI0Z,cAAe1Z,EAAI2Z,cAAezZ,EAAG,MAAM,CAACG,YAAY,UAAU,CAACL,EAAImY,GAAG,iBAAgB,WAAW,MAAO,CAACjY,EAAG,SAAS,CAACG,YAAY,gBAAgBC,MAAM,CAAC,KAAO,SAAS,SAAWN,EAAIoP,OAAO,cAAc,eAAegI,GAAOxW,GAAG,CAAC,MAAQ,SAAS2W,GAAQ,OAAOvX,EAAI4Z,OAAOR,EAAKhC,MAAQ,CAACpX,EAAI6D,GAAG,IAAI7D,EAAI8D,GAAG9D,EAAI6Z,aAAa,UAAS,CAAC,OAASD,IAAM5Z,EAAI4Z,OAAOR,EAAKhC,GAAK,EAAIA,EAAI,IAAMgC,KAAO,GAAGpZ,EAAI8B,MAAM,MAAK,CAAC,YAAc9B,EAAI0Z,YAAY,EAAItC,EAAI,KAAOpX,EAAIkX,KAAK,IAAMkC,EAAI,KAAOpZ,EAAIO,KAAK,OAASP,EAAIoP,UAAU,MAAiB,SAAXpP,EAAIO,KAAeL,EAAG,MAAM,CAACG,YAAY,cAAc,CAACL,EAAI6D,GAAG,SAAS3D,EAAG,MAAM,CAACF,EAAImY,GAAG,UAAU,GAAInY,EAAI8Z,aAAe9Z,EAAIoP,OAAQlP,EAAG,MAAM,CAACG,YAAY,UAAU,CAAEL,EAAI8Z,WAAY9Z,EAAImY,GAAG,OAAM,WAAW,MAAO,CAACjY,EAAG,SAAS,CAACG,YAAY,wBAAwBC,MAAM,CAAC,KAAO,SAAS,SAAWN,EAAIgC,QAAQ,cAAc,qBAAqBpB,GAAG,CAAC,MAAQ,SAAS2W,GAAQ,OAAOvX,EAAIF,SAAS,CAAEE,EAAIgC,QAAS9B,EAAG,IAAI,CAACG,YAAY,6CAA6CL,EAAI8B,KAAK9B,EAAI6D,GAAG,IAAI7D,EAAI8D,GAAG9D,EAAI+Z,UAAU,UAAS,CAAC,IAAM/Z,EAAIF,MAAME,EAAI8B,MAAM,GAAG9B,EAAI8B,MAAM,IAElqEC,GAAkB,GCOPoQ,OAAIC,OAAO,CACxBxN,WAAY,CAAEQ,qBAAeD,qBAC7BM,MAAY,CACVhF,MAAO,CACLuC,KAAUsP,MACV1S,QAAU,MAEZW,KAAM,CACJyC,KAAS0C,OACT9F,QAASiI,QAEX2R,MAAO,CACLxW,KAAU0C,OACVC,UAAU,GAEZ8T,aAAc,CACZzW,KAAUsP,MACV1S,QAAU,MAEZka,WAAY,CACV9W,KAASqP,QACTzS,SAAS,GAEX+Z,cAAe,CACb3W,KAASqP,QACTzS,SAAS,GAEXoa,gBAAiB,CACfhX,KAAS,CAAC0C,OAAQiH,OAAQ/G,OAAQ0M,OAClC1S,QAAS,IAEXoC,QAAS,CACPgB,KAASqP,QACTzS,SAAS,GAEXiH,SAAU,CACR7D,KAASqP,QACTzS,SAAS,IAGb0G,OACE,MAAM2T,GAASha,KAAKQ,OAAkB,IAAIyZ,QACpChD,EAAO,GAEb,IAAM,MAAMzW,KAASwZ,EACnB/C,EAAK3X,KAAK,CAAEkB,UAEd,IAAMyW,EAAKpK,OAAS,CAClB,MAAMrM,EAAQR,KAAK+Z,gBAAkB5R,eAAMnI,KAAK+Z,iBAAmB,GAEnE9C,EAAK3X,KAAK,CAAEkB,UAGd,MAAO,CAAEyW,OAAMiD,wBAAwB,IAGzClT,SAAU,CACRmI,SACE,OAAOnP,KAAKM,OAAS6Z,QAEvBP,cACE,OAAO5Z,KAAKoH,OAAOC,QAAQ,UAAU,mBAEvCyS,WACE,OAAO9Z,KAAKoH,OAAOC,QAAQ,UAAU,iBAGzCkC,MAAU,CACR/I,QACER,KAAKka,wBAAyB,EAC9Bla,KAAKiX,MAAQjX,KAAKQ,OAAS,IAAIgH,IAAIqN,IAAK,CAAGrU,MAAOqU,MAEpDoC,KAAM,CACJmD,MAAM,EACNvG,UAGO7T,KAAKka,wBACRla,KAAKyZ,cAEPzZ,KAAKka,wBAAyB,KAIpC3H,UACEvS,KAAKyZ,YAAc3F,IAAS9T,KAAKqa,OAAQ,KAE3CtS,QAAS,CACPlI,MACEG,KAAKiX,KAAK3X,KAAK,CAAEkB,MAAO2H,eAAMnI,KAAK+Z,mBAC/B/Z,KAAK+Z,iBACP/Z,KAAKyZ,cAEPzZ,KAAKiU,UAAU,KACb,MAAMqG,EAASta,KAAK6J,MAAMrJ,MAErB8Z,GAAUA,EAAOzN,OAAS,GAC7ByN,EAAOA,EAAOzN,OAAS,GAAG0N,QAE5Bva,KAAKiL,MAAM,UAMf0O,OAAOR,EAA2BhM,GAChCnN,KAAKiL,MAAM,SAAU,CAAEkO,MAAKhM,UAC5BqN,eAASxa,KAAKiX,KAAM9J,GACpBnN,KAAKyZ,eAEPY,SACE,GAAKra,KAAKmP,OACR,OAEF,MAAM3E,EAAM,GAEZ,IAAM,MAAM2O,KAAOnZ,KAAKiX,KAAO,CAC7B,MAAMzW,EAAQ2Y,EAAI3Y,MAEI,qBAAVA,GACVgK,EAAIlL,KAAKkB,GAGbR,KAAKiL,MAAM,QAAST,OCpI4a,MCOlc,GAAY,eACd,GACA,GACA,IACA,EACA,KACA,KACA,MAIa,M,QClBX1K,GAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACA,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQN,EAAI0P,cAAc,KAAO1P,EAAIO,KAAK,SAAWP,EAAI0a,wBAAwB,MAAQ1a,EAAI+D,EAAE,yCAAyC,MAAQ/D,EAAIgH,MAAM0I,cAAc,SAAW,IAAI9O,GAAG,CAAC,MAAQ,SAAS2W,GAAQ,OAAOvX,EAAIkL,MAAM,0BAA2BqM,QAAa,GAAGrX,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQN,EAAIyP,cAAc,KAAOzP,EAAIO,KAAK,SAAWP,EAAI0a,wBAAwB,MAAQ1a,EAAI+D,EAAE,yCAAyC,MAAQ/D,EAAIgH,MAAMyI,eAAe7O,GAAG,CAAC,MAAQ,SAAS2W,GAAQ,OAAOvX,EAAIkL,MAAM,yBAA0BqM,QAAa,KAAKrX,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,YAAY,CAACI,MAAM,CAAC,MAAQN,EAAI2a,eAAe,QAAS,EAAM,KAAO3a,EAAIO,KAAK,MAAQP,EAAI+D,EAAE,gCAAgC,MAAQ/D,EAAIgH,MAAM2I,MAAM/O,GAAG,CAAC,MAAQ,SAAS2W,GAAQ,OAAOvX,EAAIkL,MAAM,2BAA4BqM,QAAa,GAAGrX,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,YAAY,CAACI,MAAM,CAAC,MAAQN,EAAI4a,mBAAmB,QAAS,EAAM,KAAO5a,EAAIO,KAAK,MAAQP,EAAI+D,EAAE,oCAAoC,MAAQ/D,EAAIgH,MAAM4I,UAAUhP,GAAG,CAAC,MAAQ,SAAS2W,GAAQ,OAAOvX,EAAIkL,MAAM,+BAAgCqM,QAAa,QAEx3CxV,GAAkB,GCKPoQ,OAAIC,OAAO,CACxBxN,WAAY,CACVO,oBACAsN,kBAEFhN,MAAY,CACVhF,MAAO,CACLuC,KAAU4C,OACVD,UAAU,GAEZpF,KAAM,CACJyC,KAAU0C,OACVC,UAAU,GAEZqB,MAAO,CACLpH,QAASA,KAAA,CACP6P,cAAmB,GACnBC,cAAmB,GACnBC,KAAmB,GACnBC,SAAmB,KAErB5M,KAAM4C,SAGVqB,SAAU,IACLC,eAAW,CAAEnD,EAAG,WACnB2W,0BACE,OAAOza,KAAKM,OAASsH,QAEvB6H,gBAAa,IAAA5H,EACX,OAAiB,QAAjBA,EAAO7H,KAAKQ,aAAK,IAAAqH,OAAA,EAAVA,EAAY4H,eAErBD,gBAAa,IAAA1H,EACX,OAAiB,QAAjBA,EAAO9H,KAAKQ,aAAK,IAAAsH,OAAA,EAAVA,EAAY0H,eAErBkL,iBAAc,IAAAnC,EACZ,OAAiB,QAAjBA,EAAOvY,KAAKQ,aAAK,IAAA+X,GAAM,QAANA,EAAVA,EAAY7I,YAAI,IAAA6I,OAAA,EAAhBA,EAAkBqC,YAE3BD,qBAAkB,IAAAlC,EAChB,OAAiB,QAAjBA,EAAOzY,KAAKQ,aAAK,IAAAiY,GAAU,QAAVA,EAAVA,EAAY9I,gBAAQ,IAAA8I,OAAA,EAApBA,EAAsBmC,eC9Cua,MCOtc,GAAY,eACd,GACA,GACA,IACA,EACA,KACA,KACA,MAIa,M,QClBX9a,GAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACA,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,OAAO,CAACH,EAAG,eAAe,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,SAAWP,EAAI0a,wBAAwB,MAAQ1a,EAAI+D,EAAE,0CAA0C,MAAQ/D,EAAIgH,MAAMsI,MAAM5N,MAAM,CAACjB,MAAOT,EAAIS,MAAM6O,KAAM3N,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAO,OAAQmB,IAAMC,WAAW,iBAAiB,GAAG3B,EAAG,MAAM,CAACG,YAAY,OAAO,CAACH,EAAG,eAAe,CAACI,MAAM,CAAC,KAAON,EAAIO,KAAK,SAAWP,EAAI0a,wBAAwB,MAAQ1a,EAAI+D,EAAE,0CAA0C,MAAQ/D,EAAIgH,MAAMuI,MAAM7N,MAAM,CAACjB,MAAOT,EAAIS,MAAM8O,KAAM5N,SAAS,SAAUC,GAAM5B,EAAI6C,KAAK7C,EAAIS,MAAO,OAAQT,EAAI8a,GAAGlZ,KAAOC,WAAW,iBAAiB,QAE7vBE,GAAkB,GCIPoQ,OAAIC,OAAO,CACxB3P,KAAY,8BACZmC,WAAY,CAAEO,qBACdM,MAAY,CACVhF,MAAO,CACLuC,KAAU4C,OACVD,UAAU,GAEZpF,KAAM,CACJyC,KAAU0C,OACVC,UAAU,GAEZqB,MAAO,CACLpH,QAASA,KAAA,CACP0P,KAAQ,GACRC,KAAQ,KAEVvM,KAAM4C,SAGVqB,SAAU,IACLC,eAAW,CAAEnD,EAAG,WACnB2W,0BACE,OAAOza,KAAKM,OAASsH,WC7B4b,MCOnd,GAAY,eACd,GACA,GACA,IACA,EACA,KACA,KACA,MAIa,M,QCKf,MAAMkT,GAA6C,CACjD9X,QAAS,GACToO,MAAS,GACTnB,QAAmB,CAAEC,mBAAoB,GAAIE,aAAc,KAEvD2K,GAA4C,CAChDtL,cAAe,KACfC,KAAe,CAAEkL,WAAY,IAC7BpL,cAAe,GACfG,SAAe,CAAEiL,WAAY,KAGzBI,GAAiD,CACrD3L,KAAM,GACNC,KAAM,OAOO5K,oCAAgB,CAC7BlC,KAAY,gBACZmC,WAAY,CACVC,mBACAC,eACAC,yBACAI,oBACA+V,cACAC,kBACAC,+BACAC,wBACAC,aAEFhW,OAAQ,CAACC,OAAgBC,QACzBC,MAAY,CACVlF,KAAM,CACJyC,KAAU0C,OACVC,UAAU,GAEZlF,MAAO,CACLuC,KAAU4C,OACVD,UAAU,GAEZoJ,iBAAkB,CAChB/L,KAAU0C,OACVC,UAAU,EACV/F,QAAU,IAEZoP,eAAgB,CACdhM,KAAUsP,MACV3M,UAAU,IAGdE,cACE5F,KAAKkG,YACLlG,KAAKiU,UAAU,KACbjU,KAAK+B,SAAU,KAGnBsE,OACE,MAAMiV,EAAQtb,KAAKoH,OACbtD,EAAIwX,EAAMjU,QAAQ,UAClBkU,EAAmB,CACvB/Y,KAAgB,mBAChB+W,MAAgBzV,EAAE,yCAClB2D,MAAgB3D,EAAE,yCAClB0X,QAAgB,GAChBC,eAAgB,8CAChBC,OAAgB,EAChBC,OAAgB,IAEZC,EAAoB,CACxBpZ,KAAgB,oBAChB+W,MAAgBzV,EAAE,0CAClB2D,MAAgB3D,EAAE,0CAClB0X,QAAgB,GAChBC,eAAgB,+CAChBC,OAAgB,EAChBC,OAAgB,IAGZE,EAAgB,CACpBrZ,KAAgB,gBAChB+W,MAAgBzV,EAAE,sCAClB2D,MAAgB3D,EAAE,sCAClB0X,QAAgB,GAChBC,eAAgB,2CAChBC,OAAgB,EAChBC,OAAgB,IAEZ1M,EAAajP,KAAK8O,iBAAmB,CAAC8M,EAAmBC,GAAiB,CAACN,EAAkBK,EAAmBC,GAEtH,MAAO,CACL5M,WACApI,eAAyB,CACvB,CAAEC,KAAM,gBAAiBC,MAAO,CAAC,aACjC,CAAED,KAAM,wBAAyBC,MAAO,CAAC,WAAY,YACrD,CAAED,KAAM,iCAAkCC,MAAO,CAAC,SAClD,CAAED,KAAM,iCAAkCC,MAAO,CAAC,SAClD,CAAED,KAAM,oCAAqCC,MAAO,CAAC,SACrD,CAAED,KAAM,oCAAqCC,MAAO,CAAC,WAAY,SACjE,CAAED,KAAM,2BAA4BC,MAAO,CAAC,SAC5C,CAAED,KAAM,+BAAgCC,MAAO,CAAC,UAElD+U,aAAyB,GACzBC,WAAyB,KACzBC,YAAyB,GACzBhM,sBAAyB,CACvBxN,KAAO,GACP4O,MAAO,IAETd,gBAAiB,EACjBD,gBAAiB,KACjBtO,SAAiB,IAIrBwH,MAAO,CACL8G,gBAAgBiC,GACd,MAAM2J,EAAOjc,KAAKiP,SAASzI,KAAM0V,GAAuB,qBAAXA,EAAE1Z,MAE3CyZ,GACFjc,KAAK4C,KAAKqZ,EAAM,UAAW3J,IAI/B6J,0BAA0B7J,GACxB,MAAM2J,EAAOjc,KAAKiP,SAASzI,KAAM0V,GAAuB,sBAAXA,EAAE1Z,MAE/CxC,KAAK4C,KAAKqZ,EAAM,QAAS3J,IAG3BhC,eAAegC,GACb,MAAM2J,EAAOjc,KAAKiP,SAASzI,KAAM0V,GAAuB,kBAAXA,EAAE1Z,MAE/CxC,KAAK4C,KAAKqZ,EAAM,QAAS3J,KAI7BtL,SAAU,CACRoV,cACE,MAAO,CAAC,CACN3U,MAAOzH,KAAK8D,EAAE,6BACdtD,OAAO,GACN,CACDiH,MAAOzH,KAAK8D,EAAE,8BACdtD,OAAO,KAGX0G,eACE,MAAO,CACLlE,QAASqL,eAAiBrO,KAAKoH,OAAOC,QAAQ,UAAWrH,KAAKwY,cAC9DnJ,KAASd,eAAcvO,KAAKoH,OAAOC,QAAQ,WAC3CiI,KAASd,eAAcxO,KAAKoH,OAAOC,QAAQ,WAC3CgV,KAAS3N,eAAc1O,KAAKoH,OAAOC,QAAQ,aAG/C8U,4BAAyB,IAAAtU,EAAAC,EAAAyQ,EAAAE,EAAAE,EAAAE,EAAAC,EAAAE,EAAAC,EAAAqD,EAAAC,EAAAC,EAAAC,EAAAC,EACvB,MAAMC,IAAuB3c,KAAKQ,MAAM6X,SAAS7V,KAC3Coa,EAA4B3O,eAAYjO,KAAKoH,OAAOC,QAAQ,UAAWrH,KAAKwY,cAC5EqE,GAAkC,QAAVhV,EAAA7H,KAAKQ,aAAK,IAAAqH,GAAM,QAANA,EAAVA,EAAYlF,YAAI,IAAAkF,GAAU,QAAVA,EAAhBA,EAAkBuH,gBAAQ,IAAAvH,OAAA,EAA1BA,EAA4B7E,YAAwB,QAAZ8E,EAAE9H,KAAKQ,aAAK,IAAAsH,GAAM,QAANA,EAAVA,EAAYnF,YAAI,IAAAmF,GAAU,QAAVA,EAAhBA,EAAkBsH,gBAAQ,IAAAtH,IAA1BA,EAA4B9E,QAAQwK,MAAMoP,IAC5GE,GAA0CtO,eAAcxO,KAAKoH,OAAOC,QAAQ,UAAlCmH,CAAuD,QAAX+J,EAACvY,KAAKQ,aAAK,IAAA+X,GAAM,QAANA,EAAVA,EAAY5V,YAAI,IAAA4V,GAAsB,QAAtBA,EAAhBA,EAAkBhJ,4BAAoB,IAAAgJ,OAAA,EAAtCA,EAAwCjJ,MAC/HyN,GAA0CxO,eAAcvO,KAAKoH,OAAOC,QAAQ,UAAlCkH,CAAuD,QAAXkK,EAACzY,KAAKQ,aAAK,IAAAiY,GAAM,QAANA,EAAVA,EAAY9V,YAAI,IAAA8V,GAAsB,QAAtBA,EAAhBA,EAAkBlJ,4BAAoB,IAAAkJ,OAAA,EAAtCA,EAAwCpJ,MAC/H2N,GAA6C,QAAVrE,EAAA3Y,KAAKQ,aAAK,IAAAmY,GAAM,QAANA,EAAVA,EAAYhW,YAAI,IAAAgW,GAAU,QAAVA,EAAhBA,EAAkBvJ,gBAAQ,IAAAuJ,GAAS,QAATA,EAA1BA,EAA4B1I,eAAO,IAAA0I,GAAoB,QAApBA,EAAnCA,EAAqCzI,0BAAkB,IAAAyI,OAAA,EAAvDA,EAAyD9L,QAAS,KAAiB,QAAXgM,EAAC7Y,KAAKQ,aAAK,IAAAqY,GAAM,QAANA,EAAVA,EAAYlW,YAAI,IAAAkW,GAAU,QAAVA,EAAhBA,EAAkBzJ,gBAAQ,IAAAyJ,GAAS,QAATA,EAA1BA,EAA4B5I,eAAO,IAAA4I,GAAuB,QAAvBA,EAAnCA,EAAqC3I,mBAAmB,UAAE,IAAA2I,IAA1DA,EAA4DrW,SAAoB,QAAXsW,EAAC9Y,KAAKQ,aAAK,IAAAsY,GAAM,QAANA,EAAVA,EAAYnW,YAAI,IAAAmW,GAAU,QAAVA,EAAhBA,EAAkB1J,gBAAQ,IAAA0J,GAAS,QAATA,EAA1BA,EAA4B7I,eAAO,IAAA6I,GAAuB,QAAvBA,EAAnCA,EAAqC5I,mBAAmB,UAAE,IAAA4I,IAA1DA,EAA4D1H,OAC9O6L,GAAuC,QAAVjE,EAAAhZ,KAAKQ,aAAK,IAAAwY,GAAM,QAANA,EAAVA,EAAYrW,YAAI,IAAAqW,GAAU,QAAVA,EAAhBA,EAAkB5J,gBAAQ,IAAA4J,GAAS,QAATA,EAA1BA,EAA4B/I,eAAO,IAAA+I,GAAc,QAAdA,EAAnCA,EAAqC5I,oBAAY,IAAA4I,OAAA,EAAjDA,EAAmDnM,QAAS,KAAiB,QAAXoM,EAACjZ,KAAKQ,aAAK,IAAAyY,GAAM,QAANA,EAAVA,EAAYtW,YAAI,IAAAsW,GAAU,QAAVA,EAAhBA,EAAkB7J,gBAAQ,IAAA6J,GAAS,QAATA,EAA1BA,EAA4BhJ,eAAO,IAAAgJ,GAAiB,QAAjBA,EAAnCA,EAAqC7I,aAAa,UAAE,IAAA6I,IAApDA,EAAsDzW,SAAoB,QAAX8Z,EAACtc,KAAKQ,aAAK,IAAA8b,GAAM,QAANA,EAAVA,EAAY3Z,YAAI,IAAA2Z,GAAU,QAAVA,EAAhBA,EAAkBlN,gBAAQ,IAAAkN,GAAS,QAATA,EAA1BA,EAA4BrM,eAAO,IAAAqM,GAAiB,QAAjBA,EAAnCA,EAAqClM,aAAa,UAAE,IAAAkM,IAApDA,EAAsDlL,OACtN8L,IAAuC,QAAXX,EAACvc,KAAKQ,aAAK,IAAA+b,GAAM,QAANA,EAAVA,EAAY5Z,YAAI,IAAA4Z,GAAgB,QAAhBA,EAAhBA,EAAkB3M,sBAAc,IAAA2M,GAAM,QAANA,EAAhCA,EAAkC7M,YAAI,IAAA6M,GAAtCA,EAAwC3B,aAAcjM,eAAe3O,KAAKQ,MAAMmC,KAAKiN,eAAeF,KAAKkL,YACtIuC,IAA2C,QAAXX,EAACxc,KAAKQ,aAAK,IAAAgc,GAAM,QAANA,EAAVA,EAAY7Z,YAAI,IAAA6Z,GAAgB,QAAhBA,EAAhBA,EAAkB5M,sBAAc,IAAA4M,GAAU,QAAVA,EAAhCA,EAAkC7M,gBAAQ,IAAA6M,GAA1CA,EAA4C5B,aAAcjM,eAAe3O,KAAKQ,MAAMmC,KAAKiN,eAAeD,SAASiL,YAClJwC,IAAmC,QAAXX,EAACzc,KAAKQ,aAAK,IAAAic,GAAM,QAANA,EAAVA,EAAY9Z,YAAI,IAAA8Z,GAAgB,QAAhBA,EAAhBA,EAAkB7M,sBAAc,IAAA6M,IAAhCA,EAAkChN,iBAAkBhB,MAAgB,QAAXiO,EAAC1c,KAAKQ,aAAK,IAAAkc,GAAM,QAANA,EAAVA,EAAY/Z,YAAI,IAAA+Z,GAAgB,QAAhBA,EAAhBA,EAAkB9M,sBAAc,IAAA8M,OAAA,EAAhCA,EAAkCjN,gBAAkByN,GAAoBC,EAEjK,OAAOR,GAAaE,GAAgBE,GAAiCD,GAAiCM,IAAiBJ,GAA2BC,IAEpJrN,iBAAc,IAAAyN,EACZ,OAAiB,QAAjBA,EAAOrd,KAAKQ,aAAK,IAAA6c,GAAM,QAANA,EAAVA,EAAY1a,YAAI,IAAA0a,OAAA,EAAhBA,EAAkBzN,gBAE3BL,uBAAoB,IAAA+N,EAClB,OAAiB,QAAjBA,EAAOtd,KAAKQ,aAAK,IAAA8c,GAAM,QAANA,EAAVA,EAAY3a,YAAI,IAAA2a,OAAA,EAAhBA,EAAkB/N,sBAE3BQ,2BAAwB,IAAAwN,EACtB,OAA2B,QAA3BA,EAAOvd,KAAKqQ,uBAAe,IAAAkN,GAAM,QAANA,EAApBA,EAAsB5a,YAAI,IAAA4a,GAAS,QAATA,EAA1BA,EAA4BtN,eAAO,IAAAsN,GAAoB,QAApBA,EAAnCA,EAAqCrN,0BAAkB,IAAAqN,OAAA,EAAvDA,EAAyD/V,IAAMuR,GAAcA,EAAE3H,QAExFjB,qBAAkB,IAAAqN,EAChB,OAA2B,QAA3BA,EAAOxd,KAAKqQ,uBAAe,IAAAmN,GAAM,QAANA,EAApBA,EAAsB7a,YAAI,IAAA6a,GAAS,QAATA,EAA1BA,EAA4BvN,eAAO,IAAAuN,GAAc,QAAdA,EAAnCA,EAAqCpN,oBAAY,IAAAoN,OAAA,EAAjDA,EAAmDhW,IAAMuR,GAAcA,EAAE3H,QAElFoH,eAAY,IAAAiF,EACV,OAA2B,QAA3BA,EAAOzd,KAAKqQ,uBAAe,IAAAoN,GAAM,QAANA,EAApBA,EAAsB9a,YAAI,IAAA8a,GAAc,QAAdA,EAA1BA,EAA4BjF,oBAAY,IAAAiF,GAAK,QAALA,EAAxCA,EAA0Czb,WAAG,IAAAyb,OAAA,EAA7CA,EAA+Cjb,MAExD0M,sBACE,MAAM1E,EAAa,GACbkT,EAAgB1d,KAAKqQ,gBAM3B,OAJArQ,KAAK+O,eAAevG,QAASsC,IAC3BL,EAAQK,KAGHN,EAEP,SAASC,EAAQK,GACf,MAAMpE,EAAQ,OAAHoE,QAAG,IAAHA,OAAG,EAAHA,EAAKpE,GACViX,EAAU,CACdjX,KACAoE,MACA0M,SAAUkG,IAAkB5S,GAG9BN,EAAIlL,KAAKqe,MAIf5V,QAAS,CACPG,WACA0V,aAAapb,GACXxC,KAAKqQ,gBAAkBrQ,KAAK+O,eAAevI,KAAMqX,IAC/C,MAAMjJ,EAAQkJ,SAAStb,GAAMoS,MAAM,KAEnC,OAAOiJ,EAAExF,SAASO,YAAchE,EAAM,IAAMiJ,EAAExF,SAAS7V,OAASoS,EAAM,MAClE,KACC5U,KAAKqQ,iBACVrQ,KAAK+d,WACL/d,KAAKge,gBAELhe,KAAKS,OAAOnB,KAAKU,KAAK8D,EAAE,gCAG5Bia,WAAQ,IAAAE,EACN,MAAMC,EAAuC,QAAvBD,EAAGje,KAAKqQ,uBAAe,IAAA4N,GAAU,QAAVA,EAApBA,EAAsB5F,gBAAQ,IAAA4F,OAAA,EAA9BA,EAAgCzb,KAEzDxC,KAAKkI,IAAIlI,KAAKQ,MAAMmC,KAAKyM,SAAU,QAAS8O,IAE9CF,eAAY,IAAAG,EACV,MAAMC,EAAqC,QAAvBD,EAAGne,KAAKqQ,uBAAe,IAAA8N,GAAU,QAAVA,EAApBA,EAAsB9F,gBAAQ,IAAA8F,OAAA,EAA9BA,EAAgCvF,UAEvD5Y,KAAKkI,IAAIlI,KAAKQ,MAAM6X,SAAU,YAAa+F,IAE7C,qBACOpe,KAAKS,QACRmJ,eAAM5J,KAAKS,QAEb,IAGE,aAFMT,KAAKQ,MAAMI,OAEVZ,KAAKa,OACZ,MAAOuF,GACPpG,KAAKS,OAAOnB,KAAK8G,KAIrBF,YACQlG,KAAKQ,MAAMmC,MACfuF,eAAIlI,KAAKQ,MAAO,OAAQ,IAEpBR,KAAKQ,MAAMmC,KAAKyM,UACpBlH,eAAIlI,KAAKQ,MAAMmC,KAAM,WAAYwF,eAAM2S,KAGnC9a,KAAKQ,MAAMmC,KAAKiN,gBACpB1H,eAAIlI,KAAKQ,MAAMmC,KAAM,iBAAkBwF,eAAM4S,KAGzC/a,KAAKQ,MAAMmC,KAAK4M,sBACpBrH,eAAIlI,KAAKQ,MAAMmC,KAAM,uBAAwBwF,eAAM6S,KAEhDhb,KAAK8O,kBACR9O,KAAK4d,aAAa5d,KAAK8O,mBAG3BvL,mBACOvD,KAAK6J,MAAMwU,aACdre,KAAK6J,MAAMwU,YAAYtU,eAG3BiF,SACEhP,KAAK+K,QAAQzL,KAAK,CAChBkD,KAAQ,yBACR8b,OAAQ,MAGZzd,OACEb,KAAK+K,QAAQzL,KAAK,CAChBkD,KAAQ,yBACR8b,OAAQ,MAGZjd,YAAYyJ,GACV9K,KAAKqQ,gBAAkBrQ,KAAK+O,eAAevI,KAAMqX,GAAoBA,EAAEnX,KAAOoE,EAAIpE,KAAO,KACzF1G,KAAK+d,WACL/d,KAAKge,gBAEPnO,sBAAsBpD,GAAa,IAAA8R,EACG,QAA/BA,EAACve,KAAKQ,MAAMmC,KAAKiN,sBAAc,IAAA2O,GAA9BA,EAAgC7O,MACpCxH,eAAIlI,KAAKQ,MAAMmC,KAAKiN,eAAgB,OAAQ,IAE9C1H,eAAIlI,KAAKQ,MAAMmC,KAAKiN,eAAeF,KAAM,aAAcjD,IAEzDqD,0BAA0BrD,GAAa,IAAA+R,EACD,QAA/BA,EAACxe,KAAKQ,MAAMmC,KAAKiN,sBAAc,IAAA4O,GAA9BA,EAAgC7O,UACpCzH,eAAIlI,KAAKQ,MAAMmC,KAAKiN,eAAgB,WAAY,IAElD1H,eAAIlI,KAAKQ,MAAMmC,KAAKiN,eAAeD,SAAU,aAAclD,OCjUwY,MCQrc,I,WAAY,eACd,GACA,EACA,GACA,EACA,KACA,WACA,OAIa,M,QCRA/H,gCAAgB,CAC7BlC,KAAY,gBACZmC,WAAY,CACVC,mBACAC,eACA4Z,kBAGFpZ,OAAQ,CAACC,QAETE,MAAO,CACLhF,MAAO,CACLuC,KAAS4C,OACThG,QAAS,MAEXwK,gBAAiB,CACfpH,KAAS0C,OACT9F,QAAS,wBAEXW,KAAM,CACJyC,KAAU0C,OACVC,UAAU,IAGdE,cACQ5F,KAAKQ,MAAMmC,MACfuF,eAAIlI,KAAKQ,MAAO,OAAQ,IAEpBR,KAAKQ,MAAMkG,IACT1G,KAAKQ,MAAM6X,UACfnQ,eAAIlI,KAAKQ,MAAO,WAAY,IAGhCR,KAAK0e,oBAAoB5Y,KAAM6Y,IAC7B3e,KAAK+O,eAAiB4P,EACtB3e,KAAK+B,SAAU,IACdoE,MAAOC,IACRpG,KAAKS,OAAOnB,KAAK8G,GACjBpG,KAAK+B,SAAU,KAGnBsE,OAAI,IAAAwB,EAAAC,EACF,MAAMsC,EAAQpK,KAAKqK,OACb9J,EAAU6J,EAAME,MAAMC,SAAa,KACnCqU,EAAexU,EAAME,MAAMuU,OAAaC,OACxCC,EAAqB,QAAblX,EAAG7H,KAAKQ,aAAK,IAAAqH,GAAM,QAANA,EAAVA,EAAYlF,YAAI,IAAAkF,GAAU,QAAVA,EAAhBA,EAAkBuH,gBAAQ,IAAAvH,OAAA,EAA1BA,EAA4BuJ,MACvC4N,EAAkB,QAAblX,EAAG9H,KAAKQ,aAAK,IAAAsH,GAAU,QAAVA,EAAVA,EAAYuQ,gBAAQ,IAAAvQ,OAAA,EAApBA,EAAsB8Q,UAC9BqG,EAAiBD,GAASD,EAAWG,OAAO,GAAIF,KAAWD,KAAe,KAC1EjQ,EAAmB8P,GAAgBK,GAAkB,KAE3D,MAAO,CACL1e,UAASuO,mBAAkBqQ,cAAe,GAAIpQ,eAAgB,GAAahN,SAAS,IAGxFgG,QAAS,CACP,0BACE,MAAMqX,QAA0Cpf,KAAKoH,OAAO8B,SAAS,qBAAsB,CAAEnG,KAAMsc,OAAKC,gBAExG,OAAOF,GAETpQ,SACEhP,KAAK+K,QAAQzL,KAAK,CAChBkD,KAAQ,yBACR8b,OAAQ,SC1Eib,MCO7b,GAAY,eACd,GACAxe,EACAgC,GACA,EACA,KACA,KACA,MAIa,gB,2CClBf,W,qBCGA,IAAIrC,EAAU,EAAQ,QACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,EAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOF,QAAUI,EAAQG,QAE5C,IAAIC,EAAM,EAAQ,QAAkEF,QACvEE,EAAI,WAAYJ,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa","file":"capi-0.6.0-2.8.umd.min.edit.js","sourcesContent":["export * from \"-!../../../node_modules/vue-style-loader/index.js??ref--10-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CardGrid.vue?vue&type=style&index=0&id=e4d7fae2&prod&lang=scss&scoped=true\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".container[data-v-e4d7fae2]{display:grid;grid-template-columns:1fr 1fr 1fr}@media only screen and (max-width:992px){.container[data-v-e4d7fae2]{grid-template-columns:1fr 1fr}}@media only screen and (max-width:1281px){.container[data-v-e4d7fae2]{grid-template-columns:1fr}}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterCardField.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterCardField.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ClusterCardField.vue?vue&type=template&id=7407ec5d&scoped=true\"\nimport script from \"./ClusterCardField.vue?vue&type=script&lang=js\"\nexport * from \"./ClusterCardField.vue?vue&type=script&lang=js\"\nimport style0 from \"./ClusterCardField.vue?vue&type=style&index=0&id=7407ec5d&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7407ec5d\",\n null\n \n)\n\nexport default component.exports","\nimport Vue from 'vue';\nimport { mapGetters } from 'vuex';\nimport ClusterCardField from './ClusterCardField.vue';\nimport { Worker } from './../../types/capi';\n\nexport default Vue.extend({\n name: 'ClusterClassCard',\n components: { ClusterCardField },\n\n props: {\n value: {\n type: Object,\n required: true,\n },\n selected: {\n type: Boolean,\n default: false\n }\n },\n\n data() {\n return {\n cloneData: true,\n errors: []\n };\n },\n\n computed: {\n ...mapGetters({ t: 'i18n/t' }),\n\n name() {\n return this.value?.metadata?.name || '';\n },\n description() {\n return this.value?.metadata?.annotations?.description || '';\n },\n controlPlaneName() {\n return this.value?.spec?.controlPlane?.ref?.name;\n },\n controlPlaneKind() {\n return this.value?.spec?.controlPlane?.ref?.kind;\n },\n controlPlaneNamespace() {\n return this.value?.spec?.controlPlane?.ref?.namespace;\n },\n machineDeploymentsCount() {\n return this.value?.spec?.workers?.machineDeployments?.length;\n },\n machineDeploymentsList() {\n return this.value?.spec?.workers?.machineDeployments?.map((w: Worker) => w.class).join(', ') || '';\n },\n machinePoolsCount() {\n return this.value?.spec?.workers?.machinePools?.length;\n },\n machinePoolsList() {\n return this.value?.spec?.workers?.machinePools?.map((w: Worker) => w.class).join(', ') || '';\n }\n },\n});\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=40d0155a&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=40d0155a&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"40d0155a\",\n null\n \n)\n\nexport default component.exports","\nimport Vue from 'vue';\nimport type { PropType } from 'vue';\nimport { get } from '@shell/utils/object';\nimport capitalize from 'lodash/capitalize';\nimport ClusterClassCard from './../components/ClusterClassCard/index.vue';\n\ninterface Card {\n id: String,\n obj: Object,\n selected: Boolean\n}\n\nexport default Vue.extend({\n components: { ClusterClassCard },\n name: 'CardGrid',\n\n props: {\n rows: {\n type: Array as PropType,\n required: true,\n },\n\n keyField: {\n type: String,\n default: 'key',\n },\n\n noDataKey: {\n type: String,\n default: 'sortableTable.noRows',\n },\n\n /**\n * Inherited global identifier prefix for tests\n * Define a term based on the parent component to avoid conflicts on multiple components\n */\n componentTestid: {\n type: String,\n default: 'select-card-grid'\n }\n },\n\n methods: {\n get,\n select(row: Card[], idx: number) {\n this.resetSelected();\n this.rows[idx].selected = true;\n this.$emit('clicked', row, idx);\n },\n resetSelected() {\n this.rows.map((el) => {\n el.selected = false;\n });\n },\n capitalize\n },\n});\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CardGrid.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CardGrid.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./CardGrid.vue?vue&type=template&id=e4d7fae2&scoped=true\"\nimport script from \"./CardGrid.vue?vue&type=script&lang=ts\"\nexport * from \"./CardGrid.vue?vue&type=script&lang=ts\"\nimport style0 from \"./CardGrid.vue?vue&type=style&index=0&id=e4d7fae2&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e4d7fae2\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[(_vm.title)?_c('div',{staticClass:\"clearfix\"},[_vm._t(\"title\",function(){return [_c('h3',[_vm._v(\" \"+_vm._s(_vm.title)+\" \")])]})],2):_vm._e(),(_vm.rows.length)?_vm._l((_vm.rows),function(row,idx){return _c('div',{key:idx,staticClass:\"box\",attrs:{\"data-testid\":`array-list-box${ idx }`}},[_vm._t(\"columns\",function(){return [_c('div',{staticClass:\"value\"},[_vm._t(\"value\",function(){return [_c('div',{staticClass:\"col mt-20\"},[_c('LabeledInput',{ref:\"value\",refInFor:true,attrs:{\"mode\":_vm.mode,\"disabled\":false,\"label\":_vm.t('capi.cluster.workers.name')},model:{value:(row.value.name),callback:function ($$v) {_vm.$set(row.value, \"name\", $$v)},expression:\"row.value.name\"}})],1),_c('div',{staticClass:\"col mt-20\"},[_c('LabeledSelect',{attrs:{\"mode\":_vm.mode,\"options\":_vm.classOptions,\"label-key\":\"capi.cluster.workers.class\"},model:{value:(row.value.class),callback:function ($$v) {_vm.$set(row.value, \"class\", $$v)},expression:\"row.value.class\"}})],1)]},{\"row\":row,\"mode\":_vm.mode,\"isView\":_vm.isView,\"queueUpdate\":_vm.queueUpdate}),(_vm.removeAllowed)?_c('div',{staticClass:\"remove\"},[_vm._t(\"remove-button\",function(){return [_c('button',{staticClass:\"btn role-link\",attrs:{\"type\":\"button\",\"disabled\":_vm.isView,\"data-testid\":`remove-item-${idx}`},on:{\"click\":function($event){return _vm.remove(row, idx)}}},[_vm._v(\" \"+_vm._s(_vm.removeLabel)+\" \")])]},{\"remove\":() => _vm.remove(row, idx),\"i\":idx,\"row\":row})],2):_vm._e()],2)]},{\"queueUpdate\":_vm.queueUpdate,\"i\":idx,\"rows\":_vm.rows,\"row\":row,\"mode\":_vm.mode,\"isView\":_vm.isView})],2)}):(_vm.mode==='view')?_c('div',{staticClass:\"text-muted\"},[_vm._v(\" — \")]):_c('div',[_vm._t(\"empty\")],2),(_vm.addAllowed && !_vm.isView)?_c('div',{staticClass:\"footer\"},[(_vm.addAllowed)?_vm._t(\"add\",function(){return [_c('button',{staticClass:\"btn role-tertiary add\",attrs:{\"type\":\"button\",\"disabled\":_vm.loading,\"data-testid\":\"array-list-button\"},on:{\"click\":function($event){return _vm.add()}}},[(_vm.loading)?_c('i',{staticClass:\"mr-5 icon icon-spinner icon-spin icon-lg\"}):_vm._e(),_vm._v(\" \"+_vm._s(_vm.addLabel)+\" \")])]},{\"add\":_vm.add}):_vm._e()],2):_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport Vue from 'vue';\nimport debounce from 'lodash/debounce';\nimport { removeAt } from '@shell/utils/array';\nimport { clone } from '@shell/utils/object';\nimport { _EDIT, _VIEW } from '@shell/config/query-params';\nimport LabeledSelect from '@shell/components/form/LabeledSelect.vue';\nimport LabeledInput from '@components/Form/LabeledInput/LabeledInput.vue';\n\nexport default Vue.extend({\n components: { LabeledSelect, LabeledInput },\n props: {\n value: {\n type: Array,\n default: null,\n },\n mode: {\n type: String,\n default: _EDIT,\n },\n title: {\n type: String,\n required: true\n },\n classOptions: {\n type: Array,\n default: null,\n },\n addAllowed: {\n type: Boolean,\n default: true,\n },\n removeAllowed: {\n type: Boolean,\n default: true,\n },\n defaultAddValue: {\n type: [String, Number, Object, Array],\n default: ''\n },\n loading: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n },\n data() {\n const input = (this.value as any[] || []).slice();\n const rows = [];\n\n for ( const value of input ) {\n rows.push({ value });\n }\n if ( !rows.length ) {\n const value = this.defaultAddValue ? clone(this.defaultAddValue) : '';\n\n rows.push({ value });\n }\n\n return { rows, lastUpdateWasFromValue: false };\n },\n\n computed: {\n isView() {\n return this.mode === _VIEW;\n },\n removeLabel() {\n return this.$store.getters['i18n/t']('generic.remove');\n },\n addLabel() {\n return this.$store.getters['i18n/t']('generic.add');\n }\n },\n watch: {\n value() {\n this.lastUpdateWasFromValue = true;\n this.rows = (this.value || []).map(v => ({ value: v }));\n },\n rows: {\n deep: true,\n handler() {\n // lastUpdateWasFromValue is used to break a cycle where when rows are updated\n // this was called which then forced rows to updated again\n if (!this.lastUpdateWasFromValue) {\n this.queueUpdate();\n }\n this.lastUpdateWasFromValue = false;\n }\n }\n },\n created() {\n this.queueUpdate = debounce(this.update, 50);\n },\n methods: {\n add() {\n this.rows.push({ value: clone(this.defaultAddValue) });\n if (this.defaultAddValue) {\n this.queueUpdate();\n }\n this.$nextTick(() => {\n const inputs = this.$refs.value;\n\n if ( inputs && inputs.length > 0 ) {\n inputs[inputs.length - 1].focus();\n }\n this.$emit('add');\n });\n },\n /**\n * Remove item and emits removed row and its own index value\n */\n remove(row: {[key: string]: any}, index: number) {\n this.$emit('remove', { row, index });\n removeAt(this.rows, index);\n this.queueUpdate();\n },\n update() {\n if ( this.isView ) {\n return;\n }\n const out = [];\n\n for ( const row of this.rows ) {\n const value = row.value;\n\n if ( typeof value !== 'undefined' ) {\n out.push(value);\n }\n }\n this.$emit('input', out);\n },\n }\n});\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./WorkerItem.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./WorkerItem.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./WorkerItem.vue?vue&type=template&id=4450d495\"\nimport script from \"./WorkerItem.vue?vue&type=script&lang=ts\"\nexport * from \"./WorkerItem.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('div',{staticClass:\"row mb-20\"},[_c('div',{staticClass:\"col span-3\"},[_c('LabeledInput',{attrs:{\"value\":_vm.apiServerPort,\"mode\":_vm.mode,\"disabled\":_vm.clusterIsAlreadyCreated,\"label\":_vm.t('capi.cluster.networking.apiServerPort'),\"rules\":_vm.rules.apiServerPort,\"required\":\"\"},on:{\"input\":function($event){return _vm.$emit('api-server-port-changed', $event)}}})],1),_c('div',{staticClass:\"col span-3\"},[_c('LabeledInput',{attrs:{\"value\":_vm.serviceDomain,\"mode\":_vm.mode,\"disabled\":_vm.clusterIsAlreadyCreated,\"label\":_vm.t('capi.cluster.networking.serviceDomain'),\"rules\":_vm.rules.serviceDomain},on:{\"input\":function($event){return _vm.$emit('service-domain-changed', $event)}}})],1)]),_c('div',{staticClass:\"row mb-20\"},[_c('div',{staticClass:\"col span-3\"},[_c('ArrayList',{attrs:{\"value\":_vm.podsCidrBlocks,\"protip\":false,\"mode\":_vm.mode,\"title\":_vm.t('capi.cluster.networking.pods'),\"rules\":_vm.rules.pods},on:{\"input\":function($event){return _vm.$emit('pods-cidr-blocks-changed', $event)}}})],1),_c('div',{staticClass:\"col span-3\"},[_c('ArrayList',{attrs:{\"value\":_vm.servicesCidrBlocks,\"protip\":false,\"mode\":_vm.mode,\"title\":_vm.t('capi.cluster.networking.services'),\"rules\":_vm.rules.services},on:{\"input\":function($event){return _vm.$emit('services-cidr-blocks-changed', $event)}}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport Vue from 'vue';\nimport { mapGetters } from 'vuex';\nimport { _EDIT } from '@shell/config/query-params';\nimport ArrayList from '@shell/components/form/ArrayList.vue';\nimport LabeledInput from '@components/Form/LabeledInput/LabeledInput.vue';\n\nexport default Vue.extend({\n components: {\n LabeledInput,\n ArrayList\n },\n props: {\n value: {\n type: Object,\n required: true,\n },\n mode: {\n type: String,\n required: true,\n },\n rules: {\n default: () => ({\n serviceDomain: [],\n apiServerPort: [],\n pods: [],\n services: []\n }),\n type: Object,\n },\n },\n computed: {\n ...mapGetters({ t: 'i18n/t' }),\n clusterIsAlreadyCreated() {\n return this.mode === _EDIT;\n },\n apiServerPort() {\n return this.value?.apiServerPort;\n },\n serviceDomain() {\n return this.value?.serviceDomain;\n },\n podsCidrBlocks() {\n return this.value?.pods?.cidrBlocks;\n },\n servicesCidrBlocks() {\n return this.value?.services?.cidrBlocks;\n },\n }\n});\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./NetworkSection.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./NetworkSection.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./NetworkSection.vue?vue&type=template&id=21951a5a\"\nimport script from \"./NetworkSection.vue?vue&type=script&lang=ts\"\nexport * from \"./NetworkSection.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('div',{staticClass:\"row mb-20\"},[_c('div',{staticClass:\"col\"},[_c('LabeledInput',{attrs:{\"mode\":_vm.mode,\"disabled\":_vm.clusterIsAlreadyCreated,\"label\":_vm.t('capi.cluster.controlPlaneEndpoint.host'),\"rules\":_vm.rules.host},model:{value:(_vm.value.host),callback:function ($$v) {_vm.$set(_vm.value, \"host\", $$v)},expression:\"value.host\"}})],1),_c('div',{staticClass:\"col\"},[_c('LabeledInput',{attrs:{\"mode\":_vm.mode,\"disabled\":_vm.clusterIsAlreadyCreated,\"label\":_vm.t('capi.cluster.controlPlaneEndpoint.port'),\"rules\":_vm.rules.port},model:{value:(_vm.value.port),callback:function ($$v) {_vm.$set(_vm.value, \"port\", _vm._n($$v))},expression:\"value.port\"}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport Vue from 'vue';\nimport { mapGetters } from 'vuex';\nimport { _EDIT } from '@shell/config/query-params';\nimport LabeledInput from '@components/Form/LabeledInput/LabeledInput.vue';\n\nexport default Vue.extend({\n name: 'ControlPlaneEndpointSection',\n components: { LabeledInput },\n props: {\n value: {\n type: Object,\n required: true,\n },\n mode: {\n type: String,\n required: true,\n },\n rules: {\n default: () => ({\n host: [],\n port: []\n }),\n type: Object,\n },\n },\n computed: {\n ...mapGetters({ t: 'i18n/t' }),\n clusterIsAlreadyCreated() {\n return this.mode === _EDIT;\n }\n }\n});\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ControlPlaneEndpointSection.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ControlPlaneEndpointSection.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./ControlPlaneEndpointSection.vue?vue&type=template&id=24a04156\"\nimport script from \"./ControlPlaneEndpointSection.vue?vue&type=script&lang=ts\"\nexport * from \"./ControlPlaneEndpointSection.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\nimport { defineComponent, PropType } from 'vue';\nimport { set, clone } from '@shell/utils/object';\nimport { clear } from '@shell/utils/array';\nimport LabeledInput from '@components/Form/LabeledInput/LabeledInput.vue';\nimport NameNsDescription from '@shell/components/form/NameNsDescription.vue';\nimport FormValidation from '@shell/mixins/form-validation';\nimport Loading from '@shell/components/Loading.vue';\nimport CruResource from '@shell/components/CruResource.vue';\nimport CreateEditView from '@shell/mixins/create-edit-view';\nimport { Translation } from '@rancher/shell/types/t';\nimport ClusterClassVariables from '../../components/CCVariables/index.vue';\nimport {\n versionTest, versionValidator, hostValidator, portValidator, cidrValidator, cidrArrayValid\n} from '../../util/validators';\nimport {\n CAPIClusterTopology, CAPIClusterNetwork, CAPIClusterCPEndpoint, ClusterClass, Worker\n} from '../../types/capi';\nimport CardGrid from '../../components/CardGrid.vue';\nimport WorkerItem from './WorkerItem.vue';\nimport NetworkSection from './NetworkSection.vue';\nimport ControlPlaneEndpointSection from './ControlPlaneEndpointSection.vue';\n\nconst defaultTopologyConfig: CAPIClusterTopology = {\n version: '',\n class: '',\n workers: { machineDeployments: [], machinePools: [] }\n};\nconst defaultClusterNetwork: CAPIClusterNetwork = {\n apiServerPort: 6443,\n pods: { cidrBlocks: [] },\n serviceDomain: '',\n services: { cidrBlocks: [] }\n};\n\nconst defaultCPEndpointConfig: CAPIClusterCPEndpoint = {\n host: '',\n port: 49152\n};\n\ninterface Step {\n name: String\n}\n\nexport default defineComponent({\n name: 'ClusterConfig',\n components: {\n CruResource,\n Loading,\n NameNsDescription,\n LabeledInput,\n WorkerItem,\n NetworkSection,\n ControlPlaneEndpointSection,\n ClusterClassVariables,\n CardGrid\n },\n mixins: [CreateEditView, FormValidation],\n props: {\n mode: {\n type: String,\n required: true,\n },\n value: {\n type: Object,\n required: true,\n },\n preselectedClass: {\n type: String,\n required: false,\n default: ''\n },\n clusterClasses: {\n type: Array as PropType,\n required: true\n }\n },\n beforeMount() {\n this.initSpecs();\n this.$nextTick(() => {\n this.loading = false;\n });\n },\n data() {\n const store = this.$store as {[key: string]: any};\n const t = store.getters['i18n/t'] as Translation;\n const stepClusterClass = {\n name: 'stepClusterClass',\n title: t('capi.cluster.steps.clusterClass.title'),\n label: t('capi.cluster.steps.clusterClass.label'),\n subtext: '',\n descriptionKey: 'capi.cluster.steps.clusterClass.description',\n ready: false,\n weight: 30\n };\n const stepConfiguration = {\n name: 'stepConfiguration',\n title: t('capi.cluster.steps.configuration.title'),\n label: t('capi.cluster.steps.configuration.label'),\n subtext: '',\n descriptionKey: 'capi.cluster.steps.configuration.description',\n ready: false,\n weight: 30\n };\n\n const stepVariables = {\n name: 'stepVariables',\n title: t('capi.cluster.steps.variables.title'),\n label: t('capi.cluster.steps.variables.label'),\n subtext: '',\n descriptionKey: 'capi.cluster.steps.variables.description',\n ready: true,\n weight: 30\n };\n const addSteps = !!this.preselectedClass ? [stepConfiguration, stepVariables] : [stepClusterClass, stepConfiguration, stepVariables];\n\n return {\n addSteps,\n fvFormRuleSets: [\n { path: 'metadata.name', rules: ['required'] },\n { path: 'spec.topology.version', rules: ['required', 'version'] },\n { path: 'spec.controlPlaneEndpoint.host', rules: ['host'] },\n { path: 'spec.controlPlaneEndpoint.port', rules: ['port'] },\n { path: 'spec.clusterNetwork.serviceDomain', rules: ['host'] },\n { path: 'spec.clusterNetwork.apiServerPort', rules: ['required', 'port'] },\n { path: 'spec.clusterNetwork.pods', rules: ['cidr'] },\n { path: 'spec.clusterNetwork.services', rules: ['cidr'] }\n ],\n credentialId: '',\n credential: null,\n versionInfo: {},\n defaultWorkerAddValue: {\n name: '',\n class: ''\n },\n variablesReady: true,\n clusterClassObj: null as ClusterClass | null,\n loading: true\n };\n },\n\n watch: {\n clusterClassObj(neu) {\n const step = this.addSteps.find((s: Step) => s.name === 'stepClusterClass');\n\n if (step) {\n this.$set(step, 'ready', !!neu);\n }\n },\n\n stepConfigurationRequires(neu) {\n const step = this.addSteps.find((s: Step) => s.name === 'stepConfiguration');\n\n this.$set(step, 'ready', neu);\n },\n\n variablesReady(neu) {\n const step = this.addSteps.find((s: Step) => s.name === 'stepVariables');\n\n this.$set(step, 'ready', neu);\n }\n },\n\n computed: {\n modeOptions() {\n return [{\n label: this.t('capi.cluster.secret.reuse'),\n value: false,\n }, {\n label: this.t('capi.cluster.secret.create'),\n value: true,\n }];\n },\n fvExtraRules() {\n return {\n version: versionValidator(this.$store.getters['i18n/t'], this.controlPlane),\n host: hostValidator(this.$store.getters['i18n/t']),\n port: portValidator(this.$store.getters['i18n/t']),\n cidr: cidrValidator(this.$store.getters['i18n/t'])\n };\n },\n stepConfigurationRequires() {\n const nameValid: boolean = !!this.value.metadata.name;\n const versionTestString: RegExp = versionTest(this.$store.getters['i18n/t'], this.controlPlane);\n const versionValid: boolean = this.value?.spec?.topology?.version && !!(this.value?.spec?.topology?.version.match(versionTestString));\n const controlPlaneEndpointPortValid: boolean = !portValidator(this.$store.getters['i18n/t'])(this.value?.spec?.controlPlaneEndpoint?.port);\n const controlPlaneEndpointHostValid: boolean = !hostValidator(this.$store.getters['i18n/t'])(this.value?.spec?.controlPlaneEndpoint?.host);\n const machineDeploymentsValid: boolean = this.value?.spec?.topology?.workers?.machineDeployments?.length > 0 && !!this.value?.spec?.topology?.workers?.machineDeployments[0]?.name && !!this.value?.spec?.topology?.workers?.machineDeployments[0]?.class;\n const machinePoolsValid: boolean = this.value?.spec?.topology?.workers?.machinePools?.length > 0 && !!this.value?.spec?.topology?.workers?.machinePools[0]?.name && !!this.value?.spec?.topology?.workers?.machinePools[0]?.class;\n const networkPodsValid: boolean = !this.value?.spec?.clusterNetwork?.pods?.cidrBlocks || cidrArrayValid(this.value.spec.clusterNetwork.pods.cidrBlocks);\n const networkServicesValid: boolean = !this.value?.spec?.clusterNetwork?.services?.cidrBlocks || cidrArrayValid(this.value.spec.clusterNetwork.services.cidrBlocks);\n const networkValid:boolean = !!this.value?.spec?.clusterNetwork?.apiServerPort && !isNaN(this.value?.spec?.clusterNetwork?.apiServerPort) && networkPodsValid && networkServicesValid;\n\n return nameValid && versionValid && controlPlaneEndpointHostValid && controlPlaneEndpointPortValid && networkValid && (machineDeploymentsValid || machinePoolsValid);\n },\n clusterNetwork() {\n return this.value?.spec?.clusterNetwork;\n },\n controlPlaneEndpoint() {\n return this.value?.spec?.controlPlaneEndpoint;\n },\n machineDeploymentOptions() {\n return this.clusterClassObj?.spec?.workers?.machineDeployments?.map( (w: Worker) => w.class);\n },\n machinePoolOptions() {\n return this.clusterClassObj?.spec?.workers?.machinePools?.map( (w: Worker) => w.class);\n },\n controlPlane() {\n return this.clusterClassObj?.spec?.controlPlane?.ref?.name;\n },\n clusterClassOptions() {\n const out: any[] = [];\n const currentObject = this.clusterClassObj;\n\n this.clusterClasses.forEach((obj: ClusterClass) => {\n addType(obj);\n });\n\n return out;\n\n function addType(obj: {[key: string]: any}) {\n const id = obj?.id;\n const subtype = {\n id,\n obj,\n selected: currentObject === obj\n };\n\n out.push(subtype);\n }\n },\n },\n methods: {\n set,\n setClassInfo(name: string) {\n this.clusterClassObj = this.clusterClasses.find((x: ClusterClass) => {\n const split = unescape(name).split('/');\n\n return x.metadata.namespace === split[0] && x.metadata.name === split[1];\n }) || null;\n if ( !!this.clusterClassObj ) {\n this.setClass();\n this.setNamespace();\n } else {\n this.errors.push(this.t('error.clusterClassNotFound'));\n }\n },\n setClass() {\n const clusterClassName = this.clusterClassObj?.metadata?.name;\n\n this.set(this.value.spec.topology, 'class', clusterClassName);\n },\n setNamespace() {\n const clusterClassNs = this.clusterClassObj?.metadata?.namespace;\n\n this.set(this.value.metadata, 'namespace', clusterClassNs);\n },\n async saveOverride() {\n if ( this.errors ) {\n clear(this.errors);\n }\n try {\n await this.value.save();\n\n return this.done();\n } catch (err) {\n this.errors.push(err);\n }\n },\n\n initSpecs() {\n if ( !this.value.spec ) {\n set(this.value, 'spec', { });\n }\n if ( !this.value.spec.topology ) {\n set(this.value.spec, 'topology', clone(defaultTopologyConfig));\n }\n\n if ( !this.value.spec.clusterNetwork ) {\n set(this.value.spec, 'clusterNetwork', clone(defaultClusterNetwork));\n }\n\n if ( !this.value.spec.controlPlaneEndpoint ) {\n set(this.value.spec, 'controlPlaneEndpoint', clone(defaultCPEndpointConfig));\n }\n if ( this.preselectedClass) {\n this.setClassInfo(this.preselectedClass);\n }\n },\n cancelCredential() {\n if ( this.$refs.cruresource ) {\n this.$refs.cruresource.emitOrRoute();\n }\n },\n cancel() {\n this.$router.push({\n name: 'c-cluster-manager-capi',\n params: {},\n });\n },\n done() {\n this.$router.push({\n name: 'c-cluster-manager-capi',\n params: {},\n });\n },\n clickedType(obj: {[key:string]: any}) {\n this.clusterClassObj = this.clusterClasses.find((x: ClusterClass) => x.id === obj.id) || null;\n this.setClass();\n this.setNamespace();\n },\n podsCidrBlocksChanged(val: string[]) {\n if ( !this.value.spec.clusterNetwork?.pods ) {\n set(this.value.spec.clusterNetwork, 'pods', []);\n }\n set(this.value.spec.clusterNetwork.pods, 'cidrBlocks', val);\n },\n servicesCidrBlocksChanged(val: string[]) {\n if ( !this.value.spec.clusterNetwork?.services ) {\n set(this.value.spec.clusterNetwork, 'services', []);\n }\n set(this.value.spec.clusterNetwork.services, 'cidrBlocks', val);\n }\n }\n});\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterConfig.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterConfig.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./ClusterConfig.vue?vue&type=template&id=a373f1fc&scoped=true\"\nimport script from \"./ClusterConfig.vue?vue&type=script&lang=ts\"\nexport * from \"./ClusterConfig.vue?vue&type=script&lang=ts\"\nimport style0 from \"./ClusterConfig.vue?vue&type=style&index=0&id=a373f1fc&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a373f1fc\",\n null\n \n)\n\nexport default component.exports","\nimport { defineComponent } from 'vue';\nimport { SUB_TYPE } from '@shell/config/query-params';\nimport { set } from '@shell/utils/object';\nimport CreateEditView from '@shell/mixins/create-edit-view';\nimport Loading from '@shell/components/Loading.vue';\nimport CruResource from '@shell/components/CruResource.vue';\nimport type { Route } from 'vue-router';\nimport { CAPI, QUERY_PARAMS, ClusterClass } from '../../types/capi';\nimport ClusterConfig from './ClusterConfig.vue';\n\nexport default defineComponent({\n name: 'CreateCluster',\n components: {\n CruResource,\n Loading,\n ClusterConfig\n },\n\n mixins: [CreateEditView],\n\n props: {\n value: {\n type: Object,\n default: null,\n },\n componentTestid: {\n type: String,\n default: 'capi-provider-create'\n },\n mode: {\n type: String,\n required: true\n }\n },\n beforeMount() {\n if ( !this.value.spec ) {\n set(this.value, 'spec', {});\n }\n if ( !this.value.id ) {\n if ( !this.value.metadata ) {\n set(this.value, 'metadata', {});\n }\n }\n this.getClusterClasses().then((cc: any[]) => {\n this.clusterClasses = cc;\n this.loading = false;\n }).catch((err: Error) => {\n this.errors.push(err);\n this.loading = false;\n });\n },\n data() {\n const route = this.$route as Route;\n const subType = route.query[SUB_TYPE] || null;\n const classFromURL = route.query[QUERY_PARAMS.CLASS];\n const curClass = this.value?.spec?.topology?.class;\n const curNs = this.value?.metadata?.namespace;\n const classFromValue = curNs && curClass ? escape(`${ curNs }/${ curClass }`) : null;\n const preselectedClass = classFromURL || classFromValue || null;\n\n return {\n subType, preselectedClass, capiProviders: [], clusterClasses: [] as any[], loading: true\n };\n },\n methods: {\n async getClusterClasses() {\n const allClusterClasses: ClusterClass[] = await this.$store.dispatch('management/findAll', { type: CAPI.CLUSTER_CLASS });\n\n return allClusterClasses;\n },\n cancel() {\n this.$router.push({\n name: 'c-cluster-manager-capi',\n params: {},\n });\n }\n }\n});\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=28b91ec6\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/vue-style-loader/index.js??ref--10-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=2a4e7b12&prod&lang=scss&scoped=true\"","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=337ae8b8&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=337ae8b8&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"337ae8b8\",\n null\n \n)\n\nexport default component.exports","import Dashboard from '../pages/index.vue';\n\nconst routes = [\n {\n name: 'c-cluster-manager-capi',\n path: '/c/:cluster/manager/capi',\n component: Dashboard,\n },\n];\n\nexport default routes;\n","import { LABELS } from '../types/capi';\n\nexport default function(resource: any) {\n if (resource?.metadata?.labels?.[LABELS.AUTO_IMPORT] === 'true') {\n delete resource.metadata.labels[LABELS.AUTO_IMPORT];\n } else {\n if (!resource.metadata.labels) {\n resource.metadata.labels = {};\n }\n resource.metadata.labels[LABELS.AUTO_IMPORT] = 'true';\n }\n try {\n resource.save();\n } catch (err) {\n const title = resource.t('resource.errors.update', { name: resource.name });\n\n resource.$dispatch('growl/error', {\n title, message: err, timeout: 5000\n }, { root: true });\n }\n}\n","import { importTypes } from '@rancher/auto-import';\nimport {\n ActionLocation, IPlugin, PanelLocation, TableColumnLocation, TabLocation\n} from '@shell/core/types';\nimport { _CLONE, _CREATE, _EDIT } from '@shell/config/query-params';\nimport { MANAGEMENT, CAPI as RANCHER_CAPI } from '@shell/config/types';\nimport { LABELS, CAPI as TURTLES_CAPI } from './types/capi';\nimport capiRouting from './routes/capi-routing';\nimport toggleAutoImport from './util/auto-import';\n\n// Init the package\nexport default function(plugin: IPlugin): void {\n // Auto-import model, detail, edit from the folders\n importTypes(plugin);\n\n // Provide plugin metadata from package.json\n plugin.metadata = require('./package.json');\n\n plugin.addProduct(require('./config/capi'));\n\n // Add Vue Routes\n plugin.addRoutes(capiRouting);\n\n // add tab to namespace edit\n plugin.addTab(\n TabLocation.RESOURCE_DETAIL,\n {\n resource: ['namespace'],\n cluster: ['local'],\n mode: [_CREATE, _CLONE, _EDIT, 'config']\n },\n {\n name: 'capi-auto-import',\n labelKey: 'capi.autoImport.label',\n weight: -5,\n showHeader: true,\n component: () => import('./components/AutoImport.vue')\n }\n );\n\n // add enable auto-import action to namespace table\n plugin.addAction(ActionLocation.TABLE,\n { path: [{ urlPath: '/c/local/explorer/projectsnamespaces', exact: true }, { urlPath: 'cluster.x-k8s.io.cluster', endsWith: true }] },\n {\n labelKey: 'capi.autoImport.enableAction',\n icon: 'icon-plus',\n enabled(target: any) {\n const isProject = target.type === MANAGEMENT.PROJECT;\n\n return !isProject && target?.metadata?.labels?.[LABELS.AUTO_IMPORT] !== 'true';\n },\n invoke(opts, resources = []) {\n resources.forEach((ns) => {\n toggleAutoImport(ns);\n });\n }\n });\n\n // add disable auto-import action to namespace table\n plugin.addAction(ActionLocation.TABLE,\n { path: [{ urlPath: '/c/local/explorer/projectsnamespaces', exact: true }, { urlPath: 'cluster.x-k8s.io.cluster', endsWith: true }] },\n {\n labelKey: 'capi.autoImport.disableAction',\n icon: 'icon-minus',\n enabled(target: any) {\n const isProject = target.type === MANAGEMENT.PROJECT;\n\n return !isProject && target?.metadata?.labels?.[LABELS.AUTO_IMPORT] === 'true';\n },\n invoke(opts, resources = []) {\n resources.forEach((ns) => {\n toggleAutoImport(ns);\n });\n }\n });\n\n // add column to namespace table\n plugin.addTableColumn(\n TableColumnLocation.RESOURCE,\n { path: [{ urlPath: '/c/local/explorer/projectsnamespaces', exact: true }] },\n {\n name: 'capi-auto-import',\n labelKey: 'capi.autoImport.label',\n getValue: (row: any) => {\n return row?.labels?.[LABELS.AUTO_IMPORT] === 'true';\n },\n width: 200,\n align: 'center',\n formatter: 'AutoImportState'\n }\n );\n\n // add warning to cluster mgmt resource list\n plugin.addPanel(PanelLocation.RESOURCE_LIST,\n { resource: ['provisioning.cattle.io.cluster'] },\n { component: () => import('./components/ClusterListBanner.vue') }\n );\n\n plugin.addPanel(PanelLocation.RESOURCE_LIST,\n {\n resource: [RANCHER_CAPI.CAPI_CLUSTER,\n TURTLES_CAPI.CLUSTER_CLASS,\n TURTLES_CAPI.PROVIDER,\n RANCHER_CAPI.MACHINE,\n RANCHER_CAPI.MACHINE_SET,\n RANCHER_CAPI.MACHINE_DEPLOYMENT]\n },\n { component: () => import('./components/ExperimentalBanner.vue') }\n );\n\n plugin.addPanel(PanelLocation.DETAILS_MASTHEAD,\n {\n resource: [RANCHER_CAPI.CAPI_CLUSTER,\n TURTLES_CAPI.CLUSTER_CLASS,\n TURTLES_CAPI.PROVIDER,\n RANCHER_CAPI.MACHINE,\n RANCHER_CAPI.MACHINE_SET,\n RANCHER_CAPI.MACHINE_DEPLOYMENT]\n },\n { component: () => import('./components/ExperimentalBanner.vue') }\n );\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","import { get } from './object';\nimport { strPad } from './string';\n\n// Based on https://github.com/emberjs/ember.js/blob/master/packages/@ember/-internals/runtime/lib/type-of.js\n// and https://github.com/emberjs/ember.js/blob/master/packages/@ember/-internals/runtime/lib/mixins/array.js\n/*\nCopyright (c) 2019 Yehuda Katz, Tom Dale and Ember.js contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n\n// ........................................\n// TYPING & ARRAY MESSAGING\n//\nconst TYPE_MAP = {\n '[object Boolean]': 'boolean',\n '[object Number]': 'number',\n '[object String]': 'string',\n '[object Function]': 'function',\n '[object Array]': 'array',\n '[object Date]': 'date',\n '[object RegExp]': 'regexp',\n '[object Object]': 'object',\n '[object FileList]': 'filelist',\n};\n\nconst { toString } = Object.prototype;\n\n/**\n Returns a consistent type for the passed object.\n\n Use this instead of the built-in `typeof` to get the type of an item.\n It will return the same result across all browsers and includes a bit\n more detail. Here is what will be returned:\n\n | Return Value | Meaning |\n |---------------|------------------------------------------------------|\n | 'string' | String primitive or String object. |\n | 'number' | Number primitive or Number object. |\n | 'boolean' | Boolean primitive or Boolean object. |\n | 'null' | Null value |\n | 'undefined' | Undefined value |\n | 'function' | A function |\n | 'array' | An instance of Array |\n | 'regexp' | An instance of RegExp |\n | 'date' | An instance of Date |\n | 'filelist' | An instance of FileList |\n | 'error' | An instance of the Error object |\n | 'object' | A JavaScript object |\n\n Examples:\n\n import { typeOf } from '@shell/utils/type-of';\n\n typeOf(); // 'undefined'\n typeOf(null); // 'null'\n typeOf(undefined); // 'undefined'\n typeOf('michael'); // 'string'\n typeOf(new String('michael')); // 'string'\n typeOf(101); // 'number'\n typeOf(new Number(101)); // 'number'\n typeOf(true); // 'boolean'\n typeOf(new Boolean(true)); // 'boolean'\n typeOf(A); // 'function'\n typeOf([1, 2, 90]); // 'array'\n typeOf(/abc/); // 'regexp'\n typeOf(new Date()); // 'date'\n typeOf(event.target.files); // 'filelist'\n typeOf(new Error('teamocil')); // 'error'\n\n // 'normal' JavaScript object\n typeOf({ a: 'b' }); // 'object'\n*/\nexport function typeOf(item) {\n if (item === null) {\n return 'null';\n }\n if (item === undefined) {\n return 'undefined';\n }\n let ret = TYPE_MAP[toString.call(item)] || 'object';\n\n if (ret === 'object') {\n if (item instanceof Error) {\n ret = 'error';\n } else if (item instanceof Date) {\n ret = 'date';\n }\n }\n\n return ret;\n}\n\nexport function spaceship(a, b) {\n const diff = a - b;\n\n return (diff > 0) - (diff < 0);\n}\n\nconst TYPE_ORDER = {\n undefined: 0,\n null: 1,\n boolean: 2,\n number: 3,\n string: 4,\n array: 5,\n object: 6,\n instance: 7,\n function: 8,\n class: 9,\n date: 10,\n};\n\nexport function compare(a, b) {\n const typeA = typeOf(a);\n const typeB = typeOf(b);\n\n const res = spaceship(TYPE_ORDER[typeA], TYPE_ORDER[typeB]);\n\n if ( res ) {\n return res;\n }\n\n switch (typeA) {\n case 'boolean':\n case 'number':\n return spaceship(a, b);\n\n case 'string':\n return spaceship(a.localeCompare(b), 0);\n\n case 'array': {\n const aLen = a.length;\n const bLen = b.length;\n const len = Math.min(aLen, bLen);\n\n for (let i = 0; i < len; i++) {\n const r = compare(a[i], b[i]);\n\n if (r !== 0) {\n return r;\n }\n }\n\n // all elements are equal now\n // shorter array should be ordered first\n return spaceship(aLen, bLen);\n }\n case 'date':\n return spaceship(a.getTime(), b.getTime());\n }\n\n return 0;\n}\n\nexport function parseField(str) {\n const parts = str.split(/:/);\n\n if ( parts.length === 2 && parts[1] === 'desc' ) {\n return { field: parts[0], reverse: true };\n } else {\n return { field: str, reverse: false };\n }\n}\n\nexport function sortBy(ary, keys, desc) {\n if ( !Array.isArray(keys) ) {\n keys = [keys];\n }\n\n return (ary || []).slice().sort((objA, objB) => {\n for ( let i = 0 ; i < keys.length ; i++ ) {\n const parsed = parseField(keys[i]);\n const a = get(objA, parsed.field);\n const b = get(objB, parsed.field);\n let res = compare(a, b);\n\n if ( res ) {\n if ( desc ) {\n res *= -1;\n }\n\n if ( parsed.reverse ) {\n res *= -1;\n }\n\n return res;\n }\n }\n\n return 0;\n });\n}\n\n// Turn foo1-bar2 into foo0000000001-bar0000000002 so that the numbers sort numerically\nconst splitRegex = /([^\\d]+)/;\nconst notNumericRegex = /^[0-9]+$/;\n\nexport function sortableNumericSuffix(str) {\n if ( typeof str !== 'string' ) {\n return str;\n }\n\n return str.split(splitRegex).map((x) => x.match(notNumericRegex) ? strPad(x, 10, '0') : x).join('').trim();\n}\n\nexport function isNumeric(num) {\n return !!`${ num }`.match(notNumericRegex);\n}\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".text.info[data-v-5050d908]{display:flex;align-items:center}.text.info>span[data-v-5050d908]{margin-right:5px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"cronstrue\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"cronstrue\"] = factory();\n\telse\n\t\troot[\"cronstrue\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 4);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar stringUtilities_1 = __webpack_require__(1);\nvar cronParser_1 = __webpack_require__(2);\nvar ExpressionDescriptor = (function () {\n function ExpressionDescriptor(expression, options) {\n this.expression = expression;\n this.options = options;\n this.expressionParts = new Array(5);\n if (ExpressionDescriptor.locales[options.locale]) {\n this.i18n = ExpressionDescriptor.locales[options.locale];\n }\n else {\n console.warn(\"Locale '\" + options.locale + \"' could not be found; falling back to 'en'.\");\n this.i18n = ExpressionDescriptor.locales[\"en\"];\n }\n if (options.use24HourTimeFormat === undefined) {\n options.use24HourTimeFormat = this.i18n.use24HourTimeFormatByDefault();\n }\n }\n ExpressionDescriptor.toString = function (expression, _a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.throwExceptionOnParseError, throwExceptionOnParseError = _c === void 0 ? true : _c, _d = _b.verbose, verbose = _d === void 0 ? false : _d, _e = _b.dayOfWeekStartIndexZero, dayOfWeekStartIndexZero = _e === void 0 ? true : _e, use24HourTimeFormat = _b.use24HourTimeFormat, _f = _b.locale, locale = _f === void 0 ? \"en\" : _f;\n var options = {\n throwExceptionOnParseError: throwExceptionOnParseError,\n verbose: verbose,\n dayOfWeekStartIndexZero: dayOfWeekStartIndexZero,\n use24HourTimeFormat: use24HourTimeFormat,\n locale: locale\n };\n var descripter = new ExpressionDescriptor(expression, options);\n return descripter.getFullDescription();\n };\n ExpressionDescriptor.initialize = function (localesLoader) {\n ExpressionDescriptor.specialCharacters = [\"/\", \"-\", \",\", \"*\"];\n localesLoader.load(ExpressionDescriptor.locales);\n };\n ExpressionDescriptor.prototype.getFullDescription = function () {\n var description = \"\";\n try {\n var parser = new cronParser_1.CronParser(this.expression, this.options.dayOfWeekStartIndexZero);\n this.expressionParts = parser.parse();\n var timeSegment = this.getTimeOfDayDescription();\n var dayOfMonthDesc = this.getDayOfMonthDescription();\n var monthDesc = this.getMonthDescription();\n var dayOfWeekDesc = this.getDayOfWeekDescription();\n var yearDesc = this.getYearDescription();\n description += timeSegment + dayOfMonthDesc + dayOfWeekDesc + monthDesc + yearDesc;\n description = this.transformVerbosity(description, this.options.verbose);\n description = description.charAt(0).toLocaleUpperCase() + description.substr(1);\n }\n catch (ex) {\n if (!this.options.throwExceptionOnParseError) {\n description = this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();\n }\n else {\n throw \"\" + ex;\n }\n }\n return description;\n };\n ExpressionDescriptor.prototype.getTimeOfDayDescription = function () {\n var secondsExpression = this.expressionParts[0];\n var minuteExpression = this.expressionParts[1];\n var hourExpression = this.expressionParts[2];\n var description = \"\";\n if (!stringUtilities_1.StringUtilities.containsAny(minuteExpression, ExpressionDescriptor.specialCharacters) &&\n !stringUtilities_1.StringUtilities.containsAny(hourExpression, ExpressionDescriptor.specialCharacters) &&\n !stringUtilities_1.StringUtilities.containsAny(secondsExpression, ExpressionDescriptor.specialCharacters)) {\n description += this.i18n.atSpace() + this.formatTime(hourExpression, minuteExpression, secondsExpression);\n }\n else if (!secondsExpression &&\n minuteExpression.indexOf(\"-\") > -1 &&\n !(minuteExpression.indexOf(\",\") > -1) &&\n !(minuteExpression.indexOf(\"/\") > -1) &&\n !stringUtilities_1.StringUtilities.containsAny(hourExpression, ExpressionDescriptor.specialCharacters)) {\n var minuteParts = minuteExpression.split(\"-\");\n description += stringUtilities_1.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(), this.formatTime(hourExpression, minuteParts[0], \"\"), this.formatTime(hourExpression, minuteParts[1], \"\"));\n }\n else if (!secondsExpression &&\n hourExpression.indexOf(\",\") > -1 &&\n hourExpression.indexOf(\"-\") == -1 &&\n hourExpression.indexOf(\"/\") == -1 &&\n !stringUtilities_1.StringUtilities.containsAny(minuteExpression, ExpressionDescriptor.specialCharacters)) {\n var hourParts = hourExpression.split(\",\");\n description += this.i18n.at();\n for (var i = 0; i < hourParts.length; i++) {\n description += \" \";\n description += this.formatTime(hourParts[i], minuteExpression, \"\");\n if (i < hourParts.length - 2) {\n description += \",\";\n }\n if (i == hourParts.length - 2) {\n description += this.i18n.spaceAnd();\n }\n }\n }\n else {\n var secondsDescription = this.getSecondsDescription();\n var minutesDescription = this.getMinutesDescription();\n var hoursDescription = this.getHoursDescription();\n description += secondsDescription;\n if (description.length > 0 && minutesDescription.length > 0) {\n description += \", \";\n }\n description += minutesDescription;\n if (description.length > 0 && hoursDescription.length > 0) {\n description += \", \";\n }\n description += hoursDescription;\n }\n return description;\n };\n ExpressionDescriptor.prototype.getSecondsDescription = function () {\n var _this = this;\n var description = this.getSegmentDescription(this.expressionParts[0], this.i18n.everySecond(), function (s) {\n return s;\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Seconds(), s);\n }, function (s) {\n return _this.i18n.secondsX0ThroughX1PastTheMinute();\n }, function (s) {\n return s == \"0\"\n ? \"\"\n : parseInt(s) < 20\n ? _this.i18n.atX0SecondsPastTheMinute()\n : _this.i18n.atX0SecondsPastTheMinuteGt20() || _this.i18n.atX0SecondsPastTheMinute();\n });\n return description;\n };\n ExpressionDescriptor.prototype.getMinutesDescription = function () {\n var _this = this;\n var secondsExpression = this.expressionParts[0];\n var hourExpression = this.expressionParts[2];\n var description = this.getSegmentDescription(this.expressionParts[1], this.i18n.everyMinute(), function (s) {\n return s;\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Minutes(), s);\n }, function (s) {\n return _this.i18n.minutesX0ThroughX1PastTheHour();\n }, function (s) {\n try {\n return s == \"0\" && hourExpression.indexOf(\"/\") == -1 && secondsExpression == \"\"\n ? _this.i18n.everyHour()\n : parseInt(s) < 20\n ? _this.i18n.atX0MinutesPastTheHour()\n : _this.i18n.atX0MinutesPastTheHourGt20() || _this.i18n.atX0MinutesPastTheHour();\n }\n catch (e) {\n return _this.i18n.atX0MinutesPastTheHour();\n }\n });\n return description;\n };\n ExpressionDescriptor.prototype.getHoursDescription = function () {\n var _this = this;\n var expression = this.expressionParts[2];\n var description = this.getSegmentDescription(expression, this.i18n.everyHour(), function (s) {\n return _this.formatTime(s, \"0\", \"\");\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Hours(), s);\n }, function (s) {\n return _this.i18n.betweenX0AndX1();\n }, function (s) {\n return _this.i18n.atX0();\n });\n return description;\n };\n ExpressionDescriptor.prototype.getDayOfWeekDescription = function () {\n var _this = this;\n var daysOfWeekNames = this.i18n.daysOfTheWeek();\n var description = null;\n if (this.expressionParts[5] == \"*\") {\n description = \"\";\n }\n else {\n description = this.getSegmentDescription(this.expressionParts[5], this.i18n.commaEveryDay(), function (s) {\n var exp = s;\n if (s.indexOf(\"#\") > -1) {\n exp = s.substr(0, s.indexOf(\"#\"));\n }\n else if (s.indexOf(\"L\") > -1) {\n exp = exp.replace(\"L\", \"\");\n }\n return daysOfWeekNames[parseInt(exp)];\n }, function (s) {\n if (parseInt(s) == 1) {\n return \"\";\n }\n else {\n return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(), s);\n }\n }, function (s) {\n return _this.i18n.commaX0ThroughX1();\n }, function (s) {\n var format = null;\n if (s.indexOf(\"#\") > -1) {\n var dayOfWeekOfMonthNumber = s.substring(s.indexOf(\"#\") + 1);\n var dayOfWeekOfMonthDescription = null;\n switch (dayOfWeekOfMonthNumber) {\n case \"1\":\n dayOfWeekOfMonthDescription = _this.i18n.first();\n break;\n case \"2\":\n dayOfWeekOfMonthDescription = _this.i18n.second();\n break;\n case \"3\":\n dayOfWeekOfMonthDescription = _this.i18n.third();\n break;\n case \"4\":\n dayOfWeekOfMonthDescription = _this.i18n.fourth();\n break;\n case \"5\":\n dayOfWeekOfMonthDescription = _this.i18n.fifth();\n break;\n }\n format = _this.i18n.commaOnThe() + dayOfWeekOfMonthDescription + _this.i18n.spaceX0OfTheMonth();\n }\n else if (s.indexOf(\"L\") > -1) {\n format = _this.i18n.commaOnTheLastX0OfTheMonth();\n }\n else {\n var domSpecified = _this.expressionParts[3] != \"*\";\n format = domSpecified ? _this.i18n.commaAndOnX0() : _this.i18n.commaOnlyOnX0();\n }\n return format;\n });\n }\n return description;\n };\n ExpressionDescriptor.prototype.getMonthDescription = function () {\n var _this = this;\n var monthNames = this.i18n.monthsOfTheYear();\n var description = this.getSegmentDescription(this.expressionParts[4], \"\", function (s) {\n return monthNames[parseInt(s) - 1];\n }, function (s) {\n if (parseInt(s) == 1) {\n return \"\";\n }\n else {\n return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Months(), s);\n }\n }, function (s) {\n return _this.i18n.commaMonthX0ThroughMonthX1() || _this.i18n.commaX0ThroughX1();\n }, function (s) {\n return _this.i18n.commaOnlyInMonthX0 ? _this.i18n.commaOnlyInMonthX0() : _this.i18n.commaOnlyInX0();\n });\n return description;\n };\n ExpressionDescriptor.prototype.getDayOfMonthDescription = function () {\n var _this = this;\n var description = null;\n var expression = this.expressionParts[3];\n switch (expression) {\n case \"L\":\n description = this.i18n.commaOnTheLastDayOfTheMonth();\n break;\n case \"WL\":\n case \"LW\":\n description = this.i18n.commaOnTheLastWeekdayOfTheMonth();\n break;\n default:\n var weekDayNumberMatches = expression.match(/(\\d{1,2}W)|(W\\d{1,2})/);\n if (weekDayNumberMatches) {\n var dayNumber = parseInt(weekDayNumberMatches[0].replace(\"W\", \"\"));\n var dayString = dayNumber == 1\n ? this.i18n.firstWeekday()\n : stringUtilities_1.StringUtilities.format(this.i18n.weekdayNearestDayX0(), dayNumber.toString());\n description = stringUtilities_1.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(), dayString);\n break;\n }\n else {\n var lastDayOffSetMatches = expression.match(/L-(\\d{1,2})/);\n if (lastDayOffSetMatches) {\n var offSetDays = lastDayOffSetMatches[1];\n description = stringUtilities_1.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(), offSetDays);\n break;\n }\n else if (expression == \"*\" && this.expressionParts[5] != \"*\") {\n return \"\";\n }\n else {\n description = this.getSegmentDescription(expression, this.i18n.commaEveryDay(), function (s) {\n return s == \"L\" ? _this.i18n.lastDay() : ((_this.i18n.dayX0) ? stringUtilities_1.StringUtilities.format(_this.i18n.dayX0(), s) : s);\n }, function (s) {\n return s == \"1\" ? _this.i18n.commaEveryDay() : _this.i18n.commaEveryX0Days();\n }, function (s) {\n return _this.i18n.commaBetweenDayX0AndX1OfTheMonth();\n }, function (s) {\n return _this.i18n.commaOnDayX0OfTheMonth();\n });\n }\n break;\n }\n }\n return description;\n };\n ExpressionDescriptor.prototype.getYearDescription = function () {\n var _this = this;\n var description = this.getSegmentDescription(this.expressionParts[6], \"\", function (s) {\n return /^\\d+$/.test(s) ? new Date(parseInt(s), 1).getFullYear().toString() : s;\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Years(), s);\n }, function (s) {\n return _this.i18n.commaYearX0ThroughYearX1() || _this.i18n.commaX0ThroughX1();\n }, function (s) {\n return _this.i18n.commaOnlyInYearX0 ? _this.i18n.commaOnlyInYearX0() : _this.i18n.commaOnlyInX0();\n });\n return description;\n };\n ExpressionDescriptor.prototype.getSegmentDescription = function (expression, allDescription, getSingleItemDescription, getIntervalDescriptionFormat, getBetweenDescriptionFormat, getDescriptionFormat) {\n var _this = this;\n var description = null;\n if (!expression) {\n description = \"\";\n }\n else if (expression === \"*\") {\n description = allDescription;\n }\n else if (!stringUtilities_1.StringUtilities.containsAny(expression, [\"/\", \"-\", \",\"])) {\n description = stringUtilities_1.StringUtilities.format(getDescriptionFormat(expression), getSingleItemDescription(expression));\n }\n else if (expression.indexOf(\"/\") > -1) {\n var segments = expression.split(\"/\");\n description = stringUtilities_1.StringUtilities.format(getIntervalDescriptionFormat(segments[1]), segments[1]);\n if (segments[0].indexOf(\"-\") > -1) {\n var betweenSegmentDescription = this.generateBetweenSegmentDescription(segments[0], getBetweenDescriptionFormat, getSingleItemDescription);\n if (betweenSegmentDescription.indexOf(\", \") != 0) {\n description += \", \";\n }\n description += betweenSegmentDescription;\n }\n else if (!stringUtilities_1.StringUtilities.containsAny(segments[0], [\"*\", \",\"])) {\n var rangeItemDescription = stringUtilities_1.StringUtilities.format(getDescriptionFormat(segments[0]), getSingleItemDescription(segments[0]));\n rangeItemDescription = rangeItemDescription.replace(\", \", \"\");\n description += stringUtilities_1.StringUtilities.format(this.i18n.commaStartingX0(), rangeItemDescription);\n }\n }\n else if (expression.indexOf(\",\") > -1) {\n var segments = expression.split(\",\");\n var descriptionContent = \"\";\n for (var i = 0; i < segments.length; i++) {\n if (i > 0 && segments.length > 2) {\n descriptionContent += \",\";\n if (i < segments.length - 1) {\n descriptionContent += \" \";\n }\n }\n if (i > 0 && segments.length > 1 && (i == segments.length - 1 || segments.length == 2)) {\n descriptionContent += this.i18n.spaceAnd() + \" \";\n }\n if (segments[i].indexOf(\"-\") > -1) {\n var betweenSegmentDescription = this.generateBetweenSegmentDescription(segments[i], function (s) {\n return _this.i18n.commaX0ThroughX1();\n }, getSingleItemDescription);\n betweenSegmentDescription = betweenSegmentDescription.replace(\", \", \"\");\n descriptionContent += betweenSegmentDescription;\n }\n else {\n descriptionContent += getSingleItemDescription(segments[i]);\n }\n }\n description = stringUtilities_1.StringUtilities.format(getDescriptionFormat(expression), descriptionContent);\n }\n else if (expression.indexOf(\"-\") > -1) {\n description = this.generateBetweenSegmentDescription(expression, getBetweenDescriptionFormat, getSingleItemDescription);\n }\n return description;\n };\n ExpressionDescriptor.prototype.generateBetweenSegmentDescription = function (betweenExpression, getBetweenDescriptionFormat, getSingleItemDescription) {\n var description = \"\";\n var betweenSegments = betweenExpression.split(\"-\");\n var betweenSegment1Description = getSingleItemDescription(betweenSegments[0]);\n var betweenSegment2Description = getSingleItemDescription(betweenSegments[1]);\n betweenSegment2Description = betweenSegment2Description.replace(\":00\", \":59\");\n var betweenDescriptionFormat = getBetweenDescriptionFormat(betweenExpression);\n description += stringUtilities_1.StringUtilities.format(betweenDescriptionFormat, betweenSegment1Description, betweenSegment2Description);\n return description;\n };\n ExpressionDescriptor.prototype.formatTime = function (hourExpression, minuteExpression, secondExpression) {\n var hour = parseInt(hourExpression);\n var period = \"\";\n var setPeriodBeforeTime = false;\n if (!this.options.use24HourTimeFormat) {\n setPeriodBeforeTime = this.i18n.setPeriodBeforeTime && this.i18n.setPeriodBeforeTime();\n period = setPeriodBeforeTime ? this.getPeriod(hour) + \" \" : \" \" + this.getPeriod(hour);\n if (hour > 12) {\n hour -= 12;\n }\n if (hour === 0) {\n hour = 12;\n }\n }\n var minute = minuteExpression;\n var second = \"\";\n if (secondExpression) {\n second = \":\" + (\"00\" + secondExpression).substring(secondExpression.length);\n }\n return \"\" + (setPeriodBeforeTime ? period : \"\") + (\"00\" + hour.toString()).substring(hour.toString().length) + \":\" + (\"00\" + minute.toString()).substring(minute.toString().length) + second + (!setPeriodBeforeTime ? period : \"\");\n };\n ExpressionDescriptor.prototype.transformVerbosity = function (description, useVerboseFormat) {\n if (!useVerboseFormat) {\n description = description.replace(new RegExp(\", \" + this.i18n.everyMinute(), \"g\"), \"\");\n description = description.replace(new RegExp(\", \" + this.i18n.everyHour(), \"g\"), \"\");\n description = description.replace(new RegExp(this.i18n.commaEveryDay(), \"g\"), \"\");\n description = description.replace(/\\, ?$/, \"\");\n }\n return description;\n };\n ExpressionDescriptor.prototype.getPeriod = function (hour) {\n return hour >= 12 ? this.i18n.pm && this.i18n.pm() || \"PM\" : this.i18n.am && this.i18n.am() || \"AM\";\n };\n ExpressionDescriptor.locales = {};\n return ExpressionDescriptor;\n}());\nexports.ExpressionDescriptor = ExpressionDescriptor;\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar StringUtilities = (function () {\n function StringUtilities() {\n }\n StringUtilities.format = function (template) {\n var values = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n values[_i - 1] = arguments[_i];\n }\n return template.replace(/%s/g, function () {\n return values.shift();\n });\n };\n StringUtilities.containsAny = function (text, searchStrings) {\n return searchStrings.some(function (c) {\n return text.indexOf(c) > -1;\n });\n };\n return StringUtilities;\n}());\nexports.StringUtilities = StringUtilities;\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CronParser = (function () {\n function CronParser(expression, dayOfWeekStartIndexZero) {\n if (dayOfWeekStartIndexZero === void 0) { dayOfWeekStartIndexZero = true; }\n this.expression = expression;\n this.dayOfWeekStartIndexZero = dayOfWeekStartIndexZero;\n }\n CronParser.prototype.parse = function () {\n var parsed = this.extractParts(this.expression);\n this.normalize(parsed);\n this.validate(parsed);\n return parsed;\n };\n CronParser.prototype.extractParts = function (expression) {\n if (!this.expression) {\n throw new Error(\"Expression is empty\");\n }\n var parsed = expression.trim().split(/[ ]+/);\n if (parsed.length < 5) {\n throw new Error(\"Expression has only \" + parsed.length + \" part\" + (parsed.length == 1 ? \"\" : \"s\") + \". At least 5 parts are required.\");\n }\n else if (parsed.length == 5) {\n parsed.unshift(\"\");\n parsed.push(\"\");\n }\n else if (parsed.length == 6) {\n if (/\\d{4}$/.test(parsed[5])) {\n parsed.unshift(\"\");\n }\n else {\n parsed.push(\"\");\n }\n }\n else if (parsed.length > 7) {\n throw new Error(\"Expression has \" + parsed.length + \" parts; too many!\");\n }\n return parsed;\n };\n CronParser.prototype.normalize = function (expressionParts) {\n var _this = this;\n expressionParts[3] = expressionParts[3].replace(\"?\", \"*\");\n expressionParts[5] = expressionParts[5].replace(\"?\", \"*\");\n expressionParts[2] = expressionParts[2].replace(\"?\", \"*\");\n if (expressionParts[0].indexOf(\"0/\") == 0) {\n expressionParts[0] = expressionParts[0].replace(\"0/\", \"*/\");\n }\n if (expressionParts[1].indexOf(\"0/\") == 0) {\n expressionParts[1] = expressionParts[1].replace(\"0/\", \"*/\");\n }\n if (expressionParts[2].indexOf(\"0/\") == 0) {\n expressionParts[2] = expressionParts[2].replace(\"0/\", \"*/\");\n }\n if (expressionParts[3].indexOf(\"1/\") == 0) {\n expressionParts[3] = expressionParts[3].replace(\"1/\", \"*/\");\n }\n if (expressionParts[4].indexOf(\"1/\") == 0) {\n expressionParts[4] = expressionParts[4].replace(\"1/\", \"*/\");\n }\n if (expressionParts[5].indexOf(\"1/\") == 0) {\n expressionParts[5] = expressionParts[5].replace(\"1/\", \"*/\");\n }\n if (expressionParts[6].indexOf(\"1/\") == 0) {\n expressionParts[6] = expressionParts[6].replace(\"1/\", \"*/\");\n }\n expressionParts[5] = expressionParts[5].replace(/(^\\d)|([^#/\\s]\\d)/g, function (t) {\n var dowDigits = t.replace(/\\D/, \"\");\n var dowDigitsAdjusted = dowDigits;\n if (_this.dayOfWeekStartIndexZero) {\n if (dowDigits == \"7\") {\n dowDigitsAdjusted = \"0\";\n }\n }\n else {\n dowDigitsAdjusted = (parseInt(dowDigits) - 1).toString();\n }\n return t.replace(dowDigits, dowDigitsAdjusted);\n });\n if (expressionParts[5] == \"L\") {\n expressionParts[5] = \"6\";\n }\n if (expressionParts[3] == \"?\") {\n expressionParts[3] = \"*\";\n }\n if (expressionParts[3].indexOf(\"W\") > -1 &&\n (expressionParts[3].indexOf(\",\") > -1 || expressionParts[3].indexOf(\"-\") > -1)) {\n throw new Error(\"The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.\");\n }\n var days = {\n SUN: 0,\n MON: 1,\n TUE: 2,\n WED: 3,\n THU: 4,\n FRI: 5,\n SAT: 6\n };\n for (var day in days) {\n expressionParts[5] = expressionParts[5].replace(new RegExp(day, \"gi\"), days[day].toString());\n }\n var months = {\n JAN: 1,\n FEB: 2,\n MAR: 3,\n APR: 4,\n MAY: 5,\n JUN: 6,\n JUL: 7,\n AUG: 8,\n SEP: 9,\n OCT: 10,\n NOV: 11,\n DEC: 12\n };\n for (var month in months) {\n expressionParts[4] = expressionParts[4].replace(new RegExp(month, \"gi\"), months[month].toString());\n }\n if (expressionParts[0] == \"0\") {\n expressionParts[0] = \"\";\n }\n if (!/\\*|\\-|\\,|\\//.test(expressionParts[2]) &&\n (/\\*|\\//.test(expressionParts[1]) || /\\*|\\//.test(expressionParts[0]))) {\n expressionParts[2] += \"-\" + expressionParts[2];\n }\n for (var i = 0; i < expressionParts.length; i++) {\n if (expressionParts[i] == \"*/1\") {\n expressionParts[i] = \"*\";\n }\n if (expressionParts[i].indexOf(\"/\") > -1 && !/^\\*|\\-|\\,/.test(expressionParts[i])) {\n var stepRangeThrough = null;\n switch (i) {\n case 4:\n stepRangeThrough = \"12\";\n break;\n case 5:\n stepRangeThrough = \"6\";\n break;\n case 6:\n stepRangeThrough = \"9999\";\n break;\n default:\n stepRangeThrough = null;\n break;\n }\n if (stepRangeThrough != null) {\n var parts = expressionParts[i].split(\"/\");\n expressionParts[i] = parts[0] + \"-\" + stepRangeThrough + \"/\" + parts[1];\n }\n }\n }\n };\n CronParser.prototype.validate = function (parsed) {\n this.assertNoInvalidCharacters(\"DOW\", parsed[5]);\n this.assertNoInvalidCharacters(\"DOM\", parsed[3]);\n };\n CronParser.prototype.assertNoInvalidCharacters = function (partDescription, expression) {\n var invalidChars = expression.match(/[A-KM-VX-Z]+/gi);\n if (invalidChars && invalidChars.length) {\n throw new Error(partDescription + \" part contains invalid values: '\" + invalidChars.toString() + \"'\");\n }\n };\n return CronParser;\n}());\nexports.CronParser = CronParser;\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar en = (function () {\n function en() {\n }\n en.prototype.atX0SecondsPastTheMinuteGt20 = function () {\n return null;\n };\n en.prototype.atX0MinutesPastTheHourGt20 = function () {\n return null;\n };\n en.prototype.commaMonthX0ThroughMonthX1 = function () {\n return null;\n };\n en.prototype.commaYearX0ThroughYearX1 = function () {\n return null;\n };\n en.prototype.use24HourTimeFormatByDefault = function () {\n return false;\n };\n en.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {\n return \"An error occured when generating the expression description. Check the cron expression syntax.\";\n };\n en.prototype.everyMinute = function () {\n return \"every minute\";\n };\n en.prototype.everyHour = function () {\n return \"every hour\";\n };\n en.prototype.atSpace = function () {\n return \"At \";\n };\n en.prototype.everyMinuteBetweenX0AndX1 = function () {\n return \"Every minute between %s and %s\";\n };\n en.prototype.at = function () {\n return \"At\";\n };\n en.prototype.spaceAnd = function () {\n return \" and\";\n };\n en.prototype.everySecond = function () {\n return \"every second\";\n };\n en.prototype.everyX0Seconds = function () {\n return \"every %s seconds\";\n };\n en.prototype.secondsX0ThroughX1PastTheMinute = function () {\n return \"seconds %s through %s past the minute\";\n };\n en.prototype.atX0SecondsPastTheMinute = function () {\n return \"at %s seconds past the minute\";\n };\n en.prototype.everyX0Minutes = function () {\n return \"every %s minutes\";\n };\n en.prototype.minutesX0ThroughX1PastTheHour = function () {\n return \"minutes %s through %s past the hour\";\n };\n en.prototype.atX0MinutesPastTheHour = function () {\n return \"at %s minutes past the hour\";\n };\n en.prototype.everyX0Hours = function () {\n return \"every %s hours\";\n };\n en.prototype.betweenX0AndX1 = function () {\n return \"between %s and %s\";\n };\n en.prototype.atX0 = function () {\n return \"at %s\";\n };\n en.prototype.commaEveryDay = function () {\n return \", every day\";\n };\n en.prototype.commaEveryX0DaysOfTheWeek = function () {\n return \", every %s days of the week\";\n };\n en.prototype.commaX0ThroughX1 = function () {\n return \", %s through %s\";\n };\n en.prototype.first = function () {\n return \"first\";\n };\n en.prototype.second = function () {\n return \"second\";\n };\n en.prototype.third = function () {\n return \"third\";\n };\n en.prototype.fourth = function () {\n return \"fourth\";\n };\n en.prototype.fifth = function () {\n return \"fifth\";\n };\n en.prototype.commaOnThe = function () {\n return \", on the \";\n };\n en.prototype.spaceX0OfTheMonth = function () {\n return \" %s of the month\";\n };\n en.prototype.lastDay = function () {\n return \"the last day\";\n };\n en.prototype.commaOnTheLastX0OfTheMonth = function () {\n return \", on the last %s of the month\";\n };\n en.prototype.commaOnlyOnX0 = function () {\n return \", only on %s\";\n };\n en.prototype.commaAndOnX0 = function () {\n return \", and on %s\";\n };\n en.prototype.commaEveryX0Months = function () {\n return \", every %s months\";\n };\n en.prototype.commaOnlyInX0 = function () {\n return \", only in %s\";\n };\n en.prototype.commaOnTheLastDayOfTheMonth = function () {\n return \", on the last day of the month\";\n };\n en.prototype.commaOnTheLastWeekdayOfTheMonth = function () {\n return \", on the last weekday of the month\";\n };\n en.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {\n return \", %s days before the last day of the month\";\n };\n en.prototype.firstWeekday = function () {\n return \"first weekday\";\n };\n en.prototype.weekdayNearestDayX0 = function () {\n return \"weekday nearest day %s\";\n };\n en.prototype.commaOnTheX0OfTheMonth = function () {\n return \", on the %s of the month\";\n };\n en.prototype.commaEveryX0Days = function () {\n return \", every %s days\";\n };\n en.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {\n return \", between day %s and %s of the month\";\n };\n en.prototype.commaOnDayX0OfTheMonth = function () {\n return \", on day %s of the month\";\n };\n en.prototype.commaEveryHour = function () {\n return \", every hour\";\n };\n en.prototype.commaEveryX0Years = function () {\n return \", every %s years\";\n };\n en.prototype.commaStartingX0 = function () {\n return \", starting %s\";\n };\n en.prototype.daysOfTheWeek = function () {\n return [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n };\n en.prototype.monthsOfTheYear = function () {\n return [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\"\n ];\n };\n return en;\n}());\nexports.en = en;\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar expressionDescriptor_ts_1 = __webpack_require__(0);\nvar enLocaleLoader_1 = __webpack_require__(5);\nexpressionDescriptor_ts_1.ExpressionDescriptor.initialize(new enLocaleLoader_1.enLocaleLoader());\nexports.default = expressionDescriptor_ts_1.ExpressionDescriptor;\nvar toString = expressionDescriptor_ts_1.ExpressionDescriptor.toString;\nexports.toString = toString;\n\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar en_1 = __webpack_require__(3);\nvar enLocaleLoader = (function () {\n function enLocaleLoader() {\n }\n enLocaleLoader.prototype.load = function (availableLocales) {\n availableLocales[\"en\"] = new en_1.en();\n };\n return enLocaleLoader;\n}());\nexports.enLocaleLoader = enLocaleLoader;\n\n\n/***/ })\n/******/ ]);\n});","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".actions[data-v-db441fb2]{text-align:right}.machine-name[data-v-db441fb2]{font-weight:600}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","export * from \"-!../../../node_modules/vue-style-loader/index.js??ref--10-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=337ae8b8&prod&lang=scss&scoped=true\"","/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\nfunction negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n}\n\nmodule.exports = negate;\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","export function camelToTitle(str) {\n return dasherize((str || '')).split('-').map((str) => {\n return ucFirst(str);\n }).join(' ');\n}\n\nexport function ucFirst(str) {\n str = str || '';\n\n return str.substr(0, 1).toUpperCase() + str.substr(1);\n}\n\nexport function lcFirst(str) {\n str = str || '';\n\n return str.substr(0, 1).toLowerCase() + str.substr(1);\n}\n\nexport function strPad(str, toLength, padChars = ' ', right = false) {\n str = `${ str }`;\n\n if (str.length >= toLength) {\n return str;\n }\n\n const neededLen = toLength - str.length + 1;\n const padStr = (new Array(neededLen)).join(padChars).substr(0, neededLen);\n\n if (right) {\n return str + padStr;\n } else {\n return padStr + str;\n }\n}\n\n// Turn thing1 into thing00000001 so that the numbers sort numerically\nexport function sortableNumericSuffix(str) {\n str = str || '';\n const match = str.match(/^(.*[^0-9])([0-9]+)$/);\n\n if (match) {\n return match[1] + strPad(match[2], 8, '0');\n }\n\n return str;\n}\n\nconst entityMap = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '/': '/'\n};\n\nexport function escapeHtml(html) {\n return String(html).replace(/[&<>\"']/g, (s) => {\n return entityMap[s];\n });\n}\n\n/**\n * Return HTML markup from escaped HTML string, allowing specific tags\n * @param text string\n * @returns string\n */\nexport function decodeHtml(text) {\n const div = document.createElement('div');\n\n div.innerHTML = text;\n\n return div.textContent || div.innerText || '';\n}\n\nexport function escapeRegex(string) {\n return string.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'); // $& means the whole matched string\n}\n\nexport function random32(count) {\n count = Math.max(0, count || 1);\n\n const out = [];\n let i;\n\n if (window.crypto && window.crypto.getRandomValues) {\n const tmp = new Uint32Array(count);\n\n window.crypto.getRandomValues(tmp);\n for (i = 0; i < tmp.length; i++) {\n out[i] = tmp[i];\n }\n } else {\n for (i = 0; i < count; i++) {\n out[i] = Math.random() * 4294967296; // Math.pow(2,32);\n }\n }\n\n if (count === 1) {\n return out[0];\n } else {\n return out;\n }\n}\n\nconst alpha = 'abcdefghijklmnopqrstuvwxyz';\nconst num = '0123456789';\nconst sym = '!@#$%^&*()_+-=[]{};:,./<>?|';\n\nexport const CHARSET = {\n NUMERIC: num,\n NO_VOWELS: 'bcdfghjklmnpqrstvwxz2456789',\n ALPHA: alpha + alpha.toUpperCase(),\n ALPHA_NUM: alpha + alpha.toUpperCase() + num,\n ALPHA_LOWER: alpha,\n ALPHA_UPPER: alpha.toUpperCase(),\n HEX: `${ num }ABCDEF`,\n PASSWORD: alpha + alpha.toUpperCase() + num + alpha + alpha.toUpperCase() + num + sym,\n // ^-- includes alpha / ALPHA / num twice to reduce the occurrence of symbols\n};\n\nexport function randomStr(length = 16, chars = CHARSET.ALPHA_NUM) {\n if (!chars || !chars.length) {\n return null;\n }\n\n return random32(length).map((val) => {\n return chars[val % chars.length];\n }).join('');\n}\n\nexport function formatPercent(value, maxPrecision = 2) {\n if (value < 1 && maxPrecision >= 2) {\n return `${ Math.round(value * 100) / 100 }%`;\n } else if (value < 10 && maxPrecision >= 1) {\n return `${ Math.round(value * 10) / 10 }%`;\n } else {\n return `${ Math.round(value) }%`;\n }\n}\n\nexport function pluralize(str) {\n if ( str.match(/.*[^aeiou]y$/i) ) {\n return `${ str.substr(0, str.length - 1) }ies`;\n } else if ( str.endsWith('ics') ) {\n return str;\n } else if ( str.endsWith('s') ) {\n return `${ str }es`;\n } else {\n return `${ str }s`;\n }\n}\n\nexport function resourceNames(names, plusMore, t) {\n return names.reduce((res, name, i) => {\n if (i >= 5) {\n return res;\n }\n res += `${ escapeHtml( name ) }`;\n if (i === names.length - 1) {\n res += plusMore;\n } else {\n res += i === names.length - 2 ? t('generic.and') : t('generic.comma');\n }\n\n return res;\n }, '');\n}\n\nexport function indent(lines, count = 2, token = ' ', afterRegex = null) {\n if (typeof lines === 'string') {\n lines = lines.split(/\\n/);\n } else {\n lines = lines || [];\n }\n\n const padStr = (new Array(count + 1)).join(token);\n\n const out = lines.map((line) => {\n let prefix = '';\n let suffix = line;\n\n if (afterRegex) {\n const match = line.match(afterRegex);\n\n if (match) {\n prefix = match[match.length - 1];\n suffix = line.substr(match[0].length);\n }\n }\n\n return `${ prefix }${ padStr }${ suffix }`;\n });\n\n const str = out.join('\\n');\n\n return str;\n}\n\nconst decamelizeRegex = /([a-z\\d])([A-Z])/g;\n\nexport function decamelize(str) {\n return str.replace(decamelizeRegex, '$1_$2').toLowerCase();\n}\n\nconst dasherizeRegex = /[ _]/g;\n\nexport function dasherize(str) {\n return decamelize(str).replace(dasherizeRegex, '-');\n}\n\nexport function asciiLike(str) {\n str = str || '';\n\n if ( str.match(/[^\\r\\n\\t\\x20-\\x7F]/) ) {\n return false;\n }\n\n return true;\n}\n\nexport function coerceStringTypeToScalarType(val, type) {\n if ( type === 'float' ) {\n // Coerce strings to floats\n val = parseFloat(val) || null; // NaN becomes null\n } else if ( type === 'int' ) {\n // Coerce strings to ints\n val = parseInt(val, 10);\n\n if ( isNaN(val) ) {\n val = null;\n }\n } else if ( type === 'boolean') {\n // Coerce strings to boolean\n if (val.toLowerCase() === 'true') {\n val = true;\n } else if (val.toLowerCase() === 'false') {\n val = false;\n }\n }\n\n return val;\n}\n\nexport function matchesSomeRegex(stringRaw, regexes = []) {\n return regexes.some((regexRaw) => {\n const string = stringRaw || '';\n const regex = ensureRegex(regexRaw);\n\n return string.match(regex);\n });\n}\n\nexport function ensureRegex(strOrRegex, exact = true) {\n if ( typeof strOrRegex === 'string' ) {\n if ( exact ) {\n return new RegExp(`^${ escapeRegex(strOrRegex) }$`, 'i');\n } else {\n return new RegExp(`${ escapeRegex(strOrRegex) }`, 'i');\n }\n }\n\n return strOrRegex;\n}\n\nexport function nlToBr(value) {\n return escapeHtml(value || '').replace(/(\\r\\n|\\r|\\n)/g, '
\\n');\n}\n\nconst quotedMatch = /[^.\"']+|\"([^\"]*)\"|'([^']*)'/g;\n\nexport function splitObjectPath(path) {\n if ( path.includes('\"') || path.includes(\"'\") ) {\n // Path with quoted section\n return path.match(quotedMatch).map((x) => x.replace(/['\"]/g, ''));\n }\n\n // Regular path\n return path.split('.');\n}\n\nexport function joinObjectPath(ary) {\n let out = '';\n\n for ( const p of ary ) {\n if ( p.includes('.') ) {\n out += `.\"${ p }\"`;\n } else {\n out += `.${ p }`;\n }\n }\n\n if ( out.startsWith('.') ) {\n out = out.substr(1);\n }\n\n return out;\n}\n\nexport function shortenedImage(image) {\n return (image || '')\n .replace(/^(index\\.)?docker.io\\/(library\\/)?/, '')\n .replace(/:latest$/, '')\n .replace(/^(.*@sha256:)([0-9a-f]{8})[0-9a-f]+$/i, '$1$2…');\n}\n\nexport function isIpv4(ip) {\n const reg = /^((25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/;\n\n return reg.test(ip);\n}\n\nexport function sanitizeKey(k) {\n return (k || '').replace(/[^a-z0-9./_-]/ig, '');\n}\n\nexport function sanitizeValue(v) {\n return (v || '').replace(/[^a-z0-9._-]/ig, '');\n}\n\nexport function sanitizeIP(v) {\n return (v || '').replace(/[^a-z0-9.:_-]/ig, '');\n}\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".text.info[data-v-effd72b0]{display:flex;align-items:center}.text.info>span[data-v-effd72b0]{margin-right:5px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./LabeledSelect.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./LabeledSelect.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./LabeledSelect.vue?vue&type=template&id=529406d8&scoped=true\"\nimport script from \"./LabeledSelect.vue?vue&type=script&lang=js\"\nexport * from \"./LabeledSelect.vue?vue&type=script&lang=js\"\nimport style0 from \"./LabeledSelect.vue?vue&type=style&index=0&id=529406d8&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"529406d8\",\n null\n \n)\n\nexport default component.exports","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","/**\n * Sets the width of a DOM element. Adapted from [youmightnotneedjquery.com](https://youmightnotneedjquery.com/#set_width)\n * @param {Element} el - The target DOM element\n * @param {function | string | number} val - The desired width represented as a Number\n */\nexport function setWidth(el, val) {\n if (!el) {\n return;\n }\n\n if (typeof val === 'function') {\n val = val();\n }\n\n if (typeof val === 'string') {\n el.style.width = val;\n\n return;\n }\n\n el.style.width = `${ val }px`;\n}\n\n/**\n * Gets the width of a DOM element. Adapted from [youmightnotneedjquery.com](https://youmightnotneedjquery.com/#get_width)\n * @param {Element} el - The target DOM element\n * @returns Number representing the width for the provided element\n */\nexport function getWidth(el) {\n if (!el || !el.length) {\n return;\n }\n\n if (el.length) {\n return parseFloat(getComputedStyle(el[0]).width.replace('px', ''));\n } else {\n return parseFloat(getComputedStyle(el).width.replace('px', ''));\n }\n}\n","import Vue from 'vue';\nimport { _EDIT, _VIEW } from '@shell/config/query-params';\nimport { getWidth, setWidth } from '@shell/utils/width';\n\ninterface LabeledFormElement {\n raised: boolean;\n focused: boolean;\n blurred: number | null;\n}\n\nexport default Vue.extend({\n inheritAttrs: false,\n\n props: {\n mode: {\n type: String,\n default: _EDIT,\n },\n\n label: {\n type: String,\n default: null\n },\n\n labelKey: {\n type: String,\n default: null\n },\n\n placeholderKey: {\n type: String,\n default: null\n },\n\n tooltip: {\n type: [String, Object],\n default: null\n },\n\n hoverTooltip: {\n type: Boolean,\n default: true,\n },\n\n tooltipKey: {\n type: String,\n default: null\n },\n\n required: {\n type: Boolean,\n default: false,\n },\n\n disabled: {\n type: Boolean,\n default: false,\n },\n\n placeholder: {\n type: [String, Number],\n default: ''\n },\n\n value: {\n type: [String, Number, Object],\n default: ''\n },\n\n options: {\n default: null,\n type: Array\n },\n\n searchable: {\n default: false,\n type: Boolean\n },\n\n rules: {\n default: () => [],\n type: Array,\n // we only want functions in the rules array\n validator: (rules: any) => rules.every((rule: any) => ['function'].includes(typeof rule))\n },\n\n requireDirty: {\n default: true,\n type: Boolean\n }\n },\n\n data(): LabeledFormElement {\n return {\n raised: this.mode === _VIEW || !!`${ this.value }`,\n focused: false,\n blurred: null,\n };\n },\n\n computed: {\n requiredField(): boolean {\n // using \"any\" for a type on \"rule\" here is dirty but the use of the optional chaining operator makes it safe for what we're doing here.\n return (this.required || this.rules.some((rule: any): boolean => rule?.name === 'required'));\n },\n empty(): boolean {\n return !!`${ this.value }`;\n },\n\n isView(): boolean {\n return this.mode === _VIEW;\n },\n\n isDisabled(): boolean {\n return this.disabled || this.isView;\n },\n\n isSearchable(): boolean {\n const { searchable } = this;\n const options = ( this.options || [] );\n\n if (searchable || options.length >= 10) {\n return true;\n }\n\n return false;\n },\n validationMessage(): string | undefined {\n // we want to grab the required rule passed in if we can but if it's not there then we can just grab it from the formRulesGenerator\n const requiredRule = this.rules.find((rule: any) => rule?.name === 'required') as Function;\n const ruleMessages = [];\n const value = this?.value;\n\n if (requiredRule && this.blurred && !this.focused) {\n const message = requiredRule(value);\n\n if (!!message) {\n return message;\n }\n }\n\n for (const rule of this.rules as Function[]) {\n const message = rule(value);\n\n if (!!message && rule.name !== 'required') { // we're catching 'required' above so we can ignore it here\n ruleMessages.push(message);\n }\n }\n if (ruleMessages.length > 0 && (this.blurred || this.focused || !this.requireDirty)) {\n return ruleMessages.join(', ');\n } else {\n return undefined;\n }\n }\n },\n\n methods: {\n resizeHandler() {\n // since the DD is positioned there is no way to 'inherit' the size of the input, this calcs the size of the parent and set the dd width if it is smaller. If not let it grow with the regular styles\n this.$nextTick(() => {\n const DD = (this.$refs.select as HTMLElement).querySelector('ul.vs__dropdown-menu');\n\n const selectWidth = getWidth(this.$refs.select as Element) || 0;\n const dropWidth = getWidth(DD as Element) || 0;\n\n if (dropWidth < selectWidth) {\n setWidth(DD as Element, selectWidth);\n }\n });\n },\n onFocus() {\n this.$emit('on-focus');\n\n return this.onFocusLabeled();\n },\n\n onFocusLabeled() {\n this.raised = true;\n this.focused = true;\n },\n\n onBlur() {\n this.$emit('on-blur');\n\n return this.onBlurLabeled();\n },\n\n onBlurLabeled() {\n this.focused = false;\n\n if ( !this.value ) {\n this.raised = false;\n }\n\n this.blurred = Date.now();\n }\n }\n});\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n}\n\nmodule.exports = baseHas;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.project.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.project.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./management.cattle.io.project.vue?vue&type=template&id=3a26ac99&scoped=true\"\nimport script from \"./management.cattle.io.project.vue?vue&type=script&lang=js\"\nexport * from \"./management.cattle.io.project.vue?vue&type=script&lang=js\"\nimport style0 from \"./management.cattle.io.project.vue?vue&type=style&index=0&id=3a26ac99&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3a26ac99\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"mt-10\"},[_c('div',{staticClass:\"mb-30\"},[_vm._v(\" \"+_vm._s(_vm.t('promptRemove.attemptingToRemove', { type: _vm.type }))+\" \"),_c('span',{directives:[{name:\"clean-html\",rawName:\"v-clean-html\",value:(_vm.podNames),expression:\"podNames\"}],staticClass:\"machine-name\"})]),_c('div',{staticClass:\"mb-30\"},[_c('Checkbox',{attrs:{\"label\":_vm.t('promptForceRemove.forceDelete')},model:{value:(_vm.forceDelete),callback:function ($$v) {_vm.forceDelete=$$v},expression:\"forceDelete\"}})],1),_c('Banner',{attrs:{\"color\":\"warning\",\"label-key\":\"promptForceRemove.podRemoveWarning\"}}),_vm._l((_vm.errors),function(error,i){return _c('Banner',{key:i,attrs:{\"color\":\"error\",\"label\":error}})})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./pod.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./pod.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./pod.vue?vue&type=template&id=db441fb2&scoped=true\"\nimport script from \"./pod.vue?vue&type=script&lang=js\"\nexport * from \"./pod.vue?vue&type=script&lang=js\"\nimport style0 from \"./pod.vue?vue&type=style&index=0&id=db441fb2&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"db441fb2\",\n null\n \n)\n\nexport default component.exports","module.exports = __WEBPACK_EXTERNAL_MODULE__5877__;","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join('');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === 'string') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || '').concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n return \"/*# \".concat(data, \" */\");\n}","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n arrayMap = require('./_arrayMap'),\n baseUnary = require('./_baseUnary'),\n cacheHas = require('./_cacheHas');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\nfunction baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseDifference;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","import isEmpty from 'lodash/isEmpty';\n\nexport function flowOutput(spec, getters, errors, validatorArgs) {\n const verifyLocal = validatorArgs.includes('verifyLocal');\n const localOutputRefs = spec.localOutputRefs || [];\n const globalOutputRefs = spec.globalOutputRefs || [];\n\n if (verifyLocal) {\n if (isEmpty(localOutputRefs) && isEmpty(globalOutputRefs)) {\n errors.push(getters['i18n/t']('validation.flowOutput.both'));\n }\n } else if (isEmpty(globalOutputRefs)) {\n errors.push(getters['i18n/t']('validation.flowOutput.global'));\n }\n}\n","import isEmpty from 'lodash/isEmpty';\r\n\r\nexport function logdna(value, getters, errors, validatorArgs) {\r\n if (isEmpty(value)) {\r\n return;\r\n }\r\n\r\n if (isEmpty(value.api_key)) {\r\n errors.push(getters['i18n/t']('validation.output.logdna.apiKey'));\r\n }\r\n}\r\n","import { validateChars } from './index';\n\nexport function validateKubernetesName(label, displayKey, getters, opts, errors = []) {\n opts = opts || {};\n\n const {\n invalidChars,\n forHostname = false,\n errorKey = (forHostname ? 'hostname' : 'label'),\n maxLength = 63,\n minLength = 1,\n validChars = 'A-Za-z0-9-',\n } = opts;\n\n // Label must consist of a-z, 0-9 and hyphen\n validateChars(label, { validChars, invalidChars }, displayKey, getters, errors);\n\n // Label cannot begin with a hyphen\n if ( label.slice(0, 1) === '-' ) {\n errors.push(getters['i18n/t'](`validation.dns.${ errorKey }.startHyphen`, { key: displayKey }));\n }\n\n // Label cannot end with a hyphen\n if ( label.slice(-1) === '-' ) {\n errors.push(getters['i18n/t'](`validation.dns.${ errorKey }.endHyphen`, { key: displayKey }));\n }\n\n // Label must be 1-63 characters\n const min = minLength;\n const max = maxLength;\n\n if ( label.length < min ) {\n errors.push(getters['i18n/t'](`validation.dns.${ errorKey }.emptyLabel`, { key: displayKey, min }));\n } else if ( label.length > max ) {\n errors.push(getters['i18n/t'](`validation.dns.${ errorKey }.tooLongLabel`, { key: displayKey, max }));\n }\n\n return errors;\n}\n","import isEmpty from 'lodash/isEmpty';\nimport uniq from 'lodash/uniq';\nimport { get } from '@shell/utils/object';\nimport { camelToTitle } from '@shell/utils/string';\nimport { validateKubernetesName } from './kubernetes-name';\n\nexport function displayKeyFor(type, key, getters) {\n const intlPrefix = `model.${ type }.${ key }`;\n const intlPrefixLabel = `${ intlPrefix }.label`;\n\n if ( getters['i18n/exists'](`${ intlPrefix }.label`) ) {\n return getters['i18n/t'](intlPrefixLabel);\n }\n\n if ( getters['i18n/exists'](intlPrefix) ) {\n return getters['i18n/t'](intlPrefix);\n }\n\n if ( key.match(/.Id$/) ) {\n return camelToTitle(key.replace(/Id$/, ''));\n }\n\n return camelToTitle(key);\n}\n\nexport function validateLength(val, field, displayKey, getters, errors = []) {\n const {\n nullable,\n required,\n type = '',\n minLength,\n maxLength,\n min: fieldMin,\n max: fieldMax,\n } = field;\n const len = val ? get(val, 'length') : 0;\n\n if ( !nullable && required) {\n if ((typeof val === 'object' && isEmpty(val)) || (!val && val !== 0)) {\n errors.push(getters['i18n/t']('validation.required', { key: displayKey }));\n\n return errors;\n }\n }\n\n if ( val === null ) {\n return errors;\n }\n\n const lengthKey = (type.indexOf('array[') === 0 ? 'arrayLength' : 'stringLength');\n\n // String and array length:\n let min = minLength;\n let max = maxLength;\n\n if ( min && max ) {\n if ( (len < min) || (len > max) ) {\n if ( min === max ) {\n errors.push(getters['i18n/t'](`validation.${ lengthKey }.exactly`, { key: displayKey, count: min }));\n } else {\n errors.push(getters['i18n/t'](`validation.${ lengthKey }.between`, {\n key: displayKey, min, max\n }));\n }\n }\n } else if ( min && (len < min) ) {\n errors.push(getters['i18n/t'](`validation.${ lengthKey }.min`, { key: displayKey, count: min }));\n } else if ( max && (len > max) ) {\n errors.push(getters['i18n/t'](`validation.${ lengthKey }.max`, { key: displayKey, count: max }));\n }\n\n // Number min/max\n min = fieldMin;\n max = fieldMax;\n\n if ( val !== null && min && max ) {\n if ( (val < min) || (val > max) ) {\n if ( min === max ) {\n errors.push(getters['i18n/t']('validation.number.exactly', { key: displayKey, val: max }));\n } else {\n errors.push(getters['i18n/t']('validation.number.between', {\n key: displayKey, min, max\n }));\n }\n }\n } else if ( min && (val < min) ) {\n errors.push(getters['i18n/t']('validation.number.min', { key: displayKey, val: min }));\n } else if ( max && (val > max) ) {\n errors.push(getters['i18n/t']('validation.number.max', { key: displayKey, val: max }));\n }\n\n return errors;\n}\n\nexport function validateChars(val, field, displayKey, getters, errors = []) {\n const {\n validChars,\n invalidChars\n } = field;\n const test = [];\n\n if ( validChars ) {\n test.push(`[^${ field.validChars }]`);\n }\n\n if ( invalidChars ) {\n test.push(`[${ field.invalidChars }]`);\n }\n\n if ( test.length ) {\n const regex = new RegExp(`(${ test.join('|') })`, 'g');\n let match = val.match(regex);\n\n if ( match ) {\n match = uniq(match).map((chr) => {\n if ( chr === ' ' ) {\n return '[space]';\n } else {\n return chr;\n }\n });\n\n errors.push(getters['i18n/t']('validation.chars', {\n key: displayKey, count: match.length, chars: match.join(' ')\n }));\n }\n }\n\n return errors;\n}\n\nexport function validateHostname(val, displayKey, getters, opts, errors = []) {\n opts = opts || {};\n\n const {\n max = 253,\n restricted = false,\n } = opts;\n\n // Hostname can not start with a dot\n if (val.slice(0, 1) === '.') {\n errors.push(getters['i18n/t']('validation.dns.hostname.startDot', { key: displayKey }));\n }\n\n // Hostname can not end with a dot in restricted mode\n if ( restricted && val.length > 1 && val.slice(-1) === '.' ) {\n errors.push(getters['i18n/t']('validation.dns.hostname.endDot', { key: displayKey }));\n }\n\n // Hostname can not be empty string\n if (val.length === 0) {\n errors.push(getters['i18n/t']('validation.dns.hostname.empty', { key: displayKey }));\n }\n\n // Total length of the hostname can be at most 253 characters\n // (255 minus one for null-termination, and one for the trailing dot of a real FQDN)\n if (val.length > max) {\n errors.push(getters['i18n/t']('validation.dns.hostname.tooLong', { key: displayKey, max }));\n }\n\n // Split the hostname with the dot and validate the element as label\n const labels = val.split(/\\./);\n let label;\n\n for ( let i = 0 ; i < labels.length ; i++ ) {\n label = labels[i];\n\n // Already checked if Hostname starts with a dot\n if ( i === 0 && label === '' ) {\n continue;\n }\n\n // Hostname can end with a dot (this makes it an explicitly fully qualified domain name)\n // so the last element of the labels can be empty string.\n if (i === labels.length - 1 && label === '') {\n continue;\n }\n\n validateDnsLabel(label, displayKey, getters, { forHostname: true }, errors);\n }\n\n return errors;\n}\n\nexport function validateDnsLabel(label, displayKey, getters, opts, errors = []) {\n opts = opts || {};\n\n const {\n forHostname = false,\n errorKey = (forHostname ? 'hostname' : 'label'),\n ianaServiceName = false,\n restricted = false,\n } = opts;\n\n validateKubernetesName(label, displayKey, getters, opts, errors);\n\n // Restricted labels cannot begin with a number\n if ( restricted && label.slice(0, 1).match(/[0-9]/) ) {\n errors.push(getters['i18n/t'](`validation.dns.${ errorKey }.startNumber`, { key: displayKey }));\n }\n\n // Label cannot contain two consecutive hyphens at the 3rd & 4th characters, unless an IDN string\n // If is of type ianaServiceName can not contain two consecutive hyphens in any position\n if (\n ( label.substr(2, 2) === '--' && label.substr(0, 2) !== 'xn' ) ||\n ( ianaServiceName && label.includes('--') )\n ) {\n errors.push(getters['i18n/t'](`validation.dns.doubleHyphen`, { key: displayKey }));\n }\n\n return errors;\n}\n\nexport function validateDnsLikeTypes(val, type, displayKey, getters, opts, errors = []) {\n switch (type) {\n case 'dnsLabel':\n validateDnsLabel(val, displayKey, getters, { restricted: false }, errors);\n break;\n case 'dnsLabelRestricted':\n validateDnsLabel(val, displayKey, getters, { restricted: true }, errors);\n break;\n case 'hostname':\n validateHostname(val, displayKey, getters, { restricted: false }, errors);\n break;\n default:\n break;\n }\n\n return errors;\n}\n\nexport function validateBoolean(val, field, displayKey, getters, errors = []) {\n const { required } = field;\n\n if (required && !val && val !== false) {\n errors.push(getters['i18n/t']('validation.required', { key: displayKey }));\n\n return;\n }\n if (typeof val !== 'boolean' && !!val) {\n errors.push(getters['i18n/t']('validation.boolean', { key: displayKey }));\n }\n}\n","import isEmpty from 'lodash/isEmpty';\nimport { validateDnsLabel, validateHostname } from '@shell/utils/validators';\n\nexport function servicePort(spec, getters, errors, validatorArgs) {\n const { ports, type: serviceType } = spec;\n\n if (serviceType === 'ExternalName') {\n return errors;\n }\n\n if (isEmpty(ports)) {\n errors.push(getters['i18n/t']('validation.required', { key: 'Port Rules' }));\n\n return errors;\n }\n\n ports.forEach((port, ind, ary) => {\n const {\n name,\n nodePort,\n port: pPort,\n targetPort,\n } = port;\n const idx = ind + 1;\n\n if (ary.length > 1 && isEmpty(name)) {\n errors.push(getters['i18n/t']('validation.service.ports.name.required', { position: idx }));\n }\n\n if (!isEmpty(name)) {\n const nameErrors = validateDnsLabel(name, 'name', getters, undefined, errors);\n\n if (!isEmpty(nameErrors)) {\n if (errors.length && errors.length > 0) {\n errors = [...errors, ...nameErrors];\n } else {\n errors = nameErrors;\n }\n }\n }\n\n if (nodePort) {\n const np = parseInt(nodePort, 10);\n\n if (isNaN(np)) {\n errors.push(getters['i18n/t']('validation.service.ports.nodePort.requiredInt', { position: idx }));\n }\n }\n\n if (pPort) {\n const p = parseInt(pPort, 10);\n\n if (isNaN(p)) {\n errors.push(getters['i18n/t']('validation.service.ports.port.requiredInt', { position: idx }));\n }\n } else {\n errors.push(getters['i18n/t']('validation.service.ports.port.required', { position: idx }));\n }\n\n if (targetPort) {\n const tpIanaDisplayKey = getters['i18n/t']('validation.service.ports.targetPort.ianaAt', { position: idx });\n const tp = parseInt(targetPort, 10);\n const tpTest = new RegExp('^\\\\d+$');\n const targetPortIsNumber = tpTest.test(targetPort);\n\n if (!targetPortIsNumber) { // not a number\n /* [rfc6335](https://tools.ietf.org/rfc/rfc6335.txt) port name (IANA_SVC_NAME)\n An alphanumeric (a-z, and 0-9) string, with a maximum length of 15 characters,\n with the '-' character allowed anywhere except the first or the last character or adjacent to another '-' character,\n it must contain at least a(a - z) character\n validateChars(str, { validChars: 'A-Za-z0-9_.-' }, displayKey, intl, errors); */\n const opts = {\n ianaServiceName: true,\n maxLength: 15,\n validChars: 'A-Za-z0-9-',\n };\n const isIanaServiceNameErrors = validateDnsLabel(targetPort, tpIanaDisplayKey, getters, opts, errors);\n\n if (!isEmpty(isIanaServiceNameErrors)) {\n errors.push(...isIanaServiceNameErrors);\n }\n } else if (tp < 1 || tp > 65535) {\n errors.push(getters['i18n/t']('validation.service.ports.targetPort.between', { position: idx }));\n }\n } else {\n errors.push(getters['i18n/t']('validation.service.ports.targetPort.required', { position: idx }));\n }\n });\n\n return errors;\n}\n\nexport function clusterIp(spec, getters, errors, validatorArgs) {\n /*\n clusterIP is the IP address of the service and is usually assigned randomly by the master.\n If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail.\n This field can not be changed through updates.\n Valid values are \\\"None\\\", empty string (\\\"\\\"), or a valid IP address. \\\"None\\\" can be specified for headless services when proxying is not required.\n Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName.\n More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\n */\n const typesToCheck = ['ClusterIP', 'NodePort', 'LoadBalancer'];\n const serviceType = spec?.type;\n\n if (!typesToCheck.includes(serviceType)) {\n // validation only applies to services in the types to check\n return errors;\n }\n\n return errors;\n}\n\nexport function externalName(spec, getters, errors, validatorArgs) {\n /*\n externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service.\n No proxying will be involved.\n Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName.\n */\n if (spec?.type === 'ExternalName') {\n if (isEmpty(spec?.externalName)) {\n errors.push(getters['i18n/t']('validation.service.externalName.none'));\n } else {\n const hostNameErrors = validateHostname(spec.externalName, 'ExternalName', getters, undefined, errors);\n\n if (!isEmpty(hostNameErrors)) {\n if (errors.length && errors.length > 0) {\n errors = [...errors, ...hostNameErrors];\n } else {\n errors = hostNameErrors;\n }\n }\n }\n }\n\n return errors;\n}\n","import has from 'lodash/has';\nimport isEmpty from 'lodash/isEmpty';\n\nexport function ruleGroups(spec, getters, errors, validatorArgs) {\n if (isEmpty(spec?.groups)) {\n errors.push(getters['i18n/t']('validation.prometheusRule.groups.required'));\n }\n\n return errors;\n}\n\nexport function groupsAreValid(groups = [], getters, errors, validatorArgs) {\n groups.forEach((group, groupIndex) => {\n const readableGroupIndex = groupIndex + 1; // oh that ol zero based array index....\n\n if (isEmpty(group?.name)) {\n errors.push(\n getters['i18n/t']('validation.prometheusRule.groups.valid.name', { index: readableGroupIndex })\n );\n }\n\n if (isEmpty(group?.rules)) {\n errors.push(\n getters['i18n/t'](\n 'validation.prometheusRule.groups.valid.singleEntry',\n { index: readableGroupIndex }\n )\n );\n } else {\n group.rules.forEach((rule, ruleIndex) => {\n const readableRuleIndex = ruleIndex + 1; // oh that ol zero based array index....\n\n if (has(rule, 'alert') && isEmpty(rule?.alert)) {\n errors.push(\n getters['i18n/t'](\n 'validation.prometheusRule.groups.valid.rule.alertName',\n { groupIndex: readableGroupIndex, ruleIndex: readableRuleIndex }\n )\n );\n } else if (has(rule, 'record') && isEmpty(rule?.record)) {\n errors.push(\n getters['i18n/t'](\n 'validation.prometheusRule.groups.valid.rule.recordName',\n { groupIndex: readableGroupIndex, ruleIndex: readableRuleIndex }\n )\n );\n }\n\n if ((has(rule, 'expr') && isEmpty(rule.expr)) || !has(rule, 'expr')) {\n errors.push(\n getters['i18n/t'](\n 'validation.prometheusRule.groups.valid.rule.expr',\n { groupIndex: readableGroupIndex, ruleIndex: readableRuleIndex }\n )\n );\n }\n\n if (has(rule, 'alert')) {\n if (\n (has(rule, 'labels') && isEmpty(rule.labels)) ||\n !has(rule, 'labels')\n ) {\n errors.push(\n getters['i18n/t'](\n 'validation.prometheusRule.groups.valid.rule.labels',\n { groupIndex: readableGroupIndex, ruleIndex: readableRuleIndex }\n )\n );\n }\n }\n });\n }\n });\n\n return errors;\n}\n","import isEmpty from 'lodash/isEmpty';\n\nexport function matching(spec, getters, errors, validatorArgs) {\n if (isEmpty(spec?.match) && isEmpty(spec?.['match_re'])) {\n errors.push(getters['i18n/t']('validation.monitoring.route.match'));\n }\n}\n\nexport function interval(value, getters, errors, validatorArgs, displayKey) {\n if (!/^\\d+[hms]$/.test(value)) {\n errors.push(getters['i18n/t']('validation.monitoring.route.interval', { key: displayKey }));\n }\n}\n","import { get } from '@shell/utils/object';\n\nexport function containerImages(spec, getters, errors) {\n let podSpec;\n\n if (spec.jobTemplate) {\n // cronjob pod template is nested slightly different than other types\n podSpec = get(spec, 'jobTemplate.spec.template.spec');\n } else {\n podSpec = get(spec, 'template.spec');\n }\n\n if (!podSpec.containers || !podSpec.containers.length) {\n errors.push(getters['i18n/t']('validation.required', { key: getters['i18n/t']('workload.container.titles.containers') }));\n\n return;\n }\n\n podSpec.containers.forEach((container) => {\n if (container && !container.image) {\n errors.push(getters['i18n/t']('workload.validation.containerImage', { name: container.name }));\n }\n });\n}\n","import cronstrue from 'cronstrue';\n\nexport function cronSchedule(schedule = '', getters, errors) {\n try {\n cronstrue.toString(schedule);\n } catch (e) {\n errors.push(getters['i18n/t']('validation.invalidCron'));\n }\n}\n","import { isEmpty } from '@shell/utils/object';\n\n// spec = podSpec.affinity\nexport function podAffinity(spec, getters, errors) {\n if (!spec) {\n return;\n }\n const { podAffinity, podAntiAffinity } = spec;\n\n // pod affinity\n if (podAffinity && !isEmpty(podAffinity)) {\n const { preferredDuringSchedulingIgnoredDuringExecution = [], requiredDuringSchedulingIgnoredDuringExecution = [] } = podAffinity;\n\n preferredDuringSchedulingIgnoredDuringExecution.forEach((term, i) => {\n const errorOpts = {\n index: i,\n group: getters['i18n/t']('validation.podAffinity.affinityTitle'),\n rules: getters['i18n/t']('validation.podAffinity.preferredDuringSchedulingIgnoredDuringExecution')\n };\n\n validateTermWeight(term, errorOpts, getters, errors);\n\n const { podAffinityTerm = {} } = term;\n\n validateTopologyKey(podAffinityTerm, errorOpts, getters, errors);\n validateLabelSelector(podAffinityTerm, errorOpts, getters, errors);\n });\n\n requiredDuringSchedulingIgnoredDuringExecution.forEach((term, i) => {\n const errorOpts = {\n index: i,\n group: getters['i18n/t']('validation.podAffinity.affinityTitle'),\n rules: getters['i18n/t']('validation.podAffinity.requiredDuringSchedulingIgnoredDuringExecution')\n };\n\n validateTopologyKey(term, errorOpts, getters, errors);\n validateLabelSelector(term, errorOpts, getters, errors);\n });\n }\n\n // pod antiaffinity\n if (podAntiAffinity && !isEmpty(podAntiAffinity)) {\n const { preferredDuringSchedulingIgnoredDuringExecution = [], requiredDuringSchedulingIgnoredDuringExecution = [] } = podAntiAffinity;\n\n preferredDuringSchedulingIgnoredDuringExecution.forEach((term, i) => {\n const errorOpts = {\n index: i,\n group: getters['i18n/t']('validation.podAffinity.antiAffinityTitle'),\n rules: getters['i18n/t']('validation.podAffinity.preferredDuringSchedulingIgnoredDuringExecution')\n };\n\n validateTermWeight(term, errorOpts, getters, errors);\n\n const { podAffinityTerm = {} } = term;\n\n validateTopologyKey(podAffinityTerm, errorOpts, getters, errors);\n\n validateLabelSelector(podAffinityTerm, errorOpts, getters, errors);\n });\n\n requiredDuringSchedulingIgnoredDuringExecution.forEach((term, i) => {\n const errorOpts = {\n index: i,\n group: getters['i18n/t']('validation.podAffinity.antiAffinityTitle'),\n rules: getters['i18n/t']('validation.podAffinity.requiredDuringSchedulingIgnoredDuringExecution')\n };\n\n validateTopologyKey(term, errorOpts, getters, errors);\n\n validateLabelSelector(term, errorOpts, getters, errors);\n });\n }\n}\n\n// verify weight (if present) is integer 1-100\nfunction validateTermWeight(affinityTerm, errorOpts, getters, errors) {\n const { weight = 1 } = affinityTerm;\n\n if (typeof weight !== 'number' || weight > 100 || weight < 1 ) {\n errors.push(getters['i18n/t']('validation.number.between', {\n key: getters['i18n/t']('workload.scheduling.matchExpressions.weight'),\n min: 1,\n max: 100,\n ...errorOpts\n }));\n }\n}\n\n// verify topology key is present and matches regexp for labels\nfunction validateTopologyKey(affinityTerm, errorOpts, getters, errors) {\n const { topologyKey } = affinityTerm;\n const regexp = RegExp('([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]');\n\n if (!topologyKey || !regexp.test(topologyKey)) {\n errors.push(getters['i18n/t']('validation.podAffinity.topologyKey', errorOpts));\n }\n}\n\n/*\n verify that each matchExpression in labelSelector:\n operator is one of ['In', 'NotIn', 'Exists', 'DoesNotExist']\n values is defined if operator is In or NotIn\n values is empty if operator is Exists or DoesNotExist\n */\nfunction validateLabelSelector(affinityTerm, errorOpts, getters, errors) {\n const validOperators = ['In', 'NotIn', 'Exists', 'DoesNotExist'];\n\n const { labelSelector } = affinityTerm;\n\n if (labelSelector && !isEmpty(labelSelector)) {\n const { matchExpressions = [] } = labelSelector;\n\n matchExpressions.forEach((rule, i) => {\n const { operator, values } = rule;\n\n if (!validOperators.includes(operator)) {\n errors.push(getters['i18n/t']('validation.podAffinity.matchExpressions.operator', errorOpts));\n }\n if (operator === 'In' || operator === 'NotIn') {\n if (!values || !values.length) {\n errors.push(getters['i18n/t']('validation.podAffinity.matchExpressions.valuesMustBeDefined', errorOpts));\n }\n } else if (values && values.length) {\n errors.push(getters['i18n/t']('validation.podAffinity.matchExpressions.valueMustBeEmpty', errorOpts));\n }\n });\n }\n}\n","import { RBAC } from '@shell/config/types';\r\nimport isEmpty from 'lodash/isEmpty';\r\n\r\nexport function roleTemplateRules(rules = [], getters, errors, validatorArgs = []) {\r\n if (rules.some((rule) => isEmpty(rule.verbs))) {\r\n errors.push(getters['i18n/t']('validation.roleTemplate.roleTemplateRules.missingVerb'));\r\n }\r\n\r\n if (rules.some((rule) => rule.resources?.length && rule.nonResourceURLs?.length)) {\r\n errors.push(getters['i18n/t']('validation.roleTemplate.roleTemplateRules.noResourceAndNonResource'));\r\n }\r\n\r\n if (validatorArgs[0] === RBAC.ROLE) {\r\n if (rules.some((rule) => isEmpty(rule.resources))) {\r\n errors.push(getters['i18n/t']('validation.roleTemplate.roleTemplateRules.missingResource'));\r\n }\r\n if (rules.some((rule) => isEmpty(rule.apiGroups))) {\r\n errors.push(getters['i18n/t']('validation.roleTemplate.roleTemplateRules.missingApiGroup'));\r\n }\r\n } else if (rules.some((rule) => rule.resources?.length && rule.nonResourceUrls?.length)) {\r\n errors.push(getters['i18n/t']('validation.roleTemplate.roleTemplateRules.noResourceAndNonResource'));\r\n }\r\n\r\n if (rules.some((rule) => isEmpty(rule.resources) && isEmpty(rule.nonResourceURLs))) {\r\n errors.push(getters['i18n/t']('validation.roleTemplate.roleTemplateRules.missingOneResource'));\r\n }\r\n}\r\n","export function clusterName(pathValue, getters, errors, validatorArgs, displayKey) {\n const isRke2 = validatorArgs[0] === 'true'\n;\n\n if (isRke2) {\n if ((pathValue || '').match(/^(c-.{5}|local)$/i)) {\n errors.push(getters['i18n/t']('validation.cluster.name'));\n }\n }\n\n return errors;\n}\n","import { flowOutput } from '@shell/utils/validators/flow-output';\nimport { logdna } from '@shell/utils/validators/logging-outputs';\nimport { clusterIp, externalName, servicePort } from '@shell/utils/validators/service';\nimport { ruleGroups, groupsAreValid } from '@shell/utils/validators/prometheusrule';\nimport { interval, matching } from '@shell/utils/validators/monitoring-route';\nimport { containerImages } from '@shell/utils/validators/container-images';\nimport { cronSchedule } from '@shell/utils/validators/cron-schedule';\nimport { podAffinity } from '@shell/utils/validators/pod-affinity';\nimport { roleTemplateRules } from '@shell/utils/validators/role-template';\nimport { clusterName } from '@shell/utils/validators/cluster-name';\n\n/**\n* Custom validation functions beyond normal scalr types\n* Validator must export a function name should match the validator name on the customValidationRules rule\n* Exported function is used as a lookup key in resource-class:validationErrors:customValidationRules loop\n*/\nexport default {\n clusterName,\n clusterIp,\n externalName,\n flowOutput,\n groupsAreValid,\n logdna,\n ruleGroups,\n interval,\n servicePort,\n matching,\n containerImages,\n cronSchedule,\n podAffinity,\n roleTemplateRules,\n};\n","export const waitFor = (testFn: Function, msg = '', timeoutMs = 3000000, intervalMs = 500, log = false): Promise => {\n gatedLog('Starting wait for', msg);\n\n return new Promise((resolve, reject) => {\n if (testFn()) {\n gatedLog('Wait for', msg || 'unknown', 'done immediately');\n resolve(this);\n }\n const timeout = setTimeout(() => {\n gatedLog('Wait for', msg, 'timed out');\n clearInterval(interval);\n clearTimeout(timeout);\n if (msg) {\n reject(new Error(`Failed waiting for: ${ msg }`));\n } else {\n throw new Error(`waitFor timed out after ${ timeoutMs / 1000 } seconds`);\n }\n }, timeoutMs);\n const interval = setInterval(() => {\n if ( testFn() ) {\n gatedLog('Wait for', msg, 'done');\n clearInterval(interval);\n clearTimeout(timeout);\n resolve(this);\n } else if (msg) {\n gatedLog('Wait for', msg, 'not done yet');\n }\n }, intervalMs);\n });\n\n function gatedLog(...args: any[]) {\n if (log) {\n console.log(...args); // eslint-disable-line no-console\n }\n }\n};\n","export const platform = ( typeof window === 'undefined' ? 'server' : window.navigator.platform.toLowerCase() );\nexport const userAgent = ( typeof window === 'undefined' ? 'server' : window.navigator.userAgent );\n\nexport const isLinuxy = platform.includes('linux') || platform.includes('unix');\nexport const isMac = platform.includes('mac');\nexport const isWin = platform.includes('win');\n\nexport const alternateKey = (isMac ? 'metaKey' : 'ctrlKey');\nexport const alternateLabel = (isMac ? 'Command' : 'Control');\n\nexport const moreKey = alternateKey;\nexport const moreLabel = alternateLabel;\n\nexport const rangeKey = 'shiftKey';\nexport const rangeLabel = 'Shift';\n\nexport function isAlternate(event) {\n return !!event[alternateKey];\n}\n\nexport function isMore(event) {\n return !!event[moreKey];\n}\n\nexport function isRange(event) {\n return !!event[rangeKey];\n}\n\nexport function suppressContextMenu(event) {\n return event.ctrlKey && event.button === 2;\n}\n\n// Only intended to work for Mobile Safari at the moment...\nexport function version() {\n const match = userAgent.match(/\\s+Version\\/([0-9.]+)/);\n\n if ( match ) {\n return parseFloat(match[1]);\n }\n\n return null;\n}\n\nexport const isGecko = userAgent.includes('Gecko/');\nexport const isBlink = userAgent.includes('Chrome/');\nexport const isWebKit = !isBlink && userAgent.includes('AppleWebKit/');\nexport const isSafari = !isBlink && userAgent.includes('Safari/');\nexport const isMobile = /Android|webOS|iPhone|iPad|iPod|IEMobile/i.test(userAgent);\n\nexport const KEY = {\n LEFT: 37,\n UP: 38,\n RIGHT: 39,\n DOWN: 40,\n ESCAPE: 27,\n CR: 13,\n LF: 10,\n TAB: 9,\n SPACE: 32,\n PAGE_UP: 33,\n PAGE_DOWN: 34,\n HOME: 35,\n END: 36,\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:\"container\",attrs:{\"data-testid\":_vm.componentTestid + '-list-container'}},[_c('div',{staticClass:\"sortable-table-header\",class:{'titled': _vm.$slots.title && _vm.$slots.title.length}},[_vm._t(\"title\"),(_vm.showHeaderRow)?_c('div',{staticClass:\"fixed-header-actions\",class:{button: !!_vm.$slots['header-button'], 'advanced-filtering': _vm.hasAdvancedFiltering}},[_c('div',{staticClass:\"bulk\",class:_vm.bulkActionsClass},[_vm._t(\"header-left\",function(){return [(_vm.tableActions)?[_vm._l((_vm.availableActions),function(act){return _c('button',{directives:[{name:\"clean-tooltip\",rawName:\"v-clean-tooltip\",value:(_vm.actionTooltip),expression:\"actionTooltip\"}],key:act.action,staticClass:\"btn role-primary\",class:{[_vm.bulkActionClass]:true},attrs:{\"id\":act.action,\"type\":\"button\",\"disabled\":!act.enabled,\"data-testid\":_vm.componentTestid + '-' + act.action},on:{\"click\":function($event){return _vm.applyTableAction(act, null, $event)},\"mouseover\":function($event){return _vm.setBulkActionOfInterest(act)},\"mouseleave\":function($event){return _vm.setBulkActionOfInterest(null)}}},[(act.icon)?_c('i',{class:act.icon}):_vm._e(),_c('span',{directives:[{name:\"clean-html\",rawName:\"v-clean-html\",value:(act.label),expression:\"act.label\"}]})])}),_c('ActionDropdown',{staticClass:\"bulk-actions-dropdown\",class:_vm.bulkActionsDropdownClass,attrs:{\"disable-button\":!_vm.selectedRows.length,\"size\":\"sm\"},scopedSlots:_vm._u([{key:\"button-content\",fn:function(){return [_c('button',{ref:\"actionDropDown\",staticClass:\"btn bg-primary mr-0\",attrs:{\"disabled\":!_vm.selectedRows.length}},[_c('i',{staticClass:\"icon icon-gear\"}),_c('span',[_vm._v(_vm._s(_vm.t('sortableTable.bulkActions.collapsed.label')))]),_c('i',{staticClass:\"ml-10 icon icon-chevron-down\"})])]},proxy:true},{key:\"popover-content\",fn:function(){return [_c('ul',{staticClass:\"list-unstyled menu\"},_vm._l((_vm.hiddenActions),function(act){return _c('li',{directives:[{name:\"close-popover\",rawName:\"v-close-popover\"},{name:\"clean-tooltip\",rawName:\"v-clean-tooltip\",value:({\n content: _vm.actionTooltip,\n placement: 'right'\n }),expression:\"{\\n content: actionTooltip,\\n placement: 'right'\\n }\"}],key:act.action,class:{ disabled: !act.enabled },on:{\"click\":function($event){return _vm.applyTableAction(act, null, $event)},\"mouseover\":function($event){return _vm.setBulkActionOfInterest(act)},\"mouseleave\":function($event){return _vm.setBulkActionOfInterest(null)}}},[(act.icon)?_c('i',{class:act.icon}):_vm._e(),_c('span',{directives:[{name:\"clean-html\",rawName:\"v-clean-html\",value:(act.label),expression:\"act.label\"}]})])}),0)]},proxy:true}],null,false,2209545330)}),(_vm.selectedRowsText)?_c('label',{staticClass:\"action-availability\",class:_vm.bulkActionAvailabilityClass},[_vm._v(\" \"+_vm._s(_vm.selectedRowsText)+\" \")]):_vm._e()]:_vm._e()]})],2),(!_vm.hasAdvancedFiltering && (_vm.$slots['header-middle'] && _vm.$slots['header-middle'].length))?_c('div',{staticClass:\"middle\"},[_vm._t(\"header-middle\")],2):_vm._e(),(_vm.search || _vm.hasAdvancedFiltering || _vm.isTooManyItemsToAutoUpdate || (_vm.$slots['header-right'] && _vm.$slots['header-right'].length))?_c('div',{staticClass:\"search row\",attrs:{\"data-testid\":\"search-box-filter-row\"}},[(_vm.hasAdvancedFiltering)?_c('ul',{staticClass:\"advanced-filters-applied\"},_vm._l((_vm.advancedFilteringValues),function(filter,i){return _c('li',{key:i},[_c('span',{staticClass:\"label\"},[_vm._v(_vm._s(`\"${filter.value}\" ${ _vm.t('sortableTable.in') } ${filter.label}`))]),_c('span',{staticClass:\"cross\",on:{\"click\":function($event){return _vm.clearAdvancedFilter(i)}}},[_vm._v(\"✕\")]),_c('div',{staticClass:\"bg\"})])}),0):_vm._e(),_vm._t(\"header-right\"),(_vm.isTooManyItemsToAutoUpdate)?_c('AsyncButton',{staticClass:\"manual-refresh\",attrs:{\"mode\":\"manual-refresh\",\"current-phase\":_vm.currentPhase},on:{\"click\":_vm.debouncedRefreshTableData}}):_vm._e(),(_vm.hasAdvancedFiltering)?_c('div',{ref:\"advanced-filter-group\",staticClass:\"advanced-filter-group\"},[_c('button',{staticClass:\"btn role-primary\",on:{\"click\":function($event){_vm.advancedFilteringVisibility = !_vm.advancedFilteringVisibility;}}},[_vm._v(\" \"+_vm._s(_vm.t('sortableTable.addFilter'))+\" \")]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.advancedFilteringVisibility),expression:\"advancedFilteringVisibility\"}],staticClass:\"advanced-filter-container\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.advFilterSearchTerm),expression:\"advFilterSearchTerm\"}],ref:\"advancedSearchQuery\",staticClass:\"advanced-search-box\",attrs:{\"type\":\"search\",\"placeholder\":_vm.t('sortableTable.filterFor')},domProps:{\"value\":(_vm.advFilterSearchTerm)},on:{\"input\":function($event){if($event.target.composing)return;_vm.advFilterSearchTerm=$event.target.value}}}),_c('div',{staticClass:\"middle-block\"},[_c('span',[_vm._v(_vm._s(_vm.t('sortableTable.in')))]),_c('LabeledSelect',{staticClass:\"filter-select\",attrs:{\"clearable\":true,\"options\":_vm.advFilterSelectOptions,\"disabled\":false,\"searchable\":false,\"mode\":\"edit\",\"multiple\":false,\"taggable\":false,\"placeholder\":_vm.t('sortableTable.selectCol')},on:{\"selecting\":(col) => _vm.advFilterSelectedLabel = col.label},model:{value:(_vm.advFilterSelectedProp),callback:function ($$v) {_vm.advFilterSelectedProp=$$v},expression:\"advFilterSelectedProp\"}})],1),_c('div',{staticClass:\"bottom-block\"},[_c('button',{staticClass:\"btn role-secondary\",attrs:{\"disabled\":!_vm.advancedFilteringValues.length},on:{\"click\":_vm.clearAllAdvancedFilters}},[_vm._v(\" \"+_vm._s(_vm.t('sortableTable.resetFilters'))+\" \")]),_c('button',{staticClass:\"btn role-primary\",on:{\"click\":_vm.addAdvancedFilter}},[_vm._v(\" \"+_vm._s(_vm.t('sortableTable.add'))+\" \")])])])]):(_vm.search)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.eventualSearchQuery),expression:\"eventualSearchQuery\"}],ref:\"searchQuery\",staticClass:\"input-sm search-box\",attrs:{\"type\":\"search\",\"placeholder\":_vm.t('sortableTable.search')},domProps:{\"value\":(_vm.eventualSearchQuery)},on:{\"input\":function($event){if($event.target.composing)return;_vm.eventualSearchQuery=$event.target.value}}}):_vm._e(),_vm._t(\"header-button\")],2):_vm._e()]):_vm._e()],2),_c('table',{staticClass:\"sortable-table\",class:_vm.classObject,attrs:{\"width\":\"100%\"}},[(_vm.showHeaders)?_c('THead',{attrs:{\"label-for\":_vm.labelFor,\"columns\":_vm.columns,\"group\":_vm.group,\"group-options\":_vm.advGroupOptions,\"has-advanced-filtering\":_vm.hasAdvancedFiltering,\"adv-filter-hide-labels-as-cols\":_vm.advFilterHideLabelsAsCols,\"table-actions\":_vm.tableActions,\"table-cols-options\":_vm.columnOptions,\"row-actions\":_vm.rowActions,\"sub-expand-column\":_vm.subExpandColumn,\"row-actions-width\":_vm.rowActionsWidth,\"how-much-selected\":_vm.howMuchSelected,\"sort-by\":_vm.sortBy,\"default-sort-by\":_vm._defaultSortBy,\"descending\":_vm.descending,\"no-rows\":_vm.noRows,\"loading\":_vm.loading && !_vm.loadingDelay,\"no-results\":_vm.noResults},on:{\"on-toggle-all\":_vm.onToggleAll,\"on-sort-change\":_vm.changeSort,\"col-visibility-change\":_vm.changeColVisibility,\"group-value-change\":(val) => _vm.$emit('group-value-change', val),\"update-cols-options\":_vm.updateColsOptions}}):_vm._e(),(_vm.loading && !_vm.loadingDelay)?_c('div'):(_vm.loading)?_c('tbody',[_vm._t(\"loading\",function(){return [_c('tr',[_c('td',{attrs:{\"colspan\":_vm.fullColspan}},[_c('div',{staticClass:\"data-loading\"},[_c('i',{staticClass:\"icon-spin icon icon-spinner\"}),_c('t',{attrs:{\"k\":\"generic.loading\",\"raw\":true}})],1)])])]})],2):(_vm.noRows)?_c('tbody',[_vm._t(\"no-rows\",function(){return [_c('tr',{staticClass:\"no-rows\"},[_c('td',{attrs:{\"colspan\":_vm.fullColspan}},[(_vm.showNoRows)?_c('t',{attrs:{\"k\":_vm.noRowsKey}}):_vm._e()],1)])]})],2):(_vm.noResults)?_c('tbody',[_vm._t(\"no-results\",function(){return [_c('tr',{staticClass:\"no-results\"},[_c('td',{staticClass:\"text-center\",attrs:{\"colspan\":_vm.fullColspan}},[_c('t',{attrs:{\"k\":_vm.noDataKey}})],1)])]})],2):_vm._l((_vm.displayRows),function(groupedRows){return _c('tbody',{key:groupedRows.key,class:{ group: _vm.groupBy }},[(_vm.groupBy)?_vm._t(\"group-row\",function(){return [_c('tr',{staticClass:\"group-row\"},[_c('td',{attrs:{\"colspan\":_vm.fullColspan}},[_vm._t(\"group-by\",function(){return [_c('div',{directives:[{name:\"trim-whitespace\",rawName:\"v-trim-whitespace\"}],staticClass:\"group-tab\"},[_vm._v(\" \"+_vm._s(groupedRows.ref)+\" \")])]},{\"group\":groupedRows.grp})],2)])]},{\"group\":groupedRows,\"fullColspan\":_vm.fullColspan}):_vm._e(),_vm._l((groupedRows.rows),function(row,i){return [_vm._t(\"main-row\",function(){return [_vm._t('main-row:' + (row.row.mainRowKey || i),function(){return [_c('tr',{key:row.key,staticClass:\"main-row\",class:{ 'has-sub-row': row.showSubRow},attrs:{\"data-testid\":_vm.componentTestid + '-' + i + '-row',\"data-node-id\":row.key,\"data-cant-run-bulk-action-of-interest\":_vm.actionOfInterest && !row.canRunBulkActionOfInterest}},[(_vm.tableActions)?_c('td',{staticClass:\"row-check\",attrs:{\"align\":\"middle\"}},[_vm._v(\" \"+_vm._s(row.mainRowKey)),_c('Checkbox',{staticClass:\"selection-checkbox\",attrs:{\"data-node-id\":row.key,\"data-testid\":_vm.componentTestid + '-' + i + '-checkbox',\"value\":_vm.selectedRows.includes(row.row)}})],1):_vm._e(),(_vm.subExpandColumn)?_c('td',{staticClass:\"row-expand\",attrs:{\"align\":\"middle\"}},[_c('i',{class:{\n icon: true,\n 'icon-chevron-right': !_vm.expanded[row.row[_vm.keyField]],\n 'icon-chevron-down': !!_vm.expanded[row.row[_vm.keyField]]\n },attrs:{\"data-title\":\"Toggle Expand\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.toggleExpand(row.row)}}})]):_vm._e(),_vm._l((row.columns),function(col,j){return [_vm._t('col:' + col.col.name,function(){return [_c('td',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.hasAdvancedFiltering || (_vm.hasAdvancedFiltering && col.col.isColVisible)),expression:\"!hasAdvancedFiltering || (hasAdvancedFiltering && col.col.isColVisible)\"}],key:col.col.name,class:{['col-'+col.dasherize]: !!col.col.formatter, [col.col.breakpoint]: !!col.col.breakpoint, ['skip-select']: col.col.skipSelect},attrs:{\"data-title\":col.col.label,\"data-testid\":`sortable-cell-${ i }-${ j }`,\"align\":col.col.align || 'left',\"width\":col.col.width}},[_vm._t('cell:' + col.col.name,function(){return [(col.component && col.needRef)?_c(col.component,_vm._b({ref:\"column\",refInFor:true,tag:\"component\",attrs:{\"value\":col.value,\"row\":row.row,\"col\":col.col,\"row-key\":row.key,\"get-custom-detail-link\":_vm.getCustomDetailLink}},'component',col.col.formatterOpts,false)):(col.component)?_c(col.component,_vm._b({tag:\"component\",attrs:{\"value\":col.value,\"row\":row.row,\"col\":col.col,\"row-key\":row.key}},'component',col.col.formatterOpts,false)):(col.col.formatter)?_c(col.col.formatter,_vm._b({tag:\"component\",attrs:{\"value\":col.value,\"row\":row.row,\"col\":col.col,\"row-key\":row.key}},'component',col.col.formatterOpts,false)):(col.value !== '')?[_vm._v(\" \"+_vm._s(col.formatted)+\" \")]:(col.col.dashIfEmpty)?[_c('span',{staticClass:\"text-muted\"},[_vm._v(\"—\")])]:_vm._e()]},{\"row\":row.row,\"col\":col.col,\"value\":col.value})],2)]},{\"row\":row.row,\"col\":col.col,\"dt\":_vm.dt,\"expanded\":_vm.expanded,\"rowKey\":row.key})]}),(_vm.rowActions)?_c('td',{attrs:{\"align\":\"middle\"}},[_vm._t(\"row-actions\",function(){return [_c('button',{ref:`actionButton${i}`,refInFor:true,staticClass:\"btn btn-sm role-multi-action actions\",attrs:{\"id\":`actionButton+${i}+${(row.row && row.row.name) ? row.row.name : ''}`,\"data-testid\":_vm.componentTestid + '-' + i + '-action-button',\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\",\"type\":\"button\"},on:{\"click\":function($event){return _vm.handleActionButtonClick(i, $event)}}},[_c('i',{staticClass:\"icon icon-actions\"})])]},{\"row\":row.row})],2):_vm._e()],2)]},{\"fullColspan\":_vm.fullColspan})]},{\"row\":row.row}),(row.showSubRow)?_vm._t(\"sub-row\",function(){return [(row.row.stateDescription)?_c('tr',{key:row.row[_vm.keyField] + '-description',staticClass:\"state-description sub-row\",attrs:{\"data-testid\":_vm.componentTestid + '-' + i + '-row-description'},on:{\"mouseenter\":_vm.onRowMouseEnter,\"mouseleave\":_vm.onRowMouseLeave}},[(_vm.tableActions)?_c('td',{staticClass:\"row-check\",attrs:{\"align\":\"middle\"}}):_vm._e(),_c('td',{class:{ 'text-error' : row.row.stateObj.error },attrs:{\"colspan\":_vm.fullColspan - (_vm.tableActions ? 1: 0)}},[_vm._v(\" \"+_vm._s(row.row.stateDescription)+\" \")])]):_vm._e()]},{\"fullColspan\":_vm.fullColspan,\"row\":row.row,\"subMatches\":_vm.subMatches,\"keyField\":_vm.keyField,\"componentTestid\":_vm.componentTestid,\"i\":i,\"onRowMouseEnter\":_vm.onRowMouseEnter,\"onRowMouseLeave\":_vm.onRowMouseLeave}):_vm._e()]})],2)})],2),(_vm.showPaging)?_c('div',{staticClass:\"paging\"},[_c('button',{staticClass:\"btn btn-sm role-multi-action\",attrs:{\"type\":\"button\",\"disabled\":_vm.page == 1},on:{\"click\":function($event){return _vm.goToPage('first')}}},[_c('i',{staticClass:\"icon icon-chevron-beginning\"})]),_c('button',{staticClass:\"btn btn-sm role-multi-action\",attrs:{\"type\":\"button\",\"disabled\":_vm.page == 1},on:{\"click\":function($event){return _vm.goToPage('prev')}}},[_c('i',{staticClass:\"icon icon-chevron-left\"})]),_c('span',[_vm._v(\" \"+_vm._s(_vm.pagingDisplay)+\" \")]),_c('button',{staticClass:\"btn btn-sm role-multi-action\",attrs:{\"type\":\"button\",\"disabled\":_vm.page == _vm.totalPages},on:{\"click\":function($event){return _vm.goToPage('next')}}},[_c('i',{staticClass:\"icon icon-chevron-right\"})]),_c('button',{staticClass:\"btn btn-sm role-multi-action\",attrs:{\"type\":\"button\",\"disabled\":_vm.page == _vm.totalPages},on:{\"click\":function($event){return _vm.goToPage('last')}}},[_c('i',{staticClass:\"icon icon-chevron-end\"})])]):_vm._e(),(_vm.search)?_c('button',{directives:[{name:\"shortkey\",rawName:\"v-shortkey.once\",value:(['/']),expression:\"['/']\",modifiers:{\"once\":true}}],staticClass:\"hide\",on:{\"shortkey\":function($event){return _vm.focusSearch()}}}):_vm._e(),(_vm.tableActions)?[_c('button',{directives:[{name:\"shortkey\",rawName:\"v-shortkey\",value:(['j']),expression:\"['j']\"}],staticClass:\"hide\",on:{\"shortkey\":function($event){return _vm.focusNext($event)}}}),_c('button',{directives:[{name:\"shortkey\",rawName:\"v-shortkey\",value:(['k']),expression:\"['k']\"}],staticClass:\"hide\",on:{\"shortkey\":function($event){return _vm.focusPrevious($event)}}}),_c('button',{directives:[{name:\"shortkey\",rawName:\"v-shortkey\",value:(['shift','j']),expression:\"['shift','j']\"}],staticClass:\"hide\",on:{\"shortkey\":function($event){return _vm.focusNext($event, true)}}}),_c('button',{directives:[{name:\"shortkey\",rawName:\"v-shortkey\",value:(['shift','k']),expression:\"['shift','k']\"}],staticClass:\"hide\",on:{\"shortkey\":function($event){return _vm.focusPrevious($event, true)}}}),_vm._t(\"shortkeys\")]:_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"dropdown-button-group\"},[_c('div',{staticClass:\"dropdown-button bg-primary\",class:{'one-action':!_vm.dualAction, [_vm.buttonSize]:true, 'disabled': _vm.disableButton}},[_c('v-popover',{attrs:{\"placement\":\"bottom\",\"container\":false,\"disabled\":_vm.disableButton,\"popper-options\":{modifiers: { flip: { enabled: false } } }},scopedSlots:_vm._u([{key:\"popover\",fn:function(){return [_vm._t(\"popover-content\")]},proxy:true}],null,true)},[_vm._t(\"button-content\",function(){return [_c('button',{ref:\"popoverButton\",staticClass:\"icon-container bg-primary no-left-border-radius\",class:_vm.buttonSize,attrs:{\"disabled\":_vm.disableButton,\"type\":\"button\"}},[_vm._v(\" Button \"),_c('i',{staticClass:\"icon icon-chevron-down\"})])]},{\"buttonSize\":_vm.buttonSize})],2)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ActionDropdown.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ActionDropdown.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ActionDropdown.vue?vue&type=template&id=70f0de36\"\nimport script from \"./ActionDropdown.vue?vue&type=script&lang=js\"\nexport * from \"./ActionDropdown.vue?vue&type=script&lang=js\"\nimport style0 from \"./ActionDropdown.vue?vue&type=style&index=0&id=70f0de36&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('thead',[_c('tr',{class:{'loading': _vm.loading}},[(_vm.tableActions)?_c('th',{attrs:{\"width\":_vm.checkWidth,\"align\":\"middle\"}},[_c('Checkbox',{staticClass:\"check\",attrs:{\"data-testid\":\"sortable-table_check_select_all\",\"indeterminate\":_vm.isIndeterminate,\"disabled\":_vm.noRows || _vm.noResults},model:{value:(_vm.isAll),callback:function ($$v) {_vm.isAll=$$v},expression:\"isAll\"}})],1):_vm._e(),(_vm.subExpandColumn)?_c('th',{attrs:{\"width\":_vm.expandWidth}}):_vm._e(),_vm._l((_vm.columns),function(col){return _c('th',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.hasAdvancedFiltering || (_vm.hasAdvancedFiltering && col.isColVisible)),expression:\"!hasAdvancedFiltering || (hasAdvancedFiltering && col.isColVisible)\"}],key:col.name,class:{ sortable: col.sort, [col.breakpoint]: !!col.breakpoint},attrs:{\"align\":col.align || 'left',\"width\":col.width},on:{\"click\":function($event){$event.preventDefault();return _vm.changeSort($event, col)}}},[_c('div',{staticClass:\"table-header-container\",class:{ 'not-filterable': _vm.hasAdvancedFiltering && !col.isFilter }},[(col.sort)?_c('span',{directives:[{name:\"clean-tooltip\",rawName:\"v-clean-tooltip\",value:(_vm.tooltip(col)),expression:\"tooltip(col)\"}]},[_c('span',{directives:[{name:\"clean-html\",rawName:\"v-clean-html\",value:(_vm.labelFor(col)),expression:\"labelFor(col)\"}]}),_c('i',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.hasAdvancedFiltering && !col.isFilter),expression:\"hasAdvancedFiltering && !col.isFilter\"},{name:\"clean-tooltip\",rawName:\"v-clean-tooltip\",value:(_vm.t('sortableTable.tableHeader.noFilter')),expression:\"t('sortableTable.tableHeader.noFilter')\"}],staticClass:\"icon icon-info not-filter-icon\"}),_c('span',{staticClass:\"icon-stack\"},[_c('i',{staticClass:\"icon icon-sort icon-stack-1x faded\"}),(_vm.isCurrent(col) && !_vm.descending)?_c('i',{staticClass:\"icon icon-sort-down icon-stack-1x\"}):_vm._e(),(_vm.isCurrent(col) && _vm.descending)?_c('i',{staticClass:\"icon icon-sort-up icon-stack-1x\"}):_vm._e()])]):_c('span',{directives:[{name:\"clean-tooltip\",rawName:\"v-clean-tooltip\",value:(_vm.tooltip(col)),expression:\"tooltip(col)\"}]},[_vm._v(_vm._s(_vm.labelFor(col)))])])])}),(_vm.rowActions && _vm.hasAdvancedFiltering && _vm.tableColsOptions.length)?_c('th',{attrs:{\"width\":_vm.rowActionsWidth}},[_c('div',{ref:\"table-options\",staticClass:\"table-options-group\"},[_c('button',{staticClass:\"btn btn-sm role-multi-action table-options-btn\",attrs:{\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\",\"type\":\"button\"},on:{\"click\":_vm.tableColsOptionsClick}},[_c('i',{staticClass:\"icon icon-actions\"})]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tableColsOptionsVisibility),expression:\"tableColsOptionsVisibility\"}],staticClass:\"table-options-container\",style:(_vm.tableColsMenuPosition)},[(_vm.hasAdvGrouping)?_c('div',{staticClass:\"table-options-grouping\"},[_c('span',{staticClass:\"table-options-col-subtitle\"},[_vm._v(_vm._s(_vm.t('sortableTable.tableHeader.groupBy'))+\":\")]),_c('LabeledSelect',{staticClass:\"table-options-grouping-select\",attrs:{\"clearable\":true,\"options\":_vm.groupOptions,\"disabled\":false,\"searchable\":false,\"mode\":\"edit\",\"multiple\":false,\"taggable\":false},model:{value:(_vm.advGroup),callback:function ($$v) {_vm.advGroup=$$v},expression:\"advGroup\"}})],1):_vm._e(),_c('p',{staticClass:\"table-options-col-subtitle mb-20\"},[_vm._v(\" \"+_vm._s(_vm.t('sortableTable.tableHeader.show'))+\": \")]),_c('ul',_vm._l((_vm.tableColsOptions),function(col,index){return _c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(col.isTableOption),expression:\"col.isTableOption\"}],key:index,class:{ 'visible': !col.preventColToggle }},[_c('Checkbox',{directives:[{name:\"show\",rawName:\"v-show\",value:(!col.preventColToggle),expression:\"!col.preventColToggle\"}],staticClass:\"table-options-checkbox\",attrs:{\"label\":col.label},on:{\"input\":function($event){return _vm.tableOptionsCheckbox($event, col.label)}},model:{value:(col.isColVisible),callback:function ($$v) {_vm.$set(col, \"isColVisible\", $$v)},expression:\"col.isColVisible\"}})],1)}),0)])])]):(_vm.rowActions)?_c('th',{attrs:{\"width\":_vm.rowActionsWidth}}):_vm._e()],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export function getParent(el, parentSelector) {\n el = el?.parentElement;\n\n if (!el) {\n return null;\n }\n\n const matchFn = el.matches || el.matchesSelector;\n\n if (!matchFn.call(el, parentSelector)) {\n return getParent(el, parentSelector);\n }\n\n return el;\n}\n","import { isMore, isRange, suppressContextMenu, isAlternate } from '@shell/utils/platform';\nimport { get } from '@shell/utils/object';\nimport { filterBy } from '@shell/utils/array';\nimport { getParent } from '@shell/utils/dom';\n\nexport const ALL = 'all';\nexport const SOME = 'some';\nexport const NONE = 'none';\n\nexport default {\n mounted() {\n const table = this.$el.querySelector('TABLE');\n\n this._onRowClickBound = this.onRowClick.bind(this);\n this._onRowMousedownBound = this.onRowMousedown.bind(this);\n this._onRowContextBound = this.onRowContext.bind(this);\n\n table.addEventListener('click', this._onRowClickBound);\n table.addEventListener('mousedown', this._onRowMousedownBound);\n table.addEventListener('contextmenu', this._onRowContextBound);\n },\n\n beforeDestroy() {\n const table = this.$el.querySelector('TABLE');\n\n table.removeEventListener('click', this._onRowClickBound);\n table.removeEventListener('mousedown', this._onRowMousedownBound);\n table.removeEventListener('contextmenu', this._onRowContextBound);\n },\n\n computed: {\n // Used for the table-level selection check-box to show checked (all selected)/intermediate (some selected)/unchecked (none selected)\n howMuchSelected() {\n const total = this.pagedRows.length;\n const selected = this.selectedRows.length;\n\n if ( selected >= total && total > 0 ) {\n return ALL;\n } else if ( selected > 0 ) {\n return SOME;\n }\n\n return NONE;\n },\n\n // NOTE: The logic here could be simplified and made more performant\n bulkActionsForSelection() {\n let disableAll = false;\n // pagedRows is all rows in the current page\n const all = this.pagedRows;\n const allRows = this.arrangedRows;\n let selected = this.selectedRows;\n\n // Nothing is selected\n if ( !this.selectedRows.length ) {\n // and there are no rows\n if ( !allRows ) {\n return [];\n }\n\n const firstNode = allRows[0];\n\n selected = firstNode ? [firstNode] : [];\n disableAll = true;\n }\n\n const map = {};\n\n // Find and add all the actions for all the nodes so that we know\n // what all the possible actions are\n for ( const node of all ) {\n if (node.availableActions) {\n for ( const act of node.availableActions ) {\n if ( act.bulkable ) {\n _add(map, act, false);\n }\n }\n }\n }\n\n // Go through all the selected items and add the actions (which were already identified above)\n // as available for some (or all) of the selected nodes\n for ( const node of selected ) {\n if (node.availableActions) {\n for ( const act of node.availableActions ) {\n if ( act.bulkable && act.enabled ) {\n _add(map, act, false);\n }\n }\n }\n }\n\n // If there's no items actually selected, we want to see all the actions\n // so you know what exists, but have them all be disabled since there's nothing to do them on.\n const out = _filter(map, disableAll);\n\n // Enable a bulkaction if some of the selected items can perform the action\n out.forEach((bulkAction) => {\n const actionEnabledForSomeSelected = this.selectedRows.some((node) => {\n const availableActions = node.availableActions || [];\n\n return availableActions.some((action) => action.action === bulkAction.action && action.enabled);\n });\n\n bulkAction.enabled = this.selectedRows.length > 0 && actionEnabledForSomeSelected;\n });\n\n return out.sort((a, b) => (b.weight || 0) - (a.weight || 0));\n }\n },\n\n data() {\n return {\n // List of selected items in the table\n selectedRows: [],\n prevNode: null,\n };\n },\n\n watch: {\n // On page change\n pagedRows() {\n // When the table contents changes:\n // - Remove items that are in the selection but no longer in the table.\n\n const content = this.pagedRows;\n const toRemove = [];\n\n for (const node of this.selectedRows) {\n if (!content.includes(node) ) {\n toRemove.push(node);\n }\n }\n\n this.update([], toRemove);\n }\n },\n\n methods: {\n onToggleAll(value) {\n if ( value ) {\n this.update(this.pagedRows, []);\n\n return true;\n } else {\n this.update([], this.pagedRows);\n\n return false;\n }\n },\n\n onRowMousedown(e) {\n if ( isRange(e) || this.isSelectionCheckbox(e.target) ) {\n e.preventDefault();\n }\n },\n\n onRowMouseEnter(e) {\n const tr = e.target.closest('TR');\n\n if (tr.classList.contains('sub-row')) {\n const trMainRow = tr.previousElementSibling;\n\n trMainRow.classList.add('sub-row-hovered');\n }\n },\n\n onRowMouseLeave(e) {\n const tr = e.target.closest('TR');\n\n if (tr.classList.contains('sub-row')) {\n const trMainRow = tr.previousElementSibling;\n\n trMainRow.classList.remove('sub-row-hovered');\n }\n },\n\n nodeForEvent(e) {\n const tagName = e.target.tagName;\n const tgt = e.target;\n const actionElement = tgt.closest('.actions');\n\n if ( tgt.classList.contains('select-all-check') ) {\n return;\n }\n\n if ( !actionElement ) {\n if (\n tagName === 'A' ||\n tagName === 'BUTTON' ||\n getParent(tgt, '.btn')\n ) {\n return;\n }\n }\n\n const tgtRow = e.target.closest('TR');\n\n return this.nodeForRow(tgtRow);\n },\n\n nodeForRow(tgtRow) {\n if ( tgtRow?.classList.contains('separator-row') ) {\n return;\n }\n\n while ( tgtRow && !tgtRow.classList.contains('main-row') ) {\n tgtRow = tgtRow.previousElementSibling;\n }\n\n if ( !tgtRow ) {\n return;\n }\n\n const nodeId = tgtRow.dataset.nodeId;\n\n if ( !nodeId ) {\n return;\n }\n\n const node = this.pagedRows.find( (x) => get(x, this.keyField) === nodeId );\n\n return node;\n },\n\n async onRowClick(e) {\n const node = this.nodeForEvent(e);\n const td = e.target.closest('TD');\n const skipSelect = td?.classList.contains('skip-select');\n\n if (skipSelect) {\n return;\n }\n const selection = this.selectedRows;\n const isCheckbox = this.isSelectionCheckbox(e.target) || td?.classList.contains('row-check');\n const isExpand = td?.classList.contains('row-expand');\n const content = this.pagedRows;\n\n this.$emit('rowClick', e);\n\n if ( !node ) {\n return;\n }\n\n if ( isExpand ) {\n this.toggleExpand(node);\n\n return;\n }\n\n const actionElement = e.target.closest('.actions');\n\n if ( actionElement ) {\n let resources = [node];\n\n if ( this.mangleActionResources ) {\n const i = actionElement.querySelector('i');\n\n i.classList.remove('icon-actions');\n i.classList.add('icon-spinner');\n i.classList.add('icon-spin');\n\n try {\n resources = await this.mangleActionResources(resources);\n } finally {\n i.classList.remove('icon-spinner');\n i.classList.remove('icon-spin');\n i.classList.add('icon-actions');\n }\n }\n\n this.$store.commit(`action-menu/show`, {\n resources,\n event: e,\n elem: actionElement\n });\n\n return;\n }\n\n const isSelected = selection.includes(node);\n let prevNode = this.prevNode;\n\n // PrevNode is only valid if it's in the current content\n if ( !prevNode || !content.includes(prevNode) ) {\n prevNode = node;\n }\n\n if ( isMore(e) ) {\n this.toggle(node);\n } else if ( isRange(e) ) {\n const toToggle = this.nodesBetween(prevNode, node);\n\n if ( isSelected ) {\n this.update([], toToggle);\n } else {\n this.update(toToggle, []);\n }\n } else if ( isCheckbox ) {\n this.toggle(node);\n } else {\n this.update([node], content);\n }\n\n this.prevNode = node;\n },\n\n async onRowContext(e) {\n const node = this.nodeForEvent(e);\n\n if ( suppressContextMenu(e) ) {\n return;\n }\n\n if ( !node ) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n\n this.prevNode = node;\n const isSelected = this.selectedRows.includes(node);\n\n if ( !isSelected ) {\n this.update([node], this.selectedRows.slice());\n }\n\n let resources = this.selectedRows;\n\n if ( this.mangleActionResources ) {\n resources = await this.mangleActionResources(resources);\n }\n\n this.$store.commit(`action-menu/show`, {\n resources,\n event: e,\n });\n },\n\n keySelectRow(row, more = false) {\n const node = this.nodeForRow(row);\n const content = this.pagedRows;\n\n if ( !node ) {\n return;\n }\n\n if ( more ) {\n this.update([node], []);\n } else {\n this.update([node], content);\n }\n\n this.prevNode = node;\n },\n\n isSelectionCheckbox(element) {\n return element.tagName === 'INPUT' &&\n element.type === 'checkbox' &&\n element.closest('.selection-checkbox') !== null;\n },\n\n nodesBetween(a, b) {\n let toToggle = [];\n const key = this.groupBy;\n\n if ( key ) {\n // Grouped has 2 levels to look through\n const grouped = this.groupedRows;\n\n let from = this.groupIdx(a);\n let to = this.groupIdx(b);\n\n if ( !from || !to ) {\n return [];\n }\n\n // From has to come before To\n if ( (from.group > to.group) || ((from.group === to.group) && (from.item > to.item)) ) {\n [from, to] = [to, from];\n }\n\n for ( let i = from.group ; i <= to.group ; i++ ) {\n const items = grouped[i].rows;\n let j = (from.group === i ? from.item : 0);\n\n while ( items[j] && ( i < to.group || j <= to.item )) {\n toToggle.push(items[j]);\n j++;\n }\n }\n } else {\n // Ungrouped is much simpler\n const content = this.pagedRows;\n let from = content.indexOf(a);\n let to = content.indexOf(b);\n\n [from, to] = [Math.min(from, to), Math.max(from, to)];\n toToggle = content.slice(from, to + 1);\n }\n\n // check if there is already duplicate content selected (selectedRows) on the list to toggle...\n toToggle = toToggle.filter((item) => !this.selectedRows.includes(item));\n\n return toToggle;\n },\n\n groupIdx(node) {\n const grouped = this.groupedRows;\n\n for ( let i = 0 ; i < grouped.length ; i++ ) {\n const rows = grouped[i].rows;\n\n for ( let j = 0 ; j < rows.length ; j++ ) {\n if ( rows[j] === node ) {\n return {\n group: i,\n item: j\n };\n }\n }\n }\n\n return null;\n },\n\n toggle(node) {\n const add = [];\n const remove = [];\n\n if (this.selectedRows.includes(node)) {\n remove.push(node);\n } else {\n add.push(node);\n }\n\n this.update(add, remove);\n },\n\n update(toAdd, toRemove) {\n toRemove.forEach((row) => {\n const index = this.selectedRows.findIndex((r) => r === row);\n\n if (index !== -1) {\n this.selectedRows.splice(index, 1);\n }\n });\n\n if ( toAdd ) {\n this.selectedRows.push(...toAdd);\n }\n\n // Uncheck and check the checkboxes of nodes that have been added/removed\n if (toRemove.length) {\n this.$nextTick(() => {\n for ( let i = 0 ; i < toRemove.length ; i++ ) {\n this.updateInput(toRemove[i], false, this.keyField);\n }\n });\n }\n\n if (toAdd.length) {\n this.$nextTick(() => {\n for ( let i = 0 ; i < toAdd.length ; i++ ) {\n this.updateInput(toAdd[i], true, this.keyField);\n }\n });\n }\n\n this.$nextTick(() => {\n this.$emit('selection', this.selectedRows);\n });\n },\n\n updateInput(node, on, keyField) {\n const id = get(node, keyField);\n\n if ( id ) {\n // Note: This is looking for the checkbox control for the row\n const input = this.$el.querySelector(`div[data-checkbox-ctrl][data-node-id=\"${ id }\"]`);\n\n if ( input && !input.disabled ) {\n const label = input.querySelector('label');\n\n if (label) {\n label.value = on;\n }\n let tr = input.closest('tr');\n let first = true;\n\n while ( tr && (first || tr.classList.contains('sub-row') ) ) {\n if (on) {\n tr.classList.add('row-selected');\n } else {\n tr.classList.remove('row-selected');\n }\n tr = tr.nextElementSibling;\n first = false;\n }\n }\n }\n },\n\n select(nodes) {\n nodes.forEach((node) => {\n const id = get(node, this.keyField);\n const input = this.$el.querySelector(`label[data-node-id=\"${ id }\"]`);\n\n input.dispatchEvent(new Event('click'));\n });\n },\n\n applyTableAction(action, args, event) {\n const opts = { alt: event && isAlternate(event), event };\n\n // Go through the table selection and filter out those actions that can't run the chosen action\n const executableSelection = this.selectedRows.filter((row) => {\n const matchingResourceAction = row.availableActions.find((a) => a.action === action.action);\n\n return matchingResourceAction?.enabled;\n });\n\n _execute(executableSelection, action, args, opts, this);\n\n this.actionOfInterest = null;\n },\n\n clearSelection() {\n this.update([], this.selectedRows);\n },\n\n }\n};\n\n// ---------------------------------------------------------------------\n// --- Helpers that were in selectionStore.js --------------------------\n// ---------------------------------------------------------------------\n\nlet anon = 0;\n\nfunction _add(map, act, incrementCounts = true) {\n let id = act.action;\n\n if ( !id ) {\n id = `anon${ anon }`;\n anon++;\n }\n\n let obj = map[id];\n\n if ( !obj ) {\n obj = Object.assign({}, act);\n map[id] = obj;\n obj.allEnabled = false;\n }\n\n if ( !act.enabled ) {\n obj.allEnabled = false;\n } else {\n obj.anyEnabled = true;\n }\n\n if ( incrementCounts ) {\n obj.available = (obj.available || 0) + (!act.enabled ? 0 : 1 );\n obj.total = (obj.total || 0) + 1;\n }\n\n return obj;\n}\n\nfunction _filter(map, disableAll = false) {\n const out = filterBy(Object.values(map), 'anyEnabled', true);\n\n for ( const act of out ) {\n if ( disableAll ) {\n act.enabled = false;\n } else {\n act.enabled = ( act.available >= act.total );\n }\n }\n\n return out;\n}\n\nfunction _execute(resources, action, args, opts = {}, ctx) {\n args = args || [];\n\n // New pattern for extensions - always call invoke\n if (action.invoke) {\n const actionOpts = {\n action,\n event: opts.event,\n isAlt: !!opts.alt,\n };\n\n return action.invoke.apply(ctx, [actionOpts, resources || [], args]);\n }\n\n if ( resources.length > 1 && action.bulkAction && !opts.alt ) {\n const fn = resources[0][action.bulkAction];\n\n if ( fn ) {\n return fn.call(resources[0], resources, ...args);\n }\n }\n\n const promises = [];\n\n for ( const resource of resources ) {\n let fn;\n\n if (opts.alt && action.altAction) {\n fn = resource[action.altAction];\n } else {\n fn = resource[action.action];\n }\n\n if ( fn ) {\n promises.push(fn.apply(resource, args));\n }\n }\n\n return Promise.all(promises);\n}\n","// @TODO replace this with popper.js...\n\nexport const LEFT = 'left';\nexport const RIGHT = 'right';\nexport const TOP = 'top';\nexport const CENTER = 'center'; // These are both the same externally so you can use either,\nexport const MIDDLE = 'center'; // but have different meaning inside this file (center->left/right, middle->top/bottom)\nexport const BOTTOM = 'bottom';\nexport const AUTO = 'auto';\n\nexport function boundingRect(elem) {\n const pos = elem.getBoundingClientRect();\n const width = elem.offsetWidth;\n const height = elem.offsetHeight;\n\n return {\n top: pos.top,\n right: pos.left + width,\n bottom: pos.top + height,\n left: pos.left,\n width,\n height,\n };\n}\n\nexport function fakeRectFor(event) {\n return {\n top: event.clientY,\n left: event.clientX,\n bottom: event.clientY,\n right: event.clientX,\n width: 0,\n height: 0,\n };\n}\n\nexport function screenRect() {\n const width = window.innerWidth;\n const height = window.innerHeight;\n const top = window.pageYOffset;\n const left = window.pageXOffset;\n\n return {\n top,\n right: left + width,\n bottom: top + height,\n left,\n width,\n height,\n };\n}\n\nexport function fitOnScreen(contentElem, triggerElemOrEvent, opt, useDefaults) {\n let {\n positionX = AUTO, // Preferred horizontal position\n positionY = AUTO, // Preferred vertical position\n } = opt || {};\n\n const {\n fudgeX = 0,\n fudgeY = 0,\n overlapX = true, // Position on \"top\" of the trigger horizontally\n overlapY = false, // Position on \"top\" of the trigger vertically\n } = opt || {};\n\n const screen = screenRect();\n let trigger;\n\n if ( triggerElemOrEvent instanceof Event ) {\n trigger = fakeRectFor(triggerElemOrEvent);\n } else {\n trigger = boundingRect(triggerElemOrEvent);\n }\n\n let content = {};\n\n if (contentElem) {\n content = boundingRect(contentElem);\n }\n\n if (useDefaults) {\n content = {\n top: 0,\n right: 147,\n bottom: 163,\n left: 0,\n width: 147,\n height: 80\n };\n }\n\n // console.log('screen', screen);\n // console.log('trigger', trigger);\n // console.log('content', content);\n\n const style = { position: 'absolute' };\n\n const originFor = {\n left: (overlapX ? trigger.left : trigger.right ),\n center: (trigger.left + trigger.right ) / 2,\n right: (overlapX ? trigger.right : trigger.left ),\n top: (overlapY ? trigger.bottom : trigger.top ),\n middle: (trigger.top + trigger.bottom ) / 2,\n bottom: (overlapY ? trigger.top : trigger.bottom ),\n };\n\n // console.log('origin', originFor);\n\n const gapIf = {\n left: screen.right - content.width - originFor.left,\n center: Math.min(screen.right - (content.width / 2) - originFor.center, originFor.center - (content.width / 2) - screen.left),\n right: originFor.right - content.width - screen.left,\n top: originFor.bottom - content.height - screen.top,\n middle: Math.min(originFor.middle - (content.height / 2) - screen.top, screen.bottom - (content.height / 2) - originFor.middle),\n bottom: screen.bottom - content.height - originFor.top,\n };\n\n // console.log('gapIf', gapIf);\n\n if ( positionX === CENTER && gapIf.center < 0) {\n positionX = AUTO;\n }\n\n if ( positionX === AUTO ) {\n positionX = gapIf.left < 0 || gapIf.right * 1.5 > gapIf.left ? RIGHT : LEFT;\n } else if ( positionY === LEFT && gapIf.left < 0 ) {\n positionX = RIGHT;\n } else if ( positionY === RIGHT && gapIf.right < 0 ) {\n positionX = LEFT;\n }\n\n switch ( positionX ) {\n case LEFT:\n style.left = `${ originFor.left - fudgeX }px`;\n break;\n case CENTER:\n style.left = `${ ((originFor.left + originFor.right) / 2) - (content.width / 2) - fudgeX }px`;\n break;\n case RIGHT:\n style.left = `${ originFor.right + fudgeX - content.width }px`;\n // style.right = `${ screen.width - originFor.right - fudgeX }px`;\n break;\n }\n\n if ( positionY === MIDDLE && gapIf.middle < 0) {\n positionY = AUTO;\n }\n\n if ( positionY === AUTO ) {\n positionY = gapIf.top < 0 || gapIf.bottom * 1.5 > gapIf.top ? BOTTOM : TOP;\n } else if ( positionY === TOP && gapIf.top < 0 ) {\n positionY = BOTTOM;\n } else if ( positionY === BOTTOM && gapIf.bottom < 0 ) {\n positionY = TOP;\n }\n\n switch ( positionY ) {\n case TOP:\n style.top = `${ originFor.top + fudgeY - content.height }px`;\n break;\n case CENTER:\n style.top = `${ ((originFor.top + originFor.bottom) / 2) + fudgeY - content.height }px`;\n break;\n case BOTTOM:\n style.top = `${ originFor.bottom - fudgeY }px`;\n break;\n }\n\n // console.log(positionX, positionY, style);\n\n return style;\n}\n","\n\n\n\n \n \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./THead.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./THead.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./THead.vue?vue&type=template&id=36bf3081&scoped=true\"\nimport script from \"./THead.vue?vue&type=script&lang=js\"\nexport * from \"./THead.vue?vue&type=script&lang=js\"\nimport style0 from \"./THead.vue?vue&type=style&index=0&id=36bf3081&prod&lang=scss&scoped=true\"\nimport style1 from \"./THead.vue?vue&type=style&index=1&id=36bf3081&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"36bf3081\",\n null\n \n)\n\nexport default component.exports","import { get } from '@shell/utils/object';\nimport { addObject, addObjects, isArray, removeAt } from '@shell/utils/array';\n\nexport const ADV_FILTER_ALL_COLS_VALUE = 'allcols';\nexport const ADV_FILTER_ALL_COLS_LABEL = 'All Columns';\nconst LABEL_IDENTIFIER = ':::islabel';\n\nexport default {\n data() {\n return {\n searchQuery: null,\n previousFilter: null,\n previousResult: null,\n };\n },\n\n computed: {\n searchFields() {\n const out = columnsToSearchField(this.columns);\n\n if ( this.extraSearchFields ) {\n addObjects(out, this.extraSearchFields);\n }\n\n return out;\n },\n\n /*\n subFields: computed('subHeaders.@each.{searchField,name}', 'extraSearchSubFields.[]', function() {\n let out = headersToSearchField(get(this, 'subHeaders'));\n\n return out.addObjects(get(this, 'extraSearchSubFields') || []);\n }),\n */\n filteredRows() {\n // PROP hasAdvancedFiltering comes from Advanced Filtering mixin (careful changing data var there...)\n if (!this.hasAdvancedFiltering) {\n return this.handleFiltering();\n } else {\n return this.handleAdvancedFiltering();\n }\n },\n },\n\n methods: {\n handleAdvancedFiltering() {\n this.subMatches = null;\n\n if (this.searchQuery.length) {\n const out = (this.arrangedRows || []).slice();\n\n const res = out.filter((row) => {\n return this.searchQuery.every((f) => {\n if (f.prop === ADV_FILTER_ALL_COLS_VALUE) {\n // advFilterSelectOptions comes from Advanced Filtering mixin\n // remove the All Columns option from the list so that we don't iterate over it\n const allCols = this.advFilterSelectOptions.slice(1);\n let searchFields = [];\n\n allCols.forEach((col) => {\n if (col.value.includes('[') && col.value.includes(']')) {\n searchFields = searchFields.concat(JSON.parse(col.value));\n } else {\n // this means we are on the presence of a label, which should be dealt\n // carefully because of object path such row.metadata.labels.\"app.kubernetes.io/managed-by\n const value = col.isLabel ? `${ col.label }${ LABEL_IDENTIFIER }` : col.value;\n\n searchFields.push(value);\n }\n });\n\n return handleStringSearch(searchFields, [f.value], row);\n } else {\n if (f.prop.includes('[') && f.prop.includes(']')) {\n return handleStringSearch(JSON.parse(f.prop), [f.value], row);\n }\n\n let prop = f.prop;\n\n // this means we are on the presence of a label, which should be dealt\n // carefully because of object path such row.metadata.labels.\"app.kubernetes.io/managed-by\"\n if (f.prop.includes('metadata.labels')) {\n prop = `${ f.label }${ LABEL_IDENTIFIER }`;\n }\n\n return handleStringSearch([prop], [f.value], row);\n }\n });\n });\n\n return res;\n }\n\n // return arrangedRows array if we don't have anything to search for...\n return this.arrangedRows;\n },\n\n handleFiltering() {\n const searchText = (this.searchQuery || '').trim().toLowerCase();\n let out;\n\n if ( searchText && this.previousResult && searchText.startsWith(this.previousFilter) ) {\n // If the new search is an addition to the last one, we can start with the same set of results as last time\n // and filter those down, since adding more searchText can only reduce the number of results.\n out = this.previousResult.slice();\n } else {\n this.previousResult = null;\n out = (this.arrangedRows || []).slice();\n }\n\n this.previousFilter = searchText;\n\n if ( !searchText.length ) {\n this.subMatches = null;\n this.previousResult = null;\n\n return out;\n }\n\n const searchFields = this.searchFields;\n const searchTokens = searchText.split(/\\s*[, ]\\s*/);\n const subSearch = this.subSearch;\n const subFields = this.subFields;\n const subMatches = {};\n\n for ( let i = out.length - 1 ; i >= 0 ; i-- ) {\n const row = out[i];\n let hits = 0;\n let mainFound = true;\n\n mainFound = handleStringSearch(searchFields, searchTokens, row);\n\n if ( subFields && subSearch) {\n const subRows = row[subSearch] || [];\n\n for ( let k = subRows.length - 1 ; k >= 0 ; k-- ) {\n let subFound = true;\n\n subFound = handleStringSearch(subFields, searchTokens, row);\n\n if ( subFound ) {\n hits++;\n }\n }\n\n subMatches[get(row, this.keyField)] = hits;\n }\n\n if ( !mainFound && hits === 0 ) {\n removeAt(out, i);\n }\n }\n\n this.subMatches = subMatches;\n this.previousResult = out;\n\n return out;\n }\n },\n\n watch: {\n arrangedRows(q) {\n // The rows changed so the old filter result is no longer useful\n this.previousResult = null;\n }\n },\n};\n\nfunction columnsToSearchField(columns) {\n const out = [];\n\n (columns || []).forEach((column) => {\n const field = column.search;\n\n if ( field ) {\n if ( typeof field === 'string' ) {\n addObject(out, field);\n } else if ( isArray(field) ) {\n addObjects(out, field);\n }\n } else if ( field === false ) {\n // Don't add the name\n } else {\n // Use value/name as the default\n addObject(out, column.value || column.name);\n }\n });\n\n return out.filter((x) => !!x);\n}\n\nconst ipLike = /^[0-9a-f\\.:]+$/i;\n\nfunction handleStringSearch(searchFields, searchTokens, row) {\n for ( let j = 0 ; j < searchTokens.length ; j++ ) {\n let expect = true;\n let token = searchTokens[j];\n\n if ( token.substr(0, 1) === '!' ) {\n expect = false;\n token = token.substr(1);\n }\n\n if ( token && matches(searchFields, token, row) !== expect ) {\n return false;\n }\n\n return true;\n }\n}\n\nfunction matches(fields, token, item) {\n for ( let field of fields ) {\n if ( !field ) {\n continue;\n }\n\n // some items might not even have metadata.labels or metadata.labels.something... ignore those items. Nothing to filter by\n if (typeof field !== 'function' &&\n field.includes(LABEL_IDENTIFIER) &&\n (!item.metadata.labels || !item.metadata.labels[field.replace(LABEL_IDENTIFIER, '')])) {\n continue;\n }\n\n let modifier;\n let val;\n\n if (typeof field === 'function') {\n val = field(item);\n } else if (field.includes(LABEL_IDENTIFIER)) {\n val = item.metadata.labels[field.replace(LABEL_IDENTIFIER, '')];\n } else {\n const idx = field.indexOf(':');\n\n if ( idx > 0 ) {\n modifier = field.substr(idx + 1);\n field = field.substr(0, idx);\n }\n\n if ( field.includes('.') ) {\n val = get(item, field);\n } else {\n val = item[field];\n }\n }\n\n if ( val === undefined ) {\n continue;\n }\n\n val = (`${ val }`).toLowerCase();\n if ( !val ) {\n continue;\n }\n\n if ( !modifier ) {\n if ( val.includes((`${ token }`).toLowerCase()) ) {\n return true;\n }\n } else if ( modifier === 'exact' ) {\n if ( val === token ) {\n return true;\n }\n } else if ( modifier === 'ip' ) {\n const tokenMayBeIp = ipLike.test(token);\n\n if ( tokenMayBeIp ) {\n const re = new RegExp(`(?:^|\\\\.)${ token }(?:\\\\.|$)`);\n\n if ( re.test(val) ) {\n return true;\n }\n }\n } else if ( modifier === 'prefix' ) {\n if ( val.indexOf(token) === 0) {\n return true;\n }\n }\n }\n\n return false;\n}\n","import { sortBy } from '@shell/utils/sort';\nimport { addObject } from '@shell/utils/array';\n\nexport default {\n computed: {\n sortFields() {\n let fromGroup = ( this.groupBy ? this.groupSort || this.groupBy : null) || [];\n let fromColumn = [];\n\n const column = (this.columns || this.headers).find((x) => x && x.name && x.name.toLowerCase() === this.sortBy.toLowerCase());\n\n if ( this.sortBy && column && column.sort ) {\n fromColumn = column.sort;\n }\n\n if ( !Array.isArray(fromGroup) ) {\n fromGroup = [fromGroup];\n }\n\n if ( !Array.isArray(fromColumn) ) {\n fromColumn = [fromColumn];\n }\n\n const out = [...fromGroup, ...fromColumn];\n\n addObject(out, 'nameSort');\n addObject(out, 'id');\n\n return out;\n },\n\n arrangedRows() {\n let key;\n\n if ( this.sortGenerationFn ) {\n key = `${ this.sortGenerationFn.apply(this) }/${ this.rows.length }/${ this.descending }/${ this.sortFields.join(',') }`;\n\n if ( this.cacheKey === key ) {\n return this.cachedRows;\n }\n }\n\n const out = sortBy(this.rows, this.sortFields, this.descending);\n\n if ( key ) {\n this.cacheKey = key;\n this.cachedRows = out;\n }\n\n return out;\n },\n },\n\n data() {\n let sortBy = null;\n\n this._defaultSortBy = this.defaultSortBy;\n\n // Try to find a reasonable default sort\n if ( !this._defaultSortBy ) {\n const markedColumn = this.headers.find((x) => !!x.defaultSort);\n const nameColumn = this.headers.find( (x) => x.name === 'name');\n\n if ( markedColumn ) {\n this._defaultSortBy = markedColumn.name;\n } else if ( nameColumn ) {\n // Use the name column if there is one\n this._defaultSortBy = nameColumn.name;\n } else {\n // The first column that isn't state\n const first = this.headers.filter( (x) => x.name !== 'state' )[0];\n\n if ( first ) {\n this._defaultSortBy = first.name;\n } else {\n // I give up\n this._defaultSortBy = 'id';\n }\n }\n }\n\n // If the sort column doesn't exist or isn't specified, use default\n if ( !sortBy || !this.headers.find((x) => x.name === sortBy ) ) {\n sortBy = this._defaultSortBy;\n }\n\n return {\n sortBy,\n descending: false,\n cachedRows: null,\n cacheKey: null,\n };\n },\n\n methods: {\n changeSort(sort, desc) {\n this.sortBy = sort;\n this.descending = desc;\n\n // Always go back to the first page when the sort is changed\n this.setPage(1);\n },\n },\n};\n","import { ROWS_PER_PAGE } from '@shell/store/prefs';\n\nexport default {\n computed: {\n indexFrom() {\n return Math.max(0, 1 + this.perPage * (this.page - 1));\n },\n\n indexTo() {\n return Math.min(this.filteredRows.length, this.indexFrom + this.perPage - 1);\n },\n\n totalPages() {\n return Math.ceil(this.filteredRows.length / this.perPage );\n },\n\n showPaging() {\n return !this.loading && this.paging && this.totalPages > 1;\n },\n\n pagingDisplay() {\n const opt = {\n ...(this.pagingParams || {}),\n\n count: this.filteredRows.length,\n pages: this.totalPages,\n from: this.indexFrom,\n to: this.indexTo,\n };\n\n return this.$store.getters['i18n/t'](this.pagingLabel, opt);\n },\n\n pagedRows() {\n if ( this.paging ) {\n return this.filteredRows.slice(this.indexFrom - 1, this.indexTo);\n } else {\n return this.filteredRows;\n }\n }\n },\n\n data() {\n const perPage = this.getPerPage();\n\n return { page: 1, perPage };\n },\n\n watch: {\n pagedRows() {\n // Go to the last page if we end up \"past\" the last page because the table changed\n\n const from = this.indexFrom;\n const last = this.filteredRows.length;\n\n if ( this.totalPages > 0 && this.page > 1 && from > last ) {\n this.setPage(this.totalPages);\n }\n }\n },\n\n methods: {\n getPerPage() {\n // perPage can not change while the list is displayed\n let out = this.rowsPerPage || 0;\n\n if ( out <= 0 ) {\n out = parseInt(this.$store.getters['prefs/get'](ROWS_PER_PAGE), 10) || 0;\n }\n\n // This should ideally never happen, but the preference value could be invalid, so return something...\n if ( out <= 0 ) {\n out = 10;\n }\n\n return out;\n },\n\n setPage(num) {\n if (this.page === num) {\n return;\n }\n\n this.page = num;\n },\n\n goToPage(which) {\n let page;\n\n switch (which) {\n case 'first':\n page = 1;\n break;\n case 'prev':\n page = Math.max(1, this.page - 1 );\n break;\n case 'next':\n page = Math.min(this.totalPages, this.page + 1 );\n break;\n case 'last':\n page = this.totalPages;\n break;\n }\n\n this.setPage(page);\n },\n\n getPageByRow(rowId, getRowId = (x) => x) {\n const pos = this.filteredRows.map(getRowId).indexOf(rowId);\n\n if (pos === -1) {\n return null;\n }\n\n return Math.ceil(pos / this.perPage);\n }\n }\n};\n","import { get } from '@shell/utils/object';\n\nexport default {\n computed: {\n groupedRows() {\n const groupKey = this.groupBy;\n const refKey = this.groupRef || groupKey;\n\n if ( !groupKey) {\n return [{\n key: 'default',\n ref: 'default',\n rows: this.pagedRows,\n }];\n }\n\n const out = [];\n const map = {};\n\n for ( const obj of this.pagedRows ) {\n const key = get(obj, groupKey) || '';\n const ref = get(obj, refKey);\n let entry = map[key];\n\n if ( entry ) {\n entry.rows.push(obj);\n } else {\n entry = {\n key,\n ref,\n rows: [obj]\n };\n map[key] = entry;\n out.push(entry);\n }\n }\n\n return out;\n }\n }\n};\n","import debounce from 'lodash/debounce';\n\n// Use a visible display type to reduce flickering\nconst displayType = 'inline-block';\n\nexport default {\n\n data() {\n return {\n bulkActionsClass: 'bulk',\n bulkActionClass: 'bulk-action',\n bulkActionsDropdownClass: 'bulk-actions-dropdown',\n bulkActionAvailabilityClass: 'action-availability',\n\n hiddenActions: [],\n\n updateHiddenBulkActions: debounce(this.protectedUpdateHiddenBulkActions, 10)\n };\n },\n\n beforeDestroy() {\n window.removeEventListener('resize', this.onWindowResize);\n },\n\n mounted() {\n window.addEventListener('resize', this.onWindowResize);\n this.updateHiddenBulkActions();\n },\n\n watch: {\n selectedRows() {\n this.updateHiddenBulkActions();\n },\n keyedAvailableActions() {\n this.updateHiddenBulkActions();\n },\n },\n\n computed: {\n availableActions() {\n return this.bulkActionsForSelection.filter((act) => !act.external);\n },\n\n keyedAvailableActions() {\n return this.availableActions.map((aa) => aa.action);\n },\n\n selectedRowsText() {\n if (!this.selectedRows.length) {\n return null;\n }\n\n return this.t('sortableTable.actionAvailability.selected', { actionable: this.selectedRows.length });\n },\n\n // Shows a tooltip if the bulk action that the user is hovering over can not be applied to all selected rows\n actionTooltip() {\n if (!this.selectedRows.length || !this.actionOfInterest) {\n return null;\n }\n\n const runnableTotal = this.selectedRows.filter(this.canRunBulkActionOfInterest).length;\n\n if (runnableTotal === this.selectedRows.length) {\n return null;\n }\n\n return this.t('sortableTable.actionAvailability.some', {\n actionable: runnableTotal,\n total: this.selectedRows.length,\n });\n },\n },\n\n methods: {\n onWindowResize() {\n this.updateHiddenBulkActions();\n this.onScroll();\n },\n\n /**\n * Determine if any actions wrap over to a new line, if so group them into a dropdown instead\n */\n protectedUpdateHiddenBulkActions() {\n if (!this.$refs.container) {\n return;\n }\n\n const actionsContainer = this.$refs.container.querySelector(`.${ this.bulkActionsClass }`);\n const actionsDropdown = this.$refs.container.querySelector(`.${ this.bulkActionsDropdownClass }`);\n\n if (!actionsContainer || !actionsDropdown) {\n return;\n }\n\n const actionsContainerWidth = actionsContainer.offsetWidth;\n const actionsHTMLCollection = this.$refs.container.querySelectorAll(`.${ this.bulkActionClass }`);\n const actions = Array.from(actionsHTMLCollection || []);\n\n // Determine if the 'x selected' label should show and it's size\n const selectedRowsText = this.$refs.container.querySelector(`.${ this.bulkActionAvailabilityClass }`);\n let selectedRowsTextWidth = 0;\n\n if (this.selectedRowsText) {\n if (selectedRowsText) {\n selectedRowsText.style.display = displayType;\n selectedRowsTextWidth = selectedRowsText.offsetWidth;\n } else {\n selectedRowsText.style.display = 'none;';\n }\n }\n\n this.hiddenActions = [];\n\n let cumulativeWidth = 0;\n let showActionsDropdown = false;\n let totalAvailableWidth = actionsContainerWidth - selectedRowsTextWidth;\n\n // Loop through all actions to determine if some exceed the available space in the row, if so hide them and instead show in a dropdown\n for (let i = 0; i < actions.length; i++) {\n const ba = actions[i];\n\n ba.style.display = displayType;\n const actionWidth = ba.offsetWidth;\n\n cumulativeWidth += actionWidth + 15;\n if (cumulativeWidth >= totalAvailableWidth) {\n // There are too many actions so the drop down will be visible.\n if (!showActionsDropdown) {\n // If we haven't previously enabled the drop down...\n actionsDropdown.style.display = displayType;\n // By showing the drop down some previously visible actions may now be hidden, so start the process again\n // ... except taking into account the width of drop down width in the available space\n i = -1;\n cumulativeWidth = 0;\n showActionsDropdown = true;\n totalAvailableWidth = actionsContainerWidth - actionsDropdown.offsetWidth - selectedRowsTextWidth;\n } else {\n // Collate the actions in an array and hide in the normal row\n const id = ba.attributes.getNamedItem('id').value;\n\n this.hiddenActions.push(this.availableActions.find((aa) => aa.action === id));\n ba.style.display = 'none';\n }\n }\n }\n\n if (!showActionsDropdown) {\n actionsDropdown.style.display = 'none';\n }\n }\n }\n};\n","import { ADV_FILTER_ALL_COLS_VALUE, ADV_FILTER_ALL_COLS_LABEL } from './filtering';\n\nconst DEFAULT_ADV_FILTER_COLS_VALUE = ADV_FILTER_ALL_COLS_VALUE;\n\nexport default {\n props: {\n /**\n * Group value\n * To be used on the THead component when adv filtering is present\n */\n group: {\n type: String,\n default: () => ''\n },\n /**\n * Group options\n * All of the grouping options available to be used on the THead component when adv filtering is present\n */\n groupOptions: {\n type: Array,\n default: () => []\n },\n /**\n * Flag that controls visibility of advanced filtering feature\n */\n hasAdvancedFiltering: {\n type: Boolean,\n default: false\n },\n /**\n * Flag that controls visibility of labels as possibe toggable cols to be displayed on the Sortable Table\n */\n advFilterHideLabelsAsCols: {\n type: Boolean,\n default: false\n },\n /**\n * Flag that prevents filtering by labels\n */\n advFilterPreventFilteringLabels: {\n type: Boolean,\n default: false\n },\n },\n data() {\n return {\n columnOptions: [],\n colOptionsWatcher: null,\n advancedFilteringVisibility: false,\n advancedFilteringValues: [],\n advFilterSearchTerm: null,\n advFilterSelectedProp: DEFAULT_ADV_FILTER_COLS_VALUE,\n advFilterSelectedLabel: ADV_FILTER_ALL_COLS_LABEL,\n column: null,\n };\n },\n\n mounted() {\n if (this.hasAdvancedFiltering) {\n // trigger to first populate the cols options for filters\n this.updateColsOptions();\n }\n },\n\n watch: {\n advancedFilteringValues() {\n // passing different dummy args to make sure update is triggered\n this.watcherUpdateLiveAndDelayed(true, false);\n },\n advancedFilteringVisibility(neu) {\n if (neu) {\n // check if user clicked outside the advanced filter box\n window.addEventListener('click', this.onClickOutside);\n\n // update filtering options and toggable cols every time dropdown is open\n this.updateColsOptions();\n } else {\n // unregister click event\n window.removeEventListener('click', this.onClickOutside);\n }\n }\n },\n\n computed: {\n advFilterSelectOptions() {\n return this.columnOptions.filter((c) => c.isFilter && !c.preventFiltering);\n },\n\n advGroupOptions() {\n return this.groupOptions.map((item) => {\n return {\n label: this.t(item.tooltipKey),\n value: item.value\n };\n });\n },\n },\n\n methods: {\n handleColsVisibilyAndFiltering(cols) {\n const allCols = cols;\n\n this.columnOptions.forEach((advCol) => {\n if (advCol.isTableOption) {\n const index = allCols.findIndex((col) => col.name === advCol.name);\n\n if (index !== -1) {\n allCols[index].isColVisible = advCol.isColVisible;\n allCols[index].isFilter = advCol.isFilter;\n } else {\n allCols.push(advCol);\n }\n }\n });\n\n return allCols;\n },\n // advanced filtering methods\n setColsOptions() {\n let opts = [];\n const rowLabels = [];\n const headerProps = [];\n\n // Filter out any columns that are too heavy to show for large page sizes\n const filteredHeaders = this.headers.slice().filter((c) => (!c.maxPageSize || (c.maxPageSize && c.maxPageSize >= this.perPage)));\n\n // add table cols from config (headers)\n filteredHeaders.forEach((prop) => {\n const name = prop.name;\n const label = prop.labelKey ? this.t(`${ prop.labelKey }`) : prop.label;\n const isFilter = !!((!Object.keys(prop).includes('search') || prop.search));\n let sortVal = prop.sort;\n const valueProp = prop.valueProp || prop.value;\n let value = null;\n let isColVisible = true;\n\n if (prop.sort && valueProp) {\n if (typeof prop.sort === 'string') {\n sortVal = prop.sort.includes(':') ? [prop.sort.split(':')[0]] : [prop.sort];\n }\n\n if (!sortVal.includes(valueProp)) {\n value = JSON.stringify(sortVal.concat([valueProp]));\n } else {\n value = JSON.stringify([valueProp]);\n }\n } else if (valueProp) {\n value = JSON.stringify([valueProp]);\n } else {\n value = null;\n }\n\n // maintain current visibility of cols if they exist already\n if (this.columnOptions?.length) {\n const opt = this.columnOptions.find((colOpt) => colOpt.name === name && colOpt.label === label);\n\n if (opt) {\n isColVisible = opt.isColVisible;\n }\n }\n\n headerProps.push({\n name,\n label,\n value,\n isFilter,\n isTableOption: true,\n isColVisible\n });\n });\n\n // add labels as table cols\n if (this.rows.length) {\n this.rows.forEach((row) => {\n if (row.metadata?.labels && Object.keys(row.metadata?.labels).length) {\n Object.keys(row.metadata?.labels).forEach((label) => {\n const res = {\n name: label,\n label,\n value: `metadata.labels.${ label }`,\n isFilter: true,\n isTableOption: true,\n isColVisible: false,\n isLabel: true,\n preventFiltering: this.advFilterPreventFilteringLabels,\n preventColToggle: this.advFilterHideLabelsAsCols\n };\n\n // maintain current visibility of cols if they exist already\n if (this.columnOptions?.length) {\n const opt = this.columnOptions.find((colOpt) => colOpt.name === label && colOpt.label === label);\n\n if (opt) {\n res.isColVisible = opt.isColVisible;\n }\n }\n\n if (!rowLabels.filter((row) => row.label === label).length) {\n rowLabels.push(res);\n }\n });\n }\n });\n }\n\n opts = headerProps.concat(rowLabels);\n\n // add find on all cols option...\n if (opts.length) {\n opts.unshift({\n name: ADV_FILTER_ALL_COLS_LABEL,\n label: ADV_FILTER_ALL_COLS_LABEL,\n value: ADV_FILTER_ALL_COLS_VALUE,\n isFilter: true,\n isTableOption: false\n });\n }\n\n return opts;\n },\n addAdvancedFilter() {\n // set new advanced filter\n if (this.advFilterSelectedProp && this.advFilterSearchTerm) {\n this.advancedFilteringValues.push({\n prop: this.advFilterSelectedProp,\n value: this.advFilterSearchTerm,\n label: this.advFilterSelectedLabel\n });\n\n this.eventualSearchQuery = this.advancedFilteringValues;\n\n this.advancedFilteringVisibility = false;\n this.advFilterSelectedProp = DEFAULT_ADV_FILTER_COLS_VALUE;\n this.advFilterSelectedLabel = ADV_FILTER_ALL_COLS_LABEL;\n this.advFilterSearchTerm = null;\n }\n },\n clearAllAdvancedFilters() {\n this.advancedFilteringValues = [];\n this.eventualSearchQuery = this.advancedFilteringValues;\n\n this.advancedFilteringVisibility = false;\n this.advFilterSelectedProp = DEFAULT_ADV_FILTER_COLS_VALUE;\n this.advFilterSelectedLabel = ADV_FILTER_ALL_COLS_LABEL;\n this.advFilterSearchTerm = null;\n },\n clearAdvancedFilter(index) {\n this.advancedFilteringValues.splice(index, 1);\n this.eventualSearchQuery = this.advancedFilteringValues;\n },\n onClickOutside(event) {\n const advFilterBox = this.$refs['advanced-filter-group'];\n\n if (!advFilterBox || advFilterBox.contains(event.target)) {\n return;\n }\n this.advancedFilteringVisibility = false;\n },\n updateColsOptions() {\n this.columnOptions = this.setColsOptions();\n },\n\n // cols visibility\n changeColVisibility(colData) {\n const index = this.columnOptions.findIndex((col) => col.label === colData.label);\n\n if (index !== -1) {\n this.columnOptions[index].isColVisible = colData.value;\n }\n },\n },\n};\n","\n\n\n\n \n\n \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=940c6fb8&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=940c6fb8&prod&lang=scss&scoped=true\"\nimport style1 from \"./index.vue?vue&type=style&index=1&id=940c6fb8&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"940c6fb8\",\n null\n \n)\n\nexport default component.exports","import { CATTLE_PUBLIC_ENDPOINTS } from '@shell/config/labels-annotations';\nimport { NODE as NODE_TYPE } from '@shell/config/types';\nimport { COLUMN_BREAKPOINTS } from '@shell/components/SortableTable/index.vue';\n\n// Note: 'id' is always the last sort, so you don't have to specify it here.\n\nexport const STATE = {\n name: 'state',\n labelKey: 'tableHeaders.state',\n sort: ['stateSort', 'nameSort'],\n value: 'stateDisplay',\n getValue: (row) => row.stateDisplay,\n width: 100,\n default: 'unknown',\n formatter: 'BadgeStateFormatter',\n};\n\nexport const DOWNLOAD = {\n name: 'download',\n labelKey: 'tableHeaders.download',\n value: 'download',\n canBeVariable: true,\n align: 'right',\n};\n\n// This header is used for nodes in\n// both Cluster Explorer and Cluster Management.\nexport const INTERNAL_EXTERNAL_IP = {\n // @TODO this is called internal/external but displays external/internal (╯°□°)╯︵ ┻━┻\n name: 'internal-external-ip',\n labelKey: 'tableHeaders.internalExternalIp',\n search: ['externalIp', 'internalIp'],\n sort: ['externalIp', 'internalIp'],\n formatter: 'InternalExternalIP'\n};\n\nexport const NAME = {\n name: 'name',\n labelKey: 'tableHeaders.name',\n value: 'nameDisplay',\n getValue: (row) => row.nameDisplay,\n sort: ['nameSort'],\n formatter: 'LinkDetail',\n canBeVariable: true,\n};\n\nexport const LOGGING_OUTPUT_PROVIDERS = {\n name: 'logging-output-providers',\n labelKey: 'tableHeaders.loggingOutputProviders',\n value: 'providersDisplay',\n sort: ['providersSortable'],\n formatter: 'List',\n};\n\nexport const SIMPLE_NAME = {\n name: 'name',\n labelKey: 'tableHeaders.simpleName',\n value: 'name',\n sort: ['name'],\n width: 200,\n canBeVariable: true,\n};\n\nexport const EFFECT = {\n name: 'effect',\n labelKey: 'tableHeaders.effect',\n value: 'effect',\n sort: ['effect'],\n};\n\nexport const STORAGE_CLASS_PROVISIONER = {\n name: 'storage_class_provisioner',\n labelKey: 'tableHeaders.storage_class_provisioner',\n value: 'provisionerDisplay',\n sort: ['provisioner'],\n};\n\nexport const STORAGE_CLASS_DEFAULT = {\n name: 'storage_class_default',\n labelKey: 'tableHeaders.default',\n value: 'isDefault',\n sort: ['isDefault'],\n formatter: 'Checked',\n};\n\nexport const PERSISTENT_VOLUME_SOURCE = {\n name: 'persistent_volume_source',\n labelKey: 'tableHeaders.persistentVolumeSource',\n value: 'source',\n sort: ['provisioner'],\n};\n\nexport const PERSISTENT_VOLUME_CLAIM = {\n name: 'persistent-volume-claim',\n labelKey: 'tableHeaders.persistentVolumeClaim',\n sort: ['nameSort'],\n value: 'claimName',\n formatter: 'LinkDetail',\n formatterOpts: { reference: 'claim.detailLocation' },\n};\n\nexport const OUTPUT = {\n name: 'localOutputRefs',\n labelKey: 'tableHeaders.output',\n value: 'outputs',\n sort: ['outputsSortable'],\n formatter: 'ListLink',\n formatterOpts: { options: { internal: true } },\n};\n\nexport const CONFIGURED_PROVIDERS = {\n name: 'providers',\n labelKey: 'tableHeaders.providers',\n value: 'providersDisplay',\n sort: 'providersSortable',\n formatter: 'List'\n};\n\nexport const CLUSTER_OUTPUT = {\n ...OUTPUT,\n name: 'globalOutputRefs',\n value: 'clusterOutputs',\n sort: ['clusterOutputsSortable'],\n labelKey: 'tableHeaders.clusterOutput',\n};\n\nexport const ID_UNLINKED = {\n name: 'id',\n labelKey: 'tableHeaders.id',\n value: 'id',\n sort: ['id'],\n canBeVariable: true,\n};\n\nexport const NAME_UNLINKED = {\n name: 'name',\n labelKey: 'tableHeaders.nameUnlinked',\n value: 'nameDisplay',\n sort: ['nameSort'],\n canBeVariable: true,\n};\n\nexport const NAMESPACE = {\n name: 'namespace',\n labelKey: 'tableHeaders.namespace',\n value: 'namespace',\n getValue: (row) => row.namespace,\n sort: 'namespace',\n dashIfEmpty: true,\n};\n\nexport const NODE = {\n name: 'node',\n labelKey: 'tableHeaders.node',\n value: 'spec.nodeName',\n getValue: (row) => row.spec?.nodeName,\n sort: 'spec.nodeName',\n formatter: 'LinkName',\n formatterOpts: { type: NODE_TYPE },\n};\n\nexport const NODE_NAME = {\n name: 'nodeName',\n labelKey: 'tableHeaders.nodeName',\n sort: 'name',\n value: 'name',\n getValue: (row) => row.name,\n formatter: 'LinkDetail',\n};\n\nexport const ROLES = {\n name: 'roles',\n labelKey: 'tableHeaders.roles',\n sort: 'roles',\n value: 'roles'\n};\n\nexport const VERSION = {\n name: 'version',\n labelKey: 'tableHeaders.version',\n sort: 'version',\n value: 'version',\n getValue: (row) => row.version\n};\n\nexport const CPU = {\n name: 'cpu',\n labelKey: 'tableHeaders.cpu',\n sort: 'cpuUsage',\n search: false,\n value: 'cpuUsagePercentage',\n formatter: 'PercentageBar',\n width: 120,\n};\n\nexport const RAM = {\n name: 'ram',\n labelKey: 'tableHeaders.ram',\n sort: 'ramUsage',\n search: false,\n value: 'ramUsagePercentage',\n formatter: 'PercentageBar',\n width: 120,\n};\n\nexport const PRINCIPAL = {\n name: 'principal',\n labelKey: 'tableHeaders.name',\n sort: 'principal.loginName',\n value: 'principalId',\n formatter: 'Principal',\n};\n\nexport const PODS = {\n name: 'pods',\n labelKey: 'tableHeaders.pods',\n sort: 'podConsumed',\n search: false,\n value: (row) => row.podConsumedUsage,\n formatter: 'PercentageBar',\n width: 120,\n};\n\nexport const AGE = {\n name: 'age',\n labelKey: 'tableHeaders.age',\n value: 'creationTimestamp',\n getValue: (row) => row.creationTimestamp,\n sort: 'creationTimestamp:desc',\n search: false,\n formatter: 'LiveDate',\n width: 100,\n align: 'left'\n};\n\nexport const AGE_NORMAN = {\n ...AGE,\n getValue: (row) => row.created,\n value: 'created',\n sort: 'created:desc',\n};\n\nexport const CREATION_DATE = {\n name: 'date',\n labelKey: 'tableHeaders.date',\n value: 'metadata.creationTimestamp',\n sort: ['date'],\n formatter: 'Date'\n};\n\nexport const DESCRIPTION = {\n name: 'description',\n labelKey: 'tableHeaders.description',\n align: 'left',\n sort: ['description'],\n width: 300,\n};\n\nexport const DURATION = {\n name: 'duration',\n labelKey: 'tableHeaders.duration',\n value: 'duration.value',\n sort: 'duration.seconds',\n formatter: 'LiveDuration',\n};\n\nexport const IMAGE_NAME = {\n name: 'image',\n labelKey: 'tableHeaders.image',\n value: 'image',\n sort: ['image', 'nameSort'],\n formatter: 'ImageName',\n};\n\nexport const POD_IMAGES = {\n name: 'pod_images',\n labelKey: 'tableHeaders.podImages',\n value: 'imageNames',\n getValue: (row) => row.imageNames,\n sort: 'imageNames',\n // search: 'imageNames',\n formatter: 'PodImages'\n};\n\nexport const POD_RESTARTS = {\n name: 'pod_restarts',\n labelKey: 'tableHeaders.podRestarts',\n formatter: 'LivePodRestarts',\n delayLoading: true,\n value: 'restartCount',\n getValue: (row) => row.restartCount,\n // This column is expensive to compute, so don't make it searchable\n search: false,\n liveUpdates: true\n};\n\nexport const ENDPOINTS = {\n name: 'endpoint',\n labelKey: 'tableHeaders.endpoints',\n value: 'status.endpoints',\n formatter: 'Endpoints',\n width: 60,\n align: 'center',\n};\n\nexport const SCALE = {\n name: 'scale',\n labelKey: 'tableHeaders.scale',\n value: 'scales.desired',\n sort: ['scales.desired', 'nameSort'],\n formatter: 'Scale',\n width: 60,\n align: 'center',\n};\n\nexport const SIMPLE_SCALE = {\n name: 'simple-scale',\n labelKey: 'tableHeaders.simpleScale',\n value: 'scale',\n sort: ['scale']\n};\n\nexport const WEIGHT = {\n name: 'weight',\n labelKey: 'tableHeaders.weight',\n value: 'status.computedWeight',\n sort: 'status.computedWeight',\n formatter: 'Weight',\n width: 60,\n align: 'center',\n};\n\nexport const SUCCESS = {\n name: 'success',\n labelKey: 'tableHeaders.success',\n value: 'success',\n width: 100,\n align: 'right',\n};\n\nexport const REQ_RATE = {\n name: 'req-rate',\n labelKey: 'tableHeaders.reqRate',\n value: 'rps',\n width: 100,\n align: 'right',\n};\n\nexport const P95 = {\n name: 'p95',\n labelKey: 'tableHeaders.p95',\n value: 'p95',\n width: 100,\n align: 'right',\n};\n\nexport const KEYS = {\n name: 'keys',\n labelKey: 'tableHeaders.keys',\n sort: false,\n value: 'keysDisplay',\n};\n\nexport const TARGET_KIND = {\n name: 'target-kind',\n labelKey: 'tableHeaders.targetKind',\n value: 'kindDisplay',\n width: 100,\n};\n\nexport const TARGET = {\n name: 'target',\n labelKey: 'tableHeaders.target',\n value: 'targetDisplay',\n};\n\nexport const USERNAME = {\n name: 'username',\n labelKey: 'tableHeaders.username',\n value: 'username',\n dashIfEmpty: true,\n sort: 'username',\n};\n\nexport const USER_DISPLAY_NAME = {\n name: 'name',\n labelKey: 'tableHeaders.name',\n value: 'nameDisplay',\n sort: ['nameSort'],\n dashIfEmpty: true,\n};\n\nexport const USER_PROVIDER = {\n name: 'provider',\n labelKey: 'tableHeaders.provider',\n value: 'providerDisplay',\n dashIfEmpty: true,\n sort: 'providerDisplay',\n};\n\nexport const USER_ID = {\n name: 'user-id',\n labelKey: 'tableHeaders.userId',\n value: 'id',\n formatter: 'LinkDetail',\n canBeVariable: true,\n sort: 'id',\n};\n\nexport const ADDRESS = {\n name: 'address',\n labelKey: 'tableHeaders.address',\n value: 'address',\n sort: ['address'],\n};\n\nexport const SIMPLE_TYPE = {\n name: 'type',\n labelKey: 'tableHeaders.simpleType',\n value: 'type',\n sort: ['type'],\n width: 175,\n};\n\nexport const IMAGE_SIZE = {\n name: 'sizeBytes',\n labelKey: 'tableHeaders.imageSize',\n value: 'sizeBytes',\n sort: ['sizeBytes'],\n formatter: 'Si'\n};\n\nexport const TYPE = {\n name: 'type',\n labelKey: 'tableHeaders.type',\n value: 'typeDisplay',\n getValue: (row) => row.typeDisplay,\n sort: ['typeDisplay'],\n width: 100,\n};\n\nexport const SUB_TYPE = {\n name: 'subType',\n labelKey: 'tableHeaders.subType',\n value: 'subTypeDisplay',\n sort: ['subTypeDisplay'],\n width: 120,\n};\n\nexport const EVENT_TYPE = {\n name: 'type',\n labelKey: 'tableHeaders.type',\n value: 'eventType',\n sort: 'eventType',\n};\n\nexport const STATUS = {\n name: 'status',\n labelKey: 'tableHeaders.status',\n value: 'status',\n sort: ['status'],\n width: 175\n};\nexport const LAST_SEEN_TIME = {\n name: 'lastSeen',\n labelKey: 'tableHeaders.lastSeen',\n value: 'lastSeen',\n sort: 'lastTimestamp:desc',\n tooltip: 'tableHeaders.lastSeenTooltip'\n};\nexport const LAST_HEARTBEAT_TIME = {\n name: 'lastHeartbeatTime',\n labelKey: 'tableHeaders.lastSeen',\n value: 'lastHeartbeatTime',\n sort: ['lastHeartbeatTime'],\n formatter: 'LiveDate',\n width: 175\n};\nexport const REASON = {\n name: 'reason',\n labelKey: 'tableHeaders.reason',\n value: 'reason',\n sort: ['reason']\n};\nexport const OBJECT = {\n name: 'object',\n labelKey: 'tableHeaders.object',\n value: 'involvedObject',\n sort: ['involvedObject.kind', 'involvedObject.name'],\n canBeVariable: true,\n formatter: 'InvolvedObjectLink',\n};\nexport const RECLAIM_POLICY = {\n name: 'reclaimPolicy',\n labelKey: 'tableHeaders.reclaimPolicy',\n value: 'spec.persistentVolumeReclaimPolicy',\n sort: ['spec.persistentVolumeReclaimPolicy']\n};\nexport const PV_REASON = {\n name: 'pvReason',\n labelKey: 'tableHeaders.reason',\n value: 'status.reason',\n sort: ['status.reason']\n};\n\nexport const MESSAGE = {\n name: 'message',\n labelKey: 'tableHeaders.message',\n value: 'message',\n sort: ['message']\n};\nexport const KEY = {\n name: 'key',\n labelKey: 'tableHeaders.key',\n value: 'key',\n sort: ['key']\n};\nexport const VALUE = {\n name: 'value',\n labelKey: 'tableHeaders.value',\n value: 'value',\n sort: ['value'],\n};\n\nexport const BUILT_IN = {\n name: 'builtIn',\n labelKey: 'tableHeaders.builtIn',\n value: 'builtIn',\n sort: ['builtIn'],\n align: 'center',\n formatter: 'IconIsDefault'\n};\n\nexport const CLUSTER_CREATOR_DEFAULT = {\n name: 'default',\n labelKey: 'tableHeaders.clusterCreatorDefault',\n value: 'default',\n sort: ['Default'],\n align: 'center',\n formatter: 'IconIsDefault'\n};\n\nexport const RBAC_DEFAULT = {\n name: 'default',\n labelKey: 'tableHeaders.default',\n value: 'default',\n formatter: 'Checked',\n sort: ['default']\n};\n\nexport const RBAC_BUILTIN = {\n name: 'builtin',\n labelKey: 'tableHeaders.builtin',\n value: 'builtin',\n formatter: 'Checked',\n sort: ['builtin']\n};\n\nexport const RESOURCE = {\n name: 'resource',\n labelKey: 'tableHeaders.resource',\n value: 'resource',\n sort: ['resourceNames']\n};\n\nexport const API_GROUP = {\n name: 'apigroups',\n labelKey: 'tableHeaders.apiGroup',\n value: 'apiGroups',\n sort: ['apiGroups']\n};\n\nexport const INGRESS_CLASS = {\n name: 'ingressClassName',\n labelKey: 'tableHeaders.ingressClass',\n value: `$['spec']['ingressClassName']`,\n sort: `$['spec']['ingressClassName']`,\n};\n\nexport const INGRESS_DEFAULT_BACKEND = {\n name: 'ingressDefaultBackend',\n labelKey: 'tableHeaders.ingressDefaultBackend',\n value: 'hasDefaultBackend',\n sort: ['hasDefaultBackend:desc'],\n formatter: 'Checked',\n width: 75,\n align: 'center'\n};\n\nexport const INGRESS_TARGET = {\n name: 'ingressTarget',\n labelKey: 'tableHeaders.ingressTarget',\n value: \"$['spec']\",\n formatter: 'IngressTarget',\n sort: \"$['spec']['rules'][0].host\",\n};\n\nexport const SPEC_TYPE = {\n name: 'type',\n labelKey: 'tableHeaders.type',\n value: `$['spec']['type']`,\n sort: `$['spec']['type']`,\n formatter: 'ServiceType',\n};\n\nexport const TARGET_PORT = {\n formatter: 'ServiceTargets',\n labelKey: 'tableHeaders.targetPort',\n name: 'targetPort',\n sort: `$['spec']['targetPort']`,\n value: `$['spec']['targetPort']`,\n};\n\nexport const SELECTOR = {\n formatter: 'KeyValue',\n name: 'selector',\n labelKey: 'tableHeaders.selector',\n value: `$['spec']['selector']`,\n sort: `$['spec']['selector']`,\n};\n\nexport const CHART = {\n name: 'chart',\n labelKey: 'tableHeaders.chart',\n value: 'chartDisplay',\n sort: ['chartDisplay', 'versionSort'],\n};\n\nexport const CHART_UPGRADE = {\n name: 'upgrade',\n labelKey: 'tableHeaders.upgrade',\n value: 'upgradeAvailable',\n sort: 'upgradeAvailableSort:desc',\n dashIfEmpty: true,\n};\n\nexport const RESOURCES = {\n name: 'resources',\n labelKey: 'tableHeaders.resources',\n value: 'spec.resources.length',\n sort: 'spec.resources.length',\n width: 100,\n};\n\nexport const URL = {\n name: 'url',\n labelKey: 'tableHeaders.url',\n value: 'spec.url',\n sort: 'spec.url',\n};\n\nexport const LAST_UPDATED = {\n name: 'lastUpdated',\n labelKey: 'tableHeaders.lastUpdated',\n value: 'lastTransitionTime',\n formatter: 'LiveDate',\n formatterOpts: { addSuffix: true },\n sort: ['lastTransitionTime']\n};\n\nexport const WORKSPACE = {\n name: 'workspace',\n label: 'Workspace',\n value: 'metadata.namespace',\n sort: ['metadata.namespace', 'nameSort'],\n};\n\nexport const WORKLOAD_IMAGES = {\n ...POD_IMAGES,\n value: '',\n breakpoint: COLUMN_BREAKPOINTS.LAPTOP\n};\n\nexport const WORKLOAD_ENDPOINTS = {\n name: 'workloadEndpoints',\n labelKey: 'tableHeaders.endpoints',\n value: `$['metadata']['annotations']['${ CATTLE_PUBLIC_ENDPOINTS }']`,\n getValue: (row) => row.metadata?.annotations?.[CATTLE_PUBLIC_ENDPOINTS],\n formatter: 'Endpoints',\n dashIfEmpty: true,\n breakpoint: COLUMN_BREAKPOINTS.DESKTOP,\n maxPageSize: 25, // Hide this column when the page size is bigger than 25\n};\n\nexport const WORKLOAD_HEALTH_SCALE = {\n name: 'workloadHealthScale',\n labelKey: 'tableHeaders.health',\n formatter: 'WorkloadHealthScale',\n getValue: () => undefined,\n width: 150,\n skipSelect: true,\n delayLoading: true,\n // This column is expensive to compute, so don't make it searchable\n search: false,\n liveUpdates: true,\n};\n\nexport const FLEET_SUMMARY = {\n name: 'summary',\n labelKey: 'tableHeaders.resources',\n value: 'status.resourceCounts',\n sort: false,\n search: false,\n formatter: 'FleetSummaryGraph',\n align: 'center',\n width: 100,\n};\n\nexport const FLEET_REPO_CLUSTER_SUMMARY = {\n name: 'clusterSummary',\n labelKey: 'tableHeaders.clusterResources',\n value: 'status.resourceCounts',\n sort: false,\n search: false,\n formatter: 'FleetClusterSummaryGraph',\n align: 'center',\n width: 100,\n};\n\nexport const FLEET_REPO_PER_CLUSTER_STATE = {\n name: 'perClusterState',\n labelKey: 'tableHeaders.repoPerClusterState',\n tooltip: 'tableHeaders.repoPerClusterStateTooltip',\n sort: ['stateSort', 'nameSort'],\n width: 100,\n default: 'unknown',\n formatter: 'BadgeStateFormatter',\n formatterOpts: { arbitrary: true }\n\n};\n\nexport const APP_SUMMARY = {\n name: 'summary',\n labelKey: 'tableHeaders.resources',\n value: 'deployedResources.length',\n sort: false,\n search: false,\n formatter: 'AppSummaryGraph',\n align: 'center',\n width: 100,\n};\n\nexport const CONSTRAINT_VIOLATION_CONSTRAINT_LINK = {\n name: 'Constraint',\n labelKey: 'tableHeaders.constraint',\n value: 'constraintLink',\n sort: `constraintLink.text`,\n formatter: 'Link',\n formatterOpts: { options: { internal: true } },\n};\n\nexport const CONSTRAINT_VIOLATION_RESOURCE_LINK = {\n name: 'Name',\n labelKey: 'tableHeaders.name',\n value: 'resourceLink',\n sort: `resourceLink.text`,\n search: `resourceLink.text`,\n formatter: 'Link',\n formatterOpts: { options: { internal: true } },\n};\n\nexport const CONSTRAINT_VIOLATION_TYPE = {\n name: 'Type',\n labelKey: 'tableHeaders.type',\n value: `kind`,\n sort: `kind`\n};\n\nexport const CONSTRAINT_VIOLATION_NAMESPACE = {\n name: 'Namespace',\n labelKey: 'tableHeaders.namespace',\n value: `namespace`,\n sort: `namespace`,\n search: `namespace`,\n};\n\nexport const CONSTRAINT_VIOLATION_MESSAGE = {\n name: 'Message',\n labelKey: 'tableHeaders.message',\n value: `message`,\n sort: `message`\n};\n\nexport const CONSTRAINT_VIOLATION_TEMPLATE_LINK = {\n name: 'TemplateLink',\n labelKey: 'tableHeaders.template',\n value: `templateLink`,\n sort: `templateLink.text`,\n formatter: 'Link',\n formatterOpts: { options: { internal: true } },\n};\n\nexport const CONSTRAINT_VIOLATION_COUNT = {\n name: 'Count',\n labelKey: 'tableHeaders.count',\n value: `count`,\n sort: `count`,\n formatter: 'QualityText',\n formatterOpts: {\n qualityFn(value) {\n if (value <= 10) {\n return 'success';\n }\n\n if (value <= 20) {\n return 'warning';\n }\n\n return 'error';\n }\n }\n};\n\nexport const RECEIVER_PROVIDERS = {\n name: 'receiver-providers',\n label: 'Configured Providers',\n value: 'receiverTypes',\n sort: 'receiverTypes',\n formatter: 'List',\n};\n\nexport const CONFIGURED_RECEIVER = {\n name: 'receiver',\n label: 'Configured Receiver',\n value: 'receiverLink',\n sort: 'receiverLink.text',\n formatter: 'Link',\n formatterOpts: { options: { internal: true } },\n};\n\nexport const GROUP_NAME = {\n name: 'group-name',\n labelKey: 'tableHeaders.groupName',\n value: 'id',\n sort: ['name'],\n search: ['name'],\n formatter: 'Principal',\n width: 350\n};\n\nexport const GROUP_ROLE_NAME = {\n name: 'group-role-names',\n labelKey: 'tableHeaders.groupRoleNames',\n value: 'id',\n formatter: 'PrincipalGroupBindings',\n};\n\nexport const HPA_REFERENCE = {\n name: 'reference',\n labelKey: 'tableHeaders.hpaReference',\n value: 'spec.scaleTargetRef.name',\n sort: 'spec.scaleTargetRef.name',\n};\n\nexport const MIN_REPLICA = {\n name: 'minimum-replica',\n labelKey: 'tableHeaders.minReplicas',\n value: 'spec.minReplicas',\n sort: 'spec.minReplicas',\n};\n\nexport const MAX_REPLICA = {\n name: 'maximum-replica',\n labelKey: 'tableHeaders.maxReplicas',\n value: 'spec.maxReplicas',\n sort: 'spec.maxReplicas',\n};\n\nexport const CURRENT_REPLICA = {\n name: 'current-replica',\n labelKey: 'tableHeaders.currentReplicas',\n value: 'status.currentReplicas',\n sort: 'status.currentReplicas',\n};\n\nexport const EXPIRY_STATE = {\n ...STATE,\n value: '$',\n formatter: 'LiveExpiryBadgeState',\n};\n\nexport const ACCESS_KEY = {\n name: 'id',\n labelKey: 'tableHeaders.accessKey',\n align: 'left',\n sort: ['name'],\n width: 200,\n};\n\nexport const SCOPE = {\n name: 'scope',\n value: 'clusterName',\n labelKey: 'tableHeaders.scope',\n dashIfEmpty: true,\n align: 'left',\n sort: ['scope'],\n width: 100,\n};\n\nexport const SCOPE_NORMAN = {\n ...SCOPE,\n value: 'clusterId',\n sort: ['clusterId'],\n};\n\nexport const EXPIRES = {\n name: 'expires',\n value: 'expiresAt',\n labelKey: 'tableHeaders.expires',\n align: 'left',\n sort: ['expiresAt'],\n width: 200,\n formatter: 'LiveExpiryDate'\n};\n\nexport const RESTART = {\n name: 'restart',\n labelKey: 'tableHeaders.restart',\n value: 'restartRequired',\n sort: ['restartRequired', 'nameSort'],\n formatter: 'Checked',\n width: 75,\n align: 'center'\n};\n\nexport const ROLE = {\n name: 'role',\n value: 'roleDisplay',\n labelKey: 'tableHeaders.role',\n};\n\nexport const FEATURE_DESCRIPTION = {\n name: 'description',\n labelKey: 'tableHeaders.description',\n value: 'status.description',\n align: 'left',\n sort: ['status.description'],\n formatter: 'Translate',\n formatterOpts: { prefix: 'featureFlags.description' },\n};\n\nexport const STATE_NORMAN = {\n name: 'state',\n labelKey: 'tableHeaders.state',\n sort: ['stateSort', 'nameSort'],\n value: 'stateDisplay',\n width: 100,\n default: 'unknown',\n formatter: 'BadgeStateFormatter',\n};\n\nexport const KUBE_NODE_OS = {\n name: 'operating-system',\n labelKey: 'tableHeaders.operatingSystem',\n value: 'status.nodeInfo.operatingSystem',\n sort: ['status.nodeInfo.operatingSystem'],\n formatter: 'Capitalize'\n};\n\nexport const MACHINE_NODE_OS = {\n name: 'operating-system',\n labelKey: 'tableHeaders.operatingSystem',\n value: 'operatingSystem',\n sort: ['operatingSystem'],\n formatter: 'Capitalize',\n dashIfEmpty: true,\n};\n\nexport const MANAGEMENT_NODE_OS = {\n name: 'operating-system',\n labelKey: 'tableHeaders.operatingSystem',\n value: 'status.internalNodeStatus.nodeInfo.operatingSystem',\n sort: ['status.internalNodeStatus.nodeInfo.operatingSystem'],\n formatter: 'Capitalize',\n dashIfEmpty: true,\n};\n\n// FLEET\n\nexport const FLEET_BUNDLE_LAST_UPDATED = {\n name: 'lastUpdated',\n labelKey: 'tableHeaders.lastUpdated',\n value: 'lastUpdateTime',\n formatter: 'LiveDate',\n formatterOpts: { addSuffix: true },\n sort: ['lastUpdateTime']\n};\n\nexport const FLEET_BUNDLE_TYPE = {\n name: 'bundleType',\n labelKey: 'tableHeaders.fleetBundleType',\n value: 'bundleType',\n sort: ['bundleType'],\n width: 100,\n};\n\nexport const FLEET_REPO_CLUSTERS_READY = {\n name: 'clustersReady',\n labelKey: 'tableHeaders.clustersReady',\n value: 'status.readyClusters',\n sort: 'status.readyClusters',\n search: false,\n};\n\nexport const FLEET_REPO_TARGET = {\n name: 'target',\n labelKey: 'tableHeaders.target',\n value: 'targetInfo.modeDisplay',\n sort: ['targetInfo.modeDisplay', 'targetInfo.cluster', 'targetInfo.clusterGroup'],\n\n};\n\nexport const FLEET_REPO = {\n name: 'repo',\n labelKey: 'tableHeaders.repo',\n value: 'repoDisplay',\n sort: 'repoDisplay',\n search: ['spec.repo', 'status.commit'],\n};\n\nexport const UI_PLUGIN_CATALOG = [\n {\n name: 'state',\n labelKey: 'tableHeaders.state',\n sort: ['stateSort', 'nameSort'],\n value: 'state',\n width: 100,\n default: 'unknown',\n formatter: 'BadgeStateFormatter',\n formatterOpts: { arbitrary: true }\n },\n {\n name: 'name',\n labelKey: 'tableHeaders.name',\n value: 'name',\n sort: ['nameSort'],\n formatter: 'LinkDetail'\n },\n {\n name: 'image',\n sort: ['image'],\n labelKey: 'plugins.manageCatalog.headers.image.label',\n value: 'image'\n },\n {\n name: 'repository',\n sort: ['repository'],\n labelKey: 'plugins.manageCatalog.headers.repository.label',\n value: 'repo.metadata.name'\n }\n];\n","import { SETTING } from '@shell/config/settings';\nimport { COUNT, MANAGEMENT } from '@shell/config/types';\nimport { GC_DEFAULTS, GC_PREFERENCES } from './gc-types';\n\nclass GarbageCollect {\n private static ENABLE_DEBUG_LOGGING = false;\n\n /**\n * Don't run GC if it's been run within 5 seconds\n */\n private static GC_RE_RUN_GAP = 1000 * 5;\n\n private cachedGcPrefs: GC_PREFERENCES = GC_DEFAULTS;\n\n private cachedGcPrefsStamp = '';\n\n private debugLog = (...args: any) => {\n if (GarbageCollect.ENABLE_DEBUG_LOGGING) {\n console.debug('GC', ...args); // eslint-disable-line no-console\n }\n };\n\n /**\n * Time the GC last ran\n */\n private gcLastRun: number | null = 0;\n\n /**\n * To avoid JSON.parse on the `ui-performance` setting keep a local cache\n */\n private getUiPerfGarbageCollection = (rootState: any) => {\n const uiPerfSetting = rootState.management.types[MANAGEMENT.SETTING]?.list.find((s: any) => s.id === SETTING.UI_PERFORMANCE);\n\n if (!uiPerfSetting || !uiPerfSetting.value) {\n // Could be in the process of logging out\n return undefined;\n }\n const stamp = `${ uiPerfSetting.metadata.generation }-${ uiPerfSetting.metadata.resourceVersion }`;\n\n if (this.cachedGcPrefsStamp !== stamp) {\n this.debugLog(`Updating ${ SETTING.UI_PERFORMANCE } cache`);\n this.cachedGcPrefsStamp = stamp;\n const uiPerfSettingParsed = JSON.parse(uiPerfSetting.value);\n\n this.cachedGcPrefs = uiPerfSettingParsed.garbageCollection;\n }\n\n return this.cachedGcPrefs;\n };\n\n /**\n * The last time a resource was accessed by either find or getters style functions\n */\n private lastAccessedCache: {\n [store: string]: {\n [type: string]: number;\n }\n } = {}\n\n /**\n * Track when a logged in route changes.\n */\n private lastRouteChange = 0;\n\n // ------------- GC Enabled ---------------------\n\n gcEnabledAll(pseudoCtx: any, type: string) {\n return this.gcEnabledForStore(pseudoCtx.state) && this.gcEnabledSetting(pseudoCtx) && this.gcEnabledForType(pseudoCtx, type);\n }\n\n gcEnabledSetting(pseudoCtx: any) {\n const { rootState } = pseudoCtx;\n\n // Don't use a getter... as we'll end up triggering ourselves again\n const uiPerfGarbageCollection = this.getUiPerfGarbageCollection(rootState);\n\n return uiPerfGarbageCollection?.enabled;\n }\n\n gcEnabledForStore(state: any) {\n return state?.config?.supportsGc;\n }\n\n /**\n * Store can require certain types are not GC'd (for example `cluster` and `schema`s, `counts`, etc)\n */\n gcEnabledForType(pseudoCtx: any, type: string) {\n const { getters } = pseudoCtx;\n\n if (!type || getters.gcIgnoreTypes[type]) {\n return false;\n }\n\n return true;\n }\n\n gcEnabledInterval(pseudoCtx: any) {\n const { rootState } = pseudoCtx;\n\n // Don't use a getter... as we'll end up triggering ourselves again\n const uiPerfGarbageCollection = this.getUiPerfGarbageCollection(rootState);\n\n return {\n enabled: uiPerfGarbageCollection?.enabledInterval,\n interval: uiPerfGarbageCollection?.interval || 0\n };\n }\n\n gcEnabledRoute(pseudoCtx: any) {\n const { rootState } = pseudoCtx;\n\n // Don't use a getter... as we'll end up triggering ourselves again\n const uiPerfGarbageCollection = this.getUiPerfGarbageCollection(rootState);\n\n return uiPerfGarbageCollection?.enabledOnNavigate;\n }\n\n // ------------- GC (actual) ---------------------\n\n /**\n * Remove stale resource types from the store and stop watching them for changes\n */\n garbageCollect(ctx: any, ignoreTypes: {[type: string]: boolean} = {}) {\n const now = new Date().getTime();\n\n // Is gc currently running OR has run in the past GC_RE_RUN_GAP return early\n if (this.gcLastRun === null || now - this.gcLastRun < GarbageCollect.GC_RE_RUN_GAP) {\n this.debugLog('Skipping (running or recently run)', this.gcLastRun ? new Date(this.gcLastRun) : 'running');\n\n return;\n }\n\n this.gcLastRun = null;\n const gcd: {[type: string]: number} = {};\n\n try {\n const { getters, rootState, dispatch } = ctx;\n\n if (!rootState.clusterReady) {\n this.debugLog('Skipping (cluster not ready)');\n this.gcLastRun = new Date().getTime();\n\n return ;\n }\n this.debugLog(`------ Started ------`);\n\n const uiPerfGarbageCollection = this.getUiPerfGarbageCollection(rootState);\n\n if (!uiPerfGarbageCollection) {\n return ;\n }\n const maxAge = uiPerfGarbageCollection.ageThreshold * 1000;\n const maxCount = uiPerfGarbageCollection.countThreshold;\n\n this.debugLog(`Max Age: ${ maxAge }. Max Count: ${ maxCount }`);// , 'Cache', this.lastAccessedCache\n\n const store = ctx.state.config.namespace;\n\n // this.debugLog('Cache', this.lastAccessedCache);\n\n Object.entries((this.lastAccessedCache[store] || {})).forEach(([type, lastAccessed]) => {\n if (!lastAccessed) {\n // There's no last accessed time... gc is probably disabled in another way\n this.debugLog(`${ type }: Skipping (no accessed time)`);\n\n return;\n }\n\n if (!this.gcEnabledForType(ctx, type)) {\n // This specific store is telling us to ignore the type (for example `cluster` store will not GC schema's, counts, etc)\n this.debugLog(`${ type }: Skipping (type ignored by store)`);\n\n return;\n }\n\n if (ignoreTypes[type]) {\n // We're going to a place that needs the resource\n this.debugLog(`${ type }: Skipping (navigating to type)`);\n\n return;\n }\n\n if (now - lastAccessed <= maxAge) {\n // The resource was recently accessed\n\n this.debugLog(`${ type }: Skipping (recently accessed)`);\n\n return;\n }\n\n if (this.lastRouteChange !== undefined && this.lastRouteChange < lastAccessed ) {\n // The resource is being used in the current route/page\n this.debugLog(`${ type }: Skipping (used in current route/page)`);\n\n return;\n }\n\n const countFromResource = getters.all(COUNT)[0].counts[type]?.summary.count;\n const currentCount = countFromResource ?? 0;\n\n if (currentCount === undefined || currentCount < maxCount) {\n // There's too few resources, we might as well keep them to avoid a network request when we need them again\n this.debugLog(`${ type }: Skipping (too few of resource)`);\n\n return;\n }\n\n this.debugLog(`${ type }: Removing from store`);\n dispatch('forgetType', type);\n gcd[type] = currentCount;\n });\n\n this.gcLastRun = new Date().getTime();\n } catch (e) {\n this.debugLog(`: Error`, e);\n this.gcLastRun = new Date().getTime();\n }\n\n if (Object.keys(gcd).length > 0) {\n console.info('Garbage Collected Resources', gcd); // eslint-disable-line no-console\n }\n\n this.debugLog(`------ Finished ------`);\n }\n\n // ------------- GC Update local cache ---------------------\n\n /**\n * Update the time that the resource type was accessed\n * This needs to run after any type initialisation (aka registerType)\n */\n gcUpdateLastAccessed(pseudoCtx: any, type: string) {\n if (!this.gcEnabledAll(pseudoCtx, type)) {\n return;\n }\n const store = pseudoCtx.state.config.namespace;\n\n if (!this.lastAccessedCache[store]) {\n this.lastAccessedCache[store] = {};\n }\n\n this.lastAccessedCache[store][type] = new Date().getTime();\n }\n\n /**\n * Update the time the user last changed routes\n */\n gcUpdateRouteChanged() {\n this.lastRouteChange = new Date().getTime();\n }\n\n // ------------- GC reset ---------------------\n\n /**\n * Remove all cached access times for the given store\n */\n gcResetStore(state: any) {\n const store = state.config.namespace;\n\n delete this.lastAccessedCache[store];\n\n this.debugLog('Forgetting Store:', store);\n }\n\n /**\n * Remove cached access time for the given resource type\n */\n gcResetType(state: any, type: string) {\n const store = state.config.namespace;\n\n if (!this.lastAccessedCache[store]) {\n return;\n }\n delete this.lastAccessedCache[store][type];\n\n this.debugLog('Forgetting Type:', store, type);\n }\n}\n\nconst gc = new GarbageCollect();\n\nexport default gc;\n","type UriField = 'source' | 'protocol' | 'authority' | 'userInfo' | 'user' | 'password' | 'host' | 'port' | 'relative' | 'path' | 'directory' | 'file' | 'queryStr' | 'anchor'\ntype UriFields = {\n [key in UriField]: string; // eslint-disable-line no-unused-vars\n}\nexport type QueryParams = {\n [key: string]: string\n}\n\ninterface ParsedUri extends UriFields {\n query: QueryParams;\n}\n\nexport function addParam(url: string, key: string, val: string | string[]): string {\n let out = url + (url.includes('?') ? '&' : '?');\n\n // val can be a string or an array of strings\n if ( !Array.isArray(val) ) {\n val = [val];\n }\n out += val.map((v) => {\n if ( v === null ) {\n return `${ encodeURIComponent(key) }`;\n } else {\n return `${ encodeURIComponent(key) }=${ encodeURIComponent(v) }`;\n }\n }).join('&');\n\n return out;\n}\n\nexport function addParams(url: string, params: QueryParams): string {\n if ( params && typeof params === 'object' ) {\n Object.keys(params).forEach((key) => {\n url = addParam(url, key, params[key]);\n });\n }\n\n return url;\n}\n\nexport function removeParam(url: string, key: string): string {\n const parsed = parse(url);\n\n if ( parsed.query?.[key] ) {\n delete parsed.query[key];\n }\n\n return stringify(parsed);\n}\n\nexport function parseLinkHeader(str: string): Record {\n const out: { [key: string]: string} = { };\n const lines = (str || '').split(',');\n\n for ( const line of lines ) {\n const match = line.match(/^\\s*<([^>]+)>\\s*;\\s*rel\\s*=\"(.*)\"/);\n\n if ( match ) {\n out[match[2].toLowerCase()] = match[1];\n }\n }\n\n return out;\n}\n\nexport function isMaybeSecure(port: number, proto: string): boolean {\n const protocol = proto.toLowerCase();\n\n return portMatch([port], [443, 8443], ['443']) || protocol === 'https';\n}\n\nexport function portMatch(ports: number[], equals: number[], endsWith: string[]): boolean {\n for (let i = 0; i < ports.length; i++) {\n const port = ports[i];\n\n if (equals.includes(port)) {\n return true;\n }\n\n for (let j = 0; j < endsWith.length; j++) {\n const suffix = `${ endsWith[j] }`;\n const portStr = `${ port }`;\n\n if (portStr !== suffix && portStr.endsWith(suffix)) {\n return true;\n }\n }\n }\n\n return false;\n}\n\n// parseUri 1.2.2\n// (c) Steven Levithan \n// https://javascriptsource.com/parseuri/\n// MIT License\nexport function parse(str: string): ParsedUri {\n const o = parse.options;\n const m = o.parser[o.strictMode ? 'strict' : 'loose'].exec(str);\n\n if (!m) {\n throw new Error(`Cannot parse as uri: ${ str }`);\n }\n const uri = {} as ParsedUri;\n let i = 14;\n\n while (i--) {\n uri[o.key[i]] = m[i] || '';\n }\n\n uri.query = {};\n uri.queryStr.replace(o.q.parser, (_, $1: string, $2: string): string => {\n if ($1) {\n uri[o.q.name][$1] = $2;\n }\n\n return '';\n });\n\n return uri;\n}\n\nparse.options = {\n strictMode: false,\n key: ['source', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host', 'port', 'relative', 'path', 'directory', 'file', 'queryStr', 'anchor'],\n q: {\n name: 'query',\n parser: /(?:^|&)([^&=]*)=?([^&]*)/g\n },\n parser: {\n strict: /^(?:([^:\\/?#]+):)?(?:\\/\\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\\/?#]*)(?::(\\d*))?))?((((?:[^?#\\/]*\\/)*)([^?#]*))(?:\\?([^#]*))?(?:#(.*))?)/,\n loose: /^(?:(?![^:@]+:[^:@\\/]*@)([^:\\/?#.]+):)?(?:\\/\\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/\n }\n} as {\n strictMode: boolean,\n key: UriField[],\n q: {\n name: 'query',\n parser: RegExp\n },\n parser: {\n strict: RegExp,\n loose: RegExp\n }\n};\n\nexport function stringify(uri: ParsedUri): string {\n let out = `${ uri.protocol }://`;\n\n if ( uri.user && uri.password ) {\n out += `${ uri.user }:${ uri.password }@`;\n } else if ( uri.user ) {\n out += `${ uri.user }@`;\n }\n\n out += uri.host;\n\n if ( uri.port ) {\n out += `:${ uri.port }`;\n }\n\n out += uri.path || '/';\n\n out = addParams(out, uri.query || {});\n\n if ( uri.anchor ) {\n out += `#${ uri.anchor }`;\n }\n\n return out;\n}\n","import { SETTING } from '@shell/config/settings';\nimport { MANAGEMENT } from '@shell/config/types';\n\nlet favIconSet = false;\n\nexport function haveSetFavIcon() {\n return favIconSet;\n}\n\nexport function setFavIcon(store) {\n const res = store.getters['management/byId'](MANAGEMENT.SETTING, SETTING.FAVICON);\n const brandSetting = store.getters['management/byId'](MANAGEMENT.SETTING, SETTING.BRAND);\n const link = findIconLink(document.head.getElementsByTagName('link'));\n\n if (link) {\n let brandImage;\n\n if (brandSetting?.value === 'suse') {\n brandImage = require('~shell/assets/brand/suse/favicon.png');\n } else if (brandSetting?.value === 'csp') {\n brandImage = require('~shell/assets/brand/csp/favicon.png');\n }\n\n link.href = res?.value || brandImage || defaultFavIcon;\n favIconSet = true;\n }\n}\n\nfunction getCurrentFavIcon() {\n const link = findIconLink(document.head.getElementsByTagName('link'));\n\n return link ? link.href : '';\n}\n\nfunction findIconLink(links) {\n for (let i = 0; i < links.length; i++) {\n const link = links[i];\n\n if (link.rel?.includes('icon')) {\n return link;\n }\n }\n\n return undefined;\n}\n\nconst defaultFavIcon = getCurrentFavIcon();\n","\n/**\n * Some plugins won't be bundled with the dashboard build but loaded on demand at run time.\n * This file allows 'manager' style plugins to defined how to determine if a unknown route\n * belongs to one of their associated plugins and how that plugin can be loaded\n */\nclass DynamicPluginLoader {\n dynamicPluginLoaders = [];\n\n register(reg) {\n this.dynamicPluginLoaders.push(reg);\n }\n\n async check({ route, store }) {\n for (const dpl of this.dynamicPluginLoaders) {\n // Check that the route is valid and then load the plugin associated with it\n const res = await dpl.load({ route, store });\n\n if (res) {\n return res;\n }\n }\n }\n}\n\nconst dynamicPluginLoader = new DynamicPluginLoader();\n\nexport default dynamicPluginLoader;\n","// Github repo cache\nexport const GITHUB_REPOS = 'githubRepos';\nexport const GITHUB_SCOPES = 'githubScopes';\nexport const _DATE = 'Updated';\n\nexport const BACK_TO = 'backTo';\n","import { MANAGEMENT } from '@shell/config/types';\n\nconst definitions = {};\n\nexport const create = function(name, def) {\n definitions[name] = { def };\n\n return name;\n};\n\nexport const mapFeature = function(name) {\n return {\n get() {\n return this.$store.getters['features/get'](name);\n },\n\n set(value) {\n throw new Error('The feature store only supports getting');\n }\n };\n};\n\n// --------------------\n// The default (2nd arg) is used only if the flag is missing entirely from the server.\n// This is mainly useful for development before the flag has been created in the API..\n\nexport const MULTI_CLUSTER = create('multi-cluster-management', true);\nexport const LEGACY = create('legacy', false);\nexport const RKE2 = create('rke2', true);\nexport const RKE1_UI = create('rke1-ui', true);\nexport const UNSUPPORTED_STORAGE_DRIVERS = create('unsupported-storage-drivers', false);\nexport const FLEET = create('continuous-delivery', true);\nexport const HARVESTER = create('harvester', true);\nexport const HARVESTER_CONTAINER = create('harvester-baremetal-container-workload', false);\nexport const FLEET_WORKSPACE_BACK = create('provisioningv2-fleet-workspace-back-population', false);\n\n// Not currently used.. no point defining ones we don't use\n// export const EMBEDDED_CLUSTER_API = create('embedded-cluster-api', true);\n// export const ISTIO_VIRTUAL_SERVICE_UI = create('istio-virtual-service-ui', true);\n// export const PROVISIONINGV2 = create('provisioningv2', true);\n// export const AUTH = create('auth', true);\n\n// --------------------\n\nexport const getters = {\n get: (state, getters, rootState, rootGetters) => (name) => {\n const definition = definitions[name];\n\n if (!definition) {\n throw new Error(`Unknown feature: ${ name }`);\n }\n\n const entry = rootGetters['management/byId'](MANAGEMENT.FEATURE, name);\n\n if ( entry ) {\n return entry.enabled;\n }\n\n return definition.def;\n },\n};\n\nexport const actions = {\n loadServer({ rootGetters, dispatch }) {\n if ( rootGetters['management/canList'](MANAGEMENT.FEATURE) ) {\n return dispatch('management/findAll', { type: MANAGEMENT.FEATURE }, { root: true });\n }\n },\n};\n","import { REDIRECTED } from '@shell/config/cookies';\nimport { NAME as EXPLORER } from '@shell/config/product/explorer';\nimport {\n SETUP, TIMED_OUT, UPGRADED, _FLAGGED, _UNFLAG\n} from '@shell/config/query-params';\nimport { SETTING } from '@shell/config/settings';\nimport { MANAGEMENT, NORMAN, DEFAULT_WORKSPACE } from '@shell/config/types';\nimport { _ALL_IF_AUTHED } from '@shell/plugins/dashboard-store/actions';\nimport { applyProducts } from '@shell/store/type-map';\nimport { findBy } from '@shell/utils/array';\nimport { ClusterNotFoundError, RedirectToError } from '@shell/utils/error';\nimport { get } from '@shell/utils/object';\nimport { setFavIcon, haveSetFavIcon } from '@shell/utils/favicon';\nimport dynamicPluginLoader from '@shell/pkg/dynamic-plugin-loader';\nimport { AFTER_LOGIN_ROUTE, WORKSPACE } from '@shell/store/prefs';\nimport { BACK_TO } from '@shell/config/local-storage';\nimport { NAME as FLEET_NAME } from '@shell/config/product/fleet.js';\nimport { canViewResource } from '@shell/utils/auth';\n\nconst getPackageFromRoute = (route) => {\n if (!route?.meta) {\n return;\n }\n // Sometimes meta is an array... sometimes not\n const arraySafe = Array.isArray(route.meta) ? route.meta : [route.meta];\n\n return arraySafe.find((m) => !!m.pkg)?.pkg;\n};\n\nconst getResourceFromRoute = (to) => {\n let resource = to.params?.resource;\n\n if (!resource) {\n resource = findMeta(to, 'resource');\n }\n\n return resource;\n};\n\nlet beforeEachSetup = false;\n\nfunction findMeta(route, key) {\n if (route?.meta) {\n const meta = Array.isArray(route.meta) ? route.meta : [route.meta];\n\n for (let i = 0; i < meta.length; i++) {\n if (meta[i][key]) {\n return meta[i][key];\n }\n }\n }\n\n return undefined;\n}\n\nexport function getClusterFromRoute(to) {\n let cluster = to.params?.cluster;\n\n if (!cluster) {\n cluster = findMeta(to, 'cluster');\n }\n\n return cluster;\n}\n\nexport function getProductFromRoute(to) {\n let product = to.params?.product;\n\n if ( !product ) {\n const match = to.name?.match(/^c-cluster-([^-]+)/);\n\n if ( match ) {\n product = match[1];\n }\n }\n\n // If still no product, see if the route indicates the product via route metadata\n if (!product) {\n product = findMeta(to, 'product');\n }\n\n return product;\n}\n\nfunction setProduct(store, to, redirect) {\n let product = getProductFromRoute(to);\n\n // since all products are hardcoded as routes (ex: c-local-explorer), if we match the wildcard route it means that the product does not exist\n if ((product && (!to.matched.length || (to.matched.length && to.matched[0].path === '/c/:cluster/:product'))) ||\n // if the product grabbed from the route is not registered, then we don't have it!\n (product && !store.getters['type-map/isProductRegistered'](product))) {\n store.dispatch('loadingError', new Error(store.getters['i18n/t']('nav.failWhale.productNotFound', { productNotFound: product }, true)));\n\n return () => redirect(302, '/fail-whale');\n }\n\n if ( !product ) {\n product = EXPLORER;\n }\n\n const oldProduct = store.getters['productId'];\n const oldStore = store.getters['currentProduct']?.inStore;\n\n if ( product !== oldProduct ) {\n store.commit('setProduct', product);\n }\n\n const neuStore = store.getters['currentProduct']?.inStore;\n\n if ( neuStore !== oldStore ) {\n // If the product store changes, clear the catalog.\n // There might be management catalog items in it vs cluster.\n store.commit('catalog/reset');\n }\n\n return false;\n}\n\n/**\n * Check that the resource is valid, if not redirect to fail whale\n *\n * This requires that\n * - product is set\n * - product's store is set and setup (so we can check schema's within it)\n * - product's store has the schemaFor getter (extension stores might not have it)\n * - there's a resource associated with route (meta or param)\n */\nfunction invalidResource(store, to, redirect) {\n const product = store.getters['currentProduct'];\n const resource = getResourceFromRoute(to);\n\n // In order to check a resource is valid we need these\n if (!product || !resource) {\n return false;\n }\n\n if (canViewResource(store, resource)) {\n return false;\n }\n\n // Unknown resource, redirect to fail whale\n\n store.dispatch('loadingError', new Error(store.getters['i18n/t']('nav.failWhale.resourceNotFound', { resource }, true)));\n\n return () => redirect(302, '/fail-whale');\n}\n\nexport default async function({\n route, app, store, redirect, $cookies, req, isDev, from, $plugin, next\n}) {\n if ( route.path && typeof route.path === 'string') {\n // Ignore webpack hot module reload requests\n if ( route.path.startsWith('/__webpack_hmr/') ) {\n return;\n }\n\n // Ignore the error page\n if ( route.path.startsWith('/fail-whale') ) {\n return;\n }\n }\n\n // This tells Ember not to redirect back to us once you've already been to dashboard once.\n if ( !$cookies.get(REDIRECTED) ) {\n $cookies.set(REDIRECTED, 'true', {\n path: '/',\n sameSite: true,\n secure: true,\n });\n }\n\n const upgraded = route.query[UPGRADED] === _FLAGGED;\n\n if ( upgraded ) {\n app.router.applyQuery({ [UPGRADED]: _UNFLAG });\n\n store.dispatch('growl/success', {\n title: store.getters['i18n/t']('serverUpgrade.title'),\n message: store.getters['i18n/t']('serverUpgrade.message'),\n timeout: 0,\n });\n }\n\n // Initial ?setup=admin-password can technically be on any route\n let initialPass = route.query[SETUP];\n let firstLogin = null;\n\n try {\n // Load settings, which will either be just the public ones if not logged in, or all if you are\n await store.dispatch('management/findAll', {\n type: MANAGEMENT.SETTING,\n opt: {\n load: _ALL_IF_AUTHED, url: `/v1/${ MANAGEMENT.SETTING }`, redirectUnauthorized: false\n }\n });\n\n // Set the favicon - use custom one from store if set\n if (!haveSetFavIcon()) {\n setFavIcon(store);\n }\n\n const res = store.getters['management/byId'](MANAGEMENT.SETTING, SETTING.FIRST_LOGIN);\n const plSetting = store.getters['management/byId'](MANAGEMENT.SETTING, SETTING.PL);\n\n firstLogin = res?.value === 'true';\n\n if (!initialPass && plSetting?.value === 'Harvester') {\n initialPass = 'admin';\n }\n } catch (e) {\n }\n\n if ( firstLogin === null ) {\n try {\n const res = await store.dispatch('rancher/find', {\n type: 'setting',\n id: SETTING.FIRST_LOGIN,\n opt: { url: `/v3/settings/${ SETTING.FIRST_LOGIN }` }\n });\n\n firstLogin = res?.value === 'true';\n\n const plSetting = await store.dispatch('rancher/find', {\n type: 'setting',\n id: SETTING.PL,\n opt: { url: `/v3/settings/${ SETTING.PL }` }\n });\n\n if (!initialPass && plSetting?.value === 'Harvester') {\n initialPass = 'admin';\n }\n } catch (e) {\n }\n }\n\n // TODO show error if firstLogin and default pass doesn't work\n if ( firstLogin ) {\n const ok = await tryInitialSetup(store, initialPass);\n\n if (ok) {\n if (initialPass) {\n store.dispatch('auth/setInitialPass', initialPass);\n }\n\n return redirect({ name: 'auth-setup' });\n } else {\n return redirect({ name: 'auth-login' });\n }\n }\n\n // Make sure you're actually logged in\n function isLoggedIn(me) {\n store.commit('auth/hasAuth', true);\n store.commit('auth/loggedInAs', me.id);\n }\n\n function notLoggedIn() {\n store.commit('auth/hasAuth', true);\n\n if ( route.name === 'index' ) {\n return redirect(302, '/auth/login');\n } else {\n return redirect(302, `/auth/login?${ TIMED_OUT }`);\n }\n }\n\n function noAuth() {\n store.commit('auth/hasAuth', false);\n }\n\n if ( store.getters['auth/enabled'] !== false && !store.getters['auth/loggedIn'] ) {\n // `await` so we have one successfully request whilst possibly logged in (ensures fromHeader is populated from `x-api-cattle-auth`)\n await store.dispatch('auth/getUser');\n\n const v3User = store.getters['auth/v3User'] || {};\n\n if (v3User?.mustChangePassword) {\n return redirect({ name: 'auth-setup' });\n }\n\n // In newer versions the API calls return the auth state instead of having to make a new call all the time.\n const fromHeader = store.getters['auth/fromHeader'];\n\n if ( fromHeader === 'none' ) {\n noAuth();\n } else if ( fromHeader === 'true' ) {\n const me = await findMe(store);\n\n isLoggedIn(me);\n } else if ( fromHeader === 'false' ) {\n notLoggedIn();\n } else {\n // Older versions look at principals and see what happens\n try {\n const me = await findMe(store);\n\n isLoggedIn(me);\n } catch (e) {\n const status = e?._status;\n\n if ( status === 404 ) {\n noAuth();\n } else {\n if ( status === 401 ) {\n notLoggedIn();\n } else {\n store.commit('setError', { error: e, locationError: new Error('Auth Middleware') });\n }\n\n return;\n }\n }\n }\n\n store.dispatch('gcStartIntervals');\n }\n\n const backTo = window.localStorage.getItem(BACK_TO);\n\n if (backTo) {\n window.localStorage.removeItem(BACK_TO);\n\n window.location.href = backTo;\n }\n\n // GC should be notified of route change before any find/get request is made that might be used for that page\n store.dispatch('gcRouteChanged', route);\n\n // Load stuff\n let localCheckResource = false;\n\n await applyProducts(store, $plugin);\n\n // Setup a beforeEach hook once to keep track of the current product\n if ( !beforeEachSetup ) {\n beforeEachSetup = true;\n // This only needs to happen when beforeEach hook hasn't run (the initial load)\n localCheckResource = true;\n\n store.app.router.beforeEach((to, from, next) => {\n // NOTE - This beforeEach runs AFTER this middleware. So anything in this middleware that requires it must set it manually\n let redirected = setProduct(store, to, redirect);\n\n if (redirected) {\n return redirected();\n }\n\n redirected = invalidResource(store, to, redirect);\n\n if (redirected) {\n return redirected();\n }\n\n next();\n });\n\n // Call it for the initial pageload\n const redirected = setProduct(store, route, redirect);\n\n if (redirected) {\n return redirected();\n }\n\n store.app.router.afterEach((to, from) => {\n // Clear state used to record if back button was used for navigation\n setTimeout(() => {\n window._popStateDetected = false;\n }, 1);\n });\n }\n\n try {\n let clusterId = get(route, 'params.cluster');\n\n // Route can provide cluster ID via metadata\n if (!clusterId && route) {\n clusterId = getClusterFromRoute(route);\n }\n\n const pkg = getPackageFromRoute(route);\n const product = getProductFromRoute(route);\n\n const oldPkg = getPackageFromRoute(from);\n const oldProduct = getProductFromRoute(from);\n\n // Leave an old pkg where we weren't before?\n const oldPkgPlugin = oldPkg ? Object.values($plugin.getPlugins()).find((p) => p.name === oldPkg) : null;\n\n if (oldPkg && oldPkg !== pkg ) {\n // Execute anything optional the plugin wants to. For example resetting it's store to remove data\n await oldPkgPlugin.onLeave(store, {\n clusterId,\n product,\n oldProduct,\n oldIsExt: !!oldPkg\n });\n }\n\n // Sometimes this needs to happen before or alongside other things... but is always needed\n const always = [\n store.dispatch('loadManagement')\n ];\n\n // Entering a new package where we weren't before?\n const newPkgPlugin = pkg ? Object.values($plugin.getPlugins()).find((p) => p.name === pkg) : null;\n\n // Note - We can't block on oldPkg !== newPkg because on a fresh load the `from` route equals the `to` route\n if (pkg && (oldPkg !== pkg || from.fullPath === route.fullPath)) {\n // Execute mandatory store actions\n await Promise.all(always);\n\n // Execute anything optional the plugin wants to\n await newPkgPlugin.onEnter(store, {\n clusterId,\n product,\n oldProduct,\n oldIsExt: !!oldPkg\n });\n }\n\n if (!route.matched?.length) {\n // If there are no matching routes we could be trying to nav to a page belonging to a dynamic plugin which needs loading\n await Promise.all([\n ...always,\n ]);\n\n // If a plugin claims the route and is loaded correctly we'll get a route back\n const newLocation = await dynamicPluginLoader.check({ route, store });\n\n // If we have a new location, double check that it's actually valid\n const resolvedRoute = newLocation ? store.app.router.resolve(newLocation) : null;\n\n if (resolvedRoute?.route.matched.length) {\n // Note - don't use `redirect` or `store.app.route` (breaks feature by failing to run middleware in default layout)\n return next(newLocation);\n }\n }\n\n // Ensure that the activeNamespaceCache is updated given the change of context either from or to a place where it uses workspaces\n // When fleet moves to it's own package this should be moved to pkg onEnter/onLeave\n if ((oldProduct === FLEET_NAME || product === FLEET_NAME) && oldProduct !== product) {\n // See note above for store.app.router.beforeEach, need to setProduct manually, for the moment do this in a targeted way\n const redirected = setProduct(store, route, redirect);\n\n if (redirected) {\n return redirected();\n }\n\n store.commit('updateWorkspace', {\n value: store.getters['prefs/get'](WORKSPACE) || DEFAULT_WORKSPACE,\n getters: store.getters\n });\n }\n\n // Always run loadCluster, it handles 'unload' as well\n // Run them in parallel\n await Promise.all([\n ...always,\n store.dispatch('loadCluster', {\n id: clusterId,\n oldPkg: oldPkgPlugin,\n newPkg: newPkgPlugin,\n product,\n oldProduct,\n targetRoute: route\n })\n ]);\n\n if (localCheckResource) {\n const redirected = invalidResource(store, route, redirect);\n\n if (redirected) {\n return redirected();\n }\n }\n\n if (!clusterId) {\n clusterId = store.getters['defaultClusterId']; // This needs the cluster list, so no parallel\n const isSingleProduct = store.getters['isSingleProduct'];\n\n if (isSingleProduct?.afterLoginRoute) {\n const value = {\n name: 'c-cluster-product',\n ...isSingleProduct.afterLoginRoute,\n params: {\n cluster: clusterId,\n ...isSingleProduct.afterLoginRoute?.params\n },\n };\n\n await store.dispatch('prefs/set', {\n key: AFTER_LOGIN_ROUTE,\n value,\n });\n }\n }\n } catch (e) {\n if ( e.name === ClusterNotFoundError.name ) {\n return redirect(302, '/home');\n } if ( e.name === RedirectToError.name ) {\n return redirect(302, e.url);\n } else {\n // Sets error 500 if lost connection to API\n store.commit('setError', { error: e, locationError: new Error(store.getters['i18n/t']('nav.failWhale.authMiddleware')) });\n\n return redirect(302, '/fail-whale');\n }\n }\n}\n\nasync function findMe(store) {\n // First thing we do in loadManagement is fetch principals anyway.... so don't ?me=true here\n const principals = await store.dispatch('rancher/findAll', {\n type: NORMAN.PRINCIPAL,\n opt: {\n url: '/v3/principals',\n redirectUnauthorized: false,\n }\n });\n\n const me = findBy(principals, 'me', true);\n\n return me;\n}\n\nasync function tryInitialSetup(store, password = 'admin') {\n try {\n const res = await store.dispatch('auth/login', {\n provider: 'local',\n body: {\n username: 'admin',\n password\n },\n });\n\n return res._status === 200;\n } catch (e) {\n console.error('Error trying initial setup', e); // eslint-disable-line no-console\n\n return false;\n }\n}\n","import { ActionLocation, CardLocation, ExtensionPoint } from '@shell/core/types';\nimport { isMac } from '@shell/utils/platform';\nimport { ucFirst, randomStr } from '@shell/utils/string';\nimport {\n _EDIT, _CONFIG, _DETAIL, _LIST, _CREATE\n} from '@shell/config/query-params';\nimport { getProductFromRoute } from '@shell/middleware/authenticated';\nimport { isEqual } from '@shell/utils/object';\n\nfunction checkRouteProduct($route, locationConfigParam) {\n const product = getProductFromRoute($route);\n\n // alias for the homepage\n if (locationConfigParam === 'home' && $route.name === 'home') {\n return true;\n } else if (locationConfigParam === product) {\n return true;\n }\n\n return false;\n}\n\nfunction checkRouteMode({ name, query }, locationConfigParam) {\n if (locationConfigParam === _EDIT && query.mode && query.mode === _EDIT && !query.as) {\n return true;\n } else if (locationConfigParam === _CONFIG && query.as && query.as === _CONFIG) {\n return true;\n } else if (locationConfigParam === _DETAIL && !query.as && name.includes('-id') && (!query.mode || query?.mode !== _EDIT)) {\n return true;\n // alias to target all list views\n } else if (locationConfigParam === _LIST && !name.includes('-id') && name.includes('-resource')) {\n return true;\n // alias to target create views\n } else if (locationConfigParam === _CREATE && name.endsWith('-create')) {\n return true;\n }\n\n return false;\n}\n\nfunction checkExtensionRouteBinding($route, locationConfig, context) {\n // if no configuration is passed, consider it as global\n if (!Object.keys(locationConfig).length) {\n return true;\n }\n\n const { params } = $route;\n\n // \"params\" to be checked based on the locationConfig\n // This has become overloaded with mode and context\n const paramsToCheck = [\n 'product',\n 'resource',\n 'namespace',\n 'cluster',\n 'id',\n 'mode',\n 'path',\n 'hash',\n // url query params\n 'queryParam',\n // Custom context specific params provided by the extension, not to be confused with location params\n 'context',\n ];\n\n let res = true;\n\n for (let i = 0; i < paramsToCheck.length; i++) {\n const param = paramsToCheck[i];\n\n if (locationConfig[param]) {\n const asArray = Array.isArray(locationConfig[param]) ? locationConfig[param] : [locationConfig[param]];\n\n for (let x = 0; x < asArray.length; x++) {\n const locationConfigParam = asArray[x];\n\n if (locationConfigParam) {\n if (param === 'hash') {\n res = $route.hash ? $route.hash.includes(locationConfigParam) : false;\n // handle \"product\" in a separate way...\n } else if (param === 'product') {\n res = checkRouteProduct($route, locationConfigParam);\n // also handle \"mode\" in a separate way because it mainly depends on query params\n } else if (param === 'mode') {\n res = checkRouteMode($route, locationConfigParam);\n } else if (param === 'resource') {\n // Match exact resource but also allow resource of '*' to match any resource\n res = (params[param] && locationConfigParam === '*') || locationConfigParam === params[param];\n } else if (param === 'context') {\n // Need all keys and values to match\n res = isEqual(locationConfigParam, context);\n // evaluate queryParam in route\n } else if (param === 'queryParam') {\n res = isEqual(locationConfigParam, $route.query);\n // evaluate path in route\n } else if (param === 'path' && locationConfigParam.urlPath) {\n if (locationConfigParam.endsWith) {\n res = $route.path.endsWith(locationConfigParam.urlPath);\n } else if (!Object.keys(locationConfigParam).includes('exact') || locationConfigParam.exact) {\n res = locationConfigParam.urlPath === $route.path;\n } else {\n res = $route.path.includes(locationConfigParam.urlPath);\n }\n } else if (locationConfigParam === params[param]) {\n res = true;\n } else {\n res = false;\n }\n }\n\n // If a single location config param is good then this is an param (aka ['pods', 'configmap'] = pods or configmaps)\n if (res) {\n break;\n }\n }\n\n // If a single param (set of location config params) is bad then this is not an acceptable location\n if (!res) {\n break;\n }\n }\n }\n\n return res;\n}\n\nexport function getApplicableExtensionEnhancements(pluginCtx, actionType, uiArea, currRoute, translationCtx = pluginCtx, context) {\n const extensionEnhancements = [];\n\n // gate it so that we prevent errors on older versions of dashboard\n if (pluginCtx.$plugin?.getUIConfig) {\n const actions = pluginCtx.$plugin.getUIConfig(actionType, uiArea);\n\n actions.forEach((action, i) => {\n if (checkExtensionRouteBinding(currRoute, action.locationConfig, context || {})) {\n // ADD CARD PLUGIN UI ENHANCEMENT\n if (actionType === ExtensionPoint.CARD) {\n // intercept to apply translation\n if (uiArea === CardLocation.CLUSTER_DASHBOARD_CARD && action.labelKey) {\n actions[i].label = translationCtx.t(action.labelKey);\n }\n\n // ADD ACTION PLUGIN UI ENHANCEMENT\n } else if (actionType === ExtensionPoint.ACTION) {\n // TABLE ACTION\n if (uiArea === ActionLocation.TABLE) {\n // intercept to apply translation\n if (action.labelKey) {\n actions[i].label = translationCtx.t(action.labelKey);\n }\n\n // bulkable flag\n actions[i].bulkable = actions[i].multiple || actions[i].bulkable;\n\n // populate action identifier to prevent errors\n if (!actions[i].action) {\n actions[i].action = `custom-table-action-${ randomStr(10).toLowerCase() }`;\n }\n }\n\n // extract simplified shortcut definition on plugin - HEADER ACTION\n if (uiArea === ActionLocation.HEADER && action.shortcut) {\n // if it's a string, then assume CTRL for windows and META for mac\n if (typeof action.shortcut === 'string') {\n actions[i].shortcutLabel = () => {\n return isMac ? `(\\u2318-${ action.shortcut.toUpperCase() })` : `(Ctrl-${ action.shortcut.toUpperCase() })`;\n };\n actions[i].shortcutKey = { windows: ['ctrl', action.shortcut], mac: ['meta', action.shortcut] };\n // correct check for an Object type in JS... handle the object passed\n } else if (typeof action.shortcut === 'object' && !Array.isArray(action.shortcut) && action.shortcut !== null) {\n actions[i].shortcutKey = action.shortcut;\n const keyboardCombo = isMac ? actions[i].shortcut.mac : actions[i].shortcut.windows ? actions[i].shortcut.windows : [];\n let scLabel = '';\n\n keyboardCombo.forEach((key, i) => {\n if (i < keyboardCombo.length - 1) {\n if (key === 'meta') {\n key = '\\u2318';\n } else {\n key = ucFirst(key);\n }\n scLabel += `${ key }`;\n scLabel += '-';\n } else {\n scLabel += `${ key.toUpperCase() }`;\n }\n });\n\n actions[i].shortcutLabel = () => {\n return `(${ scLabel })`;\n };\n }\n }\n }\n\n extensionEnhancements.push(actions[i]);\n }\n });\n }\n\n return extensionEnhancements;\n}\n","import { NORMAN_NAME } from '@shell/config/labels-annotations';\nimport {\n _CLONE,\n _CONFIG,\n _EDIT,\n _UNFLAG,\n _VIEW,\n _YAML,\n AS,\n MODE\n} from '@shell/config/query-params';\nimport { VIEW_IN_API } from '@shell/store/prefs';\nimport { addObject, addObjects, findBy, removeAt } from '@shell/utils/array';\nimport CustomValidators from '@shell/utils/custom-validators';\nimport { downloadFile, generateZip } from '@shell/utils/download';\nimport { clone, get } from '@shell/utils/object';\nimport { eachLimit } from '@shell/utils/promise';\nimport { sortableNumericSuffix } from '@shell/utils/sort';\nimport { coerceStringTypeToScalarType, escapeHtml, ucFirst } from '@shell/utils/string';\nimport {\n displayKeyFor,\n validateBoolean,\n validateChars,\n validateDnsLikeTypes,\n validateLength,\n} from '@shell/utils/validators';\nimport formRulesGenerator from '@shell/utils/validators/formRules/index';\nimport { waitFor } from '@shell/utils/async';\nimport jsyaml from 'js-yaml';\nimport compact from 'lodash/compact';\nimport forIn from 'lodash/forIn';\nimport isEmpty from 'lodash/isEmpty';\nimport isFunction from 'lodash/isFunction';\nimport isString from 'lodash/isString';\nimport uniq from 'lodash/uniq';\nimport Vue from 'vue';\n\nimport { normalizeType } from './normalize';\n\nimport { ExtensionPoint, ActionLocation } from '@shell/core/types';\nimport { getApplicableExtensionEnhancements } from '@shell/core/plugin-helpers';\n\nconst STRING_LIKE_TYPES = [\n 'string',\n 'date',\n 'blob',\n 'enum',\n 'multiline',\n 'masked',\n 'password',\n 'dnsLabel',\n 'hostname',\n];\nconst DNS_LIKE_TYPES = ['dnsLabel', 'dnsLabelRestricted', 'hostname'];\n\nconst REMAP_STATE = {\n disabled: 'inactive',\n notapplied: 'Not Applied',\n notready: 'Not Ready',\n waitapplied: 'Wait Applied',\n outofsync: 'Out of Sync',\n 'in-progress': 'In Progress',\n gitupdating: 'Git Updating',\n errapplied: 'Err Applied',\n waitcheckin: 'Wait Check-In',\n off: 'Disabled',\n waitingforinfrastructure: 'Waiting for Infra',\n waitingfornoderef: 'Waiting for Node Ref'\n};\n\nconst DEFAULT_COLOR = 'warning';\nconst DEFAULT_ICON = 'x';\n\nconst DEFAULT_WAIT_INTERVAL = 1000;\nconst DEFAULT_WAIT_TMIMEOUT = 30000;\n\nexport const STATES_ENUM = {\n IN_USE: 'in-use',\n IN_PROGRESS: 'in-progress',\n PENDING_ROLLBACK: 'pending-rollback',\n PENDING_UPGRADE: 'pending-upgrade',\n ABORTED: 'aborted',\n ACTIVATING: 'activating',\n ACTIVE: 'active',\n AVAILABLE: 'available',\n BACKED_UP: 'backedup',\n BOUND: 'bound',\n BUILDING: 'building',\n COMPLETED: 'completed',\n CORDONED: 'cordoned',\n COUNT: 'count',\n CREATED: 'created',\n CREATING: 'creating',\n DEACTIVATING: 'deactivating',\n DEGRADED: 'degraded',\n DENIED: 'denied',\n DEPLOYED: 'deployed',\n DEPLOYING: 'deploying',\n DISABLED: 'disabled',\n DISCONNECTED: 'disconnected',\n DRAINED: 'drained',\n DRAINING: 'draining',\n ERR_APPLIED: 'errapplied',\n ERROR: 'error',\n ERRORING: 'erroring',\n ERRORS: 'errors',\n EXPIRED: 'expired',\n EXPIRING: 'expiring',\n FAIL: 'fail',\n FAILED: 'failed',\n HEALTHY: 'healthy',\n INACTIVE: 'inactive',\n INFO: 'info',\n INITIALIZING: 'initializing',\n INPROGRESS: 'inprogress',\n LOCKED: 'locked',\n MIGRATING: 'migrating',\n MISSING: 'missing',\n MODIFIED: 'modified',\n NOT_APPLICABLE: 'notApplicable',\n NOT_APLLIED: 'notapplied',\n NOT_READY: 'notready',\n OFF: 'off',\n ORPHANED: 'orphaned',\n OTHER: 'other',\n OUT_OF_SYNC: 'outofsync',\n ON_GOING: 'on-going',\n PASS: 'pass',\n PASSED: 'passed',\n PAUSED: 'paused',\n PENDING: 'pending',\n PROVISIONING: 'provisioning',\n PROVISIONED: 'provisioned',\n PURGED: 'purged',\n PURGING: 'purging',\n READY: 'ready',\n RECONNECTING: 'reconnecting',\n REGISTERING: 'registering',\n REINITIALIZING: 'reinitializing',\n RELEASED: 'released',\n REMOVED: 'removed',\n REMOVING: 'removing',\n REQUESTED: 'requested',\n RESTARTING: 'restarting',\n RESTORING: 'restoring',\n RESIZING: 'resizing',\n RUNNING: 'running',\n SKIP: 'skip',\n SKIPPED: 'skipped',\n STARTING: 'starting',\n STOPPED: 'stopped',\n STOPPING: 'stopping',\n SUCCEEDED: 'succeeded',\n SUCCESS: 'success',\n SUCCESSFUL: 'successful',\n SUPERSEDED: 'superseded',\n SUSPENDED: 'suspended',\n UNAVAILABLE: 'unavailable',\n UNHEALTHY: 'unhealthy',\n UNINSTALLED: 'uninstalled',\n UNINSTALLING: 'uninstalling',\n UNKNOWN: 'unknown',\n UNTRIGGERED: 'untriggered',\n UPDATING: 'updating',\n WAIT_APPLIED: 'waitapplied',\n WAIT_CHECKIN: 'waitcheckin',\n WAITING: 'waiting',\n WARNING: 'warning',\n};\n\nexport function mapStateToEnum(statusString) {\n // e.g. in fleet Status is Capitalized. This function will map it to the enum\n return Object.values(STATES_ENUM).find((val) => {\n return val.toLowerCase() === statusString.toLocaleLowerCase();\n });\n}\n\nexport const STATES = {\n [STATES_ENUM.IN_USE]: {\n color: 'success', icon: 'dot-open', label: 'In Use', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.IN_PROGRESS]: {\n color: 'info', icon: 'tag', label: 'In Progress', compoundIcon: 'info'\n },\n [STATES_ENUM.PENDING_ROLLBACK]: {\n color: 'info', icon: 'dot-half', label: 'Pending Rollback', compoundIcon: 'info'\n },\n [STATES_ENUM.PENDING_UPGRADE]: {\n color: 'info', icon: 'dot-half', label: 'Pending Update', compoundIcon: 'info'\n },\n [STATES_ENUM.ABORTED]: {\n color: 'warning', icon: 'error', label: 'Aborted', compoundIcon: 'warning'\n },\n [STATES_ENUM.ACTIVATING]: {\n color: 'info', icon: 'tag', label: 'Activating', compoundIcon: 'info'\n },\n [STATES_ENUM.ACTIVE]: {\n color: 'success', icon: 'dot-open', label: 'Active', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.AVAILABLE]: {\n color: 'success', icon: 'dot-open', label: 'Available', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.BACKED_UP]: {\n color: 'success', icon: 'backup', label: 'Backed Up', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.BOUND]: {\n color: 'success', icon: 'dot', label: 'Bound', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.BUILDING]: {\n color: 'success', icon: 'dot-open', label: 'Building', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.COMPLETED]: {\n color: 'success', icon: 'dot', label: 'Completed', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.CORDONED]: {\n color: 'info', icon: 'tag', label: 'Cordoned', compoundIcon: 'info'\n },\n [STATES_ENUM.COUNT]: {\n color: 'success', icon: 'dot-open', label: 'Count', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.CREATED]: {\n color: 'info', icon: 'tag', label: 'Created', compoundIcon: 'info'\n },\n [STATES_ENUM.CREATING]: {\n color: 'info', icon: 'tag', label: 'Creating', compoundIcon: 'info'\n },\n [STATES_ENUM.DEACTIVATING]: {\n color: 'info', icon: 'adjust', label: 'Deactivating', compoundIcon: 'info'\n },\n [STATES_ENUM.DEGRADED]: {\n color: 'warning', icon: 'error', label: 'Degraded', compoundIcon: 'warning'\n },\n [STATES_ENUM.DENIED]: {\n color: 'error', icon: 'adjust', label: 'Denied', compoundIcon: 'error'\n },\n [STATES_ENUM.DEPLOYED]: {\n color: 'success', icon: 'dot-open', label: 'Deployed', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.DISABLED]: {\n color: 'warning', icon: 'error', label: 'Disabled', compoundIcon: 'warning'\n },\n [STATES_ENUM.DISCONNECTED]: {\n color: 'warning', icon: 'error', label: 'Disconnected', compoundIcon: 'warning'\n },\n [STATES_ENUM.DRAINED]: {\n color: 'info', icon: 'tag', label: 'Drained', compoundIcon: 'info'\n },\n [STATES_ENUM.DRAINING]: {\n color: 'warning', icon: 'tag', label: 'Draining', compoundIcon: 'warning'\n },\n [STATES_ENUM.ERR_APPLIED]: {\n color: 'error', icon: 'error', label: 'Error Applied', compoundIcon: 'error'\n },\n [STATES_ENUM.ERROR]: {\n color: 'error', icon: 'error', label: 'Error', compoundIcon: 'error'\n },\n [STATES_ENUM.ERRORING]: {\n color: 'error', icon: 'error', label: 'Erroring', compoundIcon: 'error'\n },\n [STATES_ENUM.ERRORS]: {\n color: 'error', icon: 'error', label: 'Errors', compoundIcon: 'error'\n },\n [STATES_ENUM.EXPIRED]: {\n color: 'error', icon: 'error', label: 'Expired', compoundIcon: 'warning'\n },\n [STATES_ENUM.EXPIRING]: {\n color: 'warning', icon: 'error', label: 'Expiring', compoundIcon: 'error'\n },\n [STATES_ENUM.FAIL]: {\n color: 'error', icon: 'error', label: 'Fail', compoundIcon: 'error'\n },\n [STATES_ENUM.FAILED]: {\n color: 'error', icon: 'error', label: 'Failed', compoundIcon: 'error'\n },\n [STATES_ENUM.HEALTHY]: {\n color: 'success', icon: 'dot-open', label: 'Healthy', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.INACTIVE]: {\n color: 'error', icon: 'dot', label: 'Inactive', compoundIcon: 'error'\n },\n [STATES_ENUM.INITIALIZING]: {\n color: 'warning', icon: 'error', label: 'Initializing', compoundIcon: 'warning'\n },\n [STATES_ENUM.INPROGRESS]: {\n color: 'info', icon: 'spinner', label: 'In Progress', compoundIcon: 'info'\n },\n [STATES_ENUM.INFO]: {\n color: 'info', icon: 'info', label: 'Info', compoundIcon: 'info'\n },\n [STATES_ENUM.LOCKED]: {\n color: 'warning', icon: 'adjust', label: 'Locked', compoundIcon: 'warning'\n },\n [STATES_ENUM.MIGRATING]: {\n color: 'info', icon: 'info', label: 'Migrated', compoundIcon: 'info'\n },\n [STATES_ENUM.MISSING]: {\n color: 'warning', icon: 'adjust', label: 'Missing', compoundIcon: 'warning'\n },\n [STATES_ENUM.MODIFIED]: {\n color: 'warning', icon: 'edit', label: 'Modified', compoundIcon: 'warning'\n },\n [STATES_ENUM.NOT_APPLICABLE]: {\n color: 'warning', icon: 'tag', label: 'Not Applicable', compoundIcon: 'warning'\n },\n [STATES_ENUM.NOT_APLLIED]: {\n color: 'warning', icon: 'tag', label: 'Not Applied', compoundIcon: 'warning'\n },\n [STATES_ENUM.NOT_READY]: {\n color: 'warning', icon: 'tag', label: 'Not Ready', compoundIcon: 'warning'\n },\n [STATES_ENUM.OFF]: {\n color: 'darker', icon: 'error', label: 'Off'\n },\n [STATES_ENUM.ON_GOING]: {\n color: 'info', icon: 'info', label: 'Info', compoundIcon: 'info'\n },\n [STATES_ENUM.ORPHANED]: {\n color: 'warning', icon: 'tag', label: 'Orphaned', compoundIcon: 'warning'\n },\n [STATES_ENUM.OTHER]: {\n color: 'info', icon: 'info', label: 'Other', compoundIcon: 'info'\n },\n [STATES_ENUM.OUT_OF_SYNC]: {\n color: 'warning', icon: 'tag', label: 'Out Of Sync', compoundIcon: 'warning'\n },\n [STATES_ENUM.PASS]: {\n color: 'success', icon: 'dot-dotfill', label: 'Pass', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.PASSED]: {\n color: 'success', icon: 'dot-dotfill', label: 'Passed', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.PAUSED]: {\n color: 'info', icon: 'info', label: 'Paused', compoundIcon: 'info'\n },\n [STATES_ENUM.PENDING]: {\n color: 'info', icon: 'tag', label: 'Pending', compoundIcon: 'info'\n },\n [STATES_ENUM.PROVISIONING]: {\n color: 'info', icon: 'dot', label: 'Provisioning', compoundIcon: 'info'\n },\n [STATES_ENUM.PROVISIONED]: {\n color: 'success', icon: 'dot', label: 'Provisioned', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.PURGED]: {\n color: 'error', icon: 'purged', label: 'Purged', compoundIcon: 'error'\n },\n [STATES_ENUM.PURGING]: {\n color: 'info', icon: 'purged', label: 'Purging', compoundIcon: 'info'\n },\n [STATES_ENUM.READY]: {\n color: 'success', icon: 'dot-open', label: 'Ready', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.RECONNECTING]: {\n color: 'error', icon: 'error', label: 'Reconnecting', compoundIcon: 'error'\n },\n [STATES_ENUM.REGISTERING]: {\n color: 'info', icon: 'tag', label: 'Registering', compoundIcon: 'info'\n },\n [STATES_ENUM.REINITIALIZING]: {\n color: 'warning', icon: 'error', label: 'Reinitializing', compoundIcon: 'warning'\n },\n [STATES_ENUM.RELEASED]: {\n color: 'warning', icon: 'error', label: 'Released', compoundIcon: 'warning'\n },\n [STATES_ENUM.REMOVED]: {\n color: 'error', icon: 'trash', label: 'Removed', compoundIcon: 'error'\n },\n [STATES_ENUM.REMOVING]: {\n color: 'info', icon: 'trash', label: 'Removing', compoundIcon: 'info'\n },\n [STATES_ENUM.REQUESTED]: {\n color: 'info', icon: 'tag', label: 'Requested', compoundIcon: 'info'\n },\n [STATES_ENUM.RESTARTING]: {\n color: 'info', icon: 'adjust', label: 'Restarting', compoundIcon: 'info'\n },\n [STATES_ENUM.RESTORING]: {\n color: 'info', icon: 'medicalcross', label: 'Restoring', compoundIcon: 'info'\n },\n [STATES_ENUM.RESIZING]: {\n color: 'warning', icon: 'dot', label: 'Resizing', compoundIcon: 'warning'\n },\n [STATES_ENUM.RUNNING]: {\n color: 'success', icon: 'dot-open', label: 'Running', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.SKIP]: {\n color: 'info', icon: 'dot-open', label: 'Skip', compoundIcon: 'info'\n },\n [STATES_ENUM.SKIPPED]: {\n color: 'info', icon: 'dot-open', label: 'Skipped', compoundIcon: 'info'\n },\n [STATES_ENUM.STARTING]: {\n color: 'info', icon: 'adjust', label: 'Starting', compoundIcon: 'info'\n },\n [STATES_ENUM.STOPPED]: {\n color: 'error', icon: 'dot', label: 'Stopped', compoundIcon: 'error'\n },\n [STATES_ENUM.STOPPING]: {\n color: 'info', icon: 'adjust', label: 'Stopping', compoundIcon: 'info'\n },\n [STATES_ENUM.SUCCEEDED]: {\n color: 'success', icon: 'dot-dotfill', label: 'Succeeded', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.SUCCESS]: {\n color: 'success', icon: 'dot-open', label: 'Success', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.SUCCESSFUL]: {\n color: 'success', icon: 'dot-open', label: 'Successful'\n },\n [STATES_ENUM.SUPERSEDED]: {\n color: 'info', icon: 'dot-open', label: 'Superseded', compoundIcon: 'info'\n },\n [STATES_ENUM.SUSPENDED]: {\n color: 'info', icon: 'pause', label: 'Suspended', compoundIcon: 'info'\n },\n [STATES_ENUM.UNAVAILABLE]: {\n color: 'error', icon: 'error', label: 'Unavailable', compoundIcon: 'error'\n },\n [STATES_ENUM.UNHEALTHY]: {\n color: 'error', icon: 'error', label: 'Unhealthy', compoundIcon: 'error'\n },\n [STATES_ENUM.UNINSTALLED]: {\n color: 'info', icon: 'trash', label: 'Uninstalled', compoundIcon: 'info'\n },\n [STATES_ENUM.UNINSTALLING]: {\n color: 'info', icon: 'trash', label: 'Uninstalling', compoundIcon: 'info'\n },\n [STATES_ENUM.UNKNOWN]: {\n color: 'warning', icon: 'x', label: 'Unknown', compoundIcon: 'warning'\n },\n [STATES_ENUM.UNTRIGGERED]: {\n color: 'success', icon: 'tag', label: 'Untriggered', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.UPDATING]: {\n color: 'warning', icon: 'tag', label: 'Updating', compoundIcon: 'warning'\n },\n [STATES_ENUM.WAIT_APPLIED]: {\n color: 'info', icon: 'tag', label: 'Wait Applied', compoundIcon: 'info'\n },\n [STATES_ENUM.WAIT_CHECKIN]: {\n color: 'warning', icon: 'tag', label: 'Wait Checkin', compoundIcon: 'warning'\n },\n [STATES_ENUM.WAITING]: {\n color: 'info', icon: 'tag', label: 'Waiting', compoundIcon: 'info'\n },\n [STATES_ENUM.WARNING]: {\n color: 'warning', icon: 'error', label: 'Warning', compoundIcon: 'warning'\n },\n [STATES_ENUM.DEPLOYING]: {\n color: 'info', icon: 'info', label: 'Deploying', compoundIcon: 'info'\n },\n};\n\nexport function getStatesByType(type = 'info') {\n const out = {\n info: [],\n error: [],\n success: [],\n warning: [],\n unknown: [],\n };\n\n forIn(STATES, (state, stateKey) => {\n if (state.color) {\n if (out[state.color]) {\n out[state.color].push(stateKey);\n } else {\n out.unknown.push(stateKey);\n }\n }\n });\n\n return out;\n}\n\nconst SORT_ORDER = {\n error: 1,\n warning: 2,\n info: 3,\n success: 4,\n ready: 5,\n notready: 6,\n other: 7,\n};\n\nexport function getStateLabel(state) {\n const lowercaseState = state.toLowerCase();\n\n return STATES[lowercaseState] ? STATES[lowercaseState].label : STATES[STATES_ENUM.UNKNOWN].label;\n}\n\nexport function colorForState(state, isError, isTransitioning) {\n if ( isError ) {\n return 'text-error';\n }\n\n if ( isTransitioning ) {\n return 'text-info';\n }\n\n const key = (state || 'active').toLowerCase();\n let color;\n\n if ( STATES[key] && STATES[key].color ) {\n color = maybeFn.call(this, STATES[key].color);\n }\n\n if ( !color ) {\n color = DEFAULT_COLOR;\n }\n\n return `text-${ color }`;\n}\n\nexport function stateDisplay(state) {\n // @TODO use translations\n const key = (state || 'active').toLowerCase();\n\n if ( REMAP_STATE[key] ) {\n return REMAP_STATE[key];\n }\n\n return key.split(/-/).map(ucFirst).join('-');\n}\n\nexport function primaryDisplayStatusFromCount(status) {\n const statusOrder = [\n STATES_ENUM.ERROR,\n STATES_ENUM.FAILED,\n STATES_ENUM.WARNING,\n STATES_ENUM.MODIFIED,\n STATES_ENUM.WAIT_APPLIED,\n STATES_ENUM.ORPHANED,\n STATES_ENUM.MISSING,\n STATES_ENUM.UNKNOWN,\n STATES_ENUM.NOT_READY,\n STATES_ENUM.READY,\n ];\n\n // sort status by order of statusOrder\n const existingStatuses = Object.keys(status).filter((key) => {\n return status[key] > 0 && statusOrder.includes(key.toLowerCase());\n }).sort((a, b) => statusOrder.indexOf(a.toLowerCase()) - statusOrder.indexOf(b.toLowerCase()));\n\n return existingStatuses[0] ? existingStatuses[0] : STATES_ENUM.UNKNOWN;\n}\n\nexport function stateSort(color, display) {\n color = color.replace(/^(text|bg)-/, '');\n\n return `${ SORT_ORDER[color] || SORT_ORDER['other'] } ${ display }`;\n}\n\nexport function isConditionReadyAndWaiting(condition) {\n if (!condition) {\n return false;\n }\n\n return condition?.type?.toLowerCase() === 'ready' && condition?.reason?.toLowerCase() === 'waiting';\n}\n\nfunction maybeFn(val) {\n if ( isFunction(val) ) {\n return val(this);\n }\n\n return val;\n}\n\nexport default class Resource {\n constructor(data, ctx, rehydrateNamespace = null, setClone = false) {\n for ( const k in data ) {\n this[k] = data[k];\n }\n\n Object.defineProperty(this, '$ctx', {\n value: ctx,\n enumerable: false,\n });\n\n if ( rehydrateNamespace ) {\n Object.defineProperty(this, '__rehydrate', {\n value: rehydrateNamespace,\n enumerable: true,\n configurable: true\n });\n }\n\n if ( setClone ) {\n Object.defineProperty(this, '__clone', {\n value: true,\n enumerable: true,\n configurable: true,\n writable: true\n });\n }\n }\n\n get '$getters'() {\n return this.$ctx.getters;\n }\n\n get '$rootGetters'() {\n return this.$ctx.rootGetters;\n }\n\n get '$dispatch'() {\n return this.$ctx.dispatch;\n }\n\n get '$state'() {\n return this.$ctx.state;\n }\n\n get '$rootState'() {\n return this.$ctx.rootState;\n }\n\n get customValidationRules() {\n return [\n /**\n * Essentially a fake schema object with additional params to extend validation\n *\n * @param {nullable} Value is nullable\n * @param {path} Path on the resource to the value to validate\n * @param {required} Value required\n * @param {requiredIf} Value required if value at path not empty\n * @param {translationKey} Human readable display key for param in path e.g. metadata.name === Name\n * @param {type} Type of field to validate\n * @param {validators} array of strings where item is name of exported validator function in custom-validators, args can be passed by prepending args separated by colon. e.g maxLength:63\n */\n /* {\n nullable: false,\n path: 'spec.ports',\n required: true,\n type: 'array',\n validators: ['servicePort'],\n } */\n ];\n }\n\n get _key() {\n const m = this.metadata;\n\n if ( m ) {\n if ( m.uid ) {\n return m.uid;\n }\n\n if ( m.namespace ) {\n return `${ this.type }/${ m.namespace }/${ m.name }`;\n }\n }\n\n if ( this.id ) {\n return `${ this.type }/${ this.id }`;\n }\n\n return `${ this.type }/${ Math.random() }`;\n }\n\n get schema() {\n return this.$getters['schemaFor'](this.type);\n }\n\n toString() {\n return `[${ this.type }: ${ this.id }]`;\n }\n\n get typeDisplay() {\n const schema = this.schema;\n\n if ( schema ) {\n return this.$rootGetters['type-map/labelFor'](schema);\n }\n\n return '?';\n }\n\n get nameDisplay() {\n return this.displayName || this.spec?.displayName || this.metadata?.annotations?.[NORMAN_NAME] || this.name || this.metadata?.name || this.id;\n }\n\n get nameSort() {\n return sortableNumericSuffix(this.nameDisplay).toLowerCase();\n }\n\n get namespacedName() {\n const namespace = this.metadata?.namespace;\n const name = this.nameDisplay;\n\n if ( namespace ) {\n return `${ namespace }:${ name }`;\n }\n\n return name;\n }\n\n get namespacedNameSort() {\n return sortableNumericSuffix(this.namespacedName).toLowerCase();\n }\n\n get groupByLabel() {\n const name = this.metadata?.namespace;\n let out;\n\n if ( name ) {\n out = this.t('resourceTable.groupLabel.namespace', { name: escapeHtml(name) });\n } else {\n out = this.t('resourceTable.groupLabel.notInANamespace');\n }\n\n return out;\n }\n\n setLabels(/* val */) {\n throw new Error('Implement setLabels in subclass');\n }\n\n setLabel(/* key, val */) {\n throw new Error('Implement setLabel in subclass');\n }\n\n setAnnotations(val) {\n throw new Error('Implement setAnnotations in subclass');\n }\n\n setAnnotation(key, val) {\n throw new Error('Implement setAnnotation in subclass');\n }\n\n // You can override the displayed by providing your own stateDisplay (and possibly using the function exported above)\n get stateDisplay() {\n return stateDisplay(this.state);\n }\n\n get stateColor() {\n return colorForState.call(\n this,\n this.state,\n this.stateObj?.error,\n this.stateObj?.transitioning\n );\n }\n\n get stateBackground() {\n return this.stateColor.replace('text-', 'bg-');\n }\n\n get stateIcon() {\n let trans = false;\n let error = false;\n\n if ( this.metadata && this.metadata.state ) {\n trans = this.metadata.state.transitioning;\n error = this.metadata.state.error;\n }\n\n if ( trans ) {\n return 'icon icon-spinner icon-spin';\n }\n\n if ( error ) {\n return 'icon icon-error';\n }\n\n const key = (this.state || '').toLowerCase();\n let icon;\n\n if ( STATES[key] && STATES[key].icon ) {\n icon = maybeFn.call(this, STATES[key].icon);\n }\n\n if ( !icon ) {\n icon = DEFAULT_ICON;\n }\n\n return `icon icon-${ icon }`;\n }\n\n get stateSort() {\n return stateSort(this.stateColor, this.stateDisplay);\n }\n\n get stateDescription() {\n const trans = this.stateObj?.transitioning || false;\n const error = this.stateObj?.error || false;\n const message = this.stateObj?.message;\n\n return trans || error ? ucFirst(message) : '';\n }\n\n get stateObj() {\n return this.metadata?.state;\n }\n\n // ------------------------------------------------------------------\n\n waitForTestFn(fn, msg, timeoutMs, intervalMs) {\n return waitFor(() => fn.apply(this), msg, timeoutMs || DEFAULT_WAIT_TMIMEOUT, intervalMs || DEFAULT_WAIT_INTERVAL, true);\n }\n\n waitForState(state, timeout, interval) {\n return this.waitForTestFn(() => {\n return (this.state || '').toLowerCase() === state.toLowerCase();\n }, `state=${ state }`, timeout, interval);\n }\n\n waitForTransition() {\n return this.waitForTestFn(() => {\n return !this.transitioning;\n }, 'transition completion', undefined, undefined);\n }\n\n waitForAction(name) {\n return this.waitForTestFn(() => {\n return this.hasAction(name);\n }, `action=${ name }`, undefined, undefined);\n }\n\n waitForLink(name) {\n return this.waitForTestFn(() => {\n return this.hasLink(name);\n }, `link=${ name }`, undefined, undefined);\n }\n\n hasCondition(condition) {\n return this.isCondition(condition, null);\n }\n\n isCondition(condition, withStatus = 'True') {\n if ( !this.status || !this.status.conditions ) {\n return false;\n }\n\n const entry = findBy((this.status.conditions || []), 'type', condition);\n\n if ( !entry ) {\n return false;\n }\n\n if ( !withStatus ) {\n return true;\n }\n\n return (entry.status || '').toLowerCase() === `${ withStatus }`.toLowerCase();\n }\n\n waitForCondition(name, withStatus = 'True', timeoutMs = DEFAULT_WAIT_TMIMEOUT, intervalMs = DEFAULT_WAIT_INTERVAL) {\n return this.waitForTestFn(() => {\n return this.isCondition(name, withStatus);\n }, `condition ${ name }=${ withStatus }`, timeoutMs, intervalMs);\n }\n\n // ------------------------------------------------------------------\n\n get availableActions() {\n const all = this._availableActions;\n\n // Remove disabled items and consecutive dividers\n let last = null;\n const out = all.filter((item) => {\n if ( item.enabled === false ) {\n return false;\n }\n\n const cur = item.divider;\n const ok = !cur || (cur && !last);\n\n last = cur;\n\n return ok;\n });\n\n // Remove dividers at the beginning\n while ( out.length && out[0].divider ) {\n out.shift();\n }\n\n // Remove dividers at the end\n while ( out.length && out[out.length - 1].divider ) {\n out.pop();\n }\n\n // Remove consecutive dividers in the middle\n for ( let i = 1 ; i < out.length ; i++ ) {\n if ( out[i].divider && out[i - 1].divider ) {\n removeAt(out, i, 1);\n i--;\n }\n }\n\n return out;\n }\n\n // You can add custom actions by overriding your own availableActions (and probably reading super._availableActions)\n get _availableActions() {\n // get menu actions available by plugins configuration\n const currentRoute = this.currentRouter().app._route;\n const extensionMenuActions = getApplicableExtensionEnhancements(this.$rootState, ExtensionPoint.ACTION, ActionLocation.TABLE, currentRoute, this);\n\n const all = [\n { divider: true },\n {\n action: this.canUpdate ? 'goToEdit' : 'goToViewConfig',\n label: this.t(this.canUpdate ? 'action.edit' : 'action.view'),\n icon: 'icon icon-edit',\n enabled: this.canCustomEdit,\n },\n {\n action: this.canEditYaml ? 'goToEditYaml' : 'goToViewYaml',\n label: this.t(this.canEditYaml ? 'action.editYaml' : 'action.viewYaml'),\n icon: 'icon icon-file',\n enabled: this.canYaml,\n },\n {\n action: (this.canCustomEdit ? 'goToClone' : 'cloneYaml'),\n label: this.t('action.clone'),\n icon: 'icon icon-copy',\n enabled: this.canClone && this.canCreate && (this.canCustomEdit || this.canYaml),\n },\n { divider: true },\n {\n action: 'download',\n label: this.t('action.download'),\n icon: 'icon icon-download',\n bulkable: true,\n bulkAction: 'downloadBulk',\n enabled: this.canYaml,\n weight: -9,\n },\n {\n action: 'viewInApi',\n label: this.t('action.viewInApi'),\n icon: 'icon icon-external-link',\n enabled: this.canViewInApi,\n },\n {\n action: 'promptRemove',\n altAction: 'remove',\n label: this.t('action.remove'),\n icon: 'icon icon-trash',\n bulkable: true,\n enabled: this.canDelete,\n bulkAction: 'promptRemove',\n weight: -10, // Delete always goes last\n },\n ];\n\n // Extension actions get added to the end, so add a divider if there are any\n if (extensionMenuActions.length) {\n // Add a divider first\n all.push({ divider: true });\n\n extensionMenuActions.forEach((action) => {\n const newActionInstance = { ...action };\n\n const enabledFn = newActionInstance.enabled;\n const typeofEnabled = typeof enabledFn;\n\n switch (typeofEnabled) {\n case 'undefined':\n newActionInstance.enabled = true;\n break;\n case 'function':\n Object.defineProperty(newActionInstance, 'enabled', { get: () => enabledFn(this) });\n break;\n case 'boolean':\n // no op, just use it directly\n break;\n default:\n // unsupported value\n console.warn(`Unsupported 'enabled' property type for action: ${ action.label || action.labelKey }` ); // eslint-disable-line no-console\n delete newActionInstance.enabled;\n break;\n }\n\n all.push(newActionInstance);\n });\n }\n\n return all;\n }\n\n // ------------------------------------------------------------------\n\n get canDelete() {\n return this._canDelete;\n }\n\n get _canDelete() {\n return this.hasLink('remove') && this.$rootGetters['type-map/optionsFor'](this.type).isRemovable;\n }\n\n get canClone() {\n return true;\n }\n\n get canUpdate() {\n return this.hasLink('update') && this.$rootGetters['type-map/optionsFor'](this.type).isEditable;\n }\n\n get canCustomEdit() {\n return this.$rootGetters['type-map/hasCustomEdit'](this.type, this.id);\n }\n\n get canCreate() {\n if ( this.schema && !this.schema?.collectionMethods.find((x) => x.toLowerCase() === 'post') ) {\n return false;\n }\n\n return this.$rootGetters['type-map/optionsFor'](this.type).isCreatable;\n }\n\n get canViewInApi() {\n return this.hasLink('self') && this.$rootGetters['prefs/get'](VIEW_IN_API);\n }\n\n get canYaml() {\n return this.hasLink('view');\n }\n\n get canEditYaml() {\n return this.schema?.resourceMethods?.find((x) => x === 'blocked-PUT') ? false : this.canUpdate;\n }\n\n // ------------------------------------------------------------------\n\n hasLink(linkName) {\n return !!this.linkFor(linkName);\n }\n\n linkFor(linkName) {\n return (this.links || {})[linkName];\n }\n\n followLink(linkName, opt = {}) {\n if ( !opt.url ) {\n opt.url = (this.links || {})[linkName];\n }\n\n if ( opt.urlSuffix ) {\n opt.url += opt.urlSuffix;\n }\n\n if ( !opt.url ) {\n throw new Error(`Unknown link ${ linkName } on ${ this.type } ${ this.id }`);\n }\n\n return this.$dispatch('request', { opt, type: this.type } );\n }\n\n // ------------------------------------------------------------------\n\n hasAction(actionName) {\n return !!this.actionLinkFor(actionName);\n }\n\n actionLinkFor(actionName) {\n return (this.actions || this.actionLinks || {})[actionName];\n }\n\n doAction(actionName, body, opt = {}) {\n return this.$dispatch('resourceAction', {\n resource: this,\n actionName,\n body,\n opt,\n });\n }\n\n async doActionGrowl(actionName, body, opt = {}) {\n try {\n await this.$dispatch('resourceAction', {\n resource: this,\n actionName,\n body,\n opt,\n });\n } catch (err) {\n this.$dispatch('growl/fromError', {\n title: this.$rootGetters['i18n/t']('generic.notification.title.error'),\n err: err.data || err,\n }, { root: true });\n }\n }\n\n // ------------------------------------------------------------------\n\n patch(data, opt = {}, merge = false, alertOnError = false) {\n if ( !opt.url ) {\n // Workaround for the links not being correct - view link is the only one that seems correct\n opt.url = this.linkFor('view') || this.linkFor('self');\n }\n\n opt.method = 'patch';\n opt.headers = opt.headers || {};\n\n if (!opt.headers['content-type']) {\n const contentType = merge ? 'application/strategic-merge-patch+json' : 'application/json-patch+json';\n\n opt.headers['content-type'] = contentType;\n }\n opt.data = data;\n\n const dispatch = this.$dispatch('request', { opt, type: this.type } );\n\n return !alertOnError ? dispatch : dispatch.catch((e) => {\n const title = this.t('resource.errors.update', { name: this.name });\n\n console.error(title, e); // eslint-disable-line no-console\n\n this.$dispatch('growl/error', {\n title,\n message: e?.message,\n timeout: 5000\n }, { root: true });\n });\n }\n\n save() {\n return this._save(...arguments);\n }\n\n /**\n * Remove any unwanted properties from the object that will be saved\n */\n cleanForSave(data, forNew) {\n delete data.__rehydrate;\n delete data.__clone;\n\n return data;\n }\n\n /**\n * Allow to handle the response of the save request\n * @param {*} res Full request response\n */\n processSaveResponse(res) { }\n\n async _save(opt = {}) {\n const forNew = !this.id;\n\n const errors = await this.validationErrors(this, opt.ignoreFields);\n\n if (!isEmpty(errors)) {\n return Promise.reject(errors);\n }\n\n if ( this.metadata?.resourceVersion ) {\n this.metadata.resourceVersion = `${ this.metadata.resourceVersion }`;\n }\n\n if ( !opt.url ) {\n if ( forNew ) {\n const schema = this.$getters['schemaFor'](this.type);\n let url = schema.linkFor('collection');\n\n if ( schema.attributes && schema.attributes.namespaced && this.metadata && this.metadata.namespace ) {\n url += `/${ this.metadata.namespace }`;\n }\n\n opt.url = url;\n } else {\n opt.url = this.linkFor('update') || this.linkFor('self');\n }\n }\n\n if ( !opt.method ) {\n opt.method = ( forNew ? 'post' : 'put' );\n }\n\n if ( !opt.headers ) {\n opt.headers = {};\n }\n\n if ( !opt.headers['content-type'] ) {\n opt.headers['content-type'] = 'application/json';\n }\n\n if ( !opt.headers['accept'] ) {\n opt.headers['accept'] = 'application/json';\n }\n\n // @TODO remove this once the API maps steve _type <-> k8s type in both directions\n opt.data = this.toSave() || { ...this };\n\n if (opt.data._type) {\n opt.data.type = opt.data._type;\n }\n\n if (opt.data._name) {\n opt.data.name = opt.data._name;\n }\n\n if (opt.data._labels) {\n opt.data.labels = opt.data._labels;\n }\n\n if (opt.data._annotations) {\n opt.data.annotations = opt.data._annotations;\n }\n\n opt.data = this.cleanForSave(opt.data, forNew);\n\n // handle \"replace\" opt as a query param _replace=true for norman PUT requests\n if (opt?.replace && opt.method === 'put') {\n const argParam = opt.url.includes('?') ? '&' : '?';\n\n opt.url = `${ opt.url }${ argParam }_replace=true`;\n delete opt.replace;\n }\n\n try {\n const res = await this.$dispatch('request', { opt, type: this.type } );\n\n // Allow to process response independently from the related models\n this.processSaveResponse(res);\n\n // Steve sometimes returns Table responses instead of the resource you just saved.. ignore\n if ( res && res.kind !== 'Table') {\n await this.$dispatch('load', { data: res, existing: (forNew ? this : undefined ) });\n }\n } catch (e) {\n if ( this.type && this.id && e?._status === 409) {\n // If there's a conflict, try to load the new version\n await this.$dispatch('find', {\n type: this.type,\n id: this.id,\n opt: { force: true }\n });\n }\n\n return Promise.reject(e);\n }\n\n return this;\n }\n\n remove() {\n return this._remove(...arguments);\n }\n\n async _remove(opt = {}) {\n if ( !opt.url ) {\n opt.url = this.linkFor('self');\n }\n\n opt.method = 'delete';\n\n const res = await this.$dispatch('request', { opt, type: this.type } );\n\n if ( res?._status === 204 ) {\n // If there's no body, assume the resource was immediately deleted\n // and drop it from the store as if a remove event happened.\n await this.$dispatch('ws.resource.remove', { data: this });\n }\n }\n\n // ------------------------------------------------------------------\n\n currentRoute() {\n return window.$nuxt.$route;\n }\n\n currentRouter() {\n return window.$nuxt.$router;\n }\n\n get listLocation() {\n return {\n name: `c-cluster-product-resource`,\n params: {\n product: this.$rootGetters['productId'],\n cluster: this.$rootGetters['clusterId'],\n resource: this.type,\n }\n };\n }\n\n get _detailLocation() {\n const schema = this.$getters['schemaFor'](this.type);\n\n const id = this.id?.replace(/.*\\//, '');\n\n return {\n name: `c-cluster-product-resource${ schema?.attributes?.namespaced ? '-namespace' : '' }-id`,\n params: {\n product: this.$rootGetters['productId'],\n cluster: this.$rootGetters['clusterId'],\n resource: this.type,\n namespace: this.metadata?.namespace,\n id,\n }\n };\n }\n\n get detailLocation() {\n return this._detailLocation;\n }\n\n goToDetail() {\n this.currentRouter().push(this.detailLocation);\n }\n\n goToClone(moreQuery = {}) {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _CLONE,\n [AS]: _UNFLAG,\n ...moreQuery\n };\n\n this.currentRouter().push(location);\n }\n\n goToEdit(moreQuery = {}) {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _EDIT,\n [AS]: _UNFLAG,\n ...moreQuery\n };\n\n this.currentRouter().push(location);\n }\n\n goToViewConfig(moreQuery = {}) {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _VIEW,\n [AS]: _CONFIG,\n ...moreQuery\n };\n\n this.currentRouter().push(location);\n }\n\n goToEditYaml() {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _EDIT,\n [AS]: _YAML\n };\n\n this.currentRouter().push(location);\n }\n\n goToViewYaml() {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _VIEW,\n [AS]: _YAML\n };\n\n this.currentRouter().push(location);\n }\n\n cloneYaml(moreQuery = {}) {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _CLONE,\n [AS]: _YAML,\n ...moreQuery\n };\n\n this.currentRouter().push(location);\n }\n\n async download() {\n const value = await this.followLink('view', { headers: { accept: 'application/yaml' } });\n const data = await this.cleanForDownload(value.data);\n\n downloadFile(`${ this.nameDisplay }.yaml`, data, 'application/yaml');\n }\n\n async downloadBulk(items) {\n const files = {};\n const names = [];\n\n for ( const item of items ) {\n let name = `${ item.nameDisplay }.yaml`;\n let i = 2;\n\n while ( names.includes(name) ) {\n name = `${ item.nameDisplay }_${ i++ }.yaml`;\n }\n\n names.push(name);\n }\n\n await eachLimit(items, 10, (item, idx) => {\n return item.followLink('view', { headers: { accept: 'application/yaml' } } ).then(async(data) => {\n const yaml = data.data || data;\n const cleanedYaml = await this.cleanForDownload(yaml);\n\n files[`resources/${ names[idx] }`] = cleanedYaml;\n });\n });\n\n const zip = await generateZip(files);\n\n downloadFile('resources.zip', zip, 'application/zip');\n }\n\n viewInApi() {\n window.open(this.links.self, '_blank');\n }\n\n promptRemove(resources) {\n if ( !resources ) {\n resources = this;\n }\n\n this.$dispatch('promptRemove', resources);\n }\n\n get confirmRemove() {\n return false;\n }\n\n applyDefaults() {\n }\n\n get urlFromAttrs() {\n const schema = this.$getters['schemaFor'](this.type);\n const { metadata:{ namespace = 'default' } } = this;\n let url = schema.links.collection;\n\n const attributes = schema?.attributes;\n\n if (!attributes) {\n throw new Error('Attributes must be present on the schema');\n }\n const { group, resource } = attributes;\n\n url = `${ url.slice(0, url.indexOf('/v1')) }/apis/${ group }/namespaces/${ namespace }/${ resource }`;\n\n return url;\n }\n\n // convert yaml to object, clean for new if creating/cloning\n // map _type to type\n cleanYaml(yaml, mode = 'edit') {\n try {\n const obj = jsyaml.load(yaml);\n\n if (mode !== 'edit') {\n this.$dispatch(`cleanForNew`, obj);\n }\n\n if (obj._type) {\n obj.type = obj._type;\n delete obj._type;\n }\n const out = jsyaml.dump(obj, { skipInvalid: true });\n\n return out;\n } catch (e) {\n return null;\n }\n }\n\n cleanForNew() {\n this.$dispatch(`cleanForNew`, this);\n }\n\n cleanForDiff() {\n this.$dispatch(`cleanForDiff`, this.toJSON());\n }\n\n async cleanForDownload(yaml) {\n return this.$dispatch(`cleanForDownload`, yaml);\n }\n\n yamlForSave(yaml) {\n try {\n const obj = jsyaml.load(yaml);\n\n if (obj) {\n if (this._type) {\n obj._type = obj.type;\n }\n\n return jsyaml.dump(obj);\n }\n } catch (e) {\n return null;\n }\n }\n\n async saveYaml(yaml) {\n await this._saveYaml(yaml);\n }\n\n async _saveYaml(yaml) {\n /* Multipart support, but need to know the right cluster and work for management store\n and \"apply\" seems to only work for create, not update.\n\n const ary = jsyaml.loadAll(yaml); // will throw on invalid yaml, and return one or more documents (usually one)\n\n if ( ary.length > 1 ) {\n await this.$rootGetters['currentCluster'].doAction('apply', {\n yaml,\n defaultNamespace: this.metadata.namespace,\n });\n }\n\n const parsed = ary[0];\n */\n\n const parsed = jsyaml.load(yaml); // will throw on invalid yaml, and return one or more documents (usually one)\n\n if ( this.schema?.attributes?.namespaced && !parsed.metadata.namespace ) {\n const err = this.$rootGetters['i18n/t']('resourceYaml.errors.namespaceRequired');\n\n throw err;\n }\n\n let res;\n const isCreate = !this.id;\n const headers = {\n 'content-type': 'application/yaml',\n accept: 'application/json',\n };\n\n if ( isCreate ) {\n res = await this.schema.followLink('collection', {\n method: 'POST',\n headers,\n data: yaml\n });\n } else {\n res = await this.followLink('update', {\n method: 'PUT',\n headers,\n data: yaml\n });\n }\n\n await this.$dispatch(`load`, {\n data: res,\n existing: (isCreate ? this : undefined)\n });\n\n if (this.isSpoofed) {\n await this.$dispatch('cluster/findAll', { type: this.type, opt: { force: true } }, { root: true });\n }\n }\n\n get modelValidationRules() {\n const rules = [];\n\n const customValidationRulesets = this?.customValidationRules\n .filter((rule) => !!rule.validators || !!rule.required)\n .map((rule) => {\n const formRules = formRulesGenerator(this.t, { displayKey: rule?.translationKey ? this.t(rule.translationKey) : 'Value' });\n\n return {\n path: rule.path,\n rules: [\n ...(rule.validators || []),\n ...rule.required ? ['required'] : [],\n ...['dnsLabel', 'dnsLabelRestricted', 'hostname'].includes(rule.type) ? [rule.type] : []\n ]\n .map((rule) => {\n if (rule.includes(':')) {\n const [ruleKey, ruleArg] = rule.split(':');\n\n return formRules[ruleKey](ruleArg);\n }\n\n return formRules[rule];\n }\n )\n .filter((rule) => !!rule)\n };\n })\n .filter((ruleset) => ruleset.rules.length > 0);\n\n rules.push(...customValidationRulesets);\n\n return rules;\n }\n\n customValidationErrors(data, ignorePaths = []) {\n const errors = [];\n\n let { customValidationRules } = this;\n\n if (!isEmpty(customValidationRules)) {\n if (isFunction(customValidationRules)) {\n customValidationRules = customValidationRules();\n }\n\n customValidationRules.filter((rule) => !ignorePaths.includes(rule.path)).forEach((rule) => {\n const {\n path,\n requiredIf: requiredIfPath,\n validators = [],\n type: fieldType,\n } = rule;\n let pathValue = get(data, path);\n\n const parsedRules = compact((validators || []));\n let displayKey = path;\n\n if (rule.translationKey && this.$rootGetters['i18n/exists'](rule.translationKey)) {\n displayKey = this.t(rule.translationKey);\n }\n\n if (isString(pathValue)) {\n pathValue = pathValue.trim();\n }\n if (requiredIfPath) {\n const reqIfVal = get(data, requiredIfPath);\n\n if (!isEmpty(reqIfVal) && (isEmpty(pathValue) && pathValue !== 0)) {\n errors.push(this.t('validation.required', { key: displayKey }));\n }\n }\n\n validateLength(pathValue, rule, displayKey, this.$rootGetters, errors);\n validateChars(pathValue, rule, displayKey, this.$rootGetters, errors);\n\n if ( !isEmpty(pathValue) && DNS_LIKE_TYPES.includes(fieldType) ) {\n // DNS types should be lowercase\n const tolower = (pathValue || '').toLowerCase();\n\n if ( tolower !== pathValue ) {\n pathValue = tolower;\n\n Vue.set(data, path, pathValue);\n }\n\n errors.push(...validateDnsLikeTypes(pathValue, fieldType, displayKey, this.$rootGetters, errors));\n }\n\n parsedRules.forEach((validator) => {\n const validatorAndArgs = validator.split(':');\n const validatorName = validatorAndArgs.slice(0, 1);\n const validatorArgs = validatorAndArgs.slice(1) || null;\n const validatorExists = Object.prototype.hasOwnProperty.call(CustomValidators, validatorName);\n\n if (!isEmpty(validatorName) && validatorExists) {\n CustomValidators[validatorName](pathValue, this.$rootGetters, errors, validatorArgs, displayKey, data);\n } else if (!isEmpty(validatorName) && !validatorExists) {\n // Check if validator is imported from plugin\n const pluginValidator = this.$rootState.$plugin?.getValidator(validatorName);\n\n if (pluginValidator) {\n pluginValidator(pathValue, this.$rootGetters, errors, validatorArgs, displayKey, data);\n } else {\n // eslint-disable-next-line\n console.warn(this.t('validation.custom.missing', { validatorName }));\n }\n }\n });\n });\n }\n\n return errors;\n }\n\n validationErrors(data = this, ignoreFields) {\n const errors = [];\n const {\n type: originalType,\n schema\n } = data;\n const type = normalizeType(originalType);\n\n if ( !originalType ) {\n // eslint-disable-next-line\n console.warn(this.t('validation.noType'), data);\n\n return errors;\n }\n\n if ( !schema ) {\n // eslint-disable-next-line\n // console.warn(this.t('validation.noSchema'), originalType, data);\n\n return errors;\n }\n\n const fields = schema.resourceFields || {};\n const keys = Object.keys(fields);\n let field, key, val, displayKey;\n\n for ( let i = 0 ; i < keys.length ; i++ ) {\n const fieldErrors = [];\n\n key = keys[i];\n field = fields[key];\n val = get(data, key);\n displayKey = displayKeyFor(type, key, this.$rootGetters);\n\n const fieldType = field?.type ? normalizeType(field.type) : null;\n const valIsString = isString(val);\n\n if ( ignoreFields && ignoreFields.includes(key) ) {\n continue;\n }\n\n if ( val === undefined ) {\n val = null;\n }\n\n if (valIsString) {\n if (fieldType) {\n Vue.set(data, key, coerceStringTypeToScalarType(val, fieldType));\n }\n\n // Empty strings on nullable string fields -> null\n if ( field.nullable && val.length === 0 && STRING_LIKE_TYPES.includes(fieldType)) {\n val = null;\n\n Vue.set(data, key, val);\n }\n }\n if (fieldType === 'boolean') {\n validateBoolean(val, field, displayKey, this.$rootGetters, fieldErrors);\n } else {\n validateLength(val, field, displayKey, this.$rootGetters, fieldErrors);\n validateChars(val, field, displayKey, this.$rootGetters, fieldErrors);\n }\n\n if (fieldErrors.length > 0) {\n fieldErrors.push(this.t('validation.required', { key: displayKey }));\n errors.push(...fieldErrors);\n continue;\n }\n\n // IDs claim to be these but are lies...\n if ( key !== 'id' && !isEmpty(val) && DNS_LIKE_TYPES.includes(fieldType) ) {\n // DNS types should be lowercase\n const tolower = (val || '').toLowerCase();\n\n if ( tolower !== val ) {\n val = tolower;\n\n Vue.set(data, key, val);\n }\n\n fieldErrors.push(...validateDnsLikeTypes(val, fieldType, displayKey, this.$rootGetters, fieldErrors));\n }\n errors.push(...fieldErrors);\n }\n\n return uniq([...errors, ...this.customValidationErrors(data)]);\n }\n\n get ownersByType() {\n const ownerReferences = this.metadata?.ownerReferences || [];\n const ownersByType = {};\n\n ownerReferences.forEach((owner) => {\n if (!ownersByType[owner.kind]) {\n ownersByType[owner.kind] = [owner];\n } else {\n ownersByType[owner.kind].push(owner);\n }\n });\n\n return ownersByType;\n }\n\n get owners() {\n const owners = [];\n\n for ( const kind in this.ownersByType) {\n const schema = this.$rootGetters['cluster/schema'](kind);\n\n if (schema) {\n const type = schema.id;\n const allOfResourceType = this.$rootGetters['cluster/all']( type );\n\n this.ownersByType[kind].forEach((resource, idx) => {\n const resourceInstance = allOfResourceType.find((resourceByType) => resourceByType?.metadata?.uid === resource.uid);\n\n if (resourceInstance) {\n owners.push(resourceInstance);\n }\n });\n }\n }\n\n return owners;\n }\n\n get details() {\n return this._details;\n }\n\n get _details() {\n const details = [];\n\n if (this.owners?.length > 0) {\n details.push({\n label: this.t('resourceDetail.detailTop.ownerReferences', { count: this.owners.length }),\n formatter: 'ListLinkDetail',\n content: this.owners.map((owner) => ({\n key: owner.id,\n row: owner,\n col: {},\n value: owner.metadata.name\n }))\n });\n }\n\n if (get(this, 'metadata.deletionTimestamp')) {\n details.push({\n label: this.t('resourceDetail.detailTop.deleted'),\n formatter: 'LiveDate',\n formatterOpts: { addSuffix: true },\n content: get(this, 'metadata.deletionTimestamp')\n });\n }\n\n return details;\n }\n\n get t() {\n return this.$rootGetters['i18n/t'];\n }\n\n // Returns array of MODELS that own this resource (async, network call)\n findOwners() {\n return this._getRelationship('owner', 'from');\n }\n\n // Returns array of {type, namespace, id} objects that own this resource (sync)\n getOwners() {\n return this._getRelationship('owner', 'from');\n }\n\n findOwned() {\n return this._findRelationship('owner', 'to');\n }\n\n _relationshipsFor(rel, direction) {\n const out = { selectors: [], ids: [] };\n\n if ( !this.metadata?.relationships?.length ) {\n return out;\n }\n\n for ( const r of this.metadata.relationships ) {\n if ( rel !== 'any' && r.rel !== rel ) {\n continue;\n }\n\n if ( !r[`${ direction }Type`] ) {\n continue;\n }\n\n if ( r.selector ) {\n addObjects(out.selectors, {\n type: r.toType,\n namespace: r.toNamespace,\n selector: r.selector\n });\n } else {\n const type = r[`${ direction }Type`];\n let namespace = r[`${ direction }Namespace`];\n let name = r[`${ direction }Id`];\n\n if ( !namespace && name.includes('/') ) {\n const idx = name.indexOf('/');\n\n namespace = name.substr(0, idx);\n name = name.substr(idx + 1);\n }\n\n const id = (namespace ? `${ namespace }/` : '') + name;\n\n addObject(out.ids, {\n type,\n namespace,\n name,\n id,\n });\n }\n }\n\n return out;\n }\n\n _getRelationship(rel, direction) {\n const res = this._relationshipsFor(rel, direction);\n\n if ( res.selectors?.length ) {\n // eslint-disable-next-line no-console\n console.warn('Sync request for a relationship that is a selector');\n }\n\n return res.ids || [];\n }\n\n async _findRelationship(rel, direction) {\n const { selectors, ids } = this._relationshipsFor(rel, direction);\n const out = [];\n\n for ( const sel of selectors ) {\n const matching = await this.$dispatch('findMatching', sel);\n\n addObjects(out, matching.data);\n }\n\n for ( const obj of ids ) {\n const { type, id } = obj;\n let matching = this.$getters['byId'](type, id);\n\n if ( !matching ) {\n try {\n matching = await this.$dispatch('find', { type, id });\n } catch {\n }\n }\n if (matching) {\n addObject(out, matching);\n }\n }\n\n return out;\n }\n\n get shortId() {\n const splitId = this.id.split('/');\n\n return splitId.length > 1 ? splitId[1] : splitId[0];\n }\n\n toJSON() {\n const out = {};\n const keys = Object.keys(this);\n\n for ( const k of keys ) {\n if ( this[k]?.toJSON ) {\n out[k] = this[k].toJSON();\n } else {\n out[k] = clone(this[k]);\n }\n }\n\n return out;\n }\n\n /**\n * Allow models to override the object that is sent when saving this resource\n */\n toSave() {\n return undefined;\n }\n\n get creationTimestamp() {\n return this.metadata?.creationTimestamp;\n }\n\n /**\n * Allows model to specify JSON Paths that should be folded in the YAML editor by default\n */\n get yamlFolding() {\n return [];\n }\n}\n","import { ANNOTATIONS_TO_IGNORE_REGEX, LABELS_TO_IGNORE_REGEX } from '@shell/config/labels-annotations';\nimport omitBy from 'lodash/omitBy';\nimport pickBy from 'lodash/pickBy';\nimport Vue from 'vue';\nimport { matchesSomeRegex } from '@shell/utils/string';\nimport Resource from '@shell/plugins/dashboard-store/resource-class';\n\n// these are defined elsewhere in Steve models and will cause the error \"Cannot set property of [object Object] which has only a getter\" if defined at top-level\nexport function cleanHybridResources(data) {\n const potentialNormanHoldovers = ['state', 'name', 'description', 'labels', 'annotations'];\n\n potentialNormanHoldovers.forEach((key) => delete data[key]);\n\n return data;\n}\n\nexport default class HybridModel extends Resource {\n constructor(data, ctx, rehydrateNamespace = null, setClone = false) {\n const cleanedData = cleanHybridResources(data);\n\n super(cleanedData, ctx, rehydrateNamespace, setClone);\n }\n\n get labels() {\n const all = this.metadata?.labels || {};\n\n return omitBy(all, (value, key) => {\n return matchesSomeRegex(key, LABELS_TO_IGNORE_REGEX);\n });\n }\n\n setLabels(val) {\n if ( !this.metadata ) {\n this.metadata = {};\n }\n\n const all = this.metadata.labels || {};\n const wasIgnored = pickBy(all, (value, key) => {\n return matchesSomeRegex(key, LABELS_TO_IGNORE_REGEX);\n });\n\n Vue.set(this.metadata, 'labels', { ...wasIgnored, ...val });\n }\n\n setLabel(key, val) {\n if ( val ) {\n if ( !this.metadata ) {\n this.metadata = {};\n }\n\n if ( !this.metadata.labels ) {\n this.metadata.labels = {};\n }\n\n Vue.set(this.metadata.labels, key, val);\n } else if ( this.metadata?.labels ) {\n Vue.set(this.metadata.labels, key, undefined);\n delete this.metadata.labels[key];\n }\n }\n\n get annotations() {\n const all = this.metadata?.annotations || {};\n\n return omitBy(all, (value, key) => {\n return matchesSomeRegex(key, ANNOTATIONS_TO_IGNORE_REGEX);\n });\n }\n\n setAnnotations(val) {\n if ( !this.metadata ) {\n this.metadata = {};\n }\n\n const all = this.metadata.annotations || {};\n const wasIgnored = pickBy(all, (value, key) => {\n return matchesSomeRegex(key, ANNOTATIONS_TO_IGNORE_REGEX);\n });\n\n Vue.set(this.metadata, 'annotations', { ...wasIgnored, ...val });\n }\n\n setAnnotation(key, val) {\n if ( val ) {\n if ( !this.metadata ) {\n this.metadata = {};\n }\n\n if ( !this.metadata.annotations ) {\n this.metadata.annotations = {};\n }\n\n Vue.set(this.metadata.annotations, key, val);\n } else if ( this.metadata?.annotations ) {\n Vue.set(this.metadata.annotations, key, undefined);\n delete this.metadata.annotations[key];\n }\n }\n\n get state() {\n return this.stateObj?.name || 'unknown';\n }\n}\n","import { DESCRIPTION } from '@shell/config/labels-annotations';\nimport HybridModel from './hybrid-class';\nimport { NEVER_ADD } from '@shell/utils/create-yaml';\nimport { deleteProperty } from '@shell/utils/object';\n\n// Some fields that are removed for YAML (NEVER_ADD) are required via API\nconst STEVE_ADD = [\n 'metadata.resourceVersion',\n 'metadata.fields',\n 'metadata.clusterName',\n 'metadata.deletionGracePeriodSeconds',\n 'metadata.generateName',\n];\nconst STEVE_NEVER_SAVE = NEVER_ADD.filter((na) => !STEVE_ADD.includes(na));\n\nexport default class SteveModel extends HybridModel {\n get name() {\n return this.metadata?.name || this._name;\n }\n\n get namespace() {\n return this.metadata?.namespace;\n }\n\n get description() {\n return this.metadata?.annotations?.[DESCRIPTION] || this.spec?.description || this._description;\n }\n\n /**\n * Set description based on the type of model available with private fallback\n */\n set description(value) {\n if (this.metadata?.annotations) {\n this.metadata.annotations[DESCRIPTION] = value;\n }\n\n if (this.spec) {\n this.spec.description = value;\n }\n\n this._description = value;\n }\n\n cleanForSave(data, forNew) {\n const val = super.cleanForSave(data);\n\n for (const field of STEVE_NEVER_SAVE) {\n deleteProperty(val, field);\n }\n\n return val;\n }\n}\n","export { default as Banner } from './Banner.vue';\n","export * from \"-!../../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=1&id=940c6fb8&prod&lang=scss\"","var baseFor = require('./_baseFor'),\n castFunction = require('./_castFunction'),\n keysIn = require('./keysIn');\n\n/**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\nfunction forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, castFunction(iteratee), keysIn);\n}\n\nmodule.exports = forIn;\n","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","import SteveModel from '@shell/plugins/steve/steve-class';\nimport { CAPI } from '@shell/config/types';\nimport { BLANK_CLUSTER, QUERY_PARAMS } from '../types/capi';\n\nexport default class ClusterClass extends SteveModel {\n get _availableActions() {\n const out = super._availableActions;\n\n out.unshift({\n action: 'goToCreateCluster',\n label: this.t('action.createCluster'),\n icon: 'icon icon-plus',\n enabled: true\n });\n\n return out;\n }\n\n goToCreateCluster() {\n const escapedID = escape(this.id);\n const location = {\n name: 'c-cluster-product-resource-create',\n params: {\n cluster: BLANK_CLUSTER,\n product: 'manager',\n resource: CAPI.CAPI_CLUSTER\n },\n query: { [QUERY_PARAMS.CLASS]: escapedID }\n };\n\n this.currentRouter().push(location);\n }\n}\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".manual-refresh[data-v-940c6fb8]{height:40px}.advanced-filter-group[data-v-940c6fb8]{position:relative;margin-left:10px}.advanced-filter-group .advanced-filter-container[data-v-940c6fb8]{position:absolute;top:38px;right:0;width:300px;border:1px solid var(--primary);background-color:var(--body-bg);padding:20px;z-index:2}.advanced-filter-group .advanced-filter-container .middle-block[data-v-940c6fb8]{display:flex;align-items:center;margin-top:20px}.advanced-filter-group .advanced-filter-container .middle-block span[data-v-940c6fb8]{margin-right:20px}.advanced-filter-group .advanced-filter-container .middle-block button[data-v-940c6fb8]{margin-left:20px}.advanced-filter-group .advanced-filter-container .bottom-block[data-v-940c6fb8]{display:flex;align-items:center;margin-top:40px;justify-content:space-between}.advanced-filters-applied[data-v-940c6fb8]{display:inline-flex;margin:0;padding:0;list-style:none;max-width:100%;flex-wrap:wrap;justify-content:flex-end}.advanced-filters-applied li[data-v-940c6fb8]{margin:0 20px 10px 0;padding:2px 5px;border:1px solid;display:flex;align-items:center;position:relative;height:20px}.advanced-filters-applied li[data-v-940c6fb8]:nth-child(4n+1){border-color:var(--success)}.advanced-filters-applied li:nth-child(4n+1) .bg[data-v-940c6fb8]{background-color:var(--success)}.advanced-filters-applied li[data-v-940c6fb8]:nth-child(4n+2){border-color:var(--warning)}.advanced-filters-applied li:nth-child(4n+2) .bg[data-v-940c6fb8]{background-color:var(--warning)}.advanced-filters-applied li[data-v-940c6fb8]:nth-child(4n+3){border-color:var(--info)}.advanced-filters-applied li:nth-child(4n+3) .bg[data-v-940c6fb8]{background-color:var(--info)}.advanced-filters-applied li[data-v-940c6fb8]:nth-child(4n+4){border-color:var(--error)}.advanced-filters-applied li:nth-child(4n+4) .bg[data-v-940c6fb8]{background-color:var(--error)}.advanced-filters-applied li .bg[data-v-940c6fb8]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:.2;z-index:-1}.advanced-filters-applied li .label[data-v-940c6fb8]{margin-right:10px;font-size:11px}.advanced-filters-applied li .cross[data-v-940c6fb8]{font-size:12px;font-weight:700;cursor:pointer}td .actions.role-multi-action[data-v-940c6fb8]{background-color:transparent;border:none}td .actions.role-multi-action[data-v-940c6fb8]:focus,td .actions.role-multi-action[data-v-940c6fb8]:hover{background-color:var(--accent-btn);box-shadow:none}@media only screen and (max-width:480px){td.desktop[data-v-940c6fb8],td.laptop[data-v-940c6fb8],td.tablet[data-v-940c6fb8]{display:none}}@media only screen and (max-width:992px){td.desktop[data-v-940c6fb8],td.laptop[data-v-940c6fb8]{display:none}}@media only screen and (max-width:1281px){td.desktop[data-v-940c6fb8]{display:none}}tr td div.data-loading[data-v-940c6fb8]{align-items:center;display:flex;justify-content:center;padding:20px 0}tr td div.data-loading>i[data-v-940c6fb8]{font-size:20px;height:20px;margin-right:5px;width:20px}.search-box[data-v-940c6fb8]{height:40px;margin-left:10px;min-width:180px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export type GC_PREFERENCES = {\n enabled: boolean,\n enabledInterval: boolean,\n interval: number,\n enabledOnNavigate: boolean,\n ageThreshold: number,\n countThreshold: number\n}\n\nexport const GC_DEFAULTS: GC_PREFERENCES = {\n enabled: false,\n\n // When GC Runs\n enabledInterval: true,\n interval: 1 * 60 * 5,\n enabledOnNavigate: true,\n\n // How GC handles resources when GC'ing\n ageThreshold: 1 * 60 * 2,\n countThreshold: 500,\n};\n","import SteveModel from '@shell/plugins/steve/steve-class';\n\nexport default class CapiProvider extends SteveModel {\n get canEditYaml() {\n return false;\n }\n}\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".manual-refresh i[data-v-5ad06a13]{margin:0 0 0 8px!important;font-size:1rem!important}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".delete-warning[data-v-3a26ac99]{color:var(--error)}.remove-project-dialog[data-v-3a26ac99]{border:1px solid var(--border);padding:10px;border-radius:5px}.remove-project-dialog .display-name[data-v-3a26ac99]{font-weight:700}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.globalrole.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.globalrole.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./management.cattle.io.globalrole.vue?vue&type=template&id=effd72b0&scoped=true\"\nimport script from \"./management.cattle.io.globalrole.vue?vue&type=script&lang=js\"\nexport * from \"./management.cattle.io.globalrole.vue?vue&type=script&lang=js\"\nimport style0 from \"./management.cattle.io.globalrole.vue?vue&type=style&index=0&id=effd72b0&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"effd72b0\",\n null\n \n)\n\nexport default component.exports","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","export const CAPI_PRODUCT_NAME = 'capi-turtles';\n\nexport const QUERY_PARAMS = { CLASS: 'class' };\n\nexport const BLANK_CLUSTER = '_';\n\nexport const LABELS = { AUTO_IMPORT: 'cluster-api.cattle.io/rancher-auto-import' };\n\nexport const RANCHER_TURTLES_SYSTEM_NAMESPACE = 'capi-system';\nexport const RANCHER_TURTLES_SYSTEM_NAME = 'capi-env-variables';\n\nexport const CAPI = {\n CLUSTER_CLASS: 'cluster.x-k8s.io.clusterclass',\n PROVIDER: 'turtles-capi.cattle.io.capiprovider',\n};\n\nexport const CP_VERSIONS = {\n 'kubekey-k3s': ['k3s1', 'k3s2'],\n rke2: ['rke2r1', 'rke2r2']\n};\n\nexport const CREDENTIALS_UPDATE_REQUIRED = ['aks'];\nexport const CREDENTIALS_NOT_REQUIRED = ['docker'];\nexport interface Worker {\n name: String,\n class: String\n}\n\nexport interface CAPIClusterTopology {\n version: String,\n class: String,\n workers: {\n machineDeployments: Worker[],\n machinePools: Worker[]\n }\n}\nexport interface CAPIClusterCPEndpoint {\n host: String,\n port: Number\n}\n\nexport interface CAPIClusterNetwork {\n apiServerPort?: Number,\n pods?: {\n cidrBlocks: String[]\n },\n serviceDomain?: String,\n services?: {\n cidrBlocks: String[]\n },\n}\n\nexport interface ClusterClass {\n id: string,\n metadata: {\n name: string,\n namespace: string,\n annotations?: {[key: string]: string}\n },\n spec: {\n infrastructure: Object,\n workers: {\n machinePools: [],\n machineDeployments: []\n },\n controlPlane: {ref: {name: string}}\n }\n}\nexport interface Provider {\n id: string,\n disabled: boolean,\n needCredentials: boolean\n}\n\nexport const PROVIDER_TYPES: Provider[] = [\n {\n id: 'aws', disabled: false, needCredentials: true\n },\n {\n id: 'azure', disabled: false, needCredentials: true\n },\n {\n id: 'digitalocean', disabled: false, needCredentials: true\n },\n {\n id: 'docker', disabled: false, needCredentials: false\n },\n {\n id: 'gcp', disabled: false, needCredentials: true\n },\n {\n id: 'vsphere', disabled: false, needCredentials: true\n },\n {\n id: 'custom', disabled: false, needCredentials: false\n },\n];\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".filter-select .vs__selected-options .vs__selected{text-align:left}.sortable-table{border-collapse:collapse;min-width:400px;border-radius:5px 5px 0 0;outline:1px solid var(--border);overflow:hidden;background:var(--sortable-table-bg);border-radius:4px}.sortable-table.overflow-x{overflow-x:visible}.sortable-table.overflow-y{overflow-y:visible}.sortable-table td{padding:8px 5px;border:0}.sortable-table td:first-child{padding-left:10px}.sortable-table td:last-child{padding-right:10px}.sortable-table td.row-check{padding-top:12px}.sortable-table tbody tr{border-bottom:1px solid var(--sortable-table-top-divider);background-color:var(--sortable-table-row-bg)}.sortable-table tbody tr.main-row.has-sub-row{border-bottom:0}.sortable-table tbody tr.main-row:not(.row-selected):hover+.sub-row{background-color:var(--sortable-table-hover-bg)}.sortable-table tbody tr:last-of-type{border-bottom:0}.sortable-table tbody tr.sub-row-hovered,.sortable-table tbody tr:hover{background-color:var(--sortable-table-hover-bg)}.sortable-table tbody tr.state-description>td{font-size:13px;padding-top:0;overflow-wrap:anywhere}.sortable-table tbody tr.active-row{color:var(--sortable-table-header-bg)}.sortable-table tbody tr.row-selected{background:var(--sortable-table-selected-bg)}.sortable-table tbody .no-rows td{padding:30px 0;text-align:center}.sortable-table tbody .no-results:hover,.sortable-table tbody .no-rows:hover{background-color:var(--body-bg)}.sortable-table tbody.group:before{content:\\\"\\\";display:block;height:20px;background-color:transparent}.sortable-table tbody tr.group-row{background-color:initial}.sortable-table tbody tr.group-row:first-child{border-bottom:2px solid var(--sortable-table-row-bg)}.sortable-table tbody tr.group-row:not(:first-child){margin-top:20px}.sortable-table tbody tr.group-row td{padding:0}.sortable-table tbody tr.group-row td:first-of-type{border-left:1px solid var(--sortable-table-accent-bg)}.sortable-table tbody tr.group-row .group-tab{height:40px;line-height:40px;padding:0 10px;border-radius:4px 4px 0 0;background-color:var(--sortable-table-row-bg);position:relative;top:1px;display:inline-block;z-index:10;min-width:72px}.sortable-table tbody tr.group-row .group-tab:after,.sortable-table tbody tr.group-row .group-tab:before{content:\\\" \\\";display:table}.sortable-table tbody tr.group-row .group-tab:after{clear:both}.sortable-table tbody tr.group-row .group-tab>SPAN{color:var(--sortable-table-group-label)}.sortable-table tbody tr.group-row .group-tab:after{height:40px;width:70px;border-radius:5px 5px 0 0;background-color:var(--sortable-table-row-bg);content:\\\"\\\";position:absolute;right:-15px;top:0;transform:skewX(40deg);z-index:-1}.for-inputs TABLE.sortable-table{width:100%;border-collapse:collapse;margin-bottom:10px}.for-inputs TABLE.sortable-table>TBODY>TR>TD,.for-inputs TABLE.sortable-table>THEAD>TR>TH{padding-right:10px;padding-bottom:10px}.for-inputs TABLE.sortable-table>TBODY>TR>TD:last-of-type,.for-inputs TABLE.sortable-table>THEAD>TR>TH:last-of-type{padding-right:0}.for-inputs TABLE.sortable-table>TBODY>TR:first-of-type>TD{padding-top:10px}.for-inputs TABLE.sortable-table>TBODY>TR:last-of-type>TD{padding-bottom:0}.for-inputs.clone TABLE.sortable-table>THEAD>TR>TH,.for-inputs.create TABLE.sortable-table>THEAD>TR>TH,.for-inputs.edit TABLE.sortable-table>THEAD>TR>TH{border-color:transparent}.sortable-table-header{position:relative;z-index:11}.sortable-table-header.titled{display:flex;align-items:center}.fixed-header-actions.button{grid-template-columns:[bulk] auto [middle] min-content [search] minmax(min-content,350px)}.fixed-header-actions{padding:0 0 20px 0;width:100%;z-index:11;background:transparent;display:grid;grid-template-columns:[bulk] auto [middle] min-content [search] minmax(min-content,200px);grid-column-gap:10px}.fixed-header-actions.advanced-filtering{grid-template-columns:[bulk] auto [middle] minmax(min-content,auto) [search] minmax(min-content,auto)}.fixed-header-actions .bulk{grid-area:bulk}.fixed-header-actions .bulk>BUTTON{display:none}.fixed-header-actions .bulk>BUTTON:not(:last-of-type){margin-right:10px}.fixed-header-actions .bulk .action-availability{display:none;margin-left:10px;vertical-align:middle;margin-top:2px}.fixed-header-actions .bulk .dropdown-button li.disabled{color:var(--disabled-text);cursor:not-allowed}.fixed-header-actions .bulk .dropdown-button li.disabled:hover{color:var(--disabled-text);background-color:unset;cursor:not-allowed}.fixed-header-actions .bulk .bulk-action .icon{vertical-align:-10%}.fixed-header-actions .middle{grid-area:middle;white-space:nowrap}.fixed-header-actions .middle .icon.icon-backup.animate{animation-name:spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fixed-header-actions .search{grid-area:search;text-align:right;justify-content:flex-end}.fixed-header-actions .bulk-actions-dropdown{display:none}.fixed-header-actions .bulk-actions-dropdown .dropdown-button{background-color:var(--primary)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button:hover{background-color:var(--primary-hover-bg);color:var(--primary-hover-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button .icon-chevron-down,.fixed-header-actions .bulk-actions-dropdown .dropdown-button>*{color:var(--primary-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button .button-divider{border-color:var(--primary-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled{border-color:var(--disabled-bg)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled .icon-chevron-down{color:var(--disabled-text)!important}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled .button-divider{border-color:var(--disabled-text)}.paging{margin-top:10px;text-align:center}.paging SPAN{display:inline-block;min-width:200px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n basePickBy = require('./_basePickBy'),\n getAllKeysIn = require('./_getAllKeysIn');\n\n/**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\nfunction pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = baseIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n}\n\nmodule.exports = pickBy;\n","var baseDifference = require('./_baseDifference'),\n baseFlatten = require('./_baseFlatten'),\n baseUniq = require('./_baseUniq');\n\n/**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\nfunction baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n}\n\nmodule.exports = baseXor;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","export * from \"-!../../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=940c6fb8&prod&lang=scss&scoped=true\"","var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n","// Settings\nimport { GC_DEFAULTS, GC_PREFERENCES } from '@shell/utils/gc/gc-types';\n\ninterface GlobalSettingRuleset {\n name: string,\n key?: string | number,\n factoryArg?: string | number | (string | number)[]\n}\n\ninterface GlobalSetting {\n [key: string]: {\n alias?: string,\n canReset?: boolean,\n customFormatter?: string,\n from?: string,\n kind?: string,\n options?: string[]\n readOnly?: boolean,\n /**\n * Function used from the form validation\n */\n ruleSet?: GlobalSettingRuleset[],\n };\n}\n\n// Adapted from: https://github.com/rancher/ui/blob/08c379a9529f740666a704b52522a468986c3520/lib/shared/addon/utils/constants.js#L564\n// Setting IDs\nexport const SETTING = {\n VERSION_RANCHER: 'server-version',\n VERSION_CLI: 'cli-version',\n VERSION_MACHINE: 'machine-version',\n VERSION_HELM: 'helm-version',\n CLI_URL: {\n DARWIN: 'cli-url-darwin',\n WINDOWS: 'cli-url-windows',\n LINUX: 'cli-url-linux',\n },\n API_HOST: 'api-host',\n CA_CERTS: 'cacerts',\n\n // Allow the local cluster to be hidden\n HIDE_LOCAL_CLUSTER: 'hide-local-cluster',\n AUTH_TOKEN_MAX_TTL_MINUTES: 'auth-token-max-ttl-minutes',\n KUBECONFIG_GENERATE_TOKEN: 'kubeconfig-generate-token',\n KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES: 'kubeconfig-default-token-ttl-minutes',\n ENGINE_URL: 'engine-install-url',\n ENGINE_ISO_URL: 'engine-iso-url',\n FIRST_LOGIN: 'first-login',\n INGRESS_IP_DOMAIN: 'ingress-ip-domain',\n SERVER_URL: 'server-url',\n RKE_METADATA_CONFIG: 'rke-metadata-config',\n TELEMETRY: 'telemetry-opt',\n EULA_AGREED: 'eula-agreed',\n AUTH_USER_INFO_MAX_AGE_SECONDS: 'auth-user-info-max-age-seconds',\n AUTH_USER_SESSION_TTL_MINUTES: 'auth-user-session-ttl-minutes',\n AUTH_USER_INFO_RESYNC_CRON: 'auth-user-info-resync-cron',\n AUTH_LOCAL_VALIDATE_DESC: 'auth-password-requirements-description',\n PASSWORD_MIN_LENGTH: 'password-min-length', // CATTLE_PASSWORD_MIN_LENGTH\n CLUSTER_TEMPLATE_ENFORCEMENT: 'cluster-template-enforcement',\n UI_INDEX: 'ui-index',\n UI_DASHBOARD_INDEX: 'ui-dashboard-index',\n UI_DASHBOARD_HARVESTER_LEGACY_PLUGIN: 'ui-dashboard-harvester-legacy-plugin',\n UI_OFFLINE_PREFERRED: 'ui-offline-preferred',\n SYSTEM_DEFAULT_REGISTRY: 'system-default-registry',\n UI_ISSUES: 'ui-issues',\n PL: 'ui-pl',\n PL_RANCHER_VALUE: 'rancher',\n SUPPORTED: 'has-support',\n BANNERS: 'ui-banners',\n ISSUES: 'ui-issues',\n BRAND: 'ui-brand',\n LOGO_LIGHT: 'ui-logo-light',\n LOGO_DARK: 'ui-logo-dark',\n PRIMARY_COLOR: 'ui-primary-color',\n LINK_COLOR: 'ui-link-color',\n COMMUNITY_LINKS: 'ui-community-links',\n FAVICON: 'ui-favicon',\n UI_PERFORMANCE: 'ui-performance',\n UI_CUSTOM_LINKS: 'ui-custom-links',\n UI_SUPPORTED_K8S_VERSIONS: 'ui-k8s-supported-versions-range',\n /**\n * Allow the backend to force a light/dark theme. Used in non-rancher world and results in the theme used\n * both pre and post log in. If not present defaults to the usual process\n */\n THEME: 'ui-theme',\n SYSTEM_NAMESPACES: 'system-namespaces',\n /**\n * Cluster Agent configuration\n */\n CLUSTER_AGENT_DEFAULT_AFFINITY: 'cluster-agent-default-affinity',\n FLEET_AGENT_DEFAULT_AFFINITY: 'fleet-agent-default-affinity',\n /**\n * manage rancher repositories in extensions (official, partners repos)\n */\n ADD_EXTENSION_REPOS_BANNER_DISPLAY: 'display-add-extension-repos-banner'\n};\n\n// These are the settings that are allowed to be edited via the UI\nexport const ALLOWED_SETTINGS: GlobalSetting = {\n [SETTING.CA_CERTS]: { kind: 'multiline', readOnly: true },\n [SETTING.ENGINE_URL]: {},\n [SETTING.ENGINE_ISO_URL]: {},\n [SETTING.PASSWORD_MIN_LENGTH]: {\n kind: 'integer',\n ruleSet: [\n {\n name: 'betweenValues',\n key: 'Password',\n factoryArg: [2, 256]\n },\n {\n name: 'isInteger',\n key: 'Password',\n },\n {\n name: 'isPositive',\n key: 'Password',\n },\n {\n name: 'isOctal',\n key: 'Password',\n }\n ],\n },\n [SETTING.INGRESS_IP_DOMAIN]: {},\n [SETTING.AUTH_USER_INFO_MAX_AGE_SECONDS]: {},\n [SETTING.AUTH_USER_SESSION_TTL_MINUTES]: {},\n [SETTING.AUTH_TOKEN_MAX_TTL_MINUTES]: {},\n [SETTING.KUBECONFIG_GENERATE_TOKEN]: { kind: 'boolean' },\n [SETTING.KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES]: { kind: 'integer' },\n [SETTING.AUTH_USER_INFO_RESYNC_CRON]: {},\n [SETTING.SERVER_URL]: { kind: 'url', canReset: true },\n [SETTING.RKE_METADATA_CONFIG]: { kind: 'json' },\n [SETTING.SYSTEM_DEFAULT_REGISTRY]: {},\n [SETTING.UI_INDEX]: {},\n [SETTING.UI_DASHBOARD_INDEX]: {},\n [SETTING.UI_OFFLINE_PREFERRED]: {\n kind: 'enum',\n options: ['dynamic', 'true', 'false']\n },\n [SETTING.BRAND]: { canReset: true },\n [SETTING.CLUSTER_TEMPLATE_ENFORCEMENT]: { kind: 'boolean' },\n [SETTING.TELEMETRY]: {\n kind: 'enum',\n options: ['prompt', 'in', 'out']\n },\n [SETTING.HIDE_LOCAL_CLUSTER]: { kind: 'boolean' },\n};\n\n/**\n * Settings on how to handle warnings returning in api responses, specifically which to show as growls\n */\nexport interface PerfSettingsWarningHeaders {\n /**\n * Warning is a string containing multiple entries. This determines how they are split up\n *\n * See https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/1693-warnings#design-details\n */\n separator: string,\n /**\n * Show warnings in a notification if they're not in this block list\n */\n notificationBlockList: string[]\n}\n\nexport interface PerfSettingsKubeApi {\n /**\n * Settings related to the response header `warnings` value\n */\n warningHeader: PerfSettingsWarningHeaders\n}\n\nexport interface PerfSettings {\n inactivity: {\n enabled: boolean;\n threshold: number;\n };\n incrementalLoading: {\n enabled: boolean;\n threshold: number;\n };\n manualRefresh: {};\n disableWebsocketNotification: boolean;\n garbageCollection: GC_PREFERENCES;\n forceNsFilterV2: any;\n advancedWorker: {};\n kubeAPI: PerfSettingsKubeApi;\n}\n\nexport const DEFAULT_PERF_SETTING: PerfSettings = {\n inactivity: {\n enabled: false,\n threshold: 900,\n },\n incrementalLoading: {\n enabled: true,\n threshold: 1500,\n },\n manualRefresh: {\n enabled: false,\n threshold: 1500,\n },\n disableWebsocketNotification: true,\n garbageCollection: GC_DEFAULTS,\n forceNsFilterV2: { enabled: false },\n advancedWorker: { enabled: false },\n kubeAPI: {\n /**\n * Settings related to the response header `warnings` value\n */\n warningHeader: {\n /**\n * Warning is a string containing multiple entries. This determines how they are split up\n *\n * See https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/1693-warnings#design-details\n */\n separator: '299 - ',\n /**\n * Show warnings in a notification if they're not in this block list\n */\n notificationBlockList: ['299 - unknown field']\n }\n }\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[[_vm._v(\" \"+_vm._s(_vm.t('promptRemove.attemptingToRemove', { type: _vm.type }))+\" \"),_c('span',{directives:[{name:\"clean-html\",rawName:\"v-clean-html\",value:(_vm.resourceNames(_vm.names, _vm.plusMore, _vm.t)),expression:\"resourceNames(names, plusMore, t)\"}]})],(_vm.info)?_c('div',{staticClass:\"text info mb-10 mt-20\"},[_c('span',{directives:[{name:\"clean-html\",rawName:\"v-clean-html\",value:(_vm.info),expression:\"info\"}]})]):_vm._e(),(_vm.warning)?_c('div',{staticClass:\"text-warning mb-10 mt-20\"},[_vm._v(\" \"+_vm._s(_vm.warning)+\" \")]):_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.roletemplate.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.roletemplate.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./management.cattle.io.roletemplate.vue?vue&type=template&id=5050d908&scoped=true\"\nimport script from \"./management.cattle.io.roletemplate.vue?vue&type=script&lang=js\"\nexport * from \"./management.cattle.io.roletemplate.vue?vue&type=script&lang=js\"\nimport style0 from \"./management.cattle.io.roletemplate.vue?vue&type=style&index=0&id=5050d908&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5050d908\",\n null\n \n)\n\nexport default component.exports","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","export * from \"-!../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.project.vue?vue&type=style&index=0&id=3a26ac99&prod&lang=scss&scoped=true\"","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","var baseUniq = require('./_baseUniq');\n\n/**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\nfunction uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n}\n\nmodule.exports = uniq;\n","var baseIteratee = require('./_baseIteratee'),\n negate = require('./negate'),\n pickBy = require('./pickBy');\n\n/**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\nfunction omitBy(object, predicate) {\n return pickBy(object, negate(baseIteratee(predicate)));\n}\n\nmodule.exports = omitBy;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","// --------------------------------------\n// 1. Provided by Steve and always potentially available\n// --------------------------------------\n\n// Steve-specific virtual types\n// Base: /v1\nexport const STEVE = { PREFERENCE: 'userpreference' };\n\n// Old APIs via Norman\n// Base: /v3\nexport const NORMAN = {\n APP: 'app',\n AUTH_CONFIG: 'authconfig',\n ETCD_BACKUP: 'etcdbackup',\n CLUSTER: 'cluster',\n CLUSTER_TOKEN: 'clusterregistrationtoken',\n CLUSTER_ROLE_TEMPLATE_BINDING: 'clusterRoleTemplateBinding',\n CLOUD_CREDENTIAL: 'cloudcredential',\n FLEET_WORKSPACES: 'fleetworkspace',\n GLOBAL_ROLE: 'globalRole',\n GLOBAL_ROLE_BINDING: 'globalRoleBinding',\n\n NODE_POOL: 'nodePool',\n // Note - This allows access to node resources, not schema's or custom components (both are accessed via 'type' which clashes with kube node)\n NODE: 'node',\n PRINCIPAL: 'principal',\n PROJECT: 'project',\n PROJECT_ROLE_TEMPLATE_BINDING: 'projectroletemplatebinding',\n SPOOFED: { GROUP_PRINCIPAL: 'group.principal' },\n ROLE_TEMPLATE: 'roleTemplate',\n TOKEN: 'token',\n USER: 'user',\n};\n\n// Public (via Norman)\n// Base: /v3-public\nexport const PUBLIC = { AUTH_PROVIDER: 'authprovider' };\n\n// Common native k8s types (via Steve)\n// Base: /k8s/clusters//v1/\nexport const API_GROUP = 'apiGroups';\nexport const API_SERVICE = 'apiregistration.k8s.io.apiservice';\nexport const CONFIG_MAP = 'configmap';\nexport const COUNT = 'count';\nexport const EVENT = 'event';\nexport const ENDPOINTS = 'endpoints';\nexport const HPA = 'autoscaling.horizontalpodautoscaler';\nexport const INGRESS = 'networking.k8s.io.ingress';\nexport const INGRESS_CLASS = 'networking.k8s.io.ingressclass';\nexport const LIMIT_RANGE = 'limitrange';\nexport const NAMESPACE = 'namespace';\nexport const NODE = 'node';\nexport const NETWORK_POLICY = 'networking.k8s.io.networkpolicy';\nexport const POD = 'pod';\nexport const POD_DISRUPTION_BUDGET = 'policy.poddisruptionbudget';\nexport const PV = 'persistentvolume';\nexport const PVC = 'persistentvolumeclaim';\nexport const RESOURCE_QUOTA = 'resourcequota';\nexport const SCHEMA = 'schema';\nexport const SERVICE = 'service';\nexport const SECRET = 'secret';\nexport const SERVICE_ACCOUNT = 'serviceaccount';\nexport const STORAGE_CLASS = 'storage.k8s.io.storageclass';\nexport const CSI_DRIVER = 'storage.k8s.io.csidriver';\nexport const OBJECT_META = 'io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta';\nexport const NETWORK_ATTACHMENT = 'k8s.cni.cncf.io.networkattachmentdefinition';\nexport const USER = 'user';\nexport const GROUP = 'group';\n\nexport const RBAC = {\n ROLE: 'rbac.authorization.k8s.io.role',\n CLUSTER_ROLE: 'rbac.authorization.k8s.io.clusterrole',\n ROLE_BINDING: 'rbac.authorization.k8s.io.rolebinding',\n CLUSTER_ROLE_BINDING: 'rbac.authorization.k8s.io.clusterrolebinding',\n};\n\nexport const WORKLOAD = 'workload';\n\n// The types that are aggregated into a \"workload\"\nexport const WORKLOAD_TYPES = {\n DEPLOYMENT: 'apps.deployment',\n CRON_JOB: 'batch.cronjob',\n DAEMON_SET: 'apps.daemonset',\n JOB: 'batch.job',\n STATEFUL_SET: 'apps.statefulset',\n REPLICA_SET: 'apps.replicaset',\n REPLICATION_CONTROLLER: 'replicationcontroller',\n};\n\nconst {\n DAEMON_SET, CRON_JOB, JOB, ...scalableWorkloads\n} = WORKLOAD_TYPES;\n\nexport const SCALABLE_WORKLOAD_TYPES = scalableWorkloads;\n\nexport const LIST_WORKLOAD_TYPES = {\n ...WORKLOAD_TYPES,\n POD\n};\n\nexport const METRIC = {\n NODE: 'metrics.k8s.io.nodemetrics',\n POD: 'metrics.k8s.io.podmetrics',\n};\n\nexport const CATALOG = {\n CLUSTER_REPO: 'catalog.cattle.io.clusterrepo',\n OPERATION: 'catalog.cattle.io.operation',\n APP: 'catalog.cattle.io.app',\n REPO: 'catalog.cattle.io.repo',\n};\n\n// UI Plugin type\nexport const UI_PLUGIN = 'catalog.cattle.io.uiplugin';\n\nexport const HELM = { PROJECTHELMCHART: 'helm.cattle.io.projecthelmchart' };\n\nexport const MONITORING = {\n ALERTMANAGER: 'monitoring.coreos.com.alertmanager',\n ALERTMANAGERCONFIG: 'monitoring.coreos.com.alertmanagerconfig',\n PODMONITOR: 'monitoring.coreos.com.podmonitor',\n PROMETHEUS: 'monitoring.coreos.com.prometheus',\n PROMETHEUSRULE: 'monitoring.coreos.com.prometheusrule',\n SERVICEMONITOR: 'monitoring.coreos.com.servicemonitor',\n THANOSRULER: 'monitoring.coreos.com.thanosruler',\n SPOOFED: {\n RECEIVER: 'monitoring.coreos.com.receiver',\n RECEIVER_SPEC: 'monitoring.coreos.com.receiver.spec',\n RECEIVER_EMAIL: 'monitoring.coreos.com.receiver.email',\n RECEIVER_SLACK: 'monitoring.coreos.com.receiver.slack',\n RECEIVER_WEBHOOK: 'monitoring.coreos.com.receiver.webhook',\n RECEIVER_PAGERDUTY: 'monitoring.coreos.com.receiver.pagerduty',\n RECEIVER_OPSGENIE: 'monitoring.coreos.com.receiver.opsgenie',\n RECEIVER_HTTP_CONFIG: 'monitoring.coreos.com.receiver.httpconfig',\n RESPONDER: 'monitoring.coreos.com.receiver.responder',\n ROUTE: 'monitoring.coreos.com.route',\n ROUTE_SPEC: 'monitoring.coreos.com.route.spec',\n ALERTMANAGERCONFIG_RECEIVER_SPEC: 'monitoring.coreos.com.v1alpha1.alertmanagerconfig.spec.receivers',\n ALERTMANAGERCONFIG_ROUTE_SPEC: 'monitoring.coreos.com.v1alpha1.alertmanagerconfig.spec.route'\n }\n};\n\nexport const LONGHORN = {\n ENGINES: 'longhorn.io.engine',\n ENGINE_IMAGES: 'longhorn.io.engineimage',\n NODES: 'longhorn.io.node',\n REPLICAS: 'longhorn.io.replica',\n SETTINGS: 'longhorn.io.setting',\n VOLUMES: 'longhorn.io.volume',\n};\n\nexport const LONGHORN_DRIVER = 'driver.longhorn.io';\n\nexport const SNAPSHOT = 'rke.cattle.io.etcdsnapshot';\n\n// --------------------------------------\n// 2. Only if Rancher is installed\n// --------------------------------------\n\n// Rancher Management API (via Steve)\n// Base: /v1\nexport const MANAGEMENT = {\n AUTH_CONFIG: 'management.cattle.io.authconfig',\n CATALOG_TEMPLATE: 'management.cattle.io.catalogtemplate',\n // CATALOG: 'management.cattle.io.catalog',\n CLUSTER: 'management.cattle.io.cluster',\n CLUSTER_ROLE_TEMPLATE_BINDING: 'management.cattle.io.clusterroletemplatebinding',\n FEATURE: 'management.cattle.io.feature',\n // GROUP: 'management.cattle.io.group',\n KONTAINER_DRIVER: 'management.cattle.io.kontainerdriver',\n MULTI_CLUSTER_APP: 'management.cattle.io.multiclusterapp',\n NODE: 'management.cattle.io.node',\n NODE_DRIVER: 'management.cattle.io.nodedriver',\n NODE_POOL: 'management.cattle.io.nodepool',\n NODE_TEMPLATE: 'management.cattle.io.nodetemplate',\n PROJECT: 'management.cattle.io.project',\n PROJECT_ROLE_TEMPLATE_BINDING: 'management.cattle.io.projectroletemplatebinding',\n ROLE_TEMPLATE: 'management.cattle.io.roletemplate',\n SETTING: 'management.cattle.io.setting',\n USER: 'management.cattle.io.user',\n TOKEN: 'management.cattle.io.token',\n GLOBAL_ROLE: 'management.cattle.io.globalrole',\n GLOBAL_ROLE_BINDING: 'management.cattle.io.globalrolebinding',\n PSA: 'management.cattle.io.podsecurityadmissionconfigurationtemplate',\n MANAGED_CHART: 'management.cattle.io.managedchart',\n USER_NOTIFICATION: 'management.cattle.io.rancherusernotification',\n GLOBAL_DNS_PROVIDER: 'management.cattle.io.globaldnsprovider',\n RKE_TEMPLATE: 'management.cattle.io.clustertemplate',\n RKE_TEMPLATE_REVISION: 'management.cattle.io.clustertemplaterevision',\n};\n\nexport const CAPI = {\n CAPI_CLUSTER: 'cluster.x-k8s.io.cluster',\n MACHINE_DEPLOYMENT: 'cluster.x-k8s.io.machinedeployment',\n MACHINE_SET: 'cluster.x-k8s.io.machineset',\n MACHINE: 'cluster.x-k8s.io.machine',\n RANCHER_CLUSTER: 'provisioning.cattle.io.cluster',\n MACHINE_CONFIG_GROUP: 'rke-machine-config.cattle.io',\n};\n\n// --------------------------------------\n// 3. Optional add-on packages in a cluster\n// --------------------------------------\n// Base: /k8s/clusters//v1/\n\nexport const FLEET = {\n BUNDLE: 'fleet.cattle.io.bundle',\n BUNDLE_DEPLOYMENT: 'fleet.cattle.io.bundledeployment',\n CLUSTER: 'fleet.cattle.io.cluster',\n CLUSTER_GROUP: 'fleet.cattle.io.clustergroup',\n DASHBOARD: 'fleet.cattle.io.dashboard',\n GIT_REPO: 'fleet.cattle.io.gitrepo',\n WORKSPACE: 'management.cattle.io.fleetworkspace',\n TOKEN: 'fleet.cattle.io.clusterregistrationtoken',\n BUNDLE_NAMESPACE_MAPPING: 'fleet.cattle.io.bundlenamespacemapping',\n GIT_REPO_RESTRICTION: 'fleet.cattle.io.gitreporestriction'\n};\n\nexport const GATEKEEPER = {\n CONSTRAINT_TEMPLATE: 'templates.gatekeeper.sh.constrainttemplate',\n SPOOFED: { CONSTRAINT: 'constraints.gatekeeper.sh.constraint' }\n};\n\nexport const ISTIO = {\n VIRTUAL_SERVICE: 'networking.istio.io.virtualservice',\n DESTINATION_RULE: 'networking.istio.io.destinationrule',\n GATEWAY: 'networking.istio.io.gateway'\n};\n\nexport const LOGGING = {\n // LOGGING: 'logging.banzaicloud.io.logging',\n CLUSTER_FLOW: 'logging.banzaicloud.io.clusterflow',\n CLUSTER_OUTPUT: 'logging.banzaicloud.io.clusteroutput',\n FLOW: 'logging.banzaicloud.io.flow',\n OUTPUT: 'logging.banzaicloud.io.output',\n SPOOFED: {\n FILTERS: 'logging.banzaicloud.io.output.filters',\n FILTER: 'logging.banzaicloud.io.output.filter',\n CONCAT: 'logging.banzaicloud.io.output.filters.concat',\n DEDOT: 'logging.banzaicloud.io.output.filters.dedot',\n DETECTEXCEPTIONS: 'logging.banzaicloud.io.output.filters.detectExceptions',\n GEOIP: 'logging.banzaicloud.io.output.filters.geoip',\n GREP: 'logging.banzaicloud.io.output.filters.grep',\n PARSER: 'logging.banzaicloud.io.output.filters.parser',\n PROMETHEUS: 'logging.banzaicloud.io.output.filters.prometheus',\n RECORD_MODIFIER: 'logging.banzaicloud.io.output.filters.record_modifier',\n RECORD_TRANSFORMER: 'logging.banzaicloud.io.output.filters.record_transformer',\n STDOUT: 'logging.banzaicloud.io.output.filters.stdout',\n SUMOLOGIC: 'logging.banzaicloud.io.output.filters.sumologic',\n TAG_NORMALISER: 'logging.banzaicloud.io.output.filters.tag_normaliser',\n THROTTLE: 'logging.banzaicloud.io.output.filters.throttle',\n RECORD: 'logging.banzaicloud.io.output.filters.record',\n REGEXPSECTION: 'logging.banzaicloud.io.output.filters.regexpsection',\n EXCLUDESECTION: 'logging.banzaicloud.io.output.filters.excludesection',\n ORSECTION: 'logging.banzaicloud.io.output.filters.orsection',\n ANDSECTION: 'logging.banzaicloud.io.output.filters.andsection',\n PARSESECTION: 'logging.banzaicloud.io.output.filters.parsesection',\n METRICSECTION: 'logging.banzaicloud.io.output.filters.metricsection',\n REPLACE: 'logging.banzaicloud.io.output.filters.replace',\n SINGLEPARSESECTION: 'logging.banzaicloud.io.output.filters.replace.singleparsesection'\n }\n};\n\nexport const BACKUP_RESTORE = {\n RESOURCE_SET: 'resources.cattle.io.resourceset',\n BACKUP: 'resources.cattle.io.backup',\n RESTORE: 'resources.cattle.io.restore',\n};\n\nexport const CIS = {\n CLUSTER_SCAN: 'cis.cattle.io.clusterscan',\n CLUSTER_SCAN_PROFILE: 'cis.cattle.io.clusterscanprofile',\n BENCHMARK: 'cis.cattle.io.clusterscanbenchmark',\n REPORT: 'cis.cattle.io.clusterscanreport'\n};\n\nexport const UI = { NAV_LINK: 'ui.cattle.io.navlink' };\n\nexport const VIRTUAL_TYPES = {\n CLUSTER_MEMBERS: 'cluster-members',\n PROJECT_NAMESPACES: 'projects-namespaces',\n NAMESPACES: 'namespaces'\n};\n\n// harvester\nexport const HCI = {\n CLUSTER: 'harvesterhci.io.management.cluster',\n DASHBOARD: 'harvesterhci.io.dashboard',\n IMAGE: 'harvesterhci.io.virtualmachineimage',\n SETTING: 'harvesterhci.io.setting',\n HARVESTER_CONFIG: 'rke-machine-config.cattle.io.harvesterconfig',\n};\n\nexport const VIRTUAL_HARVESTER_PROVIDER = 'harvester';\n\nexport const ADDRESSES = {\n HOSTNAME: 'Hostname',\n INTERNAL_IP: 'InternalIP',\n EXTERNAL_IP: 'ExternalIP'\n};\n\nexport const DEFAULT_WORKSPACE = 'fleet-default';\n\nexport const AUTH_TYPE = {\n _NONE: '_none',\n _BASIC: '_basic',\n _SSH: '_ssh',\n _S3: '_S3'\n};\n\nexport const LOCAL_CLUSTER = 'local';\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys'),\n keysIn = require('./keysIn');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","import { CAPI as RANCHER_CAPI } from '@shell/config/types';\nimport { CAPI as TURTLES_CAPI } from '../types/capi';\n\nconst CLUSTER_MGMT_PRODUCT = 'manager';\n\nexport function init($plugin: any, store: any) {\n const {\n basicType,\n weightType,\n weightGroup,\n virtualType,\n // headers,\n } = $plugin.DSL(store, CLUSTER_MGMT_PRODUCT);\n\n virtualType({\n label: 'CAPI Turtles',\n icon: 'gear',\n name: 'capi-dashboard',\n namespaced: false,\n weight: 99,\n route: {\n name: `c-cluster-${ CLUSTER_MGMT_PRODUCT }-capi`,\n params: { cluster: '_' }\n },\n overview: true,\n exact: true,\n });\n\n // Interestingly, types can only appear in one place, so by adding machine deployment\n // and others here, they will no longer show up in the Advanced section, which is\n // quite nice for this use case\n basicType([\n 'capi-dashboard',\n RANCHER_CAPI.CAPI_CLUSTER,\n TURTLES_CAPI.CLUSTER_CLASS,\n TURTLES_CAPI.PROVIDER,\n // keep this page hidden under 'advanced' still as it may fail to load in Rancher <=2.8.0, see https://github.com/rancher/dashboard/issues/9973\n // RANCHER_CAPI.MACHINE,\n RANCHER_CAPI.MACHINE_SET,\n RANCHER_CAPI.MACHINE_DEPLOYMENT,\n ], 'CAPITurtles');\n\n weightType(RANCHER_CAPI.CAPI_CLUSTER, 10, true);\n\n // Ensure CAPI group appears before the Advanced group\n weightGroup('CAPITurtles', 10, true);\n}\n","var baseDifference = require('./_baseDifference'),\n baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\nvar difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n});\n\nmodule.exports = difference;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","/*!\n * vuex v3.6.2\n * (c) 2021 Evan You\n * @license MIT\n */\nfunction applyMixin (Vue) {\n var version = Number(Vue.version.split('.')[0]);\n\n if (version >= 2) {\n Vue.mixin({ beforeCreate: vuexInit });\n } else {\n // override init and inject vuex init procedure\n // for 1.x backwards compatibility.\n var _init = Vue.prototype._init;\n Vue.prototype._init = function (options) {\n if ( options === void 0 ) options = {};\n\n options.init = options.init\n ? [vuexInit].concat(options.init)\n : vuexInit;\n _init.call(this, options);\n };\n }\n\n /**\n * Vuex init hook, injected into each instances init hooks list.\n */\n\n function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }\n}\n\nvar target = typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\nvar devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\nfunction devtoolPlugin (store) {\n if (!devtoolHook) { return }\n\n store._devtoolHook = devtoolHook;\n\n devtoolHook.emit('vuex:init', store);\n\n devtoolHook.on('vuex:travel-to-state', function (targetState) {\n store.replaceState(targetState);\n });\n\n store.subscribe(function (mutation, state) {\n devtoolHook.emit('vuex:mutation', mutation, state);\n }, { prepend: true });\n\n store.subscribeAction(function (action, state) {\n devtoolHook.emit('vuex:action', action, state);\n }, { prepend: true });\n}\n\n/**\n * Get the first item that pass the test\n * by second argument function\n *\n * @param {Array} list\n * @param {Function} f\n * @return {*}\n */\nfunction find (list, f) {\n return list.filter(f)[0]\n}\n\n/**\n * Deep copy the given object considering circular structure.\n * This function caches all nested objects and its copies.\n * If it detects circular structure, use cached copy to avoid infinite loop.\n *\n * @param {*} obj\n * @param {Array} cache\n * @return {*}\n */\nfunction deepCopy (obj, cache) {\n if ( cache === void 0 ) cache = [];\n\n // just return if obj is immutable value\n if (obj === null || typeof obj !== 'object') {\n return obj\n }\n\n // if obj is hit, it is in circular structure\n var hit = find(cache, function (c) { return c.original === obj; });\n if (hit) {\n return hit.copy\n }\n\n var copy = Array.isArray(obj) ? [] : {};\n // put the copy into cache at first\n // because we want to refer it in recursive deepCopy\n cache.push({\n original: obj,\n copy: copy\n });\n\n Object.keys(obj).forEach(function (key) {\n copy[key] = deepCopy(obj[key], cache);\n });\n\n return copy\n}\n\n/**\n * forEach for object\n */\nfunction forEachValue (obj, fn) {\n Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });\n}\n\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\nfunction isPromise (val) {\n return val && typeof val.then === 'function'\n}\n\nfunction assert (condition, msg) {\n if (!condition) { throw new Error((\"[vuex] \" + msg)) }\n}\n\nfunction partial (fn, arg) {\n return function () {\n return fn(arg)\n }\n}\n\n// Base data struct for store's module, package with some attribute and method\nvar Module = function Module (rawModule, runtime) {\n this.runtime = runtime;\n // Store some children item\n this._children = Object.create(null);\n // Store the origin module object which passed by programmer\n this._rawModule = rawModule;\n var rawState = rawModule.state;\n\n // Store the origin module's state\n this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};\n};\n\nvar prototypeAccessors = { namespaced: { configurable: true } };\n\nprototypeAccessors.namespaced.get = function () {\n return !!this._rawModule.namespaced\n};\n\nModule.prototype.addChild = function addChild (key, module) {\n this._children[key] = module;\n};\n\nModule.prototype.removeChild = function removeChild (key) {\n delete this._children[key];\n};\n\nModule.prototype.getChild = function getChild (key) {\n return this._children[key]\n};\n\nModule.prototype.hasChild = function hasChild (key) {\n return key in this._children\n};\n\nModule.prototype.update = function update (rawModule) {\n this._rawModule.namespaced = rawModule.namespaced;\n if (rawModule.actions) {\n this._rawModule.actions = rawModule.actions;\n }\n if (rawModule.mutations) {\n this._rawModule.mutations = rawModule.mutations;\n }\n if (rawModule.getters) {\n this._rawModule.getters = rawModule.getters;\n }\n};\n\nModule.prototype.forEachChild = function forEachChild (fn) {\n forEachValue(this._children, fn);\n};\n\nModule.prototype.forEachGetter = function forEachGetter (fn) {\n if (this._rawModule.getters) {\n forEachValue(this._rawModule.getters, fn);\n }\n};\n\nModule.prototype.forEachAction = function forEachAction (fn) {\n if (this._rawModule.actions) {\n forEachValue(this._rawModule.actions, fn);\n }\n};\n\nModule.prototype.forEachMutation = function forEachMutation (fn) {\n if (this._rawModule.mutations) {\n forEachValue(this._rawModule.mutations, fn);\n }\n};\n\nObject.defineProperties( Module.prototype, prototypeAccessors );\n\nvar ModuleCollection = function ModuleCollection (rawRootModule) {\n // register root module (Vuex.Store options)\n this.register([], rawRootModule, false);\n};\n\nModuleCollection.prototype.get = function get (path) {\n return path.reduce(function (module, key) {\n return module.getChild(key)\n }, this.root)\n};\n\nModuleCollection.prototype.getNamespace = function getNamespace (path) {\n var module = this.root;\n return path.reduce(function (namespace, key) {\n module = module.getChild(key);\n return namespace + (module.namespaced ? key + '/' : '')\n }, '')\n};\n\nModuleCollection.prototype.update = function update$1 (rawRootModule) {\n update([], this.root, rawRootModule);\n};\n\nModuleCollection.prototype.register = function register (path, rawModule, runtime) {\n var this$1 = this;\n if ( runtime === void 0 ) runtime = true;\n\n if ((process.env.NODE_ENV !== 'production')) {\n assertRawModule(path, rawModule);\n }\n\n var newModule = new Module(rawModule, runtime);\n if (path.length === 0) {\n this.root = newModule;\n } else {\n var parent = this.get(path.slice(0, -1));\n parent.addChild(path[path.length - 1], newModule);\n }\n\n // register nested modules\n if (rawModule.modules) {\n forEachValue(rawModule.modules, function (rawChildModule, key) {\n this$1.register(path.concat(key), rawChildModule, runtime);\n });\n }\n};\n\nModuleCollection.prototype.unregister = function unregister (path) {\n var parent = this.get(path.slice(0, -1));\n var key = path[path.length - 1];\n var child = parent.getChild(key);\n\n if (!child) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\n \"[vuex] trying to unregister module '\" + key + \"', which is \" +\n \"not registered\"\n );\n }\n return\n }\n\n if (!child.runtime) {\n return\n }\n\n parent.removeChild(key);\n};\n\nModuleCollection.prototype.isRegistered = function isRegistered (path) {\n var parent = this.get(path.slice(0, -1));\n var key = path[path.length - 1];\n\n if (parent) {\n return parent.hasChild(key)\n }\n\n return false\n};\n\nfunction update (path, targetModule, newModule) {\n if ((process.env.NODE_ENV !== 'production')) {\n assertRawModule(path, newModule);\n }\n\n // update target module\n targetModule.update(newModule);\n\n // update nested modules\n if (newModule.modules) {\n for (var key in newModule.modules) {\n if (!targetModule.getChild(key)) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\n \"[vuex] trying to add a new module '\" + key + \"' on hot reloading, \" +\n 'manual reload is needed'\n );\n }\n return\n }\n update(\n path.concat(key),\n targetModule.getChild(key),\n newModule.modules[key]\n );\n }\n }\n}\n\nvar functionAssert = {\n assert: function (value) { return typeof value === 'function'; },\n expected: 'function'\n};\n\nvar objectAssert = {\n assert: function (value) { return typeof value === 'function' ||\n (typeof value === 'object' && typeof value.handler === 'function'); },\n expected: 'function or object with \"handler\" function'\n};\n\nvar assertTypes = {\n getters: functionAssert,\n mutations: functionAssert,\n actions: objectAssert\n};\n\nfunction assertRawModule (path, rawModule) {\n Object.keys(assertTypes).forEach(function (key) {\n if (!rawModule[key]) { return }\n\n var assertOptions = assertTypes[key];\n\n forEachValue(rawModule[key], function (value, type) {\n assert(\n assertOptions.assert(value),\n makeAssertionMessage(path, key, type, value, assertOptions.expected)\n );\n });\n });\n}\n\nfunction makeAssertionMessage (path, key, type, value, expected) {\n var buf = key + \" should be \" + expected + \" but \\\"\" + key + \".\" + type + \"\\\"\";\n if (path.length > 0) {\n buf += \" in module \\\"\" + (path.join('.')) + \"\\\"\";\n }\n buf += \" is \" + (JSON.stringify(value)) + \".\";\n return buf\n}\n\nvar Vue; // bind on install\n\nvar Store = function Store (options) {\n var this$1 = this;\n if ( options === void 0 ) options = {};\n\n // Auto install if it is not done yet and `window` has `Vue`.\n // To allow users to avoid auto-installation in some cases,\n // this code should be placed here. See #731\n if (!Vue && typeof window !== 'undefined' && window.Vue) {\n install(window.Vue);\n }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Vue, \"must call Vue.use(Vuex) before creating a store instance.\");\n assert(typeof Promise !== 'undefined', \"vuex requires a Promise polyfill in this browser.\");\n assert(this instanceof Store, \"store must be called with the new operator.\");\n }\n\n var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];\n var strict = options.strict; if ( strict === void 0 ) strict = false;\n\n // store internal state\n this._committing = false;\n this._actions = Object.create(null);\n this._actionSubscribers = [];\n this._mutations = Object.create(null);\n this._wrappedGetters = Object.create(null);\n this._modules = new ModuleCollection(options);\n this._modulesNamespaceMap = Object.create(null);\n this._subscribers = [];\n this._watcherVM = new Vue();\n this._makeLocalGettersCache = Object.create(null);\n\n // bind commit and dispatch to self\n var store = this;\n var ref = this;\n var dispatch = ref.dispatch;\n var commit = ref.commit;\n this.dispatch = function boundDispatch (type, payload) {\n return dispatch.call(store, type, payload)\n };\n this.commit = function boundCommit (type, payload, options) {\n return commit.call(store, type, payload, options)\n };\n\n // strict mode\n this.strict = strict;\n\n var state = this._modules.root.state;\n\n // init root module.\n // this also recursively registers all sub-modules\n // and collects all module getters inside this._wrappedGetters\n installModule(this, state, [], this._modules.root);\n\n // initialize the store vm, which is responsible for the reactivity\n // (also registers _wrappedGetters as computed properties)\n resetStoreVM(this, state);\n\n // apply plugins\n plugins.forEach(function (plugin) { return plugin(this$1); });\n\n var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;\n if (useDevtools) {\n devtoolPlugin(this);\n }\n};\n\nvar prototypeAccessors$1 = { state: { configurable: true } };\n\nprototypeAccessors$1.state.get = function () {\n return this._vm._data.$$state\n};\n\nprototypeAccessors$1.state.set = function (v) {\n if ((process.env.NODE_ENV !== 'production')) {\n assert(false, \"use store.replaceState() to explicit replace store state.\");\n }\n};\n\nStore.prototype.commit = function commit (_type, _payload, _options) {\n var this$1 = this;\n\n // check object-style commit\n var ref = unifyObjectStyle(_type, _payload, _options);\n var type = ref.type;\n var payload = ref.payload;\n var options = ref.options;\n\n var mutation = { type: type, payload: payload };\n var entry = this._mutations[type];\n if (!entry) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] unknown mutation type: \" + type));\n }\n return\n }\n this._withCommit(function () {\n entry.forEach(function commitIterator (handler) {\n handler(payload);\n });\n });\n\n this._subscribers\n .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n .forEach(function (sub) { return sub(mutation, this$1.state); });\n\n if (\n (process.env.NODE_ENV !== 'production') &&\n options && options.silent\n ) {\n console.warn(\n \"[vuex] mutation type: \" + type + \". Silent option has been removed. \" +\n 'Use the filter functionality in the vue-devtools'\n );\n }\n};\n\nStore.prototype.dispatch = function dispatch (_type, _payload) {\n var this$1 = this;\n\n // check object-style dispatch\n var ref = unifyObjectStyle(_type, _payload);\n var type = ref.type;\n var payload = ref.payload;\n\n var action = { type: type, payload: payload };\n var entry = this._actions[type];\n if (!entry) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] unknown action type: \" + type));\n }\n return\n }\n\n try {\n this._actionSubscribers\n .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n .filter(function (sub) { return sub.before; })\n .forEach(function (sub) { return sub.before(action, this$1.state); });\n } catch (e) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\"[vuex] error in before action subscribers: \");\n console.error(e);\n }\n }\n\n var result = entry.length > 1\n ? Promise.all(entry.map(function (handler) { return handler(payload); }))\n : entry[0](payload);\n\n return new Promise(function (resolve, reject) {\n result.then(function (res) {\n try {\n this$1._actionSubscribers\n .filter(function (sub) { return sub.after; })\n .forEach(function (sub) { return sub.after(action, this$1.state); });\n } catch (e) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\"[vuex] error in after action subscribers: \");\n console.error(e);\n }\n }\n resolve(res);\n }, function (error) {\n try {\n this$1._actionSubscribers\n .filter(function (sub) { return sub.error; })\n .forEach(function (sub) { return sub.error(action, this$1.state, error); });\n } catch (e) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.warn(\"[vuex] error in error action subscribers: \");\n console.error(e);\n }\n }\n reject(error);\n });\n })\n};\n\nStore.prototype.subscribe = function subscribe (fn, options) {\n return genericSubscribe(fn, this._subscribers, options)\n};\n\nStore.prototype.subscribeAction = function subscribeAction (fn, options) {\n var subs = typeof fn === 'function' ? { before: fn } : fn;\n return genericSubscribe(subs, this._actionSubscribers, options)\n};\n\nStore.prototype.watch = function watch (getter, cb, options) {\n var this$1 = this;\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(typeof getter === 'function', \"store.watch only accepts a function.\");\n }\n return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)\n};\n\nStore.prototype.replaceState = function replaceState (state) {\n var this$1 = this;\n\n this._withCommit(function () {\n this$1._vm._data.$$state = state;\n });\n};\n\nStore.prototype.registerModule = function registerModule (path, rawModule, options) {\n if ( options === void 0 ) options = {};\n\n if (typeof path === 'string') { path = [path]; }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n assert(path.length > 0, 'cannot register the root module by using registerModule.');\n }\n\n this._modules.register(path, rawModule);\n installModule(this, this.state, path, this._modules.get(path), options.preserveState);\n // reset store to update getters...\n resetStoreVM(this, this.state);\n};\n\nStore.prototype.unregisterModule = function unregisterModule (path) {\n var this$1 = this;\n\n if (typeof path === 'string') { path = [path]; }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n }\n\n this._modules.unregister(path);\n this._withCommit(function () {\n var parentState = getNestedState(this$1.state, path.slice(0, -1));\n Vue.delete(parentState, path[path.length - 1]);\n });\n resetStore(this);\n};\n\nStore.prototype.hasModule = function hasModule (path) {\n if (typeof path === 'string') { path = [path]; }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n }\n\n return this._modules.isRegistered(path)\n};\n\nStore.prototype.hotUpdate = function hotUpdate (newOptions) {\n this._modules.update(newOptions);\n resetStore(this, true);\n};\n\nStore.prototype._withCommit = function _withCommit (fn) {\n var committing = this._committing;\n this._committing = true;\n fn();\n this._committing = committing;\n};\n\nObject.defineProperties( Store.prototype, prototypeAccessors$1 );\n\nfunction genericSubscribe (fn, subs, options) {\n if (subs.indexOf(fn) < 0) {\n options && options.prepend\n ? subs.unshift(fn)\n : subs.push(fn);\n }\n return function () {\n var i = subs.indexOf(fn);\n if (i > -1) {\n subs.splice(i, 1);\n }\n }\n}\n\nfunction resetStore (store, hot) {\n store._actions = Object.create(null);\n store._mutations = Object.create(null);\n store._wrappedGetters = Object.create(null);\n store._modulesNamespaceMap = Object.create(null);\n var state = store.state;\n // init all modules\n installModule(store, state, [], store._modules.root, true);\n // reset vm\n resetStoreVM(store, state, hot);\n}\n\nfunction resetStoreVM (store, state, hot) {\n var oldVm = store._vm;\n\n // bind store public getters\n store.getters = {};\n // reset local getters cache\n store._makeLocalGettersCache = Object.create(null);\n var wrappedGetters = store._wrappedGetters;\n var computed = {};\n forEachValue(wrappedGetters, function (fn, key) {\n // use computed to leverage its lazy-caching mechanism\n // direct inline function use will lead to closure preserving oldVm.\n // using partial to return function with only arguments preserved in closure environment.\n computed[key] = partial(fn, store);\n Object.defineProperty(store.getters, key, {\n get: function () { return store._vm[key]; },\n enumerable: true // for local getters\n });\n });\n\n // use a Vue instance to store the state tree\n // suppress warnings just in case the user has added\n // some funky global mixins\n var silent = Vue.config.silent;\n Vue.config.silent = true;\n store._vm = new Vue({\n data: {\n $$state: state\n },\n computed: computed\n });\n Vue.config.silent = silent;\n\n // enable strict mode for new vm\n if (store.strict) {\n enableStrictMode(store);\n }\n\n if (oldVm) {\n if (hot) {\n // dispatch changes in all subscribed watchers\n // to force getter re-evaluation for hot reloading.\n store._withCommit(function () {\n oldVm._data.$$state = null;\n });\n }\n Vue.nextTick(function () { return oldVm.$destroy(); });\n }\n}\n\nfunction installModule (store, rootState, path, module, hot) {\n var isRoot = !path.length;\n var namespace = store._modules.getNamespace(path);\n\n // register in namespace map\n if (module.namespaced) {\n if (store._modulesNamespaceMap[namespace] && (process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] duplicate namespace \" + namespace + \" for the namespaced module \" + (path.join('/'))));\n }\n store._modulesNamespaceMap[namespace] = module;\n }\n\n // set state\n if (!isRoot && !hot) {\n var parentState = getNestedState(rootState, path.slice(0, -1));\n var moduleName = path[path.length - 1];\n store._withCommit(function () {\n if ((process.env.NODE_ENV !== 'production')) {\n if (moduleName in parentState) {\n console.warn(\n (\"[vuex] state field \\\"\" + moduleName + \"\\\" was overridden by a module with the same name at \\\"\" + (path.join('.')) + \"\\\"\")\n );\n }\n }\n Vue.set(parentState, moduleName, module.state);\n });\n }\n\n var local = module.context = makeLocalContext(store, namespace, path);\n\n module.forEachMutation(function (mutation, key) {\n var namespacedType = namespace + key;\n registerMutation(store, namespacedType, mutation, local);\n });\n\n module.forEachAction(function (action, key) {\n var type = action.root ? key : namespace + key;\n var handler = action.handler || action;\n registerAction(store, type, handler, local);\n });\n\n module.forEachGetter(function (getter, key) {\n var namespacedType = namespace + key;\n registerGetter(store, namespacedType, getter, local);\n });\n\n module.forEachChild(function (child, key) {\n installModule(store, rootState, path.concat(key), child, hot);\n });\n}\n\n/**\n * make localized dispatch, commit, getters and state\n * if there is no namespace, just use root ones\n */\nfunction makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ((process.env.NODE_ENV !== 'production') && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ((process.env.NODE_ENV !== 'production') && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}\n\nfunction makeLocalGetters (store, namespace) {\n if (!store._makeLocalGettersCache[namespace]) {\n var gettersProxy = {};\n var splitPos = namespace.length;\n Object.keys(store.getters).forEach(function (type) {\n // skip if the target getter is not match this namespace\n if (type.slice(0, splitPos) !== namespace) { return }\n\n // extract local getter type\n var localType = type.slice(splitPos);\n\n // Add a port to the getters proxy.\n // Define as getter property because\n // we do not want to evaluate the getters in this time.\n Object.defineProperty(gettersProxy, localType, {\n get: function () { return store.getters[type]; },\n enumerable: true\n });\n });\n store._makeLocalGettersCache[namespace] = gettersProxy;\n }\n\n return store._makeLocalGettersCache[namespace]\n}\n\nfunction registerMutation (store, type, handler, local) {\n var entry = store._mutations[type] || (store._mutations[type] = []);\n entry.push(function wrappedMutationHandler (payload) {\n handler.call(store, local.state, payload);\n });\n}\n\nfunction registerAction (store, type, handler, local) {\n var entry = store._actions[type] || (store._actions[type] = []);\n entry.push(function wrappedActionHandler (payload) {\n var res = handler.call(store, {\n dispatch: local.dispatch,\n commit: local.commit,\n getters: local.getters,\n state: local.state,\n rootGetters: store.getters,\n rootState: store.state\n }, payload);\n if (!isPromise(res)) {\n res = Promise.resolve(res);\n }\n if (store._devtoolHook) {\n return res.catch(function (err) {\n store._devtoolHook.emit('vuex:error', err);\n throw err\n })\n } else {\n return res\n }\n });\n}\n\nfunction registerGetter (store, type, rawGetter, local) {\n if (store._wrappedGetters[type]) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error((\"[vuex] duplicate getter key: \" + type));\n }\n return\n }\n store._wrappedGetters[type] = function wrappedGetter (store) {\n return rawGetter(\n local.state, // local state\n local.getters, // local getters\n store.state, // root state\n store.getters // root getters\n )\n };\n}\n\nfunction enableStrictMode (store) {\n store._vm.$watch(function () { return this._data.$$state }, function () {\n if ((process.env.NODE_ENV !== 'production')) {\n assert(store._committing, \"do not mutate vuex store state outside mutation handlers.\");\n }\n }, { deep: true, sync: true });\n}\n\nfunction getNestedState (state, path) {\n return path.reduce(function (state, key) { return state[key]; }, state)\n}\n\nfunction unifyObjectStyle (type, payload, options) {\n if (isObject(type) && type.type) {\n options = payload;\n payload = type;\n type = type.type;\n }\n\n if ((process.env.NODE_ENV !== 'production')) {\n assert(typeof type === 'string', (\"expects string as the type, but found \" + (typeof type) + \".\"));\n }\n\n return { type: type, payload: payload, options: options }\n}\n\nfunction install (_Vue) {\n if (Vue && _Vue === Vue) {\n if ((process.env.NODE_ENV !== 'production')) {\n console.error(\n '[vuex] already installed. Vue.use(Vuex) should be called only once.'\n );\n }\n return\n }\n Vue = _Vue;\n applyMixin(Vue);\n}\n\n/**\n * Reduce the code which written in Vue.js for getting the state.\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.\n * @param {Object}\n */\nvar mapState = normalizeNamespace(function (namespace, states) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(states)) {\n console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(states).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedState () {\n var state = this.$store.state;\n var getters = this.$store.getters;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapState', namespace);\n if (!module) {\n return\n }\n state = module.context.state;\n getters = module.context.getters;\n }\n return typeof val === 'function'\n ? val.call(this, state, getters)\n : state[val]\n };\n // mark vuex getter for devtools\n res[key].vuex = true;\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for committing the mutation\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapMutations = normalizeNamespace(function (namespace, mutations) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(mutations)) {\n console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(mutations).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedMutation () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n // Get the commit method from store\n var commit = this.$store.commit;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);\n if (!module) {\n return\n }\n commit = module.context.commit;\n }\n return typeof val === 'function'\n ? val.apply(this, [commit].concat(args))\n : commit.apply(this.$store, [val].concat(args))\n };\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for getting the getters\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} getters\n * @return {Object}\n */\nvar mapGetters = normalizeNamespace(function (namespace, getters) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(getters)) {\n console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(getters).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n // The namespace has been mutated by normalizeNamespace\n val = namespace + val;\n res[key] = function mappedGetter () {\n if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {\n return\n }\n if ((process.env.NODE_ENV !== 'production') && !(val in this.$store.getters)) {\n console.error((\"[vuex] unknown getter: \" + val));\n return\n }\n return this.$store.getters[val]\n };\n // mark vuex getter for devtools\n res[key].vuex = true;\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for dispatch the action\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapActions = normalizeNamespace(function (namespace, actions) {\n var res = {};\n if ((process.env.NODE_ENV !== 'production') && !isValidMap(actions)) {\n console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');\n }\n normalizeMap(actions).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedAction () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n // get dispatch function from store\n var dispatch = this.$store.dispatch;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapActions', namespace);\n if (!module) {\n return\n }\n dispatch = module.context.dispatch;\n }\n return typeof val === 'function'\n ? val.apply(this, [dispatch].concat(args))\n : dispatch.apply(this.$store, [val].concat(args))\n };\n });\n return res\n});\n\n/**\n * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object\n * @param {String} namespace\n * @return {Object}\n */\nvar createNamespacedHelpers = function (namespace) { return ({\n mapState: mapState.bind(null, namespace),\n mapGetters: mapGetters.bind(null, namespace),\n mapMutations: mapMutations.bind(null, namespace),\n mapActions: mapActions.bind(null, namespace)\n}); };\n\n/**\n * Normalize the map\n * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]\n * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]\n * @param {Array|Object} map\n * @return {Object}\n */\nfunction normalizeMap (map) {\n if (!isValidMap(map)) {\n return []\n }\n return Array.isArray(map)\n ? map.map(function (key) { return ({ key: key, val: key }); })\n : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })\n}\n\n/**\n * Validate whether given map is valid or not\n * @param {*} map\n * @return {Boolean}\n */\nfunction isValidMap (map) {\n return Array.isArray(map) || isObject(map)\n}\n\n/**\n * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.\n * @param {Function} fn\n * @return {Function}\n */\nfunction normalizeNamespace (fn) {\n return function (namespace, map) {\n if (typeof namespace !== 'string') {\n map = namespace;\n namespace = '';\n } else if (namespace.charAt(namespace.length - 1) !== '/') {\n namespace += '/';\n }\n return fn(namespace, map)\n }\n}\n\n/**\n * Search a special module from store by namespace. if module not exist, print error message.\n * @param {Object} store\n * @param {String} helper\n * @param {String} namespace\n * @return {Object}\n */\nfunction getModuleByNamespace (store, helper, namespace) {\n var module = store._modulesNamespaceMap[namespace];\n if ((process.env.NODE_ENV !== 'production') && !module) {\n console.error((\"[vuex] module namespace not found in \" + helper + \"(): \" + namespace));\n }\n return module\n}\n\n// Credits: borrowed code from fcomb/redux-logger\n\nfunction createLogger (ref) {\n if ( ref === void 0 ) ref = {};\n var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;\n var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };\n var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };\n var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };\n var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };\n var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };\n var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;\n var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;\n var logger = ref.logger; if ( logger === void 0 ) logger = console;\n\n return function (store) {\n var prevState = deepCopy(store.state);\n\n if (typeof logger === 'undefined') {\n return\n }\n\n if (logMutations) {\n store.subscribe(function (mutation, state) {\n var nextState = deepCopy(state);\n\n if (filter(mutation, prevState, nextState)) {\n var formattedTime = getFormattedTime();\n var formattedMutation = mutationTransformer(mutation);\n var message = \"mutation \" + (mutation.type) + formattedTime;\n\n startMessage(logger, message, collapsed);\n logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));\n logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);\n logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));\n endMessage(logger);\n }\n\n prevState = nextState;\n });\n }\n\n if (logActions) {\n store.subscribeAction(function (action, state) {\n if (actionFilter(action, state)) {\n var formattedTime = getFormattedTime();\n var formattedAction = actionTransformer(action);\n var message = \"action \" + (action.type) + formattedTime;\n\n startMessage(logger, message, collapsed);\n logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);\n endMessage(logger);\n }\n });\n }\n }\n}\n\nfunction startMessage (logger, message, collapsed) {\n var startMessage = collapsed\n ? logger.groupCollapsed\n : logger.group;\n\n // render\n try {\n startMessage.call(logger, message);\n } catch (e) {\n logger.log(message);\n }\n}\n\nfunction endMessage (logger) {\n try {\n logger.groupEnd();\n } catch (e) {\n logger.log('—— log end ——');\n }\n}\n\nfunction getFormattedTime () {\n var time = new Date();\n return (\" @ \" + (pad(time.getHours(), 2)) + \":\" + (pad(time.getMinutes(), 2)) + \":\" + (pad(time.getSeconds(), 2)) + \".\" + (pad(time.getMilliseconds(), 3)))\n}\n\nfunction repeat (str, times) {\n return (new Array(times + 1)).join(str)\n}\n\nfunction pad (num, maxLength) {\n return repeat('0', maxLength - num.toString().length) + num\n}\n\nvar index = {\n Store: Store,\n install: install,\n version: '3.6.2',\n mapState: mapState,\n mapMutations: mapMutations,\n mapGetters: mapGetters,\n mapActions: mapActions,\n createNamespacedHelpers: createNamespacedHelpers,\n createLogger: createLogger\n};\n\nexport default index;\nexport { Store, createLogger, createNamespacedHelpers, install, mapActions, mapGetters, mapMutations, mapState };\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Loading.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Loading.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Loading.vue?vue&type=template&id=23723280&scoped=true\"\nimport script from \"./Loading.vue?vue&type=script&lang=js\"\nexport * from \"./Loading.vue?vue&type=script&lang=js\"\nimport style0 from \"./Loading.vue?vue&type=style&index=0&id=23723280&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"23723280\",\n null\n \n)\n\nexport default component.exports","/*\nLanguage: Nginx config\nAuthor: Peter Leonov \nContributors: Ivan Sagalaev \nCategory: config, web\nWebsite: https://www.nginx.com\n*/\n\n/** @type LanguageFn */\nfunction nginx(hljs) {\n const regex = hljs.regex;\n const VAR = {\n className: 'variable',\n variants: [\n { begin: /\\$\\d+/ },\n { begin: /\\$\\{\\w+\\}/ },\n { begin: regex.concat(/[$@]/, hljs.UNDERSCORE_IDENT_RE) }\n ]\n };\n const LITERALS = [\n \"on\",\n \"off\",\n \"yes\",\n \"no\",\n \"true\",\n \"false\",\n \"none\",\n \"blocked\",\n \"debug\",\n \"info\",\n \"notice\",\n \"warn\",\n \"error\",\n \"crit\",\n \"select\",\n \"break\",\n \"last\",\n \"permanent\",\n \"redirect\",\n \"kqueue\",\n \"rtsig\",\n \"epoll\",\n \"poll\",\n \"/dev/poll\"\n ];\n const DEFAULT = {\n endsWithParent: true,\n keywords: {\n $pattern: /[a-z_]{2,}|\\/dev\\/poll/,\n literal: LITERALS\n },\n relevance: 0,\n illegal: '=>',\n contains: [\n hljs.HASH_COMMENT_MODE,\n {\n className: 'string',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR\n ],\n variants: [\n {\n begin: /\"/,\n end: /\"/\n },\n {\n begin: /'/,\n end: /'/\n }\n ]\n },\n // this swallows entire URLs to avoid detecting numbers within\n {\n begin: '([a-z]+):/',\n end: '\\\\s',\n endsWithParent: true,\n excludeEnd: true,\n contains: [ VAR ]\n },\n {\n className: 'regexp',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR\n ],\n variants: [\n {\n begin: \"\\\\s\\\\^\",\n end: \"\\\\s|\\\\{|;\",\n returnEnd: true\n },\n // regexp locations (~, ~*)\n {\n begin: \"~\\\\*?\\\\s+\",\n end: \"\\\\s|\\\\{|;\",\n returnEnd: true\n },\n // *.example.com\n { begin: \"\\\\*(\\\\.[a-z\\\\-]+)+\" },\n // sub.example.*\n { begin: \"([a-z\\\\-]+\\\\.)+\\\\*\" }\n ]\n },\n // IP\n {\n className: 'number',\n begin: '\\\\b\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}(:\\\\d{1,5})?\\\\b'\n },\n // units\n {\n className: 'number',\n begin: '\\\\b\\\\d+[kKmMgGdshdwy]?\\\\b',\n relevance: 0\n },\n VAR\n ]\n };\n\n return {\n name: 'Nginx config',\n aliases: [ 'nginxconf' ],\n contains: [\n hljs.HASH_COMMENT_MODE,\n {\n beginKeywords: \"upstream location\",\n end: /;|\\{/,\n contains: DEFAULT.contains,\n keywords: { section: \"upstream location\" }\n },\n {\n className: 'section',\n begin: regex.concat(hljs.UNDERSCORE_IDENT_RE + regex.lookahead(/\\s+\\{/)),\n relevance: 0\n },\n {\n begin: regex.lookahead(hljs.UNDERSCORE_IDENT_RE + '\\\\s'),\n end: ';|\\\\{',\n contains: [\n {\n className: 'attribute',\n begin: hljs.UNDERSCORE_IDENT_RE,\n starts: DEFAULT\n }\n ],\n relevance: 0\n }\n ],\n illegal: '[^\\\\s\\\\}\\\\{]'\n };\n}\n\nmodule.exports = nginx;\n","export * from \"-!../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectIconGrid.vue?vue&type=style&index=0&id=65ba4ad5&prod&lang=scss&scoped=true\"","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isValidCron = void 0;\n// This comes from the fact that parseInt trims characters coming\n// after digits and consider it a valid int, so `1*` becomes `1`.\nvar safeParseInt = function (value) {\n if (/^\\d+$/.test(value)) {\n return Number(value);\n }\n else {\n return NaN;\n }\n};\nvar isWildcard = function (value) {\n return value === '*';\n};\nvar isQuestionMark = function (value) {\n return value === '?';\n};\nvar isInRange = function (value, start, stop) {\n return value >= start && value <= stop;\n};\nvar isValidRange = function (value, start, stop) {\n var sides = value.split('-');\n switch (sides.length) {\n case 1:\n return isWildcard(value) || isInRange(safeParseInt(value), start, stop);\n case 2:\n var _a = sides.map(function (side) { return safeParseInt(side); }), small = _a[0], big = _a[1];\n return small <= big && isInRange(small, start, stop) && isInRange(big, start, stop);\n default:\n return false;\n }\n};\nvar isValidStep = function (value) {\n return value === undefined || value.search(/[^\\d]/) === -1;\n};\nvar validateForRange = function (value, start, stop) {\n if (value.search(/[^\\d-,\\/*]/) !== -1) {\n return false;\n }\n var list = value.split(',');\n return list.every(function (condition) {\n var splits = condition.split('/');\n // Prevents `*/ * * * *` from being accepted.\n if (condition.trim().endsWith('/')) {\n return false;\n }\n // Prevents `*/*/* * * * *` from being accepted\n if (splits.length > 2) {\n return false;\n }\n // If we don't have a `/`, right will be undefined which is considered a valid step if we don't a `/`.\n var left = splits[0], right = splits[1];\n return isValidRange(left, start, stop) && isValidStep(right);\n });\n};\nvar hasValidSeconds = function (seconds) {\n return validateForRange(seconds, 0, 59);\n};\nvar hasValidMinutes = function (minutes) {\n return validateForRange(minutes, 0, 59);\n};\nvar hasValidHours = function (hours) {\n return validateForRange(hours, 0, 23);\n};\nvar hasValidDays = function (days, allowBlankDay) {\n return (allowBlankDay && isQuestionMark(days)) || validateForRange(days, 1, 31);\n};\nvar monthAlias = {\n jan: '1',\n feb: '2',\n mar: '3',\n apr: '4',\n may: '5',\n jun: '6',\n jul: '7',\n aug: '8',\n sep: '9',\n oct: '10',\n nov: '11',\n dec: '12'\n};\nvar hasValidMonths = function (months, alias) {\n // Prevents alias to be used as steps\n if (months.search(/\\/[a-zA-Z]/) !== -1) {\n return false;\n }\n if (alias) {\n var remappedMonths = months.toLowerCase().replace(/[a-z]{3}/g, function (match) {\n return monthAlias[match] === undefined ? match : monthAlias[match];\n });\n // If any invalid alias was used, it won't pass the other checks as there will be non-numeric values in the months\n return validateForRange(remappedMonths, 1, 12);\n }\n return validateForRange(months, 1, 12);\n};\nvar weekdaysAlias = {\n sun: '0',\n mon: '1',\n tue: '2',\n wed: '3',\n thu: '4',\n fri: '5',\n sat: '6'\n};\nvar hasValidWeekdays = function (weekdays, alias, allowBlankDay, allowSevenAsSunday) {\n // If there is a question mark, checks if the allowBlankDay flag is set\n if (allowBlankDay && isQuestionMark(weekdays)) {\n return true;\n }\n else if (!allowBlankDay && isQuestionMark(weekdays)) {\n return false;\n }\n // Prevents alias to be used as steps\n if (weekdays.search(/\\/[a-zA-Z]/) !== -1) {\n return false;\n }\n if (alias) {\n var remappedWeekdays = weekdays.toLowerCase().replace(/[a-z]{3}/g, function (match) {\n return weekdaysAlias[match] === undefined ? match : weekdaysAlias[match];\n });\n // If any invalid alias was used, it won't pass the other checks as there will be non-numeric values in the weekdays\n return validateForRange(remappedWeekdays, 0, allowSevenAsSunday ? 7 : 6);\n }\n return validateForRange(weekdays, 0, allowSevenAsSunday ? 7 : 6);\n};\nvar hasCompatibleDayFormat = function (days, weekdays, allowBlankDay) {\n return !(allowBlankDay && isQuestionMark(days) && isQuestionMark(weekdays));\n};\nvar split = function (cron) {\n return cron.trim().split(/\\s+/);\n};\nvar defaultOptions = {\n alias: false,\n seconds: false,\n allowBlankDay: false,\n allowSevenAsSunday: false\n};\nexports.isValidCron = function (cron, options) {\n options = __assign(__assign({}, defaultOptions), options);\n var splits = split(cron);\n if (splits.length > (options.seconds ? 6 : 5) || splits.length < 5) {\n return false;\n }\n var checks = [];\n if (splits.length === 6) {\n var seconds = splits.shift();\n if (seconds) {\n checks.push(hasValidSeconds(seconds));\n }\n }\n // We could only check the steps gradually and return false on the first invalid block,\n // However, this won't have any performance impact so why bother for now.\n var minutes = splits[0], hours = splits[1], days = splits[2], months = splits[3], weekdays = splits[4];\n checks.push(hasValidMinutes(minutes));\n checks.push(hasValidHours(hours));\n checks.push(hasValidDays(days, options.allowBlankDay));\n checks.push(hasValidMonths(months, options.alias));\n checks.push(hasValidWeekdays(weekdays, options.alias, options.allowBlankDay, options.allowSevenAsSunday));\n checks.push(hasCompatibleDayFormat(days, weekdays, options.allowBlankDay));\n return checks.every(Boolean);\n};\n//# sourceMappingURL=index.js.map","module.exports = __webpack_public_path__ + \"img/rackspace.6f98715f.svg\";","/*\nLanguage: Lua\nDescription: Lua is a powerful, efficient, lightweight, embeddable scripting language.\nAuthor: Andrew Fedorov \nCategory: common, scripting\nWebsite: https://www.lua.org\n*/\n\nfunction lua(hljs) {\n const OPENING_LONG_BRACKET = '\\\\[=*\\\\[';\n const CLOSING_LONG_BRACKET = '\\\\]=*\\\\]';\n const LONG_BRACKETS = {\n begin: OPENING_LONG_BRACKET,\n end: CLOSING_LONG_BRACKET,\n contains: [ 'self' ]\n };\n const COMMENTS = [\n hljs.COMMENT('--(?!' + OPENING_LONG_BRACKET + ')', '$'),\n hljs.COMMENT(\n '--' + OPENING_LONG_BRACKET,\n CLOSING_LONG_BRACKET,\n {\n contains: [ LONG_BRACKETS ],\n relevance: 10\n }\n )\n ];\n return {\n name: 'Lua',\n keywords: {\n $pattern: hljs.UNDERSCORE_IDENT_RE,\n literal: \"true false nil\",\n keyword: \"and break do else elseif end for goto if in local not or repeat return then until while\",\n built_in:\n // Metatags and globals:\n '_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len '\n + '__gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert '\n // Standard methods and properties:\n + 'collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring '\n + 'module next pairs pcall print rawequal rawget rawset require select setfenv '\n + 'setmetatable tonumber tostring type unpack xpcall arg self '\n // Library methods and properties (one line per library):\n + 'coroutine resume yield status wrap create running debug getupvalue '\n + 'debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv '\n + 'io lines write close flush open output type read stderr stdin input stdout popen tmpfile '\n + 'math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan '\n + 'os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall '\n + 'string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower '\n + 'table setn insert getn foreachi maxn foreach concat sort remove'\n },\n contains: COMMENTS.concat([\n {\n className: 'function',\n beginKeywords: 'function',\n end: '\\\\)',\n contains: [\n hljs.inherit(hljs.TITLE_MODE, { begin: '([_a-zA-Z]\\\\w*\\\\.)*([_a-zA-Z]\\\\w*:)?[_a-zA-Z]\\\\w*' }),\n {\n className: 'params',\n begin: '\\\\(',\n endsWithParent: true,\n contains: COMMENTS\n }\n ].concat(COMMENTS)\n },\n hljs.C_NUMBER_MODE,\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n {\n className: 'string',\n begin: OPENING_LONG_BRACKET,\n end: CLOSING_LONG_BRACKET,\n contains: [ LONG_BRACKETS ],\n relevance: 5\n }\n ])\n };\n}\n\nmodule.exports = lua;\n","module.exports = __webpack_public_path__ + \"img/generic-catalog.99bdaecf.svg\";","module.exports = __webpack_public_path__ + \"img/amazonec2-black.d1821012.svg\";","export * from \"-!../../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Select.vue?vue&type=style&index=0&id=55a8f708&prod&lang=scss&scoped=true\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".outer-container[data-v-41c6a168]{display:flex;flex-direction:column;flex:1;padding:0;justify-content:flex-start}.header[data-v-41c6a168]{display:flex;align-content:space-between;align-items:center;margin-bottom:20px;border-bottom:var(--header-border-size) solid var(--header-border)}.header .step-sequence[data-v-41c6a168],.header>.title[data-v-41c6a168]{flex:1;min-height:60px;display:flex}.header .step-sequence .steps[data-v-41c6a168]{flex:1;margin:0 30px;display:flex;justify-content:space-between;list-style-type:none;padding:0}.header .step-sequence .steps[data-v-41c6a168]:focus{outline:none;box-shadow:none}.header .step-sequence .steps li.step[data-v-41c6a168]{display:flex;flex-direction:row;flex-grow:1;align-items:center}.header .step-sequence .steps li.step>span>span[data-v-41c6a168]:last-of-type{padding-bottom:0}.header .step-sequence .steps li.step[data-v-41c6a168]:last-of-type{flex-grow:0}.header .step-sequence .steps li.step .controls[data-v-41c6a168]{display:flex;flex-direction:column;align-items:center;width:40px;overflow:visible;padding-top:7px}.header .step-sequence .steps li.step .controls>span[data-v-41c6a168]{padding-bottom:3px;margin-bottom:5px;white-space:nowrap}.header .step-sequence .steps li.step.active .controls[data-v-41c6a168]{color:var(--primary)}.header .step-sequence .steps li.step:not(.disabled) .controls:hover>*[data-v-41c6a168]{color:var(--primary)!important;cursor:pointer}.header .step-sequence .steps li.step:not(.active) .controls>*[data-v-41c6a168]{color:var(--input-disabled-text);text-decoration:none}.header .step-sequence .steps .divider[data-v-41c6a168]{flex-basis:100%;border-top:1px solid var(--border);position:relative;top:17px}.cru__content .header .step-sequence .steps .divider[data-v-41c6a168]{top:13px}.header .choice-banner[data-v-41c6a168]{flex-basis:40%;display:flex;align-items:center;margin-bottom:10px}.header .choice-banner.selected[data-v-41c6a168]{background-color:var(--accent-btn)}.header .choice-banner.top H2[data-v-41c6a168]{margin:0}.header .choice-banner.top .title[data-v-41c6a168]{display:flex;align-items:center;justify-content:space-evenly;position:relative}.header .choice-banner.top .title>.subtitle[data-v-41c6a168]{margin-right:20px}.header .choice-banner.top .subtitle[data-v-41c6a168]{display:flex;flex-direction:column}.header .choice-banner.top .subtitle .subtext[data-v-41c6a168]{color:var(--input-label)}.header .choice-banner[data-v-41c6a168]:not(.top){box-shadow:0 0 12px 3px var(--box-bg);flex-direction:row;align-items:center;justify-content:start}.header .choice-banner[data-v-41c6a168]:not(.top):hover{outline:var(--outline-width) solid var(--outline);cursor:pointer}.header .choice-banner .round-image[data-v-41c6a168]{min-width:50px;height:50px;margin:10px 10px 10px 0;border-radius:50%;overflow:hidden}.header .choice-banner .round-image .logo[data-v-41c6a168]{min-width:50px;height:50px}.step-container[data-v-41c6a168]{position:relative;flex:1 1 auto;height:0;overflow-y:auto;padding:20px 2px 2px 2px;display:flex;flex-direction:column}.step-container__step[data-v-41c6a168]{overflow:hidden;display:flex;flex-direction:column;flex:1}.footer-error[data-v-41c6a168]{margin-top:-40px;margin-bottom:70px}.controls-row[data-v-41c6a168]{margin-left:-20px;margin-right:-20px;padding:10px 20px;display:flex;justify-content:space-between;padding-top:10px;border-top:var(--header-border-size) solid var(--header-border);position:absolute;bottom:0;width:100%;background:var(--body-bg)}.controls-row .controls-steps .btn[data-v-41c6a168]{margin-left:10px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';\nconst KEYWORDS = [\n \"as\", // for exports\n \"in\",\n \"of\",\n \"if\",\n \"for\",\n \"while\",\n \"finally\",\n \"var\",\n \"new\",\n \"function\",\n \"do\",\n \"return\",\n \"void\",\n \"else\",\n \"break\",\n \"catch\",\n \"instanceof\",\n \"with\",\n \"throw\",\n \"case\",\n \"default\",\n \"try\",\n \"switch\",\n \"continue\",\n \"typeof\",\n \"delete\",\n \"let\",\n \"yield\",\n \"const\",\n \"class\",\n // JS handles these with a special rule\n // \"get\",\n // \"set\",\n \"debugger\",\n \"async\",\n \"await\",\n \"static\",\n \"import\",\n \"from\",\n \"export\",\n \"extends\"\n];\nconst LITERALS = [\n \"true\",\n \"false\",\n \"null\",\n \"undefined\",\n \"NaN\",\n \"Infinity\"\n];\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects\nconst TYPES = [\n // Fundamental objects\n \"Object\",\n \"Function\",\n \"Boolean\",\n \"Symbol\",\n // numbers and dates\n \"Math\",\n \"Date\",\n \"Number\",\n \"BigInt\",\n // text\n \"String\",\n \"RegExp\",\n // Indexed collections\n \"Array\",\n \"Float32Array\",\n \"Float64Array\",\n \"Int8Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"Int16Array\",\n \"Int32Array\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"BigInt64Array\",\n \"BigUint64Array\",\n // Keyed collections\n \"Set\",\n \"Map\",\n \"WeakSet\",\n \"WeakMap\",\n // Structured data\n \"ArrayBuffer\",\n \"SharedArrayBuffer\",\n \"Atomics\",\n \"DataView\",\n \"JSON\",\n // Control abstraction objects\n \"Promise\",\n \"Generator\",\n \"GeneratorFunction\",\n \"AsyncFunction\",\n // Reflection\n \"Reflect\",\n \"Proxy\",\n // Internationalization\n \"Intl\",\n // WebAssembly\n \"WebAssembly\"\n];\n\nconst ERROR_TYPES = [\n \"Error\",\n \"EvalError\",\n \"InternalError\",\n \"RangeError\",\n \"ReferenceError\",\n \"SyntaxError\",\n \"TypeError\",\n \"URIError\"\n];\n\nconst BUILT_IN_GLOBALS = [\n \"setInterval\",\n \"setTimeout\",\n \"clearInterval\",\n \"clearTimeout\",\n\n \"require\",\n \"exports\",\n\n \"eval\",\n \"isFinite\",\n \"isNaN\",\n \"parseFloat\",\n \"parseInt\",\n \"decodeURI\",\n \"decodeURIComponent\",\n \"encodeURI\",\n \"encodeURIComponent\",\n \"escape\",\n \"unescape\"\n];\n\nconst BUILT_IN_VARIABLES = [\n \"arguments\",\n \"this\",\n \"super\",\n \"console\",\n \"window\",\n \"document\",\n \"localStorage\",\n \"module\",\n \"global\" // Node.js\n];\n\nconst BUILT_INS = [].concat(\n BUILT_IN_GLOBALS,\n TYPES,\n ERROR_TYPES\n);\n\n/*\nLanguage: JavaScript\nDescription: JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions.\nCategory: common, scripting, web\nWebsite: https://developer.mozilla.org/en-US/docs/Web/JavaScript\n*/\n\n/** @type LanguageFn */\nfunction javascript(hljs) {\n const regex = hljs.regex;\n /**\n * Takes a string like \" {\n const tag = \"',\n end: ''\n };\n // to avoid some special cases inside isTrulyOpeningTag\n const XML_SELF_CLOSING = /<[A-Za-z0-9\\\\._:-]+\\s*\\/>/;\n const XML_TAG = {\n begin: /<[A-Za-z0-9\\\\._:-]+/,\n end: /\\/[A-Za-z0-9\\\\._:-]+>|\\/>/,\n /**\n * @param {RegExpMatchArray} match\n * @param {CallbackResponse} response\n */\n isTrulyOpeningTag: (match, response) => {\n const afterMatchIndex = match[0].length + match.index;\n const nextChar = match.input[afterMatchIndex];\n if (\n // HTML should not include another raw `<` inside a tag\n // nested type?\n // `>`, etc.\n nextChar === \"<\" ||\n // the , gives away that this is not HTML\n // ``\n nextChar === \",\") {\n response.ignoreMatch();\n return;\n }\n\n // ``\n // Quite possibly a tag, lets look for a matching closing tag...\n if (nextChar === \">\") {\n // if we cannot find a matching closing tag, then we\n // will ignore it\n if (!hasClosingTag(match, { after: afterMatchIndex })) {\n response.ignoreMatch();\n }\n }\n\n // `` (self-closing)\n // handled by simpleSelfClosing rule\n\n // ``\n // technically this could be HTML, but it smells like a type\n let m;\n const afterMatch = match.input.substring(afterMatchIndex);\n // NOTE: This is ugh, but added specifically for https://github.com/highlightjs/highlight.js/issues/3276\n if ((m = afterMatch.match(/^\\s+extends\\s+/))) {\n if (m.index === 0) {\n response.ignoreMatch();\n // eslint-disable-next-line no-useless-return\n return;\n }\n }\n }\n };\n const KEYWORDS$1 = {\n $pattern: IDENT_RE,\n keyword: KEYWORDS,\n literal: LITERALS,\n built_in: BUILT_INS,\n \"variable.language\": BUILT_IN_VARIABLES\n };\n\n // https://tc39.es/ecma262/#sec-literals-numeric-literals\n const decimalDigits = '[0-9](_?[0-9])*';\n const frac = `\\\\.(${decimalDigits})`;\n // DecimalIntegerLiteral, including Annex B NonOctalDecimalIntegerLiteral\n // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals\n const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`;\n const NUMBER = {\n className: 'number',\n variants: [\n // DecimalLiteral\n { begin: `(\\\\b(${decimalInteger})((${frac})|\\\\.)?|(${frac}))` +\n `[eE][+-]?(${decimalDigits})\\\\b` },\n { begin: `\\\\b(${decimalInteger})\\\\b((${frac})\\\\b|\\\\.)?|(${frac})\\\\b` },\n\n // DecimalBigIntegerLiteral\n { begin: `\\\\b(0|[1-9](_?[0-9])*)n\\\\b` },\n\n // NonDecimalIntegerLiteral\n { begin: \"\\\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\\\b\" },\n { begin: \"\\\\b0[bB][0-1](_?[0-1])*n?\\\\b\" },\n { begin: \"\\\\b0[oO][0-7](_?[0-7])*n?\\\\b\" },\n\n // LegacyOctalIntegerLiteral (does not include underscore separators)\n // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals\n { begin: \"\\\\b0[0-7]+n?\\\\b\" },\n ],\n relevance: 0\n };\n\n const SUBST = {\n className: 'subst',\n begin: '\\\\$\\\\{',\n end: '\\\\}',\n keywords: KEYWORDS$1,\n contains: [] // defined later\n };\n const HTML_TEMPLATE = {\n begin: 'html`',\n end: '',\n starts: {\n end: '`',\n returnEnd: false,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ],\n subLanguage: 'xml'\n }\n };\n const CSS_TEMPLATE = {\n begin: 'css`',\n end: '',\n starts: {\n end: '`',\n returnEnd: false,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ],\n subLanguage: 'css'\n }\n };\n const TEMPLATE_STRING = {\n className: 'string',\n begin: '`',\n end: '`',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ]\n };\n const JSDOC_COMMENT = hljs.COMMENT(\n /\\/\\*\\*(?!\\/)/,\n '\\\\*/',\n {\n relevance: 0,\n contains: [\n {\n begin: '(?=@[A-Za-z]+)',\n relevance: 0,\n contains: [\n {\n className: 'doctag',\n begin: '@[A-Za-z]+'\n },\n {\n className: 'type',\n begin: '\\\\{',\n end: '\\\\}',\n excludeEnd: true,\n excludeBegin: true,\n relevance: 0\n },\n {\n className: 'variable',\n begin: IDENT_RE$1 + '(?=\\\\s*(-)|$)',\n endsParent: true,\n relevance: 0\n },\n // eat spaces (not newlines) so we can find\n // types or variables\n {\n begin: /(?=[^\\n])\\s/,\n relevance: 0\n }\n ]\n }\n ]\n }\n );\n const COMMENT = {\n className: \"comment\",\n variants: [\n JSDOC_COMMENT,\n hljs.C_BLOCK_COMMENT_MODE,\n hljs.C_LINE_COMMENT_MODE\n ]\n };\n const SUBST_INTERNALS = [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n HTML_TEMPLATE,\n CSS_TEMPLATE,\n TEMPLATE_STRING,\n NUMBER,\n // This is intentional:\n // See https://github.com/highlightjs/highlight.js/issues/3288\n // hljs.REGEXP_MODE\n ];\n SUBST.contains = SUBST_INTERNALS\n .concat({\n // we need to pair up {} inside our subst to prevent\n // it from ending too early by matching another }\n begin: /\\{/,\n end: /\\}/,\n keywords: KEYWORDS$1,\n contains: [\n \"self\"\n ].concat(SUBST_INTERNALS)\n });\n const SUBST_AND_COMMENTS = [].concat(COMMENT, SUBST.contains);\n const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([\n // eat recursive parens in sub expressions\n {\n begin: /\\(/,\n end: /\\)/,\n keywords: KEYWORDS$1,\n contains: [\"self\"].concat(SUBST_AND_COMMENTS)\n }\n ]);\n const PARAMS = {\n className: 'params',\n begin: /\\(/,\n end: /\\)/,\n excludeBegin: true,\n excludeEnd: true,\n keywords: KEYWORDS$1,\n contains: PARAMS_CONTAINS\n };\n\n // ES6 classes\n const CLASS_OR_EXTENDS = {\n variants: [\n // class Car extends vehicle\n {\n match: [\n /class/,\n /\\s+/,\n IDENT_RE$1,\n /\\s+/,\n /extends/,\n /\\s+/,\n regex.concat(IDENT_RE$1, \"(\", regex.concat(/\\./, IDENT_RE$1), \")*\")\n ],\n scope: {\n 1: \"keyword\",\n 3: \"title.class\",\n 5: \"keyword\",\n 7: \"title.class.inherited\"\n }\n },\n // class Car\n {\n match: [\n /class/,\n /\\s+/,\n IDENT_RE$1\n ],\n scope: {\n 1: \"keyword\",\n 3: \"title.class\"\n }\n },\n\n ]\n };\n\n const CLASS_REFERENCE = {\n relevance: 0,\n match:\n regex.either(\n // Hard coded exceptions\n /\\bJSON/,\n // Float32Array, OutT\n /\\b[A-Z][a-z]+([A-Z][a-z]*|\\d)*/,\n // CSSFactory, CSSFactoryT\n /\\b[A-Z]{2,}([A-Z][a-z]+|\\d)+([A-Z][a-z]*)*/,\n // FPs, FPsT\n /\\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\\d)*([A-Z][a-z]*)*/,\n // P\n // single letters are not highlighted\n // BLAH\n // this will be flagged as a UPPER_CASE_CONSTANT instead\n ),\n className: \"title.class\",\n keywords: {\n _: [\n // se we still get relevance credit for JS library classes\n ...TYPES,\n ...ERROR_TYPES\n ]\n }\n };\n\n const USE_STRICT = {\n label: \"use_strict\",\n className: 'meta',\n relevance: 10,\n begin: /^\\s*['\"]use (strict|asm)['\"]/\n };\n\n const FUNCTION_DEFINITION = {\n variants: [\n {\n match: [\n /function/,\n /\\s+/,\n IDENT_RE$1,\n /(?=\\s*\\()/\n ]\n },\n // anonymous function\n {\n match: [\n /function/,\n /\\s*(?=\\()/\n ]\n }\n ],\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n },\n label: \"func.def\",\n contains: [ PARAMS ],\n illegal: /%/\n };\n\n const UPPER_CASE_CONSTANT = {\n relevance: 0,\n match: /\\b[A-Z][A-Z_0-9]+\\b/,\n className: \"variable.constant\"\n };\n\n function noneOf(list) {\n return regex.concat(\"(?!\", list.join(\"|\"), \")\");\n }\n\n const FUNCTION_CALL = {\n match: regex.concat(\n /\\b/,\n noneOf([\n ...BUILT_IN_GLOBALS,\n \"super\"\n ]),\n IDENT_RE$1, regex.lookahead(/\\(/)),\n className: \"title.function\",\n relevance: 0\n };\n\n const PROPERTY_ACCESS = {\n begin: regex.concat(/\\./, regex.lookahead(\n regex.concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/)\n )),\n end: IDENT_RE$1,\n excludeBegin: true,\n keywords: \"prototype\",\n className: \"property\",\n relevance: 0\n };\n\n const GETTER_OR_SETTER = {\n match: [\n /get|set/,\n /\\s+/,\n IDENT_RE$1,\n /(?=\\()/\n ],\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n },\n contains: [\n { // eat to avoid empty params\n begin: /\\(\\)/\n },\n PARAMS\n ]\n };\n\n const FUNC_LEAD_IN_RE = '(\\\\(' +\n '[^()]*(\\\\(' +\n '[^()]*(\\\\(' +\n '[^()]*' +\n '\\\\)[^()]*)*' +\n '\\\\)[^()]*)*' +\n '\\\\)|' + hljs.UNDERSCORE_IDENT_RE + ')\\\\s*=>';\n\n const FUNCTION_VARIABLE = {\n match: [\n /const|var|let/, /\\s+/,\n IDENT_RE$1, /\\s*/,\n /=\\s*/,\n /(async\\s*)?/, // async is optional\n regex.lookahead(FUNC_LEAD_IN_RE)\n ],\n keywords: \"async\",\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n },\n contains: [\n PARAMS\n ]\n };\n\n return {\n name: 'Javascript',\n aliases: ['js', 'jsx', 'mjs', 'cjs'],\n keywords: KEYWORDS$1,\n // this will be extended by TypeScript\n exports: { PARAMS_CONTAINS, CLASS_REFERENCE },\n illegal: /#(?![$_A-z])/,\n contains: [\n hljs.SHEBANG({\n label: \"shebang\",\n binary: \"node\",\n relevance: 5\n }),\n USE_STRICT,\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n HTML_TEMPLATE,\n CSS_TEMPLATE,\n TEMPLATE_STRING,\n COMMENT,\n NUMBER,\n CLASS_REFERENCE,\n {\n className: 'attr',\n begin: IDENT_RE$1 + regex.lookahead(':'),\n relevance: 0\n },\n FUNCTION_VARIABLE,\n { // \"value\" container\n begin: '(' + hljs.RE_STARTERS_RE + '|\\\\b(case|return|throw)\\\\b)\\\\s*',\n keywords: 'return throw case',\n relevance: 0,\n contains: [\n COMMENT,\n hljs.REGEXP_MODE,\n {\n className: 'function',\n // we have to count the parens to make sure we actually have the\n // correct bounding ( ) before the =>. There could be any number of\n // sub-expressions inside also surrounded by parens.\n begin: FUNC_LEAD_IN_RE,\n returnBegin: true,\n end: '\\\\s*=>',\n contains: [\n {\n className: 'params',\n variants: [\n {\n begin: hljs.UNDERSCORE_IDENT_RE,\n relevance: 0\n },\n {\n className: null,\n begin: /\\(\\s*\\)/,\n skip: true\n },\n {\n begin: /\\(/,\n end: /\\)/,\n excludeBegin: true,\n excludeEnd: true,\n keywords: KEYWORDS$1,\n contains: PARAMS_CONTAINS\n }\n ]\n }\n ]\n },\n { // could be a comma delimited list of params to a function call\n begin: /,/,\n relevance: 0\n },\n {\n match: /\\s+/,\n relevance: 0\n },\n { // JSX\n variants: [\n { begin: FRAGMENT.begin, end: FRAGMENT.end },\n { match: XML_SELF_CLOSING },\n {\n begin: XML_TAG.begin,\n // we carefully check the opening tag to see if it truly\n // is a tag and not a false positive\n 'on:begin': XML_TAG.isTrulyOpeningTag,\n end: XML_TAG.end\n }\n ],\n subLanguage: 'xml',\n contains: [\n {\n begin: XML_TAG.begin,\n end: XML_TAG.end,\n skip: true,\n contains: ['self']\n }\n ]\n }\n ],\n },\n FUNCTION_DEFINITION,\n {\n // prevent this from getting swallowed up by function\n // since they appear \"function like\"\n beginKeywords: \"while if switch catch for\"\n },\n {\n // we have to count the parens to make sure we actually have the correct\n // bounding ( ). There could be any number of sub-expressions inside\n // also surrounded by parens.\n begin: '\\\\b(?!function)' + hljs.UNDERSCORE_IDENT_RE +\n '\\\\(' + // first parens\n '[^()]*(\\\\(' +\n '[^()]*(\\\\(' +\n '[^()]*' +\n '\\\\)[^()]*)*' +\n '\\\\)[^()]*)*' +\n '\\\\)\\\\s*\\\\{', // end parens\n returnBegin:true,\n label: \"func.def\",\n contains: [\n PARAMS,\n hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1, className: \"title.function\" })\n ]\n },\n // catch ... so it won't trigger the property rule below\n {\n match: /\\.\\.\\./,\n relevance: 0\n },\n PROPERTY_ACCESS,\n // hack: prevents detection of keywords in some circumstances\n // .keyword()\n // $keyword = x\n {\n match: '\\\\$' + IDENT_RE$1,\n relevance: 0\n },\n {\n match: [ /\\bconstructor(?=\\s*\\()/ ],\n className: { 1: \"title.function\" },\n contains: [ PARAMS ]\n },\n FUNCTION_CALL,\n UPPER_CASE_CONSTANT,\n CLASS_OR_EXTENDS,\n GETTER_OR_SETTER,\n {\n match: /\\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`\n }\n ]\n };\n}\n\n/*\nLanguage: TypeScript\nAuthor: Panu Horsmalahti \nContributors: Ike Ku \nDescription: TypeScript is a strict superset of JavaScript\nWebsite: https://www.typescriptlang.org\nCategory: common, scripting\n*/\n\n/** @type LanguageFn */\nfunction typescript(hljs) {\n const tsLanguage = javascript(hljs);\n\n const IDENT_RE$1 = IDENT_RE;\n const TYPES = [\n \"any\",\n \"void\",\n \"number\",\n \"boolean\",\n \"string\",\n \"object\",\n \"never\",\n \"symbol\",\n \"bigint\",\n \"unknown\"\n ];\n const NAMESPACE = {\n beginKeywords: 'namespace',\n end: /\\{/,\n excludeEnd: true,\n contains: [ tsLanguage.exports.CLASS_REFERENCE ]\n };\n const INTERFACE = {\n beginKeywords: 'interface',\n end: /\\{/,\n excludeEnd: true,\n keywords: {\n keyword: 'interface extends',\n built_in: TYPES\n },\n contains: [ tsLanguage.exports.CLASS_REFERENCE ]\n };\n const USE_STRICT = {\n className: 'meta',\n relevance: 10,\n begin: /^\\s*['\"]use strict['\"]/\n };\n const TS_SPECIFIC_KEYWORDS = [\n \"type\",\n \"namespace\",\n \"interface\",\n \"public\",\n \"private\",\n \"protected\",\n \"implements\",\n \"declare\",\n \"abstract\",\n \"readonly\",\n \"enum\",\n \"override\"\n ];\n const KEYWORDS$1 = {\n $pattern: IDENT_RE,\n keyword: KEYWORDS.concat(TS_SPECIFIC_KEYWORDS),\n literal: LITERALS,\n built_in: BUILT_INS.concat(TYPES),\n \"variable.language\": BUILT_IN_VARIABLES\n };\n const DECORATOR = {\n className: 'meta',\n begin: '@' + IDENT_RE$1,\n };\n\n const swapMode = (mode, label, replacement) => {\n const indx = mode.contains.findIndex(m => m.label === label);\n if (indx === -1) { throw new Error(\"can not find mode to replace\"); }\n\n mode.contains.splice(indx, 1, replacement);\n };\n\n\n // this should update anywhere keywords is used since\n // it will be the same actual JS object\n Object.assign(tsLanguage.keywords, KEYWORDS$1);\n\n tsLanguage.exports.PARAMS_CONTAINS.push(DECORATOR);\n tsLanguage.contains = tsLanguage.contains.concat([\n DECORATOR,\n NAMESPACE,\n INTERFACE,\n ]);\n\n // TS gets a simpler shebang rule than JS\n swapMode(tsLanguage, \"shebang\", hljs.SHEBANG());\n // JS use strict rule purposely excludes `asm` which makes no sense\n swapMode(tsLanguage, \"use_strict\", USE_STRICT);\n\n const functionDeclaration = tsLanguage.contains.find(m => m.label === \"func.def\");\n functionDeclaration.relevance = 0; // () => {} is more typical in TypeScript\n\n Object.assign(tsLanguage, {\n name: 'TypeScript',\n aliases: [\n 'ts',\n 'tsx'\n ]\n });\n\n return tsLanguage;\n}\n\nmodule.exports = typescript;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".overlay[data-v-23723280]{align-items:center;background-color:var(--overlay-bg);display:flex;justify-content:center;position:absolute;bottom:0;top:0;left:0;right:0;text-align:center;z-index:51}.overlay-content-mode[data-v-23723280],.overlay-main-mode[data-v-23723280]{top:var(--header-height)}.overlay-content-mode[data-v-23723280]{left:calc(var(--nav-width))}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".buttons{display:grid;grid-template-areas:\\\"left right\\\";grid-template-columns:\\\"min-content auto\\\"}.buttons .left{grid-area:left;text-align:left}.buttons .left .btn,.buttons .left button{margin:0 1.75% 0 0}.buttons .right{grid-area:right;text-align:right}.buttons .right .btn,.buttons .right button{margin:0 0 0 1.75%}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export * from \"-!../../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./KeyValue.vue?vue&type=style&index=0&id=0c22da1d&prod&lang=scss\"","export * from \"-!../../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./NameNsDescription.vue?vue&type=style&index=0&id=08979412&prod&lang=scss&scoped=true\"","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./NameNsDescription.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./NameNsDescription.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./NameNsDescription.vue?vue&type=template&id=08979412&scoped=true\"\nimport script from \"./NameNsDescription.vue?vue&type=script&lang=js\"\nexport * from \"./NameNsDescription.vue?vue&type=script&lang=js\"\nimport style0 from \"./NameNsDescription.vue?vue&type=style&index=0&id=08979412&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"08979412\",\n null\n \n)\n\nexport default component.exports","/*\nLanguage: Go\nAuthor: Stephan Kountso aka StepLg \nContributors: Evgeny Stepanischev \nDescription: Google go language (golang). For info about language\nWebsite: http://golang.org/\nCategory: common, system\n*/\n\nfunction go(hljs) {\n const LITERALS = [\n \"true\",\n \"false\",\n \"iota\",\n \"nil\"\n ];\n const BUILT_INS = [\n \"append\",\n \"cap\",\n \"close\",\n \"complex\",\n \"copy\",\n \"imag\",\n \"len\",\n \"make\",\n \"new\",\n \"panic\",\n \"print\",\n \"println\",\n \"real\",\n \"recover\",\n \"delete\"\n ];\n const TYPES = [\n \"bool\",\n \"byte\",\n \"complex64\",\n \"complex128\",\n \"error\",\n \"float32\",\n \"float64\",\n \"int8\",\n \"int16\",\n \"int32\",\n \"int64\",\n \"string\",\n \"uint8\",\n \"uint16\",\n \"uint32\",\n \"uint64\",\n \"int\",\n \"uint\",\n \"uintptr\",\n \"rune\"\n ];\n const KWS = [\n \"break\",\n \"case\",\n \"chan\",\n \"const\",\n \"continue\",\n \"default\",\n \"defer\",\n \"else\",\n \"fallthrough\",\n \"for\",\n \"func\",\n \"go\",\n \"goto\",\n \"if\",\n \"import\",\n \"interface\",\n \"map\",\n \"package\",\n \"range\",\n \"return\",\n \"select\",\n \"struct\",\n \"switch\",\n \"type\",\n \"var\",\n ];\n const KEYWORDS = {\n keyword: KWS,\n type: TYPES,\n literal: LITERALS,\n built_in: BUILT_INS\n };\n return {\n name: 'Go',\n aliases: [ 'golang' ],\n keywords: KEYWORDS,\n illegal: ' source(x)).join(\"\");\n return joined;\n}\n\n/**\n * @param { Array } args\n * @returns {object}\n */\nfunction stripOptionsFromArgs(args) {\n const opts = args[args.length - 1];\n\n if (typeof opts === 'object' && opts.constructor === Object) {\n args.splice(args.length - 1, 1);\n return opts;\n } else {\n return {};\n }\n}\n\n/** @typedef { {capture?: boolean} } RegexEitherOptions */\n\n/**\n * Any of the passed expresssions may match\n *\n * Creates a huge this | this | that | that match\n * @param {(RegExp | string)[] | [...(RegExp | string)[], RegexEitherOptions]} args\n * @returns {string}\n */\nfunction either(...args) {\n /** @type { object & {capture?: boolean} } */\n const opts = stripOptionsFromArgs(args);\n const joined = '('\n + (opts.capture ? \"\" : \"?:\")\n + args.map((x) => source(x)).join(\"|\") + \")\";\n return joined;\n}\n\nconst keywordWrapper = keyword => concat(\n /\\b/,\n keyword,\n /\\w$/.test(keyword) ? /\\b/ : /\\B/\n);\n\n// Keywords that require a leading dot.\nconst dotKeywords = [\n 'Protocol', // contextual\n 'Type' // contextual\n].map(keywordWrapper);\n\n// Keywords that may have a leading dot.\nconst optionalDotKeywords = [\n 'init',\n 'self'\n].map(keywordWrapper);\n\n// should register as keyword, not type\nconst keywordTypes = [\n 'Any',\n 'Self'\n];\n\n// Regular keywords and literals.\nconst keywords = [\n // strings below will be fed into the regular `keywords` engine while regex\n // will result in additional modes being created to scan for those keywords to\n // avoid conflicts with other rules\n 'actor',\n 'any', // contextual\n 'associatedtype',\n 'async',\n 'await',\n /as\\?/, // operator\n /as!/, // operator\n 'as', // operator\n 'break',\n 'case',\n 'catch',\n 'class',\n 'continue',\n 'convenience', // contextual\n 'default',\n 'defer',\n 'deinit',\n 'didSet', // contextual\n 'distributed',\n 'do',\n 'dynamic', // contextual\n 'else',\n 'enum',\n 'extension',\n 'fallthrough',\n /fileprivate\\(set\\)/,\n 'fileprivate',\n 'final', // contextual\n 'for',\n 'func',\n 'get', // contextual\n 'guard',\n 'if',\n 'import',\n 'indirect', // contextual\n 'infix', // contextual\n /init\\?/,\n /init!/,\n 'inout',\n /internal\\(set\\)/,\n 'internal',\n 'in',\n 'is', // operator\n 'isolated', // contextual\n 'nonisolated', // contextual\n 'lazy', // contextual\n 'let',\n 'mutating', // contextual\n 'nonmutating', // contextual\n /open\\(set\\)/, // contextual\n 'open', // contextual\n 'operator',\n 'optional', // contextual\n 'override', // contextual\n 'postfix', // contextual\n 'precedencegroup',\n 'prefix', // contextual\n /private\\(set\\)/,\n 'private',\n 'protocol',\n /public\\(set\\)/,\n 'public',\n 'repeat',\n 'required', // contextual\n 'rethrows',\n 'return',\n 'set', // contextual\n 'some', // contextual\n 'static',\n 'struct',\n 'subscript',\n 'super',\n 'switch',\n 'throws',\n 'throw',\n /try\\?/, // operator\n /try!/, // operator\n 'try', // operator\n 'typealias',\n /unowned\\(safe\\)/, // contextual\n /unowned\\(unsafe\\)/, // contextual\n 'unowned', // contextual\n 'var',\n 'weak', // contextual\n 'where',\n 'while',\n 'willSet' // contextual\n];\n\n// NOTE: Contextual keywords are reserved only in specific contexts.\n// Ideally, these should be matched using modes to avoid false positives.\n\n// Literals.\nconst literals = [\n 'false',\n 'nil',\n 'true'\n];\n\n// Keywords used in precedence groups.\nconst precedencegroupKeywords = [\n 'assignment',\n 'associativity',\n 'higherThan',\n 'left',\n 'lowerThan',\n 'none',\n 'right'\n];\n\n// Keywords that start with a number sign (#).\n// #(un)available is handled separately.\nconst numberSignKeywords = [\n '#colorLiteral',\n '#column',\n '#dsohandle',\n '#else',\n '#elseif',\n '#endif',\n '#error',\n '#file',\n '#fileID',\n '#fileLiteral',\n '#filePath',\n '#function',\n '#if',\n '#imageLiteral',\n '#keyPath',\n '#line',\n '#selector',\n '#sourceLocation',\n '#warn_unqualified_access',\n '#warning'\n];\n\n// Global functions in the Standard Library.\nconst builtIns = [\n 'abs',\n 'all',\n 'any',\n 'assert',\n 'assertionFailure',\n 'debugPrint',\n 'dump',\n 'fatalError',\n 'getVaList',\n 'isKnownUniquelyReferenced',\n 'max',\n 'min',\n 'numericCast',\n 'pointwiseMax',\n 'pointwiseMin',\n 'precondition',\n 'preconditionFailure',\n 'print',\n 'readLine',\n 'repeatElement',\n 'sequence',\n 'stride',\n 'swap',\n 'swift_unboxFromSwiftValueWithType',\n 'transcode',\n 'type',\n 'unsafeBitCast',\n 'unsafeDowncast',\n 'withExtendedLifetime',\n 'withUnsafeMutablePointer',\n 'withUnsafePointer',\n 'withVaList',\n 'withoutActuallyEscaping',\n 'zip'\n];\n\n// Valid first characters for operators.\nconst operatorHead = either(\n /[/=\\-+!*%<>&|^~?]/,\n /[\\u00A1-\\u00A7]/,\n /[\\u00A9\\u00AB]/,\n /[\\u00AC\\u00AE]/,\n /[\\u00B0\\u00B1]/,\n /[\\u00B6\\u00BB\\u00BF\\u00D7\\u00F7]/,\n /[\\u2016-\\u2017]/,\n /[\\u2020-\\u2027]/,\n /[\\u2030-\\u203E]/,\n /[\\u2041-\\u2053]/,\n /[\\u2055-\\u205E]/,\n /[\\u2190-\\u23FF]/,\n /[\\u2500-\\u2775]/,\n /[\\u2794-\\u2BFF]/,\n /[\\u2E00-\\u2E7F]/,\n /[\\u3001-\\u3003]/,\n /[\\u3008-\\u3020]/,\n /[\\u3030]/\n);\n\n// Valid characters for operators.\nconst operatorCharacter = either(\n operatorHead,\n /[\\u0300-\\u036F]/,\n /[\\u1DC0-\\u1DFF]/,\n /[\\u20D0-\\u20FF]/,\n /[\\uFE00-\\uFE0F]/,\n /[\\uFE20-\\uFE2F]/\n // TODO: The following characters are also allowed, but the regex isn't supported yet.\n // /[\\u{E0100}-\\u{E01EF}]/u\n);\n\n// Valid operator.\nconst operator = concat(operatorHead, operatorCharacter, '*');\n\n// Valid first characters for identifiers.\nconst identifierHead = either(\n /[a-zA-Z_]/,\n /[\\u00A8\\u00AA\\u00AD\\u00AF\\u00B2-\\u00B5\\u00B7-\\u00BA]/,\n /[\\u00BC-\\u00BE\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u00FF]/,\n /[\\u0100-\\u02FF\\u0370-\\u167F\\u1681-\\u180D\\u180F-\\u1DBF]/,\n /[\\u1E00-\\u1FFF]/,\n /[\\u200B-\\u200D\\u202A-\\u202E\\u203F-\\u2040\\u2054\\u2060-\\u206F]/,\n /[\\u2070-\\u20CF\\u2100-\\u218F\\u2460-\\u24FF\\u2776-\\u2793]/,\n /[\\u2C00-\\u2DFF\\u2E80-\\u2FFF]/,\n /[\\u3004-\\u3007\\u3021-\\u302F\\u3031-\\u303F\\u3040-\\uD7FF]/,\n /[\\uF900-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFE1F\\uFE30-\\uFE44]/,\n /[\\uFE47-\\uFEFE\\uFF00-\\uFFFD]/ // Should be /[\\uFE47-\\uFFFD]/, but we have to exclude FEFF.\n // The following characters are also allowed, but the regexes aren't supported yet.\n // /[\\u{10000}-\\u{1FFFD}\\u{20000-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}]/u,\n // /[\\u{50000}-\\u{5FFFD}\\u{60000-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}]/u,\n // /[\\u{90000}-\\u{9FFFD}\\u{A0000-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}]/u,\n // /[\\u{D0000}-\\u{DFFFD}\\u{E0000-\\u{EFFFD}]/u\n);\n\n// Valid characters for identifiers.\nconst identifierCharacter = either(\n identifierHead,\n /\\d/,\n /[\\u0300-\\u036F\\u1DC0-\\u1DFF\\u20D0-\\u20FF\\uFE20-\\uFE2F]/\n);\n\n// Valid identifier.\nconst identifier = concat(identifierHead, identifierCharacter, '*');\n\n// Valid type identifier.\nconst typeIdentifier = concat(/[A-Z]/, identifierCharacter, '*');\n\n// Built-in attributes, which are highlighted as keywords.\n// @available is handled separately.\nconst keywordAttributes = [\n 'autoclosure',\n concat(/convention\\(/, either('swift', 'block', 'c'), /\\)/),\n 'discardableResult',\n 'dynamicCallable',\n 'dynamicMemberLookup',\n 'escaping',\n 'frozen',\n 'GKInspectable',\n 'IBAction',\n 'IBDesignable',\n 'IBInspectable',\n 'IBOutlet',\n 'IBSegueAction',\n 'inlinable',\n 'main',\n 'nonobjc',\n 'NSApplicationMain',\n 'NSCopying',\n 'NSManaged',\n concat(/objc\\(/, identifier, /\\)/),\n 'objc',\n 'objcMembers',\n 'propertyWrapper',\n 'requires_stored_property_inits',\n 'resultBuilder',\n 'testable',\n 'UIApplicationMain',\n 'unknown',\n 'usableFromInline'\n];\n\n// Contextual keywords used in @available and #(un)available.\nconst availabilityKeywords = [\n 'iOS',\n 'iOSApplicationExtension',\n 'macOS',\n 'macOSApplicationExtension',\n 'macCatalyst',\n 'macCatalystApplicationExtension',\n 'watchOS',\n 'watchOSApplicationExtension',\n 'tvOS',\n 'tvOSApplicationExtension',\n 'swift'\n];\n\n/*\nLanguage: Swift\nDescription: Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.\nAuthor: Steven Van Impe \nContributors: Chris Eidhof , Nate Cook , Alexander Lichter , Richard Gibson \nWebsite: https://swift.org\nCategory: common, system\n*/\n\n/** @type LanguageFn */\nfunction swift(hljs) {\n const WHITESPACE = {\n match: /\\s+/,\n relevance: 0\n };\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID411\n const BLOCK_COMMENT = hljs.COMMENT(\n '/\\\\*',\n '\\\\*/',\n { contains: [ 'self' ] }\n );\n const COMMENTS = [\n hljs.C_LINE_COMMENT_MODE,\n BLOCK_COMMENT\n ];\n\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID413\n // https://docs.swift.org/swift-book/ReferenceManual/zzSummaryOfTheGrammar.html\n const DOT_KEYWORD = {\n match: [\n /\\./,\n either(...dotKeywords, ...optionalDotKeywords)\n ],\n className: { 2: \"keyword\" }\n };\n const KEYWORD_GUARD = {\n // Consume .keyword to prevent highlighting properties and methods as keywords.\n match: concat(/\\./, either(...keywords)),\n relevance: 0\n };\n const PLAIN_KEYWORDS = keywords\n .filter(kw => typeof kw === 'string')\n .concat([ \"_|0\" ]); // seems common, so 0 relevance\n const REGEX_KEYWORDS = keywords\n .filter(kw => typeof kw !== 'string') // find regex\n .concat(keywordTypes)\n .map(keywordWrapper);\n const KEYWORD = { variants: [\n {\n className: 'keyword',\n match: either(...REGEX_KEYWORDS, ...optionalDotKeywords)\n }\n ] };\n // find all the regular keywords\n const KEYWORDS = {\n $pattern: either(\n /\\b\\w+/, // regular keywords\n /#\\w+/ // number keywords\n ),\n keyword: PLAIN_KEYWORDS\n .concat(numberSignKeywords),\n literal: literals\n };\n const KEYWORD_MODES = [\n DOT_KEYWORD,\n KEYWORD_GUARD,\n KEYWORD\n ];\n\n // https://github.com/apple/swift/tree/main/stdlib/public/core\n const BUILT_IN_GUARD = {\n // Consume .built_in to prevent highlighting properties and methods.\n match: concat(/\\./, either(...builtIns)),\n relevance: 0\n };\n const BUILT_IN = {\n className: 'built_in',\n match: concat(/\\b/, either(...builtIns), /(?=\\()/)\n };\n const BUILT_INS = [\n BUILT_IN_GUARD,\n BUILT_IN\n ];\n\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID418\n const OPERATOR_GUARD = {\n // Prevent -> from being highlighting as an operator.\n match: /->/,\n relevance: 0\n };\n const OPERATOR = {\n className: 'operator',\n relevance: 0,\n variants: [\n { match: operator },\n {\n // dot-operator: only operators that start with a dot are allowed to use dots as\n // characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more\n // characters that may also include dots.\n match: `\\\\.(\\\\.|${operatorCharacter})+` }\n ]\n };\n const OPERATORS = [\n OPERATOR_GUARD,\n OPERATOR\n ];\n\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#grammar_numeric-literal\n // TODO: Update for leading `-` after lookbehind is supported everywhere\n const decimalDigits = '([0-9]_*)+';\n const hexDigits = '([0-9a-fA-F]_*)+';\n const NUMBER = {\n className: 'number',\n relevance: 0,\n variants: [\n // decimal floating-point-literal (subsumes decimal-literal)\n { match: `\\\\b(${decimalDigits})(\\\\.(${decimalDigits}))?` + `([eE][+-]?(${decimalDigits}))?\\\\b` },\n // hexadecimal floating-point-literal (subsumes hexadecimal-literal)\n { match: `\\\\b0x(${hexDigits})(\\\\.(${hexDigits}))?` + `([pP][+-]?(${decimalDigits}))?\\\\b` },\n // octal-literal\n { match: /\\b0o([0-7]_*)+\\b/ },\n // binary-literal\n { match: /\\b0b([01]_*)+\\b/ }\n ]\n };\n\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#grammar_string-literal\n const ESCAPED_CHARACTER = (rawDelimiter = \"\") => ({\n className: 'subst',\n variants: [\n { match: concat(/\\\\/, rawDelimiter, /[0\\\\tnr\"']/) },\n { match: concat(/\\\\/, rawDelimiter, /u\\{[0-9a-fA-F]{1,8}\\}/) }\n ]\n });\n const ESCAPED_NEWLINE = (rawDelimiter = \"\") => ({\n className: 'subst',\n match: concat(/\\\\/, rawDelimiter, /[\\t ]*(?:[\\r\\n]|\\r\\n)/)\n });\n const INTERPOLATION = (rawDelimiter = \"\") => ({\n className: 'subst',\n label: \"interpol\",\n begin: concat(/\\\\/, rawDelimiter, /\\(/),\n end: /\\)/\n });\n const MULTILINE_STRING = (rawDelimiter = \"\") => ({\n begin: concat(rawDelimiter, /\"\"\"/),\n end: concat(/\"\"\"/, rawDelimiter),\n contains: [\n ESCAPED_CHARACTER(rawDelimiter),\n ESCAPED_NEWLINE(rawDelimiter),\n INTERPOLATION(rawDelimiter)\n ]\n });\n const SINGLE_LINE_STRING = (rawDelimiter = \"\") => ({\n begin: concat(rawDelimiter, /\"/),\n end: concat(/\"/, rawDelimiter),\n contains: [\n ESCAPED_CHARACTER(rawDelimiter),\n INTERPOLATION(rawDelimiter)\n ]\n });\n const STRING = {\n className: 'string',\n variants: [\n MULTILINE_STRING(),\n MULTILINE_STRING(\"#\"),\n MULTILINE_STRING(\"##\"),\n MULTILINE_STRING(\"###\"),\n SINGLE_LINE_STRING(),\n SINGLE_LINE_STRING(\"#\"),\n SINGLE_LINE_STRING(\"##\"),\n SINGLE_LINE_STRING(\"###\")\n ]\n };\n\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID412\n const QUOTED_IDENTIFIER = { match: concat(/`/, identifier, /`/) };\n const IMPLICIT_PARAMETER = {\n className: 'variable',\n match: /\\$\\d+/\n };\n const PROPERTY_WRAPPER_PROJECTION = {\n className: 'variable',\n match: `\\\\$${identifierCharacter}+`\n };\n const IDENTIFIERS = [\n QUOTED_IDENTIFIER,\n IMPLICIT_PARAMETER,\n PROPERTY_WRAPPER_PROJECTION\n ];\n\n // https://docs.swift.org/swift-book/ReferenceManual/Attributes.html\n const AVAILABLE_ATTRIBUTE = {\n match: /(@|#(un)?)available/,\n className: \"keyword\",\n starts: { contains: [\n {\n begin: /\\(/,\n end: /\\)/,\n keywords: availabilityKeywords,\n contains: [\n ...OPERATORS,\n NUMBER,\n STRING\n ]\n }\n ] }\n };\n const KEYWORD_ATTRIBUTE = {\n className: 'keyword',\n match: concat(/@/, either(...keywordAttributes))\n };\n const USER_DEFINED_ATTRIBUTE = {\n className: 'meta',\n match: concat(/@/, identifier)\n };\n const ATTRIBUTES = [\n AVAILABLE_ATTRIBUTE,\n KEYWORD_ATTRIBUTE,\n USER_DEFINED_ATTRIBUTE\n ];\n\n // https://docs.swift.org/swift-book/ReferenceManual/Types.html\n const TYPE = {\n match: lookahead(/\\b[A-Z]/),\n relevance: 0,\n contains: [\n { // Common Apple frameworks, for relevance boost\n className: 'type',\n match: concat(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, identifierCharacter, '+')\n },\n { // Type identifier\n className: 'type',\n match: typeIdentifier,\n relevance: 0\n },\n { // Optional type\n match: /[?!]+/,\n relevance: 0\n },\n { // Variadic parameter\n match: /\\.\\.\\./,\n relevance: 0\n },\n { // Protocol composition\n match: concat(/\\s+&\\s+/, lookahead(typeIdentifier)),\n relevance: 0\n }\n ]\n };\n const GENERIC_ARGUMENTS = {\n begin: //,\n keywords: KEYWORDS,\n contains: [\n ...COMMENTS,\n ...KEYWORD_MODES,\n ...ATTRIBUTES,\n OPERATOR_GUARD,\n TYPE\n ]\n };\n TYPE.contains.push(GENERIC_ARGUMENTS);\n\n // https://docs.swift.org/swift-book/ReferenceManual/Expressions.html#ID552\n // Prevents element names from being highlighted as keywords.\n const TUPLE_ELEMENT_NAME = {\n match: concat(identifier, /\\s*:/),\n keywords: \"_|0\",\n relevance: 0\n };\n // Matches tuples as well as the parameter list of a function type.\n const TUPLE = {\n begin: /\\(/,\n end: /\\)/,\n relevance: 0,\n keywords: KEYWORDS,\n contains: [\n 'self',\n TUPLE_ELEMENT_NAME,\n ...COMMENTS,\n ...KEYWORD_MODES,\n ...BUILT_INS,\n ...OPERATORS,\n NUMBER,\n STRING,\n ...IDENTIFIERS,\n ...ATTRIBUTES,\n TYPE\n ]\n };\n\n const GENERIC_PARAMETERS = {\n begin: //,\n contains: [\n ...COMMENTS,\n TYPE\n ]\n };\n const FUNCTION_PARAMETER_NAME = {\n begin: either(\n lookahead(concat(identifier, /\\s*:/)),\n lookahead(concat(identifier, /\\s+/, identifier, /\\s*:/))\n ),\n end: /:/,\n relevance: 0,\n contains: [\n {\n className: 'keyword',\n match: /\\b_\\b/\n },\n {\n className: 'params',\n match: identifier\n }\n ]\n };\n const FUNCTION_PARAMETERS = {\n begin: /\\(/,\n end: /\\)/,\n keywords: KEYWORDS,\n contains: [\n FUNCTION_PARAMETER_NAME,\n ...COMMENTS,\n ...KEYWORD_MODES,\n ...OPERATORS,\n NUMBER,\n STRING,\n ...ATTRIBUTES,\n TYPE,\n TUPLE\n ],\n endsParent: true,\n illegal: /[\"']/\n };\n // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID362\n const FUNCTION = {\n match: [\n /func/,\n /\\s+/,\n either(QUOTED_IDENTIFIER.match, identifier, operator)\n ],\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n },\n contains: [\n GENERIC_PARAMETERS,\n FUNCTION_PARAMETERS,\n WHITESPACE\n ],\n illegal: [\n /\\[/,\n /%/\n ]\n };\n\n // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID375\n // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID379\n const INIT_SUBSCRIPT = {\n match: [\n /\\b(?:subscript|init[?!]?)/,\n /\\s*(?=[<(])/,\n ],\n className: { 1: \"keyword\" },\n contains: [\n GENERIC_PARAMETERS,\n FUNCTION_PARAMETERS,\n WHITESPACE\n ],\n illegal: /\\[|%/\n };\n // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID380\n const OPERATOR_DECLARATION = {\n match: [\n /operator/,\n /\\s+/,\n operator\n ],\n className: {\n 1: \"keyword\",\n 3: \"title\"\n }\n };\n\n // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID550\n const PRECEDENCEGROUP = {\n begin: [\n /precedencegroup/,\n /\\s+/,\n typeIdentifier\n ],\n className: {\n 1: \"keyword\",\n 3: \"title\"\n },\n contains: [ TYPE ],\n keywords: [\n ...precedencegroupKeywords,\n ...literals\n ],\n end: /}/\n };\n\n // Add supported submodes to string interpolation.\n for (const variant of STRING.variants) {\n const interpolation = variant.contains.find(mode => mode.label === \"interpol\");\n // TODO: Interpolation can contain any expression, so there's room for improvement here.\n interpolation.keywords = KEYWORDS;\n const submodes = [\n ...KEYWORD_MODES,\n ...BUILT_INS,\n ...OPERATORS,\n NUMBER,\n STRING,\n ...IDENTIFIERS\n ];\n interpolation.contains = [\n ...submodes,\n {\n begin: /\\(/,\n end: /\\)/,\n contains: [\n 'self',\n ...submodes\n ]\n }\n ];\n }\n\n return {\n name: 'Swift',\n keywords: KEYWORDS,\n contains: [\n ...COMMENTS,\n FUNCTION,\n INIT_SUBSCRIPT,\n {\n beginKeywords: 'struct protocol class extension enum actor',\n end: '\\\\{',\n excludeEnd: true,\n keywords: KEYWORDS,\n contains: [\n hljs.inherit(hljs.TITLE_MODE, {\n className: \"title.class\",\n begin: /[A-Za-z$_][\\u00C0-\\u02B80-9A-Za-z$_]*/\n }),\n ...KEYWORD_MODES\n ]\n },\n OPERATOR_DECLARATION,\n PRECEDENCEGROUP,\n {\n beginKeywords: 'import',\n end: /$/,\n contains: [ ...COMMENTS ],\n relevance: 0\n },\n ...KEYWORD_MODES,\n ...BUILT_INS,\n ...OPERATORS,\n NUMBER,\n STRING,\n ...IDENTIFIERS,\n ...ATTRIBUTES,\n TYPE,\n TUPLE\n ]\n };\n}\n\nmodule.exports = swift;\n","/*\nLanguage: Protocol Buffers\nAuthor: Dan Tao \nDescription: Protocol buffer message definition format\nWebsite: https://developers.google.com/protocol-buffers/docs/proto3\nCategory: protocols\n*/\n\nfunction protobuf(hljs) {\n const KEYWORDS = [\n \"package\",\n \"import\",\n \"option\",\n \"optional\",\n \"required\",\n \"repeated\",\n \"group\",\n \"oneof\"\n ];\n const TYPES = [\n \"double\",\n \"float\",\n \"int32\",\n \"int64\",\n \"uint32\",\n \"uint64\",\n \"sint32\",\n \"sint64\",\n \"fixed32\",\n \"fixed64\",\n \"sfixed32\",\n \"sfixed64\",\n \"bool\",\n \"string\",\n \"bytes\"\n ];\n const CLASS_DEFINITION = {\n match: [\n /(message|enum|service)\\s+/,\n hljs.IDENT_RE\n ],\n scope: {\n 1: \"keyword\",\n 2: \"title.class\"\n }\n };\n\n return {\n name: 'Protocol Buffers',\n keywords: {\n keyword: KEYWORDS,\n type: TYPES,\n literal: [\n 'true',\n 'false'\n ]\n },\n contains: [\n hljs.QUOTE_STRING_MODE,\n hljs.NUMBER_MODE,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n CLASS_DEFINITION,\n {\n className: 'function',\n beginKeywords: 'rpc',\n end: /[{;]/,\n excludeEnd: true,\n keywords: 'rpc returns'\n },\n { // match enum items (relevance)\n // BLAH = ...;\n begin: /^\\s*[A-Z_]+(?=\\s*=[^\\n]+;$)/ }\n ]\n };\n}\n\nmodule.exports = protobuf;\n","module.exports = __webpack_public_path__ + \"img/digitalocean-black.c7b0f38c.svg\";","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","export * from \"-!../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Loading.vue?vue&type=style&index=0&id=23723280&prod&lang=scss&scoped=true\"","module.exports = __webpack_public_path__ + \"img/harvester.b14e570b.svg\";","var deepFreezeEs6 = {exports: {}};\n\nfunction deepFreeze(obj) {\n if (obj instanceof Map) {\n obj.clear = obj.delete = obj.set = function () {\n throw new Error('map is read-only');\n };\n } else if (obj instanceof Set) {\n obj.add = obj.clear = obj.delete = function () {\n throw new Error('set is read-only');\n };\n }\n\n // Freeze self\n Object.freeze(obj);\n\n Object.getOwnPropertyNames(obj).forEach(function (name) {\n var prop = obj[name];\n\n // Freeze prop if it is an object\n if (typeof prop == 'object' && !Object.isFrozen(prop)) {\n deepFreeze(prop);\n }\n });\n\n return obj;\n}\n\ndeepFreezeEs6.exports = deepFreeze;\ndeepFreezeEs6.exports.default = deepFreeze;\n\n/** @typedef {import('highlight.js').CallbackResponse} CallbackResponse */\n/** @typedef {import('highlight.js').CompiledMode} CompiledMode */\n/** @implements CallbackResponse */\n\nclass Response {\n /**\n * @param {CompiledMode} mode\n */\n constructor(mode) {\n // eslint-disable-next-line no-undefined\n if (mode.data === undefined) mode.data = {};\n\n this.data = mode.data;\n this.isMatchIgnored = false;\n }\n\n ignoreMatch() {\n this.isMatchIgnored = true;\n }\n}\n\n/**\n * @param {string} value\n * @returns {string}\n */\nfunction escapeHTML(value) {\n return value\n .replace(/&/g, '&')\n .replace(//g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n}\n\n/**\n * performs a shallow merge of multiple objects into one\n *\n * @template T\n * @param {T} original\n * @param {Record[]} objects\n * @returns {T} a single new object\n */\nfunction inherit$1(original, ...objects) {\n /** @type Record */\n const result = Object.create(null);\n\n for (const key in original) {\n result[key] = original[key];\n }\n objects.forEach(function(obj) {\n for (const key in obj) {\n result[key] = obj[key];\n }\n });\n return /** @type {T} */ (result);\n}\n\n/**\n * @typedef {object} Renderer\n * @property {(text: string) => void} addText\n * @property {(node: Node) => void} openNode\n * @property {(node: Node) => void} closeNode\n * @property {() => string} value\n */\n\n/** @typedef {{scope?: string, language?: string, sublanguage?: boolean}} Node */\n/** @typedef {{walk: (r: Renderer) => void}} Tree */\n/** */\n\nconst SPAN_CLOSE = '';\n\n/**\n * Determines if a node needs to be wrapped in \n *\n * @param {Node} node */\nconst emitsWrappingTags = (node) => {\n // rarely we can have a sublanguage where language is undefined\n // TODO: track down why\n return !!node.scope || (node.sublanguage && node.language);\n};\n\n/**\n *\n * @param {string} name\n * @param {{prefix:string}} options\n */\nconst scopeToCSSClass = (name, { prefix }) => {\n if (name.includes(\".\")) {\n const pieces = name.split(\".\");\n return [\n `${prefix}${pieces.shift()}`,\n ...(pieces.map((x, i) => `${x}${\"_\".repeat(i + 1)}`))\n ].join(\" \");\n }\n return `${prefix}${name}`;\n};\n\n/** @type {Renderer} */\nclass HTMLRenderer {\n /**\n * Creates a new HTMLRenderer\n *\n * @param {Tree} parseTree - the parse tree (must support `walk` API)\n * @param {{classPrefix: string}} options\n */\n constructor(parseTree, options) {\n this.buffer = \"\";\n this.classPrefix = options.classPrefix;\n parseTree.walk(this);\n }\n\n /**\n * Adds texts to the output stream\n *\n * @param {string} text */\n addText(text) {\n this.buffer += escapeHTML(text);\n }\n\n /**\n * Adds a node open to the output stream (if needed)\n *\n * @param {Node} node */\n openNode(node) {\n if (!emitsWrappingTags(node)) return;\n\n let className = \"\";\n if (node.sublanguage) {\n className = `language-${node.language}`;\n } else {\n className = scopeToCSSClass(node.scope, { prefix: this.classPrefix });\n }\n this.span(className);\n }\n\n /**\n * Adds a node close to the output stream (if needed)\n *\n * @param {Node} node */\n closeNode(node) {\n if (!emitsWrappingTags(node)) return;\n\n this.buffer += SPAN_CLOSE;\n }\n\n /**\n * returns the accumulated buffer\n */\n value() {\n return this.buffer;\n }\n\n // helpers\n\n /**\n * Builds a span element\n *\n * @param {string} className */\n span(className) {\n this.buffer += ``;\n }\n}\n\n/** @typedef {{scope?: string, language?: string, sublanguage?: boolean, children: Node[]} | string} Node */\n/** @typedef {{scope?: string, language?: string, sublanguage?: boolean, children: Node[]} } DataNode */\n/** @typedef {import('highlight.js').Emitter} Emitter */\n/** */\n\n/** @returns {DataNode} */\nconst newNode = (opts = {}) => {\n /** @type DataNode */\n const result = { children: [] };\n Object.assign(result, opts);\n return result;\n};\n\nclass TokenTree {\n constructor() {\n /** @type DataNode */\n this.rootNode = newNode();\n this.stack = [this.rootNode];\n }\n\n get top() {\n return this.stack[this.stack.length - 1];\n }\n\n get root() { return this.rootNode; }\n\n /** @param {Node} node */\n add(node) {\n this.top.children.push(node);\n }\n\n /** @param {string} scope */\n openNode(scope) {\n /** @type Node */\n const node = newNode({ scope });\n this.add(node);\n this.stack.push(node);\n }\n\n closeNode() {\n if (this.stack.length > 1) {\n return this.stack.pop();\n }\n // eslint-disable-next-line no-undefined\n return undefined;\n }\n\n closeAllNodes() {\n while (this.closeNode());\n }\n\n toJSON() {\n return JSON.stringify(this.rootNode, null, 4);\n }\n\n /**\n * @typedef { import(\"./html_renderer\").Renderer } Renderer\n * @param {Renderer} builder\n */\n walk(builder) {\n // this does not\n return this.constructor._walk(builder, this.rootNode);\n // this works\n // return TokenTree._walk(builder, this.rootNode);\n }\n\n /**\n * @param {Renderer} builder\n * @param {Node} node\n */\n static _walk(builder, node) {\n if (typeof node === \"string\") {\n builder.addText(node);\n } else if (node.children) {\n builder.openNode(node);\n node.children.forEach((child) => this._walk(builder, child));\n builder.closeNode(node);\n }\n return builder;\n }\n\n /**\n * @param {Node} node\n */\n static _collapse(node) {\n if (typeof node === \"string\") return;\n if (!node.children) return;\n\n if (node.children.every(el => typeof el === \"string\")) {\n // node.text = node.children.join(\"\");\n // delete node.children;\n node.children = [node.children.join(\"\")];\n } else {\n node.children.forEach((child) => {\n TokenTree._collapse(child);\n });\n }\n }\n}\n\n/**\n Currently this is all private API, but this is the minimal API necessary\n that an Emitter must implement to fully support the parser.\n\n Minimal interface:\n\n - addKeyword(text, scope)\n - addText(text)\n - addSublanguage(emitter, subLanguageName)\n - finalize()\n - openNode(scope)\n - closeNode()\n - closeAllNodes()\n - toHTML()\n\n*/\n\n/**\n * @implements {Emitter}\n */\nclass TokenTreeEmitter extends TokenTree {\n /**\n * @param {*} options\n */\n constructor(options) {\n super();\n this.options = options;\n }\n\n /**\n * @param {string} text\n * @param {string} scope\n */\n addKeyword(text, scope) {\n if (text === \"\") { return; }\n\n this.openNode(scope);\n this.addText(text);\n this.closeNode();\n }\n\n /**\n * @param {string} text\n */\n addText(text) {\n if (text === \"\") { return; }\n\n this.add(text);\n }\n\n /**\n * @param {Emitter & {root: DataNode}} emitter\n * @param {string} name\n */\n addSublanguage(emitter, name) {\n /** @type DataNode */\n const node = emitter.root;\n node.sublanguage = true;\n node.language = name;\n this.add(node);\n }\n\n toHTML() {\n const renderer = new HTMLRenderer(this, this.options);\n return renderer.value();\n }\n\n finalize() {\n return true;\n }\n}\n\n/**\n * @param {string} value\n * @returns {RegExp}\n * */\n\n/**\n * @param {RegExp | string } re\n * @returns {string}\n */\nfunction source(re) {\n if (!re) return null;\n if (typeof re === \"string\") return re;\n\n return re.source;\n}\n\n/**\n * @param {RegExp | string } re\n * @returns {string}\n */\nfunction lookahead(re) {\n return concat('(?=', re, ')');\n}\n\n/**\n * @param {RegExp | string } re\n * @returns {string}\n */\nfunction anyNumberOfTimes(re) {\n return concat('(?:', re, ')*');\n}\n\n/**\n * @param {RegExp | string } re\n * @returns {string}\n */\nfunction optional(re) {\n return concat('(?:', re, ')?');\n}\n\n/**\n * @param {...(RegExp | string) } args\n * @returns {string}\n */\nfunction concat(...args) {\n const joined = args.map((x) => source(x)).join(\"\");\n return joined;\n}\n\n/**\n * @param { Array } args\n * @returns {object}\n */\nfunction stripOptionsFromArgs(args) {\n const opts = args[args.length - 1];\n\n if (typeof opts === 'object' && opts.constructor === Object) {\n args.splice(args.length - 1, 1);\n return opts;\n } else {\n return {};\n }\n}\n\n/** @typedef { {capture?: boolean} } RegexEitherOptions */\n\n/**\n * Any of the passed expresssions may match\n *\n * Creates a huge this | this | that | that match\n * @param {(RegExp | string)[] | [...(RegExp | string)[], RegexEitherOptions]} args\n * @returns {string}\n */\nfunction either(...args) {\n /** @type { object & {capture?: boolean} } */\n const opts = stripOptionsFromArgs(args);\n const joined = '('\n + (opts.capture ? \"\" : \"?:\")\n + args.map((x) => source(x)).join(\"|\") + \")\";\n return joined;\n}\n\n/**\n * @param {RegExp | string} re\n * @returns {number}\n */\nfunction countMatchGroups(re) {\n return (new RegExp(re.toString() + '|')).exec('').length - 1;\n}\n\n/**\n * Does lexeme start with a regular expression match at the beginning\n * @param {RegExp} re\n * @param {string} lexeme\n */\nfunction startsWith(re, lexeme) {\n const match = re && re.exec(lexeme);\n return match && match.index === 0;\n}\n\n// BACKREF_RE matches an open parenthesis or backreference. To avoid\n// an incorrect parse, it additionally matches the following:\n// - [...] elements, where the meaning of parentheses and escapes change\n// - other escape sequences, so we do not misparse escape sequences as\n// interesting elements\n// - non-matching or lookahead parentheses, which do not capture. These\n// follow the '(' with a '?'.\nconst BACKREF_RE = /\\[(?:[^\\\\\\]]|\\\\.)*\\]|\\(\\??|\\\\([1-9][0-9]*)|\\\\./;\n\n// **INTERNAL** Not intended for outside usage\n// join logically computes regexps.join(separator), but fixes the\n// backreferences so they continue to match.\n// it also places each individual regular expression into it's own\n// match group, keeping track of the sequencing of those match groups\n// is currently an exercise for the caller. :-)\n/**\n * @param {(string | RegExp)[]} regexps\n * @param {{joinWith: string}} opts\n * @returns {string}\n */\nfunction _rewriteBackreferences(regexps, { joinWith }) {\n let numCaptures = 0;\n\n return regexps.map((regex) => {\n numCaptures += 1;\n const offset = numCaptures;\n let re = source(regex);\n let out = '';\n\n while (re.length > 0) {\n const match = BACKREF_RE.exec(re);\n if (!match) {\n out += re;\n break;\n }\n out += re.substring(0, match.index);\n re = re.substring(match.index + match[0].length);\n if (match[0][0] === '\\\\' && match[1]) {\n // Adjust the backreference.\n out += '\\\\' + String(Number(match[1]) + offset);\n } else {\n out += match[0];\n if (match[0] === '(') {\n numCaptures++;\n }\n }\n }\n return out;\n }).map(re => `(${re})`).join(joinWith);\n}\n\n/** @typedef {import('highlight.js').Mode} Mode */\n/** @typedef {import('highlight.js').ModeCallback} ModeCallback */\n\n// Common regexps\nconst MATCH_NOTHING_RE = /\\b\\B/;\nconst IDENT_RE = '[a-zA-Z]\\\\w*';\nconst UNDERSCORE_IDENT_RE = '[a-zA-Z_]\\\\w*';\nconst NUMBER_RE = '\\\\b\\\\d+(\\\\.\\\\d+)?';\nconst C_NUMBER_RE = '(-?)(\\\\b0[xX][a-fA-F0-9]+|(\\\\b\\\\d+(\\\\.\\\\d*)?|\\\\.\\\\d+)([eE][-+]?\\\\d+)?)'; // 0x..., 0..., decimal, float\nconst BINARY_NUMBER_RE = '\\\\b(0b[01]+)'; // 0b...\nconst RE_STARTERS_RE = '!|!=|!==|%|%=|&|&&|&=|\\\\*|\\\\*=|\\\\+|\\\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\\\?|\\\\[|\\\\{|\\\\(|\\\\^|\\\\^=|\\\\||\\\\|=|\\\\|\\\\||~';\n\n/**\n* @param { Partial & {binary?: string | RegExp} } opts\n*/\nconst SHEBANG = (opts = {}) => {\n const beginShebang = /^#![ ]*\\//;\n if (opts.binary) {\n opts.begin = concat(\n beginShebang,\n /.*\\b/,\n opts.binary,\n /\\b.*/);\n }\n return inherit$1({\n scope: 'meta',\n begin: beginShebang,\n end: /$/,\n relevance: 0,\n /** @type {ModeCallback} */\n \"on:begin\": (m, resp) => {\n if (m.index !== 0) resp.ignoreMatch();\n }\n }, opts);\n};\n\n// Common modes\nconst BACKSLASH_ESCAPE = {\n begin: '\\\\\\\\[\\\\s\\\\S]', relevance: 0\n};\nconst APOS_STRING_MODE = {\n scope: 'string',\n begin: '\\'',\n end: '\\'',\n illegal: '\\\\n',\n contains: [BACKSLASH_ESCAPE]\n};\nconst QUOTE_STRING_MODE = {\n scope: 'string',\n begin: '\"',\n end: '\"',\n illegal: '\\\\n',\n contains: [BACKSLASH_ESCAPE]\n};\nconst PHRASAL_WORDS_MODE = {\n begin: /\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b/\n};\n/**\n * Creates a comment mode\n *\n * @param {string | RegExp} begin\n * @param {string | RegExp} end\n * @param {Mode | {}} [modeOptions]\n * @returns {Partial}\n */\nconst COMMENT = function(begin, end, modeOptions = {}) {\n const mode = inherit$1(\n {\n scope: 'comment',\n begin,\n end,\n contains: []\n },\n modeOptions\n );\n mode.contains.push({\n scope: 'doctag',\n // hack to avoid the space from being included. the space is necessary to\n // match here to prevent the plain text rule below from gobbling up doctags\n begin: '[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)',\n end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,\n excludeBegin: true,\n relevance: 0\n });\n const ENGLISH_WORD = either(\n // list of common 1 and 2 letter words in English\n \"I\",\n \"a\",\n \"is\",\n \"so\",\n \"us\",\n \"to\",\n \"at\",\n \"if\",\n \"in\",\n \"it\",\n \"on\",\n // note: this is not an exhaustive list of contractions, just popular ones\n /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, // contractions - can't we'd they're let's, etc\n /[A-Za-z]+[-][a-z]+/, // `no-way`, etc.\n /[A-Za-z][a-z]{2,}/ // allow capitalized words at beginning of sentences\n );\n // looking like plain text, more likely to be a comment\n mode.contains.push(\n {\n // TODO: how to include \", (, ) without breaking grammars that use these for\n // comment delimiters?\n // begin: /[ ]+([()\"]?([A-Za-z'-]{3,}|is|a|I|so|us|[tT][oO]|at|if|in|it|on)[.]?[()\":]?([.][ ]|[ ]|\\))){3}/\n // ---\n\n // this tries to find sequences of 3 english words in a row (without any\n // \"programming\" type syntax) this gives us a strong signal that we've\n // TRULY found a comment - vs perhaps scanning with the wrong language.\n // It's possible to find something that LOOKS like the start of the\n // comment - but then if there is no readable text - good chance it is a\n // false match and not a comment.\n //\n // for a visual example please see:\n // https://github.com/highlightjs/highlight.js/issues/2827\n\n begin: concat(\n /[ ]+/, // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */\n '(',\n ENGLISH_WORD,\n /[.]?[:]?([.][ ]|[ ])/,\n '){3}') // look for 3 words in a row\n }\n );\n return mode;\n};\nconst C_LINE_COMMENT_MODE = COMMENT('//', '$');\nconst C_BLOCK_COMMENT_MODE = COMMENT('/\\\\*', '\\\\*/');\nconst HASH_COMMENT_MODE = COMMENT('#', '$');\nconst NUMBER_MODE = {\n scope: 'number',\n begin: NUMBER_RE,\n relevance: 0\n};\nconst C_NUMBER_MODE = {\n scope: 'number',\n begin: C_NUMBER_RE,\n relevance: 0\n};\nconst BINARY_NUMBER_MODE = {\n scope: 'number',\n begin: BINARY_NUMBER_RE,\n relevance: 0\n};\nconst REGEXP_MODE = {\n // this outer rule makes sure we actually have a WHOLE regex and not simply\n // an expression such as:\n //\n // 3 / something\n //\n // (which will then blow up when regex's `illegal` sees the newline)\n begin: /(?=\\/[^/\\n]*\\/)/,\n contains: [{\n scope: 'regexp',\n begin: /\\//,\n end: /\\/[gimuy]*/,\n illegal: /\\n/,\n contains: [\n BACKSLASH_ESCAPE,\n {\n begin: /\\[/,\n end: /\\]/,\n relevance: 0,\n contains: [BACKSLASH_ESCAPE]\n }\n ]\n }]\n};\nconst TITLE_MODE = {\n scope: 'title',\n begin: IDENT_RE,\n relevance: 0\n};\nconst UNDERSCORE_TITLE_MODE = {\n scope: 'title',\n begin: UNDERSCORE_IDENT_RE,\n relevance: 0\n};\nconst METHOD_GUARD = {\n // excludes method names from keyword processing\n begin: '\\\\.\\\\s*' + UNDERSCORE_IDENT_RE,\n relevance: 0\n};\n\n/**\n * Adds end same as begin mechanics to a mode\n *\n * Your mode must include at least a single () match group as that first match\n * group is what is used for comparison\n * @param {Partial} mode\n */\nconst END_SAME_AS_BEGIN = function(mode) {\n return Object.assign(mode,\n {\n /** @type {ModeCallback} */\n 'on:begin': (m, resp) => { resp.data._beginMatch = m[1]; },\n /** @type {ModeCallback} */\n 'on:end': (m, resp) => { if (resp.data._beginMatch !== m[1]) resp.ignoreMatch(); }\n });\n};\n\nvar MODES = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MATCH_NOTHING_RE: MATCH_NOTHING_RE,\n IDENT_RE: IDENT_RE,\n UNDERSCORE_IDENT_RE: UNDERSCORE_IDENT_RE,\n NUMBER_RE: NUMBER_RE,\n C_NUMBER_RE: C_NUMBER_RE,\n BINARY_NUMBER_RE: BINARY_NUMBER_RE,\n RE_STARTERS_RE: RE_STARTERS_RE,\n SHEBANG: SHEBANG,\n BACKSLASH_ESCAPE: BACKSLASH_ESCAPE,\n APOS_STRING_MODE: APOS_STRING_MODE,\n QUOTE_STRING_MODE: QUOTE_STRING_MODE,\n PHRASAL_WORDS_MODE: PHRASAL_WORDS_MODE,\n COMMENT: COMMENT,\n C_LINE_COMMENT_MODE: C_LINE_COMMENT_MODE,\n C_BLOCK_COMMENT_MODE: C_BLOCK_COMMENT_MODE,\n HASH_COMMENT_MODE: HASH_COMMENT_MODE,\n NUMBER_MODE: NUMBER_MODE,\n C_NUMBER_MODE: C_NUMBER_MODE,\n BINARY_NUMBER_MODE: BINARY_NUMBER_MODE,\n REGEXP_MODE: REGEXP_MODE,\n TITLE_MODE: TITLE_MODE,\n UNDERSCORE_TITLE_MODE: UNDERSCORE_TITLE_MODE,\n METHOD_GUARD: METHOD_GUARD,\n END_SAME_AS_BEGIN: END_SAME_AS_BEGIN\n});\n\n/**\n@typedef {import('highlight.js').CallbackResponse} CallbackResponse\n@typedef {import('highlight.js').CompilerExt} CompilerExt\n*/\n\n// Grammar extensions / plugins\n// See: https://github.com/highlightjs/highlight.js/issues/2833\n\n// Grammar extensions allow \"syntactic sugar\" to be added to the grammar modes\n// without requiring any underlying changes to the compiler internals.\n\n// `compileMatch` being the perfect small example of now allowing a grammar\n// author to write `match` when they desire to match a single expression rather\n// than being forced to use `begin`. The extension then just moves `match` into\n// `begin` when it runs. Ie, no features have been added, but we've just made\n// the experience of writing (and reading grammars) a little bit nicer.\n\n// ------\n\n// TODO: We need negative look-behind support to do this properly\n/**\n * Skip a match if it has a preceding dot\n *\n * This is used for `beginKeywords` to prevent matching expressions such as\n * `bob.keyword.do()`. The mode compiler automatically wires this up as a\n * special _internal_ 'on:begin' callback for modes with `beginKeywords`\n * @param {RegExpMatchArray} match\n * @param {CallbackResponse} response\n */\nfunction skipIfHasPrecedingDot(match, response) {\n const before = match.input[match.index - 1];\n if (before === \".\") {\n response.ignoreMatch();\n }\n}\n\n/**\n *\n * @type {CompilerExt}\n */\nfunction scopeClassName(mode, _parent) {\n // eslint-disable-next-line no-undefined\n if (mode.className !== undefined) {\n mode.scope = mode.className;\n delete mode.className;\n }\n}\n\n/**\n * `beginKeywords` syntactic sugar\n * @type {CompilerExt}\n */\nfunction beginKeywords(mode, parent) {\n if (!parent) return;\n if (!mode.beginKeywords) return;\n\n // for languages with keywords that include non-word characters checking for\n // a word boundary is not sufficient, so instead we check for a word boundary\n // or whitespace - this does no harm in any case since our keyword engine\n // doesn't allow spaces in keywords anyways and we still check for the boundary\n // first\n mode.begin = '\\\\b(' + mode.beginKeywords.split(' ').join('|') + ')(?!\\\\.)(?=\\\\b|\\\\s)';\n mode.__beforeBegin = skipIfHasPrecedingDot;\n mode.keywords = mode.keywords || mode.beginKeywords;\n delete mode.beginKeywords;\n\n // prevents double relevance, the keywords themselves provide\n // relevance, the mode doesn't need to double it\n // eslint-disable-next-line no-undefined\n if (mode.relevance === undefined) mode.relevance = 0;\n}\n\n/**\n * Allow `illegal` to contain an array of illegal values\n * @type {CompilerExt}\n */\nfunction compileIllegal(mode, _parent) {\n if (!Array.isArray(mode.illegal)) return;\n\n mode.illegal = either(...mode.illegal);\n}\n\n/**\n * `match` to match a single expression for readability\n * @type {CompilerExt}\n */\nfunction compileMatch(mode, _parent) {\n if (!mode.match) return;\n if (mode.begin || mode.end) throw new Error(\"begin & end are not supported with match\");\n\n mode.begin = mode.match;\n delete mode.match;\n}\n\n/**\n * provides the default 1 relevance to all modes\n * @type {CompilerExt}\n */\nfunction compileRelevance(mode, _parent) {\n // eslint-disable-next-line no-undefined\n if (mode.relevance === undefined) mode.relevance = 1;\n}\n\n// allow beforeMatch to act as a \"qualifier\" for the match\n// the full match begin must be [beforeMatch][begin]\nconst beforeMatchExt = (mode, parent) => {\n if (!mode.beforeMatch) return;\n // starts conflicts with endsParent which we need to make sure the child\n // rule is not matched multiple times\n if (mode.starts) throw new Error(\"beforeMatch cannot be used with starts\");\n\n const originalMode = Object.assign({}, mode);\n Object.keys(mode).forEach((key) => { delete mode[key]; });\n\n mode.keywords = originalMode.keywords;\n mode.begin = concat(originalMode.beforeMatch, lookahead(originalMode.begin));\n mode.starts = {\n relevance: 0,\n contains: [\n Object.assign(originalMode, { endsParent: true })\n ]\n };\n mode.relevance = 0;\n\n delete originalMode.beforeMatch;\n};\n\n// keywords that should have no default relevance value\nconst COMMON_KEYWORDS = [\n 'of',\n 'and',\n 'for',\n 'in',\n 'not',\n 'or',\n 'if',\n 'then',\n 'parent', // common variable name\n 'list', // common variable name\n 'value' // common variable name\n];\n\nconst DEFAULT_KEYWORD_SCOPE = \"keyword\";\n\n/**\n * Given raw keywords from a language definition, compile them.\n *\n * @param {string | Record | Array} rawKeywords\n * @param {boolean} caseInsensitive\n */\nfunction compileKeywords(rawKeywords, caseInsensitive, scopeName = DEFAULT_KEYWORD_SCOPE) {\n /** @type KeywordDict */\n const compiledKeywords = Object.create(null);\n\n // input can be a string of keywords, an array of keywords, or a object with\n // named keys representing scopeName (which can then point to a string or array)\n if (typeof rawKeywords === 'string') {\n compileList(scopeName, rawKeywords.split(\" \"));\n } else if (Array.isArray(rawKeywords)) {\n compileList(scopeName, rawKeywords);\n } else {\n Object.keys(rawKeywords).forEach(function(scopeName) {\n // collapse all our objects back into the parent object\n Object.assign(\n compiledKeywords,\n compileKeywords(rawKeywords[scopeName], caseInsensitive, scopeName)\n );\n });\n }\n return compiledKeywords;\n\n // ---\n\n /**\n * Compiles an individual list of keywords\n *\n * Ex: \"for if when while|5\"\n *\n * @param {string} scopeName\n * @param {Array} keywordList\n */\n function compileList(scopeName, keywordList) {\n if (caseInsensitive) {\n keywordList = keywordList.map(x => x.toLowerCase());\n }\n keywordList.forEach(function(keyword) {\n const pair = keyword.split('|');\n compiledKeywords[pair[0]] = [scopeName, scoreForKeyword(pair[0], pair[1])];\n });\n }\n}\n\n/**\n * Returns the proper score for a given keyword\n *\n * Also takes into account comment keywords, which will be scored 0 UNLESS\n * another score has been manually assigned.\n * @param {string} keyword\n * @param {string} [providedScore]\n */\nfunction scoreForKeyword(keyword, providedScore) {\n // manual scores always win over common keywords\n // so you can force a score of 1 if you really insist\n if (providedScore) {\n return Number(providedScore);\n }\n\n return commonKeyword(keyword) ? 0 : 1;\n}\n\n/**\n * Determines if a given keyword is common or not\n *\n * @param {string} keyword */\nfunction commonKeyword(keyword) {\n return COMMON_KEYWORDS.includes(keyword.toLowerCase());\n}\n\n/*\n\nFor the reasoning behind this please see:\nhttps://github.com/highlightjs/highlight.js/issues/2880#issuecomment-747275419\n\n*/\n\n/**\n * @type {Record}\n */\nconst seenDeprecations = {};\n\n/**\n * @param {string} message\n */\nconst error = (message) => {\n console.error(message);\n};\n\n/**\n * @param {string} message\n * @param {any} args\n */\nconst warn = (message, ...args) => {\n console.log(`WARN: ${message}`, ...args);\n};\n\n/**\n * @param {string} version\n * @param {string} message\n */\nconst deprecated = (version, message) => {\n if (seenDeprecations[`${version}/${message}`]) return;\n\n console.log(`Deprecated as of ${version}. ${message}`);\n seenDeprecations[`${version}/${message}`] = true;\n};\n\n/* eslint-disable no-throw-literal */\n\n/**\n@typedef {import('highlight.js').CompiledMode} CompiledMode\n*/\n\nconst MultiClassError = new Error();\n\n/**\n * Renumbers labeled scope names to account for additional inner match\n * groups that otherwise would break everything.\n *\n * Lets say we 3 match scopes:\n *\n * { 1 => ..., 2 => ..., 3 => ... }\n *\n * So what we need is a clean match like this:\n *\n * (a)(b)(c) => [ \"a\", \"b\", \"c\" ]\n *\n * But this falls apart with inner match groups:\n *\n * (a)(((b)))(c) => [\"a\", \"b\", \"b\", \"b\", \"c\" ]\n *\n * Our scopes are now \"out of alignment\" and we're repeating `b` 3 times.\n * What needs to happen is the numbers are remapped:\n *\n * { 1 => ..., 2 => ..., 5 => ... }\n *\n * We also need to know that the ONLY groups that should be output\n * are 1, 2, and 5. This function handles this behavior.\n *\n * @param {CompiledMode} mode\n * @param {Array} regexes\n * @param {{key: \"beginScope\"|\"endScope\"}} opts\n */\nfunction remapScopeNames(mode, regexes, { key }) {\n let offset = 0;\n const scopeNames = mode[key];\n /** @type Record */\n const emit = {};\n /** @type Record */\n const positions = {};\n\n for (let i = 1; i <= regexes.length; i++) {\n positions[i + offset] = scopeNames[i];\n emit[i + offset] = true;\n offset += countMatchGroups(regexes[i - 1]);\n }\n // we use _emit to keep track of which match groups are \"top-level\" to avoid double\n // output from inside match groups\n mode[key] = positions;\n mode[key]._emit = emit;\n mode[key]._multi = true;\n}\n\n/**\n * @param {CompiledMode} mode\n */\nfunction beginMultiClass(mode) {\n if (!Array.isArray(mode.begin)) return;\n\n if (mode.skip || mode.excludeBegin || mode.returnBegin) {\n error(\"skip, excludeBegin, returnBegin not compatible with beginScope: {}\");\n throw MultiClassError;\n }\n\n if (typeof mode.beginScope !== \"object\" || mode.beginScope === null) {\n error(\"beginScope must be object\");\n throw MultiClassError;\n }\n\n remapScopeNames(mode, mode.begin, { key: \"beginScope\" });\n mode.begin = _rewriteBackreferences(mode.begin, { joinWith: \"\" });\n}\n\n/**\n * @param {CompiledMode} mode\n */\nfunction endMultiClass(mode) {\n if (!Array.isArray(mode.end)) return;\n\n if (mode.skip || mode.excludeEnd || mode.returnEnd) {\n error(\"skip, excludeEnd, returnEnd not compatible with endScope: {}\");\n throw MultiClassError;\n }\n\n if (typeof mode.endScope !== \"object\" || mode.endScope === null) {\n error(\"endScope must be object\");\n throw MultiClassError;\n }\n\n remapScopeNames(mode, mode.end, { key: \"endScope\" });\n mode.end = _rewriteBackreferences(mode.end, { joinWith: \"\" });\n}\n\n/**\n * this exists only to allow `scope: {}` to be used beside `match:`\n * Otherwise `beginScope` would necessary and that would look weird\n\n {\n match: [ /def/, /\\w+/ ]\n scope: { 1: \"keyword\" , 2: \"title\" }\n }\n\n * @param {CompiledMode} mode\n */\nfunction scopeSugar(mode) {\n if (mode.scope && typeof mode.scope === \"object\" && mode.scope !== null) {\n mode.beginScope = mode.scope;\n delete mode.scope;\n }\n}\n\n/**\n * @param {CompiledMode} mode\n */\nfunction MultiClass(mode) {\n scopeSugar(mode);\n\n if (typeof mode.beginScope === \"string\") {\n mode.beginScope = { _wrap: mode.beginScope };\n }\n if (typeof mode.endScope === \"string\") {\n mode.endScope = { _wrap: mode.endScope };\n }\n\n beginMultiClass(mode);\n endMultiClass(mode);\n}\n\n/**\n@typedef {import('highlight.js').Mode} Mode\n@typedef {import('highlight.js').CompiledMode} CompiledMode\n@typedef {import('highlight.js').Language} Language\n@typedef {import('highlight.js').HLJSPlugin} HLJSPlugin\n@typedef {import('highlight.js').CompiledLanguage} CompiledLanguage\n*/\n\n// compilation\n\n/**\n * Compiles a language definition result\n *\n * Given the raw result of a language definition (Language), compiles this so\n * that it is ready for highlighting code.\n * @param {Language} language\n * @returns {CompiledLanguage}\n */\nfunction compileLanguage(language) {\n /**\n * Builds a regex with the case sensitivity of the current language\n *\n * @param {RegExp | string} value\n * @param {boolean} [global]\n */\n function langRe(value, global) {\n return new RegExp(\n source(value),\n 'm'\n + (language.case_insensitive ? 'i' : '')\n + (language.unicodeRegex ? 'u' : '')\n + (global ? 'g' : '')\n );\n }\n\n /**\n Stores multiple regular expressions and allows you to quickly search for\n them all in a string simultaneously - returning the first match. It does\n this by creating a huge (a|b|c) regex - each individual item wrapped with ()\n and joined by `|` - using match groups to track position. When a match is\n found checking which position in the array has content allows us to figure\n out which of the original regexes / match groups triggered the match.\n\n The match object itself (the result of `Regex.exec`) is returned but also\n enhanced by merging in any meta-data that was registered with the regex.\n This is how we keep track of which mode matched, and what type of rule\n (`illegal`, `begin`, end, etc).\n */\n class MultiRegex {\n constructor() {\n this.matchIndexes = {};\n // @ts-ignore\n this.regexes = [];\n this.matchAt = 1;\n this.position = 0;\n }\n\n // @ts-ignore\n addRule(re, opts) {\n opts.position = this.position++;\n // @ts-ignore\n this.matchIndexes[this.matchAt] = opts;\n this.regexes.push([opts, re]);\n this.matchAt += countMatchGroups(re) + 1;\n }\n\n compile() {\n if (this.regexes.length === 0) {\n // avoids the need to check length every time exec is called\n // @ts-ignore\n this.exec = () => null;\n }\n const terminators = this.regexes.map(el => el[1]);\n this.matcherRe = langRe(_rewriteBackreferences(terminators, { joinWith: '|' }), true);\n this.lastIndex = 0;\n }\n\n /** @param {string} s */\n exec(s) {\n this.matcherRe.lastIndex = this.lastIndex;\n const match = this.matcherRe.exec(s);\n if (!match) { return null; }\n\n // eslint-disable-next-line no-undefined\n const i = match.findIndex((el, i) => i > 0 && el !== undefined);\n // @ts-ignore\n const matchData = this.matchIndexes[i];\n // trim off any earlier non-relevant match groups (ie, the other regex\n // match groups that make up the multi-matcher)\n match.splice(0, i);\n\n return Object.assign(match, matchData);\n }\n }\n\n /*\n Created to solve the key deficiently with MultiRegex - there is no way to\n test for multiple matches at a single location. Why would we need to do\n that? In the future a more dynamic engine will allow certain matches to be\n ignored. An example: if we matched say the 3rd regex in a large group but\n decided to ignore it - we'd need to started testing again at the 4th\n regex... but MultiRegex itself gives us no real way to do that.\n\n So what this class creates MultiRegexs on the fly for whatever search\n position they are needed.\n\n NOTE: These additional MultiRegex objects are created dynamically. For most\n grammars most of the time we will never actually need anything more than the\n first MultiRegex - so this shouldn't have too much overhead.\n\n Say this is our search group, and we match regex3, but wish to ignore it.\n\n regex1 | regex2 | regex3 | regex4 | regex5 ' ie, startAt = 0\n\n What we need is a new MultiRegex that only includes the remaining\n possibilities:\n\n regex4 | regex5 ' ie, startAt = 3\n\n This class wraps all that complexity up in a simple API... `startAt` decides\n where in the array of expressions to start doing the matching. It\n auto-increments, so if a match is found at position 2, then startAt will be\n set to 3. If the end is reached startAt will return to 0.\n\n MOST of the time the parser will be setting startAt manually to 0.\n */\n class ResumableMultiRegex {\n constructor() {\n // @ts-ignore\n this.rules = [];\n // @ts-ignore\n this.multiRegexes = [];\n this.count = 0;\n\n this.lastIndex = 0;\n this.regexIndex = 0;\n }\n\n // @ts-ignore\n getMatcher(index) {\n if (this.multiRegexes[index]) return this.multiRegexes[index];\n\n const matcher = new MultiRegex();\n this.rules.slice(index).forEach(([re, opts]) => matcher.addRule(re, opts));\n matcher.compile();\n this.multiRegexes[index] = matcher;\n return matcher;\n }\n\n resumingScanAtSamePosition() {\n return this.regexIndex !== 0;\n }\n\n considerAll() {\n this.regexIndex = 0;\n }\n\n // @ts-ignore\n addRule(re, opts) {\n this.rules.push([re, opts]);\n if (opts.type === \"begin\") this.count++;\n }\n\n /** @param {string} s */\n exec(s) {\n const m = this.getMatcher(this.regexIndex);\n m.lastIndex = this.lastIndex;\n let result = m.exec(s);\n\n // The following is because we have no easy way to say \"resume scanning at the\n // existing position but also skip the current rule ONLY\". What happens is\n // all prior rules are also skipped which can result in matching the wrong\n // thing. Example of matching \"booger\":\n\n // our matcher is [string, \"booger\", number]\n //\n // ....booger....\n\n // if \"booger\" is ignored then we'd really need a regex to scan from the\n // SAME position for only: [string, number] but ignoring \"booger\" (if it\n // was the first match), a simple resume would scan ahead who knows how\n // far looking only for \"number\", ignoring potential string matches (or\n // future \"booger\" matches that might be valid.)\n\n // So what we do: We execute two matchers, one resuming at the same\n // position, but the second full matcher starting at the position after:\n\n // /--- resume first regex match here (for [number])\n // |/---- full match here for [string, \"booger\", number]\n // vv\n // ....booger....\n\n // Which ever results in a match first is then used. So this 3-4 step\n // process essentially allows us to say \"match at this position, excluding\n // a prior rule that was ignored\".\n //\n // 1. Match \"booger\" first, ignore. Also proves that [string] does non match.\n // 2. Resume matching for [number]\n // 3. Match at index + 1 for [string, \"booger\", number]\n // 4. If #2 and #3 result in matches, which came first?\n if (this.resumingScanAtSamePosition()) {\n if (result && result.index === this.lastIndex) ; else { // use the second matcher result\n const m2 = this.getMatcher(0);\n m2.lastIndex = this.lastIndex + 1;\n result = m2.exec(s);\n }\n }\n\n if (result) {\n this.regexIndex += result.position + 1;\n if (this.regexIndex === this.count) {\n // wrap-around to considering all matches again\n this.considerAll();\n }\n }\n\n return result;\n }\n }\n\n /**\n * Given a mode, builds a huge ResumableMultiRegex that can be used to walk\n * the content and find matches.\n *\n * @param {CompiledMode} mode\n * @returns {ResumableMultiRegex}\n */\n function buildModeRegex(mode) {\n const mm = new ResumableMultiRegex();\n\n mode.contains.forEach(term => mm.addRule(term.begin, { rule: term, type: \"begin\" }));\n\n if (mode.terminatorEnd) {\n mm.addRule(mode.terminatorEnd, { type: \"end\" });\n }\n if (mode.illegal) {\n mm.addRule(mode.illegal, { type: \"illegal\" });\n }\n\n return mm;\n }\n\n /** skip vs abort vs ignore\n *\n * @skip - The mode is still entered and exited normally (and contains rules apply),\n * but all content is held and added to the parent buffer rather than being\n * output when the mode ends. Mostly used with `sublanguage` to build up\n * a single large buffer than can be parsed by sublanguage.\n *\n * - The mode begin ands ends normally.\n * - Content matched is added to the parent mode buffer.\n * - The parser cursor is moved forward normally.\n *\n * @abort - A hack placeholder until we have ignore. Aborts the mode (as if it\n * never matched) but DOES NOT continue to match subsequent `contains`\n * modes. Abort is bad/suboptimal because it can result in modes\n * farther down not getting applied because an earlier rule eats the\n * content but then aborts.\n *\n * - The mode does not begin.\n * - Content matched by `begin` is added to the mode buffer.\n * - The parser cursor is moved forward accordingly.\n *\n * @ignore - Ignores the mode (as if it never matched) and continues to match any\n * subsequent `contains` modes. Ignore isn't technically possible with\n * the current parser implementation.\n *\n * - The mode does not begin.\n * - Content matched by `begin` is ignored.\n * - The parser cursor is not moved forward.\n */\n\n /**\n * Compiles an individual mode\n *\n * This can raise an error if the mode contains certain detectable known logic\n * issues.\n * @param {Mode} mode\n * @param {CompiledMode | null} [parent]\n * @returns {CompiledMode | never}\n */\n function compileMode(mode, parent) {\n const cmode = /** @type CompiledMode */ (mode);\n if (mode.isCompiled) return cmode;\n\n [\n scopeClassName,\n // do this early so compiler extensions generally don't have to worry about\n // the distinction between match/begin\n compileMatch,\n MultiClass,\n beforeMatchExt\n ].forEach(ext => ext(mode, parent));\n\n language.compilerExtensions.forEach(ext => ext(mode, parent));\n\n // __beforeBegin is considered private API, internal use only\n mode.__beforeBegin = null;\n\n [\n beginKeywords,\n // do this later so compiler extensions that come earlier have access to the\n // raw array if they wanted to perhaps manipulate it, etc.\n compileIllegal,\n // default to 1 relevance if not specified\n compileRelevance\n ].forEach(ext => ext(mode, parent));\n\n mode.isCompiled = true;\n\n let keywordPattern = null;\n if (typeof mode.keywords === \"object\" && mode.keywords.$pattern) {\n // we need a copy because keywords might be compiled multiple times\n // so we can't go deleting $pattern from the original on the first\n // pass\n mode.keywords = Object.assign({}, mode.keywords);\n keywordPattern = mode.keywords.$pattern;\n delete mode.keywords.$pattern;\n }\n keywordPattern = keywordPattern || /\\w+/;\n\n if (mode.keywords) {\n mode.keywords = compileKeywords(mode.keywords, language.case_insensitive);\n }\n\n cmode.keywordPatternRe = langRe(keywordPattern, true);\n\n if (parent) {\n if (!mode.begin) mode.begin = /\\B|\\b/;\n cmode.beginRe = langRe(cmode.begin);\n if (!mode.end && !mode.endsWithParent) mode.end = /\\B|\\b/;\n if (mode.end) cmode.endRe = langRe(cmode.end);\n cmode.terminatorEnd = source(cmode.end) || '';\n if (mode.endsWithParent && parent.terminatorEnd) {\n cmode.terminatorEnd += (mode.end ? '|' : '') + parent.terminatorEnd;\n }\n }\n if (mode.illegal) cmode.illegalRe = langRe(/** @type {RegExp | string} */ (mode.illegal));\n if (!mode.contains) mode.contains = [];\n\n mode.contains = [].concat(...mode.contains.map(function(c) {\n return expandOrCloneMode(c === 'self' ? mode : c);\n }));\n mode.contains.forEach(function(c) { compileMode(/** @type Mode */ (c), cmode); });\n\n if (mode.starts) {\n compileMode(mode.starts, parent);\n }\n\n cmode.matcher = buildModeRegex(cmode);\n return cmode;\n }\n\n if (!language.compilerExtensions) language.compilerExtensions = [];\n\n // self is not valid at the top-level\n if (language.contains && language.contains.includes('self')) {\n throw new Error(\"ERR: contains `self` is not supported at the top-level of a language. See documentation.\");\n }\n\n // we need a null object, which inherit will guarantee\n language.classNameAliases = inherit$1(language.classNameAliases || {});\n\n return compileMode(/** @type Mode */ (language));\n}\n\n/**\n * Determines if a mode has a dependency on it's parent or not\n *\n * If a mode does have a parent dependency then often we need to clone it if\n * it's used in multiple places so that each copy points to the correct parent,\n * where-as modes without a parent can often safely be re-used at the bottom of\n * a mode chain.\n *\n * @param {Mode | null} mode\n * @returns {boolean} - is there a dependency on the parent?\n * */\nfunction dependencyOnParent(mode) {\n if (!mode) return false;\n\n return mode.endsWithParent || dependencyOnParent(mode.starts);\n}\n\n/**\n * Expands a mode or clones it if necessary\n *\n * This is necessary for modes with parental dependenceis (see notes on\n * `dependencyOnParent`) and for nodes that have `variants` - which must then be\n * exploded into their own individual modes at compile time.\n *\n * @param {Mode} mode\n * @returns {Mode | Mode[]}\n * */\nfunction expandOrCloneMode(mode) {\n if (mode.variants && !mode.cachedVariants) {\n mode.cachedVariants = mode.variants.map(function(variant) {\n return inherit$1(mode, { variants: null }, variant);\n });\n }\n\n // EXPAND\n // if we have variants then essentially \"replace\" the mode with the variants\n // this happens in compileMode, where this function is called from\n if (mode.cachedVariants) {\n return mode.cachedVariants;\n }\n\n // CLONE\n // if we have dependencies on parents then we need a unique\n // instance of ourselves, so we can be reused with many\n // different parents without issue\n if (dependencyOnParent(mode)) {\n return inherit$1(mode, { starts: mode.starts ? inherit$1(mode.starts) : null });\n }\n\n if (Object.isFrozen(mode)) {\n return inherit$1(mode);\n }\n\n // no special dependency issues, just return ourselves\n return mode;\n}\n\nvar version = \"11.6.0\";\n\nclass HTMLInjectionError extends Error {\n constructor(reason, html) {\n super(reason);\n this.name = \"HTMLInjectionError\";\n this.html = html;\n }\n}\n\n/*\nSyntax highlighting with language autodetection.\nhttps://highlightjs.org/\n*/\n\n/**\n@typedef {import('highlight.js').Mode} Mode\n@typedef {import('highlight.js').CompiledMode} CompiledMode\n@typedef {import('highlight.js').CompiledScope} CompiledScope\n@typedef {import('highlight.js').Language} Language\n@typedef {import('highlight.js').HLJSApi} HLJSApi\n@typedef {import('highlight.js').HLJSPlugin} HLJSPlugin\n@typedef {import('highlight.js').PluginEvent} PluginEvent\n@typedef {import('highlight.js').HLJSOptions} HLJSOptions\n@typedef {import('highlight.js').LanguageFn} LanguageFn\n@typedef {import('highlight.js').HighlightedHTMLElement} HighlightedHTMLElement\n@typedef {import('highlight.js').BeforeHighlightContext} BeforeHighlightContext\n@typedef {import('highlight.js/private').MatchType} MatchType\n@typedef {import('highlight.js/private').KeywordData} KeywordData\n@typedef {import('highlight.js/private').EnhancedMatch} EnhancedMatch\n@typedef {import('highlight.js/private').AnnotatedError} AnnotatedError\n@typedef {import('highlight.js').AutoHighlightResult} AutoHighlightResult\n@typedef {import('highlight.js').HighlightOptions} HighlightOptions\n@typedef {import('highlight.js').HighlightResult} HighlightResult\n*/\n\n\nconst escape = escapeHTML;\nconst inherit = inherit$1;\nconst NO_MATCH = Symbol(\"nomatch\");\nconst MAX_KEYWORD_HITS = 7;\n\n/**\n * @param {any} hljs - object that is extended (legacy)\n * @returns {HLJSApi}\n */\nconst HLJS = function(hljs) {\n // Global internal variables used within the highlight.js library.\n /** @type {Record} */\n const languages = Object.create(null);\n /** @type {Record} */\n const aliases = Object.create(null);\n /** @type {HLJSPlugin[]} */\n const plugins = [];\n\n // safe/production mode - swallows more errors, tries to keep running\n // even if a single syntax or parse hits a fatal error\n let SAFE_MODE = true;\n const LANGUAGE_NOT_FOUND = \"Could not find the language '{}', did you forget to load/include a language module?\";\n /** @type {Language} */\n const PLAINTEXT_LANGUAGE = { disableAutodetect: true, name: 'Plain text', contains: [] };\n\n // Global options used when within external APIs. This is modified when\n // calling the `hljs.configure` function.\n /** @type HLJSOptions */\n let options = {\n ignoreUnescapedHTML: false,\n throwUnescapedHTML: false,\n noHighlightRe: /^(no-?highlight)$/i,\n languageDetectRe: /\\blang(?:uage)?-([\\w-]+)\\b/i,\n classPrefix: 'hljs-',\n cssSelector: 'pre code',\n languages: null,\n // beta configuration options, subject to change, welcome to discuss\n // https://github.com/highlightjs/highlight.js/issues/1086\n __emitter: TokenTreeEmitter\n };\n\n /* Utility functions */\n\n /**\n * Tests a language name to see if highlighting should be skipped\n * @param {string} languageName\n */\n function shouldNotHighlight(languageName) {\n return options.noHighlightRe.test(languageName);\n }\n\n /**\n * @param {HighlightedHTMLElement} block - the HTML element to determine language for\n */\n function blockLanguage(block) {\n let classes = block.className + ' ';\n\n classes += block.parentNode ? block.parentNode.className : '';\n\n // language-* takes precedence over non-prefixed class names.\n const match = options.languageDetectRe.exec(classes);\n if (match) {\n const language = getLanguage(match[1]);\n if (!language) {\n warn(LANGUAGE_NOT_FOUND.replace(\"{}\", match[1]));\n warn(\"Falling back to no-highlight mode for this block.\", block);\n }\n return language ? match[1] : 'no-highlight';\n }\n\n return classes\n .split(/\\s+/)\n .find((_class) => shouldNotHighlight(_class) || getLanguage(_class));\n }\n\n /**\n * Core highlighting function.\n *\n * OLD API\n * highlight(lang, code, ignoreIllegals, continuation)\n *\n * NEW API\n * highlight(code, {lang, ignoreIllegals})\n *\n * @param {string} codeOrLanguageName - the language to use for highlighting\n * @param {string | HighlightOptions} optionsOrCode - the code to highlight\n * @param {boolean} [ignoreIllegals] - whether to ignore illegal matches, default is to bail\n *\n * @returns {HighlightResult} Result - an object that represents the result\n * @property {string} language - the language name\n * @property {number} relevance - the relevance score\n * @property {string} value - the highlighted HTML code\n * @property {string} code - the original raw code\n * @property {CompiledMode} top - top of the current mode stack\n * @property {boolean} illegal - indicates whether any illegal matches were found\n */\n function highlight(codeOrLanguageName, optionsOrCode, ignoreIllegals) {\n let code = \"\";\n let languageName = \"\";\n if (typeof optionsOrCode === \"object\") {\n code = codeOrLanguageName;\n ignoreIllegals = optionsOrCode.ignoreIllegals;\n languageName = optionsOrCode.language;\n } else {\n // old API\n deprecated(\"10.7.0\", \"highlight(lang, code, ...args) has been deprecated.\");\n deprecated(\"10.7.0\", \"Please use highlight(code, options) instead.\\nhttps://github.com/highlightjs/highlight.js/issues/2277\");\n languageName = codeOrLanguageName;\n code = optionsOrCode;\n }\n\n // https://github.com/highlightjs/highlight.js/issues/3149\n // eslint-disable-next-line no-undefined\n if (ignoreIllegals === undefined) { ignoreIllegals = true; }\n\n /** @type {BeforeHighlightContext} */\n const context = {\n code,\n language: languageName\n };\n // the plugin can change the desired language or the code to be highlighted\n // just be changing the object it was passed\n fire(\"before:highlight\", context);\n\n // a before plugin can usurp the result completely by providing it's own\n // in which case we don't even need to call highlight\n const result = context.result\n ? context.result\n : _highlight(context.language, context.code, ignoreIllegals);\n\n result.code = context.code;\n // the plugin can change anything in result to suite it\n fire(\"after:highlight\", result);\n\n return result;\n }\n\n /**\n * private highlight that's used internally and does not fire callbacks\n *\n * @param {string} languageName - the language to use for highlighting\n * @param {string} codeToHighlight - the code to highlight\n * @param {boolean?} [ignoreIllegals] - whether to ignore illegal matches, default is to bail\n * @param {CompiledMode?} [continuation] - current continuation mode, if any\n * @returns {HighlightResult} - result of the highlight operation\n */\n function _highlight(languageName, codeToHighlight, ignoreIllegals, continuation) {\n const keywordHits = Object.create(null);\n\n /**\n * Return keyword data if a match is a keyword\n * @param {CompiledMode} mode - current mode\n * @param {string} matchText - the textual match\n * @returns {KeywordData | false}\n */\n function keywordData(mode, matchText) {\n return mode.keywords[matchText];\n }\n\n function processKeywords() {\n if (!top.keywords) {\n emitter.addText(modeBuffer);\n return;\n }\n\n let lastIndex = 0;\n top.keywordPatternRe.lastIndex = 0;\n let match = top.keywordPatternRe.exec(modeBuffer);\n let buf = \"\";\n\n while (match) {\n buf += modeBuffer.substring(lastIndex, match.index);\n const word = language.case_insensitive ? match[0].toLowerCase() : match[0];\n const data = keywordData(top, word);\n if (data) {\n const [kind, keywordRelevance] = data;\n emitter.addText(buf);\n buf = \"\";\n\n keywordHits[word] = (keywordHits[word] || 0) + 1;\n if (keywordHits[word] <= MAX_KEYWORD_HITS) relevance += keywordRelevance;\n if (kind.startsWith(\"_\")) {\n // _ implied for relevance only, do not highlight\n // by applying a class name\n buf += match[0];\n } else {\n const cssClass = language.classNameAliases[kind] || kind;\n emitter.addKeyword(match[0], cssClass);\n }\n } else {\n buf += match[0];\n }\n lastIndex = top.keywordPatternRe.lastIndex;\n match = top.keywordPatternRe.exec(modeBuffer);\n }\n buf += modeBuffer.substring(lastIndex);\n emitter.addText(buf);\n }\n\n function processSubLanguage() {\n if (modeBuffer === \"\") return;\n /** @type HighlightResult */\n let result = null;\n\n if (typeof top.subLanguage === 'string') {\n if (!languages[top.subLanguage]) {\n emitter.addText(modeBuffer);\n return;\n }\n result = _highlight(top.subLanguage, modeBuffer, true, continuations[top.subLanguage]);\n continuations[top.subLanguage] = /** @type {CompiledMode} */ (result._top);\n } else {\n result = highlightAuto(modeBuffer, top.subLanguage.length ? top.subLanguage : null);\n }\n\n // Counting embedded language score towards the host language may be disabled\n // with zeroing the containing mode relevance. Use case in point is Markdown that\n // allows XML everywhere and makes every XML snippet to have a much larger Markdown\n // score.\n if (top.relevance > 0) {\n relevance += result.relevance;\n }\n emitter.addSublanguage(result._emitter, result.language);\n }\n\n function processBuffer() {\n if (top.subLanguage != null) {\n processSubLanguage();\n } else {\n processKeywords();\n }\n modeBuffer = '';\n }\n\n /**\n * @param {CompiledScope} scope\n * @param {RegExpMatchArray} match\n */\n function emitMultiClass(scope, match) {\n let i = 1;\n const max = match.length - 1;\n while (i <= max) {\n if (!scope._emit[i]) { i++; continue; }\n const klass = language.classNameAliases[scope[i]] || scope[i];\n const text = match[i];\n if (klass) {\n emitter.addKeyword(text, klass);\n } else {\n modeBuffer = text;\n processKeywords();\n modeBuffer = \"\";\n }\n i++;\n }\n }\n\n /**\n * @param {CompiledMode} mode - new mode to start\n * @param {RegExpMatchArray} match\n */\n function startNewMode(mode, match) {\n if (mode.scope && typeof mode.scope === \"string\") {\n emitter.openNode(language.classNameAliases[mode.scope] || mode.scope);\n }\n if (mode.beginScope) {\n // beginScope just wraps the begin match itself in a scope\n if (mode.beginScope._wrap) {\n emitter.addKeyword(modeBuffer, language.classNameAliases[mode.beginScope._wrap] || mode.beginScope._wrap);\n modeBuffer = \"\";\n } else if (mode.beginScope._multi) {\n // at this point modeBuffer should just be the match\n emitMultiClass(mode.beginScope, match);\n modeBuffer = \"\";\n }\n }\n\n top = Object.create(mode, { parent: { value: top } });\n return top;\n }\n\n /**\n * @param {CompiledMode } mode - the mode to potentially end\n * @param {RegExpMatchArray} match - the latest match\n * @param {string} matchPlusRemainder - match plus remainder of content\n * @returns {CompiledMode | void} - the next mode, or if void continue on in current mode\n */\n function endOfMode(mode, match, matchPlusRemainder) {\n let matched = startsWith(mode.endRe, matchPlusRemainder);\n\n if (matched) {\n if (mode[\"on:end\"]) {\n const resp = new Response(mode);\n mode[\"on:end\"](match, resp);\n if (resp.isMatchIgnored) matched = false;\n }\n\n if (matched) {\n while (mode.endsParent && mode.parent) {\n mode = mode.parent;\n }\n return mode;\n }\n }\n // even if on:end fires an `ignore` it's still possible\n // that we might trigger the end node because of a parent mode\n if (mode.endsWithParent) {\n return endOfMode(mode.parent, match, matchPlusRemainder);\n }\n }\n\n /**\n * Handle matching but then ignoring a sequence of text\n *\n * @param {string} lexeme - string containing full match text\n */\n function doIgnore(lexeme) {\n if (top.matcher.regexIndex === 0) {\n // no more regexes to potentially match here, so we move the cursor forward one\n // space\n modeBuffer += lexeme[0];\n return 1;\n } else {\n // no need to move the cursor, we still have additional regexes to try and\n // match at this very spot\n resumeScanAtSamePosition = true;\n return 0;\n }\n }\n\n /**\n * Handle the start of a new potential mode match\n *\n * @param {EnhancedMatch} match - the current match\n * @returns {number} how far to advance the parse cursor\n */\n function doBeginMatch(match) {\n const lexeme = match[0];\n const newMode = match.rule;\n\n const resp = new Response(newMode);\n // first internal before callbacks, then the public ones\n const beforeCallbacks = [newMode.__beforeBegin, newMode[\"on:begin\"]];\n for (const cb of beforeCallbacks) {\n if (!cb) continue;\n cb(match, resp);\n if (resp.isMatchIgnored) return doIgnore(lexeme);\n }\n\n if (newMode.skip) {\n modeBuffer += lexeme;\n } else {\n if (newMode.excludeBegin) {\n modeBuffer += lexeme;\n }\n processBuffer();\n if (!newMode.returnBegin && !newMode.excludeBegin) {\n modeBuffer = lexeme;\n }\n }\n startNewMode(newMode, match);\n return newMode.returnBegin ? 0 : lexeme.length;\n }\n\n /**\n * Handle the potential end of mode\n *\n * @param {RegExpMatchArray} match - the current match\n */\n function doEndMatch(match) {\n const lexeme = match[0];\n const matchPlusRemainder = codeToHighlight.substring(match.index);\n\n const endMode = endOfMode(top, match, matchPlusRemainder);\n if (!endMode) { return NO_MATCH; }\n\n const origin = top;\n if (top.endScope && top.endScope._wrap) {\n processBuffer();\n emitter.addKeyword(lexeme, top.endScope._wrap);\n } else if (top.endScope && top.endScope._multi) {\n processBuffer();\n emitMultiClass(top.endScope, match);\n } else if (origin.skip) {\n modeBuffer += lexeme;\n } else {\n if (!(origin.returnEnd || origin.excludeEnd)) {\n modeBuffer += lexeme;\n }\n processBuffer();\n if (origin.excludeEnd) {\n modeBuffer = lexeme;\n }\n }\n do {\n if (top.scope) {\n emitter.closeNode();\n }\n if (!top.skip && !top.subLanguage) {\n relevance += top.relevance;\n }\n top = top.parent;\n } while (top !== endMode.parent);\n if (endMode.starts) {\n startNewMode(endMode.starts, match);\n }\n return origin.returnEnd ? 0 : lexeme.length;\n }\n\n function processContinuations() {\n const list = [];\n for (let current = top; current !== language; current = current.parent) {\n if (current.scope) {\n list.unshift(current.scope);\n }\n }\n list.forEach(item => emitter.openNode(item));\n }\n\n /** @type {{type?: MatchType, index?: number, rule?: Mode}}} */\n let lastMatch = {};\n\n /**\n * Process an individual match\n *\n * @param {string} textBeforeMatch - text preceding the match (since the last match)\n * @param {EnhancedMatch} [match] - the match itself\n */\n function processLexeme(textBeforeMatch, match) {\n const lexeme = match && match[0];\n\n // add non-matched text to the current mode buffer\n modeBuffer += textBeforeMatch;\n\n if (lexeme == null) {\n processBuffer();\n return 0;\n }\n\n // we've found a 0 width match and we're stuck, so we need to advance\n // this happens when we have badly behaved rules that have optional matchers to the degree that\n // sometimes they can end up matching nothing at all\n // Ref: https://github.com/highlightjs/highlight.js/issues/2140\n if (lastMatch.type === \"begin\" && match.type === \"end\" && lastMatch.index === match.index && lexeme === \"\") {\n // spit the \"skipped\" character that our regex choked on back into the output sequence\n modeBuffer += codeToHighlight.slice(match.index, match.index + 1);\n if (!SAFE_MODE) {\n /** @type {AnnotatedError} */\n const err = new Error(`0 width match regex (${languageName})`);\n err.languageName = languageName;\n err.badRule = lastMatch.rule;\n throw err;\n }\n return 1;\n }\n lastMatch = match;\n\n if (match.type === \"begin\") {\n return doBeginMatch(match);\n } else if (match.type === \"illegal\" && !ignoreIllegals) {\n // illegal match, we do not continue processing\n /** @type {AnnotatedError} */\n const err = new Error('Illegal lexeme \"' + lexeme + '\" for mode \"' + (top.scope || '') + '\"');\n err.mode = top;\n throw err;\n } else if (match.type === \"end\") {\n const processed = doEndMatch(match);\n if (processed !== NO_MATCH) {\n return processed;\n }\n }\n\n // edge case for when illegal matches $ (end of line) which is technically\n // a 0 width match but not a begin/end match so it's not caught by the\n // first handler (when ignoreIllegals is true)\n if (match.type === \"illegal\" && lexeme === \"\") {\n // advance so we aren't stuck in an infinite loop\n return 1;\n }\n\n // infinite loops are BAD, this is a last ditch catch all. if we have a\n // decent number of iterations yet our index (cursor position in our\n // parsing) still 3x behind our index then something is very wrong\n // so we bail\n if (iterations > 100000 && iterations > match.index * 3) {\n const err = new Error('potential infinite loop, way more iterations than matches');\n throw err;\n }\n\n /*\n Why might be find ourselves here? An potential end match that was\n triggered but could not be completed. IE, `doEndMatch` returned NO_MATCH.\n (this could be because a callback requests the match be ignored, etc)\n\n This causes no real harm other than stopping a few times too many.\n */\n\n modeBuffer += lexeme;\n return lexeme.length;\n }\n\n const language = getLanguage(languageName);\n if (!language) {\n error(LANGUAGE_NOT_FOUND.replace(\"{}\", languageName));\n throw new Error('Unknown language: \"' + languageName + '\"');\n }\n\n const md = compileLanguage(language);\n let result = '';\n /** @type {CompiledMode} */\n let top = continuation || md;\n /** @type Record */\n const continuations = {}; // keep continuations for sub-languages\n const emitter = new options.__emitter(options);\n processContinuations();\n let modeBuffer = '';\n let relevance = 0;\n let index = 0;\n let iterations = 0;\n let resumeScanAtSamePosition = false;\n\n try {\n top.matcher.considerAll();\n\n for (;;) {\n iterations++;\n if (resumeScanAtSamePosition) {\n // only regexes not matched previously will now be\n // considered for a potential match\n resumeScanAtSamePosition = false;\n } else {\n top.matcher.considerAll();\n }\n top.matcher.lastIndex = index;\n\n const match = top.matcher.exec(codeToHighlight);\n // console.log(\"match\", match[0], match.rule && match.rule.begin)\n\n if (!match) break;\n\n const beforeMatch = codeToHighlight.substring(index, match.index);\n const processedCount = processLexeme(beforeMatch, match);\n index = match.index + processedCount;\n }\n processLexeme(codeToHighlight.substring(index));\n emitter.closeAllNodes();\n emitter.finalize();\n result = emitter.toHTML();\n\n return {\n language: languageName,\n value: result,\n relevance: relevance,\n illegal: false,\n _emitter: emitter,\n _top: top\n };\n } catch (err) {\n if (err.message && err.message.includes('Illegal')) {\n return {\n language: languageName,\n value: escape(codeToHighlight),\n illegal: true,\n relevance: 0,\n _illegalBy: {\n message: err.message,\n index: index,\n context: codeToHighlight.slice(index - 100, index + 100),\n mode: err.mode,\n resultSoFar: result\n },\n _emitter: emitter\n };\n } else if (SAFE_MODE) {\n return {\n language: languageName,\n value: escape(codeToHighlight),\n illegal: false,\n relevance: 0,\n errorRaised: err,\n _emitter: emitter,\n _top: top\n };\n } else {\n throw err;\n }\n }\n }\n\n /**\n * returns a valid highlight result, without actually doing any actual work,\n * auto highlight starts with this and it's possible for small snippets that\n * auto-detection may not find a better match\n * @param {string} code\n * @returns {HighlightResult}\n */\n function justTextHighlightResult(code) {\n const result = {\n value: escape(code),\n illegal: false,\n relevance: 0,\n _top: PLAINTEXT_LANGUAGE,\n _emitter: new options.__emitter(options)\n };\n result._emitter.addText(code);\n return result;\n }\n\n /**\n Highlighting with language detection. Accepts a string with the code to\n highlight. Returns an object with the following properties:\n\n - language (detected language)\n - relevance (int)\n - value (an HTML string with highlighting markup)\n - secondBest (object with the same structure for second-best heuristically\n detected language, may be absent)\n\n @param {string} code\n @param {Array} [languageSubset]\n @returns {AutoHighlightResult}\n */\n function highlightAuto(code, languageSubset) {\n languageSubset = languageSubset || options.languages || Object.keys(languages);\n const plaintext = justTextHighlightResult(code);\n\n const results = languageSubset.filter(getLanguage).filter(autoDetection).map(name =>\n _highlight(name, code, false)\n );\n results.unshift(plaintext); // plaintext is always an option\n\n const sorted = results.sort((a, b) => {\n // sort base on relevance\n if (a.relevance !== b.relevance) return b.relevance - a.relevance;\n\n // always award the tie to the base language\n // ie if C++ and Arduino are tied, it's more likely to be C++\n if (a.language && b.language) {\n if (getLanguage(a.language).supersetOf === b.language) {\n return 1;\n } else if (getLanguage(b.language).supersetOf === a.language) {\n return -1;\n }\n }\n\n // otherwise say they are equal, which has the effect of sorting on\n // relevance while preserving the original ordering - which is how ties\n // have historically been settled, ie the language that comes first always\n // wins in the case of a tie\n return 0;\n });\n\n const [best, secondBest] = sorted;\n\n /** @type {AutoHighlightResult} */\n const result = best;\n result.secondBest = secondBest;\n\n return result;\n }\n\n /**\n * Builds new class name for block given the language name\n *\n * @param {HTMLElement} element\n * @param {string} [currentLang]\n * @param {string} [resultLang]\n */\n function updateClassName(element, currentLang, resultLang) {\n const language = (currentLang && aliases[currentLang]) || resultLang;\n\n element.classList.add(\"hljs\");\n element.classList.add(`language-${language}`);\n }\n\n /**\n * Applies highlighting to a DOM node containing code.\n *\n * @param {HighlightedHTMLElement} element - the HTML element to highlight\n */\n function highlightElement(element) {\n /** @type HTMLElement */\n let node = null;\n const language = blockLanguage(element);\n\n if (shouldNotHighlight(language)) return;\n\n fire(\"before:highlightElement\",\n { el: element, language: language });\n\n // we should be all text, no child nodes (unescaped HTML) - this is possibly\n // an HTML injection attack - it's likely too late if this is already in\n // production (the code has likely already done its damage by the time\n // we're seeing it)... but we yell loudly about this so that hopefully it's\n // more likely to be caught in development before making it to production\n if (element.children.length > 0) {\n if (!options.ignoreUnescapedHTML) {\n console.warn(\"One of your code blocks includes unescaped HTML. This is a potentially serious security risk.\");\n console.warn(\"https://github.com/highlightjs/highlight.js/wiki/security\");\n console.warn(\"The element with unescaped HTML:\");\n console.warn(element);\n }\n if (options.throwUnescapedHTML) {\n const err = new HTMLInjectionError(\n \"One of your code blocks includes unescaped HTML.\",\n element.innerHTML\n );\n throw err;\n }\n }\n\n node = element;\n const text = node.textContent;\n const result = language ? highlight(text, { language, ignoreIllegals: true }) : highlightAuto(text);\n\n element.innerHTML = result.value;\n updateClassName(element, language, result.language);\n element.result = {\n language: result.language,\n // TODO: remove with version 11.0\n re: result.relevance,\n relevance: result.relevance\n };\n if (result.secondBest) {\n element.secondBest = {\n language: result.secondBest.language,\n relevance: result.secondBest.relevance\n };\n }\n\n fire(\"after:highlightElement\", { el: element, result, text });\n }\n\n /**\n * Updates highlight.js global options with the passed options\n *\n * @param {Partial} userOptions\n */\n function configure(userOptions) {\n options = inherit(options, userOptions);\n }\n\n // TODO: remove v12, deprecated\n const initHighlighting = () => {\n highlightAll();\n deprecated(\"10.6.0\", \"initHighlighting() deprecated. Use highlightAll() now.\");\n };\n\n // TODO: remove v12, deprecated\n function initHighlightingOnLoad() {\n highlightAll();\n deprecated(\"10.6.0\", \"initHighlightingOnLoad() deprecated. Use highlightAll() now.\");\n }\n\n let wantsHighlight = false;\n\n /**\n * auto-highlights all pre>code elements on the page\n */\n function highlightAll() {\n // if we are called too early in the loading process\n if (document.readyState === \"loading\") {\n wantsHighlight = true;\n return;\n }\n\n const blocks = document.querySelectorAll(options.cssSelector);\n blocks.forEach(highlightElement);\n }\n\n function boot() {\n // if a highlight was requested before DOM was loaded, do now\n if (wantsHighlight) highlightAll();\n }\n\n // make sure we are in the browser environment\n if (typeof window !== 'undefined' && window.addEventListener) {\n window.addEventListener('DOMContentLoaded', boot, false);\n }\n\n /**\n * Register a language grammar module\n *\n * @param {string} languageName\n * @param {LanguageFn} languageDefinition\n */\n function registerLanguage(languageName, languageDefinition) {\n let lang = null;\n try {\n lang = languageDefinition(hljs);\n } catch (error$1) {\n error(\"Language definition for '{}' could not be registered.\".replace(\"{}\", languageName));\n // hard or soft error\n if (!SAFE_MODE) { throw error$1; } else { error(error$1); }\n // languages that have serious errors are replaced with essentially a\n // \"plaintext\" stand-in so that the code blocks will still get normal\n // css classes applied to them - and one bad language won't break the\n // entire highlighter\n lang = PLAINTEXT_LANGUAGE;\n }\n // give it a temporary name if it doesn't have one in the meta-data\n if (!lang.name) lang.name = languageName;\n languages[languageName] = lang;\n lang.rawDefinition = languageDefinition.bind(null, hljs);\n\n if (lang.aliases) {\n registerAliases(lang.aliases, { languageName });\n }\n }\n\n /**\n * Remove a language grammar module\n *\n * @param {string} languageName\n */\n function unregisterLanguage(languageName) {\n delete languages[languageName];\n for (const alias of Object.keys(aliases)) {\n if (aliases[alias] === languageName) {\n delete aliases[alias];\n }\n }\n }\n\n /**\n * @returns {string[]} List of language internal names\n */\n function listLanguages() {\n return Object.keys(languages);\n }\n\n /**\n * @param {string} name - name of the language to retrieve\n * @returns {Language | undefined}\n */\n function getLanguage(name) {\n name = (name || '').toLowerCase();\n return languages[name] || languages[aliases[name]];\n }\n\n /**\n *\n * @param {string|string[]} aliasList - single alias or list of aliases\n * @param {{languageName: string}} opts\n */\n function registerAliases(aliasList, { languageName }) {\n if (typeof aliasList === 'string') {\n aliasList = [aliasList];\n }\n aliasList.forEach(alias => { aliases[alias.toLowerCase()] = languageName; });\n }\n\n /**\n * Determines if a given language has auto-detection enabled\n * @param {string} name - name of the language\n */\n function autoDetection(name) {\n const lang = getLanguage(name);\n return lang && !lang.disableAutodetect;\n }\n\n /**\n * Upgrades the old highlightBlock plugins to the new\n * highlightElement API\n * @param {HLJSPlugin} plugin\n */\n function upgradePluginAPI(plugin) {\n // TODO: remove with v12\n if (plugin[\"before:highlightBlock\"] && !plugin[\"before:highlightElement\"]) {\n plugin[\"before:highlightElement\"] = (data) => {\n plugin[\"before:highlightBlock\"](\n Object.assign({ block: data.el }, data)\n );\n };\n }\n if (plugin[\"after:highlightBlock\"] && !plugin[\"after:highlightElement\"]) {\n plugin[\"after:highlightElement\"] = (data) => {\n plugin[\"after:highlightBlock\"](\n Object.assign({ block: data.el }, data)\n );\n };\n }\n }\n\n /**\n * @param {HLJSPlugin} plugin\n */\n function addPlugin(plugin) {\n upgradePluginAPI(plugin);\n plugins.push(plugin);\n }\n\n /**\n *\n * @param {PluginEvent} event\n * @param {any} args\n */\n function fire(event, args) {\n const cb = event;\n plugins.forEach(function(plugin) {\n if (plugin[cb]) {\n plugin[cb](args);\n }\n });\n }\n\n /**\n * DEPRECATED\n * @param {HighlightedHTMLElement} el\n */\n function deprecateHighlightBlock(el) {\n deprecated(\"10.7.0\", \"highlightBlock will be removed entirely in v12.0\");\n deprecated(\"10.7.0\", \"Please use highlightElement now.\");\n\n return highlightElement(el);\n }\n\n /* Interface definition */\n Object.assign(hljs, {\n highlight,\n highlightAuto,\n highlightAll,\n highlightElement,\n // TODO: Remove with v12 API\n highlightBlock: deprecateHighlightBlock,\n configure,\n initHighlighting,\n initHighlightingOnLoad,\n registerLanguage,\n unregisterLanguage,\n listLanguages,\n getLanguage,\n registerAliases,\n autoDetection,\n inherit,\n addPlugin\n });\n\n hljs.debugMode = function() { SAFE_MODE = false; };\n hljs.safeMode = function() { SAFE_MODE = true; };\n hljs.versionString = version;\n\n hljs.regex = {\n concat: concat,\n lookahead: lookahead,\n either: either,\n optional: optional,\n anyNumberOfTimes: anyNumberOfTimes\n };\n\n for (const key in MODES) {\n // @ts-ignore\n if (typeof MODES[key] === \"object\") {\n // @ts-ignore\n deepFreezeEs6.exports(MODES[key]);\n }\n }\n\n // merge all the modes/regexes into our main object\n Object.assign(hljs, MODES);\n\n return hljs;\n};\n\n// export an \"instance\" of the highlighter\nvar highlight = HLJS({});\n\nmodule.exports = highlight;\nhighlight.HighlightJS = highlight;\nhighlight.default = highlight;\n","var createCaseFirst = require('./_createCaseFirst');\n\n/**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\nvar upperFirst = createCaseFirst('toUpperCase');\n\nmodule.exports = upperFirst;\n","module.exports = __webpack_public_path__ + \"img/import.2e2e359c.svg\";","/*!\n\n diff v4.0.1\n\nSoftware License Agreement (BSD License)\n\nCopyright (c) 2009-2015, Kevin Decker \n\nAll rights reserved.\n\nRedistribution and use of this software in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above\n copyright notice, this list of conditions and the\n following disclaimer.\n\n* Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the\n following disclaimer in the documentation and/or other\n materials provided with the distribution.\n\n* Neither the name of Kevin Decker nor the names of its\n contributors may be used to endorse or promote products\n derived from this software without specific prior\n written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR\nIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER\nIN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\nOF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n@license\n*/\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports'], factory) :\n (global = global || self, factory(global.Diff = {}));\n}(this, function (exports) { 'use strict';\n\n function Diff() {}\n Diff.prototype = {\n diff: function diff(oldString, newString) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var callback = options.callback;\n\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n\n this.options = options;\n var self = this;\n\n function done(value) {\n if (callback) {\n setTimeout(function () {\n callback(undefined, value);\n }, 0);\n return true;\n } else {\n return value;\n }\n } // Allow subclasses to massage the input prior to running\n\n\n oldString = this.castInput(oldString);\n newString = this.castInput(newString);\n oldString = this.removeEmpty(this.tokenize(oldString));\n newString = this.removeEmpty(this.tokenize(newString));\n var newLen = newString.length,\n oldLen = oldString.length;\n var editLength = 1;\n var maxEditLength = newLen + oldLen;\n var bestPath = [{\n newPos: -1,\n components: []\n }]; // Seed editLength = 0, i.e. the content starts with the same values\n\n var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0);\n\n if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) {\n // Identity per the equality and tokenizer\n return done([{\n value: this.join(newString),\n count: newString.length\n }]);\n } // Main worker method. checks all permutations of a given edit length for acceptance.\n\n\n function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = void 0;\n\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n } // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n\n\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the end of both strings, then we are done\n\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n } // Performs the length of edit iteration. Is a bit fugly as this has to support the\n // sync and async mode which is never fun. Loops over execEditLength until a value\n // is produced.\n\n\n if (callback) {\n (function exec() {\n setTimeout(function () {\n // This should not happen, but we want to be safe.\n\n /* istanbul ignore next */\n if (editLength > maxEditLength) {\n return callback();\n }\n\n if (!execEditLength()) {\n exec();\n }\n }, 0);\n })();\n } else {\n while (editLength <= maxEditLength) {\n var ret = execEditLength();\n\n if (ret) {\n return ret;\n }\n }\n }\n },\n pushComponent: function pushComponent(components, added, removed) {\n var last = components[components.length - 1];\n\n if (last && last.added === added && last.removed === removed) {\n // We need to clone here as the component clone operation is just\n // as shallow array clone\n components[components.length - 1] = {\n count: last.count + 1,\n added: added,\n removed: removed\n };\n } else {\n components.push({\n count: 1,\n added: added,\n removed: removed\n });\n }\n },\n extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) {\n var newLen = newString.length,\n oldLen = oldString.length,\n newPos = basePath.newPos,\n oldPos = newPos - diagonalPath,\n commonCount = 0;\n\n while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) {\n newPos++;\n oldPos++;\n commonCount++;\n }\n\n if (commonCount) {\n basePath.components.push({\n count: commonCount\n });\n }\n\n basePath.newPos = newPos;\n return oldPos;\n },\n equals: function equals(left, right) {\n if (this.options.comparator) {\n return this.options.comparator(left, right);\n } else {\n return left === right || this.options.ignoreCase && left.toLowerCase() === right.toLowerCase();\n }\n },\n removeEmpty: function removeEmpty(array) {\n var ret = [];\n\n for (var i = 0; i < array.length; i++) {\n if (array[i]) {\n ret.push(array[i]);\n }\n }\n\n return ret;\n },\n castInput: function castInput(value) {\n return value;\n },\n tokenize: function tokenize(value) {\n return value.split('');\n },\n join: function join(chars) {\n return chars.join('');\n }\n };\n\n function buildValues(diff, components, newString, oldString, useLongestToken) {\n var componentPos = 0,\n componentLen = components.length,\n newPos = 0,\n oldPos = 0;\n\n for (; componentPos < componentLen; componentPos++) {\n var component = components[componentPos];\n\n if (!component.removed) {\n if (!component.added && useLongestToken) {\n var value = newString.slice(newPos, newPos + component.count);\n value = value.map(function (value, i) {\n var oldValue = oldString[oldPos + i];\n return oldValue.length > value.length ? oldValue : value;\n });\n component.value = diff.join(value);\n } else {\n component.value = diff.join(newString.slice(newPos, newPos + component.count));\n }\n\n newPos += component.count; // Common case\n\n if (!component.added) {\n oldPos += component.count;\n }\n } else {\n component.value = diff.join(oldString.slice(oldPos, oldPos + component.count));\n oldPos += component.count; // Reverse add and remove so removes are output first to match common convention\n // The diffing algorithm is tied to add then remove output and this is the simplest\n // route to get the desired output with minimal overhead.\n\n if (componentPos && components[componentPos - 1].added) {\n var tmp = components[componentPos - 1];\n components[componentPos - 1] = components[componentPos];\n components[componentPos] = tmp;\n }\n }\n } // Special case handle for when one terminal is ignored (i.e. whitespace).\n // For this case we merge the terminal into the prior string and drop the change.\n // This is only available for string mode.\n\n\n var lastComponent = components[componentLen - 1];\n\n if (componentLen > 1 && typeof lastComponent.value === 'string' && (lastComponent.added || lastComponent.removed) && diff.equals('', lastComponent.value)) {\n components[componentLen - 2].value += lastComponent.value;\n components.pop();\n }\n\n return components;\n }\n\n function clonePath(path) {\n return {\n newPos: path.newPos,\n components: path.components.slice(0)\n };\n }\n\n var characterDiff = new Diff();\n function diffChars(oldStr, newStr, options) {\n return characterDiff.diff(oldStr, newStr, options);\n }\n\n function generateOptions(options, defaults) {\n if (typeof options === 'function') {\n defaults.callback = options;\n } else if (options) {\n for (var name in options) {\n /* istanbul ignore else */\n if (options.hasOwnProperty(name)) {\n defaults[name] = options[name];\n }\n }\n }\n\n return defaults;\n }\n\n //\n // Ranges and exceptions:\n // Latin-1 Supplement, 0080–00FF\n // - U+00D7 × Multiplication sign\n // - U+00F7 ÷ Division sign\n // Latin Extended-A, 0100–017F\n // Latin Extended-B, 0180–024F\n // IPA Extensions, 0250–02AF\n // Spacing Modifier Letters, 02B0–02FF\n // - U+02C7 ˇ ˇ Caron\n // - U+02D8 ˘ ˘ Breve\n // - U+02D9 ˙ ˙ Dot Above\n // - U+02DA ˚ ˚ Ring Above\n // - U+02DB ˛ ˛ Ogonek\n // - U+02DC ˜ ˜ Small Tilde\n // - U+02DD ˝ ˝ Double Acute Accent\n // Latin Extended Additional, 1E00–1EFF\n\n var extendedWordChars = /^[A-Za-z\\xC0-\\u02C6\\u02C8-\\u02D7\\u02DE-\\u02FF\\u1E00-\\u1EFF]+$/;\n var reWhitespace = /\\S/;\n var wordDiff = new Diff();\n\n wordDiff.equals = function (left, right) {\n if (this.options.ignoreCase) {\n left = left.toLowerCase();\n right = right.toLowerCase();\n }\n\n return left === right || this.options.ignoreWhitespace && !reWhitespace.test(left) && !reWhitespace.test(right);\n };\n\n wordDiff.tokenize = function (value) {\n var tokens = value.split(/(\\s+|[()[\\]{}'\"]|\\b)/); // Join the boundary splits that we do not consider to be boundaries. This is primarily the extended Latin character set.\n\n for (var i = 0; i < tokens.length - 1; i++) {\n // If we have an empty string in the next field and we have only word chars before and after, merge\n if (!tokens[i + 1] && tokens[i + 2] && extendedWordChars.test(tokens[i]) && extendedWordChars.test(tokens[i + 2])) {\n tokens[i] += tokens[i + 2];\n tokens.splice(i + 1, 2);\n i--;\n }\n }\n\n return tokens;\n };\n\n function diffWords(oldStr, newStr, options) {\n options = generateOptions(options, {\n ignoreWhitespace: true\n });\n return wordDiff.diff(oldStr, newStr, options);\n }\n function diffWordsWithSpace(oldStr, newStr, options) {\n return wordDiff.diff(oldStr, newStr, options);\n }\n\n var lineDiff = new Diff();\n\n lineDiff.tokenize = function (value) {\n var retLines = [],\n linesAndNewlines = value.split(/(\\n|\\r\\n)/); // Ignore the final empty token that occurs if the string ends with a new line\n\n if (!linesAndNewlines[linesAndNewlines.length - 1]) {\n linesAndNewlines.pop();\n } // Merge the content and line separators into single tokens\n\n\n for (var i = 0; i < linesAndNewlines.length; i++) {\n var line = linesAndNewlines[i];\n\n if (i % 2 && !this.options.newlineIsToken) {\n retLines[retLines.length - 1] += line;\n } else {\n if (this.options.ignoreWhitespace) {\n line = line.trim();\n }\n\n retLines.push(line);\n }\n }\n\n return retLines;\n };\n\n function diffLines(oldStr, newStr, callback) {\n return lineDiff.diff(oldStr, newStr, callback);\n }\n function diffTrimmedLines(oldStr, newStr, callback) {\n var options = generateOptions(callback, {\n ignoreWhitespace: true\n });\n return lineDiff.diff(oldStr, newStr, options);\n }\n\n var sentenceDiff = new Diff();\n\n sentenceDiff.tokenize = function (value) {\n return value.split(/(\\S.+?[.!?])(?=\\s+|$)/);\n };\n\n function diffSentences(oldStr, newStr, callback) {\n return sentenceDiff.diff(oldStr, newStr, callback);\n }\n\n var cssDiff = new Diff();\n\n cssDiff.tokenize = function (value) {\n return value.split(/([{}:;,]|\\s+)/);\n };\n\n function diffCss(oldStr, newStr, callback) {\n return cssDiff.diff(oldStr, newStr, callback);\n }\n\n function _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n }\n\n function _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n }\n\n function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n }\n\n function _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n }\n\n function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n }\n\n var objectPrototypeToString = Object.prototype.toString;\n var jsonDiff = new Diff(); // Discriminate between two lines of pretty-printed, serialized JSON where one of them has a\n // dangling comma and the other doesn't. Turns out including the dangling comma yields the nicest output:\n\n jsonDiff.useLongestToken = true;\n jsonDiff.tokenize = lineDiff.tokenize;\n\n jsonDiff.castInput = function (value) {\n var _this$options = this.options,\n undefinedReplacement = _this$options.undefinedReplacement,\n _this$options$stringi = _this$options.stringifyReplacer,\n stringifyReplacer = _this$options$stringi === void 0 ? function (k, v) {\n return typeof v === 'undefined' ? undefinedReplacement : v;\n } : _this$options$stringi;\n return typeof value === 'string' ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, ' ');\n };\n\n jsonDiff.equals = function (left, right) {\n return Diff.prototype.equals.call(jsonDiff, left.replace(/,([\\r\\n])/g, '$1'), right.replace(/,([\\r\\n])/g, '$1'));\n };\n\n function diffJson(oldObj, newObj, options) {\n return jsonDiff.diff(oldObj, newObj, options);\n } // This function handles the presence of circular references by bailing out when encountering an\n // object that is already on the \"stack\" of items being processed. Accepts an optional replacer\n\n function canonicalize(obj, stack, replacementStack, replacer, key) {\n stack = stack || [];\n replacementStack = replacementStack || [];\n\n if (replacer) {\n obj = replacer(key, obj);\n }\n\n var i;\n\n for (i = 0; i < stack.length; i += 1) {\n if (stack[i] === obj) {\n return replacementStack[i];\n }\n }\n\n var canonicalizedObj;\n\n if ('[object Array]' === objectPrototypeToString.call(obj)) {\n stack.push(obj);\n canonicalizedObj = new Array(obj.length);\n replacementStack.push(canonicalizedObj);\n\n for (i = 0; i < obj.length; i += 1) {\n canonicalizedObj[i] = canonicalize(obj[i], stack, replacementStack, replacer, key);\n }\n\n stack.pop();\n replacementStack.pop();\n return canonicalizedObj;\n }\n\n if (obj && obj.toJSON) {\n obj = obj.toJSON();\n }\n\n if (_typeof(obj) === 'object' && obj !== null) {\n stack.push(obj);\n canonicalizedObj = {};\n replacementStack.push(canonicalizedObj);\n\n var sortedKeys = [],\n _key;\n\n for (_key in obj) {\n /* istanbul ignore else */\n if (obj.hasOwnProperty(_key)) {\n sortedKeys.push(_key);\n }\n }\n\n sortedKeys.sort();\n\n for (i = 0; i < sortedKeys.length; i += 1) {\n _key = sortedKeys[i];\n canonicalizedObj[_key] = canonicalize(obj[_key], stack, replacementStack, replacer, _key);\n }\n\n stack.pop();\n replacementStack.pop();\n } else {\n canonicalizedObj = obj;\n }\n\n return canonicalizedObj;\n }\n\n var arrayDiff = new Diff();\n\n arrayDiff.tokenize = function (value) {\n return value.slice();\n };\n\n arrayDiff.join = arrayDiff.removeEmpty = function (value) {\n return value;\n };\n\n function diffArrays(oldArr, newArr, callback) {\n return arrayDiff.diff(oldArr, newArr, callback);\n }\n\n function parsePatch(uniDiff) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var diffstr = uniDiff.split(/\\r\\n|[\\n\\v\\f\\r\\x85]/),\n delimiters = uniDiff.match(/\\r\\n|[\\n\\v\\f\\r\\x85]/g) || [],\n list = [],\n i = 0;\n\n function parseIndex() {\n var index = {};\n list.push(index); // Parse diff metadata\n\n while (i < diffstr.length) {\n var line = diffstr[i]; // File header found, end parsing diff metadata\n\n if (/^(\\-\\-\\-|\\+\\+\\+|@@)\\s/.test(line)) {\n break;\n } // Diff index\n\n\n var header = /^(?:Index:|diff(?: -r \\w+)+)\\s+(.+?)\\s*$/.exec(line);\n\n if (header) {\n index.index = header[1];\n }\n\n i++;\n } // Parse file headers if they are defined. Unified diff requires them, but\n // there's no technical issues to have an isolated hunk without file header\n\n\n parseFileHeader(index);\n parseFileHeader(index); // Parse hunks\n\n index.hunks = [];\n\n while (i < diffstr.length) {\n var _line = diffstr[i];\n\n if (/^(Index:|diff|\\-\\-\\-|\\+\\+\\+)\\s/.test(_line)) {\n break;\n } else if (/^@@/.test(_line)) {\n index.hunks.push(parseHunk());\n } else if (_line && options.strict) {\n // Ignore unexpected content unless in strict mode\n throw new Error('Unknown line ' + (i + 1) + ' ' + JSON.stringify(_line));\n } else {\n i++;\n }\n }\n } // Parses the --- and +++ headers, if none are found, no lines\n // are consumed.\n\n\n function parseFileHeader(index) {\n var fileHeader = /^(---|\\+\\+\\+)\\s+(.*)$/.exec(diffstr[i]);\n\n if (fileHeader) {\n var keyPrefix = fileHeader[1] === '---' ? 'old' : 'new';\n var data = fileHeader[2].split('\\t', 2);\n var fileName = data[0].replace(/\\\\\\\\/g, '\\\\');\n\n if (/^\".*\"$/.test(fileName)) {\n fileName = fileName.substr(1, fileName.length - 2);\n }\n\n index[keyPrefix + 'FileName'] = fileName;\n index[keyPrefix + 'Header'] = (data[1] || '').trim();\n i++;\n }\n } // Parses a hunk\n // This assumes that we are at the start of a hunk.\n\n\n function parseHunk() {\n var chunkHeaderIndex = i,\n chunkHeaderLine = diffstr[i++],\n chunkHeader = chunkHeaderLine.split(/@@ -(\\d+)(?:,(\\d+))? \\+(\\d+)(?:,(\\d+))? @@/);\n var hunk = {\n oldStart: +chunkHeader[1],\n oldLines: +chunkHeader[2] || 1,\n newStart: +chunkHeader[3],\n newLines: +chunkHeader[4] || 1,\n lines: [],\n linedelimiters: []\n };\n var addCount = 0,\n removeCount = 0;\n\n for (; i < diffstr.length; i++) {\n // Lines starting with '---' could be mistaken for the \"remove line\" operation\n // But they could be the header for the next file. Therefore prune such cases out.\n if (diffstr[i].indexOf('--- ') === 0 && i + 2 < diffstr.length && diffstr[i + 1].indexOf('+++ ') === 0 && diffstr[i + 2].indexOf('@@') === 0) {\n break;\n }\n\n var operation = diffstr[i].length == 0 && i != diffstr.length - 1 ? ' ' : diffstr[i][0];\n\n if (operation === '+' || operation === '-' || operation === ' ' || operation === '\\\\') {\n hunk.lines.push(diffstr[i]);\n hunk.linedelimiters.push(delimiters[i] || '\\n');\n\n if (operation === '+') {\n addCount++;\n } else if (operation === '-') {\n removeCount++;\n } else if (operation === ' ') {\n addCount++;\n removeCount++;\n }\n } else {\n break;\n }\n } // Handle the empty block count case\n\n\n if (!addCount && hunk.newLines === 1) {\n hunk.newLines = 0;\n }\n\n if (!removeCount && hunk.oldLines === 1) {\n hunk.oldLines = 0;\n } // Perform optional sanity checking\n\n\n if (options.strict) {\n if (addCount !== hunk.newLines) {\n throw new Error('Added line count did not match for hunk at line ' + (chunkHeaderIndex + 1));\n }\n\n if (removeCount !== hunk.oldLines) {\n throw new Error('Removed line count did not match for hunk at line ' + (chunkHeaderIndex + 1));\n }\n }\n\n return hunk;\n }\n\n while (i < diffstr.length) {\n parseIndex();\n }\n\n return list;\n }\n\n // Iterator that traverses in the range of [min, max], stepping\n // by distance from a given start position. I.e. for [0, 4], with\n // start of 2, this will iterate 2, 3, 1, 4, 0.\n function distanceIterator (start, minLine, maxLine) {\n var wantForward = true,\n backwardExhausted = false,\n forwardExhausted = false,\n localOffset = 1;\n return function iterator() {\n if (wantForward && !forwardExhausted) {\n if (backwardExhausted) {\n localOffset++;\n } else {\n wantForward = false;\n } // Check if trying to fit beyond text length, and if not, check it fits\n // after offset location (or desired location on first iteration)\n\n\n if (start + localOffset <= maxLine) {\n return localOffset;\n }\n\n forwardExhausted = true;\n }\n\n if (!backwardExhausted) {\n if (!forwardExhausted) {\n wantForward = true;\n } // Check if trying to fit before text beginning, and if not, check it fits\n // before offset location\n\n\n if (minLine <= start - localOffset) {\n return -localOffset++;\n }\n\n backwardExhausted = true;\n return iterator();\n } // We tried to fit hunk before text beginning and beyond text length, then\n // hunk can't fit on the text. Return undefined\n\n };\n }\n\n function applyPatch(source, uniDiff) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (typeof uniDiff === 'string') {\n uniDiff = parsePatch(uniDiff);\n }\n\n if (Array.isArray(uniDiff)) {\n if (uniDiff.length > 1) {\n throw new Error('applyPatch only works with a single input.');\n }\n\n uniDiff = uniDiff[0];\n } // Apply the diff to the input\n\n\n var lines = source.split(/\\r\\n|[\\n\\v\\f\\r\\x85]/),\n delimiters = source.match(/\\r\\n|[\\n\\v\\f\\r\\x85]/g) || [],\n hunks = uniDiff.hunks,\n compareLine = options.compareLine || function (lineNumber, line, operation, patchContent) {\n return line === patchContent;\n },\n errorCount = 0,\n fuzzFactor = options.fuzzFactor || 0,\n minLine = 0,\n offset = 0,\n removeEOFNL,\n addEOFNL;\n /**\n * Checks if the hunk exactly fits on the provided location\n */\n\n\n function hunkFits(hunk, toPos) {\n for (var j = 0; j < hunk.lines.length; j++) {\n var line = hunk.lines[j],\n operation = line.length > 0 ? line[0] : ' ',\n content = line.length > 0 ? line.substr(1) : line;\n\n if (operation === ' ' || operation === '-') {\n // Context sanity check\n if (!compareLine(toPos + 1, lines[toPos], operation, content)) {\n errorCount++;\n\n if (errorCount > fuzzFactor) {\n return false;\n }\n }\n\n toPos++;\n }\n }\n\n return true;\n } // Search best fit offsets for each hunk based on the previous ones\n\n\n for (var i = 0; i < hunks.length; i++) {\n var hunk = hunks[i],\n maxLine = lines.length - hunk.oldLines,\n localOffset = 0,\n toPos = offset + hunk.oldStart - 1;\n var iterator = distanceIterator(toPos, minLine, maxLine);\n\n for (; localOffset !== undefined; localOffset = iterator()) {\n if (hunkFits(hunk, toPos + localOffset)) {\n hunk.offset = offset += localOffset;\n break;\n }\n }\n\n if (localOffset === undefined) {\n return false;\n } // Set lower text limit to end of the current hunk, so next ones don't try\n // to fit over already patched text\n\n\n minLine = hunk.offset + hunk.oldStart + hunk.oldLines;\n } // Apply patch hunks\n\n\n var diffOffset = 0;\n\n for (var _i = 0; _i < hunks.length; _i++) {\n var _hunk = hunks[_i],\n _toPos = _hunk.oldStart + _hunk.offset + diffOffset - 1;\n\n diffOffset += _hunk.newLines - _hunk.oldLines;\n\n if (_toPos < 0) {\n // Creating a new file\n _toPos = 0;\n }\n\n for (var j = 0; j < _hunk.lines.length; j++) {\n var line = _hunk.lines[j],\n operation = line.length > 0 ? line[0] : ' ',\n content = line.length > 0 ? line.substr(1) : line,\n delimiter = _hunk.linedelimiters[j];\n\n if (operation === ' ') {\n _toPos++;\n } else if (operation === '-') {\n lines.splice(_toPos, 1);\n delimiters.splice(_toPos, 1);\n /* istanbul ignore else */\n } else if (operation === '+') {\n lines.splice(_toPos, 0, content);\n delimiters.splice(_toPos, 0, delimiter);\n _toPos++;\n } else if (operation === '\\\\') {\n var previousOperation = _hunk.lines[j - 1] ? _hunk.lines[j - 1][0] : null;\n\n if (previousOperation === '+') {\n removeEOFNL = true;\n } else if (previousOperation === '-') {\n addEOFNL = true;\n }\n }\n }\n } // Handle EOFNL insertion/removal\n\n\n if (removeEOFNL) {\n while (!lines[lines.length - 1]) {\n lines.pop();\n delimiters.pop();\n }\n } else if (addEOFNL) {\n lines.push('');\n delimiters.push('\\n');\n }\n\n for (var _k = 0; _k < lines.length - 1; _k++) {\n lines[_k] = lines[_k] + delimiters[_k];\n }\n\n return lines.join('');\n } // Wrapper that supports multiple file patches via callbacks.\n\n function applyPatches(uniDiff, options) {\n if (typeof uniDiff === 'string') {\n uniDiff = parsePatch(uniDiff);\n }\n\n var currentIndex = 0;\n\n function processIndex() {\n var index = uniDiff[currentIndex++];\n\n if (!index) {\n return options.complete();\n }\n\n options.loadFile(index, function (err, data) {\n if (err) {\n return options.complete(err);\n }\n\n var updatedContent = applyPatch(data, index, options);\n options.patched(index, updatedContent, function (err) {\n if (err) {\n return options.complete(err);\n }\n\n processIndex();\n });\n });\n }\n\n processIndex();\n }\n\n function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {\n if (!options) {\n options = {};\n }\n\n if (typeof options.context === 'undefined') {\n options.context = 4;\n }\n\n var diff = diffLines(oldStr, newStr, options);\n diff.push({\n value: '',\n lines: []\n }); // Append an empty value to make cleanup easier\n\n function contextLines(lines) {\n return lines.map(function (entry) {\n return ' ' + entry;\n });\n }\n\n var hunks = [];\n var oldRangeStart = 0,\n newRangeStart = 0,\n curRange = [],\n oldLine = 1,\n newLine = 1;\n\n var _loop = function _loop(i) {\n var current = diff[i],\n lines = current.lines || current.value.replace(/\\n$/, '').split('\\n');\n current.lines = lines;\n\n if (current.added || current.removed) {\n var _curRange;\n\n // If we have previous context, start with that\n if (!oldRangeStart) {\n var prev = diff[i - 1];\n oldRangeStart = oldLine;\n newRangeStart = newLine;\n\n if (prev) {\n curRange = options.context > 0 ? contextLines(prev.lines.slice(-options.context)) : [];\n oldRangeStart -= curRange.length;\n newRangeStart -= curRange.length;\n }\n } // Output our changes\n\n\n (_curRange = curRange).push.apply(_curRange, _toConsumableArray(lines.map(function (entry) {\n return (current.added ? '+' : '-') + entry;\n }))); // Track the updated file position\n\n\n if (current.added) {\n newLine += lines.length;\n } else {\n oldLine += lines.length;\n }\n } else {\n // Identical context lines. Track line changes\n if (oldRangeStart) {\n // Close out any changes that have been output (or join overlapping)\n if (lines.length <= options.context * 2 && i < diff.length - 2) {\n var _curRange2;\n\n // Overlapping\n (_curRange2 = curRange).push.apply(_curRange2, _toConsumableArray(contextLines(lines)));\n } else {\n var _curRange3;\n\n // end the range and output\n var contextSize = Math.min(lines.length, options.context);\n\n (_curRange3 = curRange).push.apply(_curRange3, _toConsumableArray(contextLines(lines.slice(0, contextSize))));\n\n var hunk = {\n oldStart: oldRangeStart,\n oldLines: oldLine - oldRangeStart + contextSize,\n newStart: newRangeStart,\n newLines: newLine - newRangeStart + contextSize,\n lines: curRange\n };\n\n if (i >= diff.length - 2 && lines.length <= options.context) {\n // EOF is inside this hunk\n var oldEOFNewline = /\\n$/.test(oldStr);\n var newEOFNewline = /\\n$/.test(newStr);\n var noNlBeforeAdds = lines.length == 0 && curRange.length > hunk.oldLines;\n\n if (!oldEOFNewline && noNlBeforeAdds) {\n // special case: old has no eol and no trailing context; no-nl can end up before adds\n curRange.splice(hunk.oldLines, 0, '\\\\ No newline at end of file');\n }\n\n if (!oldEOFNewline && !noNlBeforeAdds || !newEOFNewline) {\n curRange.push('\\\\ No newline at end of file');\n }\n }\n\n hunks.push(hunk);\n oldRangeStart = 0;\n newRangeStart = 0;\n curRange = [];\n }\n }\n\n oldLine += lines.length;\n newLine += lines.length;\n }\n };\n\n for (var i = 0; i < diff.length; i++) {\n _loop(i);\n }\n\n return {\n oldFileName: oldFileName,\n newFileName: newFileName,\n oldHeader: oldHeader,\n newHeader: newHeader,\n hunks: hunks\n };\n }\n function createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {\n var diff = structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options);\n var ret = [];\n\n if (oldFileName == newFileName) {\n ret.push('Index: ' + oldFileName);\n }\n\n ret.push('===================================================================');\n ret.push('--- ' + diff.oldFileName + (typeof diff.oldHeader === 'undefined' ? '' : '\\t' + diff.oldHeader));\n ret.push('+++ ' + diff.newFileName + (typeof diff.newHeader === 'undefined' ? '' : '\\t' + diff.newHeader));\n\n for (var i = 0; i < diff.hunks.length; i++) {\n var hunk = diff.hunks[i];\n ret.push('@@ -' + hunk.oldStart + ',' + hunk.oldLines + ' +' + hunk.newStart + ',' + hunk.newLines + ' @@');\n ret.push.apply(ret, hunk.lines);\n }\n\n return ret.join('\\n') + '\\n';\n }\n function createPatch(fileName, oldStr, newStr, oldHeader, newHeader, options) {\n return createTwoFilesPatch(fileName, fileName, oldStr, newStr, oldHeader, newHeader, options);\n }\n\n function arrayEqual(a, b) {\n if (a.length !== b.length) {\n return false;\n }\n\n return arrayStartsWith(a, b);\n }\n function arrayStartsWith(array, start) {\n if (start.length > array.length) {\n return false;\n }\n\n for (var i = 0; i < start.length; i++) {\n if (start[i] !== array[i]) {\n return false;\n }\n }\n\n return true;\n }\n\n function calcLineCount(hunk) {\n var _calcOldNewLineCount = calcOldNewLineCount(hunk.lines),\n oldLines = _calcOldNewLineCount.oldLines,\n newLines = _calcOldNewLineCount.newLines;\n\n if (oldLines !== undefined) {\n hunk.oldLines = oldLines;\n } else {\n delete hunk.oldLines;\n }\n\n if (newLines !== undefined) {\n hunk.newLines = newLines;\n } else {\n delete hunk.newLines;\n }\n }\n function merge(mine, theirs, base) {\n mine = loadPatch(mine, base);\n theirs = loadPatch(theirs, base);\n var ret = {}; // For index we just let it pass through as it doesn't have any necessary meaning.\n // Leaving sanity checks on this to the API consumer that may know more about the\n // meaning in their own context.\n\n if (mine.index || theirs.index) {\n ret.index = mine.index || theirs.index;\n }\n\n if (mine.newFileName || theirs.newFileName) {\n if (!fileNameChanged(mine)) {\n // No header or no change in ours, use theirs (and ours if theirs does not exist)\n ret.oldFileName = theirs.oldFileName || mine.oldFileName;\n ret.newFileName = theirs.newFileName || mine.newFileName;\n ret.oldHeader = theirs.oldHeader || mine.oldHeader;\n ret.newHeader = theirs.newHeader || mine.newHeader;\n } else if (!fileNameChanged(theirs)) {\n // No header or no change in theirs, use ours\n ret.oldFileName = mine.oldFileName;\n ret.newFileName = mine.newFileName;\n ret.oldHeader = mine.oldHeader;\n ret.newHeader = mine.newHeader;\n } else {\n // Both changed... figure it out\n ret.oldFileName = selectField(ret, mine.oldFileName, theirs.oldFileName);\n ret.newFileName = selectField(ret, mine.newFileName, theirs.newFileName);\n ret.oldHeader = selectField(ret, mine.oldHeader, theirs.oldHeader);\n ret.newHeader = selectField(ret, mine.newHeader, theirs.newHeader);\n }\n }\n\n ret.hunks = [];\n var mineIndex = 0,\n theirsIndex = 0,\n mineOffset = 0,\n theirsOffset = 0;\n\n while (mineIndex < mine.hunks.length || theirsIndex < theirs.hunks.length) {\n var mineCurrent = mine.hunks[mineIndex] || {\n oldStart: Infinity\n },\n theirsCurrent = theirs.hunks[theirsIndex] || {\n oldStart: Infinity\n };\n\n if (hunkBefore(mineCurrent, theirsCurrent)) {\n // This patch does not overlap with any of the others, yay.\n ret.hunks.push(cloneHunk(mineCurrent, mineOffset));\n mineIndex++;\n theirsOffset += mineCurrent.newLines - mineCurrent.oldLines;\n } else if (hunkBefore(theirsCurrent, mineCurrent)) {\n // This patch does not overlap with any of the others, yay.\n ret.hunks.push(cloneHunk(theirsCurrent, theirsOffset));\n theirsIndex++;\n mineOffset += theirsCurrent.newLines - theirsCurrent.oldLines;\n } else {\n // Overlap, merge as best we can\n var mergedHunk = {\n oldStart: Math.min(mineCurrent.oldStart, theirsCurrent.oldStart),\n oldLines: 0,\n newStart: Math.min(mineCurrent.newStart + mineOffset, theirsCurrent.oldStart + theirsOffset),\n newLines: 0,\n lines: []\n };\n mergeLines(mergedHunk, mineCurrent.oldStart, mineCurrent.lines, theirsCurrent.oldStart, theirsCurrent.lines);\n theirsIndex++;\n mineIndex++;\n ret.hunks.push(mergedHunk);\n }\n }\n\n return ret;\n }\n\n function loadPatch(param, base) {\n if (typeof param === 'string') {\n if (/^@@/m.test(param) || /^Index:/m.test(param)) {\n return parsePatch(param)[0];\n }\n\n if (!base) {\n throw new Error('Must provide a base reference or pass in a patch');\n }\n\n return structuredPatch(undefined, undefined, base, param);\n }\n\n return param;\n }\n\n function fileNameChanged(patch) {\n return patch.newFileName && patch.newFileName !== patch.oldFileName;\n }\n\n function selectField(index, mine, theirs) {\n if (mine === theirs) {\n return mine;\n } else {\n index.conflict = true;\n return {\n mine: mine,\n theirs: theirs\n };\n }\n }\n\n function hunkBefore(test, check) {\n return test.oldStart < check.oldStart && test.oldStart + test.oldLines < check.oldStart;\n }\n\n function cloneHunk(hunk, offset) {\n return {\n oldStart: hunk.oldStart,\n oldLines: hunk.oldLines,\n newStart: hunk.newStart + offset,\n newLines: hunk.newLines,\n lines: hunk.lines\n };\n }\n\n function mergeLines(hunk, mineOffset, mineLines, theirOffset, theirLines) {\n // This will generally result in a conflicted hunk, but there are cases where the context\n // is the only overlap where we can successfully merge the content here.\n var mine = {\n offset: mineOffset,\n lines: mineLines,\n index: 0\n },\n their = {\n offset: theirOffset,\n lines: theirLines,\n index: 0\n }; // Handle any leading content\n\n insertLeading(hunk, mine, their);\n insertLeading(hunk, their, mine); // Now in the overlap content. Scan through and select the best changes from each.\n\n while (mine.index < mine.lines.length && their.index < their.lines.length) {\n var mineCurrent = mine.lines[mine.index],\n theirCurrent = their.lines[their.index];\n\n if ((mineCurrent[0] === '-' || mineCurrent[0] === '+') && (theirCurrent[0] === '-' || theirCurrent[0] === '+')) {\n // Both modified ...\n mutualChange(hunk, mine, their);\n } else if (mineCurrent[0] === '+' && theirCurrent[0] === ' ') {\n var _hunk$lines;\n\n // Mine inserted\n (_hunk$lines = hunk.lines).push.apply(_hunk$lines, _toConsumableArray(collectChange(mine)));\n } else if (theirCurrent[0] === '+' && mineCurrent[0] === ' ') {\n var _hunk$lines2;\n\n // Theirs inserted\n (_hunk$lines2 = hunk.lines).push.apply(_hunk$lines2, _toConsumableArray(collectChange(their)));\n } else if (mineCurrent[0] === '-' && theirCurrent[0] === ' ') {\n // Mine removed or edited\n removal(hunk, mine, their);\n } else if (theirCurrent[0] === '-' && mineCurrent[0] === ' ') {\n // Their removed or edited\n removal(hunk, their, mine, true);\n } else if (mineCurrent === theirCurrent) {\n // Context identity\n hunk.lines.push(mineCurrent);\n mine.index++;\n their.index++;\n } else {\n // Context mismatch\n conflict(hunk, collectChange(mine), collectChange(their));\n }\n } // Now push anything that may be remaining\n\n\n insertTrailing(hunk, mine);\n insertTrailing(hunk, their);\n calcLineCount(hunk);\n }\n\n function mutualChange(hunk, mine, their) {\n var myChanges = collectChange(mine),\n theirChanges = collectChange(their);\n\n if (allRemoves(myChanges) && allRemoves(theirChanges)) {\n // Special case for remove changes that are supersets of one another\n if (arrayStartsWith(myChanges, theirChanges) && skipRemoveSuperset(their, myChanges, myChanges.length - theirChanges.length)) {\n var _hunk$lines3;\n\n (_hunk$lines3 = hunk.lines).push.apply(_hunk$lines3, _toConsumableArray(myChanges));\n\n return;\n } else if (arrayStartsWith(theirChanges, myChanges) && skipRemoveSuperset(mine, theirChanges, theirChanges.length - myChanges.length)) {\n var _hunk$lines4;\n\n (_hunk$lines4 = hunk.lines).push.apply(_hunk$lines4, _toConsumableArray(theirChanges));\n\n return;\n }\n } else if (arrayEqual(myChanges, theirChanges)) {\n var _hunk$lines5;\n\n (_hunk$lines5 = hunk.lines).push.apply(_hunk$lines5, _toConsumableArray(myChanges));\n\n return;\n }\n\n conflict(hunk, myChanges, theirChanges);\n }\n\n function removal(hunk, mine, their, swap) {\n var myChanges = collectChange(mine),\n theirChanges = collectContext(their, myChanges);\n\n if (theirChanges.merged) {\n var _hunk$lines6;\n\n (_hunk$lines6 = hunk.lines).push.apply(_hunk$lines6, _toConsumableArray(theirChanges.merged));\n } else {\n conflict(hunk, swap ? theirChanges : myChanges, swap ? myChanges : theirChanges);\n }\n }\n\n function conflict(hunk, mine, their) {\n hunk.conflict = true;\n hunk.lines.push({\n conflict: true,\n mine: mine,\n theirs: their\n });\n }\n\n function insertLeading(hunk, insert, their) {\n while (insert.offset < their.offset && insert.index < insert.lines.length) {\n var line = insert.lines[insert.index++];\n hunk.lines.push(line);\n insert.offset++;\n }\n }\n\n function insertTrailing(hunk, insert) {\n while (insert.index < insert.lines.length) {\n var line = insert.lines[insert.index++];\n hunk.lines.push(line);\n }\n }\n\n function collectChange(state) {\n var ret = [],\n operation = state.lines[state.index][0];\n\n while (state.index < state.lines.length) {\n var line = state.lines[state.index]; // Group additions that are immediately after subtractions and treat them as one \"atomic\" modify change.\n\n if (operation === '-' && line[0] === '+') {\n operation = '+';\n }\n\n if (operation === line[0]) {\n ret.push(line);\n state.index++;\n } else {\n break;\n }\n }\n\n return ret;\n }\n\n function collectContext(state, matchChanges) {\n var changes = [],\n merged = [],\n matchIndex = 0,\n contextChanges = false,\n conflicted = false;\n\n while (matchIndex < matchChanges.length && state.index < state.lines.length) {\n var change = state.lines[state.index],\n match = matchChanges[matchIndex]; // Once we've hit our add, then we are done\n\n if (match[0] === '+') {\n break;\n }\n\n contextChanges = contextChanges || change[0] !== ' ';\n merged.push(match);\n matchIndex++; // Consume any additions in the other block as a conflict to attempt\n // to pull in the remaining context after this\n\n if (change[0] === '+') {\n conflicted = true;\n\n while (change[0] === '+') {\n changes.push(change);\n change = state.lines[++state.index];\n }\n }\n\n if (match.substr(1) === change.substr(1)) {\n changes.push(change);\n state.index++;\n } else {\n conflicted = true;\n }\n }\n\n if ((matchChanges[matchIndex] || '')[0] === '+' && contextChanges) {\n conflicted = true;\n }\n\n if (conflicted) {\n return changes;\n }\n\n while (matchIndex < matchChanges.length) {\n merged.push(matchChanges[matchIndex++]);\n }\n\n return {\n merged: merged,\n changes: changes\n };\n }\n\n function allRemoves(changes) {\n return changes.reduce(function (prev, change) {\n return prev && change[0] === '-';\n }, true);\n }\n\n function skipRemoveSuperset(state, removeChanges, delta) {\n for (var i = 0; i < delta; i++) {\n var changeContent = removeChanges[removeChanges.length - delta + i].substr(1);\n\n if (state.lines[state.index + i] !== ' ' + changeContent) {\n return false;\n }\n }\n\n state.index += delta;\n return true;\n }\n\n function calcOldNewLineCount(lines) {\n var oldLines = 0;\n var newLines = 0;\n lines.forEach(function (line) {\n if (typeof line !== 'string') {\n var myCount = calcOldNewLineCount(line.mine);\n var theirCount = calcOldNewLineCount(line.theirs);\n\n if (oldLines !== undefined) {\n if (myCount.oldLines === theirCount.oldLines) {\n oldLines += myCount.oldLines;\n } else {\n oldLines = undefined;\n }\n }\n\n if (newLines !== undefined) {\n if (myCount.newLines === theirCount.newLines) {\n newLines += myCount.newLines;\n } else {\n newLines = undefined;\n }\n }\n } else {\n if (newLines !== undefined && (line[0] === '+' || line[0] === ' ')) {\n newLines++;\n }\n\n if (oldLines !== undefined && (line[0] === '-' || line[0] === ' ')) {\n oldLines++;\n }\n }\n });\n return {\n oldLines: oldLines,\n newLines: newLines\n };\n }\n\n // See: http://code.google.com/p/google-diff-match-patch/wiki/API\n function convertChangesToDMP(changes) {\n var ret = [],\n change,\n operation;\n\n for (var i = 0; i < changes.length; i++) {\n change = changes[i];\n\n if (change.added) {\n operation = 1;\n } else if (change.removed) {\n operation = -1;\n } else {\n operation = 0;\n }\n\n ret.push([operation, change.value]);\n }\n\n return ret;\n }\n\n function convertChangesToXML(changes) {\n var ret = [];\n\n for (var i = 0; i < changes.length; i++) {\n var change = changes[i];\n\n if (change.added) {\n ret.push('');\n } else if (change.removed) {\n ret.push('');\n }\n\n ret.push(escapeHTML(change.value));\n\n if (change.added) {\n ret.push('');\n } else if (change.removed) {\n ret.push('');\n }\n }\n\n return ret.join('');\n }\n\n function escapeHTML(s) {\n var n = s;\n n = n.replace(/&/g, '&');\n n = n.replace(//g, '>');\n n = n.replace(/\"/g, '"');\n return n;\n }\n\n /* See LICENSE file for terms of use */\n\n exports.Diff = Diff;\n exports.diffChars = diffChars;\n exports.diffWords = diffWords;\n exports.diffWordsWithSpace = diffWordsWithSpace;\n exports.diffLines = diffLines;\n exports.diffTrimmedLines = diffTrimmedLines;\n exports.diffSentences = diffSentences;\n exports.diffCss = diffCss;\n exports.diffJson = diffJson;\n exports.diffArrays = diffArrays;\n exports.structuredPatch = structuredPatch;\n exports.createTwoFilesPatch = createTwoFilesPatch;\n exports.createPatch = createPatch;\n exports.applyPatch = applyPatch;\n exports.applyPatches = applyPatches;\n exports.parsePatch = parsePatch;\n exports.merge = merge;\n exports.convertChangesToDMP = convertChangesToDMP;\n exports.convertChangesToXML = convertChangesToXML;\n exports.canonicalize = canonicalize;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","module.exports = __webpack_public_path__ + \"img/linode.72ae9a55.svg\";","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.rows.length)?_c('div',{staticClass:\"grid\"},_vm._l((_vm.rows),function(r,idx){return _c(_vm.asLink ? 'a' : 'div',{key:_vm.get(r, _vm.keyField),tag:\"div\",staticClass:\"item\",class:{\n 'has-description': !!_vm.get(r, _vm.descriptionField),\n 'has-side-label': !!_vm.get(r, _vm.sideLabelField), [_vm.colorFor(r, idx)]: true, disabled: _vm.get(r, _vm.disabledField) === true\n },attrs:{\"href\":_vm.asLink ? _vm.get(r, _vm.linkField) : null,\"target\":_vm.get(r, _vm.targetField),\"rel\":_vm.rel,\"data-testid\":_vm.componentTestid + '-' + idx},on:{\"click\":function($event){return _vm.select(r, idx)}}},[_c('div',{staticClass:\"side-label\",class:{'indicator': true }}),(r.deploysOnWindows)?_c('div',[_c('label',{staticClass:\"deploys-os-label\"},[_vm._v(\" \"+_vm._s(_vm.t('catalog.charts.deploysOnWindows'))+\" \")])]):_vm._e(),(r.windowsIncompatible)?_c('div',[_c('label',{staticClass:\"os-incompatible-label\"},[_vm._v(\" \"+_vm._s(_vm.t('catalog.charts.windowsIncompatible'))+\" \")])]):_vm._e(),(_vm.get(r, _vm.sideLabelField))?_c('div',{staticClass:\"side-label\",class:{'indicator': false }},[_c('label',[_vm._v(_vm._s(_vm.get(r, _vm.sideLabelField)))])]):_vm._e(),_c('div',{staticClass:\"logo\"},[(r.iconClass)?_c('i',{class:r.iconClass}):_c('LazyImage',{attrs:{\"src\":_vm.get(r, _vm.iconField)}})],1),_c('h4',{staticClass:\"name\"},[_vm._v(\" \"+_vm._s(_vm.get(r, _vm.nameField))+\" \")]),(_vm.get(r, _vm.descriptionField))?_c('div',{staticClass:\"description\"},[_vm._v(\" \"+_vm._s(_vm.get(r, _vm.descriptionField))+\" \")]):_vm._e()])}),1):_c('div',{staticClass:\"m-50 text-center\"},[_c('h1',{directives:[{name:\"t\",rawName:\"v-t\",value:(_vm.noDataKey),expression:\"noDataKey\"}]})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('img',_vm._b({ref:\"img\",attrs:{\"src\":_vm.initialSrc}},'img',_vm.$attrs,false))\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./LazyImage.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./LazyImage.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./LazyImage.vue?vue&type=template&id=a0c51996\"\nimport script from \"./LazyImage.vue?vue&type=script&lang=js\"\nexport * from \"./LazyImage.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectIconGrid.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectIconGrid.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SelectIconGrid.vue?vue&type=template&id=65ba4ad5&scoped=true\"\nimport script from \"./SelectIconGrid.vue?vue&type=script&lang=js\"\nexport * from \"./SelectIconGrid.vue?vue&type=script&lang=js\"\nimport style0 from \"./SelectIconGrid.vue?vue&type=style&index=0&id=65ba4ad5&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"65ba4ad5\",\n null\n \n)\n\nexport default component.exports","/*\nLanguage: PostgreSQL and PL/pgSQL\nAuthor: Egor Rogov (e.rogov@postgrespro.ru)\nWebsite: https://www.postgresql.org/docs/11/sql.html\nDescription:\n This language incorporates both PostgreSQL SQL dialect and PL/pgSQL language.\n It is based on PostgreSQL version 11. Some notes:\n - Text in double-dollar-strings is _always_ interpreted as some programming code. Text\n in ordinary quotes is _never_ interpreted that way and highlighted just as a string.\n - There are quite a bit \"special cases\". That's because many keywords are not strictly\n they are keywords in some contexts and ordinary identifiers in others. Only some\n of such cases are handled; you still can get some of your identifiers highlighted\n wrong way.\n - Function names deliberately are not highlighted. There is no way to tell function\n call from other constructs, hence we can't highlight _all_ function names. And\n some names highlighted while others not looks ugly.\n*/\n\nfunction pgsql(hljs) {\n const COMMENT_MODE = hljs.COMMENT('--', '$');\n const UNQUOTED_IDENT = '[a-zA-Z_][a-zA-Z_0-9$]*';\n const DOLLAR_STRING = '\\\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\\\$';\n const LABEL = '<<\\\\s*' + UNQUOTED_IDENT + '\\\\s*>>';\n\n const SQL_KW =\n // https://www.postgresql.org/docs/11/static/sql-keywords-appendix.html\n // https://www.postgresql.org/docs/11/static/sql-commands.html\n // SQL commands (starting words)\n 'ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE '\n + 'DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY '\n + 'PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW '\n + 'START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES '\n // SQL commands (others)\n + 'AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN '\n + 'WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS '\n + 'FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM '\n + 'TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS '\n + 'METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION '\n + 'INDEX PROCEDURE ASSERTION '\n // additional reserved key words\n + 'ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK '\n + 'COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS '\n + 'DEFERRABLE RANGE '\n + 'DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING '\n + 'ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT '\n + 'NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY '\n + 'REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN '\n + 'TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH '\n // some of non-reserved (which are used in clauses or as PL/pgSQL keyword)\n + 'BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN '\n + 'BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT '\n + 'TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN '\n + 'EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH '\n + 'REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL '\n + 'ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED '\n + 'INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 '\n + 'INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE '\n + 'ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES '\n + 'RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS '\n + 'UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF '\n // some parameters of VACUUM/ANALYZE/EXPLAIN\n + 'FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING '\n //\n + 'RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED '\n + 'OF NOTHING NONE EXCLUDE ATTRIBUTE '\n // from GRANT (not keywords actually)\n + 'USAGE ROUTINES '\n // actually literals, but look better this way (due to IS TRUE, IS FALSE, ISNULL etc)\n + 'TRUE FALSE NAN INFINITY ';\n\n const ROLE_ATTRS = // only those not in keywrods already\n 'SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT '\n + 'LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ';\n\n const PLPGSQL_KW =\n 'ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS '\n + 'STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT '\n + 'OPEN ';\n\n const TYPES =\n // https://www.postgresql.org/docs/11/static/datatype.html\n 'BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR '\n + 'CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 '\n + 'MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 '\n + 'SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 '\n + 'TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR '\n + 'INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 '\n // pseudotypes\n + 'ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL '\n + 'RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR '\n // spec. type\n + 'NAME '\n // OID-types\n + 'OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 '\n + 'REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ';// +\n\n const TYPES_RE =\n TYPES.trim()\n .split(' ')\n .map(function(val) { return val.split('|')[0]; })\n .join('|');\n\n const SQL_BI =\n 'CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP '\n + 'CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ';\n\n const PLPGSQL_BI =\n 'FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 '\n + 'TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 '\n // get diagnostics\n + 'ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME '\n + 'PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 '\n + 'PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ';\n\n const PLPGSQL_EXCEPTIONS =\n // exceptions https://www.postgresql.org/docs/current/static/errcodes-appendix.html\n 'SQLSTATE SQLERRM|10 '\n + 'SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING '\n + 'NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED '\n + 'STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED '\n + 'SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE '\n + 'SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION '\n + 'TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED '\n + 'INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR '\n + 'INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION '\n + 'STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION '\n + 'DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW '\n + 'DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW '\n + 'INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION '\n + 'INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION '\n + 'INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST '\n + 'INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE '\n + 'NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE '\n + 'INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE '\n + 'INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT '\n + 'INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH '\n + 'NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE '\n + 'SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION '\n + 'SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING '\n + 'FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION '\n + 'BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT '\n + 'INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION '\n + 'INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION '\n + 'UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE '\n + 'INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE '\n + 'HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION '\n + 'INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION '\n + 'NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION '\n + 'SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION '\n + 'IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME '\n + 'TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD '\n + 'DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST '\n + 'INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT '\n + 'MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED '\n + 'READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION '\n + 'CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED '\n + 'PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED '\n + 'EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED '\n + 'TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED '\n + 'SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME '\n + 'INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION '\n + 'SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED '\n + 'SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE '\n + 'GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME '\n + 'NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH '\n + 'INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN '\n + 'UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT '\n + 'DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION '\n + 'DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS '\n + 'DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS '\n + 'INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION '\n + 'INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION '\n + 'INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION '\n + 'INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL '\n + 'OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED '\n + 'STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE '\n + 'OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION '\n + 'QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED '\n + 'SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR '\n + 'LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED '\n + 'FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION '\n + 'FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER '\n + 'FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS '\n + 'FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX '\n + 'FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH '\n + 'FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES '\n + 'FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE '\n + 'FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION '\n + 'FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR '\n + 'RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED '\n + 'INDEX_CORRUPTED ';\n\n const FUNCTIONS =\n // https://www.postgresql.org/docs/11/static/functions-aggregate.html\n 'ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG '\n + 'JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG '\n + 'CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE '\n + 'REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP '\n + 'PERCENTILE_CONT PERCENTILE_DISC '\n // https://www.postgresql.org/docs/11/static/functions-window.html\n + 'ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE '\n // https://www.postgresql.org/docs/11/static/functions-comparison.html\n + 'NUM_NONNULLS NUM_NULLS '\n // https://www.postgresql.org/docs/11/static/functions-math.html\n + 'ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT '\n + 'TRUNC WIDTH_BUCKET '\n + 'RANDOM SETSEED '\n + 'ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND '\n // https://www.postgresql.org/docs/11/static/functions-string.html\n + 'BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER '\n + 'ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP '\n + 'LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 '\n + 'QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY '\n + 'REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR '\n + 'TO_ASCII TO_HEX TRANSLATE '\n // https://www.postgresql.org/docs/11/static/functions-binarystring.html\n + 'OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE '\n // https://www.postgresql.org/docs/11/static/functions-formatting.html\n + 'TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP '\n // https://www.postgresql.org/docs/11/static/functions-datetime.html\n + 'AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL '\n + 'MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 '\n + 'TIMEOFDAY TRANSACTION_TIMESTAMP|10 '\n // https://www.postgresql.org/docs/11/static/functions-enum.html\n + 'ENUM_FIRST ENUM_LAST ENUM_RANGE '\n // https://www.postgresql.org/docs/11/static/functions-geometry.html\n + 'AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH '\n + 'BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON '\n // https://www.postgresql.org/docs/11/static/functions-net.html\n + 'ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY '\n + 'INET_MERGE MACADDR8_SET7BIT '\n // https://www.postgresql.org/docs/11/static/functions-textsearch.html\n + 'ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY '\n + 'QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE '\n + 'TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY '\n + 'TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN '\n // https://www.postgresql.org/docs/11/static/functions-xml.html\n + 'XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT '\n + 'XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT '\n + 'XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES '\n + 'TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA '\n + 'QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA '\n + 'CURSOR_TO_XML CURSOR_TO_XMLSCHEMA '\n + 'SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA '\n + 'DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA '\n + 'XMLATTRIBUTES '\n // https://www.postgresql.org/docs/11/static/functions-json.html\n + 'TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT '\n + 'JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH '\n + 'JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH '\n + 'JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET '\n + 'JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT '\n + 'JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET '\n + 'JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY '\n // https://www.postgresql.org/docs/11/static/functions-sequence.html\n + 'CURRVAL LASTVAL NEXTVAL SETVAL '\n // https://www.postgresql.org/docs/11/static/functions-conditional.html\n + 'COALESCE NULLIF GREATEST LEAST '\n // https://www.postgresql.org/docs/11/static/functions-array.html\n + 'ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION '\n + 'ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY '\n + 'STRING_TO_ARRAY UNNEST '\n // https://www.postgresql.org/docs/11/static/functions-range.html\n + 'ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE '\n // https://www.postgresql.org/docs/11/static/functions-srf.html\n + 'GENERATE_SERIES GENERATE_SUBSCRIPTS '\n // https://www.postgresql.org/docs/11/static/functions-info.html\n + 'CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT '\n + 'INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE '\n + 'TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE '\n + 'COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION '\n + 'TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX '\n + 'TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS '\n // https://www.postgresql.org/docs/11/static/functions-admin.html\n + 'CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE '\n + 'GIN_CLEAN_PENDING_LIST '\n // https://www.postgresql.org/docs/11/static/functions-trigger.html\n + 'SUPPRESS_REDUNDANT_UPDATES_TRIGGER '\n // ihttps://www.postgresql.org/docs/devel/static/lo-funcs.html\n + 'LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE '\n //\n + 'GROUPING CAST ';\n\n const FUNCTIONS_RE =\n FUNCTIONS.trim()\n .split(' ')\n .map(function(val) { return val.split('|')[0]; })\n .join('|');\n\n return {\n name: 'PostgreSQL',\n aliases: [\n 'postgres',\n 'postgresql'\n ],\n supersetOf: \"sql\",\n case_insensitive: true,\n keywords: {\n keyword:\n SQL_KW + PLPGSQL_KW + ROLE_ATTRS,\n built_in:\n SQL_BI + PLPGSQL_BI + PLPGSQL_EXCEPTIONS\n },\n // Forbid some cunstructs from other languages to improve autodetect. In fact\n // \"[a-z]:\" is legal (as part of array slice), but improbabal.\n illegal: /:==|\\W\\s*\\(\\*|(^|\\s)\\$[a-z]|\\{\\{|[a-z]:\\s*$|\\.\\.\\.|TO:|DO:/,\n contains: [\n // special handling of some words, which are reserved only in some contexts\n {\n className: 'keyword',\n variants: [\n { begin: /\\bTEXT\\s*SEARCH\\b/ },\n { begin: /\\b(PRIMARY|FOREIGN|FOR(\\s+NO)?)\\s+KEY\\b/ },\n { begin: /\\bPARALLEL\\s+(UNSAFE|RESTRICTED|SAFE)\\b/ },\n { begin: /\\bSTORAGE\\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\\b/ },\n { begin: /\\bMATCH\\s+(FULL|PARTIAL|SIMPLE)\\b/ },\n { begin: /\\bNULLS\\s+(FIRST|LAST)\\b/ },\n { begin: /\\bEVENT\\s+TRIGGER\\b/ },\n { begin: /\\b(MAPPING|OR)\\s+REPLACE\\b/ },\n { begin: /\\b(FROM|TO)\\s+(PROGRAM|STDIN|STDOUT)\\b/ },\n { begin: /\\b(SHARE|EXCLUSIVE)\\s+MODE\\b/ },\n { begin: /\\b(LEFT|RIGHT)\\s+(OUTER\\s+)?JOIN\\b/ },\n { begin: /\\b(FETCH|MOVE)\\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\\b/ },\n { begin: /\\bPRESERVE\\s+ROWS\\b/ },\n { begin: /\\bDISCARD\\s+PLANS\\b/ },\n { begin: /\\bREFERENCING\\s+(OLD|NEW)\\b/ },\n { begin: /\\bSKIP\\s+LOCKED\\b/ },\n { begin: /\\bGROUPING\\s+SETS\\b/ },\n { begin: /\\b(BINARY|INSENSITIVE|SCROLL|NO\\s+SCROLL)\\s+(CURSOR|FOR)\\b/ },\n { begin: /\\b(WITH|WITHOUT)\\s+HOLD\\b/ },\n { begin: /\\bWITH\\s+(CASCADED|LOCAL)\\s+CHECK\\s+OPTION\\b/ },\n { begin: /\\bEXCLUDE\\s+(TIES|NO\\s+OTHERS)\\b/ },\n { begin: /\\bFORMAT\\s+(TEXT|XML|JSON|YAML)\\b/ },\n { begin: /\\bSET\\s+((SESSION|LOCAL)\\s+)?NAMES\\b/ },\n { begin: /\\bIS\\s+(NOT\\s+)?UNKNOWN\\b/ },\n { begin: /\\bSECURITY\\s+LABEL\\b/ },\n { begin: /\\bSTANDALONE\\s+(YES|NO|NO\\s+VALUE)\\b/ },\n { begin: /\\bWITH\\s+(NO\\s+)?DATA\\b/ },\n { begin: /\\b(FOREIGN|SET)\\s+DATA\\b/ },\n { begin: /\\bSET\\s+(CATALOG|CONSTRAINTS)\\b/ },\n { begin: /\\b(WITH|FOR)\\s+ORDINALITY\\b/ },\n { begin: /\\bIS\\s+(NOT\\s+)?DOCUMENT\\b/ },\n { begin: /\\bXML\\s+OPTION\\s+(DOCUMENT|CONTENT)\\b/ },\n { begin: /\\b(STRIP|PRESERVE)\\s+WHITESPACE\\b/ },\n { begin: /\\bNO\\s+(ACTION|MAXVALUE|MINVALUE)\\b/ },\n { begin: /\\bPARTITION\\s+BY\\s+(RANGE|LIST|HASH)\\b/ },\n { begin: /\\bAT\\s+TIME\\s+ZONE\\b/ },\n { begin: /\\bGRANTED\\s+BY\\b/ },\n { begin: /\\bRETURN\\s+(QUERY|NEXT)\\b/ },\n { begin: /\\b(ATTACH|DETACH)\\s+PARTITION\\b/ },\n { begin: /\\bFORCE\\s+ROW\\s+LEVEL\\s+SECURITY\\b/ },\n { begin: /\\b(INCLUDING|EXCLUDING)\\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\\b/ },\n { begin: /\\bAS\\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\\b/ }\n ]\n },\n // functions named as keywords, followed by '('\n { begin: /\\b(FORMAT|FAMILY|VERSION)\\s*\\(/\n // keywords: { built_in: 'FORMAT FAMILY VERSION' }\n },\n // INCLUDE ( ... ) in index_parameters in CREATE TABLE\n {\n begin: /\\bINCLUDE\\s*\\(/,\n keywords: 'INCLUDE'\n },\n // not highlight RANGE if not in frame_clause (not 100% correct, but seems satisfactory)\n { begin: /\\bRANGE(?!\\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/ },\n // disable highlighting in commands CREATE AGGREGATE/COLLATION/DATABASE/OPERTOR/TEXT SEARCH .../TYPE\n // and in PL/pgSQL RAISE ... USING\n { begin: /\\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\\s*=/ },\n // PG_smth; HAS_some_PRIVILEGE\n {\n // className: 'built_in',\n begin: /\\b(PG_\\w+?|HAS_[A-Z_]+_PRIVILEGE)\\b/,\n relevance: 10\n },\n // extract\n {\n begin: /\\bEXTRACT\\s*\\(/,\n end: /\\bFROM\\b/,\n returnEnd: true,\n keywords: {\n // built_in: 'EXTRACT',\n type: 'CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS '\n + 'MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR '\n + 'TIMEZONE_MINUTE WEEK YEAR' }\n },\n // xmlelement, xmlpi - special NAME\n {\n begin: /\\b(XMLELEMENT|XMLPI)\\s*\\(\\s*NAME/,\n keywords: {\n // built_in: 'XMLELEMENT XMLPI',\n keyword: 'NAME' }\n },\n // xmlparse, xmlserialize\n {\n begin: /\\b(XMLPARSE|XMLSERIALIZE)\\s*\\(\\s*(DOCUMENT|CONTENT)/,\n keywords: {\n // built_in: 'XMLPARSE XMLSERIALIZE',\n keyword: 'DOCUMENT CONTENT' }\n },\n // Sequences. We actually skip everything between CACHE|INCREMENT|MAXVALUE|MINVALUE and\n // nearest following numeric constant. Without with trick we find a lot of \"keywords\"\n // in 'avrasm' autodetection test...\n {\n beginKeywords: 'CACHE INCREMENT MAXVALUE MINVALUE',\n end: hljs.C_NUMBER_RE,\n returnEnd: true,\n keywords: 'BY CACHE INCREMENT MAXVALUE MINVALUE'\n },\n // WITH|WITHOUT TIME ZONE as part of datatype\n {\n className: 'type',\n begin: /\\b(WITH|WITHOUT)\\s+TIME\\s+ZONE\\b/\n },\n // INTERVAL optional fields\n {\n className: 'type',\n begin: /\\bINTERVAL\\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\\s+TO\\s+(MONTH|HOUR|MINUTE|SECOND))?\\b/\n },\n // Pseudo-types which allowed only as return type\n {\n begin: /\\bRETURNS\\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\\b/,\n keywords: {\n keyword: 'RETURNS',\n type: 'LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER'\n }\n },\n // Known functions - only when followed by '('\n { begin: '\\\\b(' + FUNCTIONS_RE + ')\\\\s*\\\\('\n // keywords: { built_in: FUNCTIONS }\n },\n // Types\n { begin: '\\\\.(' + TYPES_RE + ')\\\\b' // prevent highlight as type, say, 'oid' in 'pgclass.oid'\n },\n {\n begin: '\\\\b(' + TYPES_RE + ')\\\\s+PATH\\\\b', // in XMLTABLE\n keywords: {\n keyword: 'PATH', // hopefully no one would use PATH type in XMLTABLE...\n type: TYPES.replace('PATH ', '')\n }\n },\n {\n className: 'type',\n begin: '\\\\b(' + TYPES_RE + ')\\\\b'\n },\n // Strings, see https://www.postgresql.org/docs/11/static/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS\n {\n className: 'string',\n begin: '\\'',\n end: '\\'',\n contains: [ { begin: '\\'\\'' } ]\n },\n {\n className: 'string',\n begin: '(e|E|u&|U&)\\'',\n end: '\\'',\n contains: [ { begin: '\\\\\\\\.' } ],\n relevance: 10\n },\n hljs.END_SAME_AS_BEGIN({\n begin: DOLLAR_STRING,\n end: DOLLAR_STRING,\n contains: [\n {\n // actually we want them all except SQL; listed are those with known implementations\n // and XML + JSON just in case\n subLanguage: [\n 'pgsql',\n 'perl',\n 'python',\n 'tcl',\n 'r',\n 'lua',\n 'java',\n 'php',\n 'ruby',\n 'bash',\n 'scheme',\n 'xml',\n 'json'\n ],\n endsWithParent: true\n }\n ]\n }),\n // identifiers in quotes\n {\n begin: '\"',\n end: '\"',\n contains: [ { begin: '\"\"' } ]\n },\n // numbers\n hljs.C_NUMBER_MODE,\n // comments\n hljs.C_BLOCK_COMMENT_MODE,\n COMMENT_MODE,\n // PL/pgSQL staff\n // %ROWTYPE, %TYPE, $n\n {\n className: 'meta',\n variants: [\n { // %TYPE, %ROWTYPE\n begin: '%(ROW)?TYPE',\n relevance: 10\n },\n { // $n\n begin: '\\\\$\\\\d+' },\n { // #compiler option\n begin: '^#\\\\w',\n end: '$'\n }\n ]\n },\n // <>\n {\n className: 'symbol',\n begin: LABEL,\n relevance: 10\n }\n ]\n };\n}\n\nmodule.exports = pgsql;\n","module.exports = __webpack_public_path__ + \"img/ovhcloudmks.ccb13957.svg\";","/*\nLanguage: YAML\nDescription: Yet Another Markdown Language\nAuthor: Stefan Wienert \nContributors: Carl Baxter \nRequires: ruby.js\nWebsite: https://yaml.org\nCategory: common, config\n*/\nfunction yaml(hljs) {\n const LITERALS = 'true false yes no null';\n\n // YAML spec allows non-reserved URI characters in tags.\n const URI_CHARACTERS = '[\\\\w#;/?:@&=+$,.~*\\'()[\\\\]]+';\n\n // Define keys as starting with a word character\n // ...containing word chars, spaces, colons, forward-slashes, hyphens and periods\n // ...and ending with a colon followed immediately by a space, tab or newline.\n // The YAML spec allows for much more than this, but this covers most use-cases.\n const KEY = {\n className: 'attr',\n variants: [\n { begin: '\\\\w[\\\\w :\\\\/.-]*:(?=[ \\t]|$)' },\n { // double quoted keys\n begin: '\"\\\\w[\\\\w :\\\\/.-]*\":(?=[ \\t]|$)' },\n { // single quoted keys\n begin: '\\'\\\\w[\\\\w :\\\\/.-]*\\':(?=[ \\t]|$)' }\n ]\n };\n\n const TEMPLATE_VARIABLES = {\n className: 'template-variable',\n variants: [\n { // jinja templates Ansible\n begin: /\\{\\{/,\n end: /\\}\\}/\n },\n { // Ruby i18n\n begin: /%\\{/,\n end: /\\}/\n }\n ]\n };\n const STRING = {\n className: 'string',\n relevance: 0,\n variants: [\n {\n begin: /'/,\n end: /'/\n },\n {\n begin: /\"/,\n end: /\"/\n },\n { begin: /\\S+/ }\n ],\n contains: [\n hljs.BACKSLASH_ESCAPE,\n TEMPLATE_VARIABLES\n ]\n };\n\n // Strings inside of value containers (objects) can't contain braces,\n // brackets, or commas\n const CONTAINER_STRING = hljs.inherit(STRING, { variants: [\n {\n begin: /'/,\n end: /'/\n },\n {\n begin: /\"/,\n end: /\"/\n },\n { begin: /[^\\s,{}[\\]]+/ }\n ] });\n\n const DATE_RE = '[0-9]{4}(-[0-9][0-9]){0,2}';\n const TIME_RE = '([Tt \\\\t][0-9][0-9]?(:[0-9][0-9]){2})?';\n const FRACTION_RE = '(\\\\.[0-9]*)?';\n const ZONE_RE = '([ \\\\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?';\n const TIMESTAMP = {\n className: 'number',\n begin: '\\\\b' + DATE_RE + TIME_RE + FRACTION_RE + ZONE_RE + '\\\\b'\n };\n\n const VALUE_CONTAINER = {\n end: ',',\n endsWithParent: true,\n excludeEnd: true,\n keywords: LITERALS,\n relevance: 0\n };\n const OBJECT = {\n begin: /\\{/,\n end: /\\}/,\n contains: [ VALUE_CONTAINER ],\n illegal: '\\\\n',\n relevance: 0\n };\n const ARRAY = {\n begin: '\\\\[',\n end: '\\\\]',\n contains: [ VALUE_CONTAINER ],\n illegal: '\\\\n',\n relevance: 0\n };\n\n const MODES = [\n KEY,\n {\n className: 'meta',\n begin: '^---\\\\s*$',\n relevance: 10\n },\n { // multi line string\n // Blocks start with a | or > followed by a newline\n //\n // Indentation of subsequent lines must be the same to\n // be considered part of the block\n className: 'string',\n begin: '[\\\\|>]([1-9]?[+-])?[ ]*\\\\n( +)[^ ][^\\\\n]*\\\\n(\\\\2[^\\\\n]+\\\\n?)*'\n },\n { // Ruby/Rails erb\n begin: '<%[%=-]?',\n end: '[%-]?%>',\n subLanguage: 'ruby',\n excludeBegin: true,\n excludeEnd: true,\n relevance: 0\n },\n { // named tags\n className: 'type',\n begin: '!\\\\w+!' + URI_CHARACTERS\n },\n // https://yaml.org/spec/1.2/spec.html#id2784064\n { // verbatim tags\n className: 'type',\n begin: '!<' + URI_CHARACTERS + \">\"\n },\n { // primary tags\n className: 'type',\n begin: '!' + URI_CHARACTERS\n },\n { // secondary tags\n className: 'type',\n begin: '!!' + URI_CHARACTERS\n },\n { // fragment id &ref\n className: 'meta',\n begin: '&' + hljs.UNDERSCORE_IDENT_RE + '$'\n },\n { // fragment reference *ref\n className: 'meta',\n begin: '\\\\*' + hljs.UNDERSCORE_IDENT_RE + '$'\n },\n { // array listing\n className: 'bullet',\n // TODO: remove |$ hack when we have proper look-ahead support\n begin: '-(?=[ ]|$)',\n relevance: 0\n },\n hljs.HASH_COMMENT_MODE,\n {\n beginKeywords: LITERALS,\n keywords: { literal: LITERALS }\n },\n TIMESTAMP,\n // numbers are any valid C-style number that\n // sit isolated from other words\n {\n className: 'number',\n begin: hljs.C_NUMBER_RE + '\\\\b',\n relevance: 0\n },\n OBJECT,\n ARRAY,\n STRING\n ];\n\n const VALUE_MODES = [ ...MODES ];\n VALUE_MODES.pop();\n VALUE_MODES.push(CONTAINER_STRING);\n VALUE_CONTAINER.contains = VALUE_MODES;\n\n return {\n name: 'YAML',\n case_insensitive: true,\n aliases: [ 'yml' ],\n contains: MODES\n };\n}\n\nmodule.exports = yaml;\n","// https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.html#jls-3.10\nvar decimalDigits = '[0-9](_*[0-9])*';\nvar frac = `\\\\.(${decimalDigits})`;\nvar hexDigits = '[0-9a-fA-F](_*[0-9a-fA-F])*';\nvar NUMERIC = {\n className: 'number',\n variants: [\n // DecimalFloatingPointLiteral\n // including ExponentPart\n { begin: `(\\\\b(${decimalDigits})((${frac})|\\\\.)?|(${frac}))` +\n `[eE][+-]?(${decimalDigits})[fFdD]?\\\\b` },\n // excluding ExponentPart\n { begin: `\\\\b(${decimalDigits})((${frac})[fFdD]?\\\\b|\\\\.([fFdD]\\\\b)?)` },\n { begin: `(${frac})[fFdD]?\\\\b` },\n { begin: `\\\\b(${decimalDigits})[fFdD]\\\\b` },\n\n // HexadecimalFloatingPointLiteral\n { begin: `\\\\b0[xX]((${hexDigits})\\\\.?|(${hexDigits})?\\\\.(${hexDigits}))` +\n `[pP][+-]?(${decimalDigits})[fFdD]?\\\\b` },\n\n // DecimalIntegerLiteral\n { begin: '\\\\b(0|[1-9](_*[0-9])*)[lL]?\\\\b' },\n\n // HexIntegerLiteral\n { begin: `\\\\b0[xX](${hexDigits})[lL]?\\\\b` },\n\n // OctalIntegerLiteral\n { begin: '\\\\b0(_*[0-7])*[lL]?\\\\b' },\n\n // BinaryIntegerLiteral\n { begin: '\\\\b0[bB][01](_*[01])*[lL]?\\\\b' },\n ],\n relevance: 0\n};\n\n/*\n Language: Kotlin\n Description: Kotlin is an OSS statically typed programming language that targets the JVM, Android, JavaScript and Native.\n Author: Sergey Mashkov \n Website: https://kotlinlang.org\n Category: common\n */\n\nfunction kotlin(hljs) {\n const KEYWORDS = {\n keyword:\n 'abstract as val var vararg get set class object open private protected public noinline '\n + 'crossinline dynamic final enum if else do while for when throw try catch finally '\n + 'import package is in fun override companion reified inline lateinit init '\n + 'interface annotation data sealed internal infix operator out by constructor super '\n + 'tailrec where const inner suspend typealias external expect actual',\n built_in:\n 'Byte Short Char Int Long Boolean Float Double Void Unit Nothing',\n literal:\n 'true false null'\n };\n const KEYWORDS_WITH_LABEL = {\n className: 'keyword',\n begin: /\\b(break|continue|return|this)\\b/,\n starts: { contains: [\n {\n className: 'symbol',\n begin: /@\\w+/\n }\n ] }\n };\n const LABEL = {\n className: 'symbol',\n begin: hljs.UNDERSCORE_IDENT_RE + '@'\n };\n\n // for string templates\n const SUBST = {\n className: 'subst',\n begin: /\\$\\{/,\n end: /\\}/,\n contains: [ hljs.C_NUMBER_MODE ]\n };\n const VARIABLE = {\n className: 'variable',\n begin: '\\\\$' + hljs.UNDERSCORE_IDENT_RE\n };\n const STRING = {\n className: 'string',\n variants: [\n {\n begin: '\"\"\"',\n end: '\"\"\"(?=[^\"])',\n contains: [\n VARIABLE,\n SUBST\n ]\n },\n // Can't use built-in modes easily, as we want to use STRING in the meta\n // context as 'meta-string' and there's no syntax to remove explicitly set\n // classNames in built-in modes.\n {\n begin: '\\'',\n end: '\\'',\n illegal: /\\n/,\n contains: [ hljs.BACKSLASH_ESCAPE ]\n },\n {\n begin: '\"',\n end: '\"',\n illegal: /\\n/,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VARIABLE,\n SUBST\n ]\n }\n ]\n };\n SUBST.contains.push(STRING);\n\n const ANNOTATION_USE_SITE = {\n className: 'meta',\n begin: '@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\\\s*:(?:\\\\s*' + hljs.UNDERSCORE_IDENT_RE + ')?'\n };\n const ANNOTATION = {\n className: 'meta',\n begin: '@' + hljs.UNDERSCORE_IDENT_RE,\n contains: [\n {\n begin: /\\(/,\n end: /\\)/,\n contains: [\n hljs.inherit(STRING, { className: 'string' }),\n \"self\"\n ]\n }\n ]\n };\n\n // https://kotlinlang.org/docs/reference/whatsnew11.html#underscores-in-numeric-literals\n // According to the doc above, the number mode of kotlin is the same as java 8,\n // so the code below is copied from java.js\n const KOTLIN_NUMBER_MODE = NUMERIC;\n const KOTLIN_NESTED_COMMENT = hljs.COMMENT(\n '/\\\\*', '\\\\*/',\n { contains: [ hljs.C_BLOCK_COMMENT_MODE ] }\n );\n const KOTLIN_PAREN_TYPE = { variants: [\n {\n className: 'type',\n begin: hljs.UNDERSCORE_IDENT_RE\n },\n {\n begin: /\\(/,\n end: /\\)/,\n contains: [] // defined later\n }\n ] };\n const KOTLIN_PAREN_TYPE2 = KOTLIN_PAREN_TYPE;\n KOTLIN_PAREN_TYPE2.variants[1].contains = [ KOTLIN_PAREN_TYPE ];\n KOTLIN_PAREN_TYPE.variants[1].contains = [ KOTLIN_PAREN_TYPE2 ];\n\n return {\n name: 'Kotlin',\n aliases: [\n 'kt',\n 'kts'\n ],\n keywords: KEYWORDS,\n contains: [\n hljs.COMMENT(\n '/\\\\*\\\\*',\n '\\\\*/',\n {\n relevance: 0,\n contains: [\n {\n className: 'doctag',\n begin: '@[A-Za-z]+'\n }\n ]\n }\n ),\n hljs.C_LINE_COMMENT_MODE,\n KOTLIN_NESTED_COMMENT,\n KEYWORDS_WITH_LABEL,\n LABEL,\n ANNOTATION_USE_SITE,\n ANNOTATION,\n {\n className: 'function',\n beginKeywords: 'fun',\n end: '[(]|$',\n returnBegin: true,\n excludeEnd: true,\n keywords: KEYWORDS,\n relevance: 5,\n contains: [\n {\n begin: hljs.UNDERSCORE_IDENT_RE + '\\\\s*\\\\(',\n returnBegin: true,\n relevance: 0,\n contains: [ hljs.UNDERSCORE_TITLE_MODE ]\n },\n {\n className: 'type',\n begin: //,\n keywords: 'reified',\n relevance: 0\n },\n {\n className: 'params',\n begin: /\\(/,\n end: /\\)/,\n endsParent: true,\n keywords: KEYWORDS,\n relevance: 0,\n contains: [\n {\n begin: /:/,\n end: /[=,\\/]/,\n endsWithParent: true,\n contains: [\n KOTLIN_PAREN_TYPE,\n hljs.C_LINE_COMMENT_MODE,\n KOTLIN_NESTED_COMMENT\n ],\n relevance: 0\n },\n hljs.C_LINE_COMMENT_MODE,\n KOTLIN_NESTED_COMMENT,\n ANNOTATION_USE_SITE,\n ANNOTATION,\n STRING,\n hljs.C_NUMBER_MODE\n ]\n },\n KOTLIN_NESTED_COMMENT\n ]\n },\n {\n begin: [\n /class|interface|trait/,\n /\\s+/,\n hljs.UNDERSCORE_IDENT_RE\n ],\n beginScope: {\n 3: \"title.class\"\n },\n keywords: 'class interface trait',\n end: /[:\\{(]|$/,\n excludeEnd: true,\n illegal: 'extends implements',\n contains: [\n { beginKeywords: 'public protected internal private constructor' },\n hljs.UNDERSCORE_TITLE_MODE,\n {\n className: 'type',\n begin: //,\n excludeBegin: true,\n excludeEnd: true,\n relevance: 0\n },\n {\n className: 'type',\n begin: /[,:]\\s*/,\n end: /[<\\(,){\\s]|$/,\n excludeBegin: true,\n returnEnd: true\n },\n ANNOTATION_USE_SITE,\n ANNOTATION\n ]\n },\n STRING,\n {\n className: 'meta',\n begin: \"^#!/usr/bin/env\",\n end: '$',\n illegal: '\\n'\n },\n KOTLIN_NUMBER_MODE\n ]\n };\n}\n\nmodule.exports = kotlin;\n","module.exports = __webpack_public_path__ + \"img/linodelke.72ae9a55.svg\";","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_AT_RULE_IMPORT_0___ = require(\"-!../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!./node_modules/diff2html/bundles/css/diff2html.min.css\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\nexports.i(___CSS_LOADER_AT_RULE_IMPORT_0___);\n// Module\nexports.push([module.id, \"[data-v-0137ea75] .d2h-wrapper .d2h-file-header{display:none}[data-v-0137ea75] .d2h-wrapper .d2h-file-wrapper{border-color:var(--diff-border)}[data-v-0137ea75] .d2h-wrapper .d2h-diff-table{font-family:Menlo,Consolas,monospace;font-size:13px}[data-v-0137ea75] .d2h-wrapper .d2h-code-side-emptyplaceholder,[data-v-0137ea75] .d2h-wrapper .d2h-emptyplaceholder{border-color:var(--diff-linenum-border);background-color:var(--diff-empty-placeholder)}[data-v-0137ea75] .d2h-wrapper .d2h-code-linenumber,[data-v-0137ea75] .d2h-wrapper .d2h-code-side-linenumber{background-color:var(--diff-linenum-bg);color:var(--diff-linenum);border-color:var(--diff-linenum-border);border-left:0}[data-v-0137ea75] .d2h-wrapper .d2h-code-line del,[data-v-0137ea75] .d2h-wrapper .d2h-code-side-line del{background-color:var(--diff-line-del-bg)}[data-v-0137ea75] .d2h-wrapper .d2h-code-line ins,[data-v-0137ea75] .d2h-wrapper .d2h-code-side-line ins{background-color:var(--diff-line-ins-bg)}[data-v-0137ea75] .d2h-wrapper .d2h-del{background-color:var(--diff-del-bg);border-color:var(--diff-del-border);color:var(--body-text)}[data-v-0137ea75] .d2h-wrapper .d2h-ins{background-color:var(--diff-ins-bg);border-color:var(--diff-ins-border);color:var(--body-text)}[data-v-0137ea75] .d2h-wrapper .d2h-info{background-color:var(--diff-header-bg);color:var(--diff-header);border-color:var(--diff-header-border)}[data-v-0137ea75] .d2h-wrapper .d2h-file-diff .d2h-del.d2h-change{background-color:var(--diff-chg-del)}[data-v-0137ea75] .d2h-wrapper .d2h-file-diff .d2h-ins.d2h-change{background-color:var(--diff-chg-ins)}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","module.exports = __webpack_public_path__ + \"img/minikube.b39dc584.svg\";","module.exports = __webpack_public_path__ + \"img/pnap-black.1b1773d7.svg\";","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".root[data-v-0137ea75]{max-width:100%;position:relative;overflow:auto}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\n\nmodule.exports = unicodeToArray;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".confirm-modal .btn[data-v-7090e1b4]{margin:0 10px}.confirm-modal .v--modal-box[data-v-7090e1b4]{background-color:var(--default);box-shadow:none;min-height:200px}.confirm-modal .v--modal-box .body[data-v-7090e1b4]{min-height:75px;padding:10px 0 0 15px}.confirm-modal .v--modal-box .body p[data-v-7090e1b4]{margin-top:10px}.confirm-modal .v--modal-box .header[data-v-7090e1b4]{background-color:var(--error);padding:15px 0 0 15px;height:50px}.confirm-modal .v--modal-box .header h4[data-v-7090e1b4]{color:#fff}.confirm-modal .v--modal-box .footer[data-v-7090e1b4]{border-top:1px solid var(--border);text-align:center;padding:10px 0 0 15px;height:60px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","/*\nLanguage: Bash\nAuthor: vah \nContributrors: Benjamin Pannell \nWebsite: https://www.gnu.org/software/bash/\nCategory: common\n*/\n\n/** @type LanguageFn */\nfunction bash(hljs) {\n const regex = hljs.regex;\n const VAR = {};\n const BRACED_VAR = {\n begin: /\\$\\{/,\n end: /\\}/,\n contains: [\n \"self\",\n {\n begin: /:-/,\n contains: [ VAR ]\n } // default values\n ]\n };\n Object.assign(VAR, {\n className: 'variable',\n variants: [\n { begin: regex.concat(/\\$[\\w\\d#@][\\w\\d_]*/,\n // negative look-ahead tries to avoid matching patterns that are not\n // Perl at all like $ident$, @ident@, etc.\n `(?![\\\\w\\\\d])(?![$])`) },\n BRACED_VAR\n ]\n });\n\n const SUBST = {\n className: 'subst',\n begin: /\\$\\(/,\n end: /\\)/,\n contains: [ hljs.BACKSLASH_ESCAPE ]\n };\n const HERE_DOC = {\n begin: /<<-?\\s*(?=\\w+)/,\n starts: { contains: [\n hljs.END_SAME_AS_BEGIN({\n begin: /(\\w+)/,\n end: /(\\w+)/,\n className: 'string'\n })\n ] }\n };\n const QUOTE_STRING = {\n className: 'string',\n begin: /\"/,\n end: /\"/,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR,\n SUBST\n ]\n };\n SUBST.contains.push(QUOTE_STRING);\n const ESCAPED_QUOTE = {\n className: '',\n begin: /\\\\\"/\n\n };\n const APOS_STRING = {\n className: 'string',\n begin: /'/,\n end: /'/\n };\n const ARITHMETIC = {\n begin: /\\$\\(\\(/,\n end: /\\)\\)/,\n contains: [\n {\n begin: /\\d+#[0-9a-f]+/,\n className: \"number\"\n },\n hljs.NUMBER_MODE,\n VAR\n ]\n };\n const SH_LIKE_SHELLS = [\n \"fish\",\n \"bash\",\n \"zsh\",\n \"sh\",\n \"csh\",\n \"ksh\",\n \"tcsh\",\n \"dash\",\n \"scsh\",\n ];\n const KNOWN_SHEBANG = hljs.SHEBANG({\n binary: `(${SH_LIKE_SHELLS.join(\"|\")})`,\n relevance: 10\n });\n const FUNCTION = {\n className: 'function',\n begin: /\\w[\\w\\d_]*\\s*\\(\\s*\\)\\s*\\{/,\n returnBegin: true,\n contains: [ hljs.inherit(hljs.TITLE_MODE, { begin: /\\w[\\w\\d_]*/ }) ],\n relevance: 0\n };\n\n const KEYWORDS = [\n \"if\",\n \"then\",\n \"else\",\n \"elif\",\n \"fi\",\n \"for\",\n \"while\",\n \"in\",\n \"do\",\n \"done\",\n \"case\",\n \"esac\",\n \"function\"\n ];\n\n const LITERALS = [\n \"true\",\n \"false\"\n ];\n\n // to consume paths to prevent keyword matches inside them\n const PATH_MODE = { match: /(\\/[a-z._-]+)+/ };\n\n // http://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html\n const SHELL_BUILT_INS = [\n \"break\",\n \"cd\",\n \"continue\",\n \"eval\",\n \"exec\",\n \"exit\",\n \"export\",\n \"getopts\",\n \"hash\",\n \"pwd\",\n \"readonly\",\n \"return\",\n \"shift\",\n \"test\",\n \"times\",\n \"trap\",\n \"umask\",\n \"unset\"\n ];\n\n const BASH_BUILT_INS = [\n \"alias\",\n \"bind\",\n \"builtin\",\n \"caller\",\n \"command\",\n \"declare\",\n \"echo\",\n \"enable\",\n \"help\",\n \"let\",\n \"local\",\n \"logout\",\n \"mapfile\",\n \"printf\",\n \"read\",\n \"readarray\",\n \"source\",\n \"type\",\n \"typeset\",\n \"ulimit\",\n \"unalias\"\n ];\n\n const ZSH_BUILT_INS = [\n \"autoload\",\n \"bg\",\n \"bindkey\",\n \"bye\",\n \"cap\",\n \"chdir\",\n \"clone\",\n \"comparguments\",\n \"compcall\",\n \"compctl\",\n \"compdescribe\",\n \"compfiles\",\n \"compgroups\",\n \"compquote\",\n \"comptags\",\n \"comptry\",\n \"compvalues\",\n \"dirs\",\n \"disable\",\n \"disown\",\n \"echotc\",\n \"echoti\",\n \"emulate\",\n \"fc\",\n \"fg\",\n \"float\",\n \"functions\",\n \"getcap\",\n \"getln\",\n \"history\",\n \"integer\",\n \"jobs\",\n \"kill\",\n \"limit\",\n \"log\",\n \"noglob\",\n \"popd\",\n \"print\",\n \"pushd\",\n \"pushln\",\n \"rehash\",\n \"sched\",\n \"setcap\",\n \"setopt\",\n \"stat\",\n \"suspend\",\n \"ttyctl\",\n \"unfunction\",\n \"unhash\",\n \"unlimit\",\n \"unsetopt\",\n \"vared\",\n \"wait\",\n \"whence\",\n \"where\",\n \"which\",\n \"zcompile\",\n \"zformat\",\n \"zftp\",\n \"zle\",\n \"zmodload\",\n \"zparseopts\",\n \"zprof\",\n \"zpty\",\n \"zregexparse\",\n \"zsocket\",\n \"zstyle\",\n \"ztcp\"\n ];\n\n const GNU_CORE_UTILS = [\n \"chcon\",\n \"chgrp\",\n \"chown\",\n \"chmod\",\n \"cp\",\n \"dd\",\n \"df\",\n \"dir\",\n \"dircolors\",\n \"ln\",\n \"ls\",\n \"mkdir\",\n \"mkfifo\",\n \"mknod\",\n \"mktemp\",\n \"mv\",\n \"realpath\",\n \"rm\",\n \"rmdir\",\n \"shred\",\n \"sync\",\n \"touch\",\n \"truncate\",\n \"vdir\",\n \"b2sum\",\n \"base32\",\n \"base64\",\n \"cat\",\n \"cksum\",\n \"comm\",\n \"csplit\",\n \"cut\",\n \"expand\",\n \"fmt\",\n \"fold\",\n \"head\",\n \"join\",\n \"md5sum\",\n \"nl\",\n \"numfmt\",\n \"od\",\n \"paste\",\n \"ptx\",\n \"pr\",\n \"sha1sum\",\n \"sha224sum\",\n \"sha256sum\",\n \"sha384sum\",\n \"sha512sum\",\n \"shuf\",\n \"sort\",\n \"split\",\n \"sum\",\n \"tac\",\n \"tail\",\n \"tr\",\n \"tsort\",\n \"unexpand\",\n \"uniq\",\n \"wc\",\n \"arch\",\n \"basename\",\n \"chroot\",\n \"date\",\n \"dirname\",\n \"du\",\n \"echo\",\n \"env\",\n \"expr\",\n \"factor\",\n // \"false\", // keyword literal already\n \"groups\",\n \"hostid\",\n \"id\",\n \"link\",\n \"logname\",\n \"nice\",\n \"nohup\",\n \"nproc\",\n \"pathchk\",\n \"pinky\",\n \"printenv\",\n \"printf\",\n \"pwd\",\n \"readlink\",\n \"runcon\",\n \"seq\",\n \"sleep\",\n \"stat\",\n \"stdbuf\",\n \"stty\",\n \"tee\",\n \"test\",\n \"timeout\",\n // \"true\", // keyword literal already\n \"tty\",\n \"uname\",\n \"unlink\",\n \"uptime\",\n \"users\",\n \"who\",\n \"whoami\",\n \"yes\"\n ];\n\n return {\n name: 'Bash',\n aliases: [ 'sh' ],\n keywords: {\n $pattern: /\\b[a-z][a-z0-9._-]+\\b/,\n keyword: KEYWORDS,\n literal: LITERALS,\n built_in: [\n ...SHELL_BUILT_INS,\n ...BASH_BUILT_INS,\n // Shell modifiers\n \"set\",\n \"shopt\",\n ...ZSH_BUILT_INS,\n ...GNU_CORE_UTILS\n ]\n },\n contains: [\n KNOWN_SHEBANG, // to catch known shells and boost relevancy\n hljs.SHEBANG(), // to catch unknown shells but still highlight the shebang\n FUNCTION,\n ARITHMETIC,\n hljs.HASH_COMMENT_MODE,\n HERE_DOC,\n PATH_MODE,\n QUOTE_STRING,\n ESCAPED_QUOTE,\n APOS_STRING,\n VAR\n ]\n };\n}\n\nmodule.exports = bash;\n","module.exports = __webpack_public_path__ + \"img/aliyunecs.d971267d.svg\";","/*\nLanguage: C++\nCategory: common, system\nWebsite: https://isocpp.org\n*/\n\n/** @type LanguageFn */\nfunction cpp(hljs) {\n const regex = hljs.regex;\n // added for historic reasons because `hljs.C_LINE_COMMENT_MODE` does\n // not include such support nor can we be sure all the grammars depending\n // on it would desire this behavior\n const C_LINE_COMMENT_MODE = hljs.COMMENT('//', '$', { contains: [ { begin: /\\\\\\n/ } ] });\n const DECLTYPE_AUTO_RE = 'decltype\\\\(auto\\\\)';\n const NAMESPACE_RE = '[a-zA-Z_]\\\\w*::';\n const TEMPLATE_ARGUMENT_RE = '<[^<>]+>';\n const FUNCTION_TYPE_RE = '(?!struct)('\n + DECLTYPE_AUTO_RE + '|'\n + regex.optional(NAMESPACE_RE)\n + '[a-zA-Z_]\\\\w*' + regex.optional(TEMPLATE_ARGUMENT_RE)\n + ')';\n\n const CPP_PRIMITIVE_TYPES = {\n className: 'type',\n begin: '\\\\b[a-z\\\\d_]*_t\\\\b'\n };\n\n // https://en.cppreference.com/w/cpp/language/escape\n // \\\\ \\x \\xFF \\u2837 \\u00323747 \\374\n const CHARACTER_ESCAPES = '\\\\\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\\\S)';\n const STRINGS = {\n className: 'string',\n variants: [\n {\n begin: '(u8?|U|L)?\"',\n end: '\"',\n illegal: '\\\\n',\n contains: [ hljs.BACKSLASH_ESCAPE ]\n },\n {\n begin: '(u8?|U|L)?\\'(' + CHARACTER_ESCAPES + '|.)',\n end: '\\'',\n illegal: '.'\n },\n hljs.END_SAME_AS_BEGIN({\n begin: /(?:u8?|U|L)?R\"([^()\\\\ ]{0,16})\\(/,\n end: /\\)([^()\\\\ ]{0,16})\"/\n })\n ]\n };\n\n const NUMBERS = {\n className: 'number',\n variants: [\n { begin: '\\\\b(0b[01\\']+)' },\n { begin: '(-?)\\\\b([\\\\d\\']+(\\\\.[\\\\d\\']*)?|\\\\.[\\\\d\\']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)' },\n { begin: '(-?)(\\\\b0[xX][a-fA-F0-9\\']+|(\\\\b[\\\\d\\']+(\\\\.[\\\\d\\']*)?|\\\\.[\\\\d\\']+)([eE][-+]?[\\\\d\\']+)?)' }\n ],\n relevance: 0\n };\n\n const PREPROCESSOR = {\n className: 'meta',\n begin: /#\\s*[a-z]+\\b/,\n end: /$/,\n keywords: { keyword:\n 'if else elif endif define undef warning error line '\n + 'pragma _Pragma ifdef ifndef include' },\n contains: [\n {\n begin: /\\\\\\n/,\n relevance: 0\n },\n hljs.inherit(STRINGS, { className: 'string' }),\n {\n className: 'string',\n begin: /<.*?>/\n },\n C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE\n ]\n };\n\n const TITLE_MODE = {\n className: 'title',\n begin: regex.optional(NAMESPACE_RE) + hljs.IDENT_RE,\n relevance: 0\n };\n\n const FUNCTION_TITLE = regex.optional(NAMESPACE_RE) + hljs.IDENT_RE + '\\\\s*\\\\(';\n\n // https://en.cppreference.com/w/cpp/keyword\n const RESERVED_KEYWORDS = [\n 'alignas',\n 'alignof',\n 'and',\n 'and_eq',\n 'asm',\n 'atomic_cancel',\n 'atomic_commit',\n 'atomic_noexcept',\n 'auto',\n 'bitand',\n 'bitor',\n 'break',\n 'case',\n 'catch',\n 'class',\n 'co_await',\n 'co_return',\n 'co_yield',\n 'compl',\n 'concept',\n 'const_cast|10',\n 'consteval',\n 'constexpr',\n 'constinit',\n 'continue',\n 'decltype',\n 'default',\n 'delete',\n 'do',\n 'dynamic_cast|10',\n 'else',\n 'enum',\n 'explicit',\n 'export',\n 'extern',\n 'false',\n 'final',\n 'for',\n 'friend',\n 'goto',\n 'if',\n 'import',\n 'inline',\n 'module',\n 'mutable',\n 'namespace',\n 'new',\n 'noexcept',\n 'not',\n 'not_eq',\n 'nullptr',\n 'operator',\n 'or',\n 'or_eq',\n 'override',\n 'private',\n 'protected',\n 'public',\n 'reflexpr',\n 'register',\n 'reinterpret_cast|10',\n 'requires',\n 'return',\n 'sizeof',\n 'static_assert',\n 'static_cast|10',\n 'struct',\n 'switch',\n 'synchronized',\n 'template',\n 'this',\n 'thread_local',\n 'throw',\n 'transaction_safe',\n 'transaction_safe_dynamic',\n 'true',\n 'try',\n 'typedef',\n 'typeid',\n 'typename',\n 'union',\n 'using',\n 'virtual',\n 'volatile',\n 'while',\n 'xor',\n 'xor_eq'\n ];\n\n // https://en.cppreference.com/w/cpp/keyword\n const RESERVED_TYPES = [\n 'bool',\n 'char',\n 'char16_t',\n 'char32_t',\n 'char8_t',\n 'double',\n 'float',\n 'int',\n 'long',\n 'short',\n 'void',\n 'wchar_t',\n 'unsigned',\n 'signed',\n 'const',\n 'static'\n ];\n\n const TYPE_HINTS = [\n 'any',\n 'auto_ptr',\n 'barrier',\n 'binary_semaphore',\n 'bitset',\n 'complex',\n 'condition_variable',\n 'condition_variable_any',\n 'counting_semaphore',\n 'deque',\n 'false_type',\n 'future',\n 'imaginary',\n 'initializer_list',\n 'istringstream',\n 'jthread',\n 'latch',\n 'lock_guard',\n 'multimap',\n 'multiset',\n 'mutex',\n 'optional',\n 'ostringstream',\n 'packaged_task',\n 'pair',\n 'promise',\n 'priority_queue',\n 'queue',\n 'recursive_mutex',\n 'recursive_timed_mutex',\n 'scoped_lock',\n 'set',\n 'shared_future',\n 'shared_lock',\n 'shared_mutex',\n 'shared_timed_mutex',\n 'shared_ptr',\n 'stack',\n 'string_view',\n 'stringstream',\n 'timed_mutex',\n 'thread',\n 'true_type',\n 'tuple',\n 'unique_lock',\n 'unique_ptr',\n 'unordered_map',\n 'unordered_multimap',\n 'unordered_multiset',\n 'unordered_set',\n 'variant',\n 'vector',\n 'weak_ptr',\n 'wstring',\n 'wstring_view'\n ];\n\n const FUNCTION_HINTS = [\n 'abort',\n 'abs',\n 'acos',\n 'apply',\n 'as_const',\n 'asin',\n 'atan',\n 'atan2',\n 'calloc',\n 'ceil',\n 'cerr',\n 'cin',\n 'clog',\n 'cos',\n 'cosh',\n 'cout',\n 'declval',\n 'endl',\n 'exchange',\n 'exit',\n 'exp',\n 'fabs',\n 'floor',\n 'fmod',\n 'forward',\n 'fprintf',\n 'fputs',\n 'free',\n 'frexp',\n 'fscanf',\n 'future',\n 'invoke',\n 'isalnum',\n 'isalpha',\n 'iscntrl',\n 'isdigit',\n 'isgraph',\n 'islower',\n 'isprint',\n 'ispunct',\n 'isspace',\n 'isupper',\n 'isxdigit',\n 'labs',\n 'launder',\n 'ldexp',\n 'log',\n 'log10',\n 'make_pair',\n 'make_shared',\n 'make_shared_for_overwrite',\n 'make_tuple',\n 'make_unique',\n 'malloc',\n 'memchr',\n 'memcmp',\n 'memcpy',\n 'memset',\n 'modf',\n 'move',\n 'pow',\n 'printf',\n 'putchar',\n 'puts',\n 'realloc',\n 'scanf',\n 'sin',\n 'sinh',\n 'snprintf',\n 'sprintf',\n 'sqrt',\n 'sscanf',\n 'std',\n 'stderr',\n 'stdin',\n 'stdout',\n 'strcat',\n 'strchr',\n 'strcmp',\n 'strcpy',\n 'strcspn',\n 'strlen',\n 'strncat',\n 'strncmp',\n 'strncpy',\n 'strpbrk',\n 'strrchr',\n 'strspn',\n 'strstr',\n 'swap',\n 'tan',\n 'tanh',\n 'terminate',\n 'to_underlying',\n 'tolower',\n 'toupper',\n 'vfprintf',\n 'visit',\n 'vprintf',\n 'vsprintf'\n ];\n\n const LITERALS = [\n 'NULL',\n 'false',\n 'nullopt',\n 'nullptr',\n 'true'\n ];\n\n // https://en.cppreference.com/w/cpp/keyword\n const BUILT_IN = [ '_Pragma' ];\n\n const CPP_KEYWORDS = {\n type: RESERVED_TYPES,\n keyword: RESERVED_KEYWORDS,\n literal: LITERALS,\n built_in: BUILT_IN,\n _type_hints: TYPE_HINTS\n };\n\n const FUNCTION_DISPATCH = {\n className: 'function.dispatch',\n relevance: 0,\n keywords: {\n // Only for relevance, not highlighting.\n _hint: FUNCTION_HINTS },\n begin: regex.concat(\n /\\b/,\n /(?!decltype)/,\n /(?!if)/,\n /(?!for)/,\n /(?!switch)/,\n /(?!while)/,\n hljs.IDENT_RE,\n regex.lookahead(/(<[^<>]+>|)\\s*\\(/))\n };\n\n const EXPRESSION_CONTAINS = [\n FUNCTION_DISPATCH,\n PREPROCESSOR,\n CPP_PRIMITIVE_TYPES,\n C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n NUMBERS,\n STRINGS\n ];\n\n const EXPRESSION_CONTEXT = {\n // This mode covers expression context where we can't expect a function\n // definition and shouldn't highlight anything that looks like one:\n // `return some()`, `else if()`, `(x*sum(1, 2))`\n variants: [\n {\n begin: /=/,\n end: /;/\n },\n {\n begin: /\\(/,\n end: /\\)/\n },\n {\n beginKeywords: 'new throw return else',\n end: /;/\n }\n ],\n keywords: CPP_KEYWORDS,\n contains: EXPRESSION_CONTAINS.concat([\n {\n begin: /\\(/,\n end: /\\)/,\n keywords: CPP_KEYWORDS,\n contains: EXPRESSION_CONTAINS.concat([ 'self' ]),\n relevance: 0\n }\n ]),\n relevance: 0\n };\n\n const FUNCTION_DECLARATION = {\n className: 'function',\n begin: '(' + FUNCTION_TYPE_RE + '[\\\\*&\\\\s]+)+' + FUNCTION_TITLE,\n returnBegin: true,\n end: /[{;=]/,\n excludeEnd: true,\n keywords: CPP_KEYWORDS,\n illegal: /[^\\w\\s\\*&:<>.]/,\n contains: [\n { // to prevent it from being confused as the function title\n begin: DECLTYPE_AUTO_RE,\n keywords: CPP_KEYWORDS,\n relevance: 0\n },\n {\n begin: FUNCTION_TITLE,\n returnBegin: true,\n contains: [ TITLE_MODE ],\n relevance: 0\n },\n // needed because we do not have look-behind on the below rule\n // to prevent it from grabbing the final : in a :: pair\n {\n begin: /::/,\n relevance: 0\n },\n // initializers\n {\n begin: /:/,\n endsWithParent: true,\n contains: [\n STRINGS,\n NUMBERS\n ]\n },\n // allow for multiple declarations, e.g.:\n // extern void f(int), g(char);\n {\n relevance: 0,\n match: /,/\n },\n {\n className: 'params',\n begin: /\\(/,\n end: /\\)/,\n keywords: CPP_KEYWORDS,\n relevance: 0,\n contains: [\n C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n STRINGS,\n NUMBERS,\n CPP_PRIMITIVE_TYPES,\n // Count matching parentheses.\n {\n begin: /\\(/,\n end: /\\)/,\n keywords: CPP_KEYWORDS,\n relevance: 0,\n contains: [\n 'self',\n C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n STRINGS,\n NUMBERS,\n CPP_PRIMITIVE_TYPES\n ]\n }\n ]\n },\n CPP_PRIMITIVE_TYPES,\n C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n PREPROCESSOR\n ]\n };\n\n return {\n name: 'C++',\n aliases: [\n 'cc',\n 'c++',\n 'h++',\n 'hpp',\n 'hh',\n 'hxx',\n 'cxx'\n ],\n keywords: CPP_KEYWORDS,\n illegal: ' rooms (9);`\n begin: '\\\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\\\s*<(?!<)',\n end: '>',\n keywords: CPP_KEYWORDS,\n contains: [\n 'self',\n CPP_PRIMITIVE_TYPES\n ]\n },\n {\n begin: hljs.IDENT_RE + '::',\n keywords: CPP_KEYWORDS\n },\n {\n match: [\n // extra complexity to deal with `enum class` and `enum struct`\n /\\b(?:enum(?:\\s+(?:class|struct))?|class|struct|union)/,\n /\\s+/,\n /\\w+/\n ],\n className: {\n 1: 'keyword',\n 3: 'title.class'\n }\n }\n ])\n };\n}\n\nmodule.exports = cpp;\n","const MODES = (hljs) => {\n return {\n IMPORTANT: {\n scope: 'meta',\n begin: '!important'\n },\n BLOCK_COMMENT: hljs.C_BLOCK_COMMENT_MODE,\n HEXCOLOR: {\n scope: 'number',\n begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\\b/\n },\n FUNCTION_DISPATCH: {\n className: \"built_in\",\n begin: /[\\w-]+(?=\\()/\n },\n ATTRIBUTE_SELECTOR_MODE: {\n scope: 'selector-attr',\n begin: /\\[/,\n end: /\\]/,\n illegal: '$',\n contains: [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE\n ]\n },\n CSS_NUMBER_MODE: {\n scope: 'number',\n begin: hljs.NUMBER_RE + '(' +\n '%|em|ex|ch|rem' +\n '|vw|vh|vmin|vmax' +\n '|cm|mm|in|pt|pc|px' +\n '|deg|grad|rad|turn' +\n '|s|ms' +\n '|Hz|kHz' +\n '|dpi|dpcm|dppx' +\n ')?',\n relevance: 0\n },\n CSS_VARIABLE: {\n className: \"attr\",\n begin: /--[A-Za-z][A-Za-z0-9_-]*/\n }\n };\n};\n\nconst TAGS = [\n 'a',\n 'abbr',\n 'address',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'blockquote',\n 'body',\n 'button',\n 'canvas',\n 'caption',\n 'cite',\n 'code',\n 'dd',\n 'del',\n 'details',\n 'dfn',\n 'div',\n 'dl',\n 'dt',\n 'em',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'header',\n 'hgroup',\n 'html',\n 'i',\n 'iframe',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'main',\n 'mark',\n 'menu',\n 'nav',\n 'object',\n 'ol',\n 'p',\n 'q',\n 'quote',\n 'samp',\n 'section',\n 'span',\n 'strong',\n 'summary',\n 'sup',\n 'table',\n 'tbody',\n 'td',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'tr',\n 'ul',\n 'var',\n 'video'\n];\n\nconst MEDIA_FEATURES = [\n 'any-hover',\n 'any-pointer',\n 'aspect-ratio',\n 'color',\n 'color-gamut',\n 'color-index',\n 'device-aspect-ratio',\n 'device-height',\n 'device-width',\n 'display-mode',\n 'forced-colors',\n 'grid',\n 'height',\n 'hover',\n 'inverted-colors',\n 'monochrome',\n 'orientation',\n 'overflow-block',\n 'overflow-inline',\n 'pointer',\n 'prefers-color-scheme',\n 'prefers-contrast',\n 'prefers-reduced-motion',\n 'prefers-reduced-transparency',\n 'resolution',\n 'scan',\n 'scripting',\n 'update',\n 'width',\n // TODO: find a better solution?\n 'min-width',\n 'max-width',\n 'min-height',\n 'max-height'\n];\n\n// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes\nconst PSEUDO_CLASSES = [\n 'active',\n 'any-link',\n 'blank',\n 'checked',\n 'current',\n 'default',\n 'defined',\n 'dir', // dir()\n 'disabled',\n 'drop',\n 'empty',\n 'enabled',\n 'first',\n 'first-child',\n 'first-of-type',\n 'fullscreen',\n 'future',\n 'focus',\n 'focus-visible',\n 'focus-within',\n 'has', // has()\n 'host', // host or host()\n 'host-context', // host-context()\n 'hover',\n 'indeterminate',\n 'in-range',\n 'invalid',\n 'is', // is()\n 'lang', // lang()\n 'last-child',\n 'last-of-type',\n 'left',\n 'link',\n 'local-link',\n 'not', // not()\n 'nth-child', // nth-child()\n 'nth-col', // nth-col()\n 'nth-last-child', // nth-last-child()\n 'nth-last-col', // nth-last-col()\n 'nth-last-of-type', //nth-last-of-type()\n 'nth-of-type', //nth-of-type()\n 'only-child',\n 'only-of-type',\n 'optional',\n 'out-of-range',\n 'past',\n 'placeholder-shown',\n 'read-only',\n 'read-write',\n 'required',\n 'right',\n 'root',\n 'scope',\n 'target',\n 'target-within',\n 'user-invalid',\n 'valid',\n 'visited',\n 'where' // where()\n];\n\n// https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements\nconst PSEUDO_ELEMENTS = [\n 'after',\n 'backdrop',\n 'before',\n 'cue',\n 'cue-region',\n 'first-letter',\n 'first-line',\n 'grammar-error',\n 'marker',\n 'part',\n 'placeholder',\n 'selection',\n 'slotted',\n 'spelling-error'\n];\n\nconst ATTRIBUTES = [\n 'align-content',\n 'align-items',\n 'align-self',\n 'all',\n 'animation',\n 'animation-delay',\n 'animation-direction',\n 'animation-duration',\n 'animation-fill-mode',\n 'animation-iteration-count',\n 'animation-name',\n 'animation-play-state',\n 'animation-timing-function',\n 'backface-visibility',\n 'background',\n 'background-attachment',\n 'background-blend-mode',\n 'background-clip',\n 'background-color',\n 'background-image',\n 'background-origin',\n 'background-position',\n 'background-repeat',\n 'background-size',\n 'block-size',\n 'border',\n 'border-block',\n 'border-block-color',\n 'border-block-end',\n 'border-block-end-color',\n 'border-block-end-style',\n 'border-block-end-width',\n 'border-block-start',\n 'border-block-start-color',\n 'border-block-start-style',\n 'border-block-start-width',\n 'border-block-style',\n 'border-block-width',\n 'border-bottom',\n 'border-bottom-color',\n 'border-bottom-left-radius',\n 'border-bottom-right-radius',\n 'border-bottom-style',\n 'border-bottom-width',\n 'border-collapse',\n 'border-color',\n 'border-image',\n 'border-image-outset',\n 'border-image-repeat',\n 'border-image-slice',\n 'border-image-source',\n 'border-image-width',\n 'border-inline',\n 'border-inline-color',\n 'border-inline-end',\n 'border-inline-end-color',\n 'border-inline-end-style',\n 'border-inline-end-width',\n 'border-inline-start',\n 'border-inline-start-color',\n 'border-inline-start-style',\n 'border-inline-start-width',\n 'border-inline-style',\n 'border-inline-width',\n 'border-left',\n 'border-left-color',\n 'border-left-style',\n 'border-left-width',\n 'border-radius',\n 'border-right',\n 'border-right-color',\n 'border-right-style',\n 'border-right-width',\n 'border-spacing',\n 'border-style',\n 'border-top',\n 'border-top-color',\n 'border-top-left-radius',\n 'border-top-right-radius',\n 'border-top-style',\n 'border-top-width',\n 'border-width',\n 'bottom',\n 'box-decoration-break',\n 'box-shadow',\n 'box-sizing',\n 'break-after',\n 'break-before',\n 'break-inside',\n 'caption-side',\n 'caret-color',\n 'clear',\n 'clip',\n 'clip-path',\n 'clip-rule',\n 'color',\n 'column-count',\n 'column-fill',\n 'column-gap',\n 'column-rule',\n 'column-rule-color',\n 'column-rule-style',\n 'column-rule-width',\n 'column-span',\n 'column-width',\n 'columns',\n 'contain',\n 'content',\n 'content-visibility',\n 'counter-increment',\n 'counter-reset',\n 'cue',\n 'cue-after',\n 'cue-before',\n 'cursor',\n 'direction',\n 'display',\n 'empty-cells',\n 'filter',\n 'flex',\n 'flex-basis',\n 'flex-direction',\n 'flex-flow',\n 'flex-grow',\n 'flex-shrink',\n 'flex-wrap',\n 'float',\n 'flow',\n 'font',\n 'font-display',\n 'font-family',\n 'font-feature-settings',\n 'font-kerning',\n 'font-language-override',\n 'font-size',\n 'font-size-adjust',\n 'font-smoothing',\n 'font-stretch',\n 'font-style',\n 'font-synthesis',\n 'font-variant',\n 'font-variant-caps',\n 'font-variant-east-asian',\n 'font-variant-ligatures',\n 'font-variant-numeric',\n 'font-variant-position',\n 'font-variation-settings',\n 'font-weight',\n 'gap',\n 'glyph-orientation-vertical',\n 'grid',\n 'grid-area',\n 'grid-auto-columns',\n 'grid-auto-flow',\n 'grid-auto-rows',\n 'grid-column',\n 'grid-column-end',\n 'grid-column-start',\n 'grid-gap',\n 'grid-row',\n 'grid-row-end',\n 'grid-row-start',\n 'grid-template',\n 'grid-template-areas',\n 'grid-template-columns',\n 'grid-template-rows',\n 'hanging-punctuation',\n 'height',\n 'hyphens',\n 'icon',\n 'image-orientation',\n 'image-rendering',\n 'image-resolution',\n 'ime-mode',\n 'inline-size',\n 'isolation',\n 'justify-content',\n 'left',\n 'letter-spacing',\n 'line-break',\n 'line-height',\n 'list-style',\n 'list-style-image',\n 'list-style-position',\n 'list-style-type',\n 'margin',\n 'margin-block',\n 'margin-block-end',\n 'margin-block-start',\n 'margin-bottom',\n 'margin-inline',\n 'margin-inline-end',\n 'margin-inline-start',\n 'margin-left',\n 'margin-right',\n 'margin-top',\n 'marks',\n 'mask',\n 'mask-border',\n 'mask-border-mode',\n 'mask-border-outset',\n 'mask-border-repeat',\n 'mask-border-slice',\n 'mask-border-source',\n 'mask-border-width',\n 'mask-clip',\n 'mask-composite',\n 'mask-image',\n 'mask-mode',\n 'mask-origin',\n 'mask-position',\n 'mask-repeat',\n 'mask-size',\n 'mask-type',\n 'max-block-size',\n 'max-height',\n 'max-inline-size',\n 'max-width',\n 'min-block-size',\n 'min-height',\n 'min-inline-size',\n 'min-width',\n 'mix-blend-mode',\n 'nav-down',\n 'nav-index',\n 'nav-left',\n 'nav-right',\n 'nav-up',\n 'none',\n 'normal',\n 'object-fit',\n 'object-position',\n 'opacity',\n 'order',\n 'orphans',\n 'outline',\n 'outline-color',\n 'outline-offset',\n 'outline-style',\n 'outline-width',\n 'overflow',\n 'overflow-wrap',\n 'overflow-x',\n 'overflow-y',\n 'padding',\n 'padding-block',\n 'padding-block-end',\n 'padding-block-start',\n 'padding-bottom',\n 'padding-inline',\n 'padding-inline-end',\n 'padding-inline-start',\n 'padding-left',\n 'padding-right',\n 'padding-top',\n 'page-break-after',\n 'page-break-before',\n 'page-break-inside',\n 'pause',\n 'pause-after',\n 'pause-before',\n 'perspective',\n 'perspective-origin',\n 'pointer-events',\n 'position',\n 'quotes',\n 'resize',\n 'rest',\n 'rest-after',\n 'rest-before',\n 'right',\n 'row-gap',\n 'scroll-margin',\n 'scroll-margin-block',\n 'scroll-margin-block-end',\n 'scroll-margin-block-start',\n 'scroll-margin-bottom',\n 'scroll-margin-inline',\n 'scroll-margin-inline-end',\n 'scroll-margin-inline-start',\n 'scroll-margin-left',\n 'scroll-margin-right',\n 'scroll-margin-top',\n 'scroll-padding',\n 'scroll-padding-block',\n 'scroll-padding-block-end',\n 'scroll-padding-block-start',\n 'scroll-padding-bottom',\n 'scroll-padding-inline',\n 'scroll-padding-inline-end',\n 'scroll-padding-inline-start',\n 'scroll-padding-left',\n 'scroll-padding-right',\n 'scroll-padding-top',\n 'scroll-snap-align',\n 'scroll-snap-stop',\n 'scroll-snap-type',\n 'scrollbar-color',\n 'scrollbar-gutter',\n 'scrollbar-width',\n 'shape-image-threshold',\n 'shape-margin',\n 'shape-outside',\n 'speak',\n 'speak-as',\n 'src', // @font-face\n 'tab-size',\n 'table-layout',\n 'text-align',\n 'text-align-all',\n 'text-align-last',\n 'text-combine-upright',\n 'text-decoration',\n 'text-decoration-color',\n 'text-decoration-line',\n 'text-decoration-style',\n 'text-emphasis',\n 'text-emphasis-color',\n 'text-emphasis-position',\n 'text-emphasis-style',\n 'text-indent',\n 'text-justify',\n 'text-orientation',\n 'text-overflow',\n 'text-rendering',\n 'text-shadow',\n 'text-transform',\n 'text-underline-position',\n 'top',\n 'transform',\n 'transform-box',\n 'transform-origin',\n 'transform-style',\n 'transition',\n 'transition-delay',\n 'transition-duration',\n 'transition-property',\n 'transition-timing-function',\n 'unicode-bidi',\n 'vertical-align',\n 'visibility',\n 'voice-balance',\n 'voice-duration',\n 'voice-family',\n 'voice-pitch',\n 'voice-range',\n 'voice-rate',\n 'voice-stress',\n 'voice-volume',\n 'white-space',\n 'widows',\n 'width',\n 'will-change',\n 'word-break',\n 'word-spacing',\n 'word-wrap',\n 'writing-mode',\n 'z-index'\n // reverse makes sure longer attributes `font-weight` are matched fully\n // instead of getting false positives on say `font`\n].reverse();\n\n/*\nLanguage: SCSS\nDescription: Scss is an extension of the syntax of CSS.\nAuthor: Kurt Emch \nWebsite: https://sass-lang.com\nCategory: common, css, web\n*/\n\n/** @type LanguageFn */\nfunction scss(hljs) {\n const modes = MODES(hljs);\n const PSEUDO_ELEMENTS$1 = PSEUDO_ELEMENTS;\n const PSEUDO_CLASSES$1 = PSEUDO_CLASSES;\n\n const AT_IDENTIFIER = '@[a-z-]+'; // @font-face\n const AT_MODIFIERS = \"and or not only\";\n const IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*';\n const VARIABLE = {\n className: 'variable',\n begin: '(\\\\$' + IDENT_RE + ')\\\\b',\n relevance: 0\n };\n\n return {\n name: 'SCSS',\n case_insensitive: true,\n illegal: '[=/|\\']',\n contains: [\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n // to recognize keyframe 40% etc which are outside the scope of our\n // attribute value mode\n modes.CSS_NUMBER_MODE,\n {\n className: 'selector-id',\n begin: '#[A-Za-z0-9_-]+',\n relevance: 0\n },\n {\n className: 'selector-class',\n begin: '\\\\.[A-Za-z0-9_-]+',\n relevance: 0\n },\n modes.ATTRIBUTE_SELECTOR_MODE,\n {\n className: 'selector-tag',\n begin: '\\\\b(' + TAGS.join('|') + ')\\\\b',\n // was there, before, but why?\n relevance: 0\n },\n {\n className: 'selector-pseudo',\n begin: ':(' + PSEUDO_CLASSES$1.join('|') + ')'\n },\n {\n className: 'selector-pseudo',\n begin: ':(:)?(' + PSEUDO_ELEMENTS$1.join('|') + ')'\n },\n VARIABLE,\n { // pseudo-selector params\n begin: /\\(/,\n end: /\\)/,\n contains: [ modes.CSS_NUMBER_MODE ]\n },\n modes.CSS_VARIABLE,\n {\n className: 'attribute',\n begin: '\\\\b(' + ATTRIBUTES.join('|') + ')\\\\b'\n },\n { begin: '\\\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\\\b' },\n {\n begin: /:/,\n end: /[;}{]/,\n relevance: 0,\n contains: [\n modes.BLOCK_COMMENT,\n VARIABLE,\n modes.HEXCOLOR,\n modes.CSS_NUMBER_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.APOS_STRING_MODE,\n modes.IMPORTANT,\n modes.FUNCTION_DISPATCH\n ]\n },\n // matching these here allows us to treat them more like regular CSS\n // rules so everything between the {} gets regular rule highlighting,\n // which is what we want for page and font-face\n {\n begin: '@(page|font-face)',\n keywords: {\n $pattern: AT_IDENTIFIER,\n keyword: '@page @font-face'\n }\n },\n {\n begin: '@',\n end: '[{;]',\n returnBegin: true,\n keywords: {\n $pattern: /[a-z-]+/,\n keyword: AT_MODIFIERS,\n attribute: MEDIA_FEATURES.join(\" \")\n },\n contains: [\n {\n begin: AT_IDENTIFIER,\n className: \"keyword\"\n },\n {\n begin: /[a-z-]+(?=:)/,\n className: \"attribute\"\n },\n VARIABLE,\n hljs.QUOTE_STRING_MODE,\n hljs.APOS_STRING_MODE,\n modes.HEXCOLOR,\n modes.CSS_NUMBER_MODE\n ]\n },\n modes.FUNCTION_DISPATCH\n ]\n };\n}\n\nmodule.exports = scss;\n","module.exports = __webpack_public_path__ + \"img/cloudca.1095d0cc.svg\";","/*\nLanguage: Markdown\nRequires: xml.js\nAuthor: John Crepezzi \nWebsite: https://daringfireball.net/projects/markdown/\nCategory: common, markup\n*/\n\nfunction markdown(hljs) {\n const regex = hljs.regex;\n const INLINE_HTML = {\n begin: /<\\/?[A-Za-z_]/,\n end: '>',\n subLanguage: 'xml',\n relevance: 0\n };\n const HORIZONTAL_RULE = {\n begin: '^[-\\\\*]{3,}',\n end: '$'\n };\n const CODE = {\n className: 'code',\n variants: [\n // TODO: fix to allow these to work with sublanguage also\n { begin: '(`{3,})[^`](.|\\\\n)*?\\\\1`*[ ]*' },\n { begin: '(~{3,})[^~](.|\\\\n)*?\\\\1~*[ ]*' },\n // needed to allow markdown as a sublanguage to work\n {\n begin: '```',\n end: '```+[ ]*$'\n },\n {\n begin: '~~~',\n end: '~~~+[ ]*$'\n },\n { begin: '`.+?`' },\n {\n begin: '(?=^( {4}|\\\\t))',\n // use contains to gobble up multiple lines to allow the block to be whatever size\n // but only have a single open/close tag vs one per line\n contains: [\n {\n begin: '^( {4}|\\\\t)',\n end: '(\\\\n)$'\n }\n ],\n relevance: 0\n }\n ]\n };\n const LIST = {\n className: 'bullet',\n begin: '^[ \\t]*([*+-]|(\\\\d+\\\\.))(?=\\\\s+)',\n end: '\\\\s+',\n excludeEnd: true\n };\n const LINK_REFERENCE = {\n begin: /^\\[[^\\n]+\\]:/,\n returnBegin: true,\n contains: [\n {\n className: 'symbol',\n begin: /\\[/,\n end: /\\]/,\n excludeBegin: true,\n excludeEnd: true\n },\n {\n className: 'link',\n begin: /:\\s*/,\n end: /$/,\n excludeBegin: true\n }\n ]\n };\n const URL_SCHEME = /[A-Za-z][A-Za-z0-9+.-]*/;\n const LINK = {\n variants: [\n // too much like nested array access in so many languages\n // to have any real relevance\n {\n begin: /\\[.+?\\]\\[.*?\\]/,\n relevance: 0\n },\n // popular internet URLs\n {\n begin: /\\[.+?\\]\\(((data|javascript|mailto):|(?:http|ftp)s?:\\/\\/).*?\\)/,\n relevance: 2\n },\n {\n begin: regex.concat(/\\[.+?\\]\\(/, URL_SCHEME, /:\\/\\/.*?\\)/),\n relevance: 2\n },\n // relative urls\n {\n begin: /\\[.+?\\]\\([./?&#].*?\\)/,\n relevance: 1\n },\n // whatever else, lower relevance (might not be a link at all)\n {\n begin: /\\[.*?\\]\\(.*?\\)/,\n relevance: 0\n }\n ],\n returnBegin: true,\n contains: [\n {\n // empty strings for alt or link text\n match: /\\[(?=\\])/ },\n {\n className: 'string',\n relevance: 0,\n begin: '\\\\[',\n end: '\\\\]',\n excludeBegin: true,\n returnEnd: true\n },\n {\n className: 'link',\n relevance: 0,\n begin: '\\\\]\\\\(',\n end: '\\\\)',\n excludeBegin: true,\n excludeEnd: true\n },\n {\n className: 'symbol',\n relevance: 0,\n begin: '\\\\]\\\\[',\n end: '\\\\]',\n excludeBegin: true,\n excludeEnd: true\n }\n ]\n };\n const BOLD = {\n className: 'strong',\n contains: [], // defined later\n variants: [\n {\n begin: /_{2}/,\n end: /_{2}/\n },\n {\n begin: /\\*{2}/,\n end: /\\*{2}/\n }\n ]\n };\n const ITALIC = {\n className: 'emphasis',\n contains: [], // defined later\n variants: [\n {\n begin: /\\*(?!\\*)/,\n end: /\\*/\n },\n {\n begin: /_(?!_)/,\n end: /_/,\n relevance: 0\n }\n ]\n };\n\n // 3 level deep nesting is not allowed because it would create confusion\n // in cases like `***testing***` because where we don't know if the last\n // `***` is starting a new bold/italic or finishing the last one\n const BOLD_WITHOUT_ITALIC = hljs.inherit(BOLD, { contains: [] });\n const ITALIC_WITHOUT_BOLD = hljs.inherit(ITALIC, { contains: [] });\n BOLD.contains.push(ITALIC_WITHOUT_BOLD);\n ITALIC.contains.push(BOLD_WITHOUT_ITALIC);\n\n let CONTAINABLE = [\n INLINE_HTML,\n LINK\n ];\n\n [\n BOLD,\n ITALIC,\n BOLD_WITHOUT_ITALIC,\n ITALIC_WITHOUT_BOLD\n ].forEach(m => {\n m.contains = m.contains.concat(CONTAINABLE);\n });\n\n CONTAINABLE = CONTAINABLE.concat(BOLD, ITALIC);\n\n const HEADER = {\n className: 'section',\n variants: [\n {\n begin: '^#{1,6}',\n end: '$',\n contains: CONTAINABLE\n },\n {\n begin: '(?=^.+?\\\\n[=-]{2,}$)',\n contains: [\n { begin: '^[=-]*$' },\n {\n begin: '^',\n end: \"\\\\n\",\n contains: CONTAINABLE\n }\n ]\n }\n ]\n };\n\n const BLOCKQUOTE = {\n className: 'quote',\n begin: '^>\\\\s+',\n contains: CONTAINABLE,\n end: '$'\n };\n\n return {\n name: 'Markdown',\n aliases: [\n 'md',\n 'mkdown',\n 'mkd'\n ],\n contains: [\n HEADER,\n INLINE_HTML,\n LIST,\n BOLD,\n ITALIC,\n BLOCKQUOTE,\n CODE,\n HORIZONTAL_RULE,\n LINK,\n LINK_REFERENCE\n ]\n };\n}\n\nmodule.exports = markdown;\n","module.exports = __webpack_public_path__ + \"img/oci.8b52fe45.svg\";","/*\nLanguage: Elm\nAuthor: Janis Voigtlaender \nWebsite: https://elm-lang.org\nCategory: functional\n*/\n\n/** @type LanguageFn */\nfunction elm(hljs) {\n const COMMENT = { variants: [\n hljs.COMMENT('--', '$'),\n hljs.COMMENT(\n /\\{-/,\n /-\\}/,\n { contains: [ 'self' ] }\n )\n ] };\n\n const CONSTRUCTOR = {\n className: 'type',\n begin: '\\\\b[A-Z][\\\\w\\']*', // TODO: other constructors (built-in, infix).\n relevance: 0\n };\n\n const LIST = {\n begin: '\\\\(',\n end: '\\\\)',\n illegal: '\"',\n contains: [\n {\n className: 'type',\n begin: '\\\\b[A-Z][\\\\w]*(\\\\((\\\\.\\\\.|,|\\\\w+)\\\\))?'\n },\n COMMENT\n ]\n };\n\n const RECORD = {\n begin: /\\{/,\n end: /\\}/,\n contains: LIST.contains\n };\n\n const CHARACTER = {\n className: 'string',\n begin: '\\'\\\\\\\\?.',\n end: '\\'',\n illegal: '.'\n };\n\n const KEYWORDS = [\n \"let\",\n \"in\",\n \"if\",\n \"then\",\n \"else\",\n \"case\",\n \"of\",\n \"where\",\n \"module\",\n \"import\",\n \"exposing\",\n \"type\",\n \"alias\",\n \"as\",\n \"infix\",\n \"infixl\",\n \"infixr\",\n \"port\",\n \"effect\",\n \"command\",\n \"subscription\"\n ];\n\n return {\n name: 'Elm',\n keywords: KEYWORDS,\n contains: [\n\n // Top-level constructions.\n\n {\n beginKeywords: 'port effect module',\n end: 'exposing',\n keywords: 'port effect module where command subscription exposing',\n contains: [\n LIST,\n COMMENT\n ],\n illegal: '\\\\W\\\\.|;'\n },\n {\n begin: 'import',\n end: '$',\n keywords: 'import as exposing',\n contains: [\n LIST,\n COMMENT\n ],\n illegal: '\\\\W\\\\.|;'\n },\n {\n begin: 'type',\n end: '$',\n keywords: 'type alias',\n contains: [\n CONSTRUCTOR,\n LIST,\n RECORD,\n COMMENT\n ]\n },\n {\n beginKeywords: 'infix infixl infixr',\n end: '$',\n contains: [\n hljs.C_NUMBER_MODE,\n COMMENT\n ]\n },\n {\n begin: 'port',\n end: '$',\n keywords: 'port',\n contains: [ COMMENT ]\n },\n\n // Literals and names.\n CHARACTER,\n hljs.QUOTE_STRING_MODE,\n hljs.C_NUMBER_MODE,\n CONSTRUCTOR,\n hljs.inherit(hljs.TITLE_MODE, { begin: '^[_a-z][\\\\w\\']*' }),\n COMMENT,\n\n { // No markup, relevance booster\n begin: '->|<-' }\n ],\n illegal: /;/\n };\n}\n\nmodule.exports = elm;\n","module.exports = __webpack_public_path__ + \"img/vmwarevsphere-black.2f9d3f1d.svg\";","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CodeMirror.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CodeMirror.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CodeMirror.vue?vue&type=template&id=5390b64f\"\nimport script from \"./CodeMirror.vue?vue&type=script&lang=js\"\nexport * from \"./CodeMirror.vue?vue&type=script&lang=js\"\nimport style0 from \"./CodeMirror.vue?vue&type=style&index=0&id=5390b64f&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/baidu.59230de0.svg\";","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ArrayList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ArrayList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ArrayList.vue?vue&type=template&id=0fc06aaa&scoped=true\"\nimport script from \"./ArrayList.vue?vue&type=script&lang=js\"\nexport * from \"./ArrayList.vue?vue&type=script&lang=js\"\nimport style0 from \"./ArrayList.vue?vue&type=style&index=0&id=0fc06aaa&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0fc06aaa\",\n null\n \n)\n\nexport default component.exports","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Select.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Select.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Select.vue?vue&type=template&id=55a8f708&scoped=true\"\nimport script from \"./Select.vue?vue&type=script&lang=js\"\nexport * from \"./Select.vue?vue&type=script&lang=js\"\nimport style0 from \"./Select.vue?vue&type=style&index=0&id=55a8f708&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"55a8f708\",\n null\n \n)\n\nexport default component.exports","\n\n \n \n \n \n {{ addLabel }}\n \n \n \n \n \n\n\n\n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./KeyValue.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./KeyValue.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./KeyValue.vue?vue&type=template&id=0c22da1d\"\nimport script from \"./KeyValue.vue?vue&type=script&lang=js\"\nexport * from \"./KeyValue.vue?vue&type=script&lang=js\"\nimport style0 from \"./KeyValue.vue?vue&type=style&index=0&id=0c22da1d&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".select-credentials[data-v-6508537a]{flex-grow:1}.select-credentials__showingForm[data-v-6508537a]{flex-grow:0}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","module.exports = __webpack_public_path__ + \"img/openstack-black.46740f63.svg\";","module.exports = __webpack_public_path__ + \"img/local-cluster.c77b2023.svg\";","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.html = exports.parse = exports.defaultDiff2HtmlConfig = void 0;\nvar DiffParser = __importStar(require(\"./diff-parser\"));\nvar fileListPrinter = __importStar(require(\"./file-list-renderer\"));\nvar line_by_line_renderer_1 = __importStar(require(\"./line-by-line-renderer\"));\nvar side_by_side_renderer_1 = __importStar(require(\"./side-by-side-renderer\"));\nvar types_1 = require(\"./types\");\nvar hoganjs_utils_1 = __importDefault(require(\"./hoganjs-utils\"));\nexports.defaultDiff2HtmlConfig = __assign(__assign(__assign({}, line_by_line_renderer_1.defaultLineByLineRendererConfig), side_by_side_renderer_1.defaultSideBySideRendererConfig), { outputFormat: types_1.OutputFormatType.LINE_BY_LINE, drawFileList: true });\nfunction parse(diffInput, configuration) {\n if (configuration === void 0) { configuration = {}; }\n return DiffParser.parse(diffInput, __assign(__assign({}, exports.defaultDiff2HtmlConfig), configuration));\n}\nexports.parse = parse;\nfunction html(diffInput, configuration) {\n if (configuration === void 0) { configuration = {}; }\n var config = __assign(__assign({}, exports.defaultDiff2HtmlConfig), configuration);\n var diffJson = typeof diffInput === 'string' ? DiffParser.parse(diffInput, config) : diffInput;\n var hoganUtils = new hoganjs_utils_1.default(config);\n var fileList = config.drawFileList ? fileListPrinter.render(diffJson, hoganUtils) : '';\n var diffOutput = config.outputFormat === 'side-by-side'\n ? new side_by_side_renderer_1.default(hoganUtils, config).render(diffJson)\n : new line_by_line_renderer_1.default(hoganUtils, config).render(diffJson);\n return fileList + diffOutput;\n}\nexports.html = html;\n//# sourceMappingURL=diff2html.js.map","module.exports = __webpack_public_path__ + \"img/packet.5fce6e98.svg\";","module.exports = __webpack_public_path__ + \"img/amazoneks.08036fe5.svg\";","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Diff2HtmlUI = exports.defaultDiff2HtmlUIConfig = void 0;\nvar highlight_js_helpers_1 = require(\"./highlight.js-helpers\");\nvar diff2html_1 = require(\"../../diff2html\");\nexports.defaultDiff2HtmlUIConfig = __assign(__assign({}, diff2html_1.defaultDiff2HtmlConfig), { synchronisedScroll: true, highlight: true, fileListToggle: true, fileListStartVisible: false, highlightLanguages: new Map(), smartSelection: true, fileContentToggle: true, stickyFileHeaders: true });\nvar Diff2HtmlUI = (function () {\n function Diff2HtmlUI(target, diffInput, config, hljs) {\n if (config === void 0) { config = {}; }\n this.hljs = null;\n this.currentSelectionColumnId = -1;\n this.config = __assign(__assign({}, exports.defaultDiff2HtmlUIConfig), config);\n this.diffHtml = diffInput !== undefined ? (0, diff2html_1.html)(diffInput, this.config) : target.innerHTML;\n this.targetElement = target;\n if (hljs !== undefined)\n this.hljs = hljs;\n }\n Diff2HtmlUI.prototype.draw = function () {\n this.targetElement.innerHTML = this.diffHtml;\n if (this.config.synchronisedScroll)\n this.synchronisedScroll();\n if (this.config.highlight)\n this.highlightCode();\n if (this.config.fileListToggle)\n this.fileListToggle(this.config.fileListStartVisible);\n if (this.config.fileContentToggle)\n this.fileContentToggle();\n if (this.config.stickyFileHeaders)\n this.stickyFileHeaders();\n };\n Diff2HtmlUI.prototype.synchronisedScroll = function () {\n this.targetElement.querySelectorAll('.d2h-file-wrapper').forEach(function (wrapper) {\n var _a = Array().slice.call(wrapper.querySelectorAll('.d2h-file-side-diff')), left = _a[0], right = _a[1];\n if (left === undefined || right === undefined)\n return;\n var onScroll = function (event) {\n if (event === null || event.target === null)\n return;\n if (event.target === left) {\n right.scrollTop = left.scrollTop;\n right.scrollLeft = left.scrollLeft;\n }\n else {\n left.scrollTop = right.scrollTop;\n left.scrollLeft = right.scrollLeft;\n }\n };\n left.addEventListener('scroll', onScroll);\n right.addEventListener('scroll', onScroll);\n });\n };\n Diff2HtmlUI.prototype.fileListToggle = function (startVisible) {\n var showBtn = this.targetElement.querySelector('.d2h-show');\n var hideBtn = this.targetElement.querySelector('.d2h-hide');\n var fileList = this.targetElement.querySelector('.d2h-file-list');\n if (showBtn === null || hideBtn === null || fileList === null)\n return;\n var show = function () {\n showBtn.style.display = 'none';\n hideBtn.style.display = 'inline';\n fileList.style.display = 'block';\n };\n var hide = function () {\n showBtn.style.display = 'inline';\n hideBtn.style.display = 'none';\n fileList.style.display = 'none';\n };\n showBtn.addEventListener('click', function () { return show(); });\n hideBtn.addEventListener('click', function () { return hide(); });\n var hashTag = this.getHashTag();\n if (hashTag === 'files-summary-show')\n show();\n else if (hashTag === 'files-summary-hide')\n hide();\n else if (startVisible)\n show();\n else\n hide();\n };\n Diff2HtmlUI.prototype.fileContentToggle = function () {\n this.targetElement.querySelectorAll('.d2h-file-collapse').forEach(function (fileContentToggleBtn) {\n fileContentToggleBtn.style.display = 'flex';\n var toggleFileContents = function (selector) {\n var _a;\n var fileContents = (_a = fileContentToggleBtn\n .closest('.d2h-file-wrapper')) === null || _a === void 0 ? void 0 : _a.querySelector(selector);\n if (fileContents !== null && fileContents !== undefined) {\n fileContentToggleBtn.classList.toggle('d2h-selected');\n fileContents.classList.toggle('d2h-d-none');\n }\n };\n var toggleHandler = function (e) {\n if (fileContentToggleBtn === e.target)\n return;\n toggleFileContents('.d2h-file-diff');\n toggleFileContents('.d2h-files-diff');\n };\n fileContentToggleBtn.addEventListener('click', function (e) { return toggleHandler(e); });\n });\n };\n Diff2HtmlUI.prototype.highlightCode = function () {\n var _this = this;\n var hljs = this.hljs;\n if (hljs === null) {\n throw new Error('Missing a `highlight.js` implementation. Please provide one when instantiating Diff2HtmlUI.');\n }\n var files = this.targetElement.querySelectorAll('.d2h-file-wrapper');\n files.forEach(function (file) {\n var language = file.getAttribute('data-lang');\n if (!(_this.config.highlightLanguages instanceof Map)) {\n _this.config.highlightLanguages = new Map(Object.entries(_this.config.highlightLanguages));\n }\n var hljsLanguage = language && _this.config.highlightLanguages.has(language)\n ?\n _this.config.highlightLanguages.get(language)\n : language\n ? (0, highlight_js_helpers_1.getLanguage)(language)\n : 'plaintext';\n var codeLines = file.querySelectorAll('.d2h-code-line-ctn');\n codeLines.forEach(function (line) {\n var text = line.textContent;\n var lineParent = line.parentNode;\n if (text === null || lineParent === null || !_this.isElement(lineParent))\n return;\n var result = (0, highlight_js_helpers_1.closeTags)(hljs.highlight(text, {\n language: hljsLanguage,\n ignoreIllegals: true,\n }));\n var originalStream = (0, highlight_js_helpers_1.nodeStream)(line);\n if (originalStream.length) {\n var resultNode = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');\n resultNode.innerHTML = result.value;\n result.value = (0, highlight_js_helpers_1.mergeStreams)(originalStream, (0, highlight_js_helpers_1.nodeStream)(resultNode), text);\n }\n line.classList.add('hljs');\n if (result.language) {\n line.classList.add(result.language);\n }\n line.innerHTML = result.value;\n });\n });\n };\n Diff2HtmlUI.prototype.stickyFileHeaders = function () {\n this.targetElement.querySelectorAll('.d2h-file-header').forEach(function (header) {\n header.classList.add('d2h-sticky-header');\n });\n };\n Diff2HtmlUI.prototype.smartSelection = function () {\n console.warn('Smart selection is now enabled by default with CSS. No need to call this method anymore.');\n };\n Diff2HtmlUI.prototype.getHashTag = function () {\n var docUrl = document.URL;\n var hashTagIndex = docUrl.indexOf('#');\n var hashTag = null;\n if (hashTagIndex !== -1) {\n hashTag = docUrl.substr(hashTagIndex + 1);\n }\n return hashTag;\n };\n Diff2HtmlUI.prototype.isElement = function (arg) {\n return arg !== null && (arg === null || arg === void 0 ? void 0 : arg.classList) !== undefined;\n };\n return Diff2HtmlUI;\n}());\nexports.Diff2HtmlUI = Diff2HtmlUI;\n//# sourceMappingURL=diff2html-ui-base.js.map","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectCredential.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./SelectCredential.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SelectCredential.vue?vue&type=template&id=6508537a&scoped=true\"\nimport script from \"./SelectCredential.vue?vue&type=script&lang=js\"\nexport * from \"./SelectCredential.vue?vue&type=script&lang=js\"\nimport style0 from \"./SelectCredential.vue?vue&type=style&index=0&id=6508537a&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6508537a\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/custom.73e585f1.svg\";","/*\nLanguage: Gradle\nDescription: Gradle is an open-source build automation tool focused on flexibility and performance.\nWebsite: https://gradle.org\nAuthor: Damian Mee \n*/\n\nfunction gradle(hljs) {\n const KEYWORDS = [\n \"task\",\n \"project\",\n \"allprojects\",\n \"subprojects\",\n \"artifacts\",\n \"buildscript\",\n \"configurations\",\n \"dependencies\",\n \"repositories\",\n \"sourceSets\",\n \"description\",\n \"delete\",\n \"from\",\n \"into\",\n \"include\",\n \"exclude\",\n \"source\",\n \"classpath\",\n \"destinationDir\",\n \"includes\",\n \"options\",\n \"sourceCompatibility\",\n \"targetCompatibility\",\n \"group\",\n \"flatDir\",\n \"doLast\",\n \"doFirst\",\n \"flatten\",\n \"todir\",\n \"fromdir\",\n \"ant\",\n \"def\",\n \"abstract\",\n \"break\",\n \"case\",\n \"catch\",\n \"continue\",\n \"default\",\n \"do\",\n \"else\",\n \"extends\",\n \"final\",\n \"finally\",\n \"for\",\n \"if\",\n \"implements\",\n \"instanceof\",\n \"native\",\n \"new\",\n \"private\",\n \"protected\",\n \"public\",\n \"return\",\n \"static\",\n \"switch\",\n \"synchronized\",\n \"throw\",\n \"throws\",\n \"transient\",\n \"try\",\n \"volatile\",\n \"while\",\n \"strictfp\",\n \"package\",\n \"import\",\n \"false\",\n \"null\",\n \"super\",\n \"this\",\n \"true\",\n \"antlrtask\",\n \"checkstyle\",\n \"codenarc\",\n \"copy\",\n \"boolean\",\n \"byte\",\n \"char\",\n \"class\",\n \"double\",\n \"float\",\n \"int\",\n \"interface\",\n \"long\",\n \"short\",\n \"void\",\n \"compile\",\n \"runTime\",\n \"file\",\n \"fileTree\",\n \"abs\",\n \"any\",\n \"append\",\n \"asList\",\n \"asWritable\",\n \"call\",\n \"collect\",\n \"compareTo\",\n \"count\",\n \"div\",\n \"dump\",\n \"each\",\n \"eachByte\",\n \"eachFile\",\n \"eachLine\",\n \"every\",\n \"find\",\n \"findAll\",\n \"flatten\",\n \"getAt\",\n \"getErr\",\n \"getIn\",\n \"getOut\",\n \"getText\",\n \"grep\",\n \"immutable\",\n \"inject\",\n \"inspect\",\n \"intersect\",\n \"invokeMethods\",\n \"isCase\",\n \"join\",\n \"leftShift\",\n \"minus\",\n \"multiply\",\n \"newInputStream\",\n \"newOutputStream\",\n \"newPrintWriter\",\n \"newReader\",\n \"newWriter\",\n \"next\",\n \"plus\",\n \"pop\",\n \"power\",\n \"previous\",\n \"print\",\n \"println\",\n \"push\",\n \"putAt\",\n \"read\",\n \"readBytes\",\n \"readLines\",\n \"reverse\",\n \"reverseEach\",\n \"round\",\n \"size\",\n \"sort\",\n \"splitEachLine\",\n \"step\",\n \"subMap\",\n \"times\",\n \"toInteger\",\n \"toList\",\n \"tokenize\",\n \"upto\",\n \"waitForOrKill\",\n \"withPrintWriter\",\n \"withReader\",\n \"withStream\",\n \"withWriter\",\n \"withWriterAppend\",\n \"write\",\n \"writeLine\"\n ];\n return {\n name: 'Gradle',\n case_insensitive: true,\n keywords: KEYWORDS,\n contains: [\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.NUMBER_MODE,\n hljs.REGEXP_MODE\n\n ]\n };\n}\n\nmodule.exports = gradle;\n","var baseSlice = require('./_baseSlice');\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\nmodule.exports = castSlice;\n","module.exports = __webpack_public_path__ + \"img/tencenttke-black.58828585.svg\";","module.exports = __webpack_public_path__ + \"img/amazoneks-black.a84e95fa.svg\";","module.exports = __webpack_public_path__ + \"img/rackspace-black.b5378844.svg\";","module.exports = __webpack_public_path__ + \"img/amazonec2.1aa39ab0.svg\";","/*\nLanguage: Objective-C\nAuthor: Valerii Hiora \nContributors: Angel G. Olloqui , Matt Diephouse , Andrew Farmer , Minh Nguyễn \nWebsite: https://developer.apple.com/documentation/objectivec\nCategory: common\n*/\n\nfunction objectivec(hljs) {\n const API_CLASS = {\n className: 'built_in',\n begin: '\\\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\\\w+'\n };\n const IDENTIFIER_RE = /[a-zA-Z@][a-zA-Z0-9_]*/;\n const TYPES = [\n \"int\",\n \"float\",\n \"char\",\n \"unsigned\",\n \"signed\",\n \"short\",\n \"long\",\n \"double\",\n \"wchar_t\",\n \"unichar\",\n \"void\",\n \"bool\",\n \"BOOL\",\n \"id|0\",\n \"_Bool\"\n ];\n const KWS = [\n \"while\",\n \"export\",\n \"sizeof\",\n \"typedef\",\n \"const\",\n \"struct\",\n \"for\",\n \"union\",\n \"volatile\",\n \"static\",\n \"mutable\",\n \"if\",\n \"do\",\n \"return\",\n \"goto\",\n \"enum\",\n \"else\",\n \"break\",\n \"extern\",\n \"asm\",\n \"case\",\n \"default\",\n \"register\",\n \"explicit\",\n \"typename\",\n \"switch\",\n \"continue\",\n \"inline\",\n \"readonly\",\n \"assign\",\n \"readwrite\",\n \"self\",\n \"@synchronized\",\n \"id\",\n \"typeof\",\n \"nonatomic\",\n \"IBOutlet\",\n \"IBAction\",\n \"strong\",\n \"weak\",\n \"copy\",\n \"in\",\n \"out\",\n \"inout\",\n \"bycopy\",\n \"byref\",\n \"oneway\",\n \"__strong\",\n \"__weak\",\n \"__block\",\n \"__autoreleasing\",\n \"@private\",\n \"@protected\",\n \"@public\",\n \"@try\",\n \"@property\",\n \"@end\",\n \"@throw\",\n \"@catch\",\n \"@finally\",\n \"@autoreleasepool\",\n \"@synthesize\",\n \"@dynamic\",\n \"@selector\",\n \"@optional\",\n \"@required\",\n \"@encode\",\n \"@package\",\n \"@import\",\n \"@defs\",\n \"@compatibility_alias\",\n \"__bridge\",\n \"__bridge_transfer\",\n \"__bridge_retained\",\n \"__bridge_retain\",\n \"__covariant\",\n \"__contravariant\",\n \"__kindof\",\n \"_Nonnull\",\n \"_Nullable\",\n \"_Null_unspecified\",\n \"__FUNCTION__\",\n \"__PRETTY_FUNCTION__\",\n \"__attribute__\",\n \"getter\",\n \"setter\",\n \"retain\",\n \"unsafe_unretained\",\n \"nonnull\",\n \"nullable\",\n \"null_unspecified\",\n \"null_resettable\",\n \"class\",\n \"instancetype\",\n \"NS_DESIGNATED_INITIALIZER\",\n \"NS_UNAVAILABLE\",\n \"NS_REQUIRES_SUPER\",\n \"NS_RETURNS_INNER_POINTER\",\n \"NS_INLINE\",\n \"NS_AVAILABLE\",\n \"NS_DEPRECATED\",\n \"NS_ENUM\",\n \"NS_OPTIONS\",\n \"NS_SWIFT_UNAVAILABLE\",\n \"NS_ASSUME_NONNULL_BEGIN\",\n \"NS_ASSUME_NONNULL_END\",\n \"NS_REFINED_FOR_SWIFT\",\n \"NS_SWIFT_NAME\",\n \"NS_SWIFT_NOTHROW\",\n \"NS_DURING\",\n \"NS_HANDLER\",\n \"NS_ENDHANDLER\",\n \"NS_VALUERETURN\",\n \"NS_VOIDRETURN\"\n ];\n const LITERALS = [\n \"false\",\n \"true\",\n \"FALSE\",\n \"TRUE\",\n \"nil\",\n \"YES\",\n \"NO\",\n \"NULL\"\n ];\n const BUILT_INS = [\n \"dispatch_once_t\",\n \"dispatch_queue_t\",\n \"dispatch_sync\",\n \"dispatch_async\",\n \"dispatch_once\"\n ];\n const KEYWORDS = {\n \"variable.language\": [\n \"this\",\n \"super\"\n ],\n $pattern: IDENTIFIER_RE,\n keyword: KWS,\n literal: LITERALS,\n built_in: BUILT_INS,\n type: TYPES\n };\n const CLASS_KEYWORDS = {\n $pattern: IDENTIFIER_RE,\n keyword: [\n \"@interface\",\n \"@class\",\n \"@protocol\",\n \"@implementation\"\n ]\n };\n return {\n name: 'Objective-C',\n aliases: [\n 'mm',\n 'objc',\n 'obj-c',\n 'obj-c++',\n 'objective-c++'\n ],\n keywords: KEYWORDS,\n illegal: '/,\n end: /$/,\n illegal: '\\\\n'\n },\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE\n ]\n },\n {\n className: 'class',\n begin: '(' + CLASS_KEYWORDS.keyword.join('|') + ')\\\\b',\n end: /(\\{|$)/,\n excludeEnd: true,\n keywords: CLASS_KEYWORDS,\n contains: [ hljs.UNDERSCORE_TITLE_MODE ]\n },\n {\n begin: '\\\\.' + hljs.UNDERSCORE_IDENT_RE,\n relevance: 0\n }\n ]\n };\n}\n\nmodule.exports = objectivec;\n","export * from \"-!../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Wizard.vue?vue&type=style&index=0&id=41c6a168&prod&lang=scss&scoped=true\"","/*\n Language: Groovy\n Author: Guillaume Laforge \n Description: Groovy programming language implementation inspired from Vsevolod's Java mode\n Website: https://groovy-lang.org\n */\n\nfunction variants(variants, obj = {}) {\n obj.variants = variants;\n return obj;\n}\n\nfunction groovy(hljs) {\n const regex = hljs.regex;\n const IDENT_RE = '[A-Za-z0-9_$]+';\n const COMMENT = variants([\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n hljs.COMMENT(\n '/\\\\*\\\\*',\n '\\\\*/',\n {\n relevance: 0,\n contains: [\n {\n // eat up @'s in emails to prevent them to be recognized as doctags\n begin: /\\w+@/,\n relevance: 0\n },\n {\n className: 'doctag',\n begin: '@[A-Za-z]+'\n }\n ]\n }\n )\n ]);\n const REGEXP = {\n className: 'regexp',\n begin: /~?\\/[^\\/\\n]+\\//,\n contains: [ hljs.BACKSLASH_ESCAPE ]\n };\n const NUMBER = variants([\n hljs.BINARY_NUMBER_MODE,\n hljs.C_NUMBER_MODE\n ]);\n const STRING = variants([\n {\n begin: /\"\"\"/,\n end: /\"\"\"/\n },\n {\n begin: /'''/,\n end: /'''/\n },\n {\n begin: \"\\\\$/\",\n end: \"/\\\\$\",\n relevance: 10\n },\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE\n ],\n { className: \"string\" }\n );\n\n const CLASS_DEFINITION = {\n match: [\n /(class|interface|trait|enum|extends|implements)/,\n /\\s+/,\n hljs.UNDERSCORE_IDENT_RE\n ],\n scope: {\n 1: \"keyword\",\n 3: \"title.class\",\n }\n };\n const TYPES = [\n \"byte\",\n \"short\",\n \"char\",\n \"int\",\n \"long\",\n \"boolean\",\n \"float\",\n \"double\",\n \"void\"\n ];\n const KEYWORDS = [\n // groovy specific keywords\n \"def\",\n \"as\",\n \"in\",\n \"assert\",\n \"trait\",\n // common keywords with Java\n \"abstract\",\n \"static\",\n \"volatile\",\n \"transient\",\n \"public\",\n \"private\",\n \"protected\",\n \"synchronized\",\n \"final\",\n \"class\",\n \"interface\",\n \"enum\",\n \"if\",\n \"else\",\n \"for\",\n \"while\",\n \"switch\",\n \"case\",\n \"break\",\n \"default\",\n \"continue\",\n \"throw\",\n \"throws\",\n \"try\",\n \"catch\",\n \"finally\",\n \"implements\",\n \"extends\",\n \"new\",\n \"import\",\n \"package\",\n \"return\",\n \"instanceof\"\n ];\n\n return {\n name: 'Groovy',\n keywords: {\n \"variable.language\": 'this super',\n literal: 'true false null',\n type: TYPES,\n keyword: KEYWORDS\n },\n contains: [\n hljs.SHEBANG({\n binary: \"groovy\",\n relevance: 10\n }),\n COMMENT,\n STRING,\n REGEXP,\n NUMBER,\n CLASS_DEFINITION,\n {\n className: 'meta',\n begin: '@[A-Za-z]+',\n relevance: 0\n },\n {\n // highlight map keys and named parameters as attrs\n className: 'attr',\n begin: IDENT_RE + '[ \\t]*:',\n relevance: 0\n },\n {\n // catch middle element of the ternary operator\n // to avoid highlight it as a label, named parameter, or map key\n begin: /\\?/,\n end: /:/,\n relevance: 0,\n contains: [\n COMMENT,\n STRING,\n REGEXP,\n NUMBER,\n 'self'\n ]\n },\n {\n // highlight labeled statements\n className: 'symbol',\n begin: '^[ \\t]*' + regex.lookahead(IDENT_RE + ':'),\n excludeBegin: true,\n end: IDENT_RE + ':',\n relevance: 0\n }\n ],\n illegal: /#|<\\//\n };\n}\n\nmodule.exports = groovy;\n","/*\nLanguage: C#\nAuthor: Jason Diamond \nContributor: Nicolas LLOBERA , Pieter Vantorre , David Pine \nWebsite: https://docs.microsoft.com/dotnet/csharp/\nCategory: common\n*/\n\n/** @type LanguageFn */\nfunction csharp(hljs) {\n const BUILT_IN_KEYWORDS = [\n 'bool',\n 'byte',\n 'char',\n 'decimal',\n 'delegate',\n 'double',\n 'dynamic',\n 'enum',\n 'float',\n 'int',\n 'long',\n 'nint',\n 'nuint',\n 'object',\n 'sbyte',\n 'short',\n 'string',\n 'ulong',\n 'uint',\n 'ushort'\n ];\n const FUNCTION_MODIFIERS = [\n 'public',\n 'private',\n 'protected',\n 'static',\n 'internal',\n 'protected',\n 'abstract',\n 'async',\n 'extern',\n 'override',\n 'unsafe',\n 'virtual',\n 'new',\n 'sealed',\n 'partial'\n ];\n const LITERAL_KEYWORDS = [\n 'default',\n 'false',\n 'null',\n 'true'\n ];\n const NORMAL_KEYWORDS = [\n 'abstract',\n 'as',\n 'base',\n 'break',\n 'case',\n 'catch',\n 'class',\n 'const',\n 'continue',\n 'do',\n 'else',\n 'event',\n 'explicit',\n 'extern',\n 'finally',\n 'fixed',\n 'for',\n 'foreach',\n 'goto',\n 'if',\n 'implicit',\n 'in',\n 'interface',\n 'internal',\n 'is',\n 'lock',\n 'namespace',\n 'new',\n 'operator',\n 'out',\n 'override',\n 'params',\n 'private',\n 'protected',\n 'public',\n 'readonly',\n 'record',\n 'ref',\n 'return',\n 'scoped',\n 'sealed',\n 'sizeof',\n 'stackalloc',\n 'static',\n 'struct',\n 'switch',\n 'this',\n 'throw',\n 'try',\n 'typeof',\n 'unchecked',\n 'unsafe',\n 'using',\n 'virtual',\n 'void',\n 'volatile',\n 'while'\n ];\n const CONTEXTUAL_KEYWORDS = [\n 'add',\n 'alias',\n 'and',\n 'ascending',\n 'async',\n 'await',\n 'by',\n 'descending',\n 'equals',\n 'from',\n 'get',\n 'global',\n 'group',\n 'init',\n 'into',\n 'join',\n 'let',\n 'nameof',\n 'not',\n 'notnull',\n 'on',\n 'or',\n 'orderby',\n 'partial',\n 'remove',\n 'select',\n 'set',\n 'unmanaged',\n 'value|0',\n 'var',\n 'when',\n 'where',\n 'with',\n 'yield'\n ];\n\n const KEYWORDS = {\n keyword: NORMAL_KEYWORDS.concat(CONTEXTUAL_KEYWORDS),\n built_in: BUILT_IN_KEYWORDS,\n literal: LITERAL_KEYWORDS\n };\n const TITLE_MODE = hljs.inherit(hljs.TITLE_MODE, { begin: '[a-zA-Z](\\\\.?\\\\w)*' });\n const NUMBERS = {\n className: 'number',\n variants: [\n { begin: '\\\\b(0b[01\\']+)' },\n { begin: '(-?)\\\\b([\\\\d\\']+(\\\\.[\\\\d\\']*)?|\\\\.[\\\\d\\']+)(u|U|l|L|ul|UL|f|F|b|B)' },\n { begin: '(-?)(\\\\b0[xX][a-fA-F0-9\\']+|(\\\\b[\\\\d\\']+(\\\\.[\\\\d\\']*)?|\\\\.[\\\\d\\']+)([eE][-+]?[\\\\d\\']+)?)' }\n ],\n relevance: 0\n };\n const VERBATIM_STRING = {\n className: 'string',\n begin: '@\"',\n end: '\"',\n contains: [ { begin: '\"\"' } ]\n };\n const VERBATIM_STRING_NO_LF = hljs.inherit(VERBATIM_STRING, { illegal: /\\n/ });\n const SUBST = {\n className: 'subst',\n begin: /\\{/,\n end: /\\}/,\n keywords: KEYWORDS\n };\n const SUBST_NO_LF = hljs.inherit(SUBST, { illegal: /\\n/ });\n const INTERPOLATED_STRING = {\n className: 'string',\n begin: /\\$\"/,\n end: '\"',\n illegal: /\\n/,\n contains: [\n { begin: /\\{\\{/ },\n { begin: /\\}\\}/ },\n hljs.BACKSLASH_ESCAPE,\n SUBST_NO_LF\n ]\n };\n const INTERPOLATED_VERBATIM_STRING = {\n className: 'string',\n begin: /\\$@\"/,\n end: '\"',\n contains: [\n { begin: /\\{\\{/ },\n { begin: /\\}\\}/ },\n { begin: '\"\"' },\n SUBST\n ]\n };\n const INTERPOLATED_VERBATIM_STRING_NO_LF = hljs.inherit(INTERPOLATED_VERBATIM_STRING, {\n illegal: /\\n/,\n contains: [\n { begin: /\\{\\{/ },\n { begin: /\\}\\}/ },\n { begin: '\"\"' },\n SUBST_NO_LF\n ]\n });\n SUBST.contains = [\n INTERPOLATED_VERBATIM_STRING,\n INTERPOLATED_STRING,\n VERBATIM_STRING,\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n NUMBERS,\n hljs.C_BLOCK_COMMENT_MODE\n ];\n SUBST_NO_LF.contains = [\n INTERPOLATED_VERBATIM_STRING_NO_LF,\n INTERPOLATED_STRING,\n VERBATIM_STRING_NO_LF,\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n NUMBERS,\n hljs.inherit(hljs.C_BLOCK_COMMENT_MODE, { illegal: /\\n/ })\n ];\n const STRING = { variants: [\n INTERPOLATED_VERBATIM_STRING,\n INTERPOLATED_STRING,\n VERBATIM_STRING,\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE\n ] };\n\n const GENERIC_MODIFIER = {\n begin: \"<\",\n end: \">\",\n contains: [\n { beginKeywords: \"in out\" },\n TITLE_MODE\n ]\n };\n const TYPE_IDENT_RE = hljs.IDENT_RE + '(<' + hljs.IDENT_RE + '(\\\\s*,\\\\s*' + hljs.IDENT_RE + ')*>)?(\\\\[\\\\])?';\n const AT_IDENTIFIER = {\n // prevents expressions like `@class` from incorrect flagging\n // `class` as a keyword\n begin: \"@\" + hljs.IDENT_RE,\n relevance: 0\n };\n\n return {\n name: 'C#',\n aliases: [\n 'cs',\n 'c#'\n ],\n keywords: KEYWORDS,\n illegal: /::/,\n contains: [\n hljs.COMMENT(\n '///',\n '$',\n {\n returnBegin: true,\n contains: [\n {\n className: 'doctag',\n variants: [\n {\n begin: '///',\n relevance: 0\n },\n { begin: '' },\n {\n begin: ''\n }\n ]\n }\n ]\n }\n ),\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n {\n className: 'meta',\n begin: '#',\n end: '$',\n keywords: { keyword: 'if else elif endif define undef warning error line region endregion pragma checksum' }\n },\n STRING,\n NUMBERS,\n {\n beginKeywords: 'class interface',\n relevance: 0,\n end: /[{;=]/,\n illegal: /[^\\s:,]/,\n contains: [\n { beginKeywords: \"where class\" },\n TITLE_MODE,\n GENERIC_MODIFIER,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE\n ]\n },\n {\n beginKeywords: 'namespace',\n relevance: 0,\n end: /[{;=]/,\n illegal: /[^\\s:]/,\n contains: [\n TITLE_MODE,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE\n ]\n },\n {\n beginKeywords: 'record',\n relevance: 0,\n end: /[{;=]/,\n illegal: /[^\\s:]/,\n contains: [\n TITLE_MODE,\n GENERIC_MODIFIER,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE\n ]\n },\n {\n // [Attributes(\"\")]\n className: 'meta',\n begin: '^\\\\s*\\\\[(?=[\\\\w])',\n excludeBegin: true,\n end: '\\\\]',\n excludeEnd: true,\n contains: [\n {\n className: 'string',\n begin: /\"/,\n end: /\"/\n }\n ]\n },\n {\n // Expression keywords prevent 'keyword Name(...)' from being\n // recognized as a function definition\n beginKeywords: 'new return throw await else',\n relevance: 0\n },\n {\n className: 'function',\n begin: '(' + TYPE_IDENT_RE + '\\\\s+)+' + hljs.IDENT_RE + '\\\\s*(<[^=]+>\\\\s*)?\\\\(',\n returnBegin: true,\n end: /\\s*[{;=]/,\n excludeEnd: true,\n keywords: KEYWORDS,\n contains: [\n // prevents these from being highlighted `title`\n {\n beginKeywords: FUNCTION_MODIFIERS.join(\" \"),\n relevance: 0\n },\n {\n begin: hljs.IDENT_RE + '\\\\s*(<[^=]+>\\\\s*)?\\\\(',\n returnBegin: true,\n contains: [\n hljs.TITLE_MODE,\n GENERIC_MODIFIER\n ],\n relevance: 0\n },\n { match: /\\(\\)/ },\n {\n className: 'params',\n begin: /\\(/,\n end: /\\)/,\n excludeBegin: true,\n excludeEnd: true,\n keywords: KEYWORDS,\n relevance: 0,\n contains: [\n STRING,\n NUMBERS,\n hljs.C_BLOCK_COMMENT_MODE\n ]\n },\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE\n ]\n },\n AT_IDENTIFIER\n ]\n };\n}\n\nmodule.exports = csharp;\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.diffHighlight = exports.getFileIcon = exports.getHtmlId = exports.filenameDiff = exports.deconstructLine = exports.escapeForHtml = exports.toCSSClass = exports.defaultRenderConfig = exports.CSSLineClass = void 0;\nvar jsDiff = __importStar(require(\"diff\"));\nvar utils_1 = require(\"./utils\");\nvar rematch = __importStar(require(\"./rematch\"));\nvar types_1 = require(\"./types\");\nexports.CSSLineClass = {\n INSERTS: 'd2h-ins',\n DELETES: 'd2h-del',\n CONTEXT: 'd2h-cntx',\n INFO: 'd2h-info',\n INSERT_CHANGES: 'd2h-ins d2h-change',\n DELETE_CHANGES: 'd2h-del d2h-change',\n};\nexports.defaultRenderConfig = {\n matching: types_1.LineMatchingType.NONE,\n matchWordsThreshold: 0.25,\n maxLineLengthHighlight: 10000,\n diffStyle: types_1.DiffStyleType.WORD,\n};\nvar separator = '/';\nvar distance = rematch.newDistanceFn(function (change) { return change.value; });\nvar matcher = rematch.newMatcherFn(distance);\nfunction isDevNullName(name) {\n return name.indexOf('dev/null') !== -1;\n}\nfunction removeInsElements(line) {\n return line.replace(/(]*>((.|\\n)*?)<\\/ins>)/g, '');\n}\nfunction removeDelElements(line) {\n return line.replace(/(]*>((.|\\n)*?)<\\/del>)/g, '');\n}\nfunction toCSSClass(lineType) {\n switch (lineType) {\n case types_1.LineType.CONTEXT:\n return exports.CSSLineClass.CONTEXT;\n case types_1.LineType.INSERT:\n return exports.CSSLineClass.INSERTS;\n case types_1.LineType.DELETE:\n return exports.CSSLineClass.DELETES;\n }\n}\nexports.toCSSClass = toCSSClass;\nfunction prefixLength(isCombined) {\n return isCombined ? 2 : 1;\n}\nfunction escapeForHtml(str) {\n return str\n .slice(0)\n .replace(/&/g, '&')\n .replace(//g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''')\n .replace(/\\//g, '/');\n}\nexports.escapeForHtml = escapeForHtml;\nfunction deconstructLine(line, isCombined, escape) {\n if (escape === void 0) { escape = true; }\n var indexToSplit = prefixLength(isCombined);\n return {\n prefix: line.substring(0, indexToSplit),\n content: escape ? escapeForHtml(line.substring(indexToSplit)) : line.substring(indexToSplit),\n };\n}\nexports.deconstructLine = deconstructLine;\nfunction filenameDiff(file) {\n var oldFilename = (0, utils_1.unifyPath)(file.oldName);\n var newFilename = (0, utils_1.unifyPath)(file.newName);\n if (oldFilename !== newFilename && !isDevNullName(oldFilename) && !isDevNullName(newFilename)) {\n var prefixPaths = [];\n var suffixPaths = [];\n var oldFilenameParts = oldFilename.split(separator);\n var newFilenameParts = newFilename.split(separator);\n var oldFilenamePartsSize = oldFilenameParts.length;\n var newFilenamePartsSize = newFilenameParts.length;\n var i = 0;\n var j = oldFilenamePartsSize - 1;\n var k = newFilenamePartsSize - 1;\n while (i < j && i < k) {\n if (oldFilenameParts[i] === newFilenameParts[i]) {\n prefixPaths.push(newFilenameParts[i]);\n i += 1;\n }\n else {\n break;\n }\n }\n while (j > i && k > i) {\n if (oldFilenameParts[j] === newFilenameParts[k]) {\n suffixPaths.unshift(newFilenameParts[k]);\n j -= 1;\n k -= 1;\n }\n else {\n break;\n }\n }\n var finalPrefix = prefixPaths.join(separator);\n var finalSuffix = suffixPaths.join(separator);\n var oldRemainingPath = oldFilenameParts.slice(i, j + 1).join(separator);\n var newRemainingPath = newFilenameParts.slice(i, k + 1).join(separator);\n if (finalPrefix.length && finalSuffix.length) {\n return (finalPrefix + separator + '{' + oldRemainingPath + ' → ' + newRemainingPath + '}' + separator + finalSuffix);\n }\n else if (finalPrefix.length) {\n return finalPrefix + separator + '{' + oldRemainingPath + ' → ' + newRemainingPath + '}';\n }\n else if (finalSuffix.length) {\n return '{' + oldRemainingPath + ' → ' + newRemainingPath + '}' + separator + finalSuffix;\n }\n return oldFilename + ' → ' + newFilename;\n }\n else if (!isDevNullName(newFilename)) {\n return newFilename;\n }\n else {\n return oldFilename;\n }\n}\nexports.filenameDiff = filenameDiff;\nfunction getHtmlId(file) {\n return \"d2h-\".concat((0, utils_1.hashCode)(filenameDiff(file)).toString().slice(-6));\n}\nexports.getHtmlId = getHtmlId;\nfunction getFileIcon(file) {\n var templateName = 'file-changed';\n if (file.isRename) {\n templateName = 'file-renamed';\n }\n else if (file.isCopy) {\n templateName = 'file-renamed';\n }\n else if (file.isNew) {\n templateName = 'file-added';\n }\n else if (file.isDeleted) {\n templateName = 'file-deleted';\n }\n else if (file.newName !== file.oldName) {\n templateName = 'file-renamed';\n }\n return templateName;\n}\nexports.getFileIcon = getFileIcon;\nfunction diffHighlight(diffLine1, diffLine2, isCombined, config) {\n if (config === void 0) { config = {}; }\n var _a = __assign(__assign({}, exports.defaultRenderConfig), config), matching = _a.matching, maxLineLengthHighlight = _a.maxLineLengthHighlight, matchWordsThreshold = _a.matchWordsThreshold, diffStyle = _a.diffStyle;\n var line1 = deconstructLine(diffLine1, isCombined, false);\n var line2 = deconstructLine(diffLine2, isCombined, false);\n if (line1.content.length > maxLineLengthHighlight || line2.content.length > maxLineLengthHighlight) {\n return {\n oldLine: {\n prefix: line1.prefix,\n content: escapeForHtml(line1.content),\n },\n newLine: {\n prefix: line2.prefix,\n content: escapeForHtml(line2.content),\n },\n };\n }\n var diff = diffStyle === 'char'\n ? jsDiff.diffChars(line1.content, line2.content)\n : jsDiff.diffWordsWithSpace(line1.content, line2.content);\n var changedWords = [];\n if (diffStyle === 'word' && matching === 'words') {\n var removed = diff.filter(function (element) { return element.removed; });\n var added = diff.filter(function (element) { return element.added; });\n var chunks = matcher(added, removed);\n chunks.forEach(function (chunk) {\n if (chunk[0].length === 1 && chunk[1].length === 1) {\n var dist = distance(chunk[0][0], chunk[1][0]);\n if (dist < matchWordsThreshold) {\n changedWords.push(chunk[0][0]);\n changedWords.push(chunk[1][0]);\n }\n }\n });\n }\n var highlightedLine = diff.reduce(function (highlightedLine, part) {\n var elemType = part.added ? 'ins' : part.removed ? 'del' : null;\n var addClass = changedWords.indexOf(part) > -1 ? ' class=\"d2h-change\"' : '';\n var escapedValue = escapeForHtml(part.value);\n return elemType !== null\n ? \"\".concat(highlightedLine, \"<\").concat(elemType).concat(addClass, \">\").concat(escapedValue, \"\")\n : \"\".concat(highlightedLine).concat(escapedValue);\n }, '');\n return {\n oldLine: {\n prefix: line1.prefix,\n content: removeInsElements(highlightedLine),\n },\n newLine: {\n prefix: line2.prefix,\n content: removeDelElements(highlightedLine),\n },\n };\n}\nexports.diffHighlight = diffHighlight;\n//# sourceMappingURL=render-utils.js.map","export * from \"-!../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./FileDiff.vue?vue&type=style&index=0&id=0137ea75&prod&lang=scss&scoped=true\"","module.exports = __webpack_public_path__ + \"img/cloudscale-black.05c818ff.svg\";","export * from \"-!../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCancelModal.vue?vue&type=style&index=0&id=7090e1b4&prod&lang=scss&scoped=true\"","// style-loader: Adds some css to the DOM by adding a \n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./FileDiff.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./FileDiff.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./FileDiff.vue?vue&type=template&id=0137ea75&scoped=true\"\nimport script from \"./FileDiff.vue?vue&type=script&lang=js\"\nexport * from \"./FileDiff.vue?vue&type=script&lang=js\"\nimport style0 from \"./FileDiff.vue?vue&type=style&index=0&id=0137ea75&prod&lang=scss&scoped=true\"\nimport style1 from \"./FileDiff.vue?vue&type=style&index=1&id=0137ea75&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0137ea75\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./YamlEditor.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./YamlEditor.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./YamlEditor.vue?vue&type=template&id=93239522&scoped=true\"\nimport script from \"./YamlEditor.vue?vue&type=script&lang=js\"\nexport * from \"./YamlEditor.vue?vue&type=script&lang=js\"\nimport style0 from \"./YamlEditor.vue?vue&type=style&index=0&id=93239522&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"93239522\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (!_vm.isView)?_c('div',[_c('div',{staticClass:\"spacer-small\"}),_vm._l((_vm.errors),function(err,idx){return _c('div',{key:idx},[_c('Banner',{attrs:{\"color\":\"error\",\"label\":err}})],1)}),_c('div',{staticClass:\"buttons\"},[_c('div',{staticClass:\"left\"},[_vm._t(\"left\")],2),_c('div',{staticClass:\"right\"},[_vm._t(\"cancel\",function(){return [_c('button',{staticClass:\"btn role-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.done}},[_c('t',{attrs:{\"k\":\"generic.cancel\"}})],1)]}),_vm._t(\"middle\"),_vm._t(\"save\",function(){return [(!_vm.isView)?_c('AsyncButton',{attrs:{\"mode\":_vm.mode,\"disabled\":_vm.disableSave},on:{\"click\":_vm.save}}):_vm._e()]}),_vm._t(\"right\")],2)])],2):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport Vue from 'vue';\nimport { _VIEW } from '@shell/config/query-params';\nimport AsyncButton, { AsyncButtonCallback } from '@shell/components/AsyncButton.vue';\nimport Banner from '@components/Banner/Banner.vue';\n\nexport default Vue.extend({\n components: { AsyncButton, Banner },\n\n props: {\n /**\n * Current mode of the page\n * passed to asyncButton to determine lables of the button\n */\n mode: {\n type: String,\n required: true,\n },\n\n errors: {\n type: Array,\n default: null,\n },\n\n disableSave: {\n type: Boolean,\n default: false,\n }\n },\n\n computed: {\n isView(): boolean {\n return this.mode === _VIEW;\n },\n },\n\n methods: {\n save(buttonCb: AsyncButtonCallback) {\n this.$emit('save', buttonCb);\n },\n\n done() {\n this.$emit('done');\n }\n }\n});\n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--15-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../ts-loader/index.js??ref--15-3!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--15-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../ts-loader/index.js??ref--15-3!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./Footer.vue?vue&type=template&id=7a533750\"\nimport script from \"./Footer.vue?vue&type=script&lang=ts\"\nexport * from \"./Footer.vue?vue&type=script&lang=ts\"\nimport style0 from \"./Footer.vue?vue&type=style&index=0&id=7a533750&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceYaml.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceYaml.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ResourceYaml.vue?vue&type=template&id=1a42fcca&scoped=true\"\nimport script from \"./ResourceYaml.vue?vue&type=script&lang=js\"\nexport * from \"./ResourceYaml.vue?vue&type=script&lang=js\"\nimport style0 from \"./ResourceYaml.vue?vue&type=style&index=0&id=1a42fcca&prod&lang=scss&scoped=true\"\nimport style1 from \"./ResourceYaml.vue?vue&type=style&index=1&id=1a42fcca&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1a42fcca\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"cru-resource-footer\"},[_vm._t(\"footer-prefix\"),_vm._t(\"cancel\",function(){return [(!_vm.isView && _vm.showCancel)?_c('button',{staticClass:\"btn role-secondary\",attrs:{\"id\":\"cru-cancel\",\"data-testid\":_vm.componentTestid + '-cancel',\"type\":\"button\"},on:{\"click\":function($event){_vm.confirmCancelRequired ? _vm.checkCancel(true) : _vm.$emit('cancel-confirmed', true)}}},[_c('t',{attrs:{\"k\":\"generic.cancel\"}})],1):_vm._e()]}),_vm._t(\"default\",function(){return [(!_vm.isView)?_c('AsyncButton',{attrs:{\"data-testid\":_vm.componentTestid + '-create',\"mode\":_vm.finishButtonMode || _vm.mode},on:{\"click\":function($event){return _vm.$emit('finish', $event)}}}):_vm._e()]},{\"checkCancel\":_vm.checkCancel}),_c('ResourceCancelModal',{ref:\"cancelModal\",attrs:{\"is-cancel-modal\":_vm.isCancelModal,\"is-form\":_vm.isForm},on:{\"confirm-cancel\":function($event){return _vm.confirmCancel($event)}}})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('modal',{staticClass:\"confirm-modal\",attrs:{\"name\":\"cancel-modal\",\"width\":440,\"height\":\"auto\"}},[_c('div',{staticClass:\"header\"},[_c('h4',{staticClass:\"text-default-text\"},[(_vm.isCancelModal)?_c('t',{attrs:{\"k\":\"generic.cancel\"}}):_c('span',[_vm._v(_vm._s(_vm.t(\"cruResource.backToForm\")))])],1)]),_c('div',{staticClass:\"body\"},[(_vm.isCancelModal)?_c('p',[_c('t',{attrs:{\"k\":\"cruResource.cancelBody\"}})],1):_c('p',[_c('t',{attrs:{\"k\":\"cruResource.backBody\"}})],1)]),_c('div',{staticClass:\"footer\"},[_c('button',{staticClass:\"btn role-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.cancelCancel}},[_vm._v(\" \"+_vm._s(_vm.isForm ? _vm.t(\"cruResource.reviewForm\") : _vm.t(\"cruResource.reviewYaml\"))+\" \")]),_c('button',{staticClass:\"btn role-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.confirmCancel}},[(_vm.isCancelModal)?_c('span',[_vm._v(_vm._s(_vm.t(\"cruResource.confirmCancel\")))]):_c('span',[_vm._v(_vm._s(_vm.t(\"cruResource.confirmBack\")))])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCancelModal.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCancelModal.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ResourceCancelModal.vue?vue&type=template&id=7090e1b4&scoped=true\"\nimport script from \"./ResourceCancelModal.vue?vue&type=script&lang=js\"\nexport * from \"./ResourceCancelModal.vue?vue&type=script&lang=js\"\nimport style0 from \"./ResourceCancelModal.vue?vue&type=style&index=0&id=7090e1b4&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7090e1b4\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CruResourceFooter.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CruResourceFooter.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CruResourceFooter.vue?vue&type=template&id=3e3d0b47\"\nimport script from \"./CruResourceFooter.vue?vue&type=script&lang=js\"\nexport * from \"./CruResourceFooter.vue?vue&type=script&lang=js\"\nimport style0 from \"./CruResourceFooter.vue?vue&type=style&index=0&id=3e3d0b47&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:\"wizard\",staticClass:\"outer-container\"},[(!_vm.stepsLoaded)?_c('Loading',{attrs:{\"mode\":\"relative\"}}):_vm._e(),_c('div',{staticClass:\"outer-container\",class:{'hide': !_vm.stepsLoaded}},[_c('div',{staticClass:\"header\"},[_c('div',{staticClass:\"title\"},[(_vm.showBanner)?_c('div',{staticClass:\"top choice-banner\"},[(!!_vm.bannerImage || !!_vm.bannerTitle)?_vm._t(\"bannerTitle\",function(){return [_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.initialTitle || _vm.activeStepIndex > 0),expression:\"initialTitle || activeStepIndex > 0\"}],staticClass:\"title\"},[_vm._t(\"bannerTitleImage\",function(){return [(_vm.bannerImage)?_c('div',{staticClass:\"round-image\"},[_c('LazyImage',{staticClass:\"logo\",attrs:{\"src\":_vm.bannerImage}})],1):_vm._e()]}),_c('div',{staticClass:\"subtitle\"},[(_vm.bannerTitle)?_c('h2',[_vm._v(\" \"+_vm._s(_vm.bannerTitle)+\" \")]):_vm._e(),(_vm.bannerTitleSubtext)?_c('span',{staticClass:\"subtext\"},[_vm._v(_vm._s(_vm.bannerTitleSubtext))]):_vm._e()])],2)]}):_vm._e(),(_vm.activeStep && _vm.showSteps)?_c('div',{staticClass:\"subtitle\"},[_c('h2',[_vm._v(_vm._s(!!_vm.headerMode ? _vm.t(`wizard.${_vm.headerMode}`) : _vm.t(`asyncButton.${_vm.finishMode}.action`))+\": \"+_vm._s(_vm.t('wizard.step', {number:_vm.activeStepIndex+1})))]),_vm._t(\"bannerSubtext\",function(){return [(_vm.activeStep.subtext !== null)?_c('span',{staticClass:\"subtext\"},[_vm._v(_vm._s(_vm.activeStep.subtext || _vm.activeStep.label))]):_vm._e()]})],2):_vm._e()],2):_vm._e(),_c('div',{staticClass:\"step-sequence\"},[(_vm.showSteps)?_c('ul',{staticClass:\"steps\",attrs:{\"tabindex\":\"0\"},on:{\"keyup\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"right\",39,$event.key,[\"Right\",\"ArrowRight\"]))return null;if('button' in $event && $event.button !== 2)return null;$event.stopPropagation();return _vm.selectNext(1)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"left\",37,$event.key,[\"Left\",\"ArrowLeft\"]))return null;if('button' in $event && $event.button !== 0)return null;$event.stopPropagation();return _vm.selectNext(-1)}]}},[_vm._l((_vm.visibleSteps),function(step,idx){return [_c('li',{key:step.name+'li',class:{step: true, active: step.name === _vm.activeStep.name, disabled: !_vm.isAvailable(step)},attrs:{\"id\":step.name,\"role\":\"presentation\"}},[_c('span',{staticClass:\"controls\",attrs:{\"aria-controls\":'step' + idx+1,\"aria-selected\":step.name === _vm.activeStep.name,\"role\":\"tab\"},on:{\"click\":function($event){$event.preventDefault();return _vm.goToStep(idx+1, true)}}},[_c('span',{staticClass:\"icon icon-lg\",class:{'icon-dot': step.name === _vm.activeStep.name, 'icon-dot-open':step.name !== _vm.activeStep.name}}),_c('span',[_vm._v(\" \"+_vm._s(step.label)+\" \")])])]),(idx!==_vm.visibleSteps.length-1)?_c('div',{key:step.name,staticClass:\"divider\"}):_vm._e()]})],2):_vm._e()])])]),_vm._t(\"stepContainer\",function(){return [_vm._l((_vm.steps),function(step){return [(step.name === _vm.activeStep.name || step.hidden)?_c('div',{key:step.name,staticClass:\"step-container__step\",class:{'hide': step.name !== _vm.activeStep.name && step.hidden}},[_vm._t(step.name,null,{\"step\":step})],2):_vm._e()]})]},{\"activeStep\":_vm.activeStep}),_vm._t(\"controlsContainer\",function(){return [_vm._l((_vm.errorStrings),function(err,idx){return _c('div',{key:idx},[_c('Banner',{staticClass:\"footer-error\",attrs:{\"color\":\"error\",\"label\":err,\"closable\":true},on:{\"close\":function($event){return _vm.errors.splice(idx, 1)}}})],1)}),_c('div',{staticClass:\"controls-row pt-20\",attrs:{\"id\":\"wizard-footer-controls\"}},[_vm._t(\"cancel\",function(){return [_c('button',{staticClass:\"btn role-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.cancel}},[_c('t',{attrs:{\"k\":\"generic.cancel\"}})],1)]},{\"cancel\":_vm.cancel}),_c('div',{staticClass:\"controls-steps\"},[(_vm.showPrevious)?_vm._t(\"back\",function(){return [_c('button',{staticClass:\"btn role-secondary\",attrs:{\"disabled\":!_vm.canPrevious || (!_vm.editFirstStep && _vm.activeStepIndex===1),\"type\":\"button\"},on:{\"click\":function($event){return _vm.back()}}},[_c('t',{attrs:{\"k\":\"wizard.previous\"}})],1)]},{\"back\":_vm.back}):_vm._e(),(_vm.activeStepIndex === _vm.visibleSteps.length-1)?_vm._t(\"finish\",function(){return [_c('AsyncButton',{attrs:{\"disabled\":!_vm.activeStep.ready,\"mode\":_vm.finishMode},on:{\"click\":_vm.finish}})]},{\"finish\":_vm.finish}):_vm._t(\"next\",function(){return [_c('button',{class:_vm.nextButtonStyle,attrs:{\"disabled\":!_vm.canNext,\"type\":\"button\"},on:{\"click\":function($event){return _vm.next()}}},[_c('t',{attrs:{\"k\":_vm.nextButtonLabel}})],1)]},{\"next\":_vm.next})],2)],2)]},{\"showPrevious\":_vm.showPrevious,\"next\":_vm.next,\"back\":_vm.back,\"canNext\":_vm.canNext,\"activeStepIndex\":_vm.activeStepIndex,\"visibleSteps\":_vm.visibleSteps,\"errorStrings\":_vm.errorStrings,\"finish\":_vm.finish,\"cancel\":_vm.cancel,\"activeStep\":_vm.activeStep})],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Wizard.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Wizard.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Wizard.vue?vue&type=template&id=41c6a168&scoped=true\"\nimport script from \"./Wizard.vue?vue&type=script&lang=js\"\nexport * from \"./Wizard.vue?vue&type=script&lang=js\"\nimport style0 from \"./Wizard.vue?vue&type=style&index=0&id=41c6a168&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"41c6a168\",\n null\n \n)\n\nexport default component.exports","\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n $emit('error', e)\"\n >\n \n \n \n \n \n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CruResource.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CruResource.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CruResource.vue?vue&type=template&id=8082eba2&scoped=true\"\nimport script from \"./CruResource.vue?vue&type=script&lang=js\"\nexport * from \"./CruResource.vue?vue&type=script&lang=js\"\nimport style0 from \"./CruResource.vue?vue&type=style&index=0&id=8082eba2&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8082eba2\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/azure.eb8fe01e.svg\";"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/img/aliyun-black.b576ca7f.svg b/extensions/capi/0.6.0-2.8/plugin/img/aliyun-black.b576ca7f.svg new file mode 100644 index 0000000..29fd241 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/aliyun-black.b576ca7f.svg @@ -0,0 +1,14 @@ + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/aliyun.05625b68.svg b/extensions/capi/0.6.0-2.8/plugin/img/aliyun.05625b68.svg new file mode 100644 index 0000000..78f5b74 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/aliyun.05625b68.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/aliyunecs-black.47c0410f.svg b/extensions/capi/0.6.0-2.8/plugin/img/aliyunecs-black.47c0410f.svg new file mode 100644 index 0000000..f38e205 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/aliyunecs-black.47c0410f.svg @@ -0,0 +1,13 @@ + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/aliyunecs.d971267d.svg b/extensions/capi/0.6.0-2.8/plugin/img/aliyunecs.d971267d.svg new file mode 100644 index 0000000..d752029 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/aliyunecs.d971267d.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/amazonec2-black.d1821012.svg b/extensions/capi/0.6.0-2.8/plugin/img/amazonec2-black.d1821012.svg new file mode 100644 index 0000000..a062580 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/amazonec2-black.d1821012.svg @@ -0,0 +1,8 @@ + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/amazonec2.1aa39ab0.svg b/extensions/capi/0.6.0-2.8/plugin/img/amazonec2.1aa39ab0.svg new file mode 100644 index 0000000..f68995b --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/amazonec2.1aa39ab0.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/amazoneks-black.a84e95fa.svg b/extensions/capi/0.6.0-2.8/plugin/img/amazoneks-black.a84e95fa.svg new file mode 100644 index 0000000..ec37d77 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/amazoneks-black.a84e95fa.svg @@ -0,0 +1,10 @@ + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/amazoneks.08036fe5.svg b/extensions/capi/0.6.0-2.8/plugin/img/amazoneks.08036fe5.svg new file mode 100644 index 0000000..b2e626c --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/amazoneks.08036fe5.svg @@ -0,0 +1,14 @@ + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/aws.259e1339.svg b/extensions/capi/0.6.0-2.8/plugin/img/aws.259e1339.svg new file mode 100644 index 0000000..4715937 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/aws.259e1339.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/azure-black.5f0d4c16.svg b/extensions/capi/0.6.0-2.8/plugin/img/azure-black.5f0d4c16.svg new file mode 100644 index 0000000..be1937c --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/azure-black.5f0d4c16.svg @@ -0,0 +1,29 @@ + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/azure.eb8fe01e.svg b/extensions/capi/0.6.0-2.8/plugin/img/azure.eb8fe01e.svg new file mode 100644 index 0000000..a26fb74 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/azure.eb8fe01e.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/azuread-black.df47a4be.svg b/extensions/capi/0.6.0-2.8/plugin/img/azuread-black.df47a4be.svg new file mode 100644 index 0000000..6b5b416 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/azuread-black.df47a4be.svg @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/azuread.89d0693d.svg b/extensions/capi/0.6.0-2.8/plugin/img/azuread.89d0693d.svg new file mode 100644 index 0000000..7fb1c17 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/azuread.89d0693d.svg @@ -0,0 +1,25 @@ + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/azureaks-black.c476b248.svg b/extensions/capi/0.6.0-2.8/plugin/img/azureaks-black.c476b248.svg new file mode 100644 index 0000000..4ea91e5 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/azureaks-black.c476b248.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/azureaks.f30a4ee5.svg b/extensions/capi/0.6.0-2.8/plugin/img/azureaks.f30a4ee5.svg new file mode 100644 index 0000000..7e462f0 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/azureaks.f30a4ee5.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/baidu-black.fbfb0a3d.svg b/extensions/capi/0.6.0-2.8/plugin/img/baidu-black.fbfb0a3d.svg new file mode 100644 index 0000000..ec45d41 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/baidu-black.fbfb0a3d.svg @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/baidu.59230de0.svg b/extensions/capi/0.6.0-2.8/plugin/img/baidu.59230de0.svg new file mode 100644 index 0000000..80d66df --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/baidu.59230de0.svg @@ -0,0 +1,25 @@ + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/cloudca-black.e617e95a.svg b/extensions/capi/0.6.0-2.8/plugin/img/cloudca-black.e617e95a.svg new file mode 100644 index 0000000..56b46a5 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/cloudca-black.e617e95a.svg @@ -0,0 +1,45 @@ + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/cloudca.1095d0cc.svg b/extensions/capi/0.6.0-2.8/plugin/img/cloudca.1095d0cc.svg new file mode 100644 index 0000000..dde4c3d --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/cloudca.1095d0cc.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/cloudscale-black.05c818ff.svg b/extensions/capi/0.6.0-2.8/plugin/img/cloudscale-black.05c818ff.svg new file mode 100644 index 0000000..d6fef4a --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/cloudscale-black.05c818ff.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/cloudscale.15af4521.svg b/extensions/capi/0.6.0-2.8/plugin/img/cloudscale.15af4521.svg new file mode 100644 index 0000000..70753e8 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/cloudscale.15af4521.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/custom.73e585f1.svg b/extensions/capi/0.6.0-2.8/plugin/img/custom.73e585f1.svg new file mode 100644 index 0000000..ad65e6e --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/custom.73e585f1.svg @@ -0,0 +1,85 @@ + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/digitalocean-black.c7b0f38c.svg b/extensions/capi/0.6.0-2.8/plugin/img/digitalocean-black.c7b0f38c.svg new file mode 100644 index 0000000..7907569 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/digitalocean-black.c7b0f38c.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/digitalocean.acdee7f1.svg b/extensions/capi/0.6.0-2.8/plugin/img/digitalocean.acdee7f1.svg new file mode 100644 index 0000000..8d01c77 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/digitalocean.acdee7f1.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/docker.c06657b9.svg b/extensions/capi/0.6.0-2.8/plugin/img/docker.c06657b9.svg new file mode 100644 index 0000000..d266303 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/docker.c06657b9.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/img/equinix-black.74a27b4d.svg b/extensions/capi/0.6.0-2.8/plugin/img/equinix-black.74a27b4d.svg new file mode 100644 index 0000000..40031dc --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/equinix-black.74a27b4d.svg @@ -0,0 +1,13 @@ + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/equinix.439fbbbe.svg b/extensions/capi/0.6.0-2.8/plugin/img/equinix.439fbbbe.svg new file mode 100644 index 0000000..d54b4d4 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/equinix.439fbbbe.svg @@ -0,0 +1,13 @@ + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/exoscale.7a312d6d.svg b/extensions/capi/0.6.0-2.8/plugin/img/exoscale.7a312d6d.svg new file mode 100644 index 0000000..f3b1831 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/exoscale.7a312d6d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/img/gcp.92c9d851.svg b/extensions/capi/0.6.0-2.8/plugin/img/gcp.92c9d851.svg new file mode 100644 index 0000000..d8ba0b3 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/gcp.92c9d851.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/generic-catalog.99bdaecf.svg b/extensions/capi/0.6.0-2.8/plugin/img/generic-catalog.99bdaecf.svg new file mode 100644 index 0000000..474f376 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/generic-catalog.99bdaecf.svg @@ -0,0 +1,15 @@ + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/generic-driver.58cd1dcb.svg b/extensions/capi/0.6.0-2.8/plugin/img/generic-driver.58cd1dcb.svg new file mode 100644 index 0000000..3405b6f --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/generic-driver.58cd1dcb.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/gke-black.270042cf.svg b/extensions/capi/0.6.0-2.8/plugin/img/gke-black.270042cf.svg new file mode 100644 index 0000000..9868fd6 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/gke-black.270042cf.svg @@ -0,0 +1,10 @@ + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/gke.deaff14c.svg b/extensions/capi/0.6.0-2.8/plugin/img/gke.deaff14c.svg new file mode 100644 index 0000000..e4337c4 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/gke.deaff14c.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/google.778e7144.svg b/extensions/capi/0.6.0-2.8/plugin/img/google.778e7144.svg new file mode 100644 index 0000000..318b761 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/google.778e7144.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/googlegke-black.270042cf.svg b/extensions/capi/0.6.0-2.8/plugin/img/googlegke-black.270042cf.svg new file mode 100644 index 0000000..9868fd6 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/googlegke-black.270042cf.svg @@ -0,0 +1,10 @@ + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/googlegke.deaff14c.svg b/extensions/capi/0.6.0-2.8/plugin/img/googlegke.deaff14c.svg new file mode 100644 index 0000000..e4337c4 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/googlegke.deaff14c.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/harvester.b14e570b.svg b/extensions/capi/0.6.0-2.8/plugin/img/harvester.b14e570b.svg new file mode 100644 index 0000000..42b37c1 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/harvester.b14e570b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/img/huaweicce-black.39ee46f2.svg b/extensions/capi/0.6.0-2.8/plugin/img/huaweicce-black.39ee46f2.svg new file mode 100644 index 0000000..c8fdf90 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/huaweicce-black.39ee46f2.svg @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/huaweicce.4fb3a929.svg b/extensions/capi/0.6.0-2.8/plugin/img/huaweicce.4fb3a929.svg new file mode 100644 index 0000000..523fe03 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/huaweicce.4fb3a929.svg @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/import.2e2e359c.svg b/extensions/capi/0.6.0-2.8/plugin/img/import.2e2e359c.svg new file mode 100644 index 0000000..ec25148 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/import.2e2e359c.svg @@ -0,0 +1,99 @@ + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/k3s-black.d52e5687.svg b/extensions/capi/0.6.0-2.8/plugin/img/k3s-black.d52e5687.svg new file mode 100644 index 0000000..0a815c2 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/k3s-black.d52e5687.svg @@ -0,0 +1,10 @@ + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/k3s.01e2b406.svg b/extensions/capi/0.6.0-2.8/plugin/img/k3s.01e2b406.svg new file mode 100644 index 0000000..0367e53 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/k3s.01e2b406.svg @@ -0,0 +1,15 @@ + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/kubernetes-black.3e32c1a8.svg b/extensions/capi/0.6.0-2.8/plugin/img/kubernetes-black.3e32c1a8.svg new file mode 100644 index 0000000..040665d --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/kubernetes-black.3e32c1a8.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/kubernetes.2e2e359c.svg b/extensions/capi/0.6.0-2.8/plugin/img/kubernetes.2e2e359c.svg new file mode 100644 index 0000000..ec25148 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/kubernetes.2e2e359c.svg @@ -0,0 +1,99 @@ + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/linode.72ae9a55.svg b/extensions/capi/0.6.0-2.8/plugin/img/linode.72ae9a55.svg new file mode 100644 index 0000000..7b9ec6d --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/linode.72ae9a55.svg @@ -0,0 +1,54 @@ + + + + +The Linode Logo consists of the 5 shaded green cubes arranged in the shape of the letter "L". + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/linodelke-black.058df1a0.svg b/extensions/capi/0.6.0-2.8/plugin/img/linodelke-black.058df1a0.svg new file mode 100644 index 0000000..4df7b9c --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/linodelke-black.058df1a0.svg @@ -0,0 +1,40 @@ + + + +The Linode Logo consists of the 5 shaded green cubes arranged in the shape of the letter "L". + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/linodelke.72ae9a55.svg b/extensions/capi/0.6.0-2.8/plugin/img/linodelke.72ae9a55.svg new file mode 100644 index 0000000..7b9ec6d --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/linodelke.72ae9a55.svg @@ -0,0 +1,54 @@ + + + + +The Linode Logo consists of the 5 shaded green cubes arranged in the shape of the letter "L". + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/local-cluster.c77b2023.svg b/extensions/capi/0.6.0-2.8/plugin/img/local-cluster.c77b2023.svg new file mode 100644 index 0000000..2c975ba --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/local-cluster.c77b2023.svg @@ -0,0 +1,20 @@ + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/minikube-black.b739e7a9.svg b/extensions/capi/0.6.0-2.8/plugin/img/minikube-black.b739e7a9.svg new file mode 100644 index 0000000..1ca3cca --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/minikube-black.b739e7a9.svg @@ -0,0 +1,25 @@ + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/minikube.b39dc584.svg b/extensions/capi/0.6.0-2.8/plugin/img/minikube.b39dc584.svg new file mode 100644 index 0000000..db07d33 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/minikube.b39dc584.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/nutanix.87666923.svg b/extensions/capi/0.6.0-2.8/plugin/img/nutanix.87666923.svg new file mode 100644 index 0000000..3081107 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/nutanix.87666923.svg @@ -0,0 +1 @@ + nutanix logo diff --git a/extensions/capi/0.6.0-2.8/plugin/img/oci-black.f960feb5.svg b/extensions/capi/0.6.0-2.8/plugin/img/oci-black.f960feb5.svg new file mode 100644 index 0000000..25f6781 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/oci-black.f960feb5.svg @@ -0,0 +1,41 @@ + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/oci.8b52fe45.svg b/extensions/capi/0.6.0-2.8/plugin/img/oci.8b52fe45.svg new file mode 100644 index 0000000..e813576 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/oci.8b52fe45.svg @@ -0,0 +1,44 @@ + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/openstack-black.46740f63.svg b/extensions/capi/0.6.0-2.8/plugin/img/openstack-black.46740f63.svg new file mode 100644 index 0000000..603cf55 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/openstack-black.46740f63.svg @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/openstack.638b1003.svg b/extensions/capi/0.6.0-2.8/plugin/img/openstack.638b1003.svg new file mode 100644 index 0000000..5900079 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/openstack.638b1003.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/oracle.8219cfb5.svg b/extensions/capi/0.6.0-2.8/plugin/img/oracle.8219cfb5.svg new file mode 100644 index 0000000..832aad4 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/oracle.8219cfb5.svg @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/oracleoke-black.aaa9e8cf.svg b/extensions/capi/0.6.0-2.8/plugin/img/oracleoke-black.aaa9e8cf.svg new file mode 100644 index 0000000..7f52921 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/oracleoke-black.aaa9e8cf.svg @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/oracleoke.ddaa8a0e.svg b/extensions/capi/0.6.0-2.8/plugin/img/oracleoke.ddaa8a0e.svg new file mode 100644 index 0000000..4f6a9d2 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/oracleoke.ddaa8a0e.svg @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/otc-black.007c6157.svg b/extensions/capi/0.6.0-2.8/plugin/img/otc-black.007c6157.svg new file mode 100644 index 0000000..86cf27a --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/otc-black.007c6157.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/otc.d7330474.svg b/extensions/capi/0.6.0-2.8/plugin/img/otc.d7330474.svg new file mode 100644 index 0000000..021bb0b --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/otc.d7330474.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/otccce.d7330474.svg b/extensions/capi/0.6.0-2.8/plugin/img/otccce.d7330474.svg new file mode 100644 index 0000000..021bb0b --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/otccce.d7330474.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/outscale.97c433a9.svg b/extensions/capi/0.6.0-2.8/plugin/img/outscale.97c433a9.svg new file mode 100644 index 0000000..2b4e7a2 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/outscale.97c433a9.svg @@ -0,0 +1,19 @@ + + + + + Layer 1 + + + + + + + \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/img/ovhcloudmks.ccb13957.svg b/extensions/capi/0.6.0-2.8/plugin/img/ovhcloudmks.ccb13957.svg new file mode 100644 index 0000000..fd1351f --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/ovhcloudmks.ccb13957.svg @@ -0,0 +1,122 @@ + + + +image/svg+xml + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/img/ovhcloudpubliccloud.ccb13957.svg b/extensions/capi/0.6.0-2.8/plugin/img/ovhcloudpubliccloud.ccb13957.svg new file mode 100644 index 0000000..fd1351f --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/ovhcloudpubliccloud.ccb13957.svg @@ -0,0 +1,122 @@ + + + +image/svg+xml + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/img/packet-black.cdd96d23.svg b/extensions/capi/0.6.0-2.8/plugin/img/packet-black.cdd96d23.svg new file mode 100644 index 0000000..d9de626 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/packet-black.cdd96d23.svg @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/packet.5fce6e98.svg b/extensions/capi/0.6.0-2.8/plugin/img/packet.5fce6e98.svg new file mode 100644 index 0000000..eb62ddd --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/packet.5fce6e98.svg @@ -0,0 +1,16 @@ + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/pinganyunecs-black.2ff2c7d9.svg b/extensions/capi/0.6.0-2.8/plugin/img/pinganyunecs-black.2ff2c7d9.svg new file mode 100644 index 0000000..ab6775e --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/pinganyunecs-black.2ff2c7d9.svg @@ -0,0 +1,26 @@ + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/pinganyunecs.e75d4c8a.svg b/extensions/capi/0.6.0-2.8/plugin/img/pinganyunecs.e75d4c8a.svg new file mode 100644 index 0000000..876891a --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/pinganyunecs.e75d4c8a.svg @@ -0,0 +1,26 @@ + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/pnap-black.1b1773d7.svg b/extensions/capi/0.6.0-2.8/plugin/img/pnap-black.1b1773d7.svg new file mode 100644 index 0000000..3d79a97 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/pnap-black.1b1773d7.svg @@ -0,0 +1,43 @@ + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/pnap.0cb6fe69.svg b/extensions/capi/0.6.0-2.8/plugin/img/pnap.0cb6fe69.svg new file mode 100644 index 0000000..4059ed9 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/pnap.0cb6fe69.svg @@ -0,0 +1,48 @@ + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/rackspace-black.b5378844.svg b/extensions/capi/0.6.0-2.8/plugin/img/rackspace-black.b5378844.svg new file mode 100644 index 0000000..3299f04 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/rackspace-black.b5378844.svg @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/rackspace.6f98715f.svg b/extensions/capi/0.6.0-2.8/plugin/img/rackspace.6f98715f.svg new file mode 100644 index 0000000..b1b3696 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/rackspace.6f98715f.svg @@ -0,0 +1,18 @@ + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/rke.d10540bf.svg b/extensions/capi/0.6.0-2.8/plugin/img/rke.d10540bf.svg new file mode 100644 index 0000000..f7b7128 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/rke.d10540bf.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/rke2.d10540bf.svg b/extensions/capi/0.6.0-2.8/plugin/img/rke2.d10540bf.svg new file mode 100644 index 0000000..f7b7128 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/rke2.d10540bf.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/softlayer.d474be09.svg b/extensions/capi/0.6.0-2.8/plugin/img/softlayer.d474be09.svg new file mode 100644 index 0000000..8ff9be2 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/softlayer.d474be09.svg @@ -0,0 +1,27 @@ + + + + Compute + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/extensions/capi/0.6.0-2.8/plugin/img/tencenttke-black.58828585.svg b/extensions/capi/0.6.0-2.8/plugin/img/tencenttke-black.58828585.svg new file mode 100644 index 0000000..d0a3d5c --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/tencenttke-black.58828585.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/tencenttke.0b34fe07.svg b/extensions/capi/0.6.0-2.8/plugin/img/tencenttke.0b34fe07.svg new file mode 100644 index 0000000..1a57f56 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/tencenttke.0b34fe07.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/vmwarevsphere-black.2f9d3f1d.svg b/extensions/capi/0.6.0-2.8/plugin/img/vmwarevsphere-black.2f9d3f1d.svg new file mode 100644 index 0000000..352894f --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/vmwarevsphere-black.2f9d3f1d.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/vmwarevsphere.32594541.svg b/extensions/capi/0.6.0-2.8/plugin/img/vmwarevsphere.32594541.svg new file mode 100644 index 0000000..bd1b636 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/vmwarevsphere.32594541.svg @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/vsphere-black.2f9d3f1d.svg b/extensions/capi/0.6.0-2.8/plugin/img/vsphere-black.2f9d3f1d.svg new file mode 100644 index 0000000..352894f --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/vsphere-black.2f9d3f1d.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/img/vsphere.32594541.svg b/extensions/capi/0.6.0-2.8/plugin/img/vsphere.32594541.svg new file mode 100644 index 0000000..bd1b636 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/img/vsphere.32594541.svg @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/capi/0.6.0-2.8/plugin/package.json b/extensions/capi/0.6.0-2.8/plugin/package.json new file mode 100644 index 0000000..a0ab578 --- /dev/null +++ b/extensions/capi/0.6.0-2.8/plugin/package.json @@ -0,0 +1,19 @@ +{ + "name": "capi", + "description": "UI for CAPI cluster provisioning", + "version": "0.6.0-2.8", + "private": false, + "rancher": true, + "engines": { + "node": ">=16" + }, + "devDependencies": { + "@vue/cli-plugin-babel": "5.0.8", + "@vue/cli-service": "5.0.8", + "@vue/cli-plugin-typescript": "5.0.8" + }, + "files": [ + "**/*" + ], + "main": "capi-0.6.0-2.8.umd.min.js" +} \ No newline at end of file diff --git a/index.yaml b/index.yaml index 3a85c6c..0d822f4 100644 --- a/index.yaml +++ b/index.yaml @@ -22,6 +22,27 @@ entries: urls: - assets/capi/capi-0.6.0.tgz version: 0.6.0 + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: CAPI UI + catalog.cattle.io/experimental: "true" + catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.29.0-0' + catalog.cattle.io/namespace: cattle-ui-plugin-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux, windows + catalog.cattle.io/rancher-version: '>= v2.8.0' + catalog.cattle.io/scope: management + catalog.cattle.io/ui-component: plugins + apiVersion: v2 + appVersion: 0.6.0-2.8 + created: "2024-08-14T18:31:46.364180446Z" + description: UI for CAPI cluster provisioning + digest: 1dc78d078bc7984e999bb5e82fe0f1011c966aacffa35b1a830dfc145e3a35af + name: capi + type: application + urls: + - assets/capi/capi-0.6.0-2.8.tgz + version: 0.6.0-2.8 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/display-name: CAPI UI @@ -185,4 +206,4 @@ entries: urls: - assets/capi/capi-0.1.0.tgz version: 0.1.0 -generated: "2024-08-07T22:24:35.998578768Z" +generated: "2024-08-14T18:31:46.363598441Z"