@whyour/qinglong 0.11.3 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-en.md +65 -58
- package/README.md +62 -55
- package/package.json +2 -2
- package/sample/config.sample.sh +9 -0
- package/sample/notify.js +260 -0
- package/sample/notify.py +177 -3
- package/shell/otask.sh +8 -6
- package/shell/share.sh +20 -11
- package/shell/task.sh +22 -9
- package/static/build/api/cron.js +1 -2
- package/static/build/api/log.js +1 -1
- package/static/build/api/script.js +4 -3
- package/static/build/config/serverEnv.js +8 -0
- package/static/build/config/util.js +13 -7
- package/static/build/data/notify.js +11 -1
- package/static/build/loaders/server.js +0 -4
- package/static/build/protos/cron.js +14 -2
- package/static/build/schedule/addCron.js +5 -5
- package/static/build/services/cron.js +21 -14
- package/static/build/services/dependence.js +1 -1
- package/static/build/services/notify.js +57 -5
- package/static/build/services/schedule.js +23 -11
- package/static/build/services/script.js +1 -1
- package/static/build/services/subscription.js +5 -1
- package/static/build/services/system.js +3 -1
- package/static/build/shared/pLimit.js +38 -18
- package/static/build/shared/runCron.js +5 -6
- package/static/dist/{7878.91f5096f.async.js → 1988.5291d10f.async.js} +1 -1
- package/static/dist/2260.6c4d0bd0.async.js +1 -0
- package/static/dist/2393.c35a1174.async.js +1 -0
- package/static/dist/{2618.d4ab1f05.async.js → 2618.7a71aedf.async.js} +1 -1
- package/static/dist/{2715.f6d4a9ed.async.js → 2715.292538bc.async.js} +1 -1
- package/static/dist/{29.dd4d8489.async.js → 29.32a92099.async.js} +1 -1
- package/static/dist/3435.2670d41f.async.js +1 -0
- package/static/dist/380.33bc8989.async.js +1 -0
- package/static/dist/3800.f0507af4.async.js +1 -0
- package/static/dist/{4124.27cef0bd.async.js → 4124.b86154ed.async.js} +1 -1
- package/static/dist/4163.1781a549.async.js +1 -0
- package/static/dist/419.e21ea0bd.async.js +1 -0
- package/static/dist/4378.59be202f.async.js +1 -0
- package/static/dist/4424.a840b858.async.js +1 -0
- package/static/dist/4674.1b3db685.async.js +1 -0
- package/static/dist/{4925.9e8a41a2.async.js → 4925.9b770864.async.js} +1 -1
- package/static/dist/5310.4cd7a0c1.async.js +1 -0
- package/static/dist/{5484.8b81227f.async.js → 5484.68655765.async.js} +1 -1
- package/static/dist/5619.db04f386.async.js +1 -0
- package/static/dist/5830.9be47cbb.async.js +1 -0
- package/static/dist/6644.1f11b8fa.async.js +1 -0
- package/static/dist/694.0baa21db.async.js +1 -0
- package/static/dist/6986.6a4ae181.async.js +1 -0
- package/static/dist/{7382.26e7f5a4.async.js → 7346.7096e3b3.async.js} +1 -1
- package/static/dist/{7362.9fde9d80.async.js → 7362.e740709d.async.js} +1 -1
- package/static/dist/7393.341d9643.async.js +1 -0
- package/static/dist/{7708.dc75b315.async.js → 7708.27674f3a.async.js} +1 -1
- package/static/dist/7742.51617038.async.js +1 -0
- package/static/dist/7787.2fcf966f.async.js +1 -0
- package/static/dist/8008.cf4ff203.async.js +1 -0
- package/static/dist/8171.e2986b87.async.js +1 -0
- package/static/dist/8297.0c80e09a.async.js +1 -0
- package/static/dist/833.5add31bf.async.js +1 -0
- package/static/dist/{8432.055570e6.async.js → 8432.d8d0ade6.async.js} +1 -1
- package/static/dist/858.1a385b25.async.js +1 -0
- package/static/dist/8934.55adca8f.async.js +1 -0
- package/static/dist/{9065.8be8d60f.async.js → 9065.a1341834.async.js} +1 -1
- package/static/dist/9206.25353766.async.js +1 -0
- package/static/dist/{9504.248f6493.async.js → 9504.22415050.async.js} +1 -1
- package/static/dist/9525.b2007159.async.js +1 -0
- package/static/dist/9673.ac17e45d.async.js +1 -0
- package/static/dist/index.html +1 -1
- package/static/dist/layouts__index.308c5e5e.chunk.css +1 -0
- package/static/dist/layouts__index.931ce4c3.async.js +1 -0
- package/static/dist/{src__pages__404.e6b13931.async.js → src__pages__404.e1ca45fd.async.js} +1 -1
- package/static/dist/src__pages__config__index.9d83dfb7.async.js +1 -0
- package/static/dist/src__pages__crontab__detail.b91d6518.async.js +1 -0
- package/static/dist/src__pages__crontab__index.04176975.async.js +1 -0
- package/static/dist/src__pages__crontab__index.b622c4d6.chunk.css +1 -0
- package/static/dist/src__pages__crontab__logModal.91357c7c.async.js +1 -0
- package/static/dist/src__pages__crontab__modal.3fa8f075.async.js +1 -0
- package/static/dist/{src__pages__crontab__viewCreateModal.c46df55e.async.js → src__pages__crontab__viewCreateModal.a29322e7.async.js} +1 -1
- package/static/dist/{src__pages__crontab__viewManageModal.67aa809d.async.js → src__pages__crontab__viewManageModal.c026d403.async.js} +1 -1
- package/static/dist/{src__pages__dependence__index.1908bb39.async.js → src__pages__dependence__index.21153c24.async.js} +1 -1
- package/static/dist/src__pages__dependence__logModal.5aada63c.async.js +1 -0
- package/static/dist/src__pages__dependence__modal.96353c88.async.js +1 -0
- package/static/dist/src__pages__diff__index.e644b15f.async.js +1 -0
- package/static/dist/src__pages__env__editNameModal.25c21e59.async.js +1 -0
- package/static/dist/src__pages__env__index.f545d035.async.js +1 -0
- package/static/dist/src__pages__env__modal.4fd6abc2.async.js +1 -0
- package/static/dist/src__pages__error__index.f3ca5563.async.js +1 -0
- package/static/dist/src__pages__initialization__index.727e0f70.async.js +1 -0
- package/static/dist/{src__pages__log__index.4010410c.async.js → src__pages__log__index.ba2c1721.async.js} +1 -1
- package/static/dist/src__pages__login__index.e4257741.async.js +1 -0
- package/static/dist/src__pages__script__editModal.8d7bac2a.async.js +1 -0
- package/static/dist/src__pages__script__editNameModal.ca76e055.async.js +1 -0
- package/static/dist/src__pages__script__index.da31e2c2.async.js +1 -0
- package/static/dist/src__pages__script__renameModal.c166915b.async.js +1 -0
- package/static/dist/src__pages__script__saveModal.7ee07566.async.js +1 -0
- package/static/dist/src__pages__script__setting.020a7629.async.js +1 -0
- package/static/dist/src__pages__setting__about.40dce429.async.js +1 -0
- package/static/dist/src__pages__setting__appModal.efa5bb29.async.js +1 -0
- package/static/dist/src__pages__setting__checkUpdate.42020a45.async.js +1 -0
- package/static/dist/src__pages__setting__index.540c33a4.async.js +1 -0
- package/static/dist/src__pages__setting__loginLog.fe7238b5.async.js +1 -0
- package/static/dist/src__pages__setting__notification.b99a4c64.async.js +1 -0
- package/static/dist/src__pages__setting__other.d20be1c1.async.js +1 -0
- package/static/dist/src__pages__setting__progress.65e2e878.async.js +1 -0
- package/static/dist/src__pages__setting__security.d14993c7.async.js +1 -0
- package/static/dist/src__pages__setting__systemLog.751cc94d.async.js +1 -0
- package/static/dist/src__pages__subscription__index.0f0a7c0a.async.js +1 -0
- package/static/dist/src__pages__subscription__logModal.fce8a9b4.async.js +1 -0
- package/static/dist/src__pages__subscription__modal.61e787ce.async.js +1 -0
- package/static/dist/umi.0397b91d.js +1 -0
- package/version.yaml +17 -10
- package/static/dist/1124.0d983222.async.js +0 -1
- package/static/dist/2260.6b2b0020.async.js +0 -1
- package/static/dist/2393.4404a4fc.async.js +0 -1
- package/static/dist/2536.282cde37.async.js +0 -1
- package/static/dist/3271.e5502cf4.async.js +0 -1
- package/static/dist/3435.4a54080b.async.js +0 -1
- package/static/dist/380.1bd1f124.async.js +0 -1
- package/static/dist/3800.fca63cfc.async.js +0 -1
- package/static/dist/4163.2fc47c9d.async.js +0 -1
- package/static/dist/419.f84c4548.async.js +0 -1
- package/static/dist/4424.73f63db5.async.js +0 -1
- package/static/dist/4674.0196afcf.async.js +0 -1
- package/static/dist/5310.213fe20f.async.js +0 -1
- package/static/dist/6433.d9698b6c.async.js +0 -1
- package/static/dist/6644.fe01612c.async.js +0 -1
- package/static/dist/6805.5446eb5a.async.js +0 -1
- package/static/dist/6986.57a091e1.async.js +0 -1
- package/static/dist/7393.1f1df786.async.js +0 -1
- package/static/dist/7742.863081f5.async.js +0 -1
- package/static/dist/8008.882bf214.async.js +0 -1
- package/static/dist/8037.dd53e9c8.async.js +0 -1
- package/static/dist/8297.c44afb18.async.js +0 -1
- package/static/dist/833.ca85f497.async.js +0 -1
- package/static/dist/858.1899883e.async.js +0 -1
- package/static/dist/9673.5576fcd4.async.js +0 -1
- package/static/dist/9692.e04f774e.async.js +0 -1
- package/static/dist/layouts__index.0909c66d.chunk.css +0 -1
- package/static/dist/layouts__index.ed595716.async.js +0 -1
- package/static/dist/src__pages__config__index.f41a22d4.async.js +0 -1
- package/static/dist/src__pages__crontab__detail.b4fc2995.async.js +0 -1
- package/static/dist/src__pages__crontab__index.6c7b7b2c.chunk.css +0 -1
- package/static/dist/src__pages__crontab__index.776dba58.async.js +0 -1
- package/static/dist/src__pages__crontab__logModal.0fb6d62d.async.js +0 -1
- package/static/dist/src__pages__crontab__modal.0b01490c.async.js +0 -1
- package/static/dist/src__pages__dependence__logModal.8ecc9316.async.js +0 -1
- package/static/dist/src__pages__dependence__modal.9c12e6bb.async.js +0 -1
- package/static/dist/src__pages__diff__index.e23d088b.async.js +0 -1
- package/static/dist/src__pages__env__editNameModal.6f1edde6.async.js +0 -1
- package/static/dist/src__pages__env__index.3b08292e.async.js +0 -1
- package/static/dist/src__pages__env__modal.ca6133e6.async.js +0 -1
- package/static/dist/src__pages__error__index.0b4f4a22.async.js +0 -1
- package/static/dist/src__pages__initialization__index.51ebefcb.async.js +0 -1
- package/static/dist/src__pages__login__index.8667d8d2.async.js +0 -1
- package/static/dist/src__pages__script__editModal.b020a209.async.js +0 -1
- package/static/dist/src__pages__script__editNameModal.9220eb1a.async.js +0 -1
- package/static/dist/src__pages__script__index.6184a17e.async.js +0 -1
- package/static/dist/src__pages__script__renameModal.d6192fed.async.js +0 -1
- package/static/dist/src__pages__script__saveModal.eac5e9e7.async.js +0 -1
- package/static/dist/src__pages__script__setting.b958297b.async.js +0 -1
- package/static/dist/src__pages__setting__about.992010a5.async.js +0 -1
- package/static/dist/src__pages__setting__appModal.7563e7b0.async.js +0 -1
- package/static/dist/src__pages__setting__checkUpdate.9901a906.async.js +0 -1
- package/static/dist/src__pages__setting__index.2aa66013.async.js +0 -1
- package/static/dist/src__pages__setting__loginLog.2f2b0a78.async.js +0 -1
- package/static/dist/src__pages__setting__notification.e8ce9bdc.async.js +0 -1
- package/static/dist/src__pages__setting__other.c6067975.async.js +0 -1
- package/static/dist/src__pages__setting__progress.f58bffae.async.js +0 -1
- package/static/dist/src__pages__setting__security.cae5c68d.async.js +0 -1
- package/static/dist/src__pages__subscription__index.3266194c.async.js +0 -1
- package/static/dist/src__pages__subscription__logModal.a023b07e.async.js +0 -1
- package/static/dist/src__pages__subscription__modal.49a1a657.async.js +0 -1
- package/static/dist/umi.ff82d609.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[9673],{59673:function(e,n,t){t.d(n,{Z:function(){return l}});var o=t(14797),r=t(63313),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},i=t(46420),u=function(e,n){return r.createElement(i.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:n,icon:a}))};u.displayName="CheckOutlined";var l=r.forwardRef(u)},99604:function(e,n,t){t.d(n,{Z:function(){return l}});var o=t(14797),r=t(63313),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},i=t(46420),u=function(e,n){return r.createElement(i.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:n,icon:a}))};u.displayName="DownOutlined";var l=r.forwardRef(u)},23474:function(e,n,t){var o=t(63313),r=t(82259),a=t(84540);n.Z=function(e){return o.createElement(r.C,null,(function(n){var t=(0,n.getPrefixCls)("empty");switch(e){case"Table":case"List":return o.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(t,"-small")});default:return o.createElement(a.Z,null)}}))}},84540:function(e,n,t){t.d(n,{Z:function(){return h}});var o=t(22481),r=t(88028),a=t(84875),i=t.n(a),u=t(63313),l=t(82259),c=t(76557),s=function(){var e=(0,u.useContext(l.E_).getPrefixCls)("empty-img-default");return u.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),u.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),u.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),u.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),u.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),u.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},f=function(){var e=(0,u.useContext(l.E_).getPrefixCls)("empty-img-simple");return u.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},u.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))},d=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t},v=u.createElement(s,null),p=u.createElement(f,null),m=function(e){var n=e.className,t=e.prefixCls,a=e.image,s=void 0===a?v:a,f=e.description,m=e.children,h=e.imageStyle,g=d(e,["className","prefixCls","image","description","children","imageStyle"]),b=u.useContext(l.E_),E=b.getPrefixCls,w=b.direction;return u.createElement(c.Z,{componentName:"Empty"},(function(e){var a,l=E("empty",t),c=void 0!==f?f:e.description,d="string"==typeof c?c:"empty",v=null;return v="string"==typeof s?u.createElement("img",{alt:d,src:s}):s,u.createElement("div",(0,r.Z)({className:i()(l,(a={},(0,o.Z)(a,"".concat(l,"-normal"),s===p),(0,o.Z)(a,"".concat(l,"-rtl"),"rtl"===w),a),n)},g),u.createElement("div",{className:"".concat(l,"-image"),style:h},v),c&&u.createElement("div",{className:"".concat(l,"-description")},c),m&&u.createElement("div",{className:"".concat(l,"-footer")},m))}))};m.PRESENTED_IMAGE_DEFAULT=v,m.PRESENTED_IMAGE_SIMPLE=p;var h=m},91967:function(e,n,t){t.d(n,{Z:function(){return s}});var o=t(59673),r=t(40227),a=t(5132),i=t(99604),u=t(24090),l=t(37126),c=t(63313);function s(e){var n=e.suffixIcon,t=e.clearIcon,s=e.menuItemSelectedIcon,f=e.removeIcon,d=e.loading,v=e.multiple,p=e.hasFeedback,m=e.prefixCls,h=e.showArrow,g=e.feedbackIcon,b=null!=t?t:c.createElement(r.Z,null),E=function(e){return c.createElement(c.Fragment,null,!1!==h&&e,p&&g)},w=null;if(void 0!==n)w=E(n);else if(d)w=E(c.createElement(u.Z,{spin:!0}));else{var Z="".concat(m,"-suffix");w=function(e){var n=e.open,t=e.showSearch;return E(n&&t?c.createElement(l.Z,{className:Z}):c.createElement(i.Z,{className:Z}))}}return{clearIcon:b,suffixIcon:w,itemIcon:void 0!==s?s:v?c.createElement(o.Z,null):null,removeIcon:void 0!==f?f:c.createElement(a.Z,null)}}},49067:function(e,n,t){t.d(n,{ZP:function(){return l}});var o=t(41171),r=t(63313),a=t(46594),i=0,u=(0,a.Z)();function l(e){var n=r.useState(),t=(0,o.Z)(n,2),a=t[0],l=t[1];return r.useEffect((function(){var e;l("rc_select_".concat((u?(e=i,i+=1):e="TEST_OR_SSR",e)))}),[]),e||a}},40804:function(e,n,t){t.d(n,{Ac:function(){return J},Xo:function(){return ce},Wx:function(){return fe},ZP:function(){return Me},lk:function(){return w}});var o=t(88028),r=t(94718),a=t(22481),i=t(2595),u=t(41171),l=t(4155),c=t(69947),s=t(16376),f=t(11253),d=t(63313),v=t(84875),p=t.n(v),m=t(12334),h=t(6256),g=t(32602),b=t(93355),E=d.createContext(null);function w(){return d.useContext(E)}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=d.useRef(null),t=d.useRef(null);function o(o){(o||null===n.current)&&(n.current=o),window.clearTimeout(t.current),t.current=window.setTimeout((function(){n.current=null}),e)}return d.useEffect((function(){return function(){window.clearTimeout(t.current)}}),[]),[function(){return n.current},o]}var y=t(35019),S=t(73589),C=function(e){var n,t=e.className,o=e.customizeIcon,r=e.customizeIconProps,a=e.onMouseDown,i=e.onClick,u=e.children;return n="function"==typeof o?o(r):o,d.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==n?n:d.createElement("span",{className:p()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},u))},M=function(e,n){var t,o,r=e.prefixCls,a=e.id,u=e.inputElement,l=e.disabled,c=e.tabIndex,s=e.autoFocus,v=e.autoComplete,m=e.editable,h=e.activeDescendantId,g=e.value,E=e.maxLength,w=e.onKeyDown,Z=e.onMouseDown,y=e.onChange,S=e.onPaste,C=e.onCompositionStart,M=e.onCompositionEnd,x=e.open,R=e.attrs,N=u||d.createElement("input",null),I=N,D=I.ref,T=I.props,P=T.onKeyDown,O=T.onChange,k=T.onMouseDown,L=T.onCompositionStart,V=T.onCompositionEnd,H=T.style;return(0,f.Kp)(!("maxLength"in N.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),N=d.cloneElement(N,(0,i.Z)((0,i.Z)((0,i.Z)({type:"search"},T),{},{id:a,ref:(0,b.sQ)(n,D),disabled:l,tabIndex:c,autoComplete:v||"off",autoFocus:s,className:p()("".concat(r,"-selection-search-input"),null===(t=N)||void 0===t||null===(o=t.props)||void 0===o?void 0:o.className),role:"combobox","aria-expanded":x,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":h},R),{},{value:m?g:"",maxLength:E,readOnly:!m,unselectable:m?null:"on",style:(0,i.Z)((0,i.Z)({},H),{},{opacity:m?null:0}),onKeyDown:function(e){w(e),P&&P(e)},onMouseDown:function(e){Z(e),k&&k(e)},onChange:function(e){y(e),O&&O(e)},onCompositionStart:function(e){C(e),L&&L(e)},onCompositionEnd:function(e){M(e),V&&V(e)},onPaste:S}))},x=d.forwardRef(M);x.displayName="Input";var R=x;function N(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var I="undefined"!=typeof window&&window.document&&window.document.documentElement;function D(e){return["string","number"].includes((0,c.Z)(e))}function T(e){var n=void 0;return e&&(D(e.title)?n=e.title.toString():D(e.label)&&(n=e.label.toString())),n}function P(e){var n;return null!==(n=e.key)&&void 0!==n?n:e.value}var O=function(e){e.preventDefault(),e.stopPropagation()},k=function(e){var n,t,o=e.id,r=e.prefixCls,i=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,f=e.inputRef,v=e.placeholder,m=e.disabled,h=e.mode,g=e.showSearch,b=e.autoFocus,E=e.autoComplete,w=e.activeDescendantId,Z=e.tabIndex,M=e.removeIcon,x=e.maxTagCount,N=e.maxTagTextLength,D=e.maxTagPlaceholder,k=void 0===D?function(e){return"+ ".concat(e.length," ...")}:D,L=e.tagRender,V=e.onToggleOpen,H=e.onRemove,A=e.onInputChange,F=e.onInputPaste,_=e.onInputKeyDown,z=e.onInputMouseDown,K=e.onInputCompositionStart,W=e.onInputCompositionEnd,j=d.useRef(null),U=(0,d.useState)(0),Y=(0,u.Z)(U,2),B=Y[0],G=Y[1],X=(0,d.useState)(!1),q=(0,u.Z)(X,2),Q=q[0],J=q[1],$="".concat(r,"-selection"),ee=l||"multiple"===h&&!1===s||"tags"===h?c:"",ne="tags"===h||"multiple"===h&&!1===s||g&&(l||Q);function te(e,n,t,o,r){return d.createElement("span",{className:p()("".concat($,"-item"),(0,a.Z)({},"".concat($,"-item-disabled"),t)),title:T(e)},d.createElement("span",{className:"".concat($,"-item-content")},n),o&&d.createElement(C,{className:"".concat($,"-item-remove"),onMouseDown:O,onClick:r,customizeIcon:M},"×"))}n=function(){G(j.current.scrollWidth)},t=[ee],I?d.useLayoutEffect(n,t):d.useEffect(n,t);var oe=d.createElement("div",{className:"".concat($,"-search"),style:{width:B},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},d.createElement(R,{ref:f,open:l,prefixCls:r,id:o,inputElement:null,disabled:m,autoFocus:b,autoComplete:E,editable:ne,activeDescendantId:w,value:ee,onKeyDown:_,onMouseDown:z,onChange:A,onPaste:F,onCompositionStart:K,onCompositionEnd:W,tabIndex:Z,attrs:(0,y.Z)(e,!0)}),d.createElement("span",{ref:j,className:"".concat($,"-search-mirror"),"aria-hidden":!0},ee," ")),re=d.createElement(S.Z,{prefixCls:"".concat($,"-overflow"),data:i,renderItem:function(e){var n=e.disabled,t=e.label,o=e.value,r=!m&&!n,a=t;if("number"==typeof N&&("string"==typeof t||"number"==typeof t)){var i=String(a);i.length>N&&(a="".concat(i.slice(0,N),"..."))}var u=function(n){n&&n.stopPropagation(),H(e)};return"function"==typeof L?function(e,n,t,o,r){return d.createElement("span",{onMouseDown:function(e){O(e),V(!l)}},L({label:n,value:e,disabled:t,closable:o,onClose:r}))}(o,a,n,r,u):te(e,a,n,r,u)},renderRest:function(e){var n="function"==typeof k?k(e):k;return te({title:n},n,!1)},suffix:oe,itemKey:P,maxCount:x});return d.createElement(d.Fragment,null,re,!i.length&&!ee&&d.createElement("span",{className:"".concat($,"-placeholder")},v))},L=function(e){var n=e.inputElement,t=e.prefixCls,o=e.id,r=e.inputRef,a=e.disabled,i=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,s=e.mode,f=e.open,v=e.values,p=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,E=e.maxLength,w=e.onInputKeyDown,Z=e.onInputMouseDown,S=e.onInputChange,C=e.onInputPaste,M=e.onInputCompositionStart,x=e.onInputCompositionEnd,N=d.useState(!1),I=(0,u.Z)(N,2),D=I[0],P=I[1],O="combobox"===s,k=O||h,L=v[0],V=g||"";O&&b&&!D&&(V=b),d.useEffect((function(){O&&P(!1)}),[O,b]);var H=!("combobox"!==s&&!f&&!h)&&!!V,A=T(L);return d.createElement(d.Fragment,null,d.createElement("span",{className:"".concat(t,"-selection-search")},d.createElement(R,{ref:r,prefixCls:t,id:o,open:f,inputElement:n,disabled:a,autoFocus:i,autoComplete:l,editable:k,activeDescendantId:c,value:V,onKeyDown:w,onMouseDown:Z,onChange:function(e){P(!0),S(e)},onPaste:C,onCompositionStart:M,onCompositionEnd:x,tabIndex:m,attrs:(0,y.Z)(e,!0),maxLength:O?E:void 0})),!O&&L?d.createElement("span",{className:"".concat(t,"-selection-item"),title:A,style:H?{visibility:"hidden"}:void 0},L.label):null,function(){if(L)return null;var e=H?{visibility:"hidden"}:void 0;return d.createElement("span",{className:"".concat(t,"-selection-placeholder"),style:e},p)}())};var V=function(e,n){var t=(0,d.useRef)(null),r=(0,d.useRef)(!1),a=e.prefixCls,i=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,f=e.autoClearSearchValue,v=e.onSearch,p=e.onSearchSubmit,m=e.onToggleOpen,h=e.onInputKeyDown,b=e.domRef;d.useImperativeHandle(n,(function(){return{focus:function(){t.current.focus()},blur:function(){t.current.blur()}}}));var E=Z(0),w=(0,u.Z)(E,2),y=w[0],S=w[1],C=(0,d.useRef)(null),M=function(e){!1!==v(e,!0,r.current)&&m(!0)},x={inputRef:t,onInputKeyDown:function(e){var n,t=e.which;t!==g.Z.UP&&t!==g.Z.DOWN||e.preventDefault(),h&&h(e),t!==g.Z.ENTER||"tags"!==l||r.current||i||null==p||p(e.target.value),n=t,[g.Z.ESC,g.Z.SHIFT,g.Z.BACKSPACE,g.Z.TAB,g.Z.WIN_KEY,g.Z.ALT,g.Z.META,g.Z.WIN_KEY_RIGHT,g.Z.CTRL,g.Z.SEMICOLON,g.Z.EQUALS,g.Z.CAPS_LOCK,g.Z.CONTEXT_MENU,g.Z.F1,g.Z.F2,g.Z.F3,g.Z.F4,g.Z.F5,g.Z.F6,g.Z.F7,g.Z.F8,g.Z.F9,g.Z.F10,g.Z.F11,g.Z.F12].includes(n)||m(!0)},onInputMouseDown:function(){S(!0)},onInputChange:function(e){var n=e.target.value;if(s&&C.current&&/[\r\n]/.test(C.current)){var t=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(t,C.current)}C.current=null,M(n)},onInputPaste:function(e){var n=e.clipboardData.getData("text");C.current=n},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&M(e.target.value)}},R="multiple"===l||"tags"===l?d.createElement(k,(0,o.Z)({},e,x)):d.createElement(L,(0,o.Z)({},e,x));return d.createElement("div",{ref:b,className:"".concat(a,"-selector"),onClick:function(e){e.target!==t.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){t.current.focus()})):t.current.focus())},onMouseDown:function(e){var n=y();e.target===t.current||n||"combobox"===l||e.preventDefault(),("combobox"===l||c&&n)&&i||(i&&!1!==f&&v("",!0,!1),m())}},R)},H=d.forwardRef(V);H.displayName="Selector";var A=H,F=t(90916),_=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],z=function(e,n){var t=e.prefixCls,r=(e.disabled,e.visible),u=e.children,c=e.popupElement,s=e.containerWidth,f=e.animation,v=e.transitionName,m=e.dropdownStyle,h=e.dropdownClassName,g=e.direction,b=void 0===g?"ltr":g,E=e.placement,w=e.dropdownMatchSelectWidth,Z=e.dropdownRender,y=e.dropdownAlign,S=e.getPopupContainer,C=e.empty,M=e.getTriggerDOMNode,x=e.onPopupVisibleChange,R=e.onPopupMouseEnter,N=(0,l.Z)(e,_),I="".concat(t,"-dropdown"),D=c;Z&&(D=Z(c));var T=d.useMemo((function(){return function(e){var n=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1}}}}(w)}),[w]),P=f?"".concat(I,"-").concat(f):v,O=d.useRef(null);d.useImperativeHandle(n,(function(){return{getPopupElement:function(){return O.current}}}));var k=(0,i.Z)({minWidth:s},m);return"number"==typeof w?k.width=w:w&&(k.width=s),d.createElement(F.Z,(0,o.Z)({},N,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:E||("rtl"===b?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:I,popupTransitionName:P,popup:d.createElement("div",{ref:O,onMouseEnter:R},D),popupAlign:y,popupVisible:r,getPopupContainer:S,popupClassName:p()(h,(0,a.Z)({},"".concat(I,"-empty"),C)),popupStyle:k,getTriggerDOMNode:M,onPopupVisibleChange:x}),u)},K=d.forwardRef(z);K.displayName="SelectTrigger";var W=K,j=t(70786);function U(e,n){var t,o=e.key;return"value"in e&&(t=e.value),null!=o?o:void 0!==t?t:"rc-index-key-".concat(n)}function Y(e,n){var t=e||{};return{label:t.label||(n?"children":"label"),value:t.value||"value",options:t.options||"options"}}function B(e){var n=(0,i.Z)({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return(0,f.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),n}}),n}var G=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],X=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function q(e){return"tags"===e||"multiple"===e}var Q=d.forwardRef((function(e,n){var t,f,v=e.id,w=e.prefixCls,y=e.className,S=e.showSearch,M=e.tagRender,x=e.direction,R=e.omitDomProps,N=e.displayValues,I=e.onDisplayValuesChange,D=e.emptyOptions,T=e.notFoundContent,P=void 0===T?"Not Found":T,O=e.onClear,k=e.mode,L=e.disabled,V=e.loading,H=e.getInputElement,F=e.getRawInputElement,_=e.open,z=e.defaultOpen,K=e.onDropdownVisibleChange,U=e.activeValue,Y=e.onActiveValueChange,B=e.activeDescendantId,Q=e.searchValue,J=e.autoClearSearchValue,$=e.onSearch,ee=e.onSearchSplit,ne=e.tokenSeparators,te=e.allowClear,oe=e.showArrow,re=e.inputIcon,ae=e.clearIcon,ie=e.OptionList,ue=e.animation,le=e.transitionName,ce=e.dropdownStyle,se=e.dropdownClassName,fe=e.dropdownMatchSelectWidth,de=e.dropdownRender,ve=e.dropdownAlign,pe=e.placement,me=e.getPopupContainer,he=e.showAction,ge=void 0===he?[]:he,be=e.onFocus,Ee=e.onBlur,we=e.onKeyUp,Ze=e.onKeyDown,ye=e.onMouseDown,Se=(0,l.Z)(e,G),Ce=q(k),Me=(void 0!==S?S:Ce)||"combobox"===k,xe=(0,i.Z)({},Se);X.forEach((function(e){delete xe[e]})),null==R||R.forEach((function(e){delete xe[e]}));var Re=d.useState(!1),Ne=(0,u.Z)(Re,2),Ie=Ne[0],De=Ne[1];d.useEffect((function(){De((0,h.Z)())}),[]);var Te=d.useRef(null),Pe=d.useRef(null),Oe=d.useRef(null),ke=d.useRef(null),Le=d.useRef(null),Ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=d.useState(!1),t=(0,u.Z)(n,2),o=t[0],r=t[1],a=d.useRef(null),i=function(){window.clearTimeout(a.current)};return d.useEffect((function(){return i}),[]),[o,function(n,t){i(),a.current=window.setTimeout((function(){r(n),t&&t()}),e)},i]}(),He=(0,u.Z)(Ve,3),Ae=He[0],Fe=He[1],_e=He[2];d.useImperativeHandle(n,(function(){var e,n;return{focus:null===(e=ke.current)||void 0===e?void 0:e.focus,blur:null===(n=ke.current)||void 0===n?void 0:n.blur,scrollTo:function(e){var n;return null===(n=Le.current)||void 0===n?void 0:n.scrollTo(e)}}}));var ze=d.useMemo((function(){var e;if("combobox"!==k)return Q;var n=null===(e=N[0])||void 0===e?void 0:e.value;return"string"==typeof n||"number"==typeof n?String(n):""}),[Q,k,N]),Ke="combobox"===k&&"function"==typeof H&&H()||null,We="function"==typeof F&&F(),je=(0,b.x1)(Pe,null==We||null===(t=We.props)||void 0===t?void 0:t.ref),Ue=(0,s.Z)(void 0,{defaultValue:z,value:_}),Ye=(0,u.Z)(Ue,2),Be=Ye[0],Ge=Ye[1],Xe=Be,qe=!P&&D;(L||qe&&Xe&&"combobox"===k)&&(Xe=!1);var Qe=!qe&&Xe,Je=d.useCallback((function(e){var n=void 0!==e?e:!Xe;L||(Ge(n),Xe!==n&&(null==K||K(n)))}),[L,Xe,Ge,K]),$e=d.useMemo((function(){return(ne||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ne]),en=function(e,n,t){var o=!0,a=e;null==Y||Y(null);var i=t?null:function(e,n){if(!n||!n.length)return null;var t=!1,o=function e(n,o){var a=(0,j.Z)(o),i=a[0],u=a.slice(1);if(!i)return[n];var l=n.split(i);return t=t||l.length>1,l.reduce((function(n,t){return[].concat((0,r.Z)(n),(0,r.Z)(e(t,u)))}),[]).filter((function(e){return e}))}(e,n);return t?o:null}(e,ne);return"combobox"!==k&&i&&(a="",null==ee||ee(i),Je(!1),o=!1),$&&ze!==a&&$(a,{source:n?"typing":"effect"}),o};d.useEffect((function(){Xe||Ce||"combobox"===k||en("",!1,!1)}),[Xe]),d.useEffect((function(){Be&&L&&Ge(!1),L&&Fe(!1)}),[L]);var nn=Z(),tn=(0,u.Z)(nn,2),on=tn[0],rn=tn[1],an=d.useRef(!1),un=[];d.useEffect((function(){return function(){un.forEach((function(e){return clearTimeout(e)})),un.splice(0,un.length)}}),[]);var ln,cn=d.useState(null),sn=(0,u.Z)(cn,2),fn=sn[0],dn=sn[1],vn=d.useState({}),pn=(0,u.Z)(vn,2)[1];(0,m.Z)((function(){if(Qe){var e,n=Math.ceil(null===(e=Te.current)||void 0===e?void 0:e.offsetWidth);fn===n||Number.isNaN(n)||dn(n)}}),[Qe]),We&&(ln=function(e){Je(e)}),function(e,n,t,o){var r=d.useRef(null);r.current={open:n,triggerOpen:t,customizedTrigger:o},d.useEffect((function(){function n(n){var t;if(null===(t=r.current)||void 0===t||!t.customizedTrigger){var o=n.target;o.shadowRoot&&n.composed&&(o=n.composedPath()[0]||o),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",n),function(){return window.removeEventListener("mousedown",n)}}),[])}((function(){var e;return[Te.current,null===(e=Oe.current)||void 0===e?void 0:e.getPopupElement()]}),Qe,Je,!!We);var mn,hn,gn=d.useMemo((function(){return(0,i.Z)((0,i.Z)({},e),{},{notFoundContent:P,open:Xe,triggerOpen:Qe,id:v,showSearch:Me,multiple:Ce,toggleOpen:Je})}),[e,P,Qe,Xe,v,Me,Ce,Je]),bn=void 0!==oe?oe:V||!Ce&&"combobox"!==k;bn&&(mn=d.createElement(C,{className:p()("".concat(w,"-arrow"),(0,a.Z)({},"".concat(w,"-arrow-loading"),V)),customizeIcon:re,customizeIconProps:{loading:V,searchValue:ze,open:Xe,focused:Ae,showSearch:Me}}));L||!te||!N.length&&!ze||"combobox"===k&&""===ze||(hn=d.createElement(C,{className:"".concat(w,"-clear"),onMouseDown:function(){var e;null==O||O(),null===(e=ke.current)||void 0===e||e.focus(),I([],{type:"clear",values:N}),en("",!1,!1)},customizeIcon:ae},"×"));var En,wn=d.createElement(ie,{ref:Le}),Zn=p()(w,y,(f={},(0,a.Z)(f,"".concat(w,"-focused"),Ae),(0,a.Z)(f,"".concat(w,"-multiple"),Ce),(0,a.Z)(f,"".concat(w,"-single"),!Ce),(0,a.Z)(f,"".concat(w,"-allow-clear"),te),(0,a.Z)(f,"".concat(w,"-show-arrow"),bn),(0,a.Z)(f,"".concat(w,"-disabled"),L),(0,a.Z)(f,"".concat(w,"-loading"),V),(0,a.Z)(f,"".concat(w,"-open"),Xe),(0,a.Z)(f,"".concat(w,"-customize-input"),Ke),(0,a.Z)(f,"".concat(w,"-show-search"),Me),f)),yn=d.createElement(W,{ref:Oe,disabled:L,prefixCls:w,visible:Qe,popupElement:wn,containerWidth:fn,animation:ue,transitionName:le,dropdownStyle:ce,dropdownClassName:se,direction:x,dropdownMatchSelectWidth:fe,dropdownRender:de,dropdownAlign:ve,placement:pe,getPopupContainer:me,empty:D,getTriggerDOMNode:function(){return Pe.current},onPopupVisibleChange:ln,onPopupMouseEnter:function(){pn({})}},We?d.cloneElement(We,{ref:je}):d.createElement(A,(0,o.Z)({},e,{domRef:Pe,prefixCls:w,inputElement:Ke,ref:ke,id:v,showSearch:Me,autoClearSearchValue:J,mode:k,activeDescendantId:B,tagRender:M,values:N,open:Xe,onToggleOpen:Je,activeValue:U,searchValue:ze,onSearch:en,onSearchSubmit:function(e){e&&e.trim()&&$(e,{source:"submit"})},onRemove:function(e){var n=N.filter((function(n){return n!==e}));I(n,{type:"remove",values:[e]})},tokenWithEnter:$e})));return En=We?yn:d.createElement("div",(0,o.Z)({className:Zn},xe,{ref:Te,onMouseDown:function(e){var n,t=e.target,o=null===(n=Oe.current)||void 0===n?void 0:n.getPopupElement();if(o&&o.contains(t)){var r=setTimeout((function(){var e,n=un.indexOf(r);-1!==n&&un.splice(n,1),_e(),Ie||o.contains(document.activeElement)||null===(e=ke.current)||void 0===e||e.focus()}));un.push(r)}for(var a=arguments.length,i=new Array(a>1?a-1:0),u=1;u<a;u++)i[u-1]=arguments[u];null==ye||ye.apply(void 0,[e].concat(i))},onKeyDown:function(e){var n,t=on(),o=e.which;if(o===g.Z.ENTER&&("combobox"!==k&&e.preventDefault(),Xe||Je(!0)),rn(!!ze),o===g.Z.BACKSPACE&&!t&&Ce&&!ze&&N.length){for(var a=(0,r.Z)(N),i=null,u=a.length-1;u>=0;u-=1){var l=a[u];if(!l.disabled){a.splice(u,1),i=l;break}}i&&I(a,{type:"remove",values:[i]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),f=1;f<c;f++)s[f-1]=arguments[f];Xe&&Le.current&&(n=Le.current).onKeyDown.apply(n,[e].concat(s)),null==Ze||Ze.apply(void 0,[e].concat(s))},onKeyUp:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];var r;Xe&&Le.current&&(r=Le.current).onKeyUp.apply(r,[e].concat(t)),null==we||we.apply(void 0,[e].concat(t))},onFocus:function(){Fe(!0),L||(be&&!an.current&&be.apply(void 0,arguments),ge.includes("focus")&&Je(!0)),an.current=!0},onBlur:function(){Fe(!1,(function(){an.current=!1,Je(!1)})),L||(ze&&("tags"===k?$(ze,{source:"submit"}):"multiple"===k&&$("",{source:"blur"})),Ee&&Ee.apply(void 0,arguments))}}),Ae&&!Xe&&d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(N.map((function(e){var n=e.label,t=e.value;return["number","string"].includes((0,c.Z)(n))?n:t})).join(", "))),yn,mn,hn),d.createElement(E.Provider,{value:gn},En)}));var J=Q;function $(e,n){return N(e).join("").toUpperCase().includes(n)}var ee=t(49067),ne=t(51026),te=["children","value"],oe=["children"];function re(e){var n=e,t=n.key,o=n.props,r=o.children,a=o.value,u=(0,l.Z)(o,te);return(0,i.Z)({key:t,value:void 0!==a?a:t,children:r},u)}function ae(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,ne.Z)(e).map((function(e,t){if(!d.isValidElement(e)||!e.type)return null;var o=e,r=o.type.isSelectOptGroup,a=o.key,u=o.props,c=u.children,s=(0,l.Z)(u,oe);return n||!r?re(e):(0,i.Z)((0,i.Z)({key:"__RC_SELECT_GRP__".concat(null===a?t:a,"__"),label:a},s),{},{options:ae(c)})})).filter((function(e){return e}))}function ie(e,n,t,o,r){return d.useMemo((function(){var a=e;!e&&(a=ae(n));var i=new Map,u=new Map,l=function(e,n,t){t&&"string"==typeof t&&e.set(n[t],n)};return function e(n){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<n.length;c+=1){var s=n[c];!s[t.options]||a?(i.set(s[t.value],s),l(u,s,t.label),l(u,s,o),l(u,s,r)):e(s[t.options],!0)}}(a),{options:a,valueOptions:i,labelOptions:u}}),[e,n,t,o,r])}function ue(e){var n=d.useRef();n.current=e;var t=d.useCallback((function(){return n.current.apply(n,arguments)}),[]);return t}var le=function(){return null};le.isSelectOptGroup=!0;var ce=le,se=function(){return null};se.isSelectOption=!0;var fe=se,de=t(54331),ve=t(85444),pe=t(29030);var me=d.createContext(null),he=["disabled","title","children","style","className"];function ge(e){return"string"==typeof e||"number"==typeof e}var be=function(e,n){var t=w(),i=t.prefixCls,c=t.id,s=t.open,f=t.multiple,v=t.mode,m=t.searchValue,h=t.toggleOpen,b=t.notFoundContent,E=t.onPopupScroll,Z=d.useContext(me),S=Z.flattenOptions,M=Z.onActiveValue,x=Z.defaultActiveFirstOption,R=Z.onSelect,N=Z.menuItemSelectedIcon,I=Z.rawValues,D=Z.fieldNames,T=Z.virtual,P=Z.listHeight,O=Z.listItemHeight,k="".concat(i,"-item"),L=(0,ve.Z)((function(){return S}),[s,S],(function(e,n){return n[0]&&e[1]!==n[1]})),V=d.useRef(null),H=function(e){e.preventDefault()},A=function(e){V.current&&V.current.scrollTo("number"==typeof e?{index:e}:e)},F=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=L.length,o=0;o<t;o+=1){var r=(e+o*n+t)%t,a=L[r],i=a.group,u=a.data;if(!i&&!u.disabled)return r}return-1},_=d.useState((function(){return F(0)})),z=(0,u.Z)(_,2),K=z[0],W=z[1],j=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];W(e);var t={source:n?"keyboard":"mouse"},o=L[e];o?M(o.value,e,t):M(null,-1,t)};(0,d.useEffect)((function(){j(!1!==x?F(0):-1)}),[L.length,m]);var U=d.useCallback((function(e){return I.has(e)&&"combobox"!==v}),[v,(0,r.Z)(I).toString(),I.size]);(0,d.useEffect)((function(){var e,n=setTimeout((function(){if(!f&&s&&1===I.size){var e=Array.from(I)[0],n=L.findIndex((function(n){return n.data.value===e}));-1!==n&&(j(n),A(n))}}));s&&(null===(e=V.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(n)}}),[s,m]);var Y=function(e){void 0!==e&&R(e,{selected:!I.has(e)}),f||h(!1)};if(d.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var n=e.which,t=e.ctrlKey;switch(n){case g.Z.N:case g.Z.P:case g.Z.UP:case g.Z.DOWN:var o=0;if(n===g.Z.UP?o=-1:n===g.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&t&&(n===g.Z.N?o=1:n===g.Z.P&&(o=-1)),0!==o){var r=F(K+o,o);A(r),j(r,!0)}break;case g.Z.ENTER:var a=L[K];a&&!a.data.disabled?Y(a.value):Y(void 0),s&&e.preventDefault();break;case g.Z.ESC:h(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){A(e)}}})),0===L.length)return d.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(k,"-empty"),onMouseDown:H},b);var B=Object.keys(D).map((function(e){return D[e]})),G=function(e){return e.label},X=function(e){var n=L[e];if(!n)return null;var t=n.data||{},r=t.value,a=n.group,i=(0,y.Z)(t,!0),u=G(n);return n?d.createElement("div",(0,o.Z)({"aria-label":"string"!=typeof u||a?null:u},i,{key:e,role:a?"presentation":"option",id:"".concat(c,"_list_").concat(e),"aria-selected":U(r)}),r):null};return d.createElement(d.Fragment,null,d.createElement("div",{role:"listbox",id:"".concat(c,"_list"),style:{height:0,width:0,overflow:"hidden"}},X(K-1),X(K),X(K+1)),d.createElement(pe.Z,{itemKey:"key",ref:V,data:L,height:P,itemHeight:O,fullHeight:!1,onMouseDown:H,onScroll:E,virtual:T},(function(e,n){var t,r=e.group,i=e.groupOption,u=e.data,c=e.label,s=e.value,f=u.key;if(r){var v,m=null!==(v=u.title)&&void 0!==v?v:ge(c)?c.toString():void 0;return d.createElement("div",{className:p()(k,"".concat(k,"-group")),title:m},void 0!==c?c:f)}var h=u.disabled,g=u.title,b=(u.children,u.style),E=u.className,w=(0,l.Z)(u,he),Z=(0,de.Z)(w,B),S=U(s),M="".concat(k,"-option"),x=p()(k,M,E,(t={},(0,a.Z)(t,"".concat(M,"-grouped"),i),(0,a.Z)(t,"".concat(M,"-active"),K===n&&!h),(0,a.Z)(t,"".concat(M,"-disabled"),h),(0,a.Z)(t,"".concat(M,"-selected"),S),t)),R=G(e),I=!N||"function"==typeof N||S,D="number"==typeof R?R:R||s,T=ge(D)?D.toString():void 0;return void 0!==g&&(T=g),d.createElement("div",(0,o.Z)({},(0,y.Z)(Z),{"aria-selected":S,className:x,title:T,onMouseMove:function(){K===n||h||j(n)},onClick:function(){h||Y(s)},style:b}),d.createElement("div",{className:"".concat(M,"-content")},D),d.isValidElement(N)||S,I&&d.createElement(C,{className:"".concat(k,"-option-state"),customizeIcon:N,customizeIconProps:{isSelected:S}},S?"✓":null))})))},Ee=d.forwardRef(be);Ee.displayName="OptionList";var we=Ee;var Ze=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],ye=["inputValue"];var Se=d.forwardRef((function(e,n){var t=e.id,f=e.mode,v=e.prefixCls,p=void 0===v?"rc-select":v,m=e.backfill,h=e.fieldNames,g=e.inputValue,b=e.searchValue,E=e.onSearch,w=e.autoClearSearchValue,Z=void 0===w||w,y=e.onSelect,S=e.onDeselect,C=e.dropdownMatchSelectWidth,M=void 0===C||C,x=e.filterOption,R=e.filterSort,I=e.optionFilterProp,D=e.optionLabelProp,T=e.options,P=e.children,O=e.defaultActiveFirstOption,k=e.menuItemSelectedIcon,L=e.virtual,V=e.listHeight,H=void 0===V?200:V,A=e.listItemHeight,F=void 0===A?20:A,_=e.value,z=e.defaultValue,K=e.labelInValue,W=e.onChange,j=(0,l.Z)(e,Ze),G=(0,ee.ZP)(t),X=q(f),Q=!(T||!P),ne=d.useMemo((function(){return(void 0!==x||"combobox"!==f)&&x}),[x,f]),te=d.useMemo((function(){return Y(h,Q)}),[JSON.stringify(h),Q]),oe=(0,s.Z)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),re=(0,u.Z)(oe,2),ae=re[0],le=re[1],ce=ie(T,P,te,I,D),se=ce.valueOptions,fe=ce.labelOptions,de=ce.options,ve=d.useCallback((function(e){return N(e).map((function(e){var n,t,o,r,a,i;(function(e){return!e||"object"!==(0,c.Z)(e)})(e)?n=e:(o=e.key,t=e.label,n=null!==(i=e.value)&&void 0!==i?i:o);var u,l=se.get(n);l&&(void 0===t&&(t=null==l?void 0:l[D||te.label]),void 0===o&&(o=null!==(u=null==l?void 0:l.key)&&void 0!==u?u:n),r=null==l?void 0:l.disabled,a=null==l?void 0:l.title);return{label:t,value:n,key:o,disabled:r,title:a}}))}),[te,D,se]),pe=(0,s.Z)(z,{value:_}),he=(0,u.Z)(pe,2),ge=he[0],be=he[1],Ee=function(e,n){var t=d.useRef({values:new Map,options:new Map});return[d.useMemo((function(){var o=t.current,r=o.values,a=o.options,u=e.map((function(e){var n;return void 0===e.label?(0,i.Z)((0,i.Z)({},e),{},{label:null===(n=r.get(e.value))||void 0===n?void 0:n.label}):e})),l=new Map,c=new Map;return u.forEach((function(e){l.set(e.value,e),c.set(e.value,n.get(e.value)||a.get(e.value))})),t.current.values=l,t.current.options=c,u}),[e,n]),d.useCallback((function(e){return n.get(e)||t.current.options.get(e)}),[n])]}(d.useMemo((function(){var e,n=ve(ge);return"combobox"!==f||null!==(e=n[0])&&void 0!==e&&e.value?n:[]}),[ge,ve,f]),se),Se=(0,u.Z)(Ee,2),Ce=Se[0],Me=Se[1],xe=d.useMemo((function(){if(!f&&1===Ce.length){var e=Ce[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Ce.map((function(e){var n;return(0,i.Z)((0,i.Z)({},e),{},{label:null!==(n=e.label)&&void 0!==n?n:e.value})}))}),[f,Ce]),Re=d.useMemo((function(){return new Set(Ce.map((function(e){return e.value})))}),[Ce]);d.useEffect((function(){if("combobox"===f){var e,n=null===(e=Ce[0])||void 0===e?void 0:e.value;le(function(e){return null!=e}(n)?String(n):"")}}),[Ce]);var Ne=ue((function(e,n){var t,o=null!=n?n:e;return t={},(0,a.Z)(t,te.value,e),(0,a.Z)(t,te.label,o),t})),Ie=function(e,n,t,o,r){return d.useMemo((function(){if(!t||!1===o)return e;var u=n.options,l=n.label,c=n.value,s=[],f="function"==typeof o,d=t.toUpperCase(),v=f?o:function(e,n){return r?$(n[r],d):n[u]?$(n["children"!==l?l:"label"],d):$(n[c],d)},p=f?function(e){return B(e)}:function(e){return e};return e.forEach((function(e){if(e[u])if(v(t,p(e)))s.push(e);else{var n=e[u].filter((function(e){return v(t,p(e))}));n.length&&s.push((0,i.Z)((0,i.Z)({},e),{},(0,a.Z)({},u,n)))}else v(t,p(e))&&s.push(e)})),s}),[e,o,r,t,n])}(d.useMemo((function(){if("tags"!==f)return de;var e=(0,r.Z)(de);return(0,r.Z)(Ce).sort((function(e,n){return e.value<n.value?-1:1})).forEach((function(n){var t=n.value;(function(e){return se.has(e)})(t)||e.push(Ne(t,n.label))})),e}),[Ne,de,se,Ce,f]),te,ae,ne,I),De=d.useMemo((function(){return"tags"!==f||!ae||Ie.some((function(e){return e[I||"value"]===ae}))?Ie:[Ne(ae)].concat((0,r.Z)(Ie))}),[Ne,I,f,Ie,ae]),Te=d.useMemo((function(){return R?(0,r.Z)(De).sort((function(e,n){return R(e,n)})):De}),[De,R]),Pe=d.useMemo((function(){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fieldNames,o=n.childrenAsData,r=[],a=Y(t,!1),i=a.label,u=a.value,l=a.options;function c(e,n){e.forEach((function(e){var t=e[i];if(n||!(l in e)){var a=e[u];r.push({key:U(e,r.length),groupOption:n,data:e,label:t,value:a})}else{var s=t;void 0===s&&o&&(s=e.label),r.push({key:U(e,r.length),group:!0,data:e,label:s}),c(e[l],!0)}}))}return c(e,!1),r}(Te,{fieldNames:te,childrenAsData:Q})}),[Te,te,Q]),Oe=function(e){var n=ve(e);if(be(n),W&&(n.length!==Ce.length||n.some((function(e,n){var t;return(null===(t=Ce[n])||void 0===t?void 0:t.value)!==(null==e?void 0:e.value)})))){var t=K?n:n.map((function(e){return e.value})),o=n.map((function(e){return B(Me(e.value))}));W(X?t:t[0],X?o:o[0])}},ke=d.useState(null),Le=(0,u.Z)(ke,2),Ve=Le[0],He=Le[1],Ae=d.useState(0),Fe=(0,u.Z)(Ae,2),_e=Fe[0],ze=Fe[1],Ke=void 0!==O?O:"combobox"!==f,We=d.useCallback((function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.source,r=void 0===o?"keyboard":o;ze(n),m&&"combobox"===f&&null!==e&&"keyboard"===r&&He(String(e))}),[m,f]),je=function(e,n,t){var o=function(){var n,t=Me(e);return[K?{label:null==t?void 0:t[te.label],value:e,key:null!==(n=null==t?void 0:t.key)&&void 0!==n?n:e}:e,B(t)]};if(n&&y){var r=o(),a=(0,u.Z)(r,2),i=a[0],l=a[1];y(i,l)}else if(!n&&S&&"clear"!==t){var c=o(),s=(0,u.Z)(c,2),f=s[0],d=s[1];S(f,d)}},Ue=ue((function(e,n){var t,o=!X||n.selected;t=o?X?[].concat((0,r.Z)(Ce),[e]):[e]:Ce.filter((function(n){return n.value!==e})),Oe(t),je(e,o),"combobox"===f?He(""):q&&!Z||(le(""),He(""))})),Ye=d.useMemo((function(){var e=!1!==L&&!1!==M;return(0,i.Z)((0,i.Z)({},ce),{},{flattenOptions:Pe,onActiveValue:We,defaultActiveFirstOption:Ke,onSelect:Ue,menuItemSelectedIcon:k,rawValues:Re,fieldNames:te,virtual:e,listHeight:H,listItemHeight:F,childrenAsData:Q})}),[ce,Pe,We,Ke,Ue,k,Re,te,L,M,H,F,Q]);return d.createElement(me.Provider,{value:Ye},d.createElement(J,(0,o.Z)({},j,{id:G,prefixCls:p,ref:n,omitDomProps:ye,mode:f,displayValues:xe,onDisplayValuesChange:function(e,n){Oe(e);var t=n.type,o=n.values;"remove"!==t&&"clear"!==t||o.forEach((function(e){je(e.value,!1,t)}))},searchValue:ae,onSearch:function(e,n){if(le(e),He(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===f&&Oe(e),null==E||E(e));else{var t=(e||"").trim();if(t){var o=Array.from(new Set([].concat((0,r.Z)(Re),[t])));Oe(o),je(t,!0),le("")}}},autoClearSearchValue:Z,onSearchSplit:function(e){var n=e;"tags"!==f&&(n=e.map((function(e){var n=fe.get(e);return null==n?void 0:n.value})).filter((function(e){return void 0!==e})));var t=Array.from(new Set([].concat((0,r.Z)(Re),(0,r.Z)(n))));Oe(t),t.forEach((function(e){je(e,!0)}))},dropdownMatchSelectWidth:M,OptionList:we,emptyOptions:!Pe.length,activeValue:Ve,activeDescendantId:"".concat(G,"_list_").concat(_e)})))}));var Ce=Se;Ce.Option=fe,Ce.OptGroup=ce;var Me=Ce},29030:function(e,n,t){function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o.apply(this,arguments)}t.d(n,{Z:function(){return W}});var r=t(14797),a=t(87807),i=t(38138),u=t(16803),l=t(63313),c=t.n(l),s=t(84875),f=t.n(s),d=t(71860),v=l.forwardRef((function(e,n){var t=e.height,i=e.offset,u=e.children,c=e.prefixCls,s=e.onInnerResize,v=e.innerProps,p={},m={display:"flex",flexDirection:"column"};return void 0!==i&&(p={height:t,position:"relative",overflow:"hidden"},m=(0,r.Z)((0,r.Z)({},m),{},{transform:"translateY(".concat(i,"px)"),position:"absolute",left:0,right:0,top:0})),l.createElement("div",{style:p},l.createElement(d.Z,{onResize:function(e){e.offsetHeight&&s&&s()}},l.createElement("div",o({style:m,className:f()((0,a.Z)({},"".concat(c,"-holder-inner"),c)),ref:n},v),u)))}));v.displayName="Filler";var p=v,m=t(54183),h=t(9924),g=t(46954),b=t(75231),E=function(e){return+setTimeout(e,16)},w=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(E=function(e){return window.requestAnimationFrame(e)},w=function(e){return window.cancelAnimationFrame(e)});var Z=0,y=new Map;function S(e){y.delete(e)}var C=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=Z+=1;function o(n){if(0===n)S(t),e();else{var r=E((function(){o(n-1)}));y.set(t,r)}}return o(n),t};C.cancel=function(e){var n=y.get(e);return S(n),w(n)};var M=C;function x(e){return"touches"in e?e.touches[0].pageY:e.pageY}var R=function(e){(0,g.Z)(t,e);var n=(0,b.Z)(t);function t(){var e;(0,m.Z)(this,t);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return(e=n.call.apply(n,[this].concat(r))).moveRaf=null,e.scrollbarRef=l.createRef(),e.thumbRef=l.createRef(),e.visibleTimeout=null,e.state={dragging:!1,pageY:null,startTop:null,visible:!1},e.delayHidden=function(){clearTimeout(e.visibleTimeout),e.setState({visible:!0}),e.visibleTimeout=setTimeout((function(){e.setState({visible:!1})}),2e3)},e.onScrollbarTouchStart=function(e){e.preventDefault()},e.onContainerMouseDown=function(e){e.stopPropagation(),e.preventDefault()},e.patchEvents=function(){window.addEventListener("mousemove",e.onMouseMove),window.addEventListener("mouseup",e.onMouseUp),e.thumbRef.current.addEventListener("touchmove",e.onMouseMove),e.thumbRef.current.addEventListener("touchend",e.onMouseUp)},e.removeEvents=function(){window.removeEventListener("mousemove",e.onMouseMove),window.removeEventListener("mouseup",e.onMouseUp),e.thumbRef.current&&(e.thumbRef.current.removeEventListener("touchmove",e.onMouseMove),e.thumbRef.current.removeEventListener("touchend",e.onMouseUp)),M.cancel(e.moveRaf)},e.onMouseDown=function(n){var t=e.props.onStartMove;e.setState({dragging:!0,pageY:x(n),startTop:e.getTop()}),t(),e.patchEvents(),n.stopPropagation(),n.preventDefault()},e.onMouseMove=function(n){var t=e.state,o=t.dragging,r=t.pageY,a=t.startTop,i=e.props.onScroll;if(M.cancel(e.moveRaf),o){var u=a+(x(n)-r),l=e.getEnableScrollRange(),c=e.getEnableHeightRange(),s=c?u/c:0,f=Math.ceil(s*l);e.moveRaf=M((function(){i(f)}))}},e.onMouseUp=function(){var n=e.props.onStopMove;e.setState({dragging:!1}),n(),e.removeEvents()},e.getSpinHeight=function(){var n=e.props,t=n.height,o=t/n.count*10;return o=Math.max(o,20),o=Math.min(o,t/2),Math.floor(o)},e.getEnableScrollRange=function(){var n=e.props;return n.scrollHeight-n.height||0},e.getEnableHeightRange=function(){return e.props.height-e.getSpinHeight()||0},e.getTop=function(){var n=e.props.scrollTop,t=e.getEnableScrollRange(),o=e.getEnableHeightRange();return 0===n||0===t?0:n/t*o},e.showScroll=function(){var n=e.props,t=n.height;return n.scrollHeight>t},e}return(0,h.Z)(t,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){var e,n;this.removeEvents(),null===(e=this.scrollbarRef.current)||void 0===e||e.removeEventListener("touchstart",this.onScrollbarTouchStart),null===(n=this.thumbRef.current)||void 0===n||n.removeEventListener("touchstart",this.onMouseDown),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,n=e.dragging,t=e.visible,o=this.props,i=o.prefixCls,u=o.direction,c=this.getSpinHeight(),s=this.getTop(),d=this.showScroll(),v=d&&t,p="rtl"===u?{left:0}:{right:0};return l.createElement("div",{ref:this.scrollbarRef,className:f()("".concat(i,"-scrollbar"),(0,a.Z)({},"".concat(i,"-scrollbar-show"),d)),style:(0,r.Z)((0,r.Z)({width:8,top:0,bottom:0},p),{},{position:"absolute",display:v?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},l.createElement("div",{ref:this.thumbRef,className:f()("".concat(i,"-scrollbar-thumb"),(0,a.Z)({},"".concat(i,"-scrollbar-thumb-moving"),n)),style:{width:"100%",height:c,top:s,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),t}(l.Component);function N(e){var n=e.children,t=e.setRef,o=l.useCallback((function(e){t(e)}),[]);return l.cloneElement(n,{ref:o})}var I=t(74012),D=t.n(I);function T(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof c().Component?D().findDOMNode(e):null}var P=function(){function e(){(0,m.Z)(this,e),this.maps=void 0,this.maps=Object.create(null)}return(0,h.Z)(e,[{key:"set",value:function(e,n){this.maps[e]=n}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var O=t(18790);function k(e,n,t){var o=l.useState(e),r=(0,i.Z)(o,2),a=r[0],u=r[1],c=l.useState(null),s=(0,i.Z)(c,2),f=s[0],d=s[1];return l.useEffect((function(){var o=function(e,n,t){var o,r,a=e.length,i=n.length;if(0===a&&0===i)return null;a<i?(o=e,r=n):(o=n,r=e);var u={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?t(e):u}for(var c=null,s=1!==Math.abs(a-i),f=0;f<r.length;f+=1){var d=l(o[f]);if(d!==l(r[f])){c=f,s=s||d!==l(r[f+1]);break}}return null===c?null:{index:c,multiple:s}}(a||[],e||[],n);void 0!==(null==o?void 0:o.index)&&(null==t||t(o.index),d(e[o.index])),u(e)}),[e]),[f]}var L="object"===("undefined"==typeof navigator?"undefined":(0,O.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),V=function(e,n){var t=(0,l.useRef)(!1),o=(0,l.useRef)(null);function r(){clearTimeout(o.current),t.current=!0,o.current=setTimeout((function(){t.current=!1}),50)}var a=(0,l.useRef)({top:e,bottom:n});return a.current.top=e,a.current.bottom=n,function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&a.current.top||e>0&&a.current.bottom;return n&&i?(clearTimeout(o.current),t.current=!1):i&&!t.current||r(),!t.current&&i}};var H=t(36997);var A=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],F=[],_={overflowY:"auto",overflowAnchor:"none"};function z(e,n){var t=e.prefixCls,c=void 0===t?"rc-virtual-list":t,s=e.className,d=e.height,v=e.itemHeight,m=e.fullHeight,h=void 0===m||m,g=e.style,b=e.data,E=e.children,w=e.itemKey,Z=e.virtual,y=e.direction,S=e.component,C=void 0===S?"div":S,x=e.onScroll,I=e.onVisibleChange,D=e.innerProps,z=(0,u.Z)(e,A),K=!(!1===Z||!d||!v),W=K&&b&&v*b.length>d,j=(0,l.useState)(0),U=(0,i.Z)(j,2),Y=U[0],B=U[1],G=(0,l.useState)(!1),X=(0,i.Z)(G,2),q=X[0],Q=X[1],J=f()(c,(0,a.Z)({},"".concat(c,"-rtl"),"rtl"===y),s),$=b||F,ee=(0,l.useRef)(),ne=(0,l.useRef)(),te=(0,l.useRef)(),oe=l.useCallback((function(e){return"function"==typeof w?w(e):null==e?void 0:e[w]}),[w]),re={getKey:oe};function ae(e){B((function(n){var t=function(e){var n=e;Number.isNaN(ye.current)||(n=Math.min(n,ye.current));return n=Math.max(n,0),n}("function"==typeof e?e(n):e);return ee.current.scrollTop=t,t}))}var ie=(0,l.useRef)({start:0,end:$.length}),ue=(0,l.useRef)(),le=k($,oe),ce=(0,i.Z)(le,1)[0];ue.current=ce;var se=function(e,n,t){var o=l.useState(0),r=(0,i.Z)(o,2),a=r[0],u=r[1],c=(0,l.useRef)(new Map),s=(0,l.useRef)(new P),f=(0,l.useRef)();function d(){M.cancel(f.current)}function v(){d(),f.current=M((function(){c.current.forEach((function(e,n){if(e&&e.offsetParent){var t=T(e),o=t.offsetHeight;s.current.get(n)!==o&&s.current.set(n,t.offsetHeight)}})),u((function(e){return e+1}))}))}return(0,l.useEffect)((function(){return d}),[]),[function(o,r){var a=e(o),i=c.current.get(a);r?(c.current.set(a,r),v()):c.current.delete(a),!i!=!r&&(r?null==n||n(o):null==t||t(o))},v,s.current,a]}(oe,null,null),fe=(0,i.Z)(se,4),de=fe[0],ve=fe[1],pe=fe[2],me=fe[3],he=l.useMemo((function(){if(!K)return{scrollHeight:void 0,start:0,end:$.length-1,offset:void 0};var e;if(!W)return{scrollHeight:(null===(e=ne.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:$.length-1,offset:void 0};for(var n,t,o,r=0,a=$.length,i=0;i<a;i+=1){var u=$[i],l=oe(u),c=pe.get(l),s=r+(void 0===c?v:c);s>=Y&&void 0===n&&(n=i,t=r),s>Y+d&&void 0===o&&(o=i),r=s}return void 0===n&&(n=0,t=0,o=Math.ceil(d/v)),void 0===o&&(o=$.length-1),{scrollHeight:r,start:n,end:o=Math.min(o+1,$.length),offset:t}}),[W,K,Y,$,me,d]),ge=he.scrollHeight,be=he.start,Ee=he.end,we=he.offset;ie.current.start=be,ie.current.end=Ee;var Ze=ge-d,ye=(0,l.useRef)(Ze);ye.current=Ze;var Se=Y<=0,Ce=Y>=Ze,Me=V(Se,Ce);var xe=function(e,n,t,o){var r=(0,l.useRef)(0),a=(0,l.useRef)(null),i=(0,l.useRef)(null),u=(0,l.useRef)(!1),c=V(n,t);return[function(n){if(e){M.cancel(a.current);var t=n.deltaY;r.current+=t,i.current=t,c(t)||(L||n.preventDefault(),a.current=M((function(){var e=u.current?10:1;o(r.current*e),r.current=0})))}},function(n){e&&(u.current=n.detail===i.current)}]}(K,Se,Ce,(function(e){ae((function(n){return n+e}))})),Re=(0,i.Z)(xe,2),Ne=Re[0],Ie=Re[1];!function(e,n,t){var o,r=(0,l.useRef)(!1),a=(0,l.useRef)(0),i=(0,l.useRef)(null),u=(0,l.useRef)(null),c=function(e){if(r.current){var n=Math.ceil(e.touches[0].pageY),o=a.current-n;a.current=n,t(o)&&e.preventDefault(),clearInterval(u.current),u.current=setInterval((function(){(!t(o*=.9333333333333333,!0)||Math.abs(o)<=.1)&&clearInterval(u.current)}),16)}},s=function(){r.current=!1,o()},f=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,a.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",c),i.current.addEventListener("touchend",s))};o=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",s))},(0,H.Z)((function(){return e&&n.current.addEventListener("touchstart",f),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(u.current)}}),[e])}(K,ee,(function(e,n){return!Me(e,n)&&(Ne({preventDefault:function(){},deltaY:e}),!0)})),(0,H.Z)((function(){function e(e){K&&e.preventDefault()}return ee.current.addEventListener("wheel",Ne),ee.current.addEventListener("DOMMouseScroll",Ie),ee.current.addEventListener("MozMousePixelScroll",e),function(){ee.current&&(ee.current.removeEventListener("wheel",Ne),ee.current.removeEventListener("DOMMouseScroll",Ie),ee.current.removeEventListener("MozMousePixelScroll",e))}}),[K]);var De=function(e,n,t,o,r,a,i,u){var c=l.useRef();return function(l){if(null!=l){if(M.cancel(c.current),"number"==typeof l)i(l);else if(l&&"object"===(0,O.Z)(l)){var s,f=l.align;s="index"in l?l.index:n.findIndex((function(e){return r(e)===l.key}));var d=l.offset,v=void 0===d?0:d;!function u(l,d){if(!(l<0)&&e.current){var p=e.current.clientHeight,m=!1,h=d;if(p){for(var g=d||f,b=0,E=0,w=0,Z=Math.min(n.length,s),y=0;y<=Z;y+=1){var S=r(n[y]);E=b;var C=t.get(S);b=w=E+(void 0===C?o:C),y===s&&void 0===C&&(m=!0)}var x=null;switch(g){case"top":x=E-v;break;case"bottom":x=w-p+v;break;default:var R=e.current.scrollTop;E<R?h="top":w>R+p&&(h="bottom")}null!==x&&x!==e.current.scrollTop&&i(x)}c.current=M((function(){m&&a(),u(l-1,h)}),2)}}(3)}}else u()}}(ee,$,pe,v,oe,ve,ae,(function(){var e;null===(e=te.current)||void 0===e||e.delayHidden()}));l.useImperativeHandle(n,(function(){return{scrollTo:De}})),(0,H.Z)((function(){if(I){var e=$.slice(be,Ee+1);I(e,$)}}),[be,Ee,$]);var Te=function(e,n,t,o,r,a){var i=a.getKey;return e.slice(n,t+1).map((function(e,t){var a=r(e,n+t,{}),u=i(e);return l.createElement(N,{key:u,setRef:function(n){return o(e,n)}},a)}))}($,be,Ee,de,E,re),Pe=null;return d&&(Pe=(0,r.Z)((0,a.Z)({},h?"height":"maxHeight",d),_),K&&(Pe.overflowY="hidden",q&&(Pe.pointerEvents="none"))),l.createElement("div",o({style:(0,r.Z)((0,r.Z)({},g),{},{position:"relative"}),className:J},z),l.createElement(C,{className:"".concat(c,"-holder"),style:Pe,ref:ee,onScroll:function(e){var n=e.currentTarget.scrollTop;n!==Y&&ae(n),null==x||x(e)}},l.createElement(p,{prefixCls:c,height:ge,offset:we,onInnerResize:ve,ref:ne,innerProps:D},Te)),K&&l.createElement(R,{ref:te,prefixCls:c,scrollTop:Y,height:d,scrollHeight:ge,count:$.length,direction:y,onScroll:function(e){ae(e)},onStartMove:function(){Q(!0)},onStopMove:function(){Q(!1)}}))}var K=l.forwardRef(z);K.displayName="List";var W=K}}]);
|
package/static/dist/index.html
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:Source Code Pro;src:url(./static/SourceCodePro-Regular.ttf.42e53ea6.woff2) format("woff2"),url(./static/SourceCodePro-Regular.otf.3decd2e3.woff) format("woff"),url(./static/SourceCodePro-Regular.73b8dbbf.ttf) format("truetype")}body{overflow:hidden;position:fixed;top:0;left:0}#root{height:100vh;height:calc(100vh - var(--vh-offset, 0px));-webkit-overflow-scrolling:touch}.ant-modal-header{padding-right:54px}.ant-modal-body{max-height:calc(80vh - 110px);max-height:calc(80vh - var(--vh-offset, 110px));overflow-y:auto}.log-modal.ant-modal{max-width:1000px!important;width:80vw!important}.log-modal .ant-modal-body{overflow-y:auto;min-height:300px;max-height:calc(80vh - 110px);max-height:calc(80vh - var(--vh-offset, 110px));padding:0;display:flex}.log-modal .ant-modal-body .log-container{width:100%;padding:24px;overflow-y:auto}.log-modal pre{white-space:break-spaces;line-height:17px;margin-bottom:0;overflow:hidden}.monaco-editor:not(.rename-box){height:calc(100vh - 128px)!important;height:calc(100vh - var(--vh-offset, 0px) - 128px)!important}.monaco-editor:not(.rename-box) .view-overlays .current-line{border-width:0}.rename-box{height:0}.rename-box .rename-input{height:0;padding:0!important;display:none!important}.ant-pro-grid-content.wide{max-width:unset!important;overflow:auto}.ant-pro-grid-content.wide .ant-pro-page-container-children-content{overflow:auto;height:100%;background-color:#fff;padding:12px}.ql-container-wrapper-has-tab .ant-pro-grid-content.wide .ant-pro-page-container-children-content{padding-top:0}.ant-table-cell-ellipsis{text-align:left!important}.ant-tooltip{max-width:300px!important}.ant-tooltip .ant-tooltip-inner{word-break:break-all!important;max-height:300px!important;overflow-y:auto!important}.env-wrapper th{white-space:nowrap}.log-wrapper .log-select{width:250px}.log-wrapper .ant-page-header-heading-left{min-width:100px}.config-wrapper .config-select{width:250px}.config-wrapper .ant-page-header-heading-left{min-width:100px}.ant-tree .ant-tree-treenode{width:100%;padding-right:8px!important}.ant-tree .ant-tree-node-content-wrapper{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1 1}.ant-select-tree .ant-select-tree-treenode{width:100%;padding-right:8px!important}.ant-select-tree .ant-select-tree-node-content-wrapper{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1 1}.ant-pro-page-container.ql-container-wrapper{display:flex;flex-direction:column;height:calc(100vh - 48px);height:calc(100vh - var(--vh-offset, 0px) - 48px)}.ant-pro-page-container.ql-container-wrapper .ant-pro-grid-content.wide{flex:1 1}.ant-pro-page-container.ql-container-wrapper .ant-pro-grid-content.wide .ant-pro-grid-content-children{height:100%}.ant-pro-page-container.ql-container-wrapper .ant-pro-grid-content.wide .ant-pro-grid-content-children>div,.ant-pro-page-container.ql-container-wrapper .ant-pro-grid-content.wide .ant-pro-grid-content-children .log-container,.ant-pro-page-container.ql-container-wrapper .ant-pro-grid-content.wide .ant-pro-grid-content-children .react-codemirror2,.ant-pro-page-container.ql-container-wrapper .ant-pro-grid-content.wide .ant-pro-grid-content-children .CodeMirror{height:100%;overflow:auto}@media (max-width: 768px){.ql-container-wrapper.crontab-wrapper .CodeMirror,.ql-container-wrapper.log-wrapper .CodeMirror,.ql-container-wrapper.env-wrapper .CodeMirror,.ql-container-wrapper.config-wrapper .CodeMirror{width:calc(100vw - 24px)}.log-modal.ant-modal{width:calc(100vw - 16px)!important}.ant-tooltip{max-width:300px!important}}.ant-layout-content.ant-pro-basicLayout-content.ant-pro-basicLayout-has-header{margin-bottom:0!important;min-height:calc(100vh - 72px);min-height:calc(100vh - var(--vh-offset, 0px) - 72px)}.Resizer{background:#fff;opacity:.8;z-index:100;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box;border-left:5px solid rgba(42,161,255,0);border-right:5px solid rgba(42,161,255,0)}.Resizer:hover{transition:all 2s ease}.Resizer.horizontal{height:11px;margin:-5px 0;cursor:row-resize;width:100%}.Resizer.vertical{width:11px;margin:0 -5px;cursor:col-resize}.Resizer.horizontal:hover,.Resizer.vertical:hover{border-left-color:#2aa1ff80;border-right-color:#2aa1ff80}.Resizer.disabled{cursor:not-allowed}.Resizer.disabled:hover{border-color:transparent}.edit-modal .ant-drawer-body{padding:0}.inline-countdown.ant-statistic{display:inline-block}.inline-countdown.ant-statistic .ant-statistic-content{font-size:14px;padding:0 3px}.ant-form-item-extra{word-break:break-all;font-size:13px}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,textarea:-webkit-autofill,textarea:-webkit-autofill:hover,textarea:-webkit-autofill:focus,select:-webkit-autofill,select:-webkit-autofill:hover,select:-webkit-autofill:focus{box-shadow:none;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s;-webkit-text-fill-color:rgba(0,0,0,.85);caret-color:#000000d9;color:#000000d9}::placeholder{opacity:.5!important}.ant-select-selection-placeholder{opacity:.5!important}.ant-pro-basicLayout-content{margin:12px}.ant-pro-basicLayout-content .ant-pro-page-container{margin:-12px}.ant-pro-basicLayout-content .ant-pro-page-container-warp .ant-page-header{border-bottom:1px solid #eee}.ant-pro-basicLayout-content .ant-pro-page-container-children-content{margin:0}.ant-pro-global-header{box-shadow:0 4px 8px #00000008}.ant-menu-item.ant-pro-sider-collapsed-button{margin:0}.side-menu-container{display:flex;justify-content:space-between;align-items:center;color:#000000d9}.side-menu-container .side-menu-collapse-button:hover{color:#1890ff}.side-menu-container .side-menu-user-wrapper{display:flex;align-items:center}.side-menu-user-drop-menu{position:relative;text-align:left;padding:2px 10px;overflow:auto}.ant-pro-sider-logo{padding-inline:5px!important}.ant-pro-sider-logo .title{display:flex;height:32px;margin:0 5px;font-weight:600;font-size:16px;line-height:32px;vertical-align:middle;animation:pro-layout-title-hide .3s}.ant-pro-sider-logo .title a{display:inline-flex;align-items:center}.ant-pro-sider-logo img{width:32px!important;border-radius:52%!important}.ant-pro-global-header-logo a img{width:auto!important}.ant-pro-global-header-logo .ant-image{display:inline-flex}pre{word-break:break-all;white-space:break-spaces;padding:0}.virtuallist .ant-table-tbody>tr>td>div{white-space:unset!important}.virtuallist .ant-table-tbody>tr>td>div{box-sizing:border-box;white-space:nowrap;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;width:100%}.virtuallist .ant-table-tbody>tr>td.ant-table-row-expand-icon-cell>div{overflow:inherit}.ant-table-bordered .virtuallist>table>.ant-table-tbody>tr>td{border-right:1px solid #f0f0f0}.ant-table-column-title{flex:unset}.ant-table-column-sorters,.ant-table-filter-column{justify-content:unset}textarea.ant-input{word-break:break-all}.ant-pro-sider-collapsed .title,body[data-mode=phone] header .title{display:none}.ant-design-pro .ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed{box-shadow:none;border-right:1px solid #eee}.ant-table.ant-table-middle .ant-table-title,.ant-table.ant-table-middle .ant-table-footer,.ant-table.ant-table-middle .ant-table-thead>tr>th,.ant-table.ant-table-middle .ant-table-tbody>tr>td,.ant-table.ant-table-middle tfoot>tr>th,.ant-table.ant-table-middle tfoot>tr>td{padding:12px 16px}body[data-dark=true] .ant-popover-arrow-content{--antd-arrow-background-color: #181a1b}.ant-layout{display:flex;flex:auto;flex-direction:column;min-height:0;background:#f0f2f5}.ant-layout,.ant-layout *{box-sizing:border-box}.ant-layout.ant-layout-has-sider{flex-direction:row}.ant-layout.ant-layout-has-sider>.ant-layout,.ant-layout.ant-layout-has-sider>.ant-layout-content{width:0}.ant-layout-header,.ant-layout-footer{flex:0 0 auto}.ant-layout-header{height:64px;padding:0 50px;color:#000000d9;line-height:64px;background:#001529}.ant-layout-footer{padding:24px 50px;color:#000000d9;font-size:14px;background:#f0f2f5}.ant-layout-content{flex:auto;min-height:0}.ant-layout-sider{position:relative;min-width:0;background:#001529;transition:all .2s}.ant-layout-sider-children{height:100%;margin-top:-.1px;padding-top:.1px}.ant-layout-sider-children .ant-menu.ant-menu-inline-collapsed{width:auto}.ant-layout-sider-has-trigger{padding-bottom:48px}.ant-layout-sider-right{order:1}.ant-layout-sider-trigger{position:fixed;bottom:0;z-index:1;height:48px;color:#fff;line-height:48px;text-align:center;background:#002140;cursor:pointer;transition:all .2s}.ant-layout-sider-zero-width>*{overflow:hidden}.ant-layout-sider-zero-width-trigger{position:absolute;top:64px;right:-36px;z-index:1;width:36px;height:42px;color:#fff;font-size:18px;line-height:42px;text-align:center;background:#001529;border-radius:0 2px 2px 0;cursor:pointer;transition:background .3s ease}.ant-layout-sider-zero-width-trigger:after{position:absolute;top:0;right:0;bottom:0;left:0;background:transparent;transition:all .3s;content:""}.ant-layout-sider-zero-width-trigger:hover:after{background:rgba(255,255,255,.1)}.ant-layout-sider-zero-width-trigger-right{left:-36px;border-radius:2px 0 0 2px}.ant-layout-sider-light{background:#fff}.ant-layout-sider-light .ant-layout-sider-trigger,.ant-layout-sider-light .ant-layout-sider-zero-width-trigger{color:#000000d9;background:#fff}.ant-layout-rtl{direction:rtl}.ant-pro-basicLayout{display:flex;flex-direction:column;width:100%;min-height:100%}.ant-pro-basicLayout .ant-layout-header.ant-pro-fixed-header{position:fixed;top:0}.ant-pro-basicLayout .ant-layout-header.ant-pro-header-light{background:#fff}.ant-pro-basicLayout-content{position:relative;margin:24px}.ant-pro-basicLayout-content .ant-pro-page-container{margin:-24px -24px 0}.ant-pro-basicLayout-content-disable-margin,.ant-pro-basicLayout-content-disable-margin .ant-pro-page-container{margin:0}.ant-pro-basicLayout-content>.ant-layout{max-height:100%}.ant-pro-basicLayout .ant-pro-basicLayout-is-children.ant-pro-basicLayout-fix-siderbar{height:100vh;overflow:hidden;transform:rotate(0)}.ant-pro-basicLayout .ant-pro-basicLayout-has-header .tech-page-container{height:calc(100vh - 48px)}.ant-pro-basicLayout .ant-pro-basicLayout-has-header .ant-pro-basicLayout-is-children.ant-pro-basicLayout-has-header .tech-page-container{height:calc(100vh - 96px)}.ant-pro-basicLayout .ant-pro-basicLayout-has-header .ant-pro-basicLayout-is-children.ant-pro-basicLayout-has-header .ant-pro-basicLayout-is-children{min-height:calc(100vh - 48px)}.ant-pro-basicLayout .ant-pro-basicLayout-has-header .ant-pro-basicLayout-is-children.ant-pro-basicLayout-has-header .ant-pro-basicLayout-is-children.ant-pro-basicLayout-fix-siderbar{height:calc(100vh - 48px)}.ant-pro-fixed-header{z-index:9;width:100%}.ant-pro-fixed-header-action{transition:width .3s cubic-bezier(.645,.045,.355,1)}.ant-pro-header-realDark{box-shadow:0 2px 8px #000000a6}.ant-pro-global-header{position:relative;display:flex;align-items:center;height:100%;padding:0 16px;background:#fff;box-shadow:0 1px 4px #00152914}.ant-pro-global-header>*{height:100%}.ant-pro-global-header-collapsed-button{display:flex;align-items:center;margin-left:16px;font-size:20px}.ant-pro-global-header-layout-mix{background-color:#001529}.ant-pro-global-header-layout-mix .ant-pro-global-header-logo h1,.ant-pro-global-header-layout-mix .anticon{color:#fff}.ant-pro-global-header-logo{position:relative;overflow:hidden}.ant-pro-global-header-logo a{display:flex;align-items:center;height:100%}.ant-pro-global-header-logo a img{height:28px}.ant-pro-global-header-logo a h1{height:32px;margin:0 0 0 12px;color:#1890ff;font-weight:600;font-size:18px;line-height:32px}.ant-pro-global-header-logo-rtl a h1{margin:0 12px 0 0}.ant-pro-global-header-menu .anticon{margin-right:8px}.ant-pro-global-header-menu .ant-dropdown-menu-item{min-width:160px}.ant-pro-global-header .dark{height:48px}.ant-pro-global-header .dark .action{color:#ffffffd9}.ant-pro-global-header .dark .action>i{color:#ffffffd9}.ant-pro-global-header .dark .action:hover,.ant-pro-global-header .dark .action.opened{background:#1890ff}.ant-pro-global-header .dark .action .ant-badge{color:#ffffffd9}.ant-pro-sider{position:relative;background-color:#001529;border-right:0}.ant-pro-sider .ant-menu{background:transparent}.ant-pro-sider.ant-layout-sider-light .ant-menu-item a{color:#000000d9}.ant-pro-sider.ant-layout-sider-light .ant-menu-item-selected a,.ant-pro-sider.ant-layout-sider-light .ant-menu-item a:hover{color:#1890ff}.ant-pro-sider-logo{position:relative;display:flex;align-items:center;padding:16px;cursor:pointer;transition:padding .3s cubic-bezier(.645,.045,.355,1)}.ant-pro-sider-logo>a{display:flex;align-items:center;justify-content:center;min-height:32px}.ant-pro-sider-logo img{display:inline-block;height:32px;vertical-align:middle}.ant-pro-sider-logo h1{display:inline-block;height:32px;margin:0 0 0 12px;color:#fff;font-weight:600;font-size:18px;line-height:32px;vertical-align:middle;animation:pro-layout-title-hide .3s}.ant-pro-sider-extra{margin-bottom:16px;padding:0 16px}.ant-pro-sider-extra-no-logo{margin-top:16px}.ant-pro-sider-menu{position:relative;z-index:10;min-height:100%;box-shadow:2px 0 6px #00152959}.ant-pro-sider .ant-layout-sider-children{display:flex;flex-direction:column;height:100%}.ant-pro-sider .ant-layout-sider-children ::-webkit-scrollbar{width:6px;height:6px}.ant-pro-sider .ant-layout-sider-children ::-webkit-scrollbar-track{background:rgba(255,255,255,.15);border-radius:3px;box-shadow:inset 0 0 5px #2525250d}.ant-pro-sider .ant-layout-sider-children ::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:3px;box-shadow:inset 0 0 5px #ffffff0d}.ant-pro-sider.ant-layout-sider-collapsed .ant-menu-inline-collapsed{width:48px}.ant-pro-sider.ant-layout-sider-collapsed .ant-pro-sider-logo{padding:16px 8px}.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed{position:fixed;top:0;left:0;z-index:100;height:100%;overflow:auto;overflow-x:hidden;box-shadow:2px 0 8px #1d23290d}.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed>.ant-menu-root :not(.ant-pro-sider-link-menu){height:calc(100vh - 48px);overflow-y:auto}.ant-pro-sider-light{background-color:#fff;box-shadow:2px 0 8px #1d23290d}.ant-pro-sider-light .ant-layout-sider-children ::-webkit-scrollbar-track{background:rgba(0,0,0,.06);border-radius:3px;box-shadow:inset 0 0 5px #0015290d}.ant-pro-sider-light .ant-layout-sider-children ::-webkit-scrollbar-thumb{background:rgba(0,0,0,.12);border-radius:3px;box-shadow:inset 0 0 5px #0015290d}.ant-pro-sider-light .ant-pro-sider-logo h1{color:#1890ff}.ant-pro-sider-light .ant-menu-light{border-right-color:transparent}.ant-pro-sider-light .ant-pro-sider-collapsed-button{border-top:1px solid #f0f0f0}.ant-pro-sider-icon{width:14px;vertical-align:baseline}.ant-pro-sider-links{width:100%}.ant-pro-sider-links ul.ant-menu-root{height:auto}.ant-pro-sider-collapsed-button{border-top:1px solid rgba(0,0,0,.25)}.ant-pro-sider-collapsed-button .anticon{font-size:16px}.ant-pro-sider .top-nav-menu li.ant-menu-item{height:100%;line-height:1}.ant-pro-sider .drawer .drawer-content{background:#001529}@keyframes pro-layout-title-hide{0%{display:none;opacity:0}80%{display:none;opacity:0}to{display:unset;opacity:1}}.ant-skeleton{display:table;width:100%}.ant-skeleton-header{display:table-cell;padding-right:16px;vertical-align:top}.ant-skeleton-header .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:rgba(190,190,190,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-header .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-content{display:table-cell;width:100%;vertical-align:top}.ant-skeleton-content .ant-skeleton-title{width:100%;height:16px;background:rgba(190,190,190,.2);border-radius:2px}.ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:24px}.ant-skeleton-content .ant-skeleton-paragraph{padding:0}.ant-skeleton-content .ant-skeleton-paragraph>li{width:100%;height:16px;list-style:none;background:rgba(190,190,190,.2);border-radius:2px}.ant-skeleton-content .ant-skeleton-paragraph>li:last-child:not(:first-child):not(:nth-child(2)){width:61%}.ant-skeleton-content .ant-skeleton-paragraph>li+li{margin-top:16px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title{margin-top:12px}.ant-skeleton-with-avatar .ant-skeleton-content .ant-skeleton-title+.ant-skeleton-paragraph{margin-top:28px}.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title,.ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph>li{border-radius:100px}.ant-skeleton-active .ant-skeleton-title,.ant-skeleton-active .ant-skeleton-paragraph>li,.ant-skeleton-active .ant-skeleton-avatar,.ant-skeleton-active .ant-skeleton-button,.ant-skeleton-active .ant-skeleton-input,.ant-skeleton-active .ant-skeleton-image{position:relative;z-index:0;overflow:hidden;background:transparent}.ant-skeleton-active .ant-skeleton-title:after,.ant-skeleton-active .ant-skeleton-paragraph>li:after,.ant-skeleton-active .ant-skeleton-avatar:after,.ant-skeleton-active .ant-skeleton-button:after,.ant-skeleton-active .ant-skeleton-input:after,.ant-skeleton-active .ant-skeleton-image:after{position:absolute;top:0;right:-150%;bottom:0;left:-150%;background:linear-gradient(90deg,rgba(190,190,190,.2) 25%,rgba(129,129,129,.24) 37%,rgba(190,190,190,.2) 63%);animation:ant-skeleton-loading 1.4s ease infinite;content:""}.ant-skeleton.ant-skeleton-block,.ant-skeleton.ant-skeleton-block .ant-skeleton-button,.ant-skeleton.ant-skeleton-block .ant-skeleton-input{width:100%}.ant-skeleton-element{display:inline-block;width:auto}.ant-skeleton-element .ant-skeleton-button{display:inline-block;vertical-align:top;background:rgba(190,190,190,.2);border-radius:2px;width:64px;min-width:64px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-square{width:32px;min-width:32px}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle{width:32px;min-width:32px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round{border-radius:32px}.ant-skeleton-element .ant-skeleton-button-lg{width:80px;min-width:80px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-square{width:40px;min-width:40px}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-circle{width:40px;min-width:40px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-lg.ant-skeleton-button-round{border-radius:40px}.ant-skeleton-element .ant-skeleton-button-sm{width:48px;min-width:48px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-square{width:24px;min-width:24px}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-circle{width:24px;min-width:24px;border-radius:50%}.ant-skeleton-element .ant-skeleton-button-sm.ant-skeleton-button-round{border-radius:24px}.ant-skeleton-element .ant-skeleton-avatar{display:inline-block;vertical-align:top;background:rgba(190,190,190,.2);width:32px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-avatar.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-lg{width:40px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-avatar-sm{width:24px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-input{display:inline-block;vertical-align:top;background:rgba(190,190,190,.2);width:160px;min-width:160px;height:32px;line-height:32px}.ant-skeleton-element .ant-skeleton-input-lg{width:200px;min-width:200px;height:40px;line-height:40px}.ant-skeleton-element .ant-skeleton-input-sm{width:120px;min-width:120px;height:24px;line-height:24px}.ant-skeleton-element .ant-skeleton-image{display:flex;align-items:center;justify-content:center;vertical-align:top;background:rgba(190,190,190,.2);width:96px;height:96px;line-height:96px}.ant-skeleton-element .ant-skeleton-image.ant-skeleton-image-circle{border-radius:50%}.ant-skeleton-element .ant-skeleton-image-path{fill:#bfbfbf}.ant-skeleton-element .ant-skeleton-image-svg{width:48px;height:48px;line-height:48px;max-width:192px;max-height:192px}.ant-skeleton-element .ant-skeleton-image-svg.ant-skeleton-image-circle{border-radius:50%}@keyframes ant-skeleton-loading{0%{transform:translate(-37.5%)}to{transform:translate(37.5%)}}.ant-skeleton-rtl{direction:rtl}.ant-skeleton-rtl .ant-skeleton-header{padding-right:0;padding-left:16px}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title,.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph>li{animation-name:ant-skeleton-loading-rtl}.ant-skeleton-rtl.ant-skeleton.ant-skeleton-active .ant-skeleton-avatar{animation-name:ant-skeleton-loading-rtl}@keyframes ant-skeleton-loading-rtl{0%{background-position:0% 50%}to{background-position:100% 50%}}.ant-pro-top-nav-header{position:relative;width:100%;height:100%;box-shadow:0 1px 4px #0015291f;transition:background .3s,width .2s}.ant-pro-top-nav-header .ant-menu{background:transparent}.ant-pro-top-nav-header.light{background-color:#fff}.ant-pro-top-nav-header.light .ant-pro-top-nav-header-logo h1{color:#000000d9}.ant-pro-top-nav-header.light .anticon{color:inherit}.ant-pro-top-nav-header-main{display:flex;height:100%;padding-left:16px}.ant-pro-top-nav-header-main-left{display:flex;min-width:192px}.ant-pro-top-nav-header .anticon{color:#fff}.ant-pro-top-nav-header-logo{position:relative;min-width:165px;height:100%;overflow:hidden}.ant-pro-top-nav-header-logo img,.ant-pro-top-nav-header-logo a>svg{display:inline-block;height:32px;vertical-align:middle}.ant-pro-top-nav-header-logo h1{display:inline-block;margin:0 0 0 12px;color:#fff;font-size:16px;vertical-align:top}.ant-pro-top-nav-header-menu{min-width:0}.ant-pro-top-nav-header-menu .ant-menu.ant-menu-horizontal{height:100%;border:none}.ant-pro-global-footer{margin:48px 0 24px;padding:0 16px;text-align:center}.ant-pro-global-footer-links{margin-bottom:8px}.ant-pro-global-footer-links a{color:#00000073;transition:all .3s}.ant-pro-global-footer-links a:not(:last-child){margin-right:40px}.ant-pro-global-footer-links a:hover{color:#000000d9}.ant-pro-global-footer-copyright{color:#00000073;font-size:14px}.ant-drawer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;pointer-events:none}.ant-drawer-inline{position:absolute}.ant-drawer-mask{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1000;background:rgba(0,0,0,.45);pointer-events:auto}.ant-drawer-content-wrapper{position:absolute;z-index:1000;transition:all .3s}.ant-drawer-content-wrapper-hidden{display:none}.ant-drawer-left>.ant-drawer-content-wrapper{top:0;bottom:0;left:0;box-shadow:6px 0 16px -8px #00000014,9px 0 28px #0000000d,12px 0 48px 16px #00000008}.ant-drawer-right>.ant-drawer-content-wrapper{top:0;right:0;bottom:0;box-shadow:-6px 0 16px -8px #00000014,-9px 0 28px #0000000d,-12px 0 48px 16px #00000008}.ant-drawer-top>.ant-drawer-content-wrapper{top:0;right:0;left:0;box-shadow:0 6px 16px -8px #00000014,0 9px 28px #0000000d,0 12px 48px 16px #00000008}.ant-drawer-bottom>.ant-drawer-content-wrapper{right:0;bottom:0;left:0;box-shadow:0 -6px 16px -8px #00000014,0 -9px 28px #0000000d,0 -12px 48px 16px #00000008}.ant-drawer-content{width:100%;height:100%;overflow:auto;background:#fff;pointer-events:auto}.ant-drawer-wrapper-body{display:flex;flex-direction:column;width:100%;height:100%}.ant-drawer-header{display:flex;flex:0 1;align-items:center;padding:16px 24px;font-size:16px;line-height:22px;border-bottom:1px solid #f0f0f0}.ant-drawer-header-title{display:flex;flex:1 1;align-items:center;min-width:0;min-height:0}.ant-drawer-extra{flex:none}.ant-drawer-close{display:inline-block;margin-right:12px;color:#00000073;font-weight:700;font-size:16px;font-style:normal;line-height:1;text-align:center;text-transform:none;text-decoration:none;background:transparent;border:0;outline:0;cursor:pointer;transition:color .3s;text-rendering:auto}.ant-drawer-close:focus,.ant-drawer-close:hover{color:#000000bf;text-decoration:none}.ant-drawer-title{flex:1 1;margin:0;color:#000000d9;font-weight:500;font-size:16px;line-height:22px}.ant-drawer-body{flex:1 1;min-width:0;min-height:0;padding:24px;overflow:auto}.ant-drawer-footer{flex-shrink:0;padding:10px 16px;border-top:1px solid #f0f0f0}.panel-motion-enter-start,.panel-motion-appear-start,.panel-motion-leave-start{transition:none}.panel-motion-enter-active,.panel-motion-appear-active,.panel-motion-leave-active,.ant-drawer-mask-motion-enter-active,.ant-drawer-mask-motion-appear-active,.ant-drawer-mask-motion-leave-active{transition:all .3s}.ant-drawer-mask-motion-enter,.ant-drawer-mask-motion-appear{opacity:0}.ant-drawer-mask-motion-enter-active,.ant-drawer-mask-motion-appear-active,.ant-drawer-mask-motion-leave{opacity:1}.ant-drawer-mask-motion-leave-active{opacity:0}.ant-drawer-panel-motion-left-enter-start,.ant-drawer-panel-motion-left-appear-start,.ant-drawer-panel-motion-left-leave-start{transition:none}.ant-drawer-panel-motion-left-enter-active,.ant-drawer-panel-motion-left-appear-active,.ant-drawer-panel-motion-left-leave-active{transition:all .3s}.ant-drawer-panel-motion-left-enter-start,.ant-drawer-panel-motion-left-appear-start{transform:translate(-100%)!important}.ant-drawer-panel-motion-left-enter-active,.ant-drawer-panel-motion-left-appear-active,.ant-drawer-panel-motion-left-leave{transform:translate(0)}.ant-drawer-panel-motion-left-leave-active{transform:translate(-100%)}.ant-drawer-panel-motion-right-enter-start,.ant-drawer-panel-motion-right-appear-start,.ant-drawer-panel-motion-right-leave-start{transition:none}.ant-drawer-panel-motion-right-enter-active,.ant-drawer-panel-motion-right-appear-active,.ant-drawer-panel-motion-right-leave-active{transition:all .3s}.ant-drawer-panel-motion-right-enter-start,.ant-drawer-panel-motion-right-appear-start{transform:translate(100%)!important}.ant-drawer-panel-motion-right-enter-active,.ant-drawer-panel-motion-right-appear-active,.ant-drawer-panel-motion-right-leave{transform:translate(0)}.ant-drawer-panel-motion-right-leave-active{transform:translate(100%)}.ant-drawer-panel-motion-top-enter-start,.ant-drawer-panel-motion-top-appear-start,.ant-drawer-panel-motion-top-leave-start{transition:none}.ant-drawer-panel-motion-top-enter-active,.ant-drawer-panel-motion-top-appear-active,.ant-drawer-panel-motion-top-leave-active{transition:all .3s}.ant-drawer-panel-motion-top-enter-start,.ant-drawer-panel-motion-top-appear-start{transform:translateY(-100%)!important}.ant-drawer-panel-motion-top-enter-active,.ant-drawer-panel-motion-top-appear-active,.ant-drawer-panel-motion-top-leave{transform:translateY(0)}.ant-drawer-panel-motion-top-leave-active{transform:translateY(-100%)}.ant-drawer-panel-motion-bottom-enter-start,.ant-drawer-panel-motion-bottom-appear-start,.ant-drawer-panel-motion-bottom-leave-start{transition:none}.ant-drawer-panel-motion-bottom-enter-active,.ant-drawer-panel-motion-bottom-appear-active,.ant-drawer-panel-motion-bottom-leave-active{transition:all .3s}.ant-drawer-panel-motion-bottom-enter-start,.ant-drawer-panel-motion-bottom-appear-start{transform:translateY(100%)!important}.ant-drawer-panel-motion-bottom-enter-active,.ant-drawer-panel-motion-bottom-appear-active,.ant-drawer-panel-motion-bottom-leave{transform:translateY(0)}.ant-drawer-panel-motion-bottom-leave-active{transform:translateY(100%)}.ant-drawer-rtl{direction:rtl}.ant-drawer-rtl .ant-drawer-close{margin-right:0;margin-left:12px}.ant-result{padding:48px 32px}.ant-result-success .ant-result-icon>.anticon{color:#52c41a}.ant-result-error .ant-result-icon>.anticon{color:#ff4d4f}.ant-result-info .ant-result-icon>.anticon{color:#1890ff}.ant-result-warning .ant-result-icon>.anticon{color:#faad14}.ant-result-image{width:250px;height:295px;margin:auto}.ant-result-icon{margin-bottom:24px;text-align:center}.ant-result-icon>.anticon{font-size:72px}.ant-result-title{color:#000000d9;font-size:24px;line-height:1.8;text-align:center}.ant-result-subtitle{color:#00000073;font-size:14px;line-height:1.6;text-align:center}.ant-result-extra{margin:24px 0 0;text-align:center}.ant-result-extra>*{margin-right:8px}.ant-result-extra>*:last-child{margin-right:0}.ant-result-content{margin-top:24px;padding:24px 40px;background-color:#fafafa}.ant-result-rtl{direction:rtl}.ant-result-rtl .ant-result-extra>*{margin-right:0;margin-left:8px}.ant-result-rtl .ant-result-extra>*:last-child{margin-left:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[1717],{38582:function(e,t,n){var a=(0,n(55258).Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_ob5y15ewlyq.js"]});t.Z=a},80331:function(e,t,n){n.r(t),n.d(t,{default:function(){return N}});var a=n(57213),i=n.n(a),o=n(54306),s=n.n(o),r=n(88265),c=n(63313),u=n(4574),l=n(62284),d=n(71571),h=n(68834),p=n(38582),f=n(11527),m={route:{routes:[{name:r.ZP.get("登录"),path:"/login",hideInMenu:!0,component:"@/pages/login/index"},{name:r.ZP.get("初始化"),path:"/initialization",hideInMenu:!0,component:"@/pages/initialization/index"},{name:r.ZP.get("错误"),path:"/error",hideInMenu:!0,component:"@/pages/error/index"},{path:"/crontab",name:r.ZP.get("定时任务"),icon:(0,f.jsx)(p.Z,{type:"ql-icon-crontab"}),component:"@/pages/crontab/index"},{path:"/subscription",name:r.ZP.get("订阅管理"),icon:(0,f.jsx)(p.Z,{type:"ql-icon-subs"}),component:"@/pages/subscription/index"},{path:"/env",name:r.ZP.get("环境变量"),icon:(0,f.jsx)(p.Z,{type:"ql-icon-env"}),component:"@/pages/env/index"},{path:"/config",name:r.ZP.get("配置文件"),icon:(0,f.jsx)(p.Z,{type:"ql-icon-config"}),component:"@/pages/config/index"},{path:"/script",name:r.ZP.get("脚本管理"),icon:(0,f.jsx)(p.Z,{type:"ql-icon-script"}),component:"@/pages/script/index"},{path:"/dependence",name:r.ZP.get("依赖管理"),icon:(0,f.jsx)(p.Z,{type:"ql-icon-dependence"}),component:"@/pages/dependence/index"},{path:"/log",name:r.ZP.get("日志管理"),icon:(0,f.jsx)(p.Z,{type:"ql-icon-log"}),component:"@/pages/log/index"},{path:"/diff",name:r.ZP.get("对比工具"),icon:(0,f.jsx)(p.Z,{type:"ql-icon-diff"}),component:"@/pages/diff/index"},{path:"/setting",name:r.ZP.get("系统设置"),icon:(0,f.jsx)(h.Z,{}),component:"@/pages/password/index"}]},navTheme:"light",fixSiderbar:!0,contentWidth:"Fixed",splitMenus:!1,siderWidth:180},g=n(14851),v=n(50988),x=n(3513),b=n(63386),k=n(85153),y=n(15207),Z=n(57229),w=n(86563),S=n.n(w),j=n(3094),P=n(12094),I=n(15367),E=n(13217),q=n(34133),C=n(83535),L=n(45638),T=n(79516),z=n(42078),A=n(25940),M=n(82755);var _=n(21758);function N(){var e=(0,g.useLocation)(),t=(0,j.e)(),n=(0,j.F)(),a=n.theme,o=n.reloadTheme,h=(0,c.useState)({}),p=s()(h,2),w=p[0],N=p[1],R=(0,c.useState)(!0),F=s()(R,2),O=F[0],W=F[1],B=(0,c.useState)(),H=s()(B,2),K=H[0],U=H[1],D=(0,c.useState)(!1),J=s()(D,2),Q=J[0],G=J[1],V=(0,c.useState)(!0),X=s()(V,2),Y=X[0],$=X[1],ee=d||{},te=ee.enable,ne=ee.disable,ae=(ee.exportGeneratedCSS,ee.setFetchMethod),ie=ee.auto,oe=function(){Z.W.get("".concat(y.Z.apiPrefix,"system")).then((function(e){var t,n=e.code,a=e.data;200===n&&(U(a),a.isInitialized?(t=a.version,z.S({dsn:"https://3406424fb1dc4813a62d39e844a9d0ac@o1098464.ingest.sentry.io/6122818",integrations:[new A.jK.BrowserTracing({shouldCreateSpanForRequest:function(e){return!e.includes("/api/ws")&&!e.includes("/api/static")}})],release:t,tracesSampleRate:.1,beforeBreadcrumb:function(e,t){if(e.data&&e.data.url){var n=e.data.url.replace(/token=.*/,"");e.data.url=n}return e}}),M._m.config({paths:{vs:"https://cdn.staticfile.org/monaco-editor/0.33.0/min/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}}),se()):g.history.push("/initialization"))})).catch((function(e){console.log(e)}))},se=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t&&W(!0),Z.W.get("".concat(y.Z.apiPrefix,"user")).then((function(n){var a=n.code,i=n.data;200===a&&i.username&&(N(i),"/"===e.pathname&&g.history.push("/crontab")),t&&W(!1)})).catch((function(e){console.log(e)}))},re=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];se(e)};if((0,c.useEffect)((function(){K&&K.isInitialized&&!w&&se()}),[e.pathname]),(0,c.useEffect)((function(){Z.W.get("".concat(y.Z.apiPrefix,"public/health")).then((function(e){var t;1===(null==e||null===(t=e.data)||void 0===t?void 0:t.status)?oe():g.history.push("/error")})).catch((function(e){g.history.push("/error")})).finally((function(){return $(!1)}))}),[]),(0,c.useEffect)((function(){"vs-dark"===a?document.body.setAttribute("data-dark","true"):document.body.setAttribute("data-dark","false")}),[a]),(0,c.useEffect)((function(){S()();var e=localStorage.getItem("qinglong_dark_theme")||"auto";if("undefined"!=typeof window&&void 0!==window.matchMedia)return d?(ae(fetch),"dark"===e?te({}):"light"===e?ne():ie({}),function(){ne()}):function(){return null}}),[]),(0,c.useEffect)((function(){if(w&&w.username){var e=_.Z.getInstance("".concat(window.location.origin).concat(y.Z.apiPrefix,"ws?token=").concat(localStorage.getItem(y.Z.authKey)));return function(){e.close()}}}),[w]),(0,c.useEffect)((function(){window.onload=function(){var e=performance.timing;console.log("白屏时间: ".concat(e.responseStart-e.navigationStart)),console.log("请求完毕至DOM加载: ".concat(e.domInteractive-e.responseEnd)),console.log("解释dom树耗时: ".concat(e.domComplete-e.domInteractive)),console.log("从开始至load总耗时: ".concat(e.loadEventEnd-e.navigationStart)),L.uT("白屏时间 ".concat(e.responseStart-e.navigationStart))}}),[]),Y)return(0,f.jsx)(u.Z,{});if(["/login","/initialization","/error"].includes(e.pathname)&&(null!=K&&K.isInitialized&&"/initialization"===e.pathname&&g.history.push("/crontab"),K||"/error"===e.pathname))return(0,f.jsx)(g.Outlet,{context:i()(i()({},t),{},{theme:a,user:w,reloadUser:re,reloadTheme:o})});var ce=navigator.userAgent.includes("Firefox"),ue=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"),le=navigator.userAgent.includes("QQBrowser"),de={items:[{label:r.ZP.get("退出登录"),className:"side-menu-user-drop-menu",onClick:function(){Z.W.post("".concat(y.Z.apiPrefix,"user/logout")).then((function(){localStorage.removeItem(y.Z.authKey),g.history.push("/login")}))},key:"logout",icon:(0,f.jsx)(v.Z,{})}]};return O?(0,f.jsx)(u.Z,{}):(0,f.jsx)(l.ZP,i()(i()({selectedKeys:[e.pathname],loading:O,ErrorBoundary:T.SV,logo:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(P.Z,{preview:!1,src:"https://qn.whyour.cn/logo.png"}),(0,f.jsxs)("div",{className:"title",children:[(0,f.jsx)("span",{className:"title",children:r.ZP.get("青龙")}),(0,f.jsx)("a",{href:null==K?void 0:K.changeLogLink,target:"_blank",rel:"noopener noreferrer",onClick:function(e){e.stopPropagation()},children:(0,f.jsx)(I.Z,{title:"develop"===(null==K?void 0:K.branch)?r.ZP.get("开发版"):r.ZP.get("正式版"),children:(0,f.jsx)(E.Z,{size:"small",dot:"develop"===(null==K?void 0:K.branch),children:(0,f.jsxs)("span",{style:{fontSize:ce?9:12,color:"#666",marginLeft:2,zoom:ue?.66:.8,letterSpacing:le?-2:0},children:["v",null==K?void 0:K.version]})})})})]})]}),title:!1,menuItemRender:function(t,n){return t.isUrl||!t.path||e.pathname===t.path?n:(0,f.jsx)(g.Link,{to:t.path,children:n})},pageTitleRender:function(t,n,a){var i=y.Z.documentTitleMap[e.pathname]||r.ZP.get("未找到");return"".concat(i," - ").concat(r.ZP.get("青龙"))},onCollapse:G,collapsed:Q,rightContentRender:function(){return t.isPhone&&(0,f.jsx)(q.Z,{menu:de,placement:"bottomRight",trigger:["click"],children:(0,f.jsxs)("span",{className:"side-menu-user-wrapper",children:[(0,f.jsx)(C.C,{shape:"square",size:"small",icon:(0,f.jsx)(x.Z,{}),src:w.avatar?"".concat(y.Z.apiPrefix,"static/").concat(w.avatar):""}),(0,f.jsx)("span",{style:{marginLeft:5},children:w.username})]})})},collapsedButtonRender:function(e){return(0,f.jsxs)("span",{className:"side-menu-container",onClick:function(e){e.preventDefault(),e.stopPropagation()},children:[!e&&!t.isPhone&&(0,f.jsx)(q.Z,{menu:de,placement:"topLeft",trigger:["hover"],children:(0,f.jsxs)("span",{className:"side-menu-user-wrapper",children:[(0,f.jsx)(C.C,{shape:"square",size:"small",icon:(0,f.jsx)(x.Z,{}),src:w.avatar?"".concat(y.Z.apiPrefix,"static/").concat(w.avatar):""}),(0,f.jsx)("span",{style:{marginLeft:5},children:w.username})]})}),(0,f.jsx)("span",{className:"side-menu-collapse-button",onClick:function(){return G(!e)},children:e?(0,f.jsx)(b.Z,{}):(0,f.jsx)(k.Z,{})})]})}},m),{},{children:(0,f.jsx)(g.Outlet,{context:i()(i()({},t),{},{theme:a,user:w,reloadUser:re,reloadTheme:o,systemInfo:K})})}))}},3094:function(e,t,n){n.d(t,{F:function(){return c},e:function(){return r}});var a=n(54306),i=n.n(a),o=n(63313),s=n(40141),r=function(){var e=(0,o.useState)("100%"),t=i()(e,2),n=t[0],a=t[1],r=(0,o.useState)(0),c=i()(r,2),u=c[0],l=c[1],d=(0,o.useState)(-48),h=i()(d,2),p=h[0],f=h[1],m=(0,o.useState)(!1),g=i()(m,2),v=g[0],x=g[1],b=(0,o.useMemo)((function(){return(0,s.ZP)()}),[]).platform;return(0,o.useEffect)((function(){"mobile"===b&&document.body.offsetWidth<768?(a("auto"),l(0),f(0),x(!0),document.body.setAttribute("data-mode","phone")):(a("100%"),l(0),f(-48),x(!1),document.body.setAttribute("data-mode","desktop"))}),[]),{headerStyle:{padding:"4px 16px 4px 15px",position:"sticky",top:0,left:0,zIndex:20,marginTop:p,width:n,marginLeft:u},isPhone:v}},c=function(){var e=(0,o.useState)(),t=i()(e,2),n=t[0],a=t[1];return(0,o.useEffect)((function(){var e=window.matchMedia("(prefers-color-scheme: dark)"),t=localStorage.getItem("qinglong_dark_theme"),n=e.matches&&"light"!==t||"dark"===t;a(n?"vs-dark":"vs");var i=function(e){"auto"!==t&&t||(e.matches?a("vs-dark"):a("vs"))};"function"==typeof e.addEventListener?e.addEventListener("change",i):"function"==typeof e.addListener&&e.addListener(i)}),[]),{theme:n,reloadTheme:function(){var e=window.matchMedia("(prefers-color-scheme: dark)"),t=localStorage.getItem("qinglong_dark_theme"),n=e.matches&&"light"!==t||"dark"===t;a(n?"vs-dark":"vs")}}}},21758:function(e,t,n){var a=n(93525),i=n.n(a),o=n(12342),s=n.n(o),r=n(25359),c=n.n(r),u=n(49811),l=n.n(u),d=n(21140),h=n.n(d),p=n(63466),f=n.n(p),m=n(52510),g=n.n(m),v=n(78078),x=n.n(v),b=["type"],k=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h()(this,e),g()(this,"url",void 0),g()(this,"socket",null),g()(this,"subscriptions",new Map),g()(this,"options",void 0),g()(this,"reconnectAttempts",0),g()(this,"heartbeatTimeout",null),g()(this,"state","closed"),this.url=t,this.options={maxReconnectAttempts:n.maxReconnectAttempts||5,reconnectInterval:n.reconnectInterval||3e3,heartbeatInterval:n.heartbeatInterval||3e4},this.init()}var t,n;return f()(e,[{key:"init",value:(n=l()(c()().mark((function e(){var t=this;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,this.state="connecting",this.emit("connecting");case 3:if(!(this.reconnectAttempts<this.options.maxReconnectAttempts)){e.next=16;break}return this.socket=new(x())(this.url),this.setupEventListeners(),this.startHeartbeat(),e.next=9,this.waitForClose();case 9:return this.stopHeartbeat(),this.socket=null,this.reconnectAttempts++,e.next=14,new Promise((function(e){return setTimeout(e,t.options.reconnectInterval)}));case 14:e.next=3;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),this.handleError(e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,18]])}))),function(){return n.apply(this,arguments)})},{key:"setupEventListeners",value:function(){var e=this;this.socket&&(this.socket.onopen=function(){e.state="open",e.emit("open")},this.socket.onmessage=function(t){var n=JSON.parse(t.data);e.dispatchMessage(n)},this.socket.onclose=function(){e.state="closed",e.emit("close")})}},{key:"waitForClose",value:(t=l()(c()().mark((function e(){var t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((null===(t=this.socket)||void 0===t?void 0:t.readyState)===x().CLOSED){e.next=5;break}return e.next=3,new Promise((function(e){return setTimeout(e,100)}));case 3:e.next=0;break;case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"subscribe",value:function(e,t){var n=this.subscriptions.get(e)||new Set;if(!n.has(t)){n.add(t),this.subscriptions.set(e,n);var a={action:"subscribe",topic:e};this.send(a)}}},{key:"unsubscribe",value:function(e,t){var n=this.subscriptions.get(e)||new Set;if(n.has(t)){n.delete(t);var a={action:"unsubscribe",topic:e};this.send(a)}}},{key:"send",value:function(e){var t;(null===(t=this.socket)||void 0===t?void 0:t.readyState)===x().OPEN&&this.socket.send(JSON.stringify(e))}},{key:"dispatchMessage",value:function(e){var t=e.type,n=s()(e,b),a=this.subscriptions.get(t)||new Set;i()(a).forEach((function(e){return e(n)}))}},{key:"startHeartbeat",value:function(){var e=this;this.heartbeatTimeout=setInterval((function(){var t;(null===(t=e.socket)||void 0===t?void 0:t.readyState)===x().OPEN&&e.socket.send(JSON.stringify({type:"heartbeat"}))}),this.options.heartbeatInterval)}},{key:"stopHeartbeat",value:function(){this.heartbeatTimeout&&clearInterval(this.heartbeatTimeout)}},{key:"close",value:function(){this.socket&&(this.state="closed",this.stopHeartbeat(),this.socket.close(),this.emit("close"))}},{key:"handleError",value:function(e){console.error("WebSocket错误:",e),this.emit("error",e)}},{key:"on",value:function(e,t){}},{key:"emit",value:function(e,t){}}],[{key:"getInstance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;return e.instance||(e.instance=new e(t,n)),e.instance}}]),e}();g()(k,"instance",null),t.Z=k}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4650],{59673:function(e,E,N){N.d(E,{Z:function(){return M}});var a=N(14797),c=N(63313),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},_=N(46420),t=function(e,E){return c.createElement(_.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:E,icon:s}))};t.displayName="CheckOutlined";var M=c.forwardRef(t)},95472:function(e,E,N){N.r(E);var a=N(88265),c=(N(63313),N(92260)),s=N(4925),_=N(24378),t=N(11527),M=c.Z.Link;E.default=function(){return(0,t.jsx)(s.ZP,{status:"404",title:"404",extra:(0,t.jsx)(_.Z,{type:"primary",children:(0,t.jsx)(M,{href:"/",children:a.ZP.get("返回首页")})})})}},
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4650],{59673:function(e,E,N){N.d(E,{Z:function(){return M}});var a=N(14797),c=N(63313),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},_=N(46420),t=function(e,E){return c.createElement(_.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:E,icon:s}))};t.displayName="CheckOutlined";var M=c.forwardRef(t)},95472:function(e,E,N){N.r(E);var a=N(88265),c=(N(63313),N(92260)),s=N(4925),_=N(24378),t=N(11527),M=c.Z.Link;E.default=function(){return(0,t.jsx)(s.ZP,{status:"404",title:"404",extra:(0,t.jsx)(_.Z,{type:"primary",children:(0,t.jsx)(M,{href:"/",children:a.ZP.get("返回首页")})})})}},32602:function(e,E){var N={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var E=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||E>=N.F1&&E<=N.F12)return!1;switch(E){case N.ALT:case N.CAPS_LOCK:case N.CONTEXT_MENU:case N.CTRL:case N.DOWN:case N.END:case N.ESC:case N.HOME:case N.INSERT:case N.LEFT:case N.MAC_FF_META:case N.META:case N.NUMLOCK:case N.NUM_CENTER:case N.PAGE_DOWN:case N.PAGE_UP:case N.PAUSE:case N.PRINT_SCREEN:case N.RIGHT:case N.SHIFT:case N.UP:case N.WIN_KEY:case N.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=N.ZERO&&e<=N.NINE)return!0;if(e>=N.NUM_ZERO&&e<=N.NUM_MULTIPLY)return!0;if(e>=N.A&&e<=N.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case N.SPACE:case N.QUESTION_MARK:case N.NUM_PLUS:case N.NUM_MINUS:case N.NUM_PERIOD:case N.NUM_DIVISION:case N.SEMICOLON:case N.DASH:case N.EQUALS:case N.COMMA:case N.PERIOD:case N.SLASH:case N.APOSTROPHE:case N.SINGLE_QUOTE:case N.OPEN_SQUARE_BRACKET:case N.BACKSLASH:case N.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};E.Z=N}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[5825],{37126:function(e,t,a){a.d(t,{Z:function(){return s}});var n=a(14797),r=a(63313),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},i=a(46420),l=function(e,t){return r.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};l.displayName="SearchOutlined";var s=r.forwardRef(l)},74301:function(e,t,a){a.r(t);var n=a(54306),r=a.n(n),o=a(88265),i=a(63313),l=a(9835),s=a(75310),c=a(24378),u=a(15207),p=a(23435),d=a(57229),g=a(82755),h=a(31988),P=a(14851),f=a(26747),m=a(11527);t.default=function(){var e=(0,P.useOutletContext)(),t=e.headerStyle,a=e.isPhone,n=e.theme,b=(0,i.useState)(""),Z=r()(b,2),E=Z[0],v=Z[1],y=(0,i.useState)(!0),k=r()(y,2),S=k[0],C=k[1],x=(0,i.useState)("config.sh"),w=r()(x,2),M=w[0],N=w[1],T=(0,i.useState)("config.sh"),_=r()(T,2),O=_[0],U=_[1],A=(0,i.useState)([]),I=r()(A,2),R=I[0],q=I[1],K=(0,i.useRef)(null),L=(0,i.useState)(!1),B=r()(L,2),D=B[0],H=B[1],F=function(e){d.W.get("".concat(u.Z.apiPrefix,"configs/").concat(e)).then((function(e){var t=e.code,a=e.data;200===t&&v(a)}))};return(0,i.useEffect)((function(){C(!0),d.W.get("".concat(u.Z.apiPrefix,"configs/files")).then((function(e){var t=e.code,a=e.data;200===t&&q(a)})).finally((function(){return C(!1)})),F("config.sh")}),[]),(0,m.jsx)(p.ZP,{className:"ql-container-wrapper config-wrapper",title:M,loading:S,extra:[(0,m.jsx)(s.Z,{treeExpandAction:"click",className:"config-select",value:O,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:R,defaultValue:"config.sh",onSelect:function(e,t){U(e),N(t.value),F(t.value)}},"value"),(0,m.jsx)(c.Z,{loading:D,type:"primary",onClick:function(){H(!0);var e=K.current?K.current.getValue().replace(/\r\n/g,"\n"):E;d.W.post("".concat(u.Z.apiPrefix,"configs/save"),{content:e,name:O}).then((function(e){var t=e.code;e.data;200===t&&l.ZP.success(o.ZP.get("保存成功")),H(!1)}))},children:o.ZP.get("保存")},"1")],header:{style:t},children:a?(0,m.jsx)(h.ZP,{value:E,theme:n.includes("dark")?"dark":"light",extensions:[f.RI.shell()],onChange:function(e){v(e)}}):(0,m.jsx)(g.ZP,{defaultLanguage:"shell",value:E,theme:n,options:{fontSize:12,lineNumbersMinChars:3,folding:!1,glyphMargin:!1},onMount:function(e){K.current=e}})})}},15207:function(e,t,a){var n=a(88265),r=window.__ENV__QlBaseUrl||"/";t.Z={siteName:n.ZP.get("青龙"),apiPrefix:"".concat(r,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Português",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:n.ZP.get("中文"),flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:n.ZP.get("定时任务"),value:"crons"},{name:n.ZP.get("环境变量"),value:"envs"},{name:n.ZP.get("订阅管理"),value:"subscriptions"},{name:n.ZP.get("配置文件"),value:"configs"},{name:n.ZP.get("脚本管理"),value:"scripts"},{name:n.ZP.get("日志管理"),value:"logs"},{name:n.ZP.get("依赖管理"),value:"dependencies"},{name:n.ZP.get("系统信息"),value:"system"}],scopesMap:{crons:n.ZP.get("定时任务"),envs:n.ZP.get("环境变量"),subscriptions:n.ZP.get("订阅管理"),configs:n.ZP.get("配置文件"),scripts:n.ZP.get("脚本管理"),logs:n.ZP.get("日志管理"),dependencies:n.ZP.get("依赖管理"),system:n.ZP.get("系统信息")},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:n.ZP.get("Server酱")},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:n.ZP.get("Telegram机器人")},{value:"dingtalkBot",label:n.ZP.get("钉钉机器人")},{value:"weWorkBot",label:n.ZP.get("企业微信机器人")},{value:"weWorkApp",label:n.ZP.get("企业微信应用")},{value:"aibotk",label:n.ZP.get("智能微秘书")},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:n.ZP.get("群晖chat")},{value:"email",label:n.ZP.get("邮箱")},{value:"lark",label:n.ZP.get("飞书机器人")},{value:"pushMe",label:"PushMe"},{value:"chronocat",label:"Chronocat"},{value:"webhook",label:n.ZP.get("自定义通知")},{value:"closed",label:n.ZP.get("已关闭")}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:n.ZP.get("gotify的url地址,例如 https://push.example.de:8080"),required:!0},{label:"gotifyToken",tip:n.ZP.get("gotify的消息应用token码"),required:!0},{label:"gotifyPriority",tip:n.ZP.get("推送消息的优先级")}],chat:[{label:"chatUrl",tip:n.ZP.get("chat的url地址"),required:!0},{label:"chatToken",tip:n.ZP.get("chat的token码"),required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:n.ZP.get("推送到个人QQ: http://127.0.0.1/send_private_msg,群:http://127.0.0.1/send_group_msg"),required:!0},{label:"goCqHttpBotToken",tip:n.ZP.get("访问密钥"),required:!0},{label:"goCqHttpBotQq",tip:n.ZP.get("如果GOBOT_URL设置 /send_private_msg 则需要填入 user_id=个人QQ 相反如果是 /send_group_msg 则需要填入 group_id=QQ群"),required:!0}],serverChan:[{label:"serverChanKey",tip:n.ZP.get("Server酱SENDKEY"),required:!0}],pushDeer:[{label:"pushDeerKey",tip:n.ZP.get("PushDeer的Key,https://github.com/easychen/pushdeer"),required:!0},{label:"pushDeerUrl",tip:n.ZP.get("PushDeer的自架API endpoint,默认是 https://api2.pushdeer.com/message/push")}],bark:[{label:"barkPush",tip:n.ZP.get("Bark的信息IP/设备码,例如:https://api.day.app/XXXXXXXX"),required:!0},{label:"barkIcon",tip:n.ZP.get("BARK推送图标,自定义推送图标 (需iOS15或以上才能显示)")},{label:"barkSound",tip:n.ZP.get("BARK推送铃声,铃声列表去APP查看复制填写")},{label:"barkGroup",tip:n.ZP.get("BARK推送消息的分组,默认为qinglong")},{label:"barkLevel",tip:n.ZP.get("BARK推送消息的时效性,默认为active")},{label:"barkUrl",tip:n.ZP.get("BARK推送消息的跳转URL")}],telegramBot:[{label:"telegramBotToken",tip:n.ZP.get("telegram机器人的token,例如:1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw"),required:!0},{label:"telegramBotUserId",tip:n.ZP.get("telegram用户的id,例如:129xxx206"),required:!0},{label:"telegramBotProxyHost",tip:n.ZP.get("代理IP")},{label:"telegramBotProxyPort",tip:n.ZP.get("代理端口")},{label:"telegramBotProxyAuth",tip:n.ZP.get("telegram代理配置认证参数,用户名与密码用英文冒号连接 user:password")},{label:"telegramBotApiHost",tip:n.ZP.get("telegram api自建的反向代理地址,默认tg官方api")}],dingtalkBot:[{label:"dingtalkBotToken",tip:n.ZP.get("钉钉机器人webhook token,例如:5a544165465465645d0f31dca676e7bd07415asdasd"),required:!0},{label:"dingtalkBotSecret",tip:n.ZP.get("密钥,机器人安全设置页面,加签一栏下面显示的SEC开头的字符串")}],weWorkBot:[{label:"weWorkBotKey",tip:n.ZP.get("企业微信机器人的webhook(详见文档 https://work.weixin.qq.com/api/doc/90000/90136/91770),例如:693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa"),required:!0},{label:"weWorkOrigin",tip:n.ZP.get("企业微信代理地址")}],weWorkApp:[{label:"weWorkAppKey",tip:n.ZP.get("corpid、corpsecret、touser(注:多个成员ID使用|隔开)、agentid、消息类型(选填,不填默认文本消息类型) 注意用,号隔开(英文输入法的逗号),例如:wwcfrs,B-76WERQ,qinglong,1000001,2COat"),required:!0},{label:"weWorkOrigin",tip:n.ZP.get("企业微信代理地址")}],aibotk:[{label:"aibotkKey",tip:n.ZP.get("密钥key,智能微秘书个人中心获取apikey,申请地址:https://wechat.aibotk.com/signup?from=ql"),required:!0},{label:"aibotkType",tip:n.ZP.get("发送的目标,群组或者好友"),required:!0,placeholder:n.ZP.get("请输入要发送的目标"),items:[{value:"room",label:n.ZP.get("群聊")},{value:"contact",label:n.ZP.get("好友")}]},{label:"aibotkName",tip:n.ZP.get("要发送的用户昵称或群名,如果目标是群,需要填群名,如果目标是好友,需要填好友昵称"),required:!0}],iGot:[{label:"iGotPushKey",tip:n.ZP.get("iGot的信息推送key,例如:https://push.hellyw.com/XXXXXXXX"),required:!0}],pushPlus:[{label:"pushPlusToken",tip:n.ZP.get("微信扫码登录后一对一推送或一对多推送下面的token(您的Token),不提供PUSH_PLUS_USER则默认为一对一推送,参考 https://www.pushplus.plus/"),required:!0},{label:"pushPlusUser",tip:n.ZP.get("一对多推送的“群组编码”(一对多推送下面->您的群组(如无则创建)->群组编码,如果您是创建群组人。也需点击“查看二维码”扫描绑定,否则不能接受群组消息推送)")}],lark:[{label:"larkKey",tip:n.ZP.get("飞书群组机器人:https://www.feishu.cn/hc/zh-CN/articles/360024984973"),required:!0}],email:[{label:"emailService",tip:n.ZP.get("邮箱服务名称,比如126、163、Gmail、QQ等,支持列表https://nodemailer.com/smtp/well-known/"),required:!0},{label:"emailUser",tip:n.ZP.get("邮箱地址"),required:!0},{label:"emailPass",tip:n.ZP.get("邮箱SMTP授权码"),required:!0}],pushMe:[{label:"pushMeKey",tip:n.ZP.get("PushMe的Key,https://push.i-i.me/"),required:!0}],chronocat:[{label:"chronocatURL",tip:n.ZP.get("Chronocat Red 服务的连接地址 https://chronocat.vercel.app/install/docker/official/"),required:!0},{label:"chronocatQQ",tip:n.ZP.get("个人:user_id=个人QQ 群则填入group_id=QQ群 多个用英文;隔开同时支持个人和群 如:user_id=xxx;group_id=xxxx;group_id=xxxxx"),required:!0},{label:"chronocatToken",tip:n.ZP.get("docker安装在持久化config目录下的chronocat.yml文件可找到"),required:!0}],webhook:[{label:"webhookMethod",tip:n.ZP.get("请求方法"),required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:n.ZP.get("请求头Content-Type"),required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:n.ZP.get("请求链接以http或者https开头。url或者body中必须包含$title,$content可选,对应api内容的位置"),required:!0,placeholder:"https://xxx.cn/api?content=$title\n"},{label:"webhookHeaders",tip:n.ZP.get("请求头格式Custom-Header1: Header1,多个换行分割"),placeholder:"Custom-Header1: Header1\nCustom-Header2: Header2"},{label:"webhookBody",tip:n.ZP.get("请求体格式key1: value1,多个换行分割。url或者body中必须包含$title,$content可选,对应api内容的位置"),placeholder:"key1: $title\nkey2: $content"}]},documentTitleMap:{"/login":n.ZP.get("登录"),"/initialization":n.ZP.get("初始化"),"/crontab":n.ZP.get("定时任务"),"/env":n.ZP.get("环境变量"),"/subscription":n.ZP.get("订阅管理"),"/config":n.ZP.get("配置文件"),"/script":n.ZP.get("脚本管理"),"/diff":n.ZP.get("对比工具"),"/log":n.ZP.get("日志管理"),"/setting":n.ZP.get("系统设置"),"/error":n.ZP.get("错误日志"),"/dependence":n.ZP.get("依赖管理")},dependenceTypes:["nodejs","python3","linux"]}},57229:function(e,t,a){a.d(t,{W:function(){return P}});var n=a(25359),r=a.n(n),o=a(49811),i=a.n(o),l=a(88265),s=a(9835),c=a(15207),u=a(14851),p=a(73669);s.ZP.config({duration:2});var d=Date.now(),g=p.Z.create({timeout:6e4,params:{t:d}}),h=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];g.interceptors.request.use((function(e){var t=localStorage.getItem(c.Z.authKey);return t&&!h.includes(e.url)?(e.headers.Authorization="Bearer ".concat(t),e):e})),g.interceptors.response.use(function(){var e=i()(r()().mark((function e(t){var a,n,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.status,![502,504].includes(a)){e.next=5;break}u.history.push("/error"),e.next=18;break;case 5:if(401!==a){e.next=9;break}"/login"!==u.history.location.pathname&&(localStorage.removeItem(c.Z.authKey),u.history.push("/login")),e.next=18;break;case 9:return e.prev=9,200!==(n=t.data).code&&(o=n.message||n.data)&&s.ZP.error({content:o,style:{maxWidth:500,margin:"0 auto"}}),e.abrupt("return",n);case 15:e.prev=15,e.t0=e.catch(9);case 17:case 18:return e.abrupt("return",t);case 19:case"end":return e.stop()}}),e,null,[[9,15]])})));return function(t){return e.apply(this,arguments)}}(),(function(e){if(e.response){var t=e.response.data?e.response.data.message||e.message||e.response.data:e.response.statusText,a=e.response.status;[502,504].includes(a)?u.history.push("/error"):401===a?"/login"!==u.history.location.pathname&&(s.ZP.error(l.ZP.get("登录已过期,请重新登录")),localStorage.removeItem(c.Z.authKey),u.history.push("/login")):s.ZP.error({content:t,style:{maxWidth:500,margin:"0 auto"}})}else console.log(e.message);return Promise.reject(e)}));var P=g},52105:function(e,t,a){var n=a(41171),r=a(63313),o=a(68098);t.Z=function(){var e=r.useState(!1),t=(0,n.Z)(e,2),a=t[0],i=t[1];return r.useEffect((function(){i((0,o.fk)())}),[]),a}},11847:function(e,t,a){a.d(t,{c4:function(){return o}});var n=a(22481),r=a(88028),o=["xxl","xl","lg","md","sm","xs"],i={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},l=new Map,s=-1,c={},u={matchHandlers:{},dispatch:function(e){return c=e,l.forEach((function(e){return e(c)})),l.size>=1},subscribe:function(e){return l.size||this.register(),s+=1,l.set(s,e),e(c),s},unsubscribe:function(e){l.delete(e),l.size||this.unregister()},unregister:function(){var e=this;Object.keys(i).forEach((function(t){var a=i[t],n=e.matchHandlers[a];null==n||n.mql.removeListener(null==n?void 0:n.listener)})),l.clear()},register:function(){var e=this;Object.keys(i).forEach((function(t){var a=i[t],o=function(a){var o=a.matches;e.dispatch((0,r.Z)((0,r.Z)({},c),(0,n.Z)({},t,o)))},l=window.matchMedia(a);l.addListener(o),e.matchHandlers[a]={mql:l,listener:o},o(l)}))}};t.ZP=u},1020:function(e,t,a){a.d(t,{F:function(){return l},Z:function(){return i}});var n=a(22481),r=a(84875),o=a.n(r);(0,a(20341).b)("warning","error","");function i(e,t,a){var r;return o()((r={},(0,n.Z)(r,"".concat(e,"-status-success"),"success"===t),(0,n.Z)(r,"".concat(e,"-status-warning"),"warning"===t),(0,n.Z)(r,"".concat(e,"-status-error"),"error"===t),(0,n.Z)(r,"".concat(e,"-status-validating"),"validating"===t),(0,n.Z)(r,"".concat(e,"-has-feedback"),a),r))}var l=function(e,t){return t||e}},68098:function(e,t,a){a.d(t,{fk:function(){return i},jD:function(){return o}});var n,r=a(46594),o=function(){return(0,r.Z)()&&window.document.documentElement},i=function(){if(!o())return!1;if(void 0!==n)return n;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),n=1===e.scrollHeight,document.body.removeChild(e),n}},20277:function(e,t,a){var n=a(88028),r=a(32602),o=a(63313),i=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a},l={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},s=o.forwardRef((function(e,t){var a=e.style,s=e.noStyle,c=e.disabled,u=i(e,["style","noStyle","disabled"]),p={};return s||(p=(0,n.Z)({},l)),c&&(p.pointerEvents="none"),p=(0,n.Z)((0,n.Z)({},p),a),o.createElement("div",(0,n.Z)({role:"button",tabIndex:0,ref:t},u,{onKeyDown:function(e){e.keyCode===r.Z.ENTER&&e.preventDefault()},onKeyUp:function(t){var a=t.keyCode,n=e.onClick;a===r.Z.ENTER&&n&&n()},style:p}))}));t.Z=s},32602:function(e,t){var a={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=a.F1&&t<=a.F12)return!1;switch(t){case a.ALT:case a.CAPS_LOCK:case a.CONTEXT_MENU:case a.CTRL:case a.DOWN:case a.END:case a.ESC:case a.HOME:case a.INSERT:case a.LEFT:case a.MAC_FF_META:case a.META:case a.NUMLOCK:case a.NUM_CENTER:case a.PAGE_DOWN:case a.PAGE_UP:case a.PAUSE:case a.PRINT_SCREEN:case a.RIGHT:case a.SHIFT:case a.UP:case a.WIN_KEY:case a.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=a.ZERO&&e<=a.NINE)return!0;if(e>=a.NUM_ZERO&&e<=a.NUM_MULTIPLY)return!0;if(e>=a.A&&e<=a.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case a.SPACE:case a.QUESTION_MARK:case a.NUM_PLUS:case a.NUM_MINUS:case a.NUM_PERIOD:case a.NUM_DIVISION:case a.SEMICOLON:case a.DASH:case a.EQUALS:case a.COMMA:case a.PERIOD:case a.SLASH:case a.APOSTROPHE:case a.SINGLE_QUOTE:case a.OPEN_SQUARE_BRACKET:case a.BACKSLASH:case a.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=a},35019:function(e,t,a){a.d(t,{Z:function(){return s}});var n=a(2595),r="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),o="aria-",i="data-";function l(e,t){return 0===e.indexOf(t)}function s(e){var t,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===a?{aria:!0,data:!0,attr:!0}:!0===a?{aria:!0}:(0,n.Z)({},a);var s={};return Object.keys(e).forEach((function(a){(t.aria&&("role"===a||l(a,o))||t.data&&l(a,i)||t.attr&&r.includes(a))&&(s[a]=e[a])})),s}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[9558,5812],{75909:function(e,n,t){var i=t(14797),r=t(87807),a=t(16803),o=t(63313),c=t(84875),l=t.n(c),s=t(12888),u=t(15152),d=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],f=o.forwardRef((function(e,n){var t=e.className,c=e.component,f=e.viewBox,m=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,Z=e.children,v=(0,a.Z)(e,d);(0,u.Kp)(Boolean(c||Z),"Should have `component` prop or `children`."),(0,u.C3)();var x=o.useContext(s.Z),y=x.prefixCls,b=void 0===y?"anticon":y,j=x.rootClassName,P=l()(j,b,t),C=l()((0,r.Z)({},"".concat(b,"-spin"),!!m)),w=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,S=(0,i.Z)((0,i.Z)({},u.vD),{},{className:C,style:w,viewBox:f});f||delete S.viewBox;var N=h;return void 0===N&&g&&(N=-1),o.createElement("span",(0,i.Z)((0,i.Z)({role:"img"},v),{},{ref:n,tabIndex:N,onClick:g,className:P}),c?o.createElement(c,(0,i.Z)({},S),Z):Z?((0,u.Kp)(Boolean(f)||1===o.Children.count(Z)&&o.isValidElement(Z)&&"use"===o.Children.only(Z).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),o.createElement("svg",(0,i.Z)((0,i.Z)({},S),{},{viewBox:f}),Z)):null)}));f.displayName="AntdIcon",n.Z=f},55258:function(e,n,t){t.d(n,{Z:function(){return d}});var i=t(14797),r=t(16803),a=t(63313),o=t(75909),c=["type","children"],l=new Set;function s(e){return Boolean("string"==typeof e&&e.length&&!l.has(e))}function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=e[n];if(s(t)){var i=document.createElement("script");i.setAttribute("src",t),i.setAttribute("data-namespace",t),e.length>n+1&&(i.onload=function(){u(e,n+1)},i.onerror=function(){u(e,n+1)}),l.add(t),document.body.appendChild(i)}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.scriptUrl,t=e.extraCommonProps,l=void 0===t?{}:t;n&&"undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&(Array.isArray(n)?u(n.reverse()):u([n]));var s=a.forwardRef((function(e,n){var t=e.type,s=e.children,u=(0,r.Z)(e,c),d=null;return e.type&&(d=a.createElement("use",{xlinkHref:"#".concat(t)})),s&&(d=s),a.createElement(o.Z,(0,i.Z)((0,i.Z)((0,i.Z)({},l),u),{},{ref:n}),d)}));return s.displayName="Iconfont",s}},25265:function(e,n,t){t.d(n,{Z:function(){return l}});var i=t(14797),r=t(63313),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},o=t(46420),c=function(e,n){return r.createElement(o.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:n,icon:a}))};c.displayName="FileOutlined";var l=r.forwardRef(c)},37126:function(e,n,t){t.d(n,{Z:function(){return l}});var i=t(14797),r=t(63313),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},o=t(46420),c=function(e,n){return r.createElement(o.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:n,icon:a}))};c.displayName="SearchOutlined";var l=r.forwardRef(c)},38582:function(e,n,t){var i=(0,t(55258).Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_ob5y15ewlyq.js"]});n.Z=i},74385:function(e,n,t){t.r(n),t.d(n,{default:function(){return z}});var i=t(57213),r=t.n(i),a=t(54306),o=t.n(a),c=t(88265),l=t(63313),s=t(92260),u=t(64865),d=t(84163),f=t(9835),m=t(394),p=t(51704),h=t(15367),g=t(24378),Z=t(1953),v=t(25265),x=t(44968),y=t(69685),b=t(20209),j=t(65601),P=t(7688),C=t(76657),w=t(3563),S=t(91350),N=t(87423),k=t(57229),E=t(15207),O=t(33680),B=t(82755),M=t(38582),R=t(40141),_=t(29030),T=t(61761),q=t(52053),A=t.n(q),D=t(11527),F=s.Z.Text,H=[{key:"log",tab:c.ZP.get("日志")},{key:"script",tab:c.ZP.get("脚本")}],z=function(e){var n,t,i,a,s=e.cron,q=void 0===s?{}:s,z=e.handleCancel,I=e.visible,W=e.theme,L=e.isPhone,Y=(0,l.useState)("log"),V=o()(Y,2),K=V[0],U=V[1],$=(0,l.useState)(!0),G=o()($,2),J=(G[0],G[1]),Q=(0,l.useState)([]),X=o()(Q,2),ee=X[0],ne=X[1],te=(0,l.useState)(""),ie=o()(te,2),re=ie[0],ae=ie[1],oe=(0,l.useState)(""),ce=o()(oe,2),le=ce[0],se=ce[1],ue=(0,l.useState)(!1),de=o()(ue,2),fe=de[0],me=de[1],pe=(0,l.useRef)(null),he=(0,l.useState)({}),ge=o()(he,2),Ze=ge[0],ve=ge[1],xe=(0,l.useState)(""),ye=o()(xe,2),be=ye[0],je=ye[1],Pe=(0,l.useState)(H),Ce=o()(Pe,2),we=Ce[0],Se=Ce[1],Ne=(0,l.useState)({}),ke=o()(Ne,2),Ee=ke[0],Oe=ke[1],Be=(0,l.useRef)(null),Me=function(e){var n=(0,l.useState)(0),t=o()(n,2),i=t[0],r=t[1];return(0,T.Z)(e,(function(e){var n=e.target.clientHeight;i!==n&&r(n)})),i}(Be),Re={log:(0,D.jsx)("div",{ref:Be,children:(0,D.jsx)(u.ZP,{children:(0,D.jsx)(_.Z,{data:ee,height:Me,itemHeight:47,itemKey:"filename",children:function(e){return(0,D.jsxs)(u.ZP.Item,{className:"log-item",onClick:function(){return _e(e)},children:[(0,D.jsx)(v.Z,{style:{marginRight:10}}),e.directory,"/",e.filename]})}})})}),script:Ze.filename&&(0,D.jsx)(B.ZP,{language:(0,R.H$)(Ze.filename),theme:W,value:le,options:{fontSize:12,lineNumbersMinChars:3,fontFamily:"Source Code Pro",glyphMargin:!1,wordWrap:"on"},onMount:function(e,n){pe.current=e}})},_e=function(e){var n="".concat(E.Z.apiPrefix,"logs/").concat(e.filename,"?path=").concat(e.directory||"");localStorage.setItem("logCron",n),je(n),k.W.get("".concat(E.Z.apiPrefix,"logs/").concat(e.filename,"?path=").concat(e.directory||"")).then((function(e){var n=e.code,t=e.data;200===n&&(ae(t),me(!0))}))},Te=function(){J(!0),k.W.get("".concat(E.Z.apiPrefix,"crons/").concat(q.id,"/logs")).then((function(e){var n=e.code,t=e.data;200===n&&ne(t)})).finally((function(){return J(!1)}))};return(0,l.useEffect)((function(){q&&q.id&&(Oe(q),Te(),function(){var e=(0,R.FA)(q.command);if(Array.isArray(e)){Se(we);var n=o()(e,2),t=n[0],i=n[1];ve({parent:i,filename:t}),k.W.get("".concat(E.Z.apiPrefix,"scripts/").concat(t,"?path=").concat(i||"")).then((function(e){var n=e.code,t=e.data;200===n&&se(t)}))}else e&&Se([we[0]])}())}),[q]),(0,D.jsxs)(d.Z,{title:(0,D.jsxs)("div",{className:"crontab-title-wrapper",children:[(0,D.jsxs)("div",{children:[(0,D.jsx)("span",{children:Ee.name}),(null===(n=Ee.labels)||void 0===n?void 0:n.length)>0&&""!==Ee.labels[0]&&(0,D.jsx)(m.Z,{type:"vertical"}),(null===(t=Ee.labels)||void 0===t?void 0:t.length)>0&&""!==Ee.labels[0]&&(null===(i=Ee.labels)||void 0===i?void 0:i.map((function(e,n){return(0,D.jsx)(p.Z,{color:"blue",style:{marginRight:5},children:e},e)})))]}),(0,D.jsxs)("div",{className:"operations",children:[(0,D.jsx)(h.Z,{title:Ee.status===S.CrontabStatus.idle?c.ZP.get("运行"):c.ZP.get("停止"),children:(0,D.jsx)(g.Z,{type:"link",icon:Ee.status===S.CrontabStatus.idle?(0,D.jsx)(x.Z,{}):(0,D.jsx)(y.Z,{}),size:"small",onClick:Ee.status===S.CrontabStatus.idle?function(){d.Z.confirm({title:c.ZP.get("确认运行"),content:(0,D.jsxs)(D.Fragment,{children:[c.ZP.get("确认运行定时任务")," ",(0,D.jsx)(F,{style:{wordBreak:"break-all"},type:"warning",children:Ee.name})," ",c.ZP.get("吗")]}),onOk:function(){k.W.put("".concat(E.Z.apiPrefix,"crons/run"),[Ee.id]).then((function(e){var n=e.code;e.data;200===n&&(Oe(r()(r()({},Ee),{},{status:S.CrontabStatus.running})),setTimeout((function(){Te()}),1e3))}))},onCancel:function(){console.log("Cancel")}})}:function(){d.Z.confirm({title:c.ZP.get("确认停止"),content:(0,D.jsxs)(D.Fragment,{children:[c.ZP.get("确认停止定时任务")," ",(0,D.jsx)(F,{style:{wordBreak:"break-all"},type:"warning",children:Ee.name})," ",c.ZP.get("吗")]}),onOk:function(){k.W.put("".concat(E.Z.apiPrefix,"crons/stop"),[Ee.id]).then((function(e){var n=e.code;e.data;200===n&&Oe(r()(r()({},Ee),{},{status:S.CrontabStatus.idle}))}))},onCancel:function(){console.log("Cancel")}})}})}),(0,D.jsx)(h.Z,{title:1===Ee.isDisabled?c.ZP.get("启用"):c.ZP.get("禁用"),children:(0,D.jsx)(g.Z,{type:"link",icon:(0,D.jsx)(M.Z,{type:1===Ee.isDisabled?"ql-icon-enable":"ql-icon-disable"}),size:"small",onClick:function(){d.Z.confirm({title:"确认".concat(1===Ee.isDisabled?c.ZP.get("启用"):c.ZP.get("禁用")),content:(0,D.jsxs)(D.Fragment,{children:[c.ZP.get("确认"),1===Ee.isDisabled?c.ZP.get("启用"):c.ZP.get("禁用"),c.ZP.get("定时任务")," ",(0,D.jsx)(F,{style:{wordBreak:"break-all"},type:"warning",children:Ee.name})," ",c.ZP.get("吗")]}),onOk:function(){k.W.put("".concat(E.Z.apiPrefix,"crons/").concat(1===Ee.isDisabled?"enable":"disable"),[Ee.id]).then((function(e){var n=e.code;e.data;200===n&&Oe(r()(r()({},Ee),{},{isDisabled:1===Ee.isDisabled?0:1}))}))},onCancel:function(){console.log("Cancel")}})}})}),(0,D.jsx)(h.Z,{title:1===Ee.isPinned?c.ZP.get("取消置顶"):c.ZP.get("置顶"),children:(0,D.jsx)(g.Z,{type:"link",icon:(0,D.jsx)(M.Z,{type:1===Ee.isPinned?"ql-icon-untop":"ql-icon-top"}),size:"small",onClick:function(){d.Z.confirm({title:"确认".concat(1===Ee.isPinned?c.ZP.get("取消置顶"):c.ZP.get("置顶")),content:(0,D.jsxs)(D.Fragment,{children:[c.ZP.get("确认"),1===Ee.isPinned?c.ZP.get("取消置顶"):c.ZP.get("置顶"),c.ZP.get("定时任务")," ",(0,D.jsx)(F,{style:{wordBreak:"break-all"},type:"warning",children:Ee.name})," ",c.ZP.get("吗")]}),onOk:function(){k.W.put("".concat(E.Z.apiPrefix,"crons/").concat(1===Ee.isPinned?"unpin":"pin"),[Ee.id]).then((function(e){var n=e.code;e.data;200===n&&Oe(r()(r()({},Ee),{},{isPinned:1===Ee.isPinned?0:1}))}))},onCancel:function(){console.log("Cancel")}})}})})]})]}),centered:!0,open:I,forceRender:!0,footer:!1,onCancel:function(){return z()},wrapClassName:"crontab-detail",width:L?"":"80vw",children:[(0,D.jsxs)("div",{className:"card-wrapper",children:[(0,D.jsx)(Z.Z,{children:(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("任务")}),(0,D.jsx)("div",{className:"cron-detail-info-value",children:Ee.command})]})}),(0,D.jsxs)(Z.Z,{style:{marginTop:10},children:[(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("状态")}),(0,D.jsxs)("div",{className:"cron-detail-info-value",children:[(!Ee.isDisabled||Ee.status!==S.CrontabStatus.idle)&&(0,D.jsxs)(D.Fragment,{children:[Ee.status===S.CrontabStatus.idle&&(0,D.jsx)(p.Z,{icon:(0,D.jsx)(b.Z,{}),color:"default",children:c.ZP.get("空闲中")}),Ee.status===S.CrontabStatus.running&&(0,D.jsx)(p.Z,{icon:(0,D.jsx)(j.Z,{spin:!0}),color:"processing",children:c.ZP.get("运行中")}),Ee.status===S.CrontabStatus.queued&&(0,D.jsx)(p.Z,{icon:(0,D.jsx)(P.Z,{}),color:"default",children:c.ZP.get("队列中")})]}),1===Ee.isDisabled&&Ee.status===S.CrontabStatus.idle&&(0,D.jsx)(p.Z,{icon:(0,D.jsx)(C.Z,{}),color:"error",children:c.ZP.get("已禁用")})]})]}),(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("定时")}),(0,D.jsxs)("div",{className:"cron-detail-info-value",children:[(0,D.jsx)("div",{children:Ee.schedule}),null===(a=Ee.extra_schedules)||void 0===a?void 0:a.map((function(e){return(0,D.jsx)("div",{children:e.schedule},e.schedule)}))]})]}),(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("最后运行时间")}),(0,D.jsx)("div",{className:"cron-detail-info-value",children:Ee.last_execution_time?A()(1e3*Ee.last_execution_time).format("YYYY-MM-DD HH:mm:ss"):"-"})]}),(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("最后运行时长")}),(0,D.jsx)("div",{className:"cron-detail-info-value",children:Ee.last_running_time?(0,N.E)(Ee.last_running_time):"-"})]}),(0,D.jsxs)("div",{className:"cron-detail-info-item",children:[(0,D.jsx)("div",{className:"cron-detail-info-title",children:c.ZP.get("下次运行时间")}),(0,D.jsx)("div",{className:"cron-detail-info-value",children:Ee.nextRunTime&&A()(Ee.nextRunTime).format("YYYY-MM-DD HH:mm:ss")})]})]}),(0,D.jsx)(Z.Z,{style:{marginTop:10},tabList:we,activeTabKey:K,onTabChange:function(e){!function(e){U(e)}(e)},tabBarExtraContent:"script"===K&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(g.Z,{type:"primary",style:{marginRight:8},onClick:function(){d.Z.confirm({title:"确认保存",content:(0,D.jsxs)(D.Fragment,{children:[c.ZP.get("确认保存文件"),(0,D.jsx)(F,{style:{wordBreak:"break-all"},type:"warning",children:Ze.filename})," ",c.ZP.get(",保存后不可恢复")]}),onOk:function(){var e=pe.current?pe.current.getValue().replace(/\r\n/g,"\n"):le;return new Promise((function(n,t){k.W.put("".concat(E.Z.apiPrefix,"scripts"),{filename:Ze.filename,path:Ze.parent||"",content:e}).then((function(t){var i=t.code;t.data;200===i&&(se(e),f.ZP.success("保存成功")),n(null)})).catch((function(e){return t(e)}))}))},onCancel:function(){console.log("Cancel")}})},children:c.ZP.get("保存")}),(0,D.jsx)(g.Z,{type:"primary",icon:(0,D.jsx)(w.Z,{}),onClick:function(){var e;null===(e=pe.current._domElement.parentElement)||void 0===e||e.requestFullscreen()}})]}),children:Re[K]})]}),(0,D.jsx)(O.default,{visible:fe,handleCancel:function(){me(!1)},cron:q,data:re,logUrl:be})]})}},33680:function(e,n,t){t.r(n);var i=t(54306),r=t.n(i),a=t(88265),o=t(63313),c=t(89065),l=t(92260),s=t(84163),u=t(24378),d=t(57229),f=t(15207),m=t(65601),p=t(38101),h=t(4574),g=t(40141),Z=t(99120),v=t.n(Z),x=t(11527);c.Z.Countdown;n.default=function(e){var n=e.cron,t=e.handleCancel,i=e.visible,c=e.data,Z=e.logUrl,y=(0,o.useState)(a.ZP.get("启动中...")),b=r()(y,2),j=b[0],P=b[1],C=(0,o.useState)(!0),w=r()(C,2),S=w[0],N=w[1],k=(0,o.useState)(!0),E=r()(k,2),O=E[0],B=E[1],M=(0,o.useState)(!1),R=r()(M,2),_=R[0],T=R[1],q=(0,o.useRef)({value:0,down:!0}),A=Z||String(null==n?void 0:n.id),D=function e(t){t&&N(!0),d.W.get(Z||"".concat(f.Z.apiPrefix,"crons/").concat(n.id,"/log")).then((function(n){var t=n.code,i=n.data;if(200===t&&localStorage.getItem("logCron")===A&&i!==j){var r=i;P(r||a.ZP.get("暂无日志"));var o=Boolean(r&&!(0,g.x$)(r)&&!r.includes("任务未运行"));o||(0,g.x$)(j)||j===a.ZP.get("启动中...")||setTimeout((function(){F()})),B(o),o&&setTimeout((function(){F(),e()}),2e3)}})).finally((function(){t&&N(!1)}))},F=function(){q.current.down&&setTimeout((function(){document.querySelector("#log-flag").scrollIntoView({behavior:"smooth"})}),600)},H=function(){localStorage.removeItem("logCron"),t()};return(0,o.useEffect)((function(){n&&n.id&&i&&(D(!0),q.current.down=!0)}),[n,i]),(0,o.useEffect)((function(){c&&P(c)}),[c]),(0,o.useEffect)((function(){T(document.body.clientWidth<768)}),[]),(0,x.jsx)(s.Z,{title:(0,x.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(O||S)&&(0,x.jsx)(m.Z,{spin:!0}),!O&&!S&&(0,x.jsx)(p.Z,{}),(0,x.jsx)(l.Z.Text,{ellipsis:!0,style:{marginLeft:5},children:n&&n.name})]}),open:i,centered:!0,className:"log-modal",forceRender:!0,onOk:function(){return H()},onCancel:function(){return H()},footer:[(0,x.jsx)(u.Z,{type:"primary",onClick:function(){return H()},children:a.ZP.get("知道了")})],children:(0,x.jsxs)("div",{onScroll:function(e){var n=e.target.scrollTop;q.current.down&&(q.current={value:n,down:n-q.current.value>-5||!n})},className:"log-container",children:[S?(0,x.jsx)(h.Z,{}):(0,x.jsx)("pre",{style:_?{fontFamily:"Source Code Pro",zoom:.83}:{},children:(0,x.jsx)(v(),{children:j})}),(0,x.jsx)("div",{id:"log-flag"})]})})}},91350:function(e,n,t){t.r(n),t.d(n,{CrontabStatus:function(){return i},OperationName:function(){return r},OperationPath:function(){return a}});var i=function(e){return e[e.running=0]="running",e[e.queued=.5]="queued",e[e.idle=1]="idle",e[e.disabled=2]="disabled",e}({}),r=function(e){return e[e["启用"]=0]="启用",e[e["禁用"]=1]="禁用",e[e["运行"]=2]="运行",e[e["停止"]=3]="停止",e[e["置顶"]=4]="置顶",e[e["取消置顶"]=5]="取消置顶",e}({}),a=function(e){return e[e.enable=0]="enable",e[e.disable=1]="disable",e[e.run=2]="run",e[e.stop=3]="stop",e[e.pin=4]="pin",e[e.unpin=5]="unpin",e}({})},87423:function(e,n,t){function i(e){var n=1e3*e,t=Math.floor(n/864e5),i=n%864e5,r=Math.floor(i/36e5),a=i%36e5,o=Math.floor(a/6e4),c=a%6e4,l=Math.round(c/1e3)+"秒";return o>0&&(l=o+"分"+l),r>0&&(l=r+"小时"+l),t>0&&(l=t+"天"+l),l}t.d(n,{E:function(){return i}})},52105:function(e,n,t){var i=t(41171),r=t(63313),a=t(68098);n.Z=function(){var e=r.useState(!1),n=(0,i.Z)(e,2),t=n[0],o=n[1];return r.useEffect((function(){o((0,a.fk)())}),[]),t}},11847:function(e,n,t){t.d(n,{c4:function(){return a}});var i=t(22481),r=t(88028),a=["xxl","xl","lg","md","sm","xs"],o={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},c=new Map,l=-1,s={},u={matchHandlers:{},dispatch:function(e){return s=e,c.forEach((function(e){return e(s)})),c.size>=1},subscribe:function(e){return c.size||this.register(),l+=1,c.set(l,e),e(s),l},unsubscribe:function(e){c.delete(e),c.size||this.unregister()},unregister:function(){var e=this;Object.keys(o).forEach((function(n){var t=o[n],i=e.matchHandlers[t];null==i||i.mql.removeListener(null==i?void 0:i.listener)})),c.clear()},register:function(){var e=this;Object.keys(o).forEach((function(n){var t=o[n],a=function(t){var a=t.matches;e.dispatch((0,r.Z)((0,r.Z)({},s),(0,i.Z)({},n,a)))},c=window.matchMedia(t);c.addListener(a),e.matchHandlers[t]={mql:c,listener:a},a(c)}))}};n.ZP=u},66216:function(e,n,t){var i=t(63313),r=(0,i.createContext)({});n.Z=r},40630:function(e,n,t){var i=t(22481),r=t(88028),a=t(69947),o=t(84875),c=t.n(o),l=t(63313),s=t(82259),u=t(66216),d=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t};var f=["xs","sm","md","lg","xl","xxl"],m=l.forwardRef((function(e,n){var t,o=l.useContext(s.E_),m=o.getPrefixCls,p=o.direction,h=l.useContext(u.Z),g=h.gutter,Z=h.wrap,v=h.supportFlexGap,x=e.prefixCls,y=e.span,b=e.order,j=e.offset,P=e.push,C=e.pull,w=e.className,S=e.children,N=e.flex,k=e.style,E=d(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),O=m("col",x),B={};f.forEach((function(n){var t,o={},c=e[n];"number"==typeof c?o.span=c:"object"===(0,a.Z)(c)&&(o=c||{}),delete E[n],B=(0,r.Z)((0,r.Z)({},B),(t={},(0,i.Z)(t,"".concat(O,"-").concat(n,"-").concat(o.span),void 0!==o.span),(0,i.Z)(t,"".concat(O,"-").concat(n,"-order-").concat(o.order),o.order||0===o.order),(0,i.Z)(t,"".concat(O,"-").concat(n,"-offset-").concat(o.offset),o.offset||0===o.offset),(0,i.Z)(t,"".concat(O,"-").concat(n,"-push-").concat(o.push),o.push||0===o.push),(0,i.Z)(t,"".concat(O,"-").concat(n,"-pull-").concat(o.pull),o.pull||0===o.pull),(0,i.Z)(t,"".concat(O,"-rtl"),"rtl"===p),t))}));var M=c()(O,(t={},(0,i.Z)(t,"".concat(O,"-").concat(y),void 0!==y),(0,i.Z)(t,"".concat(O,"-order-").concat(b),b),(0,i.Z)(t,"".concat(O,"-offset-").concat(j),j),(0,i.Z)(t,"".concat(O,"-push-").concat(P),P),(0,i.Z)(t,"".concat(O,"-pull-").concat(C),C),t),w,B),R={};if(g&&g[0]>0){var _=g[0]/2;R.paddingLeft=_,R.paddingRight=_}if(g&&g[1]>0&&!v){var T=g[1]/2;R.paddingTop=T,R.paddingBottom=T}return N&&(R.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(N),!1!==Z||R.minWidth||(R.minWidth=0)),l.createElement("div",(0,r.Z)({},E,{style:(0,r.Z)((0,r.Z)({},R),k),className:M,ref:n}),S)}));n.Z=m},19698:function(e,n,t){var i=t(88028),r=t(22481),a=t(69947),o=t(41171),c=t(84875),l=t.n(c),s=t(63313),u=t(82259),d=t(52105),f=t(11847),m=t(20341),p=t(66216),h=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t};(0,m.b)("top","middle","bottom","stretch"),(0,m.b)("start","end","center","space-around","space-between","space-evenly");function g(e,n){var t=s.useState("string"==typeof e?e:""),i=(0,o.Z)(t,2),r=i[0],c=i[1];return s.useEffect((function(){!function(){if("string"==typeof e&&c(e),"object"===(0,a.Z)(e))for(var t=0;t<f.c4.length;t++){var i=f.c4[t];if(n[i]){var r=e[i];if(void 0!==r)return void c(r)}}}()}),[JSON.stringify(e),n]),r}var Z=s.forwardRef((function(e,n){var t,c=e.prefixCls,m=e.justify,Z=e.align,v=e.className,x=e.style,y=e.children,b=e.gutter,j=void 0===b?0:b,P=e.wrap,C=h(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),w=s.useContext(u.E_),S=w.getPrefixCls,N=w.direction,k=s.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),E=(0,o.Z)(k,2),O=E[0],B=E[1],M=s.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),R=(0,o.Z)(M,2),_=R[0],T=R[1],q=g(Z,_),A=g(m,_),D=(0,d.Z)(),F=s.useRef(j);s.useEffect((function(){var e=f.ZP.subscribe((function(e){T(e);var n=F.current||0;(!Array.isArray(n)&&"object"===(0,a.Z)(n)||Array.isArray(n)&&("object"===(0,a.Z)(n[0])||"object"===(0,a.Z)(n[1])))&&B(e)}));return function(){return f.ZP.unsubscribe(e)}}),[]);var H,z=S("row",c),I=(H=[void 0,void 0],(Array.isArray(j)?j:[j,void 0]).forEach((function(e,n){if("object"===(0,a.Z)(e))for(var t=0;t<f.c4.length;t++){var i=f.c4[t];if(O[i]&&void 0!==e[i]){H[n]=e[i];break}}else H[n]=e})),H),W=l()(z,(t={},(0,r.Z)(t,"".concat(z,"-no-wrap"),!1===P),(0,r.Z)(t,"".concat(z,"-").concat(A),A),(0,r.Z)(t,"".concat(z,"-").concat(q),q),(0,r.Z)(t,"".concat(z,"-rtl"),"rtl"===N),t),v),L={},Y=null!=I[0]&&I[0]>0?I[0]/-2:void 0,V=null!=I[1]&&I[1]>0?I[1]/-2:void 0;if(Y&&(L.marginLeft=Y,L.marginRight=Y),D){var K=(0,o.Z)(I,2);L.rowGap=K[1]}else V&&(L.marginTop=V,L.marginBottom=V);var U=(0,o.Z)(I,2),$=U[0],G=U[1],J=s.useMemo((function(){return{gutter:[$,G],wrap:P,supportFlexGap:D}}),[$,G,P,D]);return s.createElement(p.Z.Provider,{value:J},s.createElement("div",(0,i.Z)({},C,{className:W,style:(0,i.Z)((0,i.Z)({},L),x),ref:n}),y))}));n.Z=Z}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4473,5812,833,419],{38582:function(e,t,n){"use strict";var i=(0,n(55258).Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_ob5y15ewlyq.js"]});t.Z=i},9839:function(e,t,n){"use strict";var i=n(54306),r=n.n(i),a=n(63313),o=n(61761),l=n(40141);t.Z=function(e,t){var n=(0,a.useState)(0),i=r()(n,2),s=i[0],c=i[1];return(0,o.Z)(e,(function(e){var n=e.target;n.classList.contains("ant-table-wrapper")||(n=e.target.querySelector(".ant-table-wrapper")),c((0,l.W9)({extraHeight:t,target:n}))})),s}},74385:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return L}});var i=n(57213),r=n.n(i),a=n(54306),o=n.n(a),l=n(88265),s=n(63313),c=n(92260),u=n(64865),d=n(84163),g=n(9835),f=n(394),p=n(51704),m=n(15367),h=n(24378),Z=n(1953),x=n(25265),v=n(44968),P=n(69685),b=n(20209),y=n(65601),j=n(7688),w=n(76657),k=n(3563),C=n(91350),S=n(87423),_=n(57229),q=n(15207),R=n(33680),B=n(82755),I=n(38582),N=n(40141),D=n(29030),W=n(61761),E=n(52053),O=n.n(E),T=n(11527),F=c.Z.Text,z=[{key:"log",tab:l.ZP.get("日志")},{key:"script",tab:l.ZP.get("脚本")}],L=function(e){var t,n,i,a,c=e.cron,E=void 0===c?{}:c,L=e.handleCancel,M=e.visible,H=e.theme,V=e.isPhone,A=(0,s.useState)("log"),K=o()(A,2),Y=K[0],U=K[1],Q=(0,s.useState)(!0),X=o()(Q,2),G=(X[0],X[1]),$=(0,s.useState)([]),J=o()($,2),ee=J[0],te=J[1],ne=(0,s.useState)(""),ie=o()(ne,2),re=ie[0],ae=ie[1],oe=(0,s.useState)(""),le=o()(oe,2),se=le[0],ce=le[1],ue=(0,s.useState)(!1),de=o()(ue,2),ge=de[0],fe=de[1],pe=(0,s.useRef)(null),me=(0,s.useState)({}),he=o()(me,2),Ze=he[0],xe=he[1],ve=(0,s.useState)(""),Pe=o()(ve,2),be=Pe[0],ye=Pe[1],je=(0,s.useState)(z),we=o()(je,2),ke=we[0],Ce=we[1],Se=(0,s.useState)({}),_e=o()(Se,2),qe=_e[0],Re=_e[1],Be=(0,s.useRef)(null),Ie=function(e){var t=(0,s.useState)(0),n=o()(t,2),i=n[0],r=n[1];return(0,W.Z)(e,(function(e){var t=e.target.clientHeight;i!==t&&r(t)})),i}(Be),Ne={log:(0,T.jsx)("div",{ref:Be,children:(0,T.jsx)(u.ZP,{children:(0,T.jsx)(D.Z,{data:ee,height:Ie,itemHeight:47,itemKey:"filename",children:function(e){return(0,T.jsxs)(u.ZP.Item,{className:"log-item",onClick:function(){return De(e)},children:[(0,T.jsx)(x.Z,{style:{marginRight:10}}),e.directory,"/",e.filename]})}})})}),script:Ze.filename&&(0,T.jsx)(B.ZP,{language:(0,N.H$)(Ze.filename),theme:H,value:se,options:{fontSize:12,lineNumbersMinChars:3,fontFamily:"Source Code Pro",glyphMargin:!1,wordWrap:"on"},onMount:function(e,t){pe.current=e}})},De=function(e){var t="".concat(q.Z.apiPrefix,"logs/").concat(e.filename,"?path=").concat(e.directory||"");localStorage.setItem("logCron",t),ye(t),_.W.get("".concat(q.Z.apiPrefix,"logs/").concat(e.filename,"?path=").concat(e.directory||"")).then((function(e){var t=e.code,n=e.data;200===t&&(ae(n),fe(!0))}))},We=function(){G(!0),_.W.get("".concat(q.Z.apiPrefix,"crons/").concat(E.id,"/logs")).then((function(e){var t=e.code,n=e.data;200===t&&te(n)})).finally((function(){return G(!1)}))};return(0,s.useEffect)((function(){E&&E.id&&(Re(E),We(),function(){var e=(0,N.FA)(E.command);if(Array.isArray(e)){Ce(ke);var t=o()(e,2),n=t[0],i=t[1];xe({parent:i,filename:n}),_.W.get("".concat(q.Z.apiPrefix,"scripts/").concat(n,"?path=").concat(i||"")).then((function(e){var t=e.code,n=e.data;200===t&&ce(n)}))}else e&&Ce([ke[0]])}())}),[E]),(0,T.jsxs)(d.Z,{title:(0,T.jsxs)("div",{className:"crontab-title-wrapper",children:[(0,T.jsxs)("div",{children:[(0,T.jsx)("span",{children:qe.name}),(null===(t=qe.labels)||void 0===t?void 0:t.length)>0&&""!==qe.labels[0]&&(0,T.jsx)(f.Z,{type:"vertical"}),(null===(n=qe.labels)||void 0===n?void 0:n.length)>0&&""!==qe.labels[0]&&(null===(i=qe.labels)||void 0===i?void 0:i.map((function(e,t){return(0,T.jsx)(p.Z,{color:"blue",style:{marginRight:5},children:e},e)})))]}),(0,T.jsxs)("div",{className:"operations",children:[(0,T.jsx)(m.Z,{title:qe.status===C.CrontabStatus.idle?l.ZP.get("运行"):l.ZP.get("停止"),children:(0,T.jsx)(h.Z,{type:"link",icon:qe.status===C.CrontabStatus.idle?(0,T.jsx)(v.Z,{}):(0,T.jsx)(P.Z,{}),size:"small",onClick:qe.status===C.CrontabStatus.idle?function(){d.Z.confirm({title:l.ZP.get("确认运行"),content:(0,T.jsxs)(T.Fragment,{children:[l.ZP.get("确认运行定时任务")," ",(0,T.jsx)(F,{style:{wordBreak:"break-all"},type:"warning",children:qe.name})," ",l.ZP.get("吗")]}),onOk:function(){_.W.put("".concat(q.Z.apiPrefix,"crons/run"),[qe.id]).then((function(e){var t=e.code;e.data;200===t&&(Re(r()(r()({},qe),{},{status:C.CrontabStatus.running})),setTimeout((function(){We()}),1e3))}))},onCancel:function(){console.log("Cancel")}})}:function(){d.Z.confirm({title:l.ZP.get("确认停止"),content:(0,T.jsxs)(T.Fragment,{children:[l.ZP.get("确认停止定时任务")," ",(0,T.jsx)(F,{style:{wordBreak:"break-all"},type:"warning",children:qe.name})," ",l.ZP.get("吗")]}),onOk:function(){_.W.put("".concat(q.Z.apiPrefix,"crons/stop"),[qe.id]).then((function(e){var t=e.code;e.data;200===t&&Re(r()(r()({},qe),{},{status:C.CrontabStatus.idle}))}))},onCancel:function(){console.log("Cancel")}})}})}),(0,T.jsx)(m.Z,{title:1===qe.isDisabled?l.ZP.get("启用"):l.ZP.get("禁用"),children:(0,T.jsx)(h.Z,{type:"link",icon:(0,T.jsx)(I.Z,{type:1===qe.isDisabled?"ql-icon-enable":"ql-icon-disable"}),size:"small",onClick:function(){d.Z.confirm({title:"确认".concat(1===qe.isDisabled?l.ZP.get("启用"):l.ZP.get("禁用")),content:(0,T.jsxs)(T.Fragment,{children:[l.ZP.get("确认"),1===qe.isDisabled?l.ZP.get("启用"):l.ZP.get("禁用"),l.ZP.get("定时任务")," ",(0,T.jsx)(F,{style:{wordBreak:"break-all"},type:"warning",children:qe.name})," ",l.ZP.get("吗")]}),onOk:function(){_.W.put("".concat(q.Z.apiPrefix,"crons/").concat(1===qe.isDisabled?"enable":"disable"),[qe.id]).then((function(e){var t=e.code;e.data;200===t&&Re(r()(r()({},qe),{},{isDisabled:1===qe.isDisabled?0:1}))}))},onCancel:function(){console.log("Cancel")}})}})}),(0,T.jsx)(m.Z,{title:1===qe.isPinned?l.ZP.get("取消置顶"):l.ZP.get("置顶"),children:(0,T.jsx)(h.Z,{type:"link",icon:(0,T.jsx)(I.Z,{type:1===qe.isPinned?"ql-icon-untop":"ql-icon-top"}),size:"small",onClick:function(){d.Z.confirm({title:"确认".concat(1===qe.isPinned?l.ZP.get("取消置顶"):l.ZP.get("置顶")),content:(0,T.jsxs)(T.Fragment,{children:[l.ZP.get("确认"),1===qe.isPinned?l.ZP.get("取消置顶"):l.ZP.get("置顶"),l.ZP.get("定时任务")," ",(0,T.jsx)(F,{style:{wordBreak:"break-all"},type:"warning",children:qe.name})," ",l.ZP.get("吗")]}),onOk:function(){_.W.put("".concat(q.Z.apiPrefix,"crons/").concat(1===qe.isPinned?"unpin":"pin"),[qe.id]).then((function(e){var t=e.code;e.data;200===t&&Re(r()(r()({},qe),{},{isPinned:1===qe.isPinned?0:1}))}))},onCancel:function(){console.log("Cancel")}})}})})]})]}),centered:!0,open:M,forceRender:!0,footer:!1,onCancel:function(){return L()},wrapClassName:"crontab-detail",width:V?"":"80vw",children:[(0,T.jsxs)("div",{className:"card-wrapper",children:[(0,T.jsx)(Z.Z,{children:(0,T.jsxs)("div",{className:"cron-detail-info-item",children:[(0,T.jsx)("div",{className:"cron-detail-info-title",children:l.ZP.get("任务")}),(0,T.jsx)("div",{className:"cron-detail-info-value",children:qe.command})]})}),(0,T.jsxs)(Z.Z,{style:{marginTop:10},children:[(0,T.jsxs)("div",{className:"cron-detail-info-item",children:[(0,T.jsx)("div",{className:"cron-detail-info-title",children:l.ZP.get("状态")}),(0,T.jsxs)("div",{className:"cron-detail-info-value",children:[(!qe.isDisabled||qe.status!==C.CrontabStatus.idle)&&(0,T.jsxs)(T.Fragment,{children:[qe.status===C.CrontabStatus.idle&&(0,T.jsx)(p.Z,{icon:(0,T.jsx)(b.Z,{}),color:"default",children:l.ZP.get("空闲中")}),qe.status===C.CrontabStatus.running&&(0,T.jsx)(p.Z,{icon:(0,T.jsx)(y.Z,{spin:!0}),color:"processing",children:l.ZP.get("运行中")}),qe.status===C.CrontabStatus.queued&&(0,T.jsx)(p.Z,{icon:(0,T.jsx)(j.Z,{}),color:"default",children:l.ZP.get("队列中")})]}),1===qe.isDisabled&&qe.status===C.CrontabStatus.idle&&(0,T.jsx)(p.Z,{icon:(0,T.jsx)(w.Z,{}),color:"error",children:l.ZP.get("已禁用")})]})]}),(0,T.jsxs)("div",{className:"cron-detail-info-item",children:[(0,T.jsx)("div",{className:"cron-detail-info-title",children:l.ZP.get("定时")}),(0,T.jsxs)("div",{className:"cron-detail-info-value",children:[(0,T.jsx)("div",{children:qe.schedule}),null===(a=qe.extra_schedules)||void 0===a?void 0:a.map((function(e){return(0,T.jsx)("div",{children:e.schedule},e.schedule)}))]})]}),(0,T.jsxs)("div",{className:"cron-detail-info-item",children:[(0,T.jsx)("div",{className:"cron-detail-info-title",children:l.ZP.get("最后运行时间")}),(0,T.jsx)("div",{className:"cron-detail-info-value",children:qe.last_execution_time?O()(1e3*qe.last_execution_time).format("YYYY-MM-DD HH:mm:ss"):"-"})]}),(0,T.jsxs)("div",{className:"cron-detail-info-item",children:[(0,T.jsx)("div",{className:"cron-detail-info-title",children:l.ZP.get("最后运行时长")}),(0,T.jsx)("div",{className:"cron-detail-info-value",children:qe.last_running_time?(0,S.E)(qe.last_running_time):"-"})]}),(0,T.jsxs)("div",{className:"cron-detail-info-item",children:[(0,T.jsx)("div",{className:"cron-detail-info-title",children:l.ZP.get("下次运行时间")}),(0,T.jsx)("div",{className:"cron-detail-info-value",children:qe.nextRunTime&&O()(qe.nextRunTime).format("YYYY-MM-DD HH:mm:ss")})]})]}),(0,T.jsx)(Z.Z,{style:{marginTop:10},tabList:ke,activeTabKey:Y,onTabChange:function(e){!function(e){U(e)}(e)},tabBarExtraContent:"script"===Y&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(h.Z,{type:"primary",style:{marginRight:8},onClick:function(){d.Z.confirm({title:"确认保存",content:(0,T.jsxs)(T.Fragment,{children:[l.ZP.get("确认保存文件"),(0,T.jsx)(F,{style:{wordBreak:"break-all"},type:"warning",children:Ze.filename})," ",l.ZP.get(",保存后不可恢复")]}),onOk:function(){var e=pe.current?pe.current.getValue().replace(/\r\n/g,"\n"):se;return new Promise((function(t,n){_.W.put("".concat(q.Z.apiPrefix,"scripts"),{filename:Ze.filename,path:Ze.parent||"",content:e}).then((function(n){var i=n.code;n.data;200===i&&(ce(e),g.ZP.success("保存成功")),t(null)})).catch((function(e){return n(e)}))}))},onCancel:function(){console.log("Cancel")}})},children:l.ZP.get("保存")}),(0,T.jsx)(h.Z,{type:"primary",icon:(0,T.jsx)(k.Z,{}),onClick:function(){var e;null===(e=pe.current._domElement.parentElement)||void 0===e||e.requestFullscreen()}})]}),children:Ne[Y]})]}),(0,T.jsx)(R.default,{visible:ge,handleCancel:function(){fe(!1)},cron:E,data:re,logUrl:be})]})}},62520:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return oe}});var i=n(93525),r=n.n(i),a=n(54306),o=n.n(a),l=n(57213),s=n.n(l),c=n(88265),u=n(63313),d=n(92260),g=n(22159),f=n(51704),p=n(2947),m=n(84163),h=n(9835),Z=n(34133),x=n(24378),v=n(86986),P=n(94674),b=n(20209),y=n(65601),j=n(7688),w=n(76657),k=n(32132),C=n(38101),S=n(23421),_=n(13740),q=n(43114),R=n(23831),B=n(59673),I=n(61327),N=n(26839),D=n(68834),W=n(99604),E=n(15207),O=n(23435),T=n(57229),F=n(70684),z=n(33680),L=n(74385),M=n(87423),H=n(14851),V=n(10419),A=n(3038),K=n(9839),Y=n(40141),U=n(33503),Q=n(91350),X=n(19631),G=n(27705),$=n(11527);function J(e){var t,n=e.service,i=e.options,r=(0,X.Z)(n,i),a=r.loading,o=r.data;return(0,$.jsx)(G.Z,{spinning:a,children:(0,$.jsx)(d.Z.Text,{ellipsis:!0,children:null==o||null===(t=o.data)||void 0===t?void 0:t.name})})}var ee=n(52053),te=n.n(ee),ne=d.Z.Text,ie=d.Z.Paragraph,re=d.Z.Link,ae=g.Z.Search,oe=function(){var e=(0,H.useOutletContext)(),t=e.headerStyle,n=e.isPhone,i=e.theme,a=[{title:c.ZP.get("名称"),dataIndex:"name",key:"name",fixed:"left",width:120,render:function(e,t){return(0,$.jsx)(ie,{style:{wordBreak:"break-all",marginBottom:0,color:"#1890ff"},ellipsis:{tooltip:e,rows:2},children:(0,$.jsx)(re,{onClick:function(){Ge(t),Ye(!0)},children:t.name||"-"})})},sorter:{compare:function(e,t){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.localeCompare(null==t?void 0:t.name)}}},{title:c.ZP.get("命令/脚本"),dataIndex:"command",key:"command",width:240,render:function(e,t){return(0,$.jsx)(ie,{style:{wordBreak:"break-all",marginBottom:0},ellipsis:{tooltip:e,rows:2},children:(0,$.jsx)("a",{onClick:function(){It(t)},children:e})})},sorter:{compare:function(e,t){return e.command.localeCompare(t.command)}}},{title:c.ZP.get("状态"),key:"status",dataIndex:"status",width:100,filters:[{text:c.ZP.get("运行中"),value:Q.CrontabStatus.running},{text:c.ZP.get("空闲中"),value:Q.CrontabStatus.idle},{text:c.ZP.get("已禁用"),value:Q.CrontabStatus.disabled},{text:c.ZP.get("队列中"),value:Q.CrontabStatus.queued}],render:function(e,t){return(0,$.jsxs)($.Fragment,{children:[(!t.isDisabled||t.status!==Q.CrontabStatus.idle)&&(0,$.jsxs)($.Fragment,{children:[t.status===Q.CrontabStatus.idle&&(0,$.jsx)(f.Z,{icon:(0,$.jsx)(b.Z,{}),color:"default",children:c.ZP.get("空闲中")}),t.status===Q.CrontabStatus.running&&(0,$.jsx)(f.Z,{icon:(0,$.jsx)(y.Z,{spin:!0}),color:"processing",children:c.ZP.get("运行中")}),t.status===Q.CrontabStatus.queued&&(0,$.jsx)(f.Z,{icon:(0,$.jsx)(j.Z,{}),color:"default",children:c.ZP.get("队列中")})]}),1===t.isDisabled&&t.status===Q.CrontabStatus.idle&&(0,$.jsx)(f.Z,{icon:(0,$.jsx)(w.Z,{}),color:"error",children:c.ZP.get("已禁用")})]})}},{title:c.ZP.get("定时规则"),dataIndex:"schedule",key:"schedule",width:150,sorter:{compare:function(e,t){return e.schedule.localeCompare(t.schedule)}},render:function(e,t){var n;return(0,$.jsx)(ie,{style:{wordBreak:"break-all",marginBottom:0},ellipsis:{tooltip:{placement:"right",title:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)("div",{children:e}),null===(n=t.extra_schedules)||void 0===n?void 0:n.map((function(e){return(0,$.jsx)("div",{children:e.schedule},e.schedule)}))]})},rows:2},children:e})}},{title:c.ZP.get("最后运行时长"),width:167,dataIndex:"last_running_time",key:"last_running_time",sorter:{compare:function(e,t){return e.last_running_time-t.last_running_time}},render:function(e,t){return t.last_running_time?(0,M.E)(t.last_running_time):"-"}},{title:c.ZP.get("最后运行时间"),dataIndex:"last_execution_time",key:"last_execution_time",width:141,sorter:{compare:function(e,t){return(e.last_execution_time||0)-(t.last_execution_time||0)}},render:function(e,t){return(0,$.jsx)("span",{style:{display:"block"},children:t.last_execution_time?te()(1e3*t.last_execution_time).format("YYYY-MM-DD HH:mm:ss"):"-"})}},{title:c.ZP.get("下次运行时间"),width:144,sorter:{compare:function(e,t){return e.nextRunTime-t.nextRunTime}},render:function(e,t){return te()(t.nextRunTime).format("YYYY-MM-DD HH:mm:ss")}},{title:c.ZP.get("关联订阅"),width:185,render:function(e,t){return t.sub_id?(0,$.jsx)(J,{service:function(){return T.W.get("".concat(E.Z.apiPrefix,"subscriptions/").concat(t.sub_id))},options:{ready:null==t?void 0:t.sub_id,cacheKey:t.sub_id}}):"-"}},{title:c.ZP.get("操作"),key:"action",width:140,fixed:n?void 0:"right",render:function(e,t,n){return(0,$.jsxs)(p.Z,{size:"middle",children:[t.status===Q.CrontabStatus.idle&&(0,$.jsx)("a",{onClick:function(e){e.stopPropagation(),Dt(t,n)},children:c.ZP.get("运行")}),t.status!==Q.CrontabStatus.idle&&(0,$.jsx)("a",{onClick:function(e){e.stopPropagation(),Wt(t,n)},children:c.ZP.get("停止")}),(0,$.jsx)("a",{onClick:function(e){e.stopPropagation(),Be(s()(s()({},t),{},{timestamp:Date.now()}))},children:c.ZP.get("日志")}),(0,$.jsx)(Ot,{record:t,index:n},"more")]})}}],l=(0,u.useState)([]),d=o()(l,2),g=d[0],X=d[1],G=(0,u.useState)(!0),ee=o()(G,2),oe=ee[0],le=ee[1],se=(0,u.useState)(!1),ce=o()(se,2),ue=ce[0],de=ce[1],ge=(0,u.useState)(!1),fe=o()(ge,2),pe=fe[0],me=fe[1],he=(0,u.useState)(),Ze=o()(he,2),xe=Ze[0],ve=Ze[1],Pe=(0,u.useState)(""),be=o()(Pe,2),ye=be[0],je=be[1],we=(0,u.useState)(!1),ke=o()(we,2),Ce=ke[0],Se=ke[1],_e=(0,u.useState)(),qe=o()(_e,2),Re=qe[0],Be=qe[1],Ie=(0,u.useState)([]),Ne=o()(Ie,2),De=Ne[0],We=Ne[1],Ee=(0,u.useState)({}),Oe=o()(Ee,2),Te=Oe[0],Fe=Oe[1],ze=(0,u.useState)(),Le=o()(ze,2),Me=Le[0],He=Le[1],Ve=(0,u.useState)(!1),Ae=o()(Ve,2),Ke=Ae[0],Ye=Ae[1],Ue=(0,u.useState)(),Qe=o()(Ue,2),Xe=Qe[0],Ge=Qe[1],$e=(0,u.useState)(""),Je=o()($e,2),et=Je[0],tt=Je[1],nt=(0,u.useState)(),it=o()(nt,2),rt=it[0],at=it[1],ot=(0,u.useState)(!1),lt=o()(ot,2),st=lt[0],ct=lt[1],ut=(0,u.useState)(!1),dt=o()(ut,2),gt=dt[0],ft=dt[1],pt=(0,u.useState)([]),mt=o()(pt,2),ht=mt[0],Zt=mt[1],xt=(0,u.useState)([]),vt=o()(xt,2),Pt=vt[0],bt=vt[1],yt=(0,u.useState)(!1),jt=o()(yt,2),wt=jt[0],kt=jt[1],Ct=(0,u.useRef)(null),St=(0,K.Z)(Ct),_t=(0,u.useState)(""),qt=o()(_t,2),Rt=qt[0],Bt=qt[1],It=function(e){var t=(0,Y.FA)(e.command);if(Array.isArray(t)){var n=o()(t,2),i=n[0],r=n[1];H.history.push("/script?p=".concat(r,"&s=").concat(i))}else t&&(location.href=t)},Nt=function(){le(!0);var e=Te.page,t=Te.size,n=Te.sorter,i=Te.filters,r="".concat(E.Z.apiPrefix,"crons?searchValue=").concat(ye,"&page=").concat(e,"&size=").concat(t,"&filters=").concat(JSON.stringify(i));n&&n.column&&n.order&&(r+="&sorter=".concat(JSON.stringify({field:n.column.key,type:"ascend"===n.order?"ASC":"DESC"}))),Me&&(r+="&queryString=".concat(JSON.stringify({filters:Me.filters,sorts:Me.sorts,filterRelation:Me.filterRelation||"and"}))),T.W.get(r).then((function(e){var t=e.code,n=e.data;if(200===t){var i=n.data,r=n.total;X(i.map((function(e){return s()(s()({},e),{},{nextRunTime:(0,Y.rS)(e.schedule,e.extra_schedules)})}))),at(r)}})).finally((function(){return le(!1)}))},Dt=function(e,t){m.Z.confirm({title:c.ZP.get("确认运行"),content:(0,$.jsxs)($.Fragment,{children:[c.ZP.get("确认运行定时任务")," ",(0,$.jsx)(ne,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",c.ZP.get("吗")]}),onOk:function(){T.W.put("".concat(E.Z.apiPrefix,"crons/run"),[e.id]).then((function(t){var n=t.code;t.data;if(200===n){var i=r()(g),a=i.findIndex((function(t){return t.id===e.id}));-1!==a&&(i.splice(a,1,s()(s()({},e),{},{status:Q.CrontabStatus.running})),X(i))}}))},onCancel:function(){console.log("Cancel")}})},Wt=function(e,t){m.Z.confirm({title:c.ZP.get("确认停止"),content:(0,$.jsxs)($.Fragment,{children:[c.ZP.get("确认停止定时任务")," ",(0,$.jsx)(ne,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",c.ZP.get("吗")]}),onOk:function(){T.W.put("".concat(E.Z.apiPrefix,"crons/stop"),[e.id]).then((function(t){var n=t.code;t.data;if(200===n){var i=r()(g),a=i.findIndex((function(t){return t.id===e.id}));-1!==a&&(i.splice(a,1,s()(s()({},e),{},{pid:null,status:Q.CrontabStatus.idle})),X(i))}}))},onCancel:function(){console.log("Cancel")}})},Et=function(e){return[{label:c.ZP.get("编辑"),key:"edit",icon:(0,$.jsx)(k.Z,{})},{label:1===e.isDisabled?c.ZP.get("启用"):c.ZP.get("禁用"),key:"enableOrDisable",icon:1===e.isDisabled?(0,$.jsx)(C.Z,{}):(0,$.jsx)(S.Z,{})},{label:c.ZP.get("删除"),key:"delete",icon:(0,$.jsx)(_.Z,{})},{label:1===e.isPinned?c.ZP.get("取消置顶"):c.ZP.get("置顶"),key:"pinOrUnPin",icon:1===e.isPinned?(0,$.jsx)(S.Z,{}):(0,$.jsx)(q.Z,{})}]},Ot=function(e){var t=e.record,n=e.index;return(0,$.jsx)(Z.Z,{placement:"bottomRight",trigger:["click"],menu:{items:Et(t),onClick:function(e){var i=e.key;e.domEvent.stopPropagation(),Tt(i,t,n)}},children:(0,$.jsx)("a",{onClick:function(e){return e.stopPropagation()},children:(0,$.jsx)(R.Z,{})})})},Tt=function(e,t,n){switch(e){case"edit":!function(e,t){ve(e),de(!0)}(t);break;case"enableOrDisable":!function(e,t){m.Z.confirm({title:"确认".concat(1===e.isDisabled?c.ZP.get("启用"):c.ZP.get("禁用")),content:(0,$.jsxs)($.Fragment,{children:[c.ZP.get("确认"),1===e.isDisabled?c.ZP.get("启用"):c.ZP.get("禁用"),c.ZP.get("定时任务")," ",(0,$.jsx)(ne,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",c.ZP.get("吗")]}),onOk:function(){T.W.put("".concat(E.Z.apiPrefix,"crons/").concat(1===e.isDisabled?"enable":"disable"),[e.id]).then((function(t){var n=t.code;if(t.data,200===n){var i=1===e.isDisabled?0:1,a=r()(g),o=a.findIndex((function(t){return t.id===e.id}));-1!==o&&(a.splice(o,1,s()(s()({},e),{},{isDisabled:i})),X(a))}}))},onCancel:function(){console.log("Cancel")}})}(t);break;case"delete":!function(e,t){m.Z.confirm({title:c.ZP.get("确认删除"),content:(0,$.jsxs)($.Fragment,{children:[c.ZP.get("确认删除定时任务")," ",(0,$.jsx)(ne,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",c.ZP.get("吗")]}),onOk:function(){T.W.delete("".concat(E.Z.apiPrefix,"crons"),{data:[e.id]}).then((function(t){var n=t.code;if(t.data,200===n){h.ZP.success(c.ZP.get("删除成功"));var i=r()(g),a=i.findIndex((function(t){return t.id===e.id}));-1!==a&&(i.splice(a,1),X(i))}}))},onCancel:function(){console.log("Cancel")}})}(t);break;case"pinOrUnPin":!function(e,t){m.Z.confirm({title:"确认".concat(1===e.isPinned?c.ZP.get("取消置顶"):c.ZP.get("置顶")),content:(0,$.jsxs)($.Fragment,{children:[c.ZP.get("确认"),1===e.isPinned?c.ZP.get("取消置顶"):c.ZP.get("置顶"),c.ZP.get("定时任务")," ",(0,$.jsx)(ne,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",c.ZP.get("吗")]}),onOk:function(){T.W.put("".concat(E.Z.apiPrefix,"crons/").concat(1===e.isPinned?"unpin":"pin"),[e.id]).then((function(t){var n=t.code;if(t.data,200===n){var i=1===e.isPinned?0:1,a=r()(g),o=a.findIndex((function(t){return t.id===e.id}));-1!==o&&(a.splice(o,1,s()(s()({},e),{},{isPinned:i})),X(a))}}))},onCancel:function(){console.log("Cancel")}})}(t)}},Ft={selectedRowKeys:De,onChange:function(e){We(e)}},zt=function(e){m.Z.confirm({title:"确认".concat(Q.OperationName[e]),content:(0,$.jsxs)($.Fragment,{children:[c.ZP.get("确认"),Q.OperationName[e],c.ZP.get("选中的定时任务吗")]}),onOk:function(){T.W.put("".concat(E.Z.apiPrefix,"crons/").concat(Q.OperationPath[e]),De).then((function(e){var t=e.code;e.data;200===t&&Nt()}))},onCancel:function(){console.log("Cancel")}})};(0,u.useEffect)((function(){Re&&(localStorage.setItem("logCron",Re.id),Se(!0))}),[Re]),(0,u.useEffect)((function(){Fe(s()(s()({},Te),{},{page:1}))}),[ye]),(0,u.useEffect)((function(){Te.page&&Te.size&&Nt(),Me&&Me.id&&Bt(Me.id)}),[Te,Me]),(0,u.useEffect)((function(){if(Me&&Pt&&Pt.length>0){var e=Pt.slice(4).find((function(e){return e.id===Me.id}));kt(!!e)}}),[Me,Pt]),(0,u.useEffect)((function(){Mt()}),[]);var Lt={onClick:function(e){var t=e.key;e.domEvent.stopPropagation(),function(e){switch(e){case"new":ct(!0);break;case"manage":ft(!0);break;default:Ht(e)}}(t)},items:[].concat(r()(r()(Pt).slice(4).map((function(e){return{label:(0,$.jsxs)(p.Z,{style:{display:"flex",justifyContent:"space-between"},children:[(0,$.jsx)("span",{children:e.name}),(null==Me?void 0:Me.id)===e.id&&(0,$.jsx)(B.Z,{style:{color:"#1890ff"}})]}),key:e.id,icon:(0,$.jsx)(I.Z,{})}}))),[{type:"divider"},{label:c.ZP.get("创建视图"),key:"new",icon:(0,$.jsx)(N.Z,{})},{label:c.ZP.get("视图管理"),key:"manage",icon:(0,$.jsx)(D.Z,{})}])},Mt=function(){le(!0),T.W.get("".concat(E.Z.apiPrefix,"crons/views")).then((function(e){var t=e.code,n=e.data;if(200===t){Zt(n);var i=n.filter((function(e){return!e.isDisabled})).map((function(e){return s()(s()({},e),{},{name:"全部任务"===e.name?c.ZP.get("全部任务"):e.name})}));bt(i),Fe({page:1,size:parseInt(localStorage.getItem("pageSize")||"20"),sorter:{},filters:{}}),He(s()({},i[0]))}})).finally((function(){le(!1)}))},Ht=function(e){var t=Pt.find((function(t){return t.id==e}));We([]),Fe(s()(s()({},Te),{},{page:1})),He(t||null)},Vt=(0,U.u)((function(){return{scroll:{y:St}}}),[St]),At=o()(Vt,1)[0];return(0,$.jsxs)(O.ZP,{className:"ql-container-wrapper crontab-wrapper ql-container-wrapper-has-tab",title:c.ZP.get("定时任务"),extra:[(0,$.jsx)(ae,{placeholder:c.ZP.get("请输入名称或者关键词"),style:{width:"auto"},enterButton:!0,allowClear:!0,loading:oe,value:et,onChange:function(e){return tt(e.target.value)},onSearch:function(e){je(e.trim())}}),(0,$.jsx)(x.Z,{type:"primary",onClick:function(){return ve(null),void de(!0)},children:c.ZP.get("创建任务")},"2")],header:{style:t},children:[(0,$.jsx)(v.Z,{defaultActiveKey:"all",size:"small",activeKey:Rt,tabPosition:"top",className:"crontab-view ".concat(wt?"more-active":""),tabBarExtraContent:(0,$.jsx)(Z.Z,{menu:Lt,trigger:["click"],overlayStyle:{minWidth:200},children:(0,$.jsxs)("div",{className:"view-more ".concat(wt?"active":""),children:[(0,$.jsxs)(p.Z,{children:[c.ZP.get("更多"),(0,$.jsx)(W.Z,{})]}),(0,$.jsx)("div",{className:"ant-tabs-ink-bar ant-tabs-ink-bar-animated"})]})}),onTabClick:Ht,items:r()(r()(Pt).slice(0,4).map((function(e){return{key:e.id,label:e.name}})))}),(0,$.jsxs)("div",{ref:Ct,children:[De.length>0&&(0,$.jsxs)("div",{style:{marginBottom:16},children:[(0,$.jsx)(x.Z,{type:"primary",style:{marginBottom:5},onClick:function(){m.Z.confirm({title:c.ZP.get("确认删除"),content:(0,$.jsx)($.Fragment,{children:c.ZP.get("确认删除选中的定时任务吗")}),onOk:function(){T.W.delete("".concat(E.Z.apiPrefix,"crons"),{data:De}).then((function(e){var t=e.code;e.data;200===t&&(h.ZP.success(c.ZP.get("批量删除成功")),We([]),Nt())}))},onCancel:function(){console.log("Cancel")}})},children:c.ZP.get("批量删除")}),(0,$.jsx)(x.Z,{type:"primary",onClick:function(){return zt(0)},style:{marginLeft:8,marginBottom:5},children:c.ZP.get("批量启用")}),(0,$.jsx)(x.Z,{type:"primary",onClick:function(){return zt(1)},style:{marginLeft:8,marginRight:8},children:c.ZP.get("批量禁用")}),(0,$.jsx)(x.Z,{type:"primary",style:{marginRight:8},onClick:function(){return zt(2)},children:c.ZP.get("批量运行")}),(0,$.jsx)(x.Z,{type:"primary",onClick:function(){return zt(3)},children:c.ZP.get("批量停止")}),(0,$.jsx)(x.Z,{type:"primary",onClick:function(){return zt(4)},style:{marginLeft:8,marginRight:8},children:c.ZP.get("批量置顶")}),(0,$.jsx)(x.Z,{type:"primary",onClick:function(){return zt(5)},style:{marginLeft:8,marginRight:8},children:c.ZP.get("批量取消置顶")}),(0,$.jsx)(x.Z,{type:"primary",onClick:function(){return me(!0)},style:{marginLeft:8,marginRight:8},children:c.ZP.get("批量修改标签")}),(0,$.jsxs)("span",{style:{marginLeft:8},children:[c.ZP.get("已选择"),(0,$.jsx)("a",{children:null==De?void 0:De.length}),c.ZP.get("项")]})]}),(0,$.jsx)(P.Z,{columns:a,pagination:{current:Te.page,pageSize:Te.size,showSizeChanger:!0,simple:n,total:rt,showTotal:function(e,t){return"第 ".concat(t[0],"-").concat(t[1]," 条/总共 ").concat(e," 条")},pageSizeOptions:[10,20,50,100,200,500,rt||1e4].sort((function(e,t){return e-t}))},dataSource:g,rowKey:"id",size:"middle",scroll:{x:1200,y:St},loading:oe,rowSelection:Ft,rowClassName:function(e,t){return e.isPinned?"pinned-cron cron":"cron"},onChange:function(e,t,n){var i=e.current,r=e.pageSize;Fe({page:i,size:r,sorter:n,filters:t}),localStorage.setItem("pageSize",String(r))},components:n||Te.size<50?void 0:At})]}),(0,$.jsx)(z.default,{visible:Ce,handleCancel:function(){var e;e=Re,T.W.get("".concat(E.Z.apiPrefix,"crons/").concat(e.id)).then((function(t){var n=t.code,i=t.data;if(200===n){var a=g.findIndex((function(t){return t.id===e.id})),o=r()(g);i.nextRunTime=(0,Y.rS)(i.schedule,i.extra_schedules),-1!==a&&(o.splice(a,1,s()(s()({},e),i)),X(o))}})).finally((function(){return le(!1)})),Se(!1)},cron:Re}),(0,$.jsx)(F.default,{visible:ue,handleCancel:function(){de(!1),Nt()},cron:xe}),(0,$.jsx)(F.CronLabelModal,{visible:pe,handleCancel:function(e){me(!1),e&&Nt()},ids:De}),(0,$.jsx)(L.default,{visible:Ke,handleCancel:function(){Ye(!1)},cron:Xe,theme:i,isPhone:n}),(0,$.jsx)(V.default,{visible:st,handleCancel:function(e){ct(!1),Mt()}}),(0,$.jsx)(A.default,{cronViews:ht,visible:gt,handleCancel:function(){ft(!1)},cronViewChange:function(e){Mt()}})]})}},33680:function(e,t,n){"use strict";n.r(t);var i=n(54306),r=n.n(i),a=n(88265),o=n(63313),l=n(89065),s=n(92260),c=n(84163),u=n(24378),d=n(57229),g=n(15207),f=n(65601),p=n(38101),m=n(4574),h=n(40141),Z=n(99120),x=n.n(Z),v=n(11527);l.Z.Countdown;t.default=function(e){var t=e.cron,n=e.handleCancel,i=e.visible,l=e.data,Z=e.logUrl,P=(0,o.useState)(a.ZP.get("启动中...")),b=r()(P,2),y=b[0],j=b[1],w=(0,o.useState)(!0),k=r()(w,2),C=k[0],S=k[1],_=(0,o.useState)(!0),q=r()(_,2),R=q[0],B=q[1],I=(0,o.useState)(!1),N=r()(I,2),D=N[0],W=N[1],E=(0,o.useRef)({value:0,down:!0}),O=Z||String(null==t?void 0:t.id),T=function e(n){n&&S(!0),d.W.get(Z||"".concat(g.Z.apiPrefix,"crons/").concat(t.id,"/log")).then((function(t){var n=t.code,i=t.data;if(200===n&&localStorage.getItem("logCron")===O&&i!==y){var r=i;j(r||a.ZP.get("暂无日志"));var o=Boolean(r&&!(0,h.x$)(r)&&!r.includes("任务未运行"));o||(0,h.x$)(y)||y===a.ZP.get("启动中...")||setTimeout((function(){F()})),B(o),o&&setTimeout((function(){F(),e()}),2e3)}})).finally((function(){n&&S(!1)}))},F=function(){E.current.down&&setTimeout((function(){document.querySelector("#log-flag").scrollIntoView({behavior:"smooth"})}),600)},z=function(){localStorage.removeItem("logCron"),n()};return(0,o.useEffect)((function(){t&&t.id&&i&&(T(!0),E.current.down=!0)}),[t,i]),(0,o.useEffect)((function(){l&&j(l)}),[l]),(0,o.useEffect)((function(){W(document.body.clientWidth<768)}),[]),(0,v.jsx)(c.Z,{title:(0,v.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(R||C)&&(0,v.jsx)(f.Z,{spin:!0}),!R&&!C&&(0,v.jsx)(p.Z,{}),(0,v.jsx)(s.Z.Text,{ellipsis:!0,style:{marginLeft:5},children:t&&t.name})]}),open:i,centered:!0,className:"log-modal",forceRender:!0,onOk:function(){return z()},onCancel:function(){return z()},footer:[(0,v.jsx)(u.Z,{type:"primary",onClick:function(){return z()},children:a.ZP.get("知道了")})],children:(0,v.jsxs)("div",{onScroll:function(e){var t=e.target.scrollTop;E.current.down&&(E.current={value:t,down:t-E.current.value>-5||!t})},className:"log-container",children:[C?(0,v.jsx)(m.Z,{}):(0,v.jsx)("pre",{style:D?{fontFamily:"Source Code Pro",zoom:.83}:{},children:(0,v.jsx)(x(),{children:y})}),(0,v.jsx)("div",{id:"log-flag"})]})})}},70684:function(e,t,n){"use strict";n.r(t),n.d(t,{CronLabelModal:function(){return W},default:function(){return D}});var i=n(12342),r=n.n(i),a=n(25359),o=n.n(a),l=n(57213),s=n.n(l),c=n(49811),u=n.n(c),d=n(54306),g=n.n(d),f=n(88265),p=n(63313),m=n(67393),h=n(9835),Z=n(84163),x=n(22159),v=n(2947),P=n(24378),b=n(57229),y=n(15207),j=n(11186),w=n.n(j),k=n(93525),C=n.n(k),S=n(51704),_=n(8297),q=n(26839),R=n(11527),B=function(e){var t=e.value,n=e.onChange,i=(0,p.useState)(""),r=g()(i,2),a=r[0],o=r[1],l=(0,p.useState)(!1),s=g()(l,2),c=s[0],u=s[1],d=(0,p.useState)([]),m=g()(d,2),h=m[0],Z=m[1],v=(0,p.useRef)(),P=function(){a&&!h.includes(a)&&(Z([].concat(C()(h),[a])),null==n||n([].concat(C()(h),[a]))),u(!1),o("")},b=h.map((function(e){var t=(0,R.jsx)(S.Z,{closable:!0,onClose:function(t){var i,r;t.preventDefault(),i=e,r=h.filter((function(e){return e!==i})),Z(r),null==n||n(r)},children:e});return(0,R.jsx)("span",{style:{display:"inline-block",marginBottom:8},children:t},e)}));return(0,p.useEffect)((function(){c&&v&&v.current.focus()}),[c]),(0,p.useEffect)((function(){t&&Z(t)}),[t]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(_.Z,{enter:{scale:.8,opacity:0,type:"from",duration:100},leave:{opacity:0,width:0,scale:0,duration:200},appear:!1,children:b}),c&&(0,R.jsx)(x.Z,{ref:v,type:"text",size:"small",style:{width:78},value:a,onChange:function(e){o(e.target.value)},onBlur:P,onPressEnter:P}),!c&&(0,R.jsxs)(S.Z,{onClick:function(){u(!0)},style:{borderStyle:"dashed",cursor:"pointer"},children:[(0,R.jsx)(q.Z,{})," ",f.ZP.get("新建")]})]})},I=n(32320),N=["key","name"],D=function(e){var t=e.cron,n=e.handleCancel,i=e.visible,a=m.Z.useForm(),l=g()(a,1)[0],c=(0,p.useState)(!1),d=g()(c,2),P=d[0],j=d[1],k=function(){var e=u()(o()().mark((function e(i){var r,a,l,c,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),r=t?"put":"post",a=s()({},i),t&&(a.id=t.id),e.prev=4,e.next=7,b.W[r]("".concat(y.Z.apiPrefix,"crons"),a);case 7:l=e.sent,c=l.code,u=l.data,200===c&&(h.ZP.success(t?f.ZP.get("更新任务成功"):f.ZP.get("创建任务成功")),n(u)),j(!1),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),j(!1);case 17:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(t){return e.apply(this,arguments)}}();return(0,p.useEffect)((function(){l.resetFields()}),[t,i]),(0,R.jsx)(Z.Z,{title:t?f.ZP.get("编辑任务"):f.ZP.get("创建任务"),open:i,forceRender:!0,centered:!0,maskClosable:!1,onOk:function(){l.validateFields().then((function(e){k(e)})).catch((function(e){console.log("Validate Failed:",e)}))},onCancel:function(){return n()},confirmLoading:P,children:(0,R.jsxs)(m.Z,{form:l,layout:"vertical",name:"form_in_modal",initialValues:t,children:[(0,R.jsx)(m.Z.Item,{name:"name",label:f.ZP.get("名称"),rules:[{required:!0,whitespace:!0}],children:(0,R.jsx)(x.Z,{placeholder:f.ZP.get("请输入任务名称")})}),(0,R.jsx)(m.Z.Item,{name:"command",label:f.ZP.get("命令/脚本"),rules:[{required:!0,whitespace:!0}],children:(0,R.jsx)(x.Z.TextArea,{rows:4,autoSize:{minRows:1,maxRows:5},placeholder:f.ZP.get("支持输入脚本路径/任意系统可执行命令/task 脚本路径")})}),(0,R.jsx)(m.Z.Item,{name:"schedule",label:f.ZP.get("定时规则"),rules:[{required:!0},{validator:function(e,t){return!t||w().parseExpression(t).hasNext()?Promise.resolve():Promise.reject(f.ZP.get("Cron表达式格式有误"))}}],children:(0,R.jsx)(x.Z,{placeholder:f.ZP.get("秒(可选) 分 时 天 月 周")})}),(0,R.jsx)(m.Z.List,{name:"extra_schedules",children:function(e,t,n){var i=t.add,a=t.remove,o=n.errors;return(0,R.jsxs)(R.Fragment,{children:[e.map((function(e){var t=e.key,n=e.name,i=r()(e,N);return(0,R.jsx)(m.Z.Item,{noStyle:!0,children:(0,R.jsxs)(v.Z,{className:"view-create-modal-sorts",align:"baseline",children:[(0,R.jsx)(m.Z.Item,s()(s()({},i),{},{name:[n,"schedule"],rules:[{required:!0}],children:(0,R.jsx)(x.Z,{placeholder:f.ZP.get("秒(可选) 分 时 天 月 周")})})),(0,R.jsx)(I.Z,{className:"dynamic-delete-button",onClick:function(){return a(n)}})]})},t)})),(0,R.jsx)(m.Z.Item,{children:(0,R.jsxs)("a",{onClick:function(){return i({schedule:""})},children:[(0,R.jsx)(q.Z,{}),f.ZP.get("新增定时规则")]})}),(0,R.jsx)(m.Z.ErrorList,{errors:o})]})}}),(0,R.jsx)(m.Z.Item,{name:"labels",label:f.ZP.get("标签"),children:(0,R.jsx)(B,{})}),(0,R.jsx)(m.Z.Item,{name:"task_before",label:f.ZP.get("执行前"),tooltip:f.ZP.get("运行任务前执行的命令,比如 cp/mv/python3 xxx.py/node xxx.js"),rules:[{validator:function(e,t){return t&&(t.includes(" task ")||t.startsWith("task "))?Promise.reject(f.ZP.get("不能包含 task 命令")):Promise.resolve()}}],children:(0,R.jsx)(x.Z.TextArea,{rows:4,autoSize:{minRows:1,maxRows:5},placeholder:f.ZP.get("请输入运行任务前要执行的命令,不能包含 task 命令")})}),(0,R.jsx)(m.Z.Item,{name:"task_after",label:f.ZP.get("执行后"),tooltip:f.ZP.get("运行任务后执行的命令,比如 cp/mv/python3 xxx.py/node xxx.js"),rules:[{validator:function(e,t){return t&&(t.includes(" task ")||t.startsWith("task "))?Promise.reject(f.ZP.get("不能包含 task 命令")):Promise.resolve()}}],children:(0,R.jsx)(x.Z.TextArea,{rows:4,autoSize:{minRows:1,maxRows:5},placeholder:f.ZP.get("请输入运行任务后要执行的命令,不能包含 task 命令")})})]})})},W=function(e){var t=e.ids,n=e.handleCancel,i=e.visible,r=m.Z.useForm(),a=g()(r,1)[0],l=(0,p.useState)(!1),s=g()(l,2),c=s[0],d=s[1],x=function(){var e=u()(o()().mark((function e(i){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a.validateFields().then(function(){var e=u()(o()().mark((function e(r){var a,l,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),a={ids:t,labels:r.labels},e.prev=2,e.next=5,b.W[i]("".concat(y.Z.apiPrefix,"crons/labels"),a);case 5:l=e.sent,s=l.code,l.data,200===s&&(h.ZP.success("post"===i?f.ZP.get("添加Labels成功"):f.ZP.get("删除Labels成功")),n(!0)),d(!1),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),d(!1);case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log("Validate Failed:",e)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){a.resetFields()}),[t,i]);var v=[(0,R.jsx)(P.Z,{onClick:function(){return n(!1)},children:f.ZP.get("取消")}),(0,R.jsx)(P.Z,{type:"primary",danger:!0,onClick:function(){return x("delete")},children:f.ZP.get("删除")}),(0,R.jsx)(P.Z,{type:"primary",onClick:function(){return x("post")},children:f.ZP.get("添加")})];return(0,R.jsx)(Z.Z,{title:f.ZP.get("批量修改标签"),open:i,footer:v,centered:!0,maskClosable:!1,forceRender:!0,onCancel:function(){return n(!1)},confirmLoading:c,children:(0,R.jsx)(m.Z,{form:a,layout:"vertical",name:"form_in_label_modal",children:(0,R.jsx)(m.Z.Item,{name:"labels",label:f.ZP.get("标签"),children:(0,R.jsx)(B,{})})})})}},91350:function(e,t,n){"use strict";n.r(t),n.d(t,{CrontabStatus:function(){return i},OperationName:function(){return r},OperationPath:function(){return a}});var i=function(e){return e[e.running=0]="running",e[e.queued=.5]="queued",e[e.idle=1]="idle",e[e.disabled=2]="disabled",e}({}),r=function(e){return e[e["启用"]=0]="启用",e[e["禁用"]=1]="禁用",e[e["运行"]=2]="运行",e[e["停止"]=3]="停止",e[e["置顶"]=4]="置顶",e[e["取消置顶"]=5]="取消置顶",e}({}),a=function(e){return e[e.enable=0]="enable",e[e.disable=1]="disable",e[e.run=2]="run",e[e.stop=3]="stop",e[e.pin=4]="pin",e[e.unpin=5]="unpin",e}({})},10419:function(e,t,n){"use strict";n.r(t);var i=n(12342),r=n.n(i),a=n(25359),o=n.n(a),l=n(57213),s=n.n(l),c=n(49811),u=n.n(c),d=n(54306),g=n.n(d),f=n(88265),p=n(63313),m=n(67393),h=n(28756),Z=n(84163),x=n(22159),v=n(24378),P=n(2947),b=n(57229),y=n(15207),j=n(32320),w=n(26839),k=n(38582),C=n(91350),S=n(19631),_=n(11527),q=["name"],R=["key","name"],B=["key","name"],I=[{name:f.ZP.get("命令"),value:"command"},{name:f.ZP.get("名称"),value:"name"},{name:f.ZP.get("定时规则"),value:"schedule"},{name:f.ZP.get("状态"),value:"status",onlySelect:!0},{name:f.ZP.get("标签"),value:"labels"},{name:f.ZP.get("订阅"),value:"sub_id",onlySelect:!0}],N={Reg:"",NotReg:"",In:"select",Nin:"select"},D=[{name:f.ZP.get("包含"),value:"Reg"},{name:f.ZP.get("不包含"),value:"NotReg"},{name:f.ZP.get("属于"),value:"In",type:"select"},{name:f.ZP.get("不属于"),value:"Nin",type:"select"}],W=[{name:f.ZP.get("顺序"),value:"ASC"},{name:f.ZP.get("倒序"),value:"DESC"}],E=function(e){return e.and="且",e.or="或",e}(E||{});t.default=function(e){var t=e.view,n=e.handleCancel,i=e.visible,a=m.Z.useForm(),l=g()(a,1)[0],c=(0,p.useState)(!1),d=g()(c,2),O=d[0],T=d[1],F=(0,p.useState)("and"),z=g()(F,2),L=z[0],M=z[1],H=m.Z.useWatch("filters",l),V=(0,S.Z)((function(){return b.W.get("".concat(y.Z.apiPrefix,"subscriptions"))}),{cacheKey:"subscriptions"}).data,A={status:[{name:f.ZP.get("运行中"),value:C.CrontabStatus.running},{name:f.ZP.get("空闲中"),value:C.CrontabStatus.idle},{name:f.ZP.get("已禁用"),value:C.CrontabStatus.disabled}],sub_id:null==V?void 0:V.data.map((function(e){return{name:e.name,value:e.id}}))},K=function(){var e=u()(o()().mark((function e(i){var r,a,l,c;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),i.filterRelation=L,r=t?"put":"post",e.prev=3,e.next=6,b.W[r]("".concat(y.Z.apiPrefix,"crons/views"),t?s()(s()({},i),{},{id:t.id}):i);case 6:a=e.sent,l=a.code,c=a.data,200===l&&n(c),T(!1),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),T(!1);case 16:case"end":return e.stop()}}),e,null,[[3,13]])})));return function(t){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){t||l.resetFields(),l.setFieldsValue(t||{filters:[{property:"command"}]})}),[t,i]);var Y=function(e){var t=e.name,n=r()(e,q),i=l.getFieldValue(["filters",t,"property"]);return(0,_.jsx)(h.Z,s()(s()({style:{width:120},placeholder:f.ZP.get("请选择操作符")},n),{},{children:D.filter((function(e){return A[i]?"select"===e.type:e})).map((function(e){return(0,_.jsx)(h.Z.Option,{value:e.value,children:e.name},e.name)}))}))},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,_.jsx)(h.Z,{style:t,children:e.map((function(e){return(0,_.jsx)(h.Z.Option,{value:e.value,children:e.name},e.name)}))})},Q=(0,_.jsx)(h.Z,{style:{width:80},children:W.map((function(e){return(0,_.jsx)(h.Z.Option,{value:e.value,children:e.name},e.name)}))});return(0,_.jsx)(Z.Z,{title:t?f.ZP.get("编辑视图"):f.ZP.get("创建视图"),open:i,forceRender:!0,width:580,centered:!0,maskClosable:!1,onOk:function(){l.validateFields().then((function(e){K(e)})).catch((function(e){console.log("Validate Failed:",e)}))},onCancel:function(){return n()},confirmLoading:O,children:(0,_.jsxs)(m.Z,{form:l,layout:"vertical",name:"env_modal",children:[(0,_.jsx)(m.Z.Item,{name:"name",label:f.ZP.get("视图名称"),rules:[{required:!0,message:f.ZP.get("请输入视图名称")}],children:(0,_.jsx)(x.Z,{placeholder:f.ZP.get("请输入视图名称")})}),(0,_.jsx)(m.Z.List,{name:"filters",children:function(e,t,n){var i=t.add,a=t.remove,o=n.errors;return(0,_.jsxs)("div",{style:{position:"relative"},className:"view-filters-container ".concat(e.length>1?"active":""),children:[e.length>1&&(0,_.jsx)("div",{style:{position:"absolute",width:50,borderRadius:10,border:"1px solid rgb(190, 220, 255)",borderRight:"none",height:56*(e.length-1),top:46,left:15},children:(0,_.jsx)(v.Z,{type:"primary",size:"small",style:{position:"absolute",top:"50%",translate:"-50% -50%",padding:"0 3px",cursor:"pointer"},onClick:function(){M("and"===L?"or":"and")},children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("span",{children:E[L]}),(0,_.jsx)(k.Z,{type:"ql-icon-d-caret"})]})})}),(0,_.jsxs)("div",{children:[e.map((function(e){var t,n,i=e.key,o=e.name,l=r()(e,R);return(0,_.jsx)(m.Z.Item,{label:0===o?f.ZP.get("筛选条件"):"",style:{marginBottom:0},required:!0,className:"filter-item",children:(0,_.jsxs)(P.Z,{className:"view-create-modal-filters",align:"baseline",children:[(0,_.jsx)(m.Z.Item,s()(s()({},l),{},{name:[o,"property"],rules:[{required:!0}],children:U(I,{width:120})})),(0,_.jsx)(m.Z.Item,s()(s()({},l),{},{name:[o,"operation"],rules:[{required:!0,message:f.ZP.get("请选择操作符")}],children:(0,_.jsx)(Y,{name:o})})),(0,_.jsx)(m.Z.Item,s()(s()({},l),{},{name:[o,"value"],rules:[{required:!0,message:f.ZP.get("请输入内容")}],children:"select"===N[null==H?void 0:H[o].operation]?(t=null==H?void 0:H[o].property,(0,_.jsx)(h.Z,{mode:"tags",allowClear:!0,placeholder:f.ZP.get("输入后回车增加自定义选项"),children:null===(n=A[t])||void 0===n?void 0:n.map((function(e){return(0,_.jsx)(h.Z.Option,{value:e.value,children:e.name},e.name)}))})):(0,_.jsx)(x.Z,{placeholder:f.ZP.get("请输入内容")})})),0!==o&&(0,_.jsx)(j.Z,{onClick:function(){return a(o)}})]})},i)})),(0,_.jsx)(m.Z.Item,{children:(0,_.jsxs)("a",{onClick:function(){return i({property:"command",operation:"Reg"})},children:[(0,_.jsx)(w.Z,{}),f.ZP.get("新增筛选条件")]})}),(0,_.jsx)(m.Z.ErrorList,{errors:o})]})]})}}),(0,_.jsx)(m.Z.List,{name:"sorts",children:function(e,t,n){var i=t.add,a=t.remove,o=n.errors;return(0,_.jsxs)("div",{style:{position:"relative"},className:"view-filters-container ".concat(e.length>1?"active":""),children:[e.length>1&&(0,_.jsx)("div",{style:{position:"absolute",width:50,borderRadius:10,border:"1px solid rgb(190, 220, 255)",borderRight:"none",height:56*(e.length-1),top:46,left:15},children:(0,_.jsx)(v.Z,{type:"primary",size:"small",style:{position:"absolute",top:"50%",translate:"-50% -50%",padding:"0 3px",cursor:"pointer"},children:(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("span",{children:E[L]})})})}),(0,_.jsxs)("div",{children:[e.map((function(e){var t=e.key,n=e.name,i=r()(e,B);return(0,_.jsx)(m.Z.Item,{label:0===n?f.ZP.get("排序方式"):"",style:{marginBottom:0},className:"filter-item",children:(0,_.jsxs)(P.Z,{className:"view-create-modal-sorts",align:"baseline",children:[(0,_.jsx)(m.Z.Item,s()(s()({},i),{},{name:[n,"property"],rules:[{required:!0}],children:U(I)})),(0,_.jsx)(m.Z.Item,s()(s()({},i),{},{name:[n,"type"],rules:[{required:!0}],children:Q})),(0,_.jsx)(j.Z,{onClick:function(){return a(n)}})]})},t)})),(0,_.jsx)(m.Z.Item,{children:(0,_.jsxs)("a",{onClick:function(){return i({property:"command",type:"ASC"})},children:[(0,_.jsx)(w.Z,{}),f.ZP.get("新增排序方式")]})}),(0,_.jsx)(m.Z.ErrorList,{errors:o})]})]})}})]})})}},3038:function(e,t,n){"use strict";n.r(t);var i=n(93525),r=n.n(i),a=n(57213),o=n.n(a),l=n(54306),s=n.n(l),c=n(12342),u=n.n(c),d=n(88265),g=n(63313),f=n(92260),p=n(16861),m=n(2947),h=n(84163),Z=n(9835),x=n(24378),v=n(94674),P=n(57229),b=n(15207),y=n(32132),j=n(13740),w=n(81871),k=n(21778),C=n(12701),S=n(66255),_=n(10419),q=n(11527),R=["index","moveRow","className","style"],B=f.Z.Text,I="DragableBodyRow",N=function(e){var t=e.index,n=e.moveRow,i=e.className,r=e.style,a=u()(e,R),l=(0,g.useRef)(),c=(0,w.L)({accept:I,collect:function(e){var n=(e.getItem()||{}).index;return n===t?{}:{isOver:e.isOver(),dropClassName:n<t?" drop-over-downward":" drop-over-upward"}},drop:function(e){n(e.index,t)}}),d=s()(c,2),f=d[0],p=f.isOver,m=f.dropClassName,h=d[1],Z=(0,k.c)({type:I,item:{index:t},collect:function(e){return{isDragging:e.isDragging()}}});return h((0,s()(Z,2)[1])(l)),(0,q.jsx)("tr",o()({ref:l,className:"".concat(i).concat(p?m:""),style:o()({cursor:"move"},r)},a))};t.default=function(e){var t=e.cronViews,n=e.handleCancel,i=e.visible,a=e.cronViewChange,l=function(e){return w.filter((function(e){return!e.isDisabled})).length<=1&&!e.isDisabled},c=[{title:d.ZP.get("名称"),dataIndex:"name",key:"name",render:function(e){return"全部任务"===e?d.ZP.get("全部任务"):e}},{title:d.ZP.get("类型"),dataIndex:"type",key:"type",render:function(e){return 1===e?d.ZP.get("系统"):d.ZP.get("个人")}},{title:d.ZP.get("显示"),key:"isDisabled",dataIndex:"isDisabled",width:100,render:function(e,t,n){return(0,q.jsx)(p.Z,{disabled:l(t),checked:!t.isDisabled,onChange:function(e){return M(e,t,n)}})}},{title:d.ZP.get("操作"),key:"action",width:100,render:function(e,t,n){return 1!==t.type?(0,q.jsxs)(m.Z,{size:"middle",children:[(0,q.jsx)("a",{onClick:function(){return z(t,n)},children:(0,q.jsx)(y.Z,{})}),!l(t)&&(0,q.jsx)("a",{onClick:function(){return L(t,n)},children:(0,q.jsx)(j.Z,{})})]}):"-"}}],u=(0,g.useState)([]),f=s()(u,2),w=f[0],k=f[1],R=(0,g.useState)(!1),I=s()(R,2),D=I[0],W=I[1],E=(0,g.useState)(null),O=s()(E,2),T=O[0],F=O[1],z=function(e,t){F(e),W(!0)},L=function(e,t){h.Z.confirm({title:d.ZP.get("确认删除"),content:(0,q.jsxs)(q.Fragment,{children:[d.ZP.get("确认删除视图")," ",(0,q.jsx)(B,{style:{wordBreak:"break-all"},type:"warning",children:e.name})," ",d.ZP.get("吗")]}),onOk:function(){P.W.delete("".concat(b.Z.apiPrefix,"crons/views"),{data:[e.id]}).then((function(e){var t=e.code;e.data;200===t&&(Z.ZP.success(d.ZP.get("删除成功")),a())}))},onCancel:function(){console.log("Cancel")}})},M=function(e,t,n){P.W.put("".concat(b.Z.apiPrefix,"crons/views/").concat(e?"enable":"disable"),[t.id]).then((function(t){var i=t.code;t.data;if(200===i){var l=r()(w);l.splice(n,1,o()(o()({},w[n]),{},{isDisabled:!e})),k(l),a()}}))},H={body:{row:N}},V=(0,g.useCallback)((function(e,t){if(e!==t){var n=w[e];P.W.put("".concat(b.Z.apiPrefix,"crons/views/move"),{fromIndex:e,toIndex:t,id:n.id}).then((function(i){var l=i.code,s=i.data;if(200===l){var c=r()(w);c.splice(e,1),c.splice(t,0,o()(o()({},n),s)),k(c),a()}}))}}),[w]);return(0,g.useEffect)((function(){k(t)}),[t]),(0,q.jsxs)(h.Z,{title:d.ZP.get("视图管理"),open:i,centered:!0,width:620,onCancel:function(){return n()},className:"view-manage-modal",forceRender:!0,footer:!1,maskClosable:!1,children:[(0,q.jsx)(m.Z,{style:{display:"flex",justifyContent:"flex-end",marginBottom:10},children:(0,q.jsx)(x.Z,{type:"primary",onClick:function(){F(null),W(!0)},children:d.ZP.get("创建视图")},"2")}),(0,q.jsx)(C.W,{backend:S.PD,children:(0,q.jsx)(v.Z,{bordered:!0,columns:c,pagination:!1,dataSource:w,rowKey:"id",size:"middle",style:{marginBottom:20},components:H,onRow:function(e,t){return{index:t,moveRow:V}}})}),(0,q.jsx)(_.default,{view:T,visible:D,handleCancel:function(e){W(!1),a(e)}})]})}},15207:function(e,t,n){"use strict";var i=n(88265),r=window.__ENV__QlBaseUrl||"/";t.Z={siteName:i.ZP.get("青龙"),apiPrefix:"".concat(r,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Português",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:i.ZP.get("中文"),flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:i.ZP.get("定时任务"),value:"crons"},{name:i.ZP.get("环境变量"),value:"envs"},{name:i.ZP.get("订阅管理"),value:"subscriptions"},{name:i.ZP.get("配置文件"),value:"configs"},{name:i.ZP.get("脚本管理"),value:"scripts"},{name:i.ZP.get("日志管理"),value:"logs"},{name:i.ZP.get("依赖管理"),value:"dependencies"},{name:i.ZP.get("系统信息"),value:"system"}],scopesMap:{crons:i.ZP.get("定时任务"),envs:i.ZP.get("环境变量"),subscriptions:i.ZP.get("订阅管理"),configs:i.ZP.get("配置文件"),scripts:i.ZP.get("脚本管理"),logs:i.ZP.get("日志管理"),dependencies:i.ZP.get("依赖管理"),system:i.ZP.get("系统信息")},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:i.ZP.get("Server酱")},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:i.ZP.get("Telegram机器人")},{value:"dingtalkBot",label:i.ZP.get("钉钉机器人")},{value:"weWorkBot",label:i.ZP.get("企业微信机器人")},{value:"weWorkApp",label:i.ZP.get("企业微信应用")},{value:"aibotk",label:i.ZP.get("智能微秘书")},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:i.ZP.get("群晖chat")},{value:"email",label:i.ZP.get("邮箱")},{value:"lark",label:i.ZP.get("飞书机器人")},{value:"pushMe",label:"PushMe"},{value:"chronocat",label:"Chronocat"},{value:"webhook",label:i.ZP.get("自定义通知")},{value:"closed",label:i.ZP.get("已关闭")}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:i.ZP.get("gotify的url地址,例如 https://push.example.de:8080"),required:!0},{label:"gotifyToken",tip:i.ZP.get("gotify的消息应用token码"),required:!0},{label:"gotifyPriority",tip:i.ZP.get("推送消息的优先级")}],chat:[{label:"chatUrl",tip:i.ZP.get("chat的url地址"),required:!0},{label:"chatToken",tip:i.ZP.get("chat的token码"),required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:i.ZP.get("推送到个人QQ: http://127.0.0.1/send_private_msg,群:http://127.0.0.1/send_group_msg"),required:!0},{label:"goCqHttpBotToken",tip:i.ZP.get("访问密钥"),required:!0},{label:"goCqHttpBotQq",tip:i.ZP.get("如果GOBOT_URL设置 /send_private_msg 则需要填入 user_id=个人QQ 相反如果是 /send_group_msg 则需要填入 group_id=QQ群"),required:!0}],serverChan:[{label:"serverChanKey",tip:i.ZP.get("Server酱SENDKEY"),required:!0}],pushDeer:[{label:"pushDeerKey",tip:i.ZP.get("PushDeer的Key,https://github.com/easychen/pushdeer"),required:!0},{label:"pushDeerUrl",tip:i.ZP.get("PushDeer的自架API endpoint,默认是 https://api2.pushdeer.com/message/push")}],bark:[{label:"barkPush",tip:i.ZP.get("Bark的信息IP/设备码,例如:https://api.day.app/XXXXXXXX"),required:!0},{label:"barkIcon",tip:i.ZP.get("BARK推送图标,自定义推送图标 (需iOS15或以上才能显示)")},{label:"barkSound",tip:i.ZP.get("BARK推送铃声,铃声列表去APP查看复制填写")},{label:"barkGroup",tip:i.ZP.get("BARK推送消息的分组,默认为qinglong")},{label:"barkLevel",tip:i.ZP.get("BARK推送消息的时效性,默认为active")},{label:"barkUrl",tip:i.ZP.get("BARK推送消息的跳转URL")}],telegramBot:[{label:"telegramBotToken",tip:i.ZP.get("telegram机器人的token,例如:1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw"),required:!0},{label:"telegramBotUserId",tip:i.ZP.get("telegram用户的id,例如:129xxx206"),required:!0},{label:"telegramBotProxyHost",tip:i.ZP.get("代理IP")},{label:"telegramBotProxyPort",tip:i.ZP.get("代理端口")},{label:"telegramBotProxyAuth",tip:i.ZP.get("telegram代理配置认证参数,用户名与密码用英文冒号连接 user:password")},{label:"telegramBotApiHost",tip:i.ZP.get("telegram api自建的反向代理地址,默认tg官方api")}],dingtalkBot:[{label:"dingtalkBotToken",tip:i.ZP.get("钉钉机器人webhook token,例如:5a544165465465645d0f31dca676e7bd07415asdasd"),required:!0},{label:"dingtalkBotSecret",tip:i.ZP.get("密钥,机器人安全设置页面,加签一栏下面显示的SEC开头的字符串")}],weWorkBot:[{label:"weWorkBotKey",tip:i.ZP.get("企业微信机器人的webhook(详见文档 https://work.weixin.qq.com/api/doc/90000/90136/91770),例如:693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa"),required:!0},{label:"weWorkOrigin",tip:i.ZP.get("企业微信代理地址")}],weWorkApp:[{label:"weWorkAppKey",tip:i.ZP.get("corpid、corpsecret、touser(注:多个成员ID使用|隔开)、agentid、消息类型(选填,不填默认文本消息类型) 注意用,号隔开(英文输入法的逗号),例如:wwcfrs,B-76WERQ,qinglong,1000001,2COat"),required:!0},{label:"weWorkOrigin",tip:i.ZP.get("企业微信代理地址")}],aibotk:[{label:"aibotkKey",tip:i.ZP.get("密钥key,智能微秘书个人中心获取apikey,申请地址:https://wechat.aibotk.com/signup?from=ql"),required:!0},{label:"aibotkType",tip:i.ZP.get("发送的目标,群组或者好友"),required:!0,placeholder:i.ZP.get("请输入要发送的目标"),items:[{value:"room",label:i.ZP.get("群聊")},{value:"contact",label:i.ZP.get("好友")}]},{label:"aibotkName",tip:i.ZP.get("要发送的用户昵称或群名,如果目标是群,需要填群名,如果目标是好友,需要填好友昵称"),required:!0}],iGot:[{label:"iGotPushKey",tip:i.ZP.get("iGot的信息推送key,例如:https://push.hellyw.com/XXXXXXXX"),required:!0}],pushPlus:[{label:"pushPlusToken",tip:i.ZP.get("微信扫码登录后一对一推送或一对多推送下面的token(您的Token),不提供PUSH_PLUS_USER则默认为一对一推送,参考 https://www.pushplus.plus/"),required:!0},{label:"pushPlusUser",tip:i.ZP.get("一对多推送的“群组编码”(一对多推送下面->您的群组(如无则创建)->群组编码,如果您是创建群组人。也需点击“查看二维码”扫描绑定,否则不能接受群组消息推送)")}],lark:[{label:"larkKey",tip:i.ZP.get("飞书群组机器人:https://www.feishu.cn/hc/zh-CN/articles/360024984973"),required:!0}],email:[{label:"emailService",tip:i.ZP.get("邮箱服务名称,比如126、163、Gmail、QQ等,支持列表https://nodemailer.com/smtp/well-known/"),required:!0},{label:"emailUser",tip:i.ZP.get("邮箱地址"),required:!0},{label:"emailPass",tip:i.ZP.get("邮箱SMTP授权码"),required:!0}],pushMe:[{label:"pushMeKey",tip:i.ZP.get("PushMe的Key,https://push.i-i.me/"),required:!0}],chronocat:[{label:"chronocatURL",tip:i.ZP.get("Chronocat Red 服务的连接地址 https://chronocat.vercel.app/install/docker/official/"),required:!0},{label:"chronocatQQ",tip:i.ZP.get("个人:user_id=个人QQ 群则填入group_id=QQ群 多个用英文;隔开同时支持个人和群 如:user_id=xxx;group_id=xxxx;group_id=xxxxx"),required:!0},{label:"chronocatToken",tip:i.ZP.get("docker安装在持久化config目录下的chronocat.yml文件可找到"),required:!0}],webhook:[{label:"webhookMethod",tip:i.ZP.get("请求方法"),required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:i.ZP.get("请求头Content-Type"),required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:i.ZP.get("请求链接以http或者https开头。url或者body中必须包含$title,$content可选,对应api内容的位置"),required:!0,placeholder:"https://xxx.cn/api?content=$title\n"},{label:"webhookHeaders",tip:i.ZP.get("请求头格式Custom-Header1: Header1,多个换行分割"),placeholder:"Custom-Header1: Header1\nCustom-Header2: Header2"},{label:"webhookBody",tip:i.ZP.get("请求体格式key1: value1,多个换行分割。url或者body中必须包含$title,$content可选,对应api内容的位置"),placeholder:"key1: $title\nkey2: $content"}]},documentTitleMap:{"/login":i.ZP.get("登录"),"/initialization":i.ZP.get("初始化"),"/crontab":i.ZP.get("定时任务"),"/env":i.ZP.get("环境变量"),"/subscription":i.ZP.get("订阅管理"),"/config":i.ZP.get("配置文件"),"/script":i.ZP.get("脚本管理"),"/diff":i.ZP.get("对比工具"),"/log":i.ZP.get("日志管理"),"/setting":i.ZP.get("系统设置"),"/error":i.ZP.get("错误日志"),"/dependence":i.ZP.get("依赖管理")},dependenceTypes:["nodejs","python3","linux"]}},87423:function(e,t,n){"use strict";function i(e){var t=1e3*e,n=Math.floor(t/864e5),i=t%864e5,r=Math.floor(i/36e5),a=i%36e5,o=Math.floor(a/6e4),l=a%6e4,s=Math.round(l/1e3)+"秒";return o>0&&(s=o+"分"+s),r>0&&(s=r+"小时"+s),n>0&&(s=n+"天"+s),s}n.d(t,{E:function(){return i}})},57229:function(e,t,n){"use strict";n.d(t,{W:function(){return m}});var i=n(25359),r=n.n(i),a=n(49811),o=n.n(a),l=n(88265),s=n(9835),c=n(15207),u=n(14851),d=n(73669);s.ZP.config({duration:2});var g=Date.now(),f=d.Z.create({timeout:6e4,params:{t:g}}),p=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];f.interceptors.request.use((function(e){var t=localStorage.getItem(c.Z.authKey);return t&&!p.includes(e.url)?(e.headers.Authorization="Bearer ".concat(t),e):e})),f.interceptors.response.use(function(){var e=o()(r()().mark((function e(t){var n,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.status,![502,504].includes(n)){e.next=5;break}u.history.push("/error"),e.next=18;break;case 5:if(401!==n){e.next=9;break}"/login"!==u.history.location.pathname&&(localStorage.removeItem(c.Z.authKey),u.history.push("/login")),e.next=18;break;case 9:return e.prev=9,200!==(i=t.data).code&&(a=i.message||i.data)&&s.ZP.error({content:a,style:{maxWidth:500,margin:"0 auto"}}),e.abrupt("return",i);case 15:e.prev=15,e.t0=e.catch(9);case 17:case 18:return e.abrupt("return",t);case 19:case"end":return e.stop()}}),e,null,[[9,15]])})));return function(t){return e.apply(this,arguments)}}(),(function(e){if(e.response){var t=e.response.data?e.response.data.message||e.message||e.response.data:e.response.statusText,n=e.response.status;[502,504].includes(n)?u.history.push("/error"):401===n?"/login"!==u.history.location.pathname&&(s.ZP.error(l.ZP.get("登录已过期,请重新登录")),localStorage.removeItem(c.Z.authKey),u.history.push("/login")):s.ZP.error({content:t,style:{maxWidth:500,margin:"0 auto"}})}else console.log(e.message);return Promise.reject(e)}));var m=f},40141:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},I1:function(){return g},w7:function(){return d},DY:function(){return f},FA:function(){return m},rS:function(){return Z},H$:function(){return x},W9:function(){return u},x$:function(){return p}});var i=n(93525),r=n.n(i),a=n(88265),o={".py":"python",".js":"javascript",".mjs":"javascript",".sh":"shell",".ts":"typescript"},l=n(11186),s=n.n(l);function c(){var e=navigator.userAgent.toLowerCase(),t=function(t){return t.test(e)},n=function(t){return(e.match(t)||[]).toString().replace(/[^0-9|_.]/g,"").replace(/_/g,".")},i="unknow";t(/windows|win32|win64|wow32|wow64/g)?i="windows":t(/macintosh|macintel/g)?i="macos":t(/x11/g)?i="linux":t(/android|adr/g)?i="android":t(/ios|iphone|ipad|ipod|iwatch/g)&&(i="ios");var r="unknow";"windows"===i?t(/windows nt 5.0|windows 2000/g)?r="2000":t(/windows nt 5.1|windows xp/g)?r="xp":t(/windows nt 5.2|windows 2003/g)?r="2003":t(/windows nt 6.0|windows vista/g)?r="vista":t(/windows nt 6.1|windows 7/g)?r="7":t(/windows nt 6.2|windows 8/g)?r="8":t(/windows nt 6.3|windows 8.1/g)?r="8.1":t(/windows nt 10.0|windows 10/g)&&(r="10"):"macos"===i?r=n(/os x [\d._]+/g):"android"===i?r=n(/android [\d._]+/g):"ios"===i&&(r=n(/os [\d._]+/g));var a="unknow";"windows"===i||"macos"===i||"linux"===i?a="desktop":("android"===i||"ios"===i||t(/mobile/g))&&(a="mobile");var o="unknow",l="unknow";t(/applewebkit/g)?(o="webkit",t(/edge/g)?l="edge":t(/opr/g)?l="opera":t(/chrome/g)?l="chrome":t(/safari/g)&&(l="safari")):t(/gecko/g)&&t(/firefox/g)?(o="gecko",l="firefox"):t(/presto/g)?(o="presto",l="opera"):t(/trident|compatible|msie/g)&&(o="trident",l="iexplore");var s="unknow";"webkit"===o?s=n(/applewebkit\/[\d._]+/g):"gecko"===o?s=n(/gecko\/[\d._]+/g):"presto"===o?s=n(/presto\/[\d._]+/g):"trident"===o&&(s=n(/trident\/[\d._]+/g));var c="unknow";"chrome"===l?c=n(/chrome\/[\d._]+/g):"safari"===l?c=n(/version\/[\d._]+/g):"firefox"===l?c=n(/firefox\/[\d._]+/g):"opera"===l?c=n(/opr\/[\d._]+/g):"iexplore"===l?c=n(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===l&&(c=n(/edge\/[\d._]+/g));var u="none",d="unknow";t(/micromessenger/g)?(u="wechat",d=n(/micromessenger\/[\d._]+/g)):t(/qqbrowser/g)?(u="qq",d=n(/qqbrowser\/[\d._]+/g)):t(/ucbrowser/g)?(u="uc",d=n(/ucbrowser\/[\d._]+/g)):t(/qihu 360se/g)?u="360":t(/2345explorer/g)?(u="2345",d=n(/2345explorer\/[\d._]+/g)):t(/metasr/g)?u="sougou":t(/lbbrowser/g)?u="liebao":t(/maxthon/g)&&(u="maxthon",d=n(/maxthon\/[\d._]+/g));var g=Object.assign({engine:o,engineVs:s,platform:a,supporter:l,supporterVs:c,system:i,systemVs:r},"none"===u?{}:{shell:u,shellVs:d});return console.log("%c\n .d88b. d888888b d8b db d888b db .d88b. d8b db d888b \n.8P Y8. `88' 888o 88 88' Y8b 88 .8P Y8. 888o 88 88' Y8b \n88 88 88 88V8o 88 88 88 88 88 88V8o 88 88 \n88 88 88 88 V8o88 88 ooo 88 88 88 88 V8o88 88 ooo \n`8P d8' .88. 88 V888 88. ~8~ 88booo. `8b d8' 88 V888 88. ~8~ \n `Y88'Y8 Y888888P VP V8P Y888P Y88888P `Y88P' VP V8P Y888P \n \n \n","color: blue;font-size: 14px;"),console.log("%c忘形雨笠烟蓑,知心牧唱樵歌。明月清风共我,闲人三个,从他今古消磨。\n","color: yellow;font-size: 18px;"),console.log("%c青龙运行环境:\n\n系统:".concat(g.system,"/").concat(g.systemVs,"\n浏览器:").concat(g.supporter,"/").concat(g.supporterVs,"\n内核:").concat(g.engine,"/").concat(g.engineVs),"color: green;font-size: 14px;font-weight: bold;"),g}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.extraHeight,n=e.target;void 0===t&&(t=99);var i=null,r=0;(i=n||document.querySelector(".ant-table-wrapper"))&&(r=i.getBoundingClientRect().top);var a=document.body.clientHeight-r-t;return a}function d(e,t){var n,i,r=window.URL||window.webkitURL||window,a=new Blob([t]),o=document.createElementNS("http://www.w3.org/1999/xhtml","a");o.href=r.createObjectURL(a),o.download=e,n=o,(i=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(i)}function g(e,t,n){var i=r()(e),a=[];return function e(i){if(i)for(var r=0;r<(null==i?void 0:i.length);r++){if(t(i[r]))return n?void(i[r].children?i[r].children.unshift(n):i[r].children=[n]):void i.splice(r,1);i[r].children&&(a.push(i[r].key),e(i[r].children))}}(i),i}function f(e,t){var n;return function e(i){if(i)for(var r=0;r<(null==i?void 0:i.length);r++)t(i[r])?n=i[r]:i[r].children&&e(i[r].children)}(r()(e)),n}function p(e){return[" ",a.ZP.get("执行结束")].some((function(t){return e.includes(t)}))}function m(e){var t=e.split(" ");if("repo"===t[1]||"raw"===t[1])return t[2];var n=t.find((function(e){return[".js",".ts",".sh",".py"].some((function(t){return e.endsWith(t)}))}));if(n){var i,r;n.startsWith("/ql/data/scripts")&&(n=n.replace("/ql/data/scripts/",""));var a=n.lastIndexOf("/");return a>=0?(r=n.slice(a+1),i=n.slice(0,a)):(r=n,i=""),[r,i]}}function h(e){try{var t=s().parseExpression(e);if(t)return t.next().toDate()}catch(e){}return null}function Z(e,t){var n=h(e);return null!=t&&t.length&&t.forEach((function(e){var t=h(e);t&&(!n||t<n)&&(n=t)})),n}function x(e){var t=function(e){if(!e)return"";var t=e.split(".");return".".concat(t[t.length-1])}(e);return o[t]}},38433:function(){}}]);
|