From 7d02bd7dbf5ce676db6f28926b2329dba3a85a8c Mon Sep 17 00:00:00 2001 From: Owncast Date: Mon, 21 Mar 2022 12:56:30 +0000 Subject: [PATCH] Update admin to 7fc163fdb701fd2e37faff21db1d22a7dbcf33dd --- static/admin/404/index.html | 2 +- .../_buildManifest.js | 2 +- .../_middlewareManifest.js | 0 .../_ssgManifest.js | 0 static/admin/_next/static/chunks/17-942a593b07a7ad59.js | 1 - static/admin/_next/static/chunks/17-bc534f742299bd9c.js | 1 + .../{464-00e3383613901cc1.js => 464-0371726593a593d7.js} | 2 +- static/admin/_next/static/chunks/551-dd0cc453e2831abd.js | 1 - .../{655-43733c05714a5b2d.js => 655-37148fe20945e086.js} | 2 +- static/admin/_next/static/chunks/962-de55aae75997b1c4.js | 1 + ...-b6a250590368e866.js => access-tokens-9dbb873b6a36d6fa.js} | 2 +- .../_next/static/chunks/pages/actions-46805fd86104161d.js | 1 - .../_next/static/chunks/pages/actions-b20fbe2814f0b5b2.js | 1 + .../static/chunks/pages/chat/messages-a83b5d7cee6681d8.js | 1 - .../static/chunks/pages/chat/messages-b8f889ed815f672a.js | 1 + .../_next/static/chunks/pages/chat/users-9302c9a7edcbfeaa.js | 1 - .../_next/static/chunks/pages/chat/users-e0d4a19491972de5.js | 1 + ...ad4c611ae.js => config-public-details-f428bad30447489a.js} | 2 +- ...d8998959b50.js => config-social-items-79358d9656cc6981.js} | 2 +- .../static/chunks/pages/config-video-8900996323fba16c.js | 1 - .../static/chunks/pages/config-video-a0ab2fc230af702e.js | 1 + .../chunks/pages/federation/actions-422da4624fbeb2c1.js | 1 - .../chunks/pages/federation/actions-de25449cc81c35a7.js | 1 + .../chunks/pages/federation/followers-109a37a87cd1e853.js | 1 - .../chunks/pages/federation/followers-c470c6527a07b6bf.js | 1 + .../admin/_next/static/chunks/pages/index-897a1278e0c03ce5.js | 1 + .../admin/_next/static/chunks/pages/index-9842a65e7b745f4a.js | 1 - .../admin/_next/static/chunks/pages/logs-0592f198dee88b89.js | 1 + .../admin/_next/static/chunks/pages/logs-0c88340ee0581afe.js | 1 - .../_next/static/chunks/pages/upgrade-b92a312631182fe0.js | 1 - .../_next/static/chunks/pages/upgrade-cc902d2847e8b250.js | 1 + ...fo-25b071a2cf7b79a7.js => viewer-info-0bf243355eac2294.js} | 2 +- ...hooks-147eacbf99197b5b.js => webhooks-a736f2d3f9c0e432.js} | 2 +- static/admin/access-tokens/index.html | 2 +- static/admin/actions/index.html | 2 +- static/admin/chat/messages/index.html | 2 +- static/admin/chat/users/index.html | 2 +- static/admin/config-chat/index.html | 2 +- static/admin/config-federation/index.html | 2 +- static/admin/config-public-details/index.html | 2 +- static/admin/config-server-details/index.html | 2 +- static/admin/config-social-items/index.html | 2 +- static/admin/config-storage/index.html | 2 +- static/admin/config-video/index.html | 2 +- static/admin/federation/actions/index.html | 2 +- static/admin/federation/followers/index.html | 2 +- static/admin/hardware-info/index.html | 4 ++-- static/admin/help/index.html | 2 +- static/admin/index.html | 2 +- static/admin/logs/index.html | 2 +- static/admin/stream-health/index.html | 2 +- static/admin/upgrade/index.html | 2 +- static/admin/viewer-info/index.html | 2 +- static/admin/webhooks/index.html | 2 +- 54 files changed, 42 insertions(+), 42 deletions(-) rename static/admin/_next/static/{ujCQ61XngWEXs3PFfjrF1 => 5Kti0VM79O0k39cJjSTIM}/_buildManifest.js (50%) rename static/admin/_next/static/{ujCQ61XngWEXs3PFfjrF1 => 5Kti0VM79O0k39cJjSTIM}/_middlewareManifest.js (100%) rename static/admin/_next/static/{ujCQ61XngWEXs3PFfjrF1 => 5Kti0VM79O0k39cJjSTIM}/_ssgManifest.js (100%) delete mode 100644 static/admin/_next/static/chunks/17-942a593b07a7ad59.js create mode 100644 static/admin/_next/static/chunks/17-bc534f742299bd9c.js rename static/admin/_next/static/chunks/{464-00e3383613901cc1.js => 464-0371726593a593d7.js} (93%) delete mode 100644 static/admin/_next/static/chunks/551-dd0cc453e2831abd.js rename static/admin/_next/static/chunks/{655-43733c05714a5b2d.js => 655-37148fe20945e086.js} (67%) create mode 100644 static/admin/_next/static/chunks/962-de55aae75997b1c4.js rename static/admin/_next/static/chunks/pages/{access-tokens-b6a250590368e866.js => access-tokens-9dbb873b6a36d6fa.js} (61%) delete mode 100644 static/admin/_next/static/chunks/pages/actions-46805fd86104161d.js create mode 100644 static/admin/_next/static/chunks/pages/actions-b20fbe2814f0b5b2.js delete mode 100644 static/admin/_next/static/chunks/pages/chat/messages-a83b5d7cee6681d8.js create mode 100644 static/admin/_next/static/chunks/pages/chat/messages-b8f889ed815f672a.js delete mode 100644 static/admin/_next/static/chunks/pages/chat/users-9302c9a7edcbfeaa.js create mode 100644 static/admin/_next/static/chunks/pages/chat/users-e0d4a19491972de5.js rename static/admin/_next/static/chunks/pages/{config-public-details-bfb9f2ead4c611ae.js => config-public-details-f428bad30447489a.js} (99%) rename static/admin/_next/static/chunks/pages/{config-social-items-10965d8998959b50.js => config-social-items-79358d9656cc6981.js} (94%) delete mode 100644 static/admin/_next/static/chunks/pages/config-video-8900996323fba16c.js create mode 100644 static/admin/_next/static/chunks/pages/config-video-a0ab2fc230af702e.js delete mode 100644 static/admin/_next/static/chunks/pages/federation/actions-422da4624fbeb2c1.js create mode 100644 static/admin/_next/static/chunks/pages/federation/actions-de25449cc81c35a7.js delete mode 100644 static/admin/_next/static/chunks/pages/federation/followers-109a37a87cd1e853.js create mode 100644 static/admin/_next/static/chunks/pages/federation/followers-c470c6527a07b6bf.js create mode 100644 static/admin/_next/static/chunks/pages/index-897a1278e0c03ce5.js delete mode 100644 static/admin/_next/static/chunks/pages/index-9842a65e7b745f4a.js create mode 100644 static/admin/_next/static/chunks/pages/logs-0592f198dee88b89.js delete mode 100644 static/admin/_next/static/chunks/pages/logs-0c88340ee0581afe.js delete mode 100644 static/admin/_next/static/chunks/pages/upgrade-b92a312631182fe0.js create mode 100644 static/admin/_next/static/chunks/pages/upgrade-cc902d2847e8b250.js rename static/admin/_next/static/chunks/pages/{viewer-info-25b071a2cf7b79a7.js => viewer-info-0bf243355eac2294.js} (56%) rename static/admin/_next/static/chunks/pages/{webhooks-147eacbf99197b5b.js => webhooks-a736f2d3f9c0e432.js} (63%) diff --git a/static/admin/404/index.html b/static/admin/404/index.html index a40f66940..d3f7e5b26 100644 --- a/static/admin/404/index.html +++ b/static/admin/404/index.html @@ -1 +1 @@ -404: This page could not be found

What is your stream about today?

What is your stream about today?
Offline

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

What is your stream about today?

What is your stream about today?
Offline

404

This page could not be found.

\ No newline at end of file diff --git a/static/admin/_next/static/ujCQ61XngWEXs3PFfjrF1/_buildManifest.js b/static/admin/_next/static/5Kti0VM79O0k39cJjSTIM/_buildManifest.js similarity index 50% rename from static/admin/_next/static/ujCQ61XngWEXs3PFfjrF1/_buildManifest.js rename to static/admin/_next/static/5Kti0VM79O0k39cJjSTIM/_buildManifest.js index f8b251134..85f42ebd6 100644 --- a/static/admin/_next/static/ujCQ61XngWEXs3PFfjrF1/_buildManifest.js +++ b/static/admin/_next/static/5Kti0VM79O0k39cJjSTIM/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,c,a,e,t,i,f,n,o,d,h,b,g,r){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,c,a,e,t,i,d,"static/chunks/494-3ac98f156ce0f3c4.js","static/chunks/pages/index-9842a65e7b745f4a.js"],"/_error":["static/chunks/pages/_error-a3f18418a2205cb8.js"],"/access-tokens":[s,c,"static/chunks/pages/access-tokens-b6a250590368e866.js"],"/actions":[s,"static/chunks/pages/actions-46805fd86104161d.js"],"/chat/messages":[h,s,c,i,b,"static/chunks/pages/chat/messages-a83b5d7cee6681d8.js"],"/chat/users":[h,s,c,a,i,b,"static/chunks/pages/chat/users-9302c9a7edcbfeaa.js"],"/config-chat":["static/chunks/pages/config-chat-ffaf9ca96341c8d1.js"],"/config-federation":["static/chunks/829-ae918a52d7284b6c.js","static/chunks/pages/config-federation-e253fd1ac1f8c2c1.js"],"/config-public-details":[s,f,"static/css/e773f9ad06a56dc3.css","static/chunks/589-6294649507627108.js",g,"static/chunks/pages/config-public-details-bfb9f2ead4c611ae.js"],"/config-server-details":[r,"static/chunks/pages/config-server-details-ac3ec9882f1108ad.js"],"/config-social-items":[s,g,"static/chunks/pages/config-social-items-10965d8998959b50.js"],"/config-storage":["static/chunks/473-8bae902fef0cddf9.js","static/chunks/pages/config-storage-220a84029c23a31c.js"],"/config-video":[s,r,"static/chunks/598-27652a9f6a5dd1ce.js","static/chunks/pages/config-video-8900996323fba16c.js"],"/federation/actions":[s,c,"static/chunks/pages/federation/actions-422da4624fbeb2c1.js"],"/federation/followers":[s,c,a,"static/chunks/pages/federation/followers-109a37a87cd1e853.js"],"/hardware-info":[n,c,a,e,t,o,f,"static/chunks/pages/hardware-info-25a13b903320aa45.js"],"/help":[a,e,"static/chunks/566-e7a54e2c44240846.js","static/chunks/pages/help-38617ff2920314ce.js"],"/logs":[s,c,d,"static/chunks/pages/logs-0c88340ee0581afe.js"],"/stream-health":[n,c,a,e,t,o,"static/chunks/pages/stream-health-07edce46fe8b0aec.js"],"/upgrade":[s,"static/chunks/655-43733c05714a5b2d.js","static/chunks/pages/upgrade-b92a312631182fe0.js"],"/viewer-info":[n,s,c,a,e,t,i,o,f,"static/chunks/pages/viewer-info-25b071a2cf7b79a7.js"],"/webhooks":[s,"static/chunks/pages/webhooks-147eacbf99197b5b.js"],sortedPages:["/","/_app","/_error","/access-tokens","/actions","/chat/messages","/chat/users","/config-chat","/config-federation","/config-public-details","/config-server-details","/config-social-items","/config-storage","/config-video","/federation/actions","/federation/followers","/hardware-info","/help","/logs","/stream-health","/upgrade","/viewer-info","/webhooks"]}}("static/chunks/551-dd0cc453e2831abd.js","static/chunks/91-e5a929ca024e0e59.js","static/chunks/961-ac2b719da6ab2505.js","static/chunks/751-abe99b113d84cfbc.js","static/chunks/763-d343aaa1bc096a3a.js","static/chunks/533-2f63c37b8986cca1.js","static/chunks/910-84d3e15e9e15e661.js","static/chunks/36bcf0ca-c1f70baa5cd8cbbf.js","static/chunks/80-979a39dd33b1f687.js","static/chunks/429-300167f2a5111590.js","static/chunks/29107295-1494f237b9e407ad.js","static/chunks/464-00e3383613901cc1.js","static/chunks/17-942a593b07a7ad59.js","static/chunks/578-2096d3184f3c9389.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s,c,e,a,t,i,n,f,o,d,h,b,g,r){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,c,e,a,t,i,d,"static/chunks/494-3ac98f156ce0f3c4.js","static/chunks/pages/index-897a1278e0c03ce5.js"],"/_error":["static/chunks/pages/_error-a3f18418a2205cb8.js"],"/access-tokens":[s,c,"static/chunks/pages/access-tokens-9dbb873b6a36d6fa.js"],"/actions":[s,"static/chunks/pages/actions-b20fbe2814f0b5b2.js"],"/chat/messages":[h,s,c,i,b,"static/chunks/pages/chat/messages-b8f889ed815f672a.js"],"/chat/users":[h,s,c,e,i,b,"static/chunks/pages/chat/users-e0d4a19491972de5.js"],"/config-chat":["static/chunks/pages/config-chat-ffaf9ca96341c8d1.js"],"/config-federation":["static/chunks/829-ae918a52d7284b6c.js","static/chunks/pages/config-federation-e253fd1ac1f8c2c1.js"],"/config-public-details":[s,n,"static/css/e773f9ad06a56dc3.css","static/chunks/589-6294649507627108.js",g,"static/chunks/pages/config-public-details-f428bad30447489a.js"],"/config-server-details":[r,"static/chunks/pages/config-server-details-ac3ec9882f1108ad.js"],"/config-social-items":[s,g,"static/chunks/pages/config-social-items-79358d9656cc6981.js"],"/config-storage":["static/chunks/473-8bae902fef0cddf9.js","static/chunks/pages/config-storage-220a84029c23a31c.js"],"/config-video":[s,r,"static/chunks/598-27652a9f6a5dd1ce.js","static/chunks/pages/config-video-a0ab2fc230af702e.js"],"/federation/actions":[s,c,"static/chunks/pages/federation/actions-de25449cc81c35a7.js"],"/federation/followers":[s,c,e,"static/chunks/pages/federation/followers-c470c6527a07b6bf.js"],"/hardware-info":[f,c,e,a,t,o,n,"static/chunks/pages/hardware-info-25a13b903320aa45.js"],"/help":[e,a,"static/chunks/566-e7a54e2c44240846.js","static/chunks/pages/help-38617ff2920314ce.js"],"/logs":[s,c,d,"static/chunks/pages/logs-0592f198dee88b89.js"],"/stream-health":[f,c,e,a,t,o,"static/chunks/pages/stream-health-07edce46fe8b0aec.js"],"/upgrade":[s,"static/chunks/655-37148fe20945e086.js","static/chunks/pages/upgrade-cc902d2847e8b250.js"],"/viewer-info":[f,s,c,e,a,t,i,o,n,"static/chunks/pages/viewer-info-0bf243355eac2294.js"],"/webhooks":[s,"static/chunks/pages/webhooks-a736f2d3f9c0e432.js"],sortedPages:["/","/_app","/_error","/access-tokens","/actions","/chat/messages","/chat/users","/config-chat","/config-federation","/config-public-details","/config-server-details","/config-social-items","/config-storage","/config-video","/federation/actions","/federation/followers","/hardware-info","/help","/logs","/stream-health","/upgrade","/viewer-info","/webhooks"]}}("static/chunks/962-de55aae75997b1c4.js","static/chunks/91-e5a929ca024e0e59.js","static/chunks/961-ac2b719da6ab2505.js","static/chunks/751-abe99b113d84cfbc.js","static/chunks/763-d343aaa1bc096a3a.js","static/chunks/533-2f63c37b8986cca1.js","static/chunks/910-84d3e15e9e15e661.js","static/chunks/36bcf0ca-c1f70baa5cd8cbbf.js","static/chunks/80-979a39dd33b1f687.js","static/chunks/429-300167f2a5111590.js","static/chunks/29107295-1494f237b9e407ad.js","static/chunks/464-0371726593a593d7.js","static/chunks/17-bc534f742299bd9c.js","static/chunks/578-2096d3184f3c9389.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/admin/_next/static/ujCQ61XngWEXs3PFfjrF1/_middlewareManifest.js b/static/admin/_next/static/5Kti0VM79O0k39cJjSTIM/_middlewareManifest.js similarity index 100% rename from static/admin/_next/static/ujCQ61XngWEXs3PFfjrF1/_middlewareManifest.js rename to static/admin/_next/static/5Kti0VM79O0k39cJjSTIM/_middlewareManifest.js diff --git a/static/admin/_next/static/ujCQ61XngWEXs3PFfjrF1/_ssgManifest.js b/static/admin/_next/static/5Kti0VM79O0k39cJjSTIM/_ssgManifest.js similarity index 100% rename from static/admin/_next/static/ujCQ61XngWEXs3PFfjrF1/_ssgManifest.js rename to static/admin/_next/static/5Kti0VM79O0k39cJjSTIM/_ssgManifest.js diff --git a/static/admin/_next/static/chunks/17-942a593b07a7ad59.js b/static/admin/_next/static/chunks/17-942a593b07a7ad59.js deleted file mode 100644 index cee781b34..000000000 --- a/static/admin/_next/static/chunks/17-942a593b07a7ad59.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17],{91017:function(e,n,t){t.d(n,{Z:function(){return A}});var a=t(34051),r=t.n(a),l=t(85893),o=t(67294),i=t(84916),s=t(71577),c=t(69677),u=t(6551),d=t(52455),f=t(48689),p=t(38939),m=t(58827),h=t(25964);function v(e){var n=e.iconList,t=e.selectedOption,a=e.onSelected,r=""===t?null:t;return(0,l.jsxs)("div",{className:"social-dropdown-container",children:[(0,l.jsx)("p",{className:"description",children:"If you are looking for a platform name not on this list, please select Other and type in your own name. A logo will not be provided."}),(0,l.jsxs)("div",{className:"formfield-container",children:[(0,l.jsx)("div",{className:"label-side",children:(0,l.jsx)("span",{className:"formfield-label",children:"Social Platform"})}),(0,l.jsx)("div",{className:"input-side",children:(0,l.jsxs)(p.Z,{style:{width:240},className:"social-dropdown",placeholder:"Social platform...",defaultValue:r,value:r,onSelect:function(e){a&&a(e)},children:[n.map((function(e){var n=e.platform,t=e.icon,a=e.key,r="".concat(m.WB).concat(t.slice(1));return(0,l.jsxs)(p.Z.Option,{className:"social-option",value:a,children:[(0,l.jsx)("span",{className:"option-icon",children:(0,l.jsx)("img",{src:r,alt:"",className:"option-icon"})}),(0,l.jsx)("span",{className:"option-label",children:n})]},"platform-".concat(a))})),(0,l.jsx)(p.Z.Option,{className:"social-option",value:h.z_,children:"Other..."},"platform-".concat(h.z_))]})})]})]})}var j=t(35159),x=t(19411),y=t(48419),b=t(83192),N=t(78464);function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);te.length)&&(n=e.length);for(var t=0,a=new Array(n);t0){var z=v[0]/2;M.paddingLeft=z,M.paddingRight=z}if(v&&v[1]>0&&!x){var D=v[1]/2;M.paddingTop=D,M.paddingBottom=D}return A&&(M.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(A),!1!==y||M.minWidth||(M.minWidth=0)),c.createElement("div",(0,a.Z)({},P,{style:(0,a.Z)((0,a.Z)({},M),k),className:S,ref:t}),N)}));p.displayName="Col";var m=p},27049:function(e,t,n){var r=n(87462),a=n(4942),o=n(67294),c=n(94184),i=n.n(c),s=n(59844),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?"-".concat(h):h,C=!!x,O="left"===h&&null!=v,N="right"===h&&null!=v,A=i()(j,"".concat(j,"-").concat(p),(t={},(0,a.Z)(t,"".concat(j,"-with-text"),C),(0,a.Z)(t,"".concat(j,"-with-text").concat(w),C),(0,a.Z)(t,"".concat(j,"-dashed"),!!b),(0,a.Z)(t,"".concat(j,"-plain"),!!Z),(0,a.Z)(t,"".concat(j,"-rtl"),"rtl"===u),(0,a.Z)(t,"".concat(j,"-no-default-orientation-margin-left"),O),(0,a.Z)(t,"".concat(j,"-no-default-orientation-margin-right"),N),t),y),k=(0,r.Z)((0,r.Z)({},O&&{marginLeft:v}),N&&{marginRight:v});return o.createElement("div",(0,r.Z)({className:A},g,{role:"separator"}),x&&o.createElement("span",{className:"".concat(j,"-inner-text"),style:k},x))}},99134:function(e,t,n){var r=(0,n(67294).createContext)({});t.Z=r},25968:function(e,t,n){n.d(t,{Z:function(){return y}});var r=n(87462),a=n(4942),o=n(71002),c=n(97685),i=n(67294),s=n(94184),l=n.n(s),u=n(59844),d=n(99134),f=n(93355),p=n(24308),m=n(98082),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?z[0]/-2:void 0,R=z[1]>0?z[1]/-2:void 0;if(I&&(L.marginLeft=I,L.marginRight=I),E){var B=(0,c.Z)(z,2);L.rowGap=B[1]}else R&&(L.marginTop=R,L.marginBottom=R);var F=(0,c.Z)(z,2),_=F[0],U=F[1],V=i.useMemo((function(){return{gutter:[_,U],wrap:j,supportFlexGap:E}}),[_,U,j,E]);return i.createElement(d.Z.Provider,{value:V},i.createElement("div",(0,r.Z)({},w,{className:D,style:(0,r.Z)((0,r.Z)({},L),x),ref:t}),b))})));v.displayName="Row";var y=v},66192:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(34051),a=n.n(r),o=n(85893),c=n(52455),i=n(71577),s=n(21640),l=n(82911),u=n(84674),d=n(58827);function f(e,t,n,r,a,o,c){try{var i=e[o](c),s=i.value}catch(l){return void n(l)}i.done?t(s):Promise.resolve(s).then(r,a)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){f(o,r,a,c,i,"next",e)}function i(e){f(o,r,a,c,i,"throw",e)}c(void 0)}))}}function m(e){var t=e.user,n=e.isEnabled,r=e.label,f=e.onClick;function m(){return(m=p(a().mark((function e(t){var r,o,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,o={userId:r,enabled:!n},e.prev=2,e.next=5,(0,d.rQ)(d.NM,{data:o,method:"POST",auth:!0});case 5:return c=e.sent,e.abrupt("return",c.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}var h=n?"ban":"unban",v=n?(0,o.jsx)(s.Z,{style:{color:"var(--ant-error)"}}):(0,o.jsx)(l.Z,{style:{color:"var(--ant-warning)"}}),y=(0,o.jsxs)(o.Fragment,{children:["Are you sure you want to ",h," ",(0,o.jsx)("strong",{children:t.displayName}),n?" and remove their messages?":"?"]});return(0,o.jsx)(i.Z,{onClick:function(){c.Z.confirm({title:"Confirm ".concat(h),content:y,onCancel:function(){},onOk:function(){return new Promise((function(e,n){var r=function(e){return m.apply(this,arguments)}(t);r?setTimeout((function(){e(r),null===f||void 0===f||f()}),3e3):n()}))},okType:"danger",okText:n?"Absolutely":null,icon:v})},size:"small",icon:n?(0,o.jsx)(u.Z,{twoToneColor:"#ff4d4f"}):null,className:"block-user-button",children:r||h})}m.defaultProps={label:"",onClick:null}},31386:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(85893),a=n(67294),o=n(94199),c=n(52455),i=n(84916),s=n(25968),l=n(6226),u=n(27049),d=n(26713),f=n(85533),p=n(58091),m=n(96486),h=n(66192),v=n(34051),y=n.n(v),x=n(71577),b=n(21640),Z=n(82911),g=n(84674),j=n(1413),w={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z",fill:e}},{tag:"path",attrs:{d:"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM632.8 328H688c6.5 0 10.3 7.4 6.5 12.7L481.9 633.4a16.1 16.1 0 01-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89.1 150.9-207.8c3-4.1 7.9-6.6 13-6.6z",fill:t}},{tag:"path",attrs:{d:"M404.2 453.3c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z",fill:e}}]}},name:"safety-certificate",theme:"twotone"},C=n(42922),O=function(e,t){return a.createElement(C.Z,(0,j.Z)((0,j.Z)({},e),{},{ref:t,icon:w}))};O.displayName="SafetyCertificateTwoTone";var N=a.forwardRef(O),A=n(58827);function k(e,t,n,r,a,o,c){try{var i=e[o](c),s=i.value}catch(l){return void n(l)}i.done?t(s):Promise.resolve(s).then(r,a)}function P(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){k(o,r,a,c,i,"next",e)}function i(e){k(o,r,a,c,i,"throw",e)}c(void 0)}))}}function T(e){var t,n=e.user,a=e.onClick;function o(){return(o=P(y().mark((function e(t,n){var r,a,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,a={userId:r,isModerator:n},e.prev=2,e.next=5,(0,A.rQ)(A.jr,{data:a,method:"POST",auth:!0});case 5:return o=e.sent,e.abrupt("return",o.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}var i=null===(t=n.scopes)||void 0===t?void 0:t.includes("MODERATOR"),s=i?"remove moderator":"add moderator",l=i?(0,r.jsx)(b.Z,{style:{color:"var(--ant-error)"}}):(0,r.jsx)(Z.Z,{style:{color:"var(--ant-warning)"}}),u=(0,r.jsxs)(r.Fragment,{children:["Are you sure you want to ",s," ",(0,r.jsx)("strong",{children:n.displayName}),"?"]});return(0,r.jsx)(x.Z,{onClick:function(){c.Z.confirm({title:"Confirm ".concat(s),content:u,onCancel:function(){},onOk:function(){return new Promise((function(e,t){var r=function(e,t){return o.apply(this,arguments)}(n,!i);r?setTimeout((function(){e(r),null===a||void 0===a||a()}),3e3):t()}))},okType:"danger",okText:i?"Yup!":null,icon:l})},size:"small",icon:i?(0,r.jsx)(g.Z,{twoToneColor:"#ff4d4f"}):(0,r.jsx)(N,{twoToneColor:"#22bb44"}),className:"block-user-button",children:s})}T.defaultProps={onClick:null};var E=n(20643),S=n(2766);function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&C&&(M=new Date(C),D.reverse());var L=new Date(j),I=(0,p.Z)(L,"PP pp"),R=M?(0,f.Z)(M):null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{title:(0,r.jsxs)(r.Fragment,{children:["Created at: ",I,".",(0,r.jsx)("br",{})," Click for more info."]}),placement:"bottomLeft",children:(0,r.jsx)("button",{type:"button","aria-label":"Display more details about this user",className:"user-item-container",onClick:function(){b(!0)},children:v})}),(0,r.jsx)(c.Z,{destroyOnClose:!0,width:600,cancelText:"Close",okButtonProps:{style:{display:"none"}},title:"User details: ".concat(g),visible:x,onOk:Z,onCancel:Z,children:(0,r.jsxs)("div",{className:"user-details",children:[(0,r.jsx)(i.Z.Title,{level:4,children:g}),(0,r.jsxs)("p",{className:"created-at",children:["User created at ",I,"."]}),(0,r.jsxs)(s.Z,{gutter:16,children:[n&&(0,r.jsxs)(l.Z,{md:M?12:24,children:[(0,r.jsx)(i.Z.Title,{level:5,children:"This user is currently connected to Chat."}),(0,r.jsxs)("ul",{className:"connection-info",children:[(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Active for:"})," ",(0,f.Z)(new Date(A))]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Messages sent:"})," ",k]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"User Agent:"}),(0,r.jsx)("br",{}),(0,S.AB)(P)]})]})]}),M&&(0,r.jsxs)(l.Z,{md:n?12:24,children:[(0,r.jsx)(i.Z.Title,{level:5,children:"This user is also seen as:"}),(0,r.jsx)("ul",{className:"previous-names-list",children:(0,m.uniq)(D).map((function(e,t){return(0,r.jsxs)("li",{className:0===t?"latest":"",children:[(0,r.jsx)("span",{className:"user-name-item",children:e}),0===t?" (Changed ".concat(R," ago)"):""]})}))})]})]}),(0,r.jsx)(u.Z,{}),(0,r.jsxs)(d.Z,{direction:"horizontal",children:[O?(0,r.jsxs)(r.Fragment,{children:["This user was banned on ",(0,r.jsx)("code",{children:(0,E.u)(O)}),".",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)(h.Z,{label:"Unban this user",user:t,isEnabled:!1,onClick:Z})]}):(0,r.jsx)(h.Z,{label:"Ban this user",user:t,isEnabled:!0,onClick:Z}),(0,r.jsx)(T,{user:t,onClick:Z})]})]})})]})}D.defaultProps={connectionInfo:null}},20643:function(e,t,n){n.d(t,{u:function(){return s},Z:function(){return l}});var r=n(85893),a=n(6551),o=n(58091),c=n(31386),i=n(66192);function s(e){return(0,o.Z)(new Date(e),"MMM d H:mma")}function l(e){var t=e.data,n=[{title:"Last Known Display Name",dataIndex:"displayName",key:"displayName",render:function(e,t){return(0,r.jsx)(c.Z,{user:t,children:(0,r.jsx)("span",{className:"display-name",children:e})})}},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:function(e){return s(e)},sorter:function(e,t){return new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime()},sortDirections:["descend","ascend"]},{title:"Disabled at",dataIndex:"disabledAt",key:"disabledAt",defaultSortOrder:"descend",render:function(e){return e?s(e):null},sorter:function(e,t){return new Date(e.disabledAt).getTime()-new Date(t.disabledAt).getTime()},sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:function(e,t){return(0,r.jsx)(i.Z,{user:t,isEnabled:!t.disabledAt})}}];return(0,r.jsx)(a.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:n,dataSource:t,size:"small",rowKey:"id"})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[464],{82911:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},c=n(42922),i=function(e,t){return a.createElement(c.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};i.displayName="QuestionCircleFilled";var s=a.forwardRef(i)},84674:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1413),a=n(67294),o={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm288.5 682.8L277.7 224C258 240 240 258 224 277.7l522.8 522.8C682.8 852.7 601 884 512 884c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372c89 0 170.8-31.3 234.8-83.5L224 277.7c16-19.7 34-37.7 53.7-53.7l522.8 522.8C852.7 682.8 884 601 884 512c0-205.4-166.6-372-372-372z",fill:t}}]}},name:"stop",theme:"twotone"},c=n(42922),i=function(e,t){return a.createElement(c.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};i.displayName="StopTwoTone";var s=a.forwardRef(i)},6226:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(4942),a=n(87462),o=n(71002),c=n(67294),i=n(94184),s=n.n(i),l=n(99134),u=n(59844),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0){var z=v[0]/2;M.paddingLeft=z,M.paddingRight=z}if(v&&v[1]>0&&!x){var D=v[1]/2;M.paddingTop=D,M.paddingBottom=D}return A&&(M.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(A),!1!==y||M.minWidth||(M.minWidth=0)),c.createElement("div",(0,a.Z)({},P,{style:(0,a.Z)((0,a.Z)({},M),k),className:S,ref:t}),N)}));p.displayName="Col";var m=p},27049:function(e,t,n){var r=n(87462),a=n(4942),o=n(67294),c=n(94184),i=n.n(c),s=n(59844),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?"-".concat(h):h,C=!!x,O="left"===h&&null!=v,N="right"===h&&null!=v,A=i()(j,"".concat(j,"-").concat(p),(t={},(0,a.Z)(t,"".concat(j,"-with-text"),C),(0,a.Z)(t,"".concat(j,"-with-text").concat(w),C),(0,a.Z)(t,"".concat(j,"-dashed"),!!b),(0,a.Z)(t,"".concat(j,"-plain"),!!Z),(0,a.Z)(t,"".concat(j,"-rtl"),"rtl"===u),(0,a.Z)(t,"".concat(j,"-no-default-orientation-margin-left"),O),(0,a.Z)(t,"".concat(j,"-no-default-orientation-margin-right"),N),t),y),k=(0,r.Z)((0,r.Z)({},O&&{marginLeft:v}),N&&{marginRight:v});return o.createElement("div",(0,r.Z)({className:A},g,{role:"separator"}),x&&o.createElement("span",{className:"".concat(j,"-inner-text"),style:k},x))}},99134:function(e,t,n){var r=(0,n(67294).createContext)({});t.Z=r},25968:function(e,t,n){n.d(t,{Z:function(){return y}});var r=n(87462),a=n(4942),o=n(71002),c=n(97685),i=n(67294),s=n(94184),l=n.n(s),u=n(59844),d=n(99134),f=n(93355),p=n(24308),m=n(98082),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?z[0]/-2:void 0,R=z[1]>0?z[1]/-2:void 0;if(I&&(L.marginLeft=I,L.marginRight=I),E){var B=(0,c.Z)(z,2);L.rowGap=B[1]}else R&&(L.marginTop=R,L.marginBottom=R);var F=(0,c.Z)(z,2),_=F[0],U=F[1],V=i.useMemo((function(){return{gutter:[_,U],wrap:j,supportFlexGap:E}}),[_,U,j,E]);return i.createElement(d.Z.Provider,{value:V},i.createElement("div",(0,r.Z)({},w,{className:D,style:(0,r.Z)((0,r.Z)({},L),x),ref:t}),b))})));v.displayName="Row";var y=v},66192:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(34051),a=n.n(r),o=n(85893),c=n(52455),i=n(71577),s=n(21640),l=n(82911),u=n(84674),d=n(58827);function f(e,t,n,r,a,o,c){try{var i=e[o](c),s=i.value}catch(l){return void n(l)}i.done?t(s):Promise.resolve(s).then(r,a)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){f(o,r,a,c,i,"next",e)}function i(e){f(o,r,a,c,i,"throw",e)}c(void 0)}))}}function m(e){var t=e.user,n=e.isEnabled,r=e.label,f=e.onClick;function m(){return(m=p(a().mark((function e(t){var r,o,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,o={userId:r,enabled:!n},e.prev=2,e.next=5,(0,d.rQ)(d.NM,{data:o,method:"POST",auth:!0});case 5:return c=e.sent,e.abrupt("return",c.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}var h=n?"ban":"unban",v=n?(0,o.jsx)(s.Z,{style:{color:"var(--ant-error)"}}):(0,o.jsx)(l.Z,{style:{color:"var(--ant-warning)"}}),y=(0,o.jsxs)(o.Fragment,{children:["Are you sure you want to ",h," ",(0,o.jsx)("strong",{children:t.displayName}),n?" and remove their messages?":"?"]});return(0,o.jsx)(i.Z,{onClick:function(){c.Z.confirm({title:"Confirm ".concat(h),content:y,onCancel:function(){},onOk:function(){return new Promise((function(e,n){var r=function(e){return m.apply(this,arguments)}(t);r?setTimeout((function(){e(r),null===f||void 0===f||f()}),3e3):n()}))},okType:"danger",okText:n?"Absolutely":null,icon:v})},size:"small",icon:n?(0,o.jsx)(u.Z,{twoToneColor:"#ff4d4f"}):null,className:"block-user-button",children:r||h})}m.defaultProps={label:"",onClick:null}},31386:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(85893),a=n(67294),o=n(94199),c=n(52455),i=n(84916),s=n(25968),l=n(6226),u=n(27049),d=n(26713),f=n(85533),p=n(58091),m=n(96486),h=n(66192),v=n(34051),y=n.n(v),x=n(71577),b=n(21640),Z=n(82911),g=n(84674),j=n(1413),w={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z",fill:e}},{tag:"path",attrs:{d:"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM632.8 328H688c6.5 0 10.3 7.4 6.5 12.7L481.9 633.4a16.1 16.1 0 01-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89.1 150.9-207.8c3-4.1 7.9-6.6 13-6.6z",fill:t}},{tag:"path",attrs:{d:"M404.2 453.3c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z",fill:e}}]}},name:"safety-certificate",theme:"twotone"},C=n(42922),O=function(e,t){return a.createElement(C.Z,(0,j.Z)((0,j.Z)({},e),{},{ref:t,icon:w}))};O.displayName="SafetyCertificateTwoTone";var N=a.forwardRef(O),A=n(58827);function k(e,t,n,r,a,o,c){try{var i=e[o](c),s=i.value}catch(l){return void n(l)}i.done?t(s):Promise.resolve(s).then(r,a)}function P(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function c(e){k(o,r,a,c,i,"next",e)}function i(e){k(o,r,a,c,i,"throw",e)}c(void 0)}))}}function T(e){var t,n=e.user,a=e.onClick;function o(){return(o=P(y().mark((function e(t,n){var r,a,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,a={userId:r,isModerator:n},e.prev=2,e.next=5,(0,A.rQ)(A.jr,{data:a,method:"POST",auth:!0});case 5:return o=e.sent,e.abrupt("return",o.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}var i=null===(t=n.scopes)||void 0===t?void 0:t.includes("MODERATOR"),s=i?"remove moderator":"add moderator",l=i?(0,r.jsx)(b.Z,{style:{color:"var(--ant-error)"}}):(0,r.jsx)(Z.Z,{style:{color:"var(--ant-warning)"}}),u=(0,r.jsxs)(r.Fragment,{children:["Are you sure you want to ",s," ",(0,r.jsx)("strong",{children:n.displayName}),"?"]});return(0,r.jsx)(x.Z,{onClick:function(){c.Z.confirm({title:"Confirm ".concat(s),content:u,onCancel:function(){},onOk:function(){return new Promise((function(e,t){var r=function(e,t){return o.apply(this,arguments)}(n,!i);r?setTimeout((function(){e(r),null===a||void 0===a||a()}),3e3):t()}))},okType:"danger",okText:i?"Yup!":null,icon:l})},size:"small",icon:i?(0,r.jsx)(g.Z,{twoToneColor:"#ff4d4f"}):(0,r.jsx)(N,{twoToneColor:"#22bb44"}),className:"block-user-button",children:s})}T.defaultProps={onClick:null};var E=n(20643),S=n(2766);function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&C&&(M=new Date(C),D.reverse());var L=new Date(j),I=(0,p.Z)(L,"PP pp"),R=M?(0,f.Z)(M):null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{title:(0,r.jsxs)(r.Fragment,{children:["Created at: ",I,".",(0,r.jsx)("br",{})," Click for more info."]}),placement:"bottomLeft",children:(0,r.jsx)("button",{type:"button","aria-label":"Display more details about this user",className:"user-item-container",onClick:function(){b(!0)},children:v})}),(0,r.jsx)(c.Z,{destroyOnClose:!0,width:600,cancelText:"Close",okButtonProps:{style:{display:"none"}},title:"User details: ".concat(g),visible:x,onOk:Z,onCancel:Z,children:(0,r.jsxs)("div",{className:"user-details",children:[(0,r.jsx)(i.Z.Title,{level:4,children:g}),(0,r.jsxs)("p",{className:"created-at",children:["User created at ",I,"."]}),(0,r.jsxs)(s.Z,{gutter:16,children:[n&&(0,r.jsxs)(l.Z,{md:M?12:24,children:[(0,r.jsx)(i.Z.Title,{level:5,children:"This user is currently connected to Chat."}),(0,r.jsxs)("ul",{className:"connection-info",children:[(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Active for:"})," ",(0,f.Z)(new Date(A))]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Messages sent:"})," ",k]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"User Agent:"}),(0,r.jsx)("br",{}),(0,S.AB)(P)]})]})]}),M&&(0,r.jsxs)(l.Z,{md:n?12:24,children:[(0,r.jsx)(i.Z.Title,{level:5,children:"This user is also seen as:"}),(0,r.jsx)("ul",{className:"previous-names-list",children:(0,m.uniq)(D).map((function(e,t){return(0,r.jsxs)("li",{className:0===t?"latest":"",children:[(0,r.jsx)("span",{className:"user-name-item",children:e}),0===t?" (Changed ".concat(R," ago)"):""]})}))})]})]}),(0,r.jsx)(u.Z,{}),(0,r.jsxs)(d.Z,{direction:"horizontal",children:[O?(0,r.jsxs)(r.Fragment,{children:["This user was banned on ",(0,r.jsx)("code",{children:(0,E.u)(O)}),".",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)(h.Z,{label:"Unban this user",user:t,isEnabled:!1,onClick:Z})]}):(0,r.jsx)(h.Z,{label:"Ban this user",user:t,isEnabled:!0,onClick:Z}),(0,r.jsx)(T,{user:t,onClick:Z})]})]})})]})}D.defaultProps={connectionInfo:null}},20643:function(e,t,n){n.d(t,{u:function(){return s},Z:function(){return l}});var r=n(85893),a=n(17962),o=n(58091),c=n(31386),i=n(66192);function s(e){return(0,o.Z)(new Date(e),"MMM d H:mma")}function l(e){var t=e.data,n=[{title:"Last Known Display Name",dataIndex:"displayName",key:"displayName",render:function(e,t){return(0,r.jsx)(c.Z,{user:t,children:(0,r.jsx)("span",{className:"display-name",children:e})})}},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:function(e){return s(e)},sorter:function(e,t){return new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime()},sortDirections:["descend","ascend"]},{title:"Disabled at",dataIndex:"disabledAt",key:"disabledAt",defaultSortOrder:"descend",render:function(e){return e?s(e):null},sorter:function(e,t){return new Date(e.disabledAt).getTime()-new Date(t.disabledAt).getTime()},sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:function(e,t){return(0,r.jsx)(i.Z,{user:t,isEnabled:!t.disabledAt})}}];return(0,r.jsx)(a.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:n,dataSource:t,size:"small",rowKey:"id"})}}}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/551-dd0cc453e2831abd.js b/static/admin/_next/static/chunks/551-dd0cc453e2831abd.js deleted file mode 100644 index 7714d087a..000000000 --- a/static/admin/_next/static/chunks/551-dd0cc453e2831abd.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[551],{57838:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(97685),o=t(67294);function a(){var e=o.useReducer((function(e){return e+1}),0);return(0,r.Z)(e,2)[1]}},24308:function(e,n,t){"use strict";t.d(n,{c4:function(){return a}});var r=t(4942),o=t(87462),a=["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,c=-1,u={},s={matchHandlers:{},dispatch:function(e){return u=e,l.forEach((function(e){return e(u)})),l.size>=1},subscribe:function(e){return l.size||this.register(),c+=1,l.set(c,e),e(u),c},unsubscribe:function(e){l.delete(e),l.size||this.unregister()},unregister:function(){var e=this;Object.keys(i).forEach((function(n){var t=i[n],r=e.matchHandlers[t];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),l.clear()},register:function(){var e=this;Object.keys(i).forEach((function(n){var t=i[n],a=function(t){var a=t.matches;e.dispatch((0,o.Z)((0,o.Z)({},u),(0,r.Z)({},n,a)))},l=window.matchMedia(t);l.addListener(a),e.matchHandlers[t]={mql:l,listener:a},a(l)}))}};n.ZP=s},32808:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(4942),o=t(87462),a=t(67294),i=t(94184),l=t.n(i),c=t(50132),u=t(74902),s=t(97685),d=t(10366),f=t(59844),p=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&(i=R().map((function(e){return a.createElement(E,{prefixCls:M,key:e.value.toString(),disabled:"disabled"in e?e.disabled:x.disabled,value:e.value,checked:-1!==k.indexOf(e.value),onChange:e.onChange,className:"".concat(T,"-item"),style:e.style},e.label)})));var A={toggleOption:function(e){var n=k.indexOf(e.value),t=(0,u.Z)(k);-1===n?t.push(e.value):t.splice(n,1),"value"in x||O(t);var r=R();null===b||void 0===b||b(t.filter((function(e){return-1!==D.indexOf(e)})).sort((function(e,n){return r.findIndex((function(n){return n.value===e}))-r.findIndex((function(e){return e.value===n}))})))},value:k,disabled:x.disabled,name:x.name,registerValue:function(e){I((function(n){return[].concat((0,u.Z)(n),[e])}))},cancelValue:function(e){I((function(n){return n.filter((function(n){return n!==e}))}))}},j=l()(T,(0,r.Z)({},"".concat(T,"-rtl"),"rtl"===Z),g);return a.createElement("div",(0,o.Z)({className:j,style:y},L,{ref:n}),a.createElement(v.Provider,{value:A},i))},h=a.forwardRef(m),g=a.memo(h),y=t(11941),b=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0?"".concat(n,"-slide-down"):"".concat(n,"-slide-up")}(),trigger:O,overlay:function(){return function(n){var t,r=e.overlay;t="function"===typeof r?r():r;var o=(t=i.Children.only("string"===typeof t?i.createElement("span",null,t):t)).props;(0,b.Z)(!o.mode||"vertical"===o.mode,"Dropdown",'mode="'.concat(o.mode,"\" is not supported for Dropdown's Menu."));var a=o.selectable,l=void 0!==a&&a,c=o.expandIcon,u="undefined"!==typeof c&&i.isValidElement(c)?c:i.createElement("span",{className:"".concat(n,"-menu-submenu-arrow")},i.createElement(s.Z,{className:"".concat(n,"-menu-submenu-arrow-icon")}));return"string"===typeof t.type?t:(0,C.Tm)(t,{mode:"vertical",selectable:l,expandIcon:u})}(Z)},placement:function(){var n=e.placement;if(!n)return"rtl"===f?"bottomRight":"bottomLeft";if(n.includes("Center")){var t=n.slice(0,n.indexOf("Center"));return(0,b.Z)(!n.includes("Center"),"Dropdown","You are using '".concat(n,"' placement in Dropdown, which is deprecated. Try to use '").concat(t,"' instead.")),t}return n}()}),S)});w.Button=y,w.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var Z=w,N=w},25378:function(e,n,t){"use strict";var r=t(67294),o=t(57838),a=t(24308);n.Z=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=(0,r.useRef)({}),t=(0,o.Z)();return(0,r.useEffect)((function(){var r=a.ZP.subscribe((function(r){n.current=r,e&&t()}));return function(){return a.ZP.unsubscribe(r)}}),[]),n.current}},38939:function(e,n,t){"use strict";t.d(n,{Z:function(){return ze}});var r=t(4942),o=t(87462),a=t(67294),i=t(10366),l=t(94184),c=t.n(l),u=t(74902),s=t(1413),d=t(97685),f=t(91),p=t(71002),v=t(80334),m=t(21770),h=t(15105),g=t(31131),y=t(42550),b=t(8410),x=t(84506);function C(e,n){var t,r=e.key;return"value"in e&&(t=e.value),null!==r&&void 0!==r?r:void 0!==t?t:"rc-index-key-".concat(n)}function E(e,n){var t=e||{};return{label:t.label||(n?"children":"label"),value:t.value||"value",options:t.options||"options"}}function w(e){var n=(0,s.Z)({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return(0,v.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),n}}),n}var Z=t(82532),N=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],S=function(e,n){var t=e.prefixCls,i=(e.disabled,e.visible),l=e.children,u=e.popupElement,d=e.containerWidth,p=e.animation,v=e.transitionName,m=e.dropdownStyle,h=e.dropdownClassName,g=e.direction,y=void 0===g?"ltr":g,b=e.placement,x=e.dropdownMatchSelectWidth,C=e.dropdownRender,E=e.dropdownAlign,w=e.getPopupContainer,S=e.empty,k=e.getTriggerDOMNode,O=e.onPopupVisibleChange,P=e.onPopupMouseEnter,K=(0,f.Z)(e,N),D="".concat(t,"-dropdown"),I=u;C&&(I=C(u));var R=a.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}}}}(x)}),[x]),M=p?"".concat(D,"-").concat(p):v,T=a.useRef(null);a.useImperativeHandle(n,(function(){return{getPopupElement:function(){return T.current}}}));var L=(0,s.Z)({minWidth:d},m);return"number"===typeof x?L.width=x:x&&(L.width=d),a.createElement(Z.Z,(0,o.Z)({},K,{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:b||("rtl"===y?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:D,popupTransitionName:M,popup:a.createElement("div",{ref:T,onMouseEnter:P},I),popupAlign:E,popupVisible:i,getPopupContainer:w,popupClassName:c()(h,(0,r.Z)({},"".concat(D,"-empty"),S)),popupStyle:L,getTriggerDOMNode:k,onPopupVisibleChange:O}),l)},k=a.forwardRef(S);k.displayName="SelectTrigger";var O=k,P=t(64217),K=t(48611),D=function(e){var n,t=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,l=e.onClick,u=e.children;return n="function"===typeof r?r(o):r,a.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==n?n:a.createElement("span",{className:c()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},u))},I=function(e,n){var t,r,o=e.prefixCls,i=e.id,l=e.inputElement,u=e.disabled,d=e.tabIndex,f=e.autoFocus,p=e.autoComplete,v=e.editable,m=e.activeDescendantId,h=e.value,g=e.maxLength,b=e.onKeyDown,x=e.onMouseDown,C=e.onChange,E=e.onPaste,w=e.onCompositionStart,Z=e.onCompositionEnd,N=e.open,S=e.attrs,k=l||a.createElement("input",null),O=k,P=O.ref,K=O.props,D=K.onKeyDown,I=K.onChange,R=K.onMouseDown,M=K.onCompositionStart,T=K.onCompositionEnd,L=K.style;return k=a.cloneElement(k,(0,s.Z)((0,s.Z)((0,s.Z)({type:"search"},K),{},{id:i,ref:(0,y.sQ)(n,P),disabled:u,tabIndex:d,autoComplete:p||"off",autoFocus:f,className:c()("".concat(o,"-selection-search-input"),null===(t=k)||void 0===t||null===(r=t.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":m},S),{},{value:v?h:"",maxLength:g,readOnly:!v,unselectable:v?null:"on",style:(0,s.Z)((0,s.Z)({},L),{},{opacity:v?null:0}),onKeyDown:function(e){b(e),D&&D(e)},onMouseDown:function(e){x(e),R&&R(e)},onChange:function(e){C(e),I&&I(e)},onCompositionStart:function(e){w(e),M&&M(e)},onCompositionEnd:function(e){Z(e),T&&T(e)},onPaste:E}))},R=a.forwardRef(I);R.displayName="Input";var M=R;function T(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var L="undefined"!==typeof window&&window.document&&window.document.documentElement;var A=function(e){e.preventDefault(),e.stopPropagation()},j=function(e){var n,t,o=e.id,i=e.prefixCls,l=e.values,u=e.open,s=e.searchValue,f=e.inputRef,p=e.placeholder,v=e.disabled,m=e.mode,h=e.showSearch,g=e.autoFocus,y=e.autoComplete,b=e.activeDescendantId,x=e.tabIndex,C=e.removeIcon,E=e.maxTagCount,w=e.maxTagTextLength,Z=e.maxTagPlaceholder,N=void 0===Z?function(e){return"+ ".concat(e.length," ...")}:Z,S=e.tagRender,k=e.onToggleOpen,O=e.onRemove,I=e.onInputChange,R=e.onInputPaste,T=e.onInputKeyDown,j=e.onInputMouseDown,H=e.onInputCompositionStart,z=e.onInputCompositionEnd,_=a.useRef(null),V=(0,a.useState)(0),F=(0,d.Z)(V,2),B=F[0],U=F[1],W=(0,a.useState)(!1),G=(0,d.Z)(W,2),Y=G[0],q=G[1],X="".concat(i,"-selection"),J=u||"tags"===m?s:"",$="tags"===m||h&&(u||Y);function Q(e,n,t,o,i){return a.createElement("span",{className:c()("".concat(X,"-item"),(0,r.Z)({},"".concat(X,"-item-disabled"),t)),title:"string"===typeof e||"number"===typeof e?e.toString():void 0},a.createElement("span",{className:"".concat(X,"-item-content")},n),o&&a.createElement(D,{className:"".concat(X,"-item-remove"),onMouseDown:A,onClick:i,customizeIcon:C},"\xd7"))}n=function(){U(_.current.scrollWidth)},t=[J],L?a.useLayoutEffect(n,t):a.useEffect(n,t);var ee=a.createElement("div",{className:"".concat(X,"-search"),style:{width:B},onFocus:function(){q(!0)},onBlur:function(){q(!1)}},a.createElement(M,{ref:f,open:u,prefixCls:i,id:o,inputElement:null,disabled:v,autoFocus:g,autoComplete:y,editable:$,activeDescendantId:b,value:J,onKeyDown:T,onMouseDown:j,onChange:I,onPaste:R,onCompositionStart:H,onCompositionEnd:z,tabIndex:x,attrs:(0,P.Z)(e,!0)}),a.createElement("span",{ref:_,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},J,"\xa0")),ne=a.createElement(K.Z,{prefixCls:"".concat(X,"-overflow"),data:l,renderItem:function(e){var n=e.disabled,t=e.label,r=e.value,o=!v&&!n,i=t;if("number"===typeof w&&("string"===typeof t||"number"===typeof t)){var l=String(i);l.length>w&&(i="".concat(l.slice(0,w),"..."))}var c=function(n){n&&n.stopPropagation(),O(e)};return"function"===typeof S?function(e,n,t,r,o){return a.createElement("span",{onMouseDown:function(e){A(e),k(!u)}},S({label:n,value:e,disabled:t,closable:r,onClose:o}))}(r,i,n,o,c):Q(t,i,n,o,c)},renderRest:function(e){var n="function"===typeof N?N(e):N;return Q(n,n,!1)},suffix:ee,itemKey:"key",maxCount:E});return a.createElement(a.Fragment,null,ne,!l.length&&!J&&a.createElement("span",{className:"".concat(X,"-placeholder")},p))},H=function(e){var n=e.inputElement,t=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,l=e.autoFocus,c=e.autoComplete,u=e.activeDescendantId,s=e.mode,f=e.open,p=e.values,v=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,y=e.activeValue,b=e.maxLength,x=e.onInputKeyDown,C=e.onInputMouseDown,E=e.onInputChange,w=e.onInputPaste,Z=e.onInputCompositionStart,N=e.onInputCompositionEnd,S=a.useState(!1),k=(0,d.Z)(S,2),O=k[0],K=k[1],D="combobox"===s,I=D||h,R=p[0],T=g||"";D&&y&&!O&&(T=y),a.useEffect((function(){D&&K(!1)}),[D,y]);var L=!("combobox"!==s&&!f&&!h)&&!!T,A=!R||"string"!==typeof R.label&&"number"!==typeof R.label?void 0:R.label.toString();return a.createElement(a.Fragment,null,a.createElement("span",{className:"".concat(t,"-selection-search")},a.createElement(M,{ref:o,prefixCls:t,id:r,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:c,editable:I,activeDescendantId:u,value:T,onKeyDown:x,onMouseDown:C,onChange:function(e){K(!0),E(e)},onPaste:w,onCompositionStart:Z,onCompositionEnd:N,tabIndex:m,attrs:(0,P.Z)(e,!0),maxLength:D?b:void 0})),!D&&R&&!L&&a.createElement("span",{className:"".concat(t,"-selection-item"),title:A},R.label),function(){if(R)return null;var e=L?{visibility:"hidden"}:void 0;return a.createElement("span",{className:"".concat(t,"-selection-placeholder"),style:e},v)}())};function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=a.useRef(null),t=a.useRef(null);function r(r){(r||null===n.current)&&(n.current=r),window.clearTimeout(t.current),t.current=window.setTimeout((function(){n.current=null}),e)}return a.useEffect((function(){return function(){window.clearTimeout(t.current)}}),[]),[function(){return n.current},r]}var _=function(e,n){var t=(0,a.useRef)(null),r=(0,a.useRef)(!1),i=e.prefixCls,l=e.open,c=e.mode,u=e.showSearch,s=e.tokenWithEnter,f=e.onSearch,p=e.onSearchSubmit,v=e.onToggleOpen,m=e.onInputKeyDown,g=e.domRef;a.useImperativeHandle(n,(function(){return{focus:function(){t.current.focus()},blur:function(){t.current.blur()}}}));var y=z(0),b=(0,d.Z)(y,2),x=b[0],C=b[1],E=(0,a.useRef)(null),w=function(e){!1!==f(e,!0,r.current)&&v(!0)},Z={inputRef:t,onInputKeyDown:function(e){var n,t=e.which;t!==h.Z.UP&&t!==h.Z.DOWN||e.preventDefault(),m&&m(e),t!==h.Z.ENTER||"tags"!==c||r.current||l||null===p||void 0===p||p(e.target.value),n=t,[h.Z.ESC,h.Z.SHIFT,h.Z.BACKSPACE,h.Z.TAB,h.Z.WIN_KEY,h.Z.ALT,h.Z.META,h.Z.WIN_KEY_RIGHT,h.Z.CTRL,h.Z.SEMICOLON,h.Z.EQUALS,h.Z.CAPS_LOCK,h.Z.CONTEXT_MENU,h.Z.F1,h.Z.F2,h.Z.F3,h.Z.F4,h.Z.F5,h.Z.F6,h.Z.F7,h.Z.F8,h.Z.F9,h.Z.F10,h.Z.F11,h.Z.F12].includes(n)||v(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var n=e.target.value;if(s&&E.current&&/[\r\n]/.test(E.current)){var t=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(t,E.current)}E.current=null,w(n)},onInputPaste:function(e){var n=e.clipboardData.getData("text");E.current=n},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&w(e.target.value)}},N="multiple"===c||"tags"===c?a.createElement(j,(0,o.Z)({},e,Z)):a.createElement(H,(0,o.Z)({},e,Z));return a.createElement("div",{ref:g,className:"".concat(i,"-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=x();e.target===t.current||n||e.preventDefault(),("combobox"===c||u&&n)&&l||(l&&f("",!0,!1),v())}},N)},V=a.forwardRef(_);V.displayName="Selector";var F=V;var B=a.createContext(null);var U=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],W=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function G(e){return"tags"===e||"multiple"===e}var Y=a.forwardRef((function(e,n){var t,i,l=e.id,v=e.prefixCls,C=e.className,E=e.showSearch,w=e.tagRender,Z=e.direction,N=e.omitDomProps,S=e.displayValues,k=e.onDisplayValuesChange,P=e.emptyOptions,K=e.notFoundContent,I=void 0===K?"Not Found":K,R=e.onClear,M=e.mode,T=e.disabled,L=e.loading,A=e.getInputElement,j=e.getRawInputElement,H=e.open,_=e.defaultOpen,V=e.onDropdownVisibleChange,Y=e.activeValue,q=e.onActiveValueChange,X=e.activeDescendantId,J=e.searchValue,$=e.onSearch,Q=e.onSearchSplit,ee=e.tokenSeparators,ne=e.allowClear,te=e.showArrow,re=e.inputIcon,oe=e.clearIcon,ae=e.OptionList,ie=e.animation,le=e.transitionName,ce=e.dropdownStyle,ue=e.dropdownClassName,se=e.dropdownMatchSelectWidth,de=e.dropdownRender,fe=e.dropdownAlign,pe=e.placement,ve=e.getPopupContainer,me=e.showAction,he=void 0===me?[]:me,ge=e.onFocus,ye=e.onBlur,be=e.onKeyUp,xe=e.onKeyDown,Ce=e.onMouseDown,Ee=(0,f.Z)(e,U),we=G(M),Ze=(void 0!==E?E:we)||"combobox"===M,Ne=(0,s.Z)({},Ee);W.forEach((function(e){delete Ne[e]})),null===N||void 0===N||N.forEach((function(e){delete Ne[e]}));var Se=a.useState(!1),ke=(0,d.Z)(Se,2),Oe=ke[0],Pe=ke[1];a.useEffect((function(){Pe((0,g.Z)())}),[]);var Ke=a.useRef(null),De=a.useRef(null),Ie=a.useRef(null),Re=a.useRef(null),Me=a.useRef(null),Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=a.useState(!1),t=(0,d.Z)(n,2),r=t[0],o=t[1],i=a.useRef(null),l=function(){window.clearTimeout(i.current)};return a.useEffect((function(){return l}),[]),[r,function(n,t){l(),i.current=window.setTimeout((function(){o(n),t&&t()}),e)},l]}(),Le=(0,d.Z)(Te,3),Ae=Le[0],je=Le[1],He=Le[2];a.useImperativeHandle(n,(function(){var e,n;return{focus:null===(e=Re.current)||void 0===e?void 0:e.focus,blur:null===(n=Re.current)||void 0===n?void 0:n.blur,scrollTo:function(e){var n;return null===(n=Me.current)||void 0===n?void 0:n.scrollTo(e)}}}));var ze=a.useMemo((function(){var e;if("combobox"!==M)return J;var n=null===(e=S[0])||void 0===e?void 0:e.value;return"string"===typeof n||"number"===typeof n?String(n):""}),[J,M,S]),_e="combobox"===M&&"function"===typeof A&&A()||null,Ve="function"===typeof j&&j(),Fe=(0,y.x1)(De,null===Ve||void 0===Ve||null===(t=Ve.props)||void 0===t?void 0:t.ref),Be=(0,m.Z)(void 0,{defaultValue:_,value:H}),Ue=(0,d.Z)(Be,2),We=Ue[0],Ge=Ue[1],Ye=We,qe=!I&&P;(T||qe&&Ye&&"combobox"===M)&&(Ye=!1);var Xe=!qe&&Ye,Je=a.useCallback((function(e){var n=void 0!==e?e:!Ye;Ye===n||T||(Ge(n),null===V||void 0===V||V(n))}),[T,Ye,Ge,V]),$e=a.useMemo((function(){return(ee||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ee]),Qe=function(e,n,t){var r=!0,o=e;null===q||void 0===q||q(null);var a=t?null:function(e,n){if(!n||!n.length)return null;var t=!1,r=function e(n,r){var o=(0,x.Z)(r),a=o[0],i=o.slice(1);if(!a)return[n];var l=n.split(a);return t=t||l.length>1,l.reduce((function(n,t){return[].concat((0,u.Z)(n),(0,u.Z)(e(t,i)))}),[]).filter((function(e){return e}))}(e,n);return t?r:null}(e,ee);return"combobox"!==M&&a&&(o="",null===Q||void 0===Q||Q(a),Je(!1),r=!1),$&&ze!==o&&$(o,{source:n?"typing":"effect"}),r};a.useEffect((function(){Ye||we||"combobox"===M||Qe("",!1,!1)}),[Ye]),a.useEffect((function(){We&&T&&Ge(!1),T&&je(!1)}),[T]);var en=z(),nn=(0,d.Z)(en,2),tn=nn[0],rn=nn[1],on=a.useRef(!1),an=[];a.useEffect((function(){return function(){an.forEach((function(e){return clearTimeout(e)})),an.splice(0,an.length)}}),[]);var ln,cn=a.useState(null),un=(0,d.Z)(cn,2),sn=un[0],dn=un[1],fn=a.useState({}),pn=(0,d.Z)(fn,2)[1];(0,b.Z)((function(){if(Xe){var e,n=Math.ceil(null===(e=Ke.current)||void 0===e?void 0:e.offsetWidth);sn===n||Number.isNaN(n)||dn(n)}}),[Xe]),Ve&&(ln=function(e){Je(e)}),function(e,n,t){var r=a.useRef(null);r.current={open:n,triggerOpen:t},a.useEffect((function(){function n(n){var t=n.target;t.shadowRoot&&n.composed&&(t=n.composedPath()[0]||t),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(t)&&e!==t}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",n),function(){return window.removeEventListener("mousedown",n)}}),[])}((function(){var e;return[Ke.current,null===(e=Ie.current)||void 0===e?void 0:e.getPopupElement()]}),Xe,Je);var vn,mn,hn=a.useMemo((function(){return(0,s.Z)((0,s.Z)({},e),{},{notFoundContent:I,open:Ye,triggerOpen:Xe,id:l,showSearch:Ze,multiple:we,toggleOpen:Je})}),[e,I,Xe,Ye,l,Ze,we,Je]),gn=void 0!==te?te:L||!we&&"combobox"!==M;gn&&(vn=a.createElement(D,{className:c()("".concat(v,"-arrow"),(0,r.Z)({},"".concat(v,"-arrow-loading"),L)),customizeIcon:re,customizeIconProps:{loading:L,searchValue:ze,open:Ye,focused:Ae,showSearch:Ze}}));!T&&ne&&(S.length||ze)&&(mn=a.createElement(D,{className:"".concat(v,"-clear"),onMouseDown:function(){null===R||void 0===R||R(),k([],{type:"clear",values:S}),Qe("",!1,!1)},customizeIcon:oe},"\xd7"));var yn,bn=a.createElement(ae,{ref:Me}),xn=c()(v,C,(i={},(0,r.Z)(i,"".concat(v,"-focused"),Ae),(0,r.Z)(i,"".concat(v,"-multiple"),we),(0,r.Z)(i,"".concat(v,"-single"),!we),(0,r.Z)(i,"".concat(v,"-allow-clear"),ne),(0,r.Z)(i,"".concat(v,"-show-arrow"),gn),(0,r.Z)(i,"".concat(v,"-disabled"),T),(0,r.Z)(i,"".concat(v,"-loading"),L),(0,r.Z)(i,"".concat(v,"-open"),Ye),(0,r.Z)(i,"".concat(v,"-customize-input"),_e),(0,r.Z)(i,"".concat(v,"-show-search"),Ze),i)),Cn=a.createElement(O,{ref:Ie,disabled:T,prefixCls:v,visible:Xe,popupElement:bn,containerWidth:sn,animation:ie,transitionName:le,dropdownStyle:ce,dropdownClassName:ue,direction:Z,dropdownMatchSelectWidth:se,dropdownRender:de,dropdownAlign:fe,placement:pe,getPopupContainer:ve,empty:P,getTriggerDOMNode:function(){return De.current},onPopupVisibleChange:ln,onPopupMouseEnter:function(){pn({})}},Ve?a.cloneElement(Ve,{ref:Fe}):a.createElement(F,(0,o.Z)({},e,{domRef:De,prefixCls:v,inputElement:_e,ref:Re,id:l,showSearch:Ze,mode:M,activeDescendantId:X,tagRender:w,values:S,open:Ye,onToggleOpen:Je,activeValue:Y,searchValue:ze,onSearch:Qe,onSearchSubmit:function(e){e&&e.trim()&&$(e,{source:"submit"})},onRemove:function(e){var n=S.filter((function(n){return n!==e}));k(n,{type:"remove",values:[e]})},tokenWithEnter:$e})));return yn=Ve?Cn:a.createElement("div",(0,o.Z)({className:xn},Ne,{ref:Ke,onMouseDown:function(e){var n,t=e.target,r=null===(n=Ie.current)||void 0===n?void 0:n.getPopupElement();if(r&&r.contains(t)){var o=setTimeout((function(){var e,n=an.indexOf(o);-1!==n&&an.splice(n,1),He(),Oe||r.contains(document.activeElement)||null===(e=Re.current)||void 0===e||e.focus()}));an.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l=0;i-=1){var l=o[i];if(!l.disabled){o.splice(i,1),a=l;break}}a&&k(o,{type:"remove",values:[a]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),d=1;d1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1,t=I.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];z(e);var t={source:n?"keyboard":"mouse"},r=I[e];r?x(r.value,e,t):x(null,-1,t)};(0,a.useEffect)((function(){_(!1!==C?L(0):-1)}),[I.length,p]),(0,a.useEffect)((function(){var e,n=setTimeout((function(){if(!s&&u&&1===Z.size){var e=Array.from(Z)[0],n=I.findIndex((function(n){return n.data.value===e}));-1!==n&&(_(n),T(n))}}));u&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(n)}}),[u,p]);var V=function(e){void 0!==e&&E(e,{selected:!Z.has(e)}),s||v(!1)};if(a.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var n=e.which,t=e.ctrlKey;switch(n){case h.Z.N:case h.Z.P:case h.Z.UP:case h.Z.DOWN:var r=0;if(n===h.Z.UP?r=-1:n===h.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&t&&(n===h.Z.N?r=1:n===h.Z.P&&(r=-1)),0!==r){var o=L(H+r,r);T(o),_(o,!0)}break;case h.Z.ENTER:var a=I[H];a&&!a.data.disabled?V(a.value):V(void 0),u&&e.preventDefault();break;case h.Z.ESC:v(!1),u&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){T(e)}}})),0===I.length)return a.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(K,"-empty"),onMouseDown:M},m);var F=Object.keys(N).map((function(e){return N[e]})),U=function(e){return e.label},W=function(e){var n=I[e];if(!n)return null;var t=n.data||{},r=t.value,i=n.group,c=(0,P.Z)(t,!0),u=U(n);return n?a.createElement("div",(0,o.Z)({"aria-label":"string"!==typeof u||i?null:u},c,{key:e,role:i?"presentation":"option",id:"".concat(l,"_list_").concat(e),"aria-selected":Z.has(r)}),r):null};return a.createElement(a.Fragment,null,a.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},W(H-1),W(H),W(H+1)),a.createElement($.Z,{itemKey:"key",ref:R,data:I,height:k,itemHeight:O,fullHeight:!1,onMouseDown:M,onScroll:g,virtual:S},(function(e,n){var t,i=e.group,l=e.groupOption,u=e.data,s=e.label,d=e.value,p=u.key;if(i)return a.createElement("div",{className:c()(K,"".concat(K,"-group"))},void 0!==s?s:p);var v=u.disabled,m=u.title,h=(u.children,u.style),g=u.className,y=(0,f.Z)(u,ee),b=(0,X.Z)(y,F),x=Z.has(d),C="".concat(K,"-option"),E=c()(K,C,g,(t={},(0,r.Z)(t,"".concat(C,"-grouped"),l),(0,r.Z)(t,"".concat(C,"-active"),H===n&&!v),(0,r.Z)(t,"".concat(C,"-disabled"),v),(0,r.Z)(t,"".concat(C,"-selected"),x),t)),N=U(e),S=!w||"function"===typeof w||x,k="number"===typeof N?N:N||d,O="string"===typeof k||"number"===typeof k?k.toString():void 0;return void 0!==m&&(O=m),a.createElement("div",(0,o.Z)({},b,{"aria-selected":x,className:E,title:O,onMouseMove:function(){H===n||v||_(n)},onClick:function(){v||V(d)},style:h}),a.createElement("div",{className:"".concat(C,"-content")},k),a.isValidElement(w)||x,S&&a.createElement(D,{className:"".concat(K,"-option-state"),customizeIcon:w,customizeIconProps:{isSelected:x}},x?"\u2713":null))})))},te=a.forwardRef(ne);te.displayName="OptionList";var re=te,oe=function(){return null};oe.isSelectOption=!0;var ae=oe,ie=function(){return null};ie.isSelectOptGroup=!0;var le=ie,ce=t(50344),ue=["children","value"],se=["children"];function de(e){var n=e.key,t=e.props,r=t.children,o=t.value,a=(0,f.Z)(t,ue);return(0,s.Z)({key:n,value:void 0!==o?o:n,children:r},a)}function fe(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,ce.Z)(e).map((function(e,t){if(!a.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,l=i.children,c=(0,f.Z)(i,se);return n||!r?de(e):(0,s.Z)((0,s.Z)({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},c),{},{options:fe(l)})})).filter((function(e){return e}))}function pe(e,n,t){return a.useMemo((function(){var r=e;!e&&(r=fe(n));var o=new Map,a=new Map;return function e(n){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i1&&void 0!==arguments[1]?arguments[1]:{},t=n.fieldNames,r=n.childrenAsData,o=[],a=E(t,!1),i=a.label,l=a.value,c=a.options;function u(e,n){e.forEach((function(e){var t=e[i];if(n||!(c in e)){var a=e[l];o.push({key:C(e,o.length),groupOption:n,data:e,label:t,value:a})}else{var s=t;void 0===s&&r&&(s=e.label),o.push({key:C(e,o.length),group:!0,data:e,label:s}),u(e[c],!0)}}))}return u(e,!1),o}(De,{fieldNames:ne,childrenAsData:$})}),[De,ne,$]),Re=function(e){var n=de(e);if(he(n),W&&(n.length!==Ze.length||n.some((function(e,n){var t;return(null===(t=Ze[n])||void 0===t?void 0:t.value)!==(null===e||void 0===e?void 0:e.value)})))){var t=U?n:n.map((function(e){return e.value})),r=n.map((function(e){return w(Ne(e.value))}));W(J?t:t[0],J?r:r[0])}},Me=a.useState(null),Te=(0,d.Z)(Me,2),Le=Te[0],Ae=Te[1],je=a.useState(0),He=(0,d.Z)(je,2),ze=He[0],_e=He[1],Ve=void 0!==L?L:"combobox"!==i,Fe=a.useCallback((function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.source,o=void 0===r?"keyboard":r;_e(n),v&&"combobox"===i&&null!==e&&"keyboard"===o&&Ae(String(e))}),[v,i]),Be=function(e,n){var t=function(){var n,t=Ne(e);return[U?{label:null===t||void 0===t?void 0:t[ne.label],value:e,key:null!==(n=null===t||void 0===t?void 0:t.key)&&void 0!==n?n:e}:e,w(t)]};if(n&&N){var r=t(),o=(0,d.Z)(r,2),a=o[0],i=o[1];N(a,i)}else if(!n&&S){var l=t(),c=(0,d.Z)(l,2),u=c[0],s=c[1];S(u,s)}},Ue=ye((function(e,n){var t,r=!J||n.selected;t=r?J?[].concat((0,u.Z)(Ze),[e]):[e]:Ze.filter((function(n){return n.value!==e})),Re(t),Be(e,r),"combobox"===i?Ae(""):G&&!Z||(ie(""),Ae(""))})),We=a.useMemo((function(){var e=!1!==j&&!1!==O;return(0,s.Z)((0,s.Z)({},le),{},{flattenOptions:Ie,onActiveValue:Fe,defaultActiveFirstOption:Ve,onSelect:Ue,menuItemSelectedIcon:A,rawValues:ke,fieldNames:ne,virtual:e,listHeight:z,listItemHeight:V,childrenAsData:$})}),[le,Ie,Fe,Ve,Ue,A,ke,ne,j,O,z,V,$]);return a.createElement(Q.Provider,{value:We},a.createElement(q,(0,o.Z)({},Y,{id:X,prefixCls:c,ref:n,omitDomProps:Ce,mode:i,displayValues:Se,onDisplayValuesChange:function(e,n){Re(e),"remove"!==n.type&&"clear"!==n.type||n.values.forEach((function(e){Be(e.value,!1)}))},searchValue:ae,onSearch:function(e,n){if(ie(e),Ae(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===i&&Re(e),null===b||void 0===b||b(e));else{var t=(e||"").trim();if(t){var r=Array.from(new Set([].concat((0,u.Z)(ke),[t])));Re(r),Be(t,!0),ie("")}}},onSearchSplit:function(e){var n=e;"tags"!==i&&(n=e.map((function(e){var n=ue.get(e);return null===n||void 0===n?void 0:n.value})).filter((function(e){return void 0!==e})));var t=Array.from(new Set([].concat((0,u.Z)(ke),(0,u.Z)(n))));Re(t),t.forEach((function(e){Be(e,!0)}))},dropdownMatchSelectWidth:O,OptionList:re,emptyOptions:!Ie.length,activeValue:Le,activeDescendantId:"".concat(X,"_list_").concat(ze)})))}));var we=Ee;we.Option=ae,we.OptGroup=le;var Ze=we,Ne=t(59844),Se=t(80882),ke=t(50888),Oe=t(63606),Pe=t(97937),Ke=t(4340),De=t(68795),Ie=t(9708);var Re=t(97647),Me=t(65223),Te=t(33603),Le=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=t}(c,h||1,o,a);return l.createElement(j,(0,i.Z)({},e,{colSpan:m,rowSpan:h,hovering:g,ref:n,onHover:r}))}));H.displayName="WrappedCell";var z=H,_=l.createContext(null);function V(e,n,t,r,o){var a,i,l=t[e]||{},c=t[n]||{};"left"===l.fixed?a=r.left[e]:"right"===c.fixed&&(i=r.right[n]);var u=!1,s=!1,d=!1,f=!1,p=t[n+1],v=t[e-1];if("rtl"===o){if(void 0!==a)f=!(v&&"left"===v.fixed);else if(void 0!==i){d=!(p&&"right"===p.fixed)}}else if(void 0!==a){u=!(p&&"left"===p.fixed)}else if(void 0!==i){s=!(v&&"right"===v.fixed)}return{fixLeft:a,fixRight:i,lastFixLeft:u,firstFixRight:s,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}function F(e){var n,t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,c=e.cellComponent,u=e.onHeaderRow,s=e.index,d=l.useContext(_),f=d.prefixCls,p=d.direction;u&&(n=u(t.map((function(e){return e.column})),s));var v=P(t.map((function(e){return e.column})));return l.createElement(a,n,t.map((function(e,n){var t,a=e.column,u=V(e.colStart,e.colEnd,o,r,p);return a&&a.onHeaderCell&&(t=e.column.onHeaderCell(a)),l.createElement(z,(0,i.Z)({},e,{ellipsis:a.ellipsis,align:a.align,component:c,prefixCls:f,key:v[n]},u,{additionalProps:t,rowType:"header"}))})))}F.displayName="HeaderRow";var B=F;var U=function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=l.useContext(_),i=a.prefixCls,c=a.getComponent,u=l.useMemo((function(){return function(e){var n=[];!function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n[o]=n[o]||[];var a=r;return t.filter(Boolean).map((function(t){var r={key:t.key,className:t.className||"",children:t.title,column:t,colStart:a},i=1,l=t.children;return l&&l.length>0&&(i=e(l,a,o+1).reduce((function(e,n){return e+n}),0),r.hasSubColumns=!0),"colSpan"in t&&(i=t.colSpan),"rowSpan"in t&&(r.rowSpan=t.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,n[o].push(r),a+=i,i}))}(e,0);for(var t=n.length,r=function(e){n[e].forEach((function(n){"rowSpan"in n||n.hasSubColumns||(n.rowSpan=t-e)}))},o=0;o1?o-1:0),i=1;i0?[].concat((0,f.Z)(e),(0,f.Z)(fe(o).map((function(e){return(0,d.Z)({fixed:r},e)})))):[].concat((0,f.Z)(e),[(0,d.Z)((0,d.Z)({},n),{},{fixed:r})])}),[])}var pe=function(e,n){var t=e.prefixCls,r=e.columns,a=e.children,i=e.expandable,c=e.expandedKeys,u=e.getRowKey,s=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,v=e.expandIconColumnIndex,m=e.direction,h=e.expandRowByClick,g=e.columnWidth,y=e.fixed,b=l.useMemo((function(){return r||de(a)}),[r,a]),x=l.useMemo((function(){if(i){var e,n=b.slice();if(!n.includes(ce)){var r=v||0;r>=0&&n.splice(r,0,ce)}0;var a=n.indexOf(ce);n=n.filter((function(e,n){return e!==ce||n===a}));var d,m=b[a];d="left"!==y&&!y||v?"right"!==y&&!y||v!==b.length?m?m.fixed:null:"right":"left";var x=(e={},(0,o.Z)(e,le,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,o.Z)(e,"title",""),(0,o.Z)(e,"fixed",d),(0,o.Z)(e,"className","".concat(t,"-row-expand-icon-cell")),(0,o.Z)(e,"width",g),(0,o.Z)(e,"render",(function(e,n,r){var o=u(n,r),a=c.has(o),i=!p||p(n),d=f({prefixCls:t,expanded:a,expandable:i,record:n,onExpand:s});return h?l.createElement("span",{onClick:function(e){return e.stopPropagation()}},d):d})),e);return n.map((function(e){return e===ce?x:e}))}return b.filter((function(e){return e!==ce}))}),[i,b,u,c,f,m]),C=l.useMemo((function(){var e=x;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,x,m]),E=l.useMemo((function(){return"rtl"===m?function(e){return e.map((function(e){var n=e.fixed,t=(0,N.Z)(e,se),r=n;return"left"===n?r="right":"right"===n&&(r="left"),(0,d.Z)({fixed:r},t)}))}(fe(C)):fe(C)}),[C,m]);return[C,E]};function ve(e){var n=(0,l.useRef)(e),t=(0,l.useState)({}),r=(0,a.Z)(t,2)[1],o=(0,l.useRef)(null),i=(0,l.useRef)([]);return(0,l.useEffect)((function(){return function(){o.current=null}}),[]),[n.current,function(e){i.current.push(e);var t=Promise.resolve();o.current=t,t.then((function(){if(o.current===t){var e=i.current,a=n.current;i.current=[],e.forEach((function(e){n.current=e(n.current)})),o.current=null,a!==n.current&&r({})}}))}]}var me=function(e,n,t){return(0,l.useMemo)((function(){for(var r=[],o=[],a=0,i=0,l=0;l=0;a-=1){var c=n[a],u=t&&t[a],s=u&&u[le];if(c||s||o){var d=s||{},f=(d.columnType,(0,N.Z)(d,he));r.unshift(l.createElement("col",(0,i.Z)({key:a,style:{width:c}},f))),o=!0}}return l.createElement("colgroup",null,r)};var ye=function(e){var n=e.className,t=e.children;return l.createElement("div",{className:n},t)};var be=["children"];var xe=l.createContext({});function Ce(e){return e.children}Ce.Row=function(e){var n=e.children,t=(0,N.Z)(e,be);return l.createElement("tr",t,n)},Ce.Cell=function(e){var n=e.className,t=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,c=e.rowSpan,u=e.align,s=l.useContext(_),d=s.prefixCls,f=s.direction,p=l.useContext(xe),v=p.scrollColumnIndex,m=p.stickyOffsets,h=t+a-1+1===v?a+1:a,g=V(t,t+h-1,p.flattenColumns,m,f);return l.createElement(z,(0,i.Z)({className:n,index:t,component:"td",prefixCls:d,record:null,dataIndex:null,align:u,colSpan:h,rowSpan:c,render:function(){return r}},g))};var Ee=Ce;var we=function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,o=l.useContext(_).prefixCls,a=r.length-1,i=r[a],c=l.useMemo((function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:(null===i||void 0===i?void 0:i.scrollbar)?a:null}}),[i,r,a,t]);return l.createElement(xe.Provider,{value:c},l.createElement("tfoot",{className:"".concat(o,"-summary")},n))},Ze=Ee;function Ne(e){var n,t=e.prefixCls,r=e.record,a=e.onExpand,i=e.expanded,c=e.expandable,s="".concat(t,"-row-expand-icon");if(!c)return l.createElement("span",{className:u()(s,"".concat(t,"-row-spaced"))});return l.createElement("span",{className:u()(s,(n={},(0,o.Z)(n,"".concat(t,"-row-expanded"),i),(0,o.Z)(n,"".concat(t,"-row-collapsed"),!i),n)),onClick:function(e){a(r,e),e.stopPropagation()}})}var Se=t(64019);function ke(e){var n=e.getBoundingClientRect(),t=document.documentElement;return{left:n.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}var Oe=function(e,n){var t,r,i=e.scrollBodyRef,c=e.onScroll,s=e.offsetScroll,f=e.container,p=l.useContext(_).prefixCls,v=(null===(t=i.current)||void 0===t?void 0:t.scrollWidth)||0,m=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,h=v&&m*(m/v),g=l.useRef(),y=ve({scrollLeft:0,isHiddenScrollBar:!1}),b=(0,a.Z)(y,2),x=b[0],C=b[1],w=l.useRef({delta:0,x:0}),Z=l.useState(!1),N=(0,a.Z)(Z,2),S=N[0],k=N[1],O=function(){k(!1)},P=function(e){var n,t=(e||(null===(n=window)||void 0===n?void 0:n.event)).buttons;if(S&&0!==t){var r=w.current.x+e.pageX-w.current.x-w.current.delta;r<=0&&(r=0),r+h>=m&&(r=m-h),c({scrollLeft:r/m*(v+2)}),w.current.x=e.pageX}else S&&k(!1)},K=function(){if(i.current){var e=ke(i.current).top,n=e+i.current.offsetHeight,t=f===window?document.documentElement.scrollTop+window.innerHeight:ke(f).top+f.clientHeight;n-(0,E.Z)()<=t||e>=t-s?C((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!0})})):C((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!1})}))}},D=function(e){C((function(n){return(0,d.Z)((0,d.Z)({},n),{},{scrollLeft:e/v*m||0})}))};return l.useImperativeHandle(n,(function(){return{setScrollLeft:D}})),l.useEffect((function(){var e=(0,Se.Z)(document.body,"mouseup",O,!1),n=(0,Se.Z)(document.body,"mousemove",P,!1);return K(),function(){e.remove(),n.remove()}}),[h,S]),l.useEffect((function(){var e=(0,Se.Z)(f,"scroll",K,!1),n=(0,Se.Z)(window,"resize",K,!1);return function(){e.remove(),n.remove()}}),[f]),l.useEffect((function(){x.isHiddenScrollBar||C((function(e){var n=i.current;return n?(0,d.Z)((0,d.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e}))}),[x.isHiddenScrollBar]),v<=m||!h||x.isHiddenScrollBar?null:l.createElement("div",{style:{height:(0,E.Z)(),width:m,bottom:s},className:"".concat(p,"-sticky-scroll")},l.createElement("div",{onMouseDown:function(e){e.persist(),w.current.delta=e.pageX-x.scrollLeft,w.current.x=0,k(!0),e.preventDefault()},ref:g,className:u()("".concat(p,"-sticky-scroll-bar"),(0,o.Z)({},"".concat(p,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(x.scrollLeft,"px, 0, 0)")}}))},Pe=l.forwardRef(Oe),Ke=(0,m.Z)()?window:null;var De=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var Ie=l.forwardRef((function(e,n){var t=e.className,r=e.noData,a=e.columns,i=e.flattenColumns,c=e.colWidths,s=e.columCount,p=e.stickyOffsets,v=e.direction,m=e.fixHeader,h=e.stickyTopOffset,g=e.stickyBottomOffset,y=e.stickyClassName,b=e.onScroll,x=e.maxContentScroll,C=e.children,E=(0,N.Z)(e,De),w=l.useContext(_),Z=w.prefixCls,k=w.scrollbarSize,O=w.isSticky,P=O&&!m?0:k,K=l.useRef(null),D=l.useCallback((function(e){(0,S.mH)(n,e),(0,S.mH)(K,e)}),[]);l.useEffect((function(){var e;function n(e){var n=e.currentTarget,t=e.deltaX;t&&(b({currentTarget:n,scrollLeft:n.scrollLeft+t}),e.preventDefault())}return null===(e=K.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=K.current)||void 0===e||e.removeEventListener("wheel",n)}}),[]);var I=l.useMemo((function(){return i.every((function(e){return e.width>=0}))}),[i]),R=i[i.length-1],M={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Z,"-cell-scrollbar")}}},T=(0,l.useMemo)((function(){return P?[].concat((0,f.Z)(a),[M]):a}),[P,a]),L=(0,l.useMemo)((function(){return P?[].concat((0,f.Z)(i),[M]):i}),[P,i]),A=(0,l.useMemo)((function(){var e=p.right,n=p.left;return(0,d.Z)((0,d.Z)({},p),{},{left:"rtl"===v?[].concat((0,f.Z)(n.map((function(e){return e+P}))),[0]):n,right:"rtl"===v?e:[].concat((0,f.Z)(e.map((function(e){return e+P}))),[0]),isSticky:O})}),[P,p,O]),j=function(e,n){return(0,l.useMemo)((function(){for(var t=[],r=0;r0)):(an(a>0),sn(a=0||n.relatedTarget.className.indexOf("".concat(a,"-item"))>=0)||o(e.getValidValue()))},e.go=function(n){""!==e.state.goInputText&&(n.keyCode!==We&&"click"!==n.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,Ve.Z)(t,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,n=e.pageSize,t=e.pageSizeOptions;return t.some((function(e){return e.toString()===n.toString()}))?t:t.concat([n.toString()]).sort((function(e,n){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(n))?0:Number(n))}))}},{key:"render",value:function(){var e=this,n=this.props,t=n.pageSize,r=n.locale,o=n.rootPrefixCls,a=n.changeSize,i=n.quickGo,c=n.goButton,u=n.selectComponentClass,s=n.buildOptionText,d=n.selectPrefixCls,f=n.disabled,p=this.state.goInputText,v="".concat(o,"-options"),m=u,h=null,g=null,y=null;if(!a&&!i)return null;var b=this.getPageSizeOptions();if(a&&m){var x=b.map((function(n,t){return l.createElement(m.Option,{key:t,value:n.toString()},(s||e.buildOptionText)(n))}));h=l.createElement(m,{disabled:f,prefixCls:d,showSearch:!1,className:"".concat(v,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(t||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},x)}return i&&(c&&(y="boolean"===typeof c?l.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:f,className:"".concat(v,"-quick-jumper-button")},r.jump_to_confirm):l.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),g=l.createElement("div",{className:"".concat(v,"-quick-jumper")},r.jump_to,l.createElement("input",{disabled:f,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,y)),l.createElement("li",{className:"".concat(v)},h,g)}}]),t}(l.Component);qe.defaultProps={pageSizeOptions:["10","20","50","100"]};var Xe=qe;function Je(){}function $e(e){var n=Number(e);return"number"===typeof n&&!isNaN(n)&&isFinite(n)&&Math.floor(n)===n}function Qe(e,n,t){var r="undefined"===typeof e?n.pageSize:e;return Math.floor((t.total-1)/r)+1}var en=function(e){(0,Fe.Z)(t,e);var n=(0,Be.Z)(t);function t(e){var r;(0,_e.Z)(this,t),(r=n.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(Qe(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,n){var t=r.props.prefixCls,o=e||l.createElement("button",{type:"button","aria-label":n,className:"".concat(t,"-item-link")});return"function"===typeof e&&(o=l.createElement(e,(0,d.Z)({},r.props))),o},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){var n=r.props.total;return $e(e)&&e!==r.state.current&&$e(n)&&n>0},r.shouldDisplayQuickJumper=function(){var e=r.props,n=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&n},r.handleKeyDown=function(e){e.keyCode!==Ge&&e.keyCode!==Ye||e.preventDefault()},r.handleKeyUp=function(e){var n=r.getValidValue(e);n!==r.state.currentInputValue&&r.setState({currentInputValue:n}),e.keyCode===We?r.handleChange(n):e.keyCode===Ge?r.handleChange(n-1):e.keyCode===Ye&&r.handleChange(n+1)},r.handleBlur=function(e){var n=r.getValidValue(e);r.handleChange(n)},r.changePageSize=function(e){var n=r.state.current,t=Qe(e,r.state,r.props);n=n>t?t:n,0===t&&(n=r.state.current),"number"===typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:n,currentInputValue:n})),r.props.onShowSizeChange(n,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(n,e)},r.handleChange=function(e){var n=r.props.disabled,t=e;if(r.isValid(t)&&!n){var o=Qe(void 0,r.state,r.props);t>o?t=o:t<1&&(t=1),"current"in r.props||r.setState({current:t,currentInputValue:t});var a=r.state.pageSize;return r.props.onChange(t,a),t}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?t-2:0),o=2;o=t?t:Number(n)}},{key:"getShowSizeChanger",value:function(){var e=this.props,n=e.showSizeChanger,t=e.total,r=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof n?n:t>r}},{key:"renderPrev",value:function(e){var n=this.props,t=n.prevIcon,r=(0,n.itemRender)(e,"prev",this.getItemIcon(t,"prev page")),o=!this.hasPrev();return(0,l.isValidElement)(r)?(0,l.cloneElement)(r,{disabled:o}):r}},{key:"renderNext",value:function(e){var n=this.props,t=n.nextIcon,r=(0,n.itemRender)(e,"next",this.getItemIcon(t,"next page")),o=!this.hasNext();return(0,l.isValidElement)(r)?(0,l.cloneElement)(r,{disabled:o}):r}},{key:"render",value:function(){var e=this,n=this.props,t=n.prefixCls,r=n.className,a=n.style,c=n.disabled,s=n.hideOnSinglePage,d=n.total,f=n.locale,p=n.showQuickJumper,v=n.showLessItems,m=n.showTitle,h=n.showTotal,g=n.simple,y=n.itemRender,b=n.showPrevNextJumpers,x=n.jumpPrevIcon,C=n.jumpNextIcon,E=n.selectComponentClass,w=n.selectPrefixCls,Z=n.pageSizeOptions,N=this.state,S=N.current,k=N.pageSize,O=N.currentInputValue;if(!0===s&&d<=k)return null;var P=Qe(void 0,this.state,this.props),K=[],D=null,I=null,R=null,M=null,T=null,L=p&&p.goButton,A=v?1:2,j=S-1>0?S-1:0,H=S+1=2*A&&3!==S&&(K[0]=(0,l.cloneElement)(K[0],{className:"".concat(t,"-item-after-jump-prev")}),K.unshift(D)),P-S>=2*A&&S!==P-2&&(K[K.length-1]=(0,l.cloneElement)(K[K.length-1],{className:"".concat(t,"-item-before-jump-next")}),K.push(I)),1!==W&&K.unshift(R),G!==P&&K.push(M)}var X=null;h&&(X=l.createElement("li",{className:"".concat(t,"-total-text")},h(d,[0===d?0:(S-1)*k+1,S*k>d?d:S*k])));var J=!this.hasPrev()||!P,$=!this.hasNext()||!P;return l.createElement("ul",(0,i.Z)({className:u()(t,r,(0,o.Z)({},"".concat(t,"-disabled"),c)),style:a,unselectable:"unselectable",ref:this.savePaginationNode},z),X,l.createElement("li",{title:m?f.prev_page:null,onClick:this.prev,tabIndex:J?null:0,onKeyPress:this.runIfEnterPrev,className:u()("".concat(t,"-prev"),(0,o.Z)({},"".concat(t,"-disabled"),J)),"aria-disabled":J},this.renderPrev(j)),K,l.createElement("li",{title:m?f.next_page:null,onClick:this.next,tabIndex:$?null:0,onKeyPress:this.runIfEnterNext,className:u()("".concat(t,"-next"),(0,o.Z)({},"".concat(t,"-disabled"),$)),"aria-disabled":$},this.renderNext(H)),l.createElement(Xe,{disabled:c,locale:f,rootPrefixCls:t,selectComponentClass:E,selectPrefixCls:w,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:S,pageSize:k,pageSizeOptions:Z,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:L}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t={};if("current"in e&&(t.current=e.current,e.current!==n.current&&(t.currentInputValue=t.current)),"pageSize"in e&&e.pageSize!==n.pageSize){var r=n.current,o=Qe(e.pageSize,n,e);r=r>o?o:r,"current"in e||(t.current=r,t.currentInputValue=r),t.pageSize=e.pageSize}return t}}]),t}(l.Component);en.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Je,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Je,locale:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"},style:{},itemRender:function(e,n,t){return t},totalBoundaryShowSizeChanger:50};var nn=en,tn=t(62906),rn=t(6171),on=t(18073),an={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},ln=t(42922),cn=function(e,n){return l.createElement(ln.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:an}))};cn.displayName="DoubleLeftOutlined";var un=l.forwardRef(cn),sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},dn=function(e,n){return l.createElement(ln.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:sn}))};dn.displayName="DoubleRightOutlined";var fn=l.forwardRef(dn),pn=t(38939),vn=function(e){return l.createElement(pn.Z,(0,i.Z)({size:"small"},e))};vn.Option=pn.Z.Option;var mn=vn,hn=t(23715),gn=t(59844),yn=t(25378),bn=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?u:e}),h=Math.ceil((u||e)/m.pageSize);m.current>h&&(m.current=h||1);var g=function(e,n){v({current:null!==e&&void 0!==e?e:1,pageSize:n||m.pageSize})};return!1===n?[{},function(){}]:[(0,i.Z)((0,i.Z)({},m),{onChange:function(e,r){var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),g(e,r),t(e,r||(null===m||void 0===m?void 0:m.pageSize))}}),g]}var wn=t(84506),Zn=t(80882),Nn=t(98423),Sn=t(97326),kn=l.createContext(null),On=function(e){for(var n=e.prefixCls,t=e.level,r=e.isStart,a=e.isEnd,i="".concat(n,"-indent-unit"),c=[],s=0;s=0&&t.splice(r,1),t}function An(e,n){var t=(e||[]).slice();return-1===t.indexOf(n)&&t.push(n),t}function jn(e){return e.split("-")}function Hn(e,n){return"".concat(e,"-").concat(n)}function zn(e,n){var t=[];return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n.forEach((function(n){var r=n.key,o=n.children;t.push(r),e(o)}))}(n[e].children),t}function _n(e){if(e.parent){var n=jn(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function Vn(e,n,t,r,o,a,i,l,c,u){var s,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),v=p.top,m=p.height,h=(("rtl"===u?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-d)-12)/r,g=l[t.props.eventKey];if(f-1.5?a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1:a({dragNode:S,dropNode:k,dropPosition:0})?w=0:a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1:a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1,{dropPosition:w,dropLevelOffset:Z,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:E,dropContainerKey:0===w?null:(null===(s=g.parent)||void 0===s?void 0:s.key)||null,dropAllowed:O}}function Fn(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function Bn(e){if(!e)return null;var n;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,r.Z)(e))return(0,x.ZP)(!1,"`checkedKeys` is not an array or an object"),null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function Un(e,n){var t=new Set;function r(e){if(!t.has(e)){var o=n[e];if(o){t.add(e);var a=o.parent;o.node.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,f.Z)(t)}var Wn=["children"];function Gn(e,n){return null!==e&&void 0!==e?e:n}function Yn(e){var n=e||{},t=n.title||"title";return{title:t,_title:n._title||[t],key:n.key||"key",children:n.children||"children"}}function qn(e){return function e(n){return(0,ae.Z)(n).map((function(n){if(!function(e){return e&&e.type&&e.type.isTreeNode}(n))return(0,x.ZP)(!n,"Tree/TreeNode can only accept TreeNode as children."),null;var t=n.key,r=n.props,o=r.children,a=(0,N.Z)(r,Wn),i=(0,d.Z)({key:t},a),l=e(o);return l.length&&(i.children=l),i})).filter((function(e){return e}))}(e)}function Xn(e,n,t){var r=Yn(t),o=r._title,a=r.key,i=r.children,l=new Set(!0===n?[]:n),c=[];return function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t.map((function(u,s){for(var p,v=Hn(r?r.pos:"0",s),m=Gn(u[a],v),h=0;h1&&void 0!==arguments[1]?arguments[1]:{},t=n.initWrapper,r=n.processEntity,o=n.onProcessFinished,a=n.externalGetKey,i=n.childrenPropName,l=n.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,s={},d={},f={posEntities:s,keyEntities:d};return t&&(f=t(f)||f),Jn(e,(function(e){var n=e.node,t=e.index,o=e.pos,a=e.key,i=e.parentPos,l=e.level,c={node:n,nodes:e.nodes,index:t,key:a,pos:o,level:l},u=Gn(a,o);s[o]=c,d[u]=c,c.parent=s[i],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:u,childrenPropName:i,fieldNames:l}),o&&o(f),f}function Qn(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,i=n.checkedKeys,l=n.halfCheckedKeys,c=n.dragOverNodeKey,u=n.dropPosition,s=n.keyEntities[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(s?s.pos:""),dragOver:c===e&&0===u,dragOverGapTop:c===e&&-1===u,dragOverGapBottom:c===e&&1===u}}function et(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,s=e.dragOverGapBottom,f=e.pos,p=e.active,v=e.eventKey,m=(0,d.Z)((0,d.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:s,pos:f,active:p,key:v});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,x.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function nt(e,n){var t=new Set;return e.forEach((function(e){n.has(e)||t.add(e)})),t}function tt(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!(!t&&!r)||!1===o}function rt(e,n,t,r){var o,a=[];o=r||tt;var i,l=new Set(e.filter((function(e){var n=!!t[e];return n||a.push(e),n}))),c=new Map,u=0;return Object.keys(t).forEach((function(e){var n=t[e],r=n.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(n),u=Math.max(u,r)})),(0,x.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),i=!0===n?function(e,n,t,r){for(var o=new Set(e),a=new Set,i=0;i<=t;i+=1)(n.get(i)||new Set).forEach((function(e){var n=e.key,t=e.node,a=e.children,i=void 0===a?[]:a;o.has(n)&&!r(t)&&i.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,c=t;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!r(t)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(n.key);else{var i=!0,c=!1;(n.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var n=e.key,t=o.has(n);i&&!t&&(i=!1),c||!t&&!a.has(n)||(c=!0)})),i&&o.add(n.key),c&&a.add(n.key),l.add(n.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(nt(a,o))}}(l,c,u,o):function(e,n,t,r,o){for(var a=new Set(e),i=new Set(n),l=0;l<=r;l+=1)(t.get(l)||new Set).forEach((function(e){var n=e.key,t=e.node,r=e.children,l=void 0===r?[]:r;a.has(n)||i.has(n)||o(t)||l.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));i=new Set;for(var c=new Set,u=r;u>=0;u-=1)(t.get(u)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!o(t)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(n.key);else{var r=!0,l=!1;(n.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var n=e.key,t=a.has(n);r&&!t&&(r=!1),l||!t&&!i.has(n)||(l=!0)})),r||a.delete(n.key),l&&i.add(n.key),c.add(n.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(nt(i,a))}}(l,n.halfCheckedKeys,c,u,o),i}var ot=t(5663),at=t(32808),it=t(38504),lt=t(68157),ct=t(50132),ut=t(17799),st=l.createContext(null),dt=st.Provider,ft=st,pt=t(11941),vt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0){var O="button"===m?"".concat(N,"-button"):N;k=v.map((function(e){return"string"===typeof e||"number"===typeof e?l.createElement(gt,{key:e.toString(),prefixCls:O,disabled:y,value:e,checked:p===e},e):l.createElement(gt,{key:"radio-group-value-options-".concat(e.value),prefixCls:O,disabled:e.disabled||y,value:e.value,checked:p===e.value,style:e.style},e.label)}))}var P=x||s,K=u()(S,"".concat(S,"-").concat(g),(t={},(0,o.Z)(t,"".concat(S,"-").concat(P),P),(0,o.Z)(t,"".concat(S,"-rtl"),"rtl"===c),t),f);return l.createElement("div",(0,i.Z)({},(0,bt.Z)(e),{className:K,style:C,onMouseEnter:w,onMouseLeave:Z,id:E,ref:n}),k)}())})),Ct=l.memo(xt),Et=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=e.length,r=n.length;if(1!==Math.abs(t-r))return{add:!1,key:null};function o(e,n){var t=new Map;e.forEach((function(e){t.set(e,!0)}));var r=n.filter((function(e){return!t.has(e)}));return 1===r.length?r[0]:null}return t ").concat(n);return n}(w)),l.createElement("div",null,l.createElement("input",{style:gr,disabled:!1===E||v,tabIndex:!1!==E?S:null,onKeyDown:k,onFocus:O,onBlur:P,value:"",onChange:yr,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},l.createElement("div",{className:"".concat(t,"-indent")},l.createElement("div",{ref:T,className:"".concat(t,"-indent-unit")}))),l.createElement(sr.Z,(0,i.Z)({},R,{data:re,itemKey:Zr,height:b,fullHeight:!1,virtual:C,itemHeight:x,prefixCls:"".concat(t,"-list"),ref:M,onVisibleChange:function(e,n){var t=new Set(e);n.filter((function(e){return!t.has(e)})).some((function(e){return Zr(e)===br}))&&te()}}),(function(e){var n=e.pos,t=(0,i.Z)({},e.data),r=e.title,o=e.key,a=e.isStart,c=e.isEnd,u=Gn(o,n);delete t.key,delete t.children;var s=Qn(u,oe);return l.createElement(vr,(0,i.Z)({},t,s,{title:r,active:!!w&&o===w.key,pos:n,data:e.data,isStart:a,isEnd:c,motion:y,motionNodes:o===br?X:null,motionType:ee,onMotionStart:D,onMotionEnd:te,treeNodeRequiredProps:oe,onMouseMove:function(){K(null)}}))})))},Sr=l.forwardRef(Nr);Sr.displayName="NodeList";var kr=Sr;var Or=function(e){(0,Fe.Z)(t,e);var n=(0,Be.Z)(t);function t(){var e;(0,_e.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],a=e.state,i=a.dragChildrenKeys,l=a.dropPosition,c=a.dropTargetKey,u=a.dropTargetPos,s=a.dropAllowed;if(s){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var p=(0,d.Z)((0,d.Z)({},Qn(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.data.key)===c,data:e.state.keyEntities[c].node}),v=-1!==i.indexOf(c);(0,x.ZP)(!v,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=jn(u),h={event:n,node:et(p),dragNode:e.dragNode?et(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(m[m.length-1])};o||null===f||void 0===f||f(h),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.onNodeClick=function(n,t){var r=e.props.onClick;null===r||void 0===r||r(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props.onDoubleClick;null===r||void 0===r||r(n,t)},e.onNodeSelect=function(n,t){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,i=o.fieldNames,l=e.props,c=l.onSelect,u=l.multiple,s=t.selected,d=t[i.key],f=!s,p=(r=f?u?An(r,d):[d]:Ln(r,d)).map((function(e){var n=a[e];return n?n.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null===c||void 0===c||c(r,{event:"select",selected:f,node:t,selectedNodes:p,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,t,r){var o,a=e.state,i=a.keyEntities,l=a.checkedKeys,c=a.halfCheckedKeys,u=e.props,s=u.checkStrictly,d=u.onCheck,p=t.key,v={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(s){var m=r?An(l,p):Ln(l,p);o={checked:m,halfChecked:Ln(c,p)},v.checkedNodes=m.map((function(e){return i[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var h=rt([].concat((0,f.Z)(l),[p]),!0,i),g=h.checkedKeys,y=h.halfCheckedKeys;if(!r){var b=new Set(g);b.delete(p);var x=rt(Array.from(b),{checked:!1,halfCheckedKeys:y},i);g=x.checkedKeys,y=x.halfCheckedKeys}o=g,v.checkedNodes=[],v.checkedNodesPositions=[],v.halfCheckedKeys=y,g.forEach((function(e){var n=i[e];if(n){var t=n.node,r=n.pos;v.checkedNodes.push(t),v.checkedNodesPositions.push({node:t,pos:r})}})),e.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:y})}null===d||void 0===d||d(o,v)},e.onNodeLoad=function(n){var t=n.key,r=new Promise((function(r,o){e.setState((function(a){var i=a.loadedKeys,l=void 0===i?[]:i,c=a.loadingKeys,u=void 0===c?[]:c,s=e.props,d=s.loadData,f=s.onLoad;return d&&-1===l.indexOf(t)&&-1===u.indexOf(t)?(d(n).then((function(){var o=An(e.state.loadedKeys,t);null===f||void 0===f||f(o,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:Ln(e.loadingKeys,t)}})),r()})).catch((function(n){if(e.setState((function(e){return{loadingKeys:Ln(e.loadingKeys,t)}})),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,x.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:An(a,t)}),r()}o(n)})),{loadingKeys:An(u,t)}):null}))}));return r.catch((function(){})),r},e.onNodeMouseEnter=function(n,t){var r=e.props.onMouseEnter;null===r||void 0===r||r({event:n,node:t})},e.onNodeMouseLeave=function(n,t){var r=e.props.onMouseLeave;null===r||void 0===r||r({event:n,node:t})},e.onNodeContextMenu=function(n,t){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:t}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var t=arguments.length,r=new Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,i={};Object.keys(n).forEach((function(t){t in e.props?a=!1:(o=!0,i[t]=n[t])})),!o||t&&!a||e.setState((0,d.Z)((0,d.Z)({},i),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,Ve.Z)(t,[{key:"componentDidMount",value:function(){this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,n,t=this.state,a=t.focused,c=t.flattenNodes,s=t.keyEntities,d=t.draggingNodeKey,f=t.activeKey,p=t.dropLevelOffset,m=t.dropContainerKey,h=t.dropTargetKey,g=t.dropPosition,y=t.dragOverNodeKey,b=t.indent,x=this.props,C=x.prefixCls,E=x.className,w=x.style,Z=x.showLine,N=x.focusable,S=x.tabIndex,k=void 0===S?0:S,O=x.selectable,P=x.showIcon,K=x.icon,D=x.switcherIcon,I=x.draggable,R=x.checkable,M=x.checkStrictly,T=x.disabled,L=x.motion,A=x.loadData,j=x.filterTreeNode,H=x.height,z=x.itemHeight,_=x.virtual,V=x.titleRender,F=x.dropIndicatorRender,B=x.onContextMenu,U=x.onScroll,W=x.direction,G=(0,v.Z)(this.props,{aria:!0,data:!0});return I&&(n="object"===(0,r.Z)(I)?I:"function"===typeof I?{nodeDraggable:I}:{}),l.createElement(kn.Provider,{value:{prefixCls:C,selectable:O,showIcon:P,icon:K,switcherIcon:D,draggable:n,draggingNodeKey:d,checkable:R,checkStrictly:M,disabled:T,keyEntities:s,dropLevelOffset:p,dropContainerKey:m,dropTargetKey:h,dropPosition:g,dragOverNodeKey:y,indent:b,direction:W,dropIndicatorRender:F,loadData:A,filterTreeNode:j,titleRender:V,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},l.createElement("div",{role:"tree",className:u()(C,E,(e={},(0,o.Z)(e,"".concat(C,"-show-line"),Z),(0,o.Z)(e,"".concat(C,"-focused"),a),(0,o.Z)(e,"".concat(C,"-active-focused"),null!==f),e))},l.createElement(kr,(0,i.Z)({ref:this.listRef,prefixCls:C,style:w,data:c,disabled:T,selectable:O,checkable:!!R,motion:L,dragging:null!==d,height:H,itemHeight:z,virtual:_,focusable:N,focused:a,tabIndex:k,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:U},this.getTreeNodeRequiredProps(),G))))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t,r=n.prevProps,a={prevProps:e};function i(n){return!r&&n in e||r&&r[n]!==e[n]}var l=n.fieldNames;if(i("fieldNames")&&(l=Yn(e.fieldNames),a.fieldNames=l),i("treeData")?t=e.treeData:i("children")&&((0,x.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=qn(e.children)),t){a.treeData=t;var c=$n(t,{fieldNames:l});a.keyEntities=(0,d.Z)((0,o.Z)({},br,Cr),c.keyEntities)}var u,s=a.keyEntities||n.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Un(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var f=(0,d.Z)({},s);delete f[br],a.expandedKeys=Object.keys(f).map((function(e){return f[e].key}))}else!r&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Un(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var p=Xn(t||n.treeData,a.expandedKeys||n.expandedKeys,l);a.flattenNodes=p}if((e.selectable&&(i("selectedKeys")?a.selectedKeys=Fn(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(a.selectedKeys=Fn(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?u=Bn(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=Bn(e.defaultCheckedKeys)||{}:t&&(u=Bn(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),u)){var v=u,m=v.checkedKeys,h=void 0===m?[]:m,g=v.halfCheckedKeys,y=void 0===g?[]:g;if(!e.checkStrictly){var b=rt(h,!0,s);h=b.checkedKeys,y=b.halfCheckedKeys}a.checkedKeys=h,a.halfCheckedKeys=y}return i("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(l.Component);Or.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,t=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-t*r;break;case 1:o.bottom=0,o.left=-t*r;break;case 0:o.bottom=0,o.left=r}return l.createElement("div",{style:o})},allowDrop:function(){return!0}},Or.TreeNode=Tn;var Pr=Or,Kr=t(23279),Dr=t.n(Kr),Ir={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"},Rr=function(e,n){return l.createElement(ln.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Ir}))};Rr.displayName="FileOutlined";var Mr=l.forwardRef(Rr),Tr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Lr=function(e,n){return l.createElement(ln.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Tr}))};Lr.displayName="FolderOpenOutlined";var Ar=l.forwardRef(Lr),jr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Hr=function(e,n){return l.createElement(ln.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:jr}))};Hr.displayName="FolderOutlined";var zr,_r=l.forwardRef(Hr);function Vr(e,n){e.forEach((function(e){var t=e.key,r=e.children;!1!==n(t,e)&&Vr(r||[],n)}))}function Fr(e){var n=e.treeData,t=e.expandedKeys,r=e.startKey,o=e.endKey,a=[],i=zr.None;if(r&&r===o)return[r];if(!r||!o)return[];return Vr(n,(function(e){if(i===zr.End)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),i===zr.None)i=zr.Start;else if(i===zr.Start)return i=zr.End,!1}else i===zr.Start&&a.push(e);return-1!==t.indexOf(e)})),a}function Br(e,n){var t=(0,f.Z)(n),r=[];return Vr(e,(function(e,n){var o=t.indexOf(e);return-1!==o&&(r.push(n),t.splice(o,1)),!!t.length})),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(zr||(zr={}));var Ur=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},n=e.confirm,t=e.closeDropdown;n&&X([]),t&&O(!1),G(""),M([])},Q=u()((0,o.Z)({},"".concat(c,"-menu-without-submenu"),!(i.filters||[]).some((function(e){return e.children})))),ee=function(e){if(e.target.checked){var n=No(null===i||void 0===i?void 0:i.filters).map((function(e){return String(e)}));M(n)}else M([])},ne=function e(n){return(n.filters||[]).map((function(n,t){var r=String(n.value),o={title:n.text,key:void 0!==n.value?r:t};return n.children&&(o.children=e({filters:n.children})),o}))};if("function"===typeof i.filterDropdown)q=i.filterDropdown({prefixCls:"".concat(c,"-custom"),setSelectedKeys:function(e){return T({selectedKeys:e})},selectedKeys:R(),confirm:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0}).closeDropdown&&O(!1),X(R())},clearFilters:$,filters:i.filters,visible:P});else if(i.filterDropdown)q=i.filterDropdown;else{var te=R()||[];q=l.createElement(l.Fragment,null,0===(i.filters||[]).length?l.createElement(vo.Z,{image:vo.Z.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?l.createElement(l.Fragment,null,l.createElement(yo,{filterSearch:m,value:W,onChange:Y,tablePrefixCls:t,locale:y}),l.createElement("div",{className:"".concat(t,"-filter-dropdown-tree")},d?l.createElement(at.Z,{checked:te.length===No(i.filters).length,indeterminate:te.length>0&&te.length1&&void 0!==arguments[1]?arguments[1]:{},t=n.getContainer,r=void 0===t?function(){return window}:t,o=n.callback,a=n.duration,i=void 0===a?450:a,l=r(),c=Mo(l,!0),u=Date.now(),s=function n(){var t=Date.now()-u,r=To(t>i?i:t,c,e,i);Ro(l)?l.scrollTo(window.pageXOffset,r):l instanceof HTMLDocument||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=r:l.scrollTop=r,t1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var A=l.useMemo((function(){return C||de(E)}),[C,E]),j=l.useMemo((function(){return A.some((function(e){return e.responsive}))}),[A]),H=(0,yn.Z)(j),z=l.useMemo((function(){var e=new Set(Object.keys(H).filter((function(e){return H[e]})));return A.filter((function(n){return!n.responsive||n.responsive.some((function(n){return e.has(n)}))}))}),[A,H]),_=(0,s.Z)(e,["className","style","columns"]),V=l.useContext(yt.Z),F=l.useContext(gn.E_),B=F.locale,U=void 0===B?Ao:B,W=F.renderEmpty,G=F.direction,Y=p||V,q=(0,i.Z)((0,i.Z)({},U.Table),M),X=h||zo,J=l.useContext(gn.E_).getPrefixCls,$=J("table",c),Q=J("dropdown",m),ee=(0,i.Z)({childrenColumnName:w,expandIconColumnIndex:K},O),ne=ee.childrenColumnName,te=void 0===ne?"children":ne,re=l.useMemo((function(){return X.some((function(e){return null===e||void 0===e?void 0:e[te]}))?"nest":P||O&&O.expandedRowRender?"row":null}),[X]),oe={body:l.useRef()},ae=l.useMemo((function(){return"function"===typeof b?b:function(e){return null===e||void 0===e?void 0:e[b]}}),[b]),ie=function(e,n,t){var o=l.useRef({});return[function(a){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==n||o.current.getRowKey!==t){var i=new Map;function a(e){e.forEach((function(e,o){var l=t(e,o);i.set(l,e),e&&"object"===(0,r.Z)(e)&&n in e&&a(e[n]||[])}))}a(e),o.current={data:e,childrenColumnName:n,kvMap:i,getRowKey:t}}return o.current.kvMap.get(a)}]}(X,te,ae),le=(0,a.Z)(ie,1)[0],ce={},ue=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=(0,i.Z)((0,i.Z)({},ce),e);t&&(ce.resetPagination(),r.pagination.current&&(r.pagination.current=1),g&&g.onChange&&g.onChange(1,r.pagination.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&oe.body.current&&Lo(0,{getContainer:function(){return oe.body.current}}),null===Z||void 0===Z||Z(r.pagination,r.filters,r.sorter,{currentDataSource:ko($t(X,r.sorterStates,te),r.filterStates),action:n})},se=Qt({prefixCls:$,mergedColumns:z,onSorterChange:function(e,n){ue({sorter:e,sorterStates:n},"sort",!1)},sortDirections:R||["ascend","descend"],tableLocale:q,showSorterTooltip:L}),fe=(0,a.Z)(se,4),pe=fe[0],ve=fe[1],me=fe[2],he=fe[3],ge=l.useMemo((function(){return $t(X,ve,te)}),[X,ve]);ce.sorter=he(),ce.sorterStates=ve;var ye=Oo({prefixCls:$,locale:q,dropdownPrefixCls:Q,mergedColumns:z,onFilterChange:function(e,n){ue({filters:e,filterStates:n},"filter",!0)},getPopupContainer:N}),be=(0,a.Z)(ye,3),xe=be[0],Ce=be[1],Ee=be[2],we=ko(ge,Ce);ce.filters=Ee(),ce.filterStates=Ce;var Ze=Ko(l.useMemo((function(){return(0,i.Z)({},me)}),[me])),Ne=(0,a.Z)(Ze,1)[0],Se=En(we.length,g,(function(e,n){ue({pagination:(0,i.Z)((0,i.Z)({},ce.pagination),{current:e,pageSize:n})},"paginate")})),ke=(0,a.Z)(Se,2),Oe=ke[0],Pe=ke[1];ce.pagination=!1===g?{}:function(e,n){var t={current:n.current,pageSize:n.pageSize},o=e&&"object"===(0,r.Z)(e)?e:{};return Object.keys(o).forEach((function(e){var r=n[e];"function"!==typeof r&&(t[e]=r)})),t}(g,Oe),ce.resetPagination=Pe;var Ke=l.useMemo((function(){if(!1===g||!Oe.pageSize)return we;var e=Oe.current,n=void 0===e?1:e,t=Oe.total,r=Oe.pageSize,o=void 0===r?10:r;return(0,pt.Z)(n>0,"Table","`current` should be positive number."),we.lengtho?((0,pt.Z)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),we.slice((n-1)*o,n*o)):we:we.slice((n-1)*o,n*o)}),[!!g,we,Oe&&Oe.current,Oe&&Oe.pageSize,Oe&&Oe.total]),De=Rt(y,{prefixCls:$,data:we,pageData:Ke,getRowKey:ae,getRecordByKey:le,expandType:re,childrenColumnName:te,locale:q,getPopupContainer:N}),Ie=(0,a.Z)(De,2),Re=Ie[0],Me=Ie[1];ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||k||Do(q),"nest"===re&&void 0===ee.expandIconColumnIndex?ee.expandIconColumnIndex=y?1:0:ee.expandIconColumnIndex>0&&y&&(ee.expandIconColumnIndex-=1),"number"!==typeof ee.indentSize&&(ee.indentSize="number"===typeof D?D:15);var Te,Ae,je,_e=l.useCallback((function(e){return Ne(Re(xe(pe(e))))}),[pe,xe,Re]);if(!1!==g&&(null===Oe||void 0===Oe?void 0:Oe.total)){var Ve;Ve=Oe.size?Oe.size:"small"===Y||"middle"===Y?"small":void 0;var Fe=function(e){return l.createElement(xn,(0,i.Z)({},Oe,{className:u()("".concat($,"-pagination ").concat($,"-pagination-").concat(e),Oe.className),size:Ve}))},Be="rtl"===G?"left":"right",Ue=Oe.position;if(null!==Ue&&Array.isArray(Ue)){var We=Ue.find((function(e){return-1!==e.indexOf("top")})),Ge=Ue.find((function(e){return-1!==e.indexOf("bottom")})),Ye=Ue.every((function(e){return"none"==="".concat(e)}));We||Ge||Ye||(Ae=Fe(Be)),We&&(Te=Fe(We.toLowerCase().replace("top",""))),Ge&&(Ae=Fe(Ge.toLowerCase().replace("bottom","")))}else Ae=Fe(Be)}"boolean"===typeof S?je={spinning:S}:"object"===(0,r.Z)(S)&&(je=(0,i.Z)({spinning:!0},S));var qe=u()("".concat($,"-wrapper"),(0,o.Z)({},"".concat($,"-wrapper-rtl"),"rtl"===G),d);return l.createElement("div",{ref:n,className:qe,style:f},l.createElement(ze.Z,(0,i.Z)({spinning:!1},je),Te,l.createElement(He,(0,i.Z)({},_,{columns:z,direction:G,expandable:ee,prefixCls:$,className:u()((t={},(0,o.Z)(t,"".concat($,"-middle"),"middle"===Y),(0,o.Z)(t,"".concat($,"-small"),"small"===Y),(0,o.Z)(t,"".concat($,"-bordered"),v),(0,o.Z)(t,"".concat($,"-empty"),0===X.length),t)),data:Ke,rowKey:ae,rowClassName:function(e,n,t){var r;return r="function"===typeof x?u()(x(e,n,t)):u()(x),u()((0,o.Z)({},"".concat($,"-row-selected"),Me.has(ae(e,n))),r)},emptyText:M&&M.emptyText||W("Table"),internalHooks:Le,internalRefs:oe,transformColumns:_e})),Ae))}var Vo=l.forwardRef(_o);Vo.defaultProps={rowKey:"key"},Vo.SELECTION_COLUMN=kt,Vo.EXPAND_COLUMN=He.EXPAND_COLUMN,Vo.SELECTION_ALL=Ot,Vo.SELECTION_INVERT=Pt,Vo.SELECTION_NONE=Kt,Vo.Column=jo,Vo.ColumnGroup=Ho,Vo.Summary=Ze;var Fo=Vo},27561:function(e,n,t){var r=t(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},67990:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},23279:function(e,n,t){var r=t(13218),o=t(7771),a=t(14841),i=Math.max,l=Math.min;e.exports=function(e,n,t){var c,u,s,d,f,p,v=0,m=!1,h=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(n){var t=c,r=u;return c=u=void 0,v=n,d=e.apply(r,t)}function b(e){return v=e,f=setTimeout(C,n),m?y(e):d}function x(e){var t=e-p;return void 0===p||t>=n||t<0||h&&e-v>=s}function C(){var e=o();if(x(e))return E(e);f=setTimeout(C,function(e){var t=n-(e-p);return h?l(t,s-(e-v)):t}(e))}function E(e){return f=void 0,g&&c?y(e):(c=u=void 0,d)}function w(){var e=o(),t=x(e);if(c=arguments,u=this,p=e,t){if(void 0===f)return b(p);if(h)return clearTimeout(f),f=setTimeout(C,n),y(p)}return void 0===f&&(f=setTimeout(C,n)),d}return n=a(n)||0,r(t)&&(m=!!t.leading,s=(h="maxWait"in t)?i(a(t.maxWait)||0,n):s,g="trailing"in t?!!t.trailing:g),w.cancel=function(){void 0!==f&&clearTimeout(f),v=0,c=p=u=f=void 0},w.flush=function(){return void 0===f?d:E(o())},w}},33448:function(e,n,t){var r=t(44239),o=t(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),o=t(13218),a=t(33448),i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=l.test(e);return t||c.test(e)?u(e.slice(2),t?2:8):i.test(e)?NaN:+e}},50132:function(e,n,t){"use strict";var r=t(87462),o=t(4942),a=t(91),i=t(1413),l=t(15671),c=t(43144),u=t(60136),s=t(73568),d=t(67294),f=t(94184),p=t.n(f),v=function(e){(0,u.Z)(t,e);var n=(0,s.Z)(t);function t(e){var r;(0,l.Z)(this,t),(r=n.call(this,e)).handleChange=function(e){var n=r.props,t=n.disabled,o=n.onChange;t||("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:(0,i.Z)((0,i.Z)({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return(0,c.Z)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,i=n.className,l=n.style,c=n.name,u=n.id,s=n.type,f=n.disabled,v=n.readOnly,m=n.tabIndex,h=n.onClick,g=n.onFocus,y=n.onBlur,b=n.onKeyDown,x=n.onKeyPress,C=n.onKeyUp,E=n.autoFocus,w=n.value,Z=n.required,N=(0,a.Z)(n,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),S=Object.keys(N).reduce((function(e,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(e[n]=N[n]),e}),{}),k=this.state.checked,O=p()(t,i,(e={},(0,o.Z)(e,"".concat(t,"-checked"),k),(0,o.Z)(e,"".concat(t,"-disabled"),f),e));return d.createElement("span",{className:O,style:l},d.createElement("input",(0,r.Z)({name:c,id:u,type:s,required:Z,readOnly:v,disabled:f,tabIndex:m,className:"".concat(t,"-input"),checked:!!k,onClick:h,onFocus:g,onBlur:y,onKeyUp:C,onKeyDown:b,onKeyPress:x,onChange:this.handleChange,autoFocus:E,ref:this.saveInput,value:w},S)),d.createElement("span",{className:"".concat(t,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return"checked"in e?(0,i.Z)((0,i.Z)({},n),{},{checked:e.checked}):null}}]),t}(d.Component);v.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},n.Z=v},60057:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var r=t(4942),o=t(1413),a=t(97685),i=t(91),l=t(67294),c=t(82532),u=t(94184),s=t.n(u),d={adjustX:1,adjustY:1},f=[0,0],p={topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:f}},v=t(15105),m=v.Z.ESC,h=v.Z.TAB;function g(e){var n=e.visible,t=e.setTriggerVisible,r=e.triggerRef,o=e.menuRef,a=e.menuClassName,i=e.onVisibleChange,c=function(){n&&r.current&&(r.current.triggerRef.current&&r.current.triggerRef.current.focus(),t(!1),"function"===typeof i&&i(!1))},u=function(e){switch(e.keyCode){case m:case h:c()}};l.useEffect((function(){return n?(setTimeout((function(){!function(){if(o.current){var e,n,t,r=(null===(e=o.current.className)||void 0===e?void 0:e.includes(a))?o.current:null===(n=(t=o.current).querySelector)||void 0===n?void 0:n.call(t,a);r&&r.focus()}}(),window.addEventListener("keydown",u)}),100),function(){window.removeEventListener("keydown",u)}):function(){return null}}),[n]);return{returnFocus:function(){n&&r.current&&r.current.triggerRef.current&&setTimeout((function(){var e,n,t;null===(e=r.current)||void 0===e||null===(n=e.triggerRef)||void 0===n||null===(t=n.current)||void 0===t||t.focus()}),100)}}}var y=t(42550),b=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"];function x(e,n){var t=e.arrow,u=void 0!==t&&t,d=e.prefixCls,f=void 0===d?"rc-dropdown":d,v=e.transitionName,m=e.animation,h=e.align,x=e.placement,C=void 0===x?"bottomLeft":x,E=e.placements,w=void 0===E?p:E,Z=e.getPopupContainer,N=e.showAction,S=e.hideAction,k=e.overlayClassName,O=e.overlayStyle,P=e.visible,K=e.trigger,D=void 0===K?["hover"]:K,I=(0,i.Z)(e,b),R=l.useState(),M=(0,a.Z)(R,2),T=M[0],L=M[1],A="visible"in e?P:T,j=l.useRef(null);l.useImperativeHandle(n,(function(){return j.current}));var H=l.useRef(null),z="".concat(f,"-menu"),_=g({visible:A,setTriggerVisible:L,triggerRef:j,menuRef:H,menuClassName:z,onVisibleChange:e.onVisibleChange}).returnFocus,V=function(){var n=e.overlay;return"function"===typeof n?n():n},F=function(n){var t=e.onOverlayClick,r=V().props;L(!1),t&&t(n),r.onClick&&r.onClick(n),_()},B=function(){var e=V(),n={prefixCls:z,onClick:F,ref:(0,y.Yr)(e)?H:void 0};return"string"===typeof e.type&&delete n.prefixCls,l.createElement(l.Fragment,null,u&&l.createElement("div",{className:"".concat(f,"-arrow")}),l.cloneElement(e,n))},U=S;return U||-1===D.indexOf("contextMenu")||(U=["click"]),l.createElement(c.Z,(0,o.Z)((0,o.Z)({builtinPlacements:w},I),{},{prefixCls:f,ref:j,popupClassName:s()(k,(0,r.Z)({},"".concat(f,"-show-arrow"),u)),popupStyle:O,action:D,showAction:N,hideAction:U||[],popupPlacement:C,popupAlign:h,popupTransitionName:v,popupAnimation:m,popupVisible:A,stretch:function(){var n=e.minOverlayWidthMatchTrigger,t=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?n:!t}()?"minWidth":"",popup:"function"===typeof e.overlay?B:B(),onPopupVisibleChange:function(n){var t=e.onVisibleChange;L(n),"function"===typeof t&&t(n)},getPopupContainer:Z}),function(){var n=e.children,t=n.props?n.props:{},r=s()(t.className,function(){var n=e.openClassName;return void 0!==n?n:"".concat(f,"-open")}());return A&&n?l.cloneElement(n,{className:r}):n}())}var C=l.forwardRef(x)},8410:function(e,n,t){"use strict";var r=t(67294),o=(0,t(98924).Z)()?r.useLayoutEffect:r.useEffect;n.Z=o},73453:function(e,n,t){"use strict";t.d(n,{Z:function(){return q}});var r=t(67294),o=t(94184),a=t.n(o),i=t(48555);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;nt},e}return n=l,(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(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,n=e.dragging,t=e.visible,o=this.props.prefixCls,i=this.getSpinHeight(),l=this.getTop(),c=this.showScroll(),u=c&&t;return r.createElement("div",{ref:this.scrollbarRef,className:a()("".concat(o,"-scrollbar"),v({},"".concat(o,"-scrollbar-show"),c)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:u?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},r.createElement("div",{ref:this.thumbRef,className:a()("".concat(o,"-scrollbar-thumb"),v({},"".concat(o,"-scrollbar-thumb-moving"),n)),style:{width:"100%",height:i,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&h(n.prototype,t),o&&h(n,o),Object.defineProperty(n,"prototype",{writable:!1}),l}(r.Component);function w(e){var n=e.children,t=e.setRef,o=r.useCallback((function(e){t(e)}),[]);return r.cloneElement(n,{ref:o})}var Z=t(34203);function N(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]&&arguments[1],r=e<0&&i.current.top||e>0&&i.current.bottom;return n&&r?(clearTimeout(o.current),t.current=!1):r&&!t.current||a(),!t.current&&r}};var L=t(8410);var A=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function j(){return j=Object.assign||function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var U=[],W={overflowY:"auto",overflowAnchor:"none"};function G(e,n){var t=e.prefixCls,o=void 0===t?"rc-virtual-list":t,i=e.className,l=e.height,c=e.itemHeight,u=e.fullHeight,s=void 0===u||u,p=e.style,v=e.data,m=e.children,h=e.itemKey,g=e.virtual,y=e.component,b=void 0===y?"div":y,x=e.onScroll,C=e.onVisibleChange,N=B(e,A),O=!(!1===g||!l||!c),K=O&&v&&c*v.length>l,D=V((0,r.useState)(0),2),R=D[0],H=D[1],F=V((0,r.useState)(!1),2),G=F[0],Y=F[1],q=a()(o,i),X=v||U,J=(0,r.useRef)(),$=(0,r.useRef)(),Q=(0,r.useRef)(),ee=r.useCallback((function(e){return"function"===typeof h?h(e):null===e||void 0===e?void 0:e[h]}),[h]),ne={getKey:ee};function te(e){H((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)}("function"===typeof e?e(n):e);return J.current.scrollTop=t,t}))}var re=(0,r.useRef)({start:0,end:X.length}),oe=(0,r.useRef)(),ae=V(I(X,ee),1)[0];oe.current=ae;var ie=function(e,n,t){var o=k(r.useState(0),2),a=o[0],i=o[1],l=(0,r.useRef)(new Map),c=(0,r.useRef)(new S),u=(0,r.useRef)();function s(){f.Z.cancel(u.current)}function d(){s(),u.current=(0,f.Z)((function(){l.current.forEach((function(e,n){if(e&&e.offsetParent){var t=(0,Z.Z)(e),r=t.offsetHeight;c.current.get(n)!==r&&c.current.set(n,t.offsetHeight)}})),i((function(e){return e+1}))}))}return(0,r.useEffect)((function(){return s}),[]),[function(r,o){var a=e(r),i=l.current.get(a);o?(l.current.set(a,o),d()):l.current.delete(a),!i!==!o&&(o?null===n||void 0===n||n(r):null===t||void 0===t||t(r))},d,c.current,a]}(ee,null,null),le=V(ie,4),ce=le[0],ue=le[1],se=le[2],de=le[3],fe=r.useMemo((function(){if(!O)return{scrollHeight:void 0,start:0,end:X.length-1,offset:void 0};var e;if(!K)return{scrollHeight:(null===(e=$.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:X.length-1,offset:void 0};for(var n,t,r,o=0,a=X.length,i=0;i=R&&void 0===n&&(n=i,t=o),f>R+l&&void 0===r&&(r=i),o=f}return void 0===n&&(n=0,t=0),void 0===r&&(r=X.length-1),{scrollHeight:o,start:n,end:r=Math.min(r+1,X.length),offset:t}}),[K,O,R,X,de,l]),pe=fe.scrollHeight,ve=fe.start,me=fe.end,he=fe.offset;re.current.start=ve,re.current.end=me;var ge=pe-l,ye=(0,r.useRef)(ge);ye.current=ge;var be=R<=0,xe=R>=ge,Ce=T(be,xe);var Ee=function(e,n,t,o){var a=(0,r.useRef)(0),i=(0,r.useRef)(null),l=(0,r.useRef)(null),c=(0,r.useRef)(!1),u=T(n,t);return[function(n){if(e){f.Z.cancel(i.current);var t=n.deltaY;a.current+=t,l.current=t,u(t)||(M||n.preventDefault(),i.current=(0,f.Z)((function(){var e=c.current?10:1;o(a.current*e),a.current=0})))}},function(n){e&&(c.current=n.detail===l.current)}]}(O,be,xe,(function(e){te((function(n){return n+e}))})),we=V(Ee,2),Ze=we[0],Ne=we[1];!function(e,n,t){var o,a=(0,r.useRef)(!1),i=(0,r.useRef)(0),l=(0,r.useRef)(null),c=(0,r.useRef)(null),u=function(e){if(a.current){var n=Math.ceil(e.touches[0].pageY),r=i.current-n;i.current=n,t(r)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!t(r*=.9333333333333333,!0)||Math.abs(r)<=.1)&&clearInterval(c.current)}),16)}},s=function(){a.current=!1,o()},d=function(e){o(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u),l.current.addEventListener("touchend",s))};o=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",s))},(0,L.Z)((function(){return e&&n.current.addEventListener("touchstart",d),function(){n.current.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(O,J,(function(e,n){return!Ce(e,n)&&(Ze({preventDefault:function(){},deltaY:e}),!0)})),(0,L.Z)((function(){function e(e){O&&e.preventDefault()}return J.current.addEventListener("wheel",Ze),J.current.addEventListener("DOMMouseScroll",Ne),J.current.addEventListener("MozMousePixelScroll",e),function(){J.current.removeEventListener("wheel",Ze),J.current.removeEventListener("DOMMouseScroll",Ne),J.current.removeEventListener("MozMousePixelScroll",e)}}),[O]);var Se=function(e,n,t,o,a,i,l,c){var u=r.useRef();return function(r){if(null!==r&&void 0!==r){if(f.Z.cancel(u.current),"number"===typeof r)l(r);else if(r&&"object"===P(r)){var s,d=r.align;s="index"in r?r.index:n.findIndex((function(e){return a(e)===r.key}));var p=r.offset,v=void 0===p?0:p;!function r(c,p){if(!(c<0)&&e.current){var m=e.current.clientHeight,h=!1,g=p;if(m){for(var y=p||d,b=0,x=0,C=0,E=Math.min(n.length,s),w=0;w<=E;w+=1){var Z=a(n[w]);x=b;var N=t.get(Z);b=C=x+(void 0===N?o:N),w===s&&void 0===N&&(h=!0)}var S=null;switch(y){case"top":S=x-v;break;case"bottom":S=C-m+v;break;default:var k=e.current.scrollTop;xk+m&&(g="bottom")}null!==S&&S!==e.current.scrollTop&&l(S)}u.current=(0,f.Z)((function(){h&&i(),r(c-1,g)}))}}(3)}}else c()}}(J,X,se,c,ee,ue,te,(function(){var e;null===(e=Q.current)||void 0===e||e.delayHidden()}));r.useImperativeHandle(n,(function(){return{scrollTo:Se}})),(0,L.Z)((function(){if(C){var e=X.slice(ve,me+1);C(e,X)}}),[ve,me,X]);var ke=function(e,n,t,o,a,i){var l=i.getKey;return e.slice(n,t+1).map((function(e,t){var i=a(e,n+t,{}),c=l(e);return r.createElement(w,{key:c,setRef:function(n){return o(e,n)}},i)}))}(X,ve,me,ce,m,ne),Oe=null;return l&&(Oe=z(_({},s?"height":"maxHeight",l),W),O&&(Oe.overflowY="hidden",G&&(Oe.pointerEvents="none"))),r.createElement("div",j({style:z(z({},p),{},{position:"relative"}),className:q},N),r.createElement(b,{className:"".concat(o,"-holder"),style:Oe,ref:J,onScroll:function(e){var n=e.currentTarget.scrollTop;n!==R&&te(n),null===x||void 0===x||x(e)}},r.createElement(d,{prefixCls:o,height:pe,offset:he,onInnerResize:ue,ref:$},ke)),O&&r.createElement(E,{ref:Q,prefixCls:o,scrollTop:R,height:l,scrollHeight:pe,count:X.length,onScroll:function(e){te(e)},onStartMove:function(){Y(!0)},onStopMove:function(){Y(!1)}}))}var Y=r.forwardRef(G);Y.displayName="List";var q=Y}}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/655-43733c05714a5b2d.js b/static/admin/_next/static/chunks/655-37148fe20945e086.js similarity index 67% rename from static/admin/_next/static/chunks/655-43733c05714a5b2d.js rename to static/admin/_next/static/chunks/655-37148fe20945e086.js index dce7da526..b68e53ba7 100644 --- a/static/admin/_next/static/chunks/655-43733c05714a5b2d.js +++ b/static/admin/_next/static/chunks/655-37148fe20945e086.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[655],{94470:function(e){"use strict";var n=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},l=function(e){if(!e||"[object Object]"!==t.call(e))return!1;var r,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||n.call(e,r)},u=function(e,n){r&&"__proto__"===n.name?r(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},a=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var n,t,r,o,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"===typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});p=55296&&u<=57343){if(u>=55296&&u<=56319&&i+1=56320&&a<=57343){c+=encodeURIComponent(e[i]+e[i+1]),i++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[i]);return c}t.defaultChars=";/?:@&=+$,-_.!~*'()#",t.componentChars="-_.!~*'()",e.exports=t},71471:function(e,n){"use strict";var t=60103,r=60106,o=60107,i=60108,l=60114,u=60109,a=60110,s=60112,c=60113,f=60120,p=60115,d=60116,h=60121,m=60122,g=60117,y=60129,k=60131;if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;t=x("react.element"),r=x("react.portal"),o=x("react.fragment"),i=x("react.strict_mode"),l=x("react.profiler"),u=x("react.provider"),a=x("react.context"),s=x("react.forward_ref"),c=x("react.suspense"),f=x("react.suspense_list"),p=x("react.memo"),d=x("react.lazy"),h=x("react.block"),m=x("react.server.block"),g=x("react.fundamental"),y=x("react.debug_trace_mode"),k=x("react.legacy_hidden")}function v(e){if("object"===typeof e&&null!==e){var n=e.$$typeof;switch(n){case t:switch(e=e.type){case o:case l:case i:case c:case f:return e;default:switch(e=e&&e.$$typeof){case a:case s:case d:case p:case u:return e;default:return n}}case r:return n}}}var b=u,w=t,S=s,C=o,E=d,A=p,F=r,T=l,P=i,O=c;n.ContextConsumer=a,n.ContextProvider=b,n.Element=w,n.ForwardRef=S,n.Fragment=C,n.Lazy=E,n.Memo=A,n.Portal=F,n.Profiler=T,n.StrictMode=P,n.Suspense=O,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(e){return v(e)===a},n.isContextProvider=function(e){return v(e)===u},n.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===t},n.isForwardRef=function(e){return v(e)===s},n.isFragment=function(e){return v(e)===o},n.isLazy=function(e){return v(e)===d},n.isMemo=function(e){return v(e)===p},n.isPortal=function(e){return v(e)===r},n.isProfiler=function(e){return v(e)===l},n.isStrictMode=function(e){return v(e)===i},n.isSuspense=function(e){return v(e)===c},n.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===l||e===y||e===i||e===c||e===f||e===k||"object"===typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===a||e.$$typeof===s||e.$$typeof===g||e.$$typeof===h||e[0]===m)},n.typeOf=v},82143:function(e,n,t){"use strict";e.exports=t(71471)},57848:function(e,n,t){var r=t(18139);e.exports=function(e,n){var t,o=null;if(!e||"string"!==typeof e)return o;for(var i,l,u=r(e),a="function"===typeof n,s=0,c=u.length;se.length){for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1);return o<0?"":e.slice(r,o)}if(n===e)return"";let l=-1,u=n.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1),u>-1&&(e.charCodeAt(i)===n.charCodeAt(u--)?u<0&&(o=i):(u=-1,o=l));r===o?o=l:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(d(e),0===e.length)return".";let n,t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function(e){d(e);let n,t=e.length,r=-1,o=0,i=-1,l=0;for(;t--;){const u=e.charCodeAt(t);if(47!==u)r<0&&(n=!0,r=t+1),46===u?i<0?i=t:1!==l&&(l=1):i>-1&&(l=-1);else if(n){o=t+1;break}}if(i<0||r<0||0===l||1===l&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let n,t=-1;for(;++t2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=a,u=0;continue}}else if(o.length>0){o="",i=0,l=a,u=0;continue}n&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,a):o=e.slice(l+1,a),i=a-l-1;l=a,u=0}else 46===t&&u>-1?u++:u=-1}return o}(e,!n);0!==t.length||n||(t=".");t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/");return n?"/"+t:t}(n)},sep:"/"};function d(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const h={cwd:function(){return"/"}};function m(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function g(e){if("string"===typeof e)e=new URL(e);else if(!m(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const n=e.pathname;let t=-1;for(;++tn.length;let u;r&&n.push(o);try{u=e.apply(this,n)}catch(i){const n=i;if(r&&t)throw n;return o(n)}r||(u instanceof Promise?u.then(l,o):u instanceof Error?o(u):l(u))}function o(e,...r){t||(t=!0,n(e,...r))}function l(e){o(null,e)}}(u,o)(...l):r(null,...l)}}(null,...n)},use:function(t){if("function"!==typeof t)throw new TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}const A=function e(){const n=E(),t=[];let r,o={},i=-1;return u.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(I("data",r),o[e]=n,u):F.call(o,e)&&o[e]||null;if(e)return I("data",r),o=e,u;return o},u.Parser=void 0,u.Compiler=void 0,u.freeze=function(){if(r)return u;for(;++i{if(!e&&n&&t){const o=u.stringify(n,t);void 0===o||null===o||("string"===typeof(r=o)||l(r)?t.value=o:t.result=o),i(e,t)}else i(e);var r}))}t(null,n)},u.processSync=function(e){let n;u.freeze(),P("processSync",u.Parser),O("processSync",u.Compiler);const t=z(e);return u.process(t,r),L("processSync","process",n),t;function r(e){n=!0,w(e)}},u;function u(){const n=e();let r=-1;for(;++ro?0:o+n:n>o?o:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),[].splice.apply(e,i);else for(t&&[].splice.apply(e,[n,t]);l0?(B(e,e.length,0,n),e):n}const j={}.hasOwnProperty;function N(e,n){let t;for(t in n){const r=(j.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let i;for(i in o){j.call(r,i)||(r[i]=[]);const e=o[i];H(r[i],Array.isArray(e)?e:e?[e]:[])}}}function H(e,n){let t=-1;const r=[];for(;++ti))return;const t=n.events.length;let o,u,a=t;for(;a--;)if("exit"===n.events[a][0]&&"chunkFlow"===n.events[a][1].type){if(o){u=n.events[a][1].end;break}o=!0}for(y(l),e=t;er;){const r=t[o];n.containerState=r[1],r[0].exit.call(n,e)}t.length=r}function k(){r.write([null]),o=void 0,r=void 0,n.containerState._closeFlow=void 0}}},oe={tokenize:function(e,n,t){return ne(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const ie={tokenize:function(e,n,t){return ne(e,(function(e){return null===e||X(e)?n(e):t(e)}),"linePrefix")},partial:!0};function le(e){const n={};let t,r,o,i,l,u,a,s=-1;for(;++s=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}},partial:!0};const ce={tokenize:function(e){const n=this,t=e.attempt(ie,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}),e.attempt(this.parser.constructs.flowInitial,r,ne(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ae,r)),"linePrefix")));return t;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(r)}}};const fe={resolveAll:me()},pe=he("string"),de=he("text");function he(e){return{tokenize:function(n){const t=this,r=this.parser.constructs[e],o=n.attempt(r,i,l);return i;function i(e){return a(e)?o(e):l(e)}function l(e){if(null!==e)return n.enter("data"),n.consume(e),u;n.consume(e)}function u(e){return a(e)?(n.exit("data"),o(e)):(n.consume(e),u)}function a(e){if(null===e)return!0;const n=r[e];let o=-1;if(n)for(;++o-1&&(l[0]=l[0].slice(r)),i>0&&l.push(e[o].slice(0,i)));return l}(l,e)}function h(){return Object.assign({},r)}function m(){let e;for(;r._indexs?t(o):(e.consume(o),h):41===o?c--?(e.consume(o),h):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):null===o||K(o)?c?t(o):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):Y(o)?t(o):(e.consume(o),92===o?m:h)}function m(n){return 40===n||41===n||92===n?(e.consume(n),h):h(n)}}function Ee(e,n,t,r,o,i){const l=this;let u,a=0;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),e.enter(i),s};function s(f){return null===f||91===f||93===f&&!u||94===f&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs||a>999?t(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),n):X(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(n){return null===n||91===n||93===n||X(n)||a++>999?(e.exit("chunkString"),s(n)):(e.consume(n),u=u||!Z(n),92===n?f:c)}function f(n){return 91===n||92===n||93===n?(e.consume(n),a++,c):c(n)}}function Ae(e,n,t,r,o,i){let l;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),l=40===n?41:n,u};function u(t){return t===l?(e.enter(o),e.consume(t),e.exit(o),e.exit(r),n):(e.enter(i),a(t))}function a(n){return n===l?(e.exit(i),u(l)):null===n?t(n):X(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ne(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(n))}function s(n){return n===l||null===n||X(n)?(e.exit("chunkString"),a(n)):(e.consume(n),92===n?c:s)}function c(n){return n===l||92===n?(e.consume(n),s):s(n)}}function Fe(e,n){let t;return function r(o){if(X(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t=!0,r;if(Z(o))return ne(e,r,t?"linePrefix":"lineSuffix")(o);return n(o)}}function Te(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pe={name:"definition",tokenize:function(e,n,t){const r=this;let o;return function(n){return e.enter("definition"),Ee.call(r,e,i,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function i(n){return o=Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),Fe(e,Ce(e,e.attempt(Oe,ne(e,l,"whitespace"),ne(e,l,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function l(i){return null===i||X(i)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),n(i)):t(i)}}},Oe={tokenize:function(e,n,t){return function(n){return K(n)?Fe(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Ae(e,ne(e,o,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function o(e){return null===e||X(e)?n(e):t(e)}},partial:!0};const Ie={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),ne(e,o,"linePrefix",5)(n)};function o(e){const n=r.events[r.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?i(e):t(e)}function i(n){return null===n?u(n):X(n)?e.attempt(De,i,u)(n):(e.enter("codeFlowValue"),l(n))}function l(n){return null===n||X(n)?(e.exit("codeFlowValue"),i(n)):(e.consume(n),l)}function u(t){return e.exit("codeIndented"),n(t)}}},De={tokenize:function(e,n,t){const r=this;return o;function o(n){return r.parser.lazy[r.now().line]?t(n):X(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o):ne(e,i,"linePrefix",5)(n)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?n(e):X(e)?o(e):t(e)}},partial:!0};const Le={name:"headingAtx",tokenize:function(e,n,t){const r=this;let o=0;return function(n){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),i(n)};function i(u){return 35===u&&o++<6?(e.consume(u),i):null===u||K(u)?(e.exit("atxHeadingSequence"),r.interrupt?n(u):l(u)):t(u)}function l(t){return 35===t?(e.enter("atxHeadingSequence"),u(t)):null===t||X(t)?(e.exit("atxHeading"),n(t)):Z(t)?ne(e,l,"whitespace")(t):(e.enter("atxHeadingText"),a(t))}function u(n){return 35===n?(e.consume(n),u):(e.exit("atxHeadingSequence"),l(n))}function a(n){return null===n||35===n||K(n)?(e.exit("atxHeadingText"),l(n)):(e.consume(n),a)}},resolve:function(e,n){let t,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},B(e,i,o-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}};const ze={name:"setextUnderline",tokenize:function(e,n,t){const r=this;let o,i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}return function(n){if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=n,u(n);return t(n)};function u(n){return n===o?(e.consume(n),u):(e.exit("setextHeadingLineSequence"),ne(e,a,"lineSuffix")(n))}function a(r){return null===r||X(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){let t,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){t=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,n]),e.splice(o+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[o][1].end)):e[t][1]=l;return e.push(["exit",l,n]),e}};const Me=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Re=["pre","script","style","textarea"],Be={name:"htmlFlow",tokenize:function(e,n,t){const r=this;let o,i,l,u,a;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(u){return 33===u?(e.consume(u),c):47===u?(e.consume(u),d):63===u?(e.consume(u),o=3,r.interrupt?n:z):U(u)?(e.consume(u),l=String.fromCharCode(u),i=!0,h):t(u)}function c(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,l="CDATA[",u=0,p):U(i)?(e.consume(i),o=4,r.interrupt?n:z):t(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?n:z):t(o)}function p(o){return o===l.charCodeAt(u++)?(e.consume(o),u===l.length?r.interrupt?n:A:p):t(o)}function d(n){return U(n)?(e.consume(n),l=String.fromCharCode(n),h):t(n)}function h(u){return null===u||47===u||62===u||K(u)?47!==u&&i&&Re.includes(l.toLowerCase())?(o=1,r.interrupt?n(u):A(u)):Me.includes(l.toLowerCase())?(o=6,47===u?(e.consume(u),m):r.interrupt?n(u):A(u)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(u):i?y(u):g(u)):45===u||$(u)?(e.consume(u),l+=String.fromCharCode(u),h):t(u)}function m(o){return 62===o?(e.consume(o),r.interrupt?n:A):t(o)}function g(n){return Z(n)?(e.consume(n),g):C(n)}function y(n){return 47===n?(e.consume(n),C):58===n||95===n||U(n)?(e.consume(n),k):Z(n)?(e.consume(n),y):C(n)}function k(n){return 45===n||46===n||58===n||95===n||$(n)?(e.consume(n),k):x(n)}function x(n){return 61===n?(e.consume(n),v):Z(n)?(e.consume(n),x):y(n)}function v(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),a=n,b):Z(n)?(e.consume(n),v):(a=null,w(n))}function b(n){return null===n||X(n)?t(n):n===a?(e.consume(n),S):(e.consume(n),b)}function w(n){return null===n||34===n||39===n||60===n||61===n||62===n||96===n||K(n)?x(n):(e.consume(n),w)}function S(e){return 47===e||62===e||Z(e)?y(e):t(e)}function C(n){return 62===n?(e.consume(n),E):t(n)}function E(n){return Z(n)?(e.consume(n),E):null===n||X(n)?A(n):t(n)}function A(n){return 45===n&&2===o?(e.consume(n),O):60===n&&1===o?(e.consume(n),I):62===n&&4===o?(e.consume(n),M):63===n&&3===o?(e.consume(n),z):93===n&&5===o?(e.consume(n),L):!X(n)||6!==o&&7!==o?null===n||X(n)?F(n):(e.consume(n),A):e.check(_e,M,F)(n)}function F(n){return e.exit("htmlFlowData"),T(n)}function T(n){return null===n?R(n):X(n)?e.attempt({tokenize:P,partial:!0},T,R)(n):(e.enter("htmlFlowData"),A(n))}function P(e,n,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?t(e):n(e)}}function O(n){return 45===n?(e.consume(n),z):A(n)}function I(n){return 47===n?(e.consume(n),l="",D):A(n)}function D(n){return 62===n&&Re.includes(l.toLowerCase())?(e.consume(n),M):U(n)&&l.length<8?(e.consume(n),l+=String.fromCharCode(n),D):A(n)}function L(n){return 93===n?(e.consume(n),z):A(n)}function z(n){return 62===n?(e.consume(n),M):45===n&&2===o?(e.consume(n),z):A(n)}function M(n){return null===n||X(n)?(e.exit("htmlFlowData"),R(n)):(e.consume(n),M)}function R(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2));return e},concrete:!0},_e={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(ie,n,t)}},partial:!0};const je={name:"codeFenced",tokenize:function(e,n,t){const r=this,o={tokenize:function(e,n,t){let r=0;return ne(e,o,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(n){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),i(n)}function i(n){return n===a?(e.consume(n),r++,i):r1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[t][1].end),p=Object.assign({},e[c][1].start);Je(f,-u),Je(p,u),i={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},l={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},l.end)},e[t][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},l.end),a=[],e[t][1].end.offset-e[t][1].start.offset&&(a=_(a,[["enter",e[t][1],n],["exit",e[t][1],n]])),a=_(a,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",o,n]]),a=_(a,ye(n.parser.constructs.insideSpan.null,e.slice(t+1,c),n)),a=_(a,[["exit",o,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,a=_(a,[["enter",e[c][1],n],["exit",e[c][1],n]])):s=0,B(e,t-1,c-t+3,a),c=t+a.length-s-2;break}c=-1;for(;++c13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535===(65535&t)||65534===(65535&t)||t>1114111?"\ufffd":String.fromCharCode(t)}const yn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kn(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return gn(t.slice(n?2:1),n?16:10)}return He(t)||e}const xn={}.hasOwnProperty,vn=function(e,n,t){return"string"!==typeof n&&(t=n,n=void 0),function(e={}){const n=bn({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ie),autolinkProtocol:P,autolinkEmail:P,atxHeading:s(ne),blockQuote:s(X),characterEscape:P,characterReference:P,codeFenced:s(Z),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Z,c),codeText:s(J,c),codeTextData:P,data:P,codeFlowValue:P,definition:s(G),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(ee),hardBreakEscape:s(te),hardBreakTrailing:s(te),htmlFlow:s(re,c),htmlFlowData:P,htmlText:s(re,c),htmlTextData:P,image:s(oe),label:c,link:s(ie),listItem:s(ue),listItemValue:g,listOrdered:s(le,m),listUnordered:s(le),paragraph:s(ae),reference:q,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ne),strong:s(se),thematicBreak:s(fe)},exit:{atxHeading:p(),atxHeadingSequence:E,autolink:p(),autolinkEmail:K,autolinkProtocol:Y,blockQuote:p(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:Q,codeFenced:p(v),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:k,codeFlowValue:O,codeIndented:p(b),codeText:p(R),codeTextData:O,data:O,definition:p(),definitionDestinationString:C,definitionLabelString:w,definitionTitleString:S,emphasis:p(),hardBreakEscape:p(D),hardBreakTrailing:p(D),htmlFlow:p(L),htmlFlowData:O,htmlText:p(z),htmlTextData:O,image:p(_),label:N,labelText:j,lineEnding:I,link:p(B),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:$,resourceDestinationString:H,resourceTitleString:U,resource:V,setextHeading:p(T),setextHeadingLineSequence:F,setextHeadingText:A,strong:p(),thematicBreak:p()}},e.mdastExtensions||[]),t={};return r;function r(e){let t={type:"root",children:[]};const r=[],u=[],s={stack:[t],tokenStack:r,config:n,enter:f,exit:d,buffer:c,resume:h,setData:i,getData:l};let p=-1;for(;++p0){const e=r[r.length-1];(e[1]||Sn).call(s,void 0,e[0])}for(t.position={start:a(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:a(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p{const t=this.data("settings");return vn(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})},En=function(e,n,t){var r={type:String(e)};return void 0!==t&&null!==t||"string"!==typeof n&&!Array.isArray(n)?Object.assign(r,n):t=n,Array.isArray(t)?r.children=t:void 0!==t&&null!==t&&(r.value=String(t)),r};const An=function(e){if(void 0===e||null===e)return Tn;if("string"===typeof e)return function(e){return Fn(n);function n(n){return n&&n.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t":"")+")"}));return f;function f(){let s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c-1?t.offset:null}}}const zn=function(e,n,t,r){"function"===typeof n&&"function"!==typeof t&&(r=t,t=n,n=null);var o=An(n),i=r?-1:1;!function e(l,u,a){var s,c="object"===typeof l&&null!==l?l:{};"string"===typeof c.type&&(s="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+c.type+(s?"<"+s+">":"")+")"}));return f;function f(){var s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c":"gt"};function qn(e,n){const t=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+Vn[e]+";"}))}(function(e){const n=[];let t=-1,r=0,o=0;for(;++t55295&&i<57344){const n=e.charCodeAt(t+1);i<56320&&n>56319&&n<57344?(l=String.fromCharCode(i,n),o=1):l="\ufffd"}else l=String.fromCharCode(i);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+o+1,l=""),o&&(t+=o,o=0)}return n.join("")+e.slice(r)}(e||""));if(!n)return t;const r=t.indexOf(":"),o=t.indexOf("?"),i=t.indexOf("#"),l=t.indexOf("/");return r<0||l>-1&&r>l||o>-1&&r>o||i>-1&&r>i||n.test(t.slice(0,r))?t:""}function $n(e,n){const t=[];let r=-1;for(n&&t.push(En("text","\n"));++r0&&t.push(En("text","\n")),t}function Wn(e,n){const t=String(n.identifier),r=qn(t.toLowerCase()),o=e.footnoteOrder.indexOf(t);let i;-1===o?(e.footnoteOrder.push(t),e.footnoteCounts[t]=1,i=e.footnoteOrder.length):(e.footnoteCounts[t]++,i=o+1);const l=e.footnoteCounts[t];return e(n,"sup",[e(n.position,"a",{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[En("text",String(i))])])}var Qn=t(70729);function Yn(e,n){const t=n.referenceType;let r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return En("text","!["+n.alt+r);const o=Un(e,n),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift(En("text","["));const l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push(En("text",r)),o}function Kn(e){const n=e.spread;return void 0===n||null===n?e.children.length>1:n}const Xn={blockquote:function(e,n){return e(n,"blockquote",$n(Un(e,n),!0))},break:function(e,n){return[e(n,"br"),En("text","\n")]},code:function(e,n){const t=n.value?n.value+"\n":"",r=n.lang&&n.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};r&&(o.className=["language-"+r]);const i=e(n,"code",o,[En("text",t)]);return n.meta&&(i.data={meta:n.meta}),e(n.position,"pre",[i])},delete:function(e,n){return e(n,"del",Un(e,n))},emphasis:function(e,n){return e(n,"em",Un(e,n))},footnoteReference:Wn,footnote:function(e,n){const t=e.footnoteById;let r=1;for(;r in t;)r++;const o=String(r);return t[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:n.children}],position:n.position},Wn(e,{type:"footnoteReference",identifier:o,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,Un(e,n))},html:function(e,n){return e.dangerous?e.augment(n,En("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Yn(e,n);const r={src:Qn(t.url||""),alt:n.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"img",r)},image:function(e,n){const t={src:Qn(n.url),alt:n.alt};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"img",t)},inlineCode:function(e,n){return e(n,"code",[En("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Yn(e,n);const r={href:Qn(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,Un(e,n))},link:function(e,n){const t={href:Qn(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,Un(e,n))},listItem:function(e,n,t){const r=Un(e,n),o=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r0&&t.children.unshift(En("text"," ")),t.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),i.className=["task-list-item"]}let u=-1;for(;++u{const n=String(e.identifier).toUpperCase();Jn.call(o,n)||(o[n]=e)})),l;function i(e,n){if(e&&"data"in e&&e.data){const t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){const r="type"in e?e:{position:e};(t=r)&&t.position&&t.position.start&&t.position.start.line&&t.position.start.column&&t.position.end&&t.position.end.line&&t.position.end.column&&(n.position={start:In(r),end:Dn(r)})}var t;return n}function l(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),i(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}(e,n),r=Nn(t,e,null),o=function(e){let n=-1;const t=[];for(;++n1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};u>1&&n.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(n)}const s=o[o.length-1];if(s&&"element"===s.type&&"p"===s.tagName){const e=s.children[s.children.length-1];e&&"text"===e.type?e.value+=" ":s.children.push({type:"text",value:" "}),s.children.push(...a)}else o.push(...a);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+l},children:$n(o,!0)};r.position&&(c.position=r.position),t.push(c)}return 0===t.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[En("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:$n(t,!0)},{type:"text",value:"\n"}]}}(t);return o&&r.children.push(En("text","\n"),o),Array.isArray(r)?{type:"root",children:r}:r}var et=function(e,n){return e&&"run"in e?function(e,n){return(t,r,o)=>{e.run(Gn(t,n),r,(e=>{o(e)}))}}(e,n):function(e){return n=>Gn(n,e)}(e||n)};var nt=t(45697);class tt{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function rt(e,n){const t={},r={};let o=-1;for(;++o"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),bt=xt({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function wt(e,n){return n in e?e[n]:n}function St(e,n){return wt(e,n.toLowerCase())}const Ct=xt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:St,properties:{xmlns:null,xmlnsXLink:null}}),Et=xt({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:at,ariaAutoComplete:null,ariaBusy:at,ariaChecked:at,ariaColCount:ct,ariaColIndex:ct,ariaColSpan:ct,ariaControls:ft,ariaCurrent:null,ariaDescribedBy:ft,ariaDetails:null,ariaDisabled:at,ariaDropEffect:ft,ariaErrorMessage:null,ariaExpanded:at,ariaFlowTo:ft,ariaGrabbed:at,ariaHasPopup:null,ariaHidden:at,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ft,ariaLevel:ct,ariaLive:null,ariaModal:at,ariaMultiLine:at,ariaMultiSelectable:at,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:ct,ariaPressed:at,ariaReadOnly:at,ariaRelevant:null,ariaRequired:at,ariaRoleDescription:ft,ariaRowCount:ct,ariaRowIndex:ct,ariaRowSpan:ct,ariaSelected:at,ariaSetSize:ct,ariaSort:null,ariaValueMax:ct,ariaValueMin:ct,ariaValueNow:ct,ariaValueText:null,role:null}}),At=xt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:St,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pt,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:ut,allowPaymentRequest:ut,allowUserMedia:ut,alt:null,as:null,async:ut,autoCapitalize:null,autoComplete:ft,autoFocus:ut,autoPlay:ut,capture:ut,charSet:null,checked:ut,cite:null,className:ft,cols:ct,colSpan:null,content:null,contentEditable:at,controls:ut,controlsList:ft,coords:ct|pt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ut,defer:ut,dir:null,dirName:null,disabled:ut,download:st,draggable:at,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ut,formTarget:null,headers:ft,height:ct,hidden:ut,high:ct,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:ut,itemId:null,itemProp:ft,itemRef:ft,itemScope:ut,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ut,low:ct,manifest:null,max:null,maxLength:ct,media:null,method:null,min:null,minLength:ct,multiple:ut,muted:ut,name:null,nonce:null,noModule:ut,noValidate:ut,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ut,optimum:ct,pattern:null,ping:ft,placeholder:null,playsInline:ut,poster:null,preload:null,readOnly:ut,referrerPolicy:null,rel:ft,required:ut,reversed:ut,rows:ct,rowSpan:ct,sandbox:ft,scope:null,scoped:ut,seamless:ut,selected:ut,shape:null,size:ct,sizes:null,slot:null,span:ct,spellCheck:at,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ct,step:null,style:null,tabIndex:ct,target:null,title:null,translate:null,type:null,typeMustMatch:ut,useMap:null,value:at,width:ct,wrap:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:ct,borderColor:null,bottomMargin:ct,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ut,declare:ut,event:null,face:null,frame:null,frameBorder:null,hSpace:ct,leftMargin:ct,link:null,longDesc:null,lowSrc:null,marginHeight:ct,marginWidth:ct,noResize:ut,noHref:ut,noShade:ut,noWrap:ut,object:null,profile:null,prompt:null,rev:null,rightMargin:ct,rules:null,scheme:null,scrolling:at,standby:null,summary:null,text:null,topMargin:ct,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ct,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ut,disableRemotePlayback:ut,prefix:null,property:null,results:ct,security:null,unselectable:null}}),Ft=xt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:wt,properties:{about:dt,accentHeight:ct,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ct,amplitude:ct,arabicForm:null,ascent:ct,attributeName:null,attributeType:null,azimuth:ct,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ct,by:null,calcMode:null,capHeight:ct,className:ft,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ct,diffuseConstant:ct,direction:null,display:null,dur:null,divisor:ct,dominantBaseline:null,download:ut,dx:null,dy:null,edgeMode:null,editable:null,elevation:ct,enableBackground:null,end:null,event:null,exponent:ct,externalResourcesRequired:null,fill:null,fillOpacity:ct,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:pt,g2:pt,glyphName:pt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ct,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ct,horizOriginX:ct,horizOriginY:ct,id:null,ideographic:ct,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ct,k:ct,k1:ct,k2:ct,k3:ct,k4:ct,kernelMatrix:dt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ct,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ct,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ct,overlineThickness:ct,paintOrder:null,panose1:null,path:null,pathLength:ct,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ct,pointsAtY:ct,pointsAtZ:ct,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dt,rev:dt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dt,requiredFeatures:dt,requiredFonts:dt,requiredFormats:dt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ct,specularExponent:ct,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ct,strikethroughThickness:ct,string:null,stroke:null,strokeDashArray:dt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ct,strokeOpacity:ct,strokeWidth:null,style:null,surfaceScale:ct,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dt,tabIndex:ct,tableValues:null,target:null,targetX:ct,targetY:ct,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dt,to:null,transform:null,u1:null,u2:null,underlinePosition:ct,underlineThickness:ct,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ct,values:null,vAlphabetic:ct,vMathematical:ct,vectorEffect:null,vHanging:ct,vIdeographic:ct,version:null,vertAdvY:ct,vertOriginX:ct,vertOriginY:ct,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ct,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Tt=rt([bt,vt,Ct,Et,At],"html"),Pt=rt([bt,vt,Ct,Et,Ft],"svg");function Ot(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{On(n,"element",((n,t,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(n.tagName)),!i&&e.allowElement&&"number"===typeof t&&(i=!e.allowElement(n,t,o)),i&&"number"===typeof t)return e.unwrapDisallowed&&n.children?o.children.splice(t,1,...n.children):o.children.splice(t,1),t}))}}const It=["http","https","mailto","tel"];var Dt=t(82143);function Lt(e){var n=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof n&&""===n.replace(/[ \t\n\f\r]/g,"")}const zt=/^data[-\w.:]+$/i,Mt=/-[a-z]/g,Rt=/[A-Z]/g;function Bt(e){return"-"+e.toLowerCase()}function _t(e){return e.charAt(1).toUpperCase()}const jt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Nt=t(57848);const Ht={}.hasOwnProperty,Ut=new Set(["table","thead","tbody","tfoot","tr"]);function Vt(e,n){const t=[];let r,o=-1;for(;++oString(e))).join("")),!h&&o.rawSourcePos&&(a.sourcePosition=n.position),!h&&o.includeElementIndex&&(a.index=$t(r,n),a.siblingCount=$t(r)),h||(a.node=n),f.length>0?i.createElement(d,a,f):i.createElement(d,a)}function $t(e,n){let t=-1,r=0;for(;++t4&&"data"===t.slice(0,4)&&zt.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(Mt,_t);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!Mt.test(e)){let t=e.replace(Rt,Bt);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}o=gt}return new o(r,n)}(r.schema,n);let i=t;null!==i&&void 0!==i&&i===i&&(Array.isArray(i)&&(i=o.commaSeparated?function(e,n){var t=n||{};return""===e[e.length-1]&&(e=e.concat("")),e.join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===o.property&&"string"===typeof i&&(i=function(e){const n={};try{Nt(e,t)}catch{}return n;function t(e,t){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;n[r.replace(/-([a-z])/g,Qt)]=t}}(i)),o.space&&o.property?e[Ht.call(jt,o.property)?jt[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function Qt(e,n){return n.toUpperCase()}const Yt={}.hasOwnProperty,Kt={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function Xt(e){for(const i in Kt)if(Yt.call(Kt,i)&&Yt.call(e,i)){const e=Kt[i];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${i}\` (see for more info)`),delete Kt[i]}const n=A().use(Cn).use(e.remarkPlugins||[]).use(et,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Ot,e),t=new k;"string"===typeof e.children?t.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=n.runSync(n.parse(t),t);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=i.createElement(i.Fragment,{},Vt({options:e,schema:Tt,listDepth:0},r));return e.className&&(o=i.createElement("div",{className:e.className},o)),o}Xt.defaultProps={transformLinkUri:function(e){const n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;const r=n.indexOf(":");if(-1===r)return n;let o=-1;for(;++oo?n:(o=n.indexOf("#"),-1!==o&&r>o?n:"javascript:void(0)")}},Xt.propTypes={children:nt.string,className:nt.string,allowElement:nt.func,allowedElements:nt.arrayOf(nt.string),disallowedElements:nt.arrayOf(nt.string),unwrapDisallowed:nt.bool,remarkPlugins:nt.arrayOf(nt.oneOfType([nt.object,nt.func,nt.arrayOf(nt.oneOfType([nt.object,nt.func]))])),rehypePlugins:nt.arrayOf(nt.oneOfType([nt.object,nt.func,nt.arrayOf(nt.oneOfType([nt.object,nt.func]))])),sourcePos:nt.bool,rawSourcePos:nt.bool,skipHtml:nt.bool,includeElementIndex:nt.bool,transformLinkUri:nt.oneOfType([nt.func,nt.bool]),linkTarget:nt.oneOfType([nt.func,nt.string]),transformImageUri:nt.func,components:nt.object}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[655],{94470:function(e){"use strict";var n=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},l=function(e){if(!e||"[object Object]"!==t.call(e))return!1;var r,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||n.call(e,r)},u=function(e,n){r&&"__proto__"===n.name?r(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},a=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var n,t,r,o,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"===typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});p=55296&&u<=57343){if(u>=55296&&u<=56319&&i+1=56320&&a<=57343){c+=encodeURIComponent(e[i]+e[i+1]),i++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[i]);return c}t.defaultChars=";/?:@&=+$,-_.!~*'()#",t.componentChars="-_.!~*'()",e.exports=t},71471:function(e,n){"use strict";var t=60103,r=60106,o=60107,i=60108,l=60114,u=60109,a=60110,s=60112,c=60113,f=60120,p=60115,d=60116,h=60121,m=60122,g=60117,y=60129,k=60131;if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;t=x("react.element"),r=x("react.portal"),o=x("react.fragment"),i=x("react.strict_mode"),l=x("react.profiler"),u=x("react.provider"),a=x("react.context"),s=x("react.forward_ref"),c=x("react.suspense"),f=x("react.suspense_list"),p=x("react.memo"),d=x("react.lazy"),h=x("react.block"),m=x("react.server.block"),g=x("react.fundamental"),y=x("react.debug_trace_mode"),k=x("react.legacy_hidden")}function v(e){if("object"===typeof e&&null!==e){var n=e.$$typeof;switch(n){case t:switch(e=e.type){case o:case l:case i:case c:case f:return e;default:switch(e=e&&e.$$typeof){case a:case s:case d:case p:case u:return e;default:return n}}case r:return n}}}var b=u,w=t,S=s,C=o,E=d,A=p,F=r,T=l,P=i,O=c;n.ContextConsumer=a,n.ContextProvider=b,n.Element=w,n.ForwardRef=S,n.Fragment=C,n.Lazy=E,n.Memo=A,n.Portal=F,n.Profiler=T,n.StrictMode=P,n.Suspense=O,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(e){return v(e)===a},n.isContextProvider=function(e){return v(e)===u},n.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===t},n.isForwardRef=function(e){return v(e)===s},n.isFragment=function(e){return v(e)===o},n.isLazy=function(e){return v(e)===d},n.isMemo=function(e){return v(e)===p},n.isPortal=function(e){return v(e)===r},n.isProfiler=function(e){return v(e)===l},n.isStrictMode=function(e){return v(e)===i},n.isSuspense=function(e){return v(e)===c},n.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===l||e===y||e===i||e===c||e===f||e===k||"object"===typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===a||e.$$typeof===s||e.$$typeof===g||e.$$typeof===h||e[0]===m)},n.typeOf=v},82143:function(e,n,t){"use strict";e.exports=t(71471)},57848:function(e,n,t){var r=t(18139);e.exports=function(e,n){var t,o=null;if(!e||"string"!==typeof e)return o;for(var i,l,u=r(e),a="function"===typeof n,s=0,c=u.length;se.length){for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1);return o<0?"":e.slice(r,o)}if(n===e)return"";let l=-1,u=n.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1),u>-1&&(e.charCodeAt(i)===n.charCodeAt(u--)?u<0&&(o=i):(u=-1,o=l));r===o?o=l:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(d(e),0===e.length)return".";let n,t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function(e){d(e);let n,t=e.length,r=-1,o=0,i=-1,l=0;for(;t--;){const u=e.charCodeAt(t);if(47!==u)r<0&&(n=!0,r=t+1),46===u?i<0?i=t:1!==l&&(l=1):i>-1&&(l=-1);else if(n){o=t+1;break}}if(i<0||r<0||0===l||1===l&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let n,t=-1;for(;++t2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=a,u=0;continue}}else if(o.length>0){o="",i=0,l=a,u=0;continue}n&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,a):o=e.slice(l+1,a),i=a-l-1;l=a,u=0}else 46===t&&u>-1?u++:u=-1}return o}(e,!n);0!==t.length||n||(t=".");t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/");return n?"/"+t:t}(n)},sep:"/"};function d(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const h={cwd:function(){return"/"}};function m(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function g(e){if("string"===typeof e)e=new URL(e);else if(!m(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const n=e.pathname;let t=-1;for(;++tn.length;let u;r&&n.push(o);try{u=e.apply(this,n)}catch(i){const n=i;if(r&&t)throw n;return o(n)}r||(u instanceof Promise?u.then(l,o):u instanceof Error?o(u):l(u))}function o(e,...r){t||(t=!0,n(e,...r))}function l(e){o(null,e)}}(u,o)(...l):r(null,...l)}}(null,...n)},use:function(t){if("function"!==typeof t)throw new TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}const A=function e(){const n=E(),t=[];let r,o={},i=-1;return u.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(I("data",r),o[e]=n,u):F.call(o,e)&&o[e]||null;if(e)return I("data",r),o=e,u;return o},u.Parser=void 0,u.Compiler=void 0,u.freeze=function(){if(r)return u;for(;++i{if(!e&&n&&t){const o=u.stringify(n,t);void 0===o||null===o||("string"===typeof(r=o)||l(r)?t.value=o:t.result=o),i(e,t)}else i(e);var r}))}t(null,n)},u.processSync=function(e){let n;u.freeze(),P("processSync",u.Parser),O("processSync",u.Compiler);const t=z(e);return u.process(t,r),L("processSync","process",n),t;function r(e){n=!0,w(e)}},u;function u(){const n=e();let r=-1;for(;++ro?0:o+n:n>o?o:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),[].splice.apply(e,i);else for(t&&[].splice.apply(e,[n,t]);l0?(B(e,e.length,0,n),e):n}const j={}.hasOwnProperty;function N(e,n){let t;for(t in n){const r=(j.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let i;for(i in o){j.call(r,i)||(r[i]=[]);const e=o[i];H(r[i],Array.isArray(e)?e:e?[e]:[])}}}function H(e,n){let t=-1;const r=[];for(;++ti))return;const t=n.events.length;let o,u,a=t;for(;a--;)if("exit"===n.events[a][0]&&"chunkFlow"===n.events[a][1].type){if(o){u=n.events[a][1].end;break}o=!0}for(y(l),e=t;er;){const r=t[o];n.containerState=r[1],r[0].exit.call(n,e)}t.length=r}function k(){r.write([null]),o=void 0,r=void 0,n.containerState._closeFlow=void 0}}},oe={tokenize:function(e,n,t){return ne(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const ie={tokenize:function(e,n,t){return ne(e,(function(e){return null===e||X(e)?n(e):t(e)}),"linePrefix")},partial:!0};function le(e){const n={};let t,r,o,i,l,u,a,s=-1;for(;++s=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}},partial:!0};const ce={tokenize:function(e){const n=this,t=e.attempt(ie,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}),e.attempt(this.parser.constructs.flowInitial,r,ne(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ae,r)),"linePrefix")));return t;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(r)}}};const fe={resolveAll:me()},pe=he("string"),de=he("text");function he(e){return{tokenize:function(n){const t=this,r=this.parser.constructs[e],o=n.attempt(r,i,l);return i;function i(e){return a(e)?o(e):l(e)}function l(e){if(null!==e)return n.enter("data"),n.consume(e),u;n.consume(e)}function u(e){return a(e)?(n.exit("data"),o(e)):(n.consume(e),u)}function a(e){if(null===e)return!0;const n=r[e];let o=-1;if(n)for(;++o-1&&(l[0]=l[0].slice(r)),i>0&&l.push(e[o].slice(0,i)));return l}(l,e)}function h(){return Object.assign({},r)}function m(){let e;for(;r._indexs?t(o):(e.consume(o),h):41===o?c--?(e.consume(o),h):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):null===o||K(o)?c?t(o):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):Y(o)?t(o):(e.consume(o),92===o?m:h)}function m(n){return 40===n||41===n||92===n?(e.consume(n),h):h(n)}}function Ee(e,n,t,r,o,i){const l=this;let u,a=0;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),e.enter(i),s};function s(f){return null===f||91===f||93===f&&!u||94===f&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs||a>999?t(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),n):X(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(n){return null===n||91===n||93===n||X(n)||a++>999?(e.exit("chunkString"),s(n)):(e.consume(n),u=u||!Z(n),92===n?f:c)}function f(n){return 91===n||92===n||93===n?(e.consume(n),a++,c):c(n)}}function Ae(e,n,t,r,o,i){let l;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),l=40===n?41:n,u};function u(t){return t===l?(e.enter(o),e.consume(t),e.exit(o),e.exit(r),n):(e.enter(i),a(t))}function a(n){return n===l?(e.exit(i),u(l)):null===n?t(n):X(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ne(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(n))}function s(n){return n===l||null===n||X(n)?(e.exit("chunkString"),a(n)):(e.consume(n),92===n?c:s)}function c(n){return n===l||92===n?(e.consume(n),s):s(n)}}function Fe(e,n){let t;return function r(o){if(X(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t=!0,r;if(Z(o))return ne(e,r,t?"linePrefix":"lineSuffix")(o);return n(o)}}function Te(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pe={name:"definition",tokenize:function(e,n,t){const r=this;let o;return function(n){return e.enter("definition"),Ee.call(r,e,i,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function i(n){return o=Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),Fe(e,Ce(e,e.attempt(Oe,ne(e,l,"whitespace"),ne(e,l,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function l(i){return null===i||X(i)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),n(i)):t(i)}}},Oe={tokenize:function(e,n,t){return function(n){return K(n)?Fe(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Ae(e,ne(e,o,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function o(e){return null===e||X(e)?n(e):t(e)}},partial:!0};const Ie={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),ne(e,o,"linePrefix",5)(n)};function o(e){const n=r.events[r.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?i(e):t(e)}function i(n){return null===n?u(n):X(n)?e.attempt(De,i,u)(n):(e.enter("codeFlowValue"),l(n))}function l(n){return null===n||X(n)?(e.exit("codeFlowValue"),i(n)):(e.consume(n),l)}function u(t){return e.exit("codeIndented"),n(t)}}},De={tokenize:function(e,n,t){const r=this;return o;function o(n){return r.parser.lazy[r.now().line]?t(n):X(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o):ne(e,i,"linePrefix",5)(n)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?n(e):X(e)?o(e):t(e)}},partial:!0};const Le={name:"headingAtx",tokenize:function(e,n,t){const r=this;let o=0;return function(n){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),i(n)};function i(u){return 35===u&&o++<6?(e.consume(u),i):null===u||K(u)?(e.exit("atxHeadingSequence"),r.interrupt?n(u):l(u)):t(u)}function l(t){return 35===t?(e.enter("atxHeadingSequence"),u(t)):null===t||X(t)?(e.exit("atxHeading"),n(t)):Z(t)?ne(e,l,"whitespace")(t):(e.enter("atxHeadingText"),a(t))}function u(n){return 35===n?(e.consume(n),u):(e.exit("atxHeadingSequence"),l(n))}function a(n){return null===n||35===n||K(n)?(e.exit("atxHeadingText"),l(n)):(e.consume(n),a)}},resolve:function(e,n){let t,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},B(e,i,o-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}};const ze={name:"setextUnderline",tokenize:function(e,n,t){const r=this;let o,i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}return function(n){if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=n,u(n);return t(n)};function u(n){return n===o?(e.consume(n),u):(e.exit("setextHeadingLineSequence"),ne(e,a,"lineSuffix")(n))}function a(r){return null===r||X(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){let t,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){t=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,n]),e.splice(o+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[o][1].end)):e[t][1]=l;return e.push(["exit",l,n]),e}};const Me=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Re=["pre","script","style","textarea"],Be={name:"htmlFlow",tokenize:function(e,n,t){const r=this;let o,i,l,u,a;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(u){return 33===u?(e.consume(u),c):47===u?(e.consume(u),d):63===u?(e.consume(u),o=3,r.interrupt?n:z):U(u)?(e.consume(u),l=String.fromCharCode(u),i=!0,h):t(u)}function c(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,l="CDATA[",u=0,p):U(i)?(e.consume(i),o=4,r.interrupt?n:z):t(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?n:z):t(o)}function p(o){return o===l.charCodeAt(u++)?(e.consume(o),u===l.length?r.interrupt?n:A:p):t(o)}function d(n){return U(n)?(e.consume(n),l=String.fromCharCode(n),h):t(n)}function h(u){return null===u||47===u||62===u||K(u)?47!==u&&i&&Re.includes(l.toLowerCase())?(o=1,r.interrupt?n(u):A(u)):Me.includes(l.toLowerCase())?(o=6,47===u?(e.consume(u),m):r.interrupt?n(u):A(u)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(u):i?y(u):g(u)):45===u||$(u)?(e.consume(u),l+=String.fromCharCode(u),h):t(u)}function m(o){return 62===o?(e.consume(o),r.interrupt?n:A):t(o)}function g(n){return Z(n)?(e.consume(n),g):C(n)}function y(n){return 47===n?(e.consume(n),C):58===n||95===n||U(n)?(e.consume(n),k):Z(n)?(e.consume(n),y):C(n)}function k(n){return 45===n||46===n||58===n||95===n||$(n)?(e.consume(n),k):x(n)}function x(n){return 61===n?(e.consume(n),v):Z(n)?(e.consume(n),x):y(n)}function v(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),a=n,b):Z(n)?(e.consume(n),v):(a=null,w(n))}function b(n){return null===n||X(n)?t(n):n===a?(e.consume(n),S):(e.consume(n),b)}function w(n){return null===n||34===n||39===n||60===n||61===n||62===n||96===n||K(n)?x(n):(e.consume(n),w)}function S(e){return 47===e||62===e||Z(e)?y(e):t(e)}function C(n){return 62===n?(e.consume(n),E):t(n)}function E(n){return Z(n)?(e.consume(n),E):null===n||X(n)?A(n):t(n)}function A(n){return 45===n&&2===o?(e.consume(n),O):60===n&&1===o?(e.consume(n),I):62===n&&4===o?(e.consume(n),M):63===n&&3===o?(e.consume(n),z):93===n&&5===o?(e.consume(n),L):!X(n)||6!==o&&7!==o?null===n||X(n)?F(n):(e.consume(n),A):e.check(_e,M,F)(n)}function F(n){return e.exit("htmlFlowData"),T(n)}function T(n){return null===n?R(n):X(n)?e.attempt({tokenize:P,partial:!0},T,R)(n):(e.enter("htmlFlowData"),A(n))}function P(e,n,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?t(e):n(e)}}function O(n){return 45===n?(e.consume(n),z):A(n)}function I(n){return 47===n?(e.consume(n),l="",D):A(n)}function D(n){return 62===n&&Re.includes(l.toLowerCase())?(e.consume(n),M):U(n)&&l.length<8?(e.consume(n),l+=String.fromCharCode(n),D):A(n)}function L(n){return 93===n?(e.consume(n),z):A(n)}function z(n){return 62===n?(e.consume(n),M):45===n&&2===o?(e.consume(n),z):A(n)}function M(n){return null===n||X(n)?(e.exit("htmlFlowData"),R(n)):(e.consume(n),M)}function R(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2));return e},concrete:!0},_e={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(ie,n,t)}},partial:!0};const je={name:"codeFenced",tokenize:function(e,n,t){const r=this,o={tokenize:function(e,n,t){let r=0;return ne(e,o,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(n){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),i(n)}function i(n){return n===a?(e.consume(n),r++,i):r1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[t][1].end),p=Object.assign({},e[c][1].start);Je(f,-u),Je(p,u),i={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},l={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},l.end)},e[t][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},l.end),a=[],e[t][1].end.offset-e[t][1].start.offset&&(a=_(a,[["enter",e[t][1],n],["exit",e[t][1],n]])),a=_(a,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",o,n]]),a=_(a,ye(n.parser.constructs.insideSpan.null,e.slice(t+1,c),n)),a=_(a,[["exit",o,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,a=_(a,[["enter",e[c][1],n],["exit",e[c][1],n]])):s=0,B(e,t-1,c-t+3,a),c=t+a.length-s-2;break}c=-1;for(;++c13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535===(65535&t)||65534===(65535&t)||t>1114111?"\ufffd":String.fromCharCode(t)}const yn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kn(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return gn(t.slice(n?2:1),n?16:10)}return He(t)||e}const xn={}.hasOwnProperty,vn=function(e,n,t){return"string"!==typeof n&&(t=n,n=void 0),function(e={}){const n=bn({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ie),autolinkProtocol:P,autolinkEmail:P,atxHeading:s(ne),blockQuote:s(X),characterEscape:P,characterReference:P,codeFenced:s(Z),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Z,c),codeText:s(J,c),codeTextData:P,data:P,codeFlowValue:P,definition:s(G),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(ee),hardBreakEscape:s(te),hardBreakTrailing:s(te),htmlFlow:s(re,c),htmlFlowData:P,htmlText:s(re,c),htmlTextData:P,image:s(oe),label:c,link:s(ie),listItem:s(ue),listItemValue:g,listOrdered:s(le,m),listUnordered:s(le),paragraph:s(ae),reference:q,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ne),strong:s(se),thematicBreak:s(fe)},exit:{atxHeading:p(),atxHeadingSequence:E,autolink:p(),autolinkEmail:K,autolinkProtocol:Y,blockQuote:p(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:Q,codeFenced:p(v),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:k,codeFlowValue:O,codeIndented:p(b),codeText:p(R),codeTextData:O,data:O,definition:p(),definitionDestinationString:C,definitionLabelString:w,definitionTitleString:S,emphasis:p(),hardBreakEscape:p(D),hardBreakTrailing:p(D),htmlFlow:p(L),htmlFlowData:O,htmlText:p(z),htmlTextData:O,image:p(_),label:N,labelText:j,lineEnding:I,link:p(B),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:$,resourceDestinationString:H,resourceTitleString:U,resource:V,setextHeading:p(T),setextHeadingLineSequence:F,setextHeadingText:A,strong:p(),thematicBreak:p()}},e.mdastExtensions||[]),t={};return r;function r(e){let t={type:"root",children:[]};const r=[],u=[],s={stack:[t],tokenStack:r,config:n,enter:f,exit:d,buffer:c,resume:h,setData:i,getData:l};let p=-1;for(;++p0){const e=r[r.length-1];(e[1]||Sn).call(s,void 0,e[0])}for(t.position={start:a(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:a(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p{const t=this.data("settings");return vn(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})},En=function(e,n,t){var r={type:String(e)};return void 0!==t&&null!==t||"string"!==typeof n&&!Array.isArray(n)?Object.assign(r,n):t=n,Array.isArray(t)?r.children=t:void 0!==t&&null!==t&&(r.value=String(t)),r};const An=function(e){if(void 0===e||null===e)return Tn;if("string"===typeof e)return function(e){return Fn(n);function n(n){return n&&n.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t":"")+")"}));return f;function f(){let s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c-1?t.offset:null}}}const zn=function(e,n,t,r){"function"===typeof n&&"function"!==typeof t&&(r=t,t=n,n=null);var o=An(n),i=r?-1:1;!function e(l,u,a){var s,c="object"===typeof l&&null!==l?l:{};"string"===typeof c.type&&(s="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+c.type+(s?"<"+s+">":"")+")"}));return f;function f(){var s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c":"gt"};function qn(e,n){const t=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+Vn[e]+";"}))}(function(e){const n=[];let t=-1,r=0,o=0;for(;++t55295&&i<57344){const n=e.charCodeAt(t+1);i<56320&&n>56319&&n<57344?(l=String.fromCharCode(i,n),o=1):l="\ufffd"}else l=String.fromCharCode(i);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+o+1,l=""),o&&(t+=o,o=0)}return n.join("")+e.slice(r)}(e||""));if(!n)return t;const r=t.indexOf(":"),o=t.indexOf("?"),i=t.indexOf("#"),l=t.indexOf("/");return r<0||l>-1&&r>l||o>-1&&r>o||i>-1&&r>i||n.test(t.slice(0,r))?t:""}function $n(e,n){const t=[];let r=-1;for(n&&t.push(En("text","\n"));++r0&&t.push(En("text","\n")),t}function Wn(e,n){const t=String(n.identifier),r=qn(t.toLowerCase()),o=e.footnoteOrder.indexOf(t);let i;-1===o?(e.footnoteOrder.push(t),e.footnoteCounts[t]=1,i=e.footnoteOrder.length):(e.footnoteCounts[t]++,i=o+1);const l=e.footnoteCounts[t];return e(n,"sup",[e(n.position,"a",{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[En("text",String(i))])])}var Qn=t(70729);function Yn(e,n){const t=n.referenceType;let r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return En("text","!["+n.alt+r);const o=Un(e,n),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift(En("text","["));const l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push(En("text",r)),o}function Kn(e){const n=e.spread;return void 0===n||null===n?e.children.length>1:n}const Xn={blockquote:function(e,n){return e(n,"blockquote",$n(Un(e,n),!0))},break:function(e,n){return[e(n,"br"),En("text","\n")]},code:function(e,n){const t=n.value?n.value+"\n":"",r=n.lang&&n.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};r&&(o.className=["language-"+r]);const i=e(n,"code",o,[En("text",t)]);return n.meta&&(i.data={meta:n.meta}),e(n.position,"pre",[i])},delete:function(e,n){return e(n,"del",Un(e,n))},emphasis:function(e,n){return e(n,"em",Un(e,n))},footnoteReference:Wn,footnote:function(e,n){const t=e.footnoteById;let r=1;for(;r in t;)r++;const o=String(r);return t[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:n.children}],position:n.position},Wn(e,{type:"footnoteReference",identifier:o,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,Un(e,n))},html:function(e,n){return e.dangerous?e.augment(n,En("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Yn(e,n);const r={src:Qn(t.url||""),alt:n.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"img",r)},image:function(e,n){const t={src:Qn(n.url),alt:n.alt};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"img",t)},inlineCode:function(e,n){return e(n,"code",[En("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Yn(e,n);const r={href:Qn(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,Un(e,n))},link:function(e,n){const t={href:Qn(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,Un(e,n))},listItem:function(e,n,t){const r=Un(e,n),o=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r0&&t.children.unshift(En("text"," ")),t.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),i.className=["task-list-item"]}let u=-1;for(;++u{const n=String(e.identifier).toUpperCase();Jn.call(o,n)||(o[n]=e)})),l;function i(e,n){if(e&&"data"in e&&e.data){const t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){const r="type"in e?e:{position:e};(t=r)&&t.position&&t.position.start&&t.position.start.line&&t.position.start.column&&t.position.end&&t.position.end.line&&t.position.end.column&&(n.position={start:In(r),end:Dn(r)})}var t;return n}function l(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),i(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}(e,n),r=Nn(t,e,null),o=function(e){let n=-1;const t=[];for(;++n1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};u>1&&n.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(n)}const s=o[o.length-1];if(s&&"element"===s.type&&"p"===s.tagName){const e=s.children[s.children.length-1];e&&"text"===e.type?e.value+=" ":s.children.push({type:"text",value:" "}),s.children.push(...a)}else o.push(...a);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+l},children:$n(o,!0)};r.position&&(c.position=r.position),t.push(c)}return 0===t.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[En("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:$n(t,!0)},{type:"text",value:"\n"}]}}(t);return o&&r.children.push(En("text","\n"),o),Array.isArray(r)?{type:"root",children:r}:r}var et=function(e,n){return e&&"run"in e?function(e,n){return(t,r,o)=>{e.run(Gn(t,n),r,(e=>{o(e)}))}}(e,n):function(e){return n=>Gn(n,e)}(e||n)};var nt=t(45697);class tt{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function rt(e,n){const t={},r={};let o=-1;for(;++o"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),bt=xt({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function wt(e,n){return n in e?e[n]:n}function St(e,n){return wt(e,n.toLowerCase())}const Ct=xt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:St,properties:{xmlns:null,xmlnsXLink:null}}),Et=xt({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:at,ariaAutoComplete:null,ariaBusy:at,ariaChecked:at,ariaColCount:ct,ariaColIndex:ct,ariaColSpan:ct,ariaControls:ft,ariaCurrent:null,ariaDescribedBy:ft,ariaDetails:null,ariaDisabled:at,ariaDropEffect:ft,ariaErrorMessage:null,ariaExpanded:at,ariaFlowTo:ft,ariaGrabbed:at,ariaHasPopup:null,ariaHidden:at,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ft,ariaLevel:ct,ariaLive:null,ariaModal:at,ariaMultiLine:at,ariaMultiSelectable:at,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:ct,ariaPressed:at,ariaReadOnly:at,ariaRelevant:null,ariaRequired:at,ariaRoleDescription:ft,ariaRowCount:ct,ariaRowIndex:ct,ariaRowSpan:ct,ariaSelected:at,ariaSetSize:ct,ariaSort:null,ariaValueMax:ct,ariaValueMin:ct,ariaValueNow:ct,ariaValueText:null,role:null}}),At=xt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:St,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pt,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:ut,allowPaymentRequest:ut,allowUserMedia:ut,alt:null,as:null,async:ut,autoCapitalize:null,autoComplete:ft,autoFocus:ut,autoPlay:ut,capture:ut,charSet:null,checked:ut,cite:null,className:ft,cols:ct,colSpan:null,content:null,contentEditable:at,controls:ut,controlsList:ft,coords:ct|pt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ut,defer:ut,dir:null,dirName:null,disabled:ut,download:st,draggable:at,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ut,formTarget:null,headers:ft,height:ct,hidden:ut,high:ct,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:ut,itemId:null,itemProp:ft,itemRef:ft,itemScope:ut,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ut,low:ct,manifest:null,max:null,maxLength:ct,media:null,method:null,min:null,minLength:ct,multiple:ut,muted:ut,name:null,nonce:null,noModule:ut,noValidate:ut,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ut,optimum:ct,pattern:null,ping:ft,placeholder:null,playsInline:ut,poster:null,preload:null,readOnly:ut,referrerPolicy:null,rel:ft,required:ut,reversed:ut,rows:ct,rowSpan:ct,sandbox:ft,scope:null,scoped:ut,seamless:ut,selected:ut,shape:null,size:ct,sizes:null,slot:null,span:ct,spellCheck:at,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ct,step:null,style:null,tabIndex:ct,target:null,title:null,translate:null,type:null,typeMustMatch:ut,useMap:null,value:at,width:ct,wrap:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:ct,borderColor:null,bottomMargin:ct,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ut,declare:ut,event:null,face:null,frame:null,frameBorder:null,hSpace:ct,leftMargin:ct,link:null,longDesc:null,lowSrc:null,marginHeight:ct,marginWidth:ct,noResize:ut,noHref:ut,noShade:ut,noWrap:ut,object:null,profile:null,prompt:null,rev:null,rightMargin:ct,rules:null,scheme:null,scrolling:at,standby:null,summary:null,text:null,topMargin:ct,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ct,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ut,disableRemotePlayback:ut,prefix:null,property:null,results:ct,security:null,unselectable:null}}),Ft=xt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:wt,properties:{about:dt,accentHeight:ct,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ct,amplitude:ct,arabicForm:null,ascent:ct,attributeName:null,attributeType:null,azimuth:ct,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ct,by:null,calcMode:null,capHeight:ct,className:ft,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ct,diffuseConstant:ct,direction:null,display:null,dur:null,divisor:ct,dominantBaseline:null,download:ut,dx:null,dy:null,edgeMode:null,editable:null,elevation:ct,enableBackground:null,end:null,event:null,exponent:ct,externalResourcesRequired:null,fill:null,fillOpacity:ct,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:pt,g2:pt,glyphName:pt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ct,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ct,horizOriginX:ct,horizOriginY:ct,id:null,ideographic:ct,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ct,k:ct,k1:ct,k2:ct,k3:ct,k4:ct,kernelMatrix:dt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ct,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ct,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ct,overlineThickness:ct,paintOrder:null,panose1:null,path:null,pathLength:ct,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ct,pointsAtY:ct,pointsAtZ:ct,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dt,rev:dt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dt,requiredFeatures:dt,requiredFonts:dt,requiredFormats:dt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ct,specularExponent:ct,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ct,strikethroughThickness:ct,string:null,stroke:null,strokeDashArray:dt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ct,strokeOpacity:ct,strokeWidth:null,style:null,surfaceScale:ct,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dt,tabIndex:ct,tableValues:null,target:null,targetX:ct,targetY:ct,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dt,to:null,transform:null,u1:null,u2:null,underlinePosition:ct,underlineThickness:ct,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ct,values:null,vAlphabetic:ct,vMathematical:ct,vectorEffect:null,vHanging:ct,vIdeographic:ct,version:null,vertAdvY:ct,vertOriginX:ct,vertOriginY:ct,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ct,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Tt=rt([bt,vt,Ct,Et,At],"html"),Pt=rt([bt,vt,Ct,Et,Ft],"svg");function Ot(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{On(n,"element",((n,t,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(n.tagName)),!i&&e.allowElement&&"number"===typeof t&&(i=!e.allowElement(n,t,o)),i&&"number"===typeof t)return e.unwrapDisallowed&&n.children?o.children.splice(t,1,...n.children):o.children.splice(t,1),t}))}}const It=["http","https","mailto","tel"];var Dt=t(82143);function Lt(e){var n=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof n&&""===n.replace(/[ \t\n\f\r]/g,"")}const zt=/^data[-\w.:]+$/i,Mt=/-[a-z]/g,Rt=/[A-Z]/g;function Bt(e){return"-"+e.toLowerCase()}function _t(e){return e.charAt(1).toUpperCase()}const jt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Nt=t(57848);const Ht={}.hasOwnProperty,Ut=new Set(["table","thead","tbody","tfoot","tr"]);function Vt(e,n){const t=[];let r,o=-1;for(;++oString(e))).join("")),!h&&o.rawSourcePos&&(a.sourcePosition=n.position),!h&&o.includeElementIndex&&(a.index=$t(r,n),a.siblingCount=$t(r)),h||(a.node=n),f.length>0?i.createElement(d,a,f):i.createElement(d,a)}function $t(e,n){let t=-1,r=0;for(;++t4&&"data"===t.slice(0,4)&&zt.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(Mt,_t);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!Mt.test(e)){let t=e.replace(Rt,Bt);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}o=gt}return new o(r,n)}(r.schema,n);let i=t;null!==i&&void 0!==i&&i===i&&(Array.isArray(i)&&(i=o.commaSeparated?function(e,n){var t=n||{};return""===e[e.length-1]&&(e=e.concat("")),e.join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===o.property&&"string"===typeof i&&(i=function(e){const n={};try{Nt(e,t)}catch{}return n;function t(e,t){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;n[r.replace(/-([a-z])/g,Qt)]=t}}(i)),o.space&&o.property?e[Ht.call(jt,o.property)?jt[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function Qt(e,n){return n.toUpperCase()}const Yt={}.hasOwnProperty,Kt={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function Xt(e){for(const i in Kt)if(Yt.call(Kt,i)&&Yt.call(e,i)){const e=Kt[i];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${i}\` (see for more info)`),delete Kt[i]}const n=A().use(Cn).use(e.remarkPlugins||[]).use(et,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Ot,e),t=new k;"string"===typeof e.children?t.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=n.runSync(n.parse(t),t);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=i.createElement(i.Fragment,{},Vt({options:e,schema:Tt,listDepth:0},r));return e.className&&(o=i.createElement("div",{className:e.className},o)),o}Xt.defaultProps={transformLinkUri:function(e){const n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;const r=n.indexOf(":");if(-1===r)return n;let o=-1;for(;++oo?n:(o=n.indexOf("#"),-1!==o&&r>o?n:"javascript:void(0)")}},Xt.propTypes={children:nt.string,className:nt.string,allowElement:nt.func,allowedElements:nt.arrayOf(nt.string),disallowedElements:nt.arrayOf(nt.string),unwrapDisallowed:nt.bool,remarkPlugins:nt.arrayOf(nt.oneOfType([nt.object,nt.func,nt.arrayOf(nt.oneOfType([nt.object,nt.func]))])),rehypePlugins:nt.arrayOf(nt.oneOfType([nt.object,nt.func,nt.arrayOf(nt.oneOfType([nt.object,nt.func]))])),sourcePos:nt.bool,rawSourcePos:nt.bool,skipHtml:nt.bool,includeElementIndex:nt.bool,transformLinkUri:nt.oneOfType([nt.func,nt.bool]),linkTarget:nt.oneOfType([nt.func,nt.string]),transformImageUri:nt.func,components:nt.object}}}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/962-de55aae75997b1c4.js b/static/admin/_next/static/chunks/962-de55aae75997b1c4.js new file mode 100644 index 000000000..fd8bfd8ea --- /dev/null +++ b/static/admin/_next/static/chunks/962-de55aae75997b1c4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[962],{57838:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(97685),o=t(67294);function a(){var e=o.useReducer((function(e){return e+1}),0);return(0,r.Z)(e,2)[1]}},24308:function(e,n,t){"use strict";t.d(n,{c4:function(){return a}});var r=t(4942),o=t(87462),a=["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,c=-1,u={},s={matchHandlers:{},dispatch:function(e){return u=e,l.forEach((function(e){return e(u)})),l.size>=1},subscribe:function(e){return l.size||this.register(),c+=1,l.set(c,e),e(u),c},unsubscribe:function(e){l.delete(e),l.size||this.unregister()},unregister:function(){var e=this;Object.keys(i).forEach((function(n){var t=i[n],r=e.matchHandlers[t];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),l.clear()},register:function(){var e=this;Object.keys(i).forEach((function(n){var t=i[n],a=function(t){var a=t.matches;e.dispatch((0,o.Z)((0,o.Z)({},u),(0,r.Z)({},n,a)))},l=window.matchMedia(t);l.addListener(a),e.matchHandlers[t]={mql:l,listener:a},a(l)}))}};n.ZP=s},32808:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(4942),o=t(87462),a=t(67294),i=t(94184),l=t.n(i),c=t(50132),u=t(74902),s=t(97685),d=t(10366),f=t(59844),p=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&(i=R().map((function(e){return a.createElement(E,{prefixCls:M,key:e.value.toString(),disabled:"disabled"in e?e.disabled:x.disabled,value:e.value,checked:-1!==k.indexOf(e.value),onChange:e.onChange,className:"".concat(T,"-item"),style:e.style},e.label)})));var A={toggleOption:function(e){var n=k.indexOf(e.value),t=(0,u.Z)(k);-1===n?t.push(e.value):t.splice(n,1),"value"in x||O(t);var r=R();null===b||void 0===b||b(t.filter((function(e){return-1!==D.indexOf(e)})).sort((function(e,n){return r.findIndex((function(n){return n.value===e}))-r.findIndex((function(e){return e.value===n}))})))},value:k,disabled:x.disabled,name:x.name,registerValue:function(e){I((function(n){return[].concat((0,u.Z)(n),[e])}))},cancelValue:function(e){I((function(n){return n.filter((function(n){return n!==e}))}))}},j=l()(T,(0,r.Z)({},"".concat(T,"-rtl"),"rtl"===Z),g);return a.createElement("div",(0,o.Z)({className:j,style:y},L,{ref:n}),a.createElement(v.Provider,{value:A},i))},h=a.forwardRef(m),g=a.memo(h),y=t(11941),b=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0?"".concat(n,"-slide-down"):"".concat(n,"-slide-up")}(),trigger:O,overlay:function(){return function(n){var t,r=e.overlay;t="function"===typeof r?r():r;var o=(t=i.Children.only("string"===typeof t?i.createElement("span",null,t):t)).props;(0,b.Z)(!o.mode||"vertical"===o.mode,"Dropdown",'mode="'.concat(o.mode,"\" is not supported for Dropdown's Menu."));var a=o.selectable,l=void 0!==a&&a,c=o.expandIcon,u="undefined"!==typeof c&&i.isValidElement(c)?c:i.createElement("span",{className:"".concat(n,"-menu-submenu-arrow")},i.createElement(s.Z,{className:"".concat(n,"-menu-submenu-arrow-icon")}));return"string"===typeof t.type?t:(0,C.Tm)(t,{mode:"vertical",selectable:l,expandIcon:u})}(Z)},placement:function(){var n=e.placement;if(!n)return"rtl"===f?"bottomRight":"bottomLeft";if(n.includes("Center")){var t=n.slice(0,n.indexOf("Center"));return(0,b.Z)(!n.includes("Center"),"Dropdown","You are using '".concat(n,"' placement in Dropdown, which is deprecated. Try to use '").concat(t,"' instead.")),t}return n}()}),S)});w.Button=y,w.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var Z=w,N=w},25378:function(e,n,t){"use strict";var r=t(67294),o=t(57838),a=t(24308);n.Z=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=(0,r.useRef)({}),t=(0,o.Z)();return(0,r.useEffect)((function(){var r=a.ZP.subscribe((function(r){n.current=r,e&&t()}));return function(){return a.ZP.unsubscribe(r)}}),[]),n.current}},38939:function(e,n,t){"use strict";t.d(n,{Z:function(){return _e}});var r=t(4942),o=t(87462),a=t(67294),i=t(10366),l=t(94184),c=t.n(l),u=t(74902),s=t(1413),d=t(97685),f=t(91),p=t(71002),v=t(80334),m=t(21770),h=t(15105),g=t(31131),y=t(42550),b=t(8410),x=t(84506);function C(e,n){var t,r=e.key;return"value"in e&&(t=e.value),null!==r&&void 0!==r?r:void 0!==t?t:"rc-index-key-".concat(n)}function E(e,n){var t=e||{};return{label:t.label||(n?"children":"label"),value:t.value||"value",options:t.options||"options"}}function w(e){var n=(0,s.Z)({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return(0,v.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),n}}),n}var Z=t(82532),N=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],S=function(e,n){var t=e.prefixCls,i=(e.disabled,e.visible),l=e.children,u=e.popupElement,d=e.containerWidth,p=e.animation,v=e.transitionName,m=e.dropdownStyle,h=e.dropdownClassName,g=e.direction,y=void 0===g?"ltr":g,b=e.placement,x=e.dropdownMatchSelectWidth,C=e.dropdownRender,E=e.dropdownAlign,w=e.getPopupContainer,S=e.empty,k=e.getTriggerDOMNode,O=e.onPopupVisibleChange,P=e.onPopupMouseEnter,K=(0,f.Z)(e,N),D="".concat(t,"-dropdown"),I=u;C&&(I=C(u));var R=a.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}}}}(x)}),[x]),M=p?"".concat(D,"-").concat(p):v,T=a.useRef(null);a.useImperativeHandle(n,(function(){return{getPopupElement:function(){return T.current}}}));var L=(0,s.Z)({minWidth:d},m);return"number"===typeof x?L.width=x:x&&(L.width=d),a.createElement(Z.Z,(0,o.Z)({},K,{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:b||("rtl"===y?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:D,popupTransitionName:M,popup:a.createElement("div",{ref:T,onMouseEnter:P},I),popupAlign:E,popupVisible:i,getPopupContainer:w,popupClassName:c()(h,(0,r.Z)({},"".concat(D,"-empty"),S)),popupStyle:L,getTriggerDOMNode:k,onPopupVisibleChange:O}),l)},k=a.forwardRef(S);k.displayName="SelectTrigger";var O=k,P=t(64217),K=t(48611),D=function(e){var n,t=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,l=e.onClick,u=e.children;return n="function"===typeof r?r(o):r,a.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==n?n:a.createElement("span",{className:c()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},u))},I=function(e,n){var t,r,o=e.prefixCls,i=e.id,l=e.inputElement,u=e.disabled,d=e.tabIndex,f=e.autoFocus,p=e.autoComplete,v=e.editable,m=e.activeDescendantId,h=e.value,g=e.maxLength,b=e.onKeyDown,x=e.onMouseDown,C=e.onChange,E=e.onPaste,w=e.onCompositionStart,Z=e.onCompositionEnd,N=e.open,S=e.attrs,k=l||a.createElement("input",null),O=k,P=O.ref,K=O.props,D=K.onKeyDown,I=K.onChange,R=K.onMouseDown,M=K.onCompositionStart,T=K.onCompositionEnd,L=K.style;return k=a.cloneElement(k,(0,s.Z)((0,s.Z)((0,s.Z)({type:"search"},K),{},{id:i,ref:(0,y.sQ)(n,P),disabled:u,tabIndex:d,autoComplete:p||"off",autoFocus:f,className:c()("".concat(o,"-selection-search-input"),null===(t=k)||void 0===t||null===(r=t.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":m},S),{},{value:v?h:"",maxLength:g,readOnly:!v,unselectable:v?null:"on",style:(0,s.Z)((0,s.Z)({},L),{},{opacity:v?null:0}),onKeyDown:function(e){b(e),D&&D(e)},onMouseDown:function(e){x(e),R&&R(e)},onChange:function(e){C(e),I&&I(e)},onCompositionStart:function(e){w(e),M&&M(e)},onCompositionEnd:function(e){Z(e),T&&T(e)},onPaste:E}))},R=a.forwardRef(I);R.displayName="Input";var M=R;function T(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var L="undefined"!==typeof window&&window.document&&window.document.documentElement;var A=function(e){e.preventDefault(),e.stopPropagation()},j=function(e){var n,t,o=e.id,i=e.prefixCls,l=e.values,u=e.open,s=e.searchValue,f=e.inputRef,p=e.placeholder,v=e.disabled,m=e.mode,h=e.showSearch,g=e.autoFocus,y=e.autoComplete,b=e.activeDescendantId,x=e.tabIndex,C=e.removeIcon,E=e.maxTagCount,w=e.maxTagTextLength,Z=e.maxTagPlaceholder,N=void 0===Z?function(e){return"+ ".concat(e.length," ...")}:Z,S=e.tagRender,k=e.onToggleOpen,O=e.onRemove,I=e.onInputChange,R=e.onInputPaste,T=e.onInputKeyDown,j=e.onInputMouseDown,H=e.onInputCompositionStart,z=e.onInputCompositionEnd,_=a.useRef(null),V=(0,a.useState)(0),F=(0,d.Z)(V,2),B=F[0],U=F[1],W=(0,a.useState)(!1),G=(0,d.Z)(W,2),Y=G[0],q=G[1],X="".concat(i,"-selection"),J=u||"tags"===m?s:"",$="tags"===m||h&&(u||Y);function Q(e,n,t,o,i){return a.createElement("span",{className:c()("".concat(X,"-item"),(0,r.Z)({},"".concat(X,"-item-disabled"),t)),title:"string"===typeof e||"number"===typeof e?e.toString():void 0},a.createElement("span",{className:"".concat(X,"-item-content")},n),o&&a.createElement(D,{className:"".concat(X,"-item-remove"),onMouseDown:A,onClick:i,customizeIcon:C},"\xd7"))}n=function(){U(_.current.scrollWidth)},t=[J],L?a.useLayoutEffect(n,t):a.useEffect(n,t);var ee=a.createElement("div",{className:"".concat(X,"-search"),style:{width:B},onFocus:function(){q(!0)},onBlur:function(){q(!1)}},a.createElement(M,{ref:f,open:u,prefixCls:i,id:o,inputElement:null,disabled:v,autoFocus:g,autoComplete:y,editable:$,activeDescendantId:b,value:J,onKeyDown:T,onMouseDown:j,onChange:I,onPaste:R,onCompositionStart:H,onCompositionEnd:z,tabIndex:x,attrs:(0,P.Z)(e,!0)}),a.createElement("span",{ref:_,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},J,"\xa0")),ne=a.createElement(K.Z,{prefixCls:"".concat(X,"-overflow"),data:l,renderItem:function(e){var n=e.disabled,t=e.label,r=e.value,o=!v&&!n,i=t;if("number"===typeof w&&("string"===typeof t||"number"===typeof t)){var l=String(i);l.length>w&&(i="".concat(l.slice(0,w),"..."))}var c=function(n){n&&n.stopPropagation(),O(e)};return"function"===typeof S?function(e,n,t,r,o){return a.createElement("span",{onMouseDown:function(e){A(e),k(!u)}},S({label:n,value:e,disabled:t,closable:r,onClose:o}))}(r,i,n,o,c):Q(t,i,n,o,c)},renderRest:function(e){var n="function"===typeof N?N(e):N;return Q(n,n,!1)},suffix:ee,itemKey:"key",maxCount:E});return a.createElement(a.Fragment,null,ne,!l.length&&!J&&a.createElement("span",{className:"".concat(X,"-placeholder")},p))},H=function(e){var n=e.inputElement,t=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,l=e.autoFocus,c=e.autoComplete,u=e.activeDescendantId,s=e.mode,f=e.open,p=e.values,v=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,y=e.activeValue,b=e.maxLength,x=e.onInputKeyDown,C=e.onInputMouseDown,E=e.onInputChange,w=e.onInputPaste,Z=e.onInputCompositionStart,N=e.onInputCompositionEnd,S=a.useState(!1),k=(0,d.Z)(S,2),O=k[0],K=k[1],D="combobox"===s,I=D||h,R=p[0],T=g||"";D&&y&&!O&&(T=y),a.useEffect((function(){D&&K(!1)}),[D,y]);var L=!("combobox"!==s&&!f&&!h)&&!!T,A=!R||"string"!==typeof R.label&&"number"!==typeof R.label?void 0:R.label.toString();return a.createElement(a.Fragment,null,a.createElement("span",{className:"".concat(t,"-selection-search")},a.createElement(M,{ref:o,prefixCls:t,id:r,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:c,editable:I,activeDescendantId:u,value:T,onKeyDown:x,onMouseDown:C,onChange:function(e){K(!0),E(e)},onPaste:w,onCompositionStart:Z,onCompositionEnd:N,tabIndex:m,attrs:(0,P.Z)(e,!0),maxLength:D?b:void 0})),!D&&R&&!L&&a.createElement("span",{className:"".concat(t,"-selection-item"),title:A},R.label),function(){if(R)return null;var e=L?{visibility:"hidden"}:void 0;return a.createElement("span",{className:"".concat(t,"-selection-placeholder"),style:e},v)}())};function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=a.useRef(null),t=a.useRef(null);function r(r){(r||null===n.current)&&(n.current=r),window.clearTimeout(t.current),t.current=window.setTimeout((function(){n.current=null}),e)}return a.useEffect((function(){return function(){window.clearTimeout(t.current)}}),[]),[function(){return n.current},r]}var _=function(e,n){var t=(0,a.useRef)(null),r=(0,a.useRef)(!1),i=e.prefixCls,l=e.open,c=e.mode,u=e.showSearch,s=e.tokenWithEnter,f=e.onSearch,p=e.onSearchSubmit,v=e.onToggleOpen,m=e.onInputKeyDown,g=e.domRef;a.useImperativeHandle(n,(function(){return{focus:function(){t.current.focus()},blur:function(){t.current.blur()}}}));var y=z(0),b=(0,d.Z)(y,2),x=b[0],C=b[1],E=(0,a.useRef)(null),w=function(e){!1!==f(e,!0,r.current)&&v(!0)},Z={inputRef:t,onInputKeyDown:function(e){var n,t=e.which;t!==h.Z.UP&&t!==h.Z.DOWN||e.preventDefault(),m&&m(e),t!==h.Z.ENTER||"tags"!==c||r.current||l||null===p||void 0===p||p(e.target.value),n=t,[h.Z.ESC,h.Z.SHIFT,h.Z.BACKSPACE,h.Z.TAB,h.Z.WIN_KEY,h.Z.ALT,h.Z.META,h.Z.WIN_KEY_RIGHT,h.Z.CTRL,h.Z.SEMICOLON,h.Z.EQUALS,h.Z.CAPS_LOCK,h.Z.CONTEXT_MENU,h.Z.F1,h.Z.F2,h.Z.F3,h.Z.F4,h.Z.F5,h.Z.F6,h.Z.F7,h.Z.F8,h.Z.F9,h.Z.F10,h.Z.F11,h.Z.F12].includes(n)||v(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var n=e.target.value;if(s&&E.current&&/[\r\n]/.test(E.current)){var t=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(t,E.current)}E.current=null,w(n)},onInputPaste:function(e){var n=e.clipboardData.getData("text");E.current=n},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&w(e.target.value)}},N="multiple"===c||"tags"===c?a.createElement(j,(0,o.Z)({},e,Z)):a.createElement(H,(0,o.Z)({},e,Z));return a.createElement("div",{ref:g,className:"".concat(i,"-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=x();e.target===t.current||n||e.preventDefault(),("combobox"===c||u&&n)&&l||(l&&f("",!0,!1),v())}},N)},V=a.forwardRef(_);V.displayName="Selector";var F=V;var B=a.createContext(null);var U=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],W=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function G(e){return"tags"===e||"multiple"===e}var Y=a.forwardRef((function(e,n){var t,i,l=e.id,v=e.prefixCls,C=e.className,E=e.showSearch,w=e.tagRender,Z=e.direction,N=e.omitDomProps,S=e.displayValues,k=e.onDisplayValuesChange,P=e.emptyOptions,K=e.notFoundContent,I=void 0===K?"Not Found":K,R=e.onClear,M=e.mode,T=e.disabled,L=e.loading,A=e.getInputElement,j=e.getRawInputElement,H=e.open,_=e.defaultOpen,V=e.onDropdownVisibleChange,Y=e.activeValue,q=e.onActiveValueChange,X=e.activeDescendantId,J=e.searchValue,$=e.onSearch,Q=e.onSearchSplit,ee=e.tokenSeparators,ne=e.allowClear,te=e.showArrow,re=e.inputIcon,oe=e.clearIcon,ae=e.OptionList,ie=e.animation,le=e.transitionName,ce=e.dropdownStyle,ue=e.dropdownClassName,se=e.dropdownMatchSelectWidth,de=e.dropdownRender,fe=e.dropdownAlign,pe=e.placement,ve=e.getPopupContainer,me=e.showAction,he=void 0===me?[]:me,ge=e.onFocus,ye=e.onBlur,be=e.onKeyUp,xe=e.onKeyDown,Ce=e.onMouseDown,Ee=(0,f.Z)(e,U),we=G(M),Ze=(void 0!==E?E:we)||"combobox"===M,Ne=(0,s.Z)({},Ee);W.forEach((function(e){delete Ne[e]})),null===N||void 0===N||N.forEach((function(e){delete Ne[e]}));var Se=a.useState(!1),ke=(0,d.Z)(Se,2),Oe=ke[0],Pe=ke[1];a.useEffect((function(){Pe((0,g.Z)())}),[]);var Ke=a.useRef(null),De=a.useRef(null),Ie=a.useRef(null),Re=a.useRef(null),Me=a.useRef(null),Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=a.useState(!1),t=(0,d.Z)(n,2),r=t[0],o=t[1],i=a.useRef(null),l=function(){window.clearTimeout(i.current)};return a.useEffect((function(){return l}),[]),[r,function(n,t){l(),i.current=window.setTimeout((function(){o(n),t&&t()}),e)},l]}(),Le=(0,d.Z)(Te,3),Ae=Le[0],je=Le[1],He=Le[2];a.useImperativeHandle(n,(function(){var e,n;return{focus:null===(e=Re.current)||void 0===e?void 0:e.focus,blur:null===(n=Re.current)||void 0===n?void 0:n.blur,scrollTo:function(e){var n;return null===(n=Me.current)||void 0===n?void 0:n.scrollTo(e)}}}));var ze=a.useMemo((function(){var e;if("combobox"!==M)return J;var n=null===(e=S[0])||void 0===e?void 0:e.value;return"string"===typeof n||"number"===typeof n?String(n):""}),[J,M,S]),_e="combobox"===M&&"function"===typeof A&&A()||null,Ve="function"===typeof j&&j(),Fe=(0,y.x1)(De,null===Ve||void 0===Ve||null===(t=Ve.props)||void 0===t?void 0:t.ref),Be=(0,m.Z)(void 0,{defaultValue:_,value:H}),Ue=(0,d.Z)(Be,2),We=Ue[0],Ge=Ue[1],Ye=We,qe=!I&&P;(T||qe&&Ye&&"combobox"===M)&&(Ye=!1);var Xe=!qe&&Ye,Je=a.useCallback((function(e){var n=void 0!==e?e:!Ye;Ye===n||T||(Ge(n),null===V||void 0===V||V(n))}),[T,Ye,Ge,V]),$e=a.useMemo((function(){return(ee||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ee]),Qe=function(e,n,t){var r=!0,o=e;null===q||void 0===q||q(null);var a=t?null:function(e,n){if(!n||!n.length)return null;var t=!1,r=function e(n,r){var o=(0,x.Z)(r),a=o[0],i=o.slice(1);if(!a)return[n];var l=n.split(a);return t=t||l.length>1,l.reduce((function(n,t){return[].concat((0,u.Z)(n),(0,u.Z)(e(t,i)))}),[]).filter((function(e){return e}))}(e,n);return t?r:null}(e,ee);return"combobox"!==M&&a&&(o="",null===Q||void 0===Q||Q(a),Je(!1),r=!1),$&&ze!==o&&$(o,{source:n?"typing":"effect"}),r};a.useEffect((function(){Ye||we||"combobox"===M||Qe("",!1,!1)}),[Ye]),a.useEffect((function(){We&&T&&Ge(!1),T&&je(!1)}),[T]);var en=z(),nn=(0,d.Z)(en,2),tn=nn[0],rn=nn[1],on=a.useRef(!1),an=[];a.useEffect((function(){return function(){an.forEach((function(e){return clearTimeout(e)})),an.splice(0,an.length)}}),[]);var ln,cn=a.useState(null),un=(0,d.Z)(cn,2),sn=un[0],dn=un[1],fn=a.useState({}),pn=(0,d.Z)(fn,2)[1];(0,b.Z)((function(){if(Xe){var e,n=Math.ceil(null===(e=Ke.current)||void 0===e?void 0:e.offsetWidth);sn===n||Number.isNaN(n)||dn(n)}}),[Xe]),Ve&&(ln=function(e){Je(e)}),function(e,n,t){var r=a.useRef(null);r.current={open:n,triggerOpen:t},a.useEffect((function(){function n(n){var t=n.target;t.shadowRoot&&n.composed&&(t=n.composedPath()[0]||t),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(t)&&e!==t}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",n),function(){return window.removeEventListener("mousedown",n)}}),[])}((function(){var e;return[Ke.current,null===(e=Ie.current)||void 0===e?void 0:e.getPopupElement()]}),Xe,Je);var vn,mn,hn=a.useMemo((function(){return(0,s.Z)((0,s.Z)({},e),{},{notFoundContent:I,open:Ye,triggerOpen:Xe,id:l,showSearch:Ze,multiple:we,toggleOpen:Je})}),[e,I,Xe,Ye,l,Ze,we,Je]),gn=void 0!==te?te:L||!we&&"combobox"!==M;gn&&(vn=a.createElement(D,{className:c()("".concat(v,"-arrow"),(0,r.Z)({},"".concat(v,"-arrow-loading"),L)),customizeIcon:re,customizeIconProps:{loading:L,searchValue:ze,open:Ye,focused:Ae,showSearch:Ze}}));!T&&ne&&(S.length||ze)&&(mn=a.createElement(D,{className:"".concat(v,"-clear"),onMouseDown:function(){null===R||void 0===R||R(),k([],{type:"clear",values:S}),Qe("",!1,!1)},customizeIcon:oe},"\xd7"));var yn,bn=a.createElement(ae,{ref:Me}),xn=c()(v,C,(i={},(0,r.Z)(i,"".concat(v,"-focused"),Ae),(0,r.Z)(i,"".concat(v,"-multiple"),we),(0,r.Z)(i,"".concat(v,"-single"),!we),(0,r.Z)(i,"".concat(v,"-allow-clear"),ne),(0,r.Z)(i,"".concat(v,"-show-arrow"),gn),(0,r.Z)(i,"".concat(v,"-disabled"),T),(0,r.Z)(i,"".concat(v,"-loading"),L),(0,r.Z)(i,"".concat(v,"-open"),Ye),(0,r.Z)(i,"".concat(v,"-customize-input"),_e),(0,r.Z)(i,"".concat(v,"-show-search"),Ze),i)),Cn=a.createElement(O,{ref:Ie,disabled:T,prefixCls:v,visible:Xe,popupElement:bn,containerWidth:sn,animation:ie,transitionName:le,dropdownStyle:ce,dropdownClassName:ue,direction:Z,dropdownMatchSelectWidth:se,dropdownRender:de,dropdownAlign:fe,placement:pe,getPopupContainer:ve,empty:P,getTriggerDOMNode:function(){return De.current},onPopupVisibleChange:ln,onPopupMouseEnter:function(){pn({})}},Ve?a.cloneElement(Ve,{ref:Fe}):a.createElement(F,(0,o.Z)({},e,{domRef:De,prefixCls:v,inputElement:_e,ref:Re,id:l,showSearch:Ze,mode:M,activeDescendantId:X,tagRender:w,values:S,open:Ye,onToggleOpen:Je,activeValue:Y,searchValue:ze,onSearch:Qe,onSearchSubmit:function(e){e&&e.trim()&&$(e,{source:"submit"})},onRemove:function(e){var n=S.filter((function(n){return n!==e}));k(n,{type:"remove",values:[e]})},tokenWithEnter:$e})));return yn=Ve?Cn:a.createElement("div",(0,o.Z)({className:xn},Ne,{ref:Ke,onMouseDown:function(e){var n,t=e.target,r=null===(n=Ie.current)||void 0===n?void 0:n.getPopupElement();if(r&&r.contains(t)){var o=setTimeout((function(){var e,n=an.indexOf(o);-1!==n&&an.splice(n,1),He(),Oe||r.contains(document.activeElement)||null===(e=Re.current)||void 0===e||e.focus()}));an.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l=0;i-=1){var l=o[i];if(!l.disabled){o.splice(i,1),a=l;break}}a&&k(o,{type:"remove",values:[a]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),d=1;d1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1,t=I.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];z(e);var t={source:n?"keyboard":"mouse"},r=I[e];r?x(r.value,e,t):x(null,-1,t)};(0,a.useEffect)((function(){_(!1!==C?L(0):-1)}),[I.length,p]),(0,a.useEffect)((function(){var e,n=setTimeout((function(){if(!s&&u&&1===Z.size){var e=Array.from(Z)[0],n=I.findIndex((function(n){return n.data.value===e}));-1!==n&&(_(n),T(n))}}));u&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(n)}}),[u,p]);var V=function(e){void 0!==e&&E(e,{selected:!Z.has(e)}),s||v(!1)};if(a.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var n=e.which,t=e.ctrlKey;switch(n){case h.Z.N:case h.Z.P:case h.Z.UP:case h.Z.DOWN:var r=0;if(n===h.Z.UP?r=-1:n===h.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&t&&(n===h.Z.N?r=1:n===h.Z.P&&(r=-1)),0!==r){var o=L(H+r,r);T(o),_(o,!0)}break;case h.Z.ENTER:var a=I[H];a&&!a.data.disabled?V(a.value):V(void 0),u&&e.preventDefault();break;case h.Z.ESC:v(!1),u&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){T(e)}}})),0===I.length)return a.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(K,"-empty"),onMouseDown:M},m);var F=Object.keys(N).map((function(e){return N[e]})),U=function(e){return e.label},W=function(e){var n=I[e];if(!n)return null;var t=n.data||{},r=t.value,i=n.group,c=(0,P.Z)(t,!0),u=U(n);return n?a.createElement("div",(0,o.Z)({"aria-label":"string"!==typeof u||i?null:u},c,{key:e,role:i?"presentation":"option",id:"".concat(l,"_list_").concat(e),"aria-selected":Z.has(r)}),r):null};return a.createElement(a.Fragment,null,a.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},W(H-1),W(H),W(H+1)),a.createElement($.Z,{itemKey:"key",ref:R,data:I,height:k,itemHeight:O,fullHeight:!1,onMouseDown:M,onScroll:g,virtual:S},(function(e,n){var t,i=e.group,l=e.groupOption,u=e.data,s=e.label,d=e.value,p=u.key;if(i){var v,m=null!==(v=u.title)&&void 0!==v?v:ne(s)&&s;return a.createElement("div",{className:c()(K,"".concat(K,"-group")),title:m},void 0!==s?s:p)}var h=u.disabled,g=u.title,y=(u.children,u.style),b=u.className,x=(0,f.Z)(u,ee),C=(0,X.Z)(x,F),E=Z.has(d),N="".concat(K,"-option"),S=c()(K,N,b,(t={},(0,r.Z)(t,"".concat(N,"-grouped"),l),(0,r.Z)(t,"".concat(N,"-active"),H===n&&!h),(0,r.Z)(t,"".concat(N,"-disabled"),h),(0,r.Z)(t,"".concat(N,"-selected"),E),t)),k=U(e),O=!w||"function"===typeof w||E,P="number"===typeof k?k:k||d,I=ne(P)?P.toString():void 0;return void 0!==g&&(I=g),a.createElement("div",(0,o.Z)({},C,{"aria-selected":E,className:S,title:I,onMouseMove:function(){H===n||h||_(n)},onClick:function(){h||V(d)},style:y}),a.createElement("div",{className:"".concat(N,"-content")},P),a.isValidElement(w)||E,O&&a.createElement(D,{className:"".concat(K,"-option-state"),customizeIcon:w,customizeIconProps:{isSelected:E}},E?"\u2713":null))})))},re=a.forwardRef(te);re.displayName="OptionList";var oe=re,ae=function(){return null};ae.isSelectOption=!0;var ie=ae,le=function(){return null};le.isSelectOptGroup=!0;var ce=le,ue=t(50344),se=["children","value"],de=["children"];function fe(e){var n=e.key,t=e.props,r=t.children,o=t.value,a=(0,f.Z)(t,se);return(0,s.Z)({key:n,value:void 0!==o?o:n,children:r},a)}function pe(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,ue.Z)(e).map((function(e,t){if(!a.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,l=i.children,c=(0,f.Z)(i,de);return n||!r?fe(e):(0,s.Z)((0,s.Z)({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},c),{},{options:pe(l)})})).filter((function(e){return e}))}function ve(e,n,t){return a.useMemo((function(){var r=e;!e&&(r=pe(n));var o=new Map,a=new Map;return function e(n){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i1&&void 0!==arguments[1]?arguments[1]:{},t=n.fieldNames,r=n.childrenAsData,o=[],a=E(t,!1),i=a.label,l=a.value,c=a.options;function u(e,n){e.forEach((function(e){var t=e[i];if(n||!(c in e)){var a=e[l];o.push({key:C(e,o.length),groupOption:n,data:e,label:t,value:a})}else{var s=t;void 0===s&&r&&(s=e.label),o.push({key:C(e,o.length),group:!0,data:e,label:s}),u(e[c],!0)}}))}return u(e,!1),o}(De,{fieldNames:ne,childrenAsData:$})}),[De,ne,$]),Re=function(e){var n=de(e);if(he(n),W&&(n.length!==Ze.length||n.some((function(e,n){var t;return(null===(t=Ze[n])||void 0===t?void 0:t.value)!==(null===e||void 0===e?void 0:e.value)})))){var t=U?n:n.map((function(e){return e.value})),r=n.map((function(e){return w(Ne(e.value))}));W(J?t:t[0],J?r:r[0])}},Me=a.useState(null),Te=(0,d.Z)(Me,2),Le=Te[0],Ae=Te[1],je=a.useState(0),He=(0,d.Z)(je,2),ze=He[0],_e=He[1],Ve=void 0!==L?L:"combobox"!==i,Fe=a.useCallback((function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.source,o=void 0===r?"keyboard":r;_e(n),v&&"combobox"===i&&null!==e&&"keyboard"===o&&Ae(String(e))}),[v,i]),Be=function(e,n){var t=function(){var n,t=Ne(e);return[U?{label:null===t||void 0===t?void 0:t[ne.label],value:e,key:null!==(n=null===t||void 0===t?void 0:t.key)&&void 0!==n?n:e}:e,w(t)]};if(n&&N){var r=t(),o=(0,d.Z)(r,2),a=o[0],i=o[1];N(a,i)}else if(!n&&S){var l=t(),c=(0,d.Z)(l,2),u=c[0],s=c[1];S(u,s)}},Ue=be((function(e,n){var t,r=!J||n.selected;t=r?J?[].concat((0,u.Z)(Ze),[e]):[e]:Ze.filter((function(n){return n.value!==e})),Re(t),Be(e,r),"combobox"===i?Ae(""):G&&!Z||(ie(""),Ae(""))})),We=a.useMemo((function(){var e=!1!==j&&!1!==O;return(0,s.Z)((0,s.Z)({},le),{},{flattenOptions:Ie,onActiveValue:Fe,defaultActiveFirstOption:Ve,onSelect:Ue,menuItemSelectedIcon:A,rawValues:ke,fieldNames:ne,virtual:e,listHeight:z,listItemHeight:V,childrenAsData:$})}),[le,Ie,Fe,Ve,Ue,A,ke,ne,j,O,z,V,$]);return a.createElement(Q.Provider,{value:We},a.createElement(q,(0,o.Z)({},Y,{id:X,prefixCls:c,ref:n,omitDomProps:Ee,mode:i,displayValues:Se,onDisplayValuesChange:function(e,n){Re(e),"remove"!==n.type&&"clear"!==n.type||n.values.forEach((function(e){Be(e.value,!1)}))},searchValue:ae,onSearch:function(e,n){if(ie(e),Ae(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===i&&Re(e),null===b||void 0===b||b(e));else{var t=(e||"").trim();if(t){var r=Array.from(new Set([].concat((0,u.Z)(ke),[t])));Re(r),Be(t,!0),ie("")}}},onSearchSplit:function(e){var n=e;"tags"!==i&&(n=e.map((function(e){var n=ue.get(e);return null===n||void 0===n?void 0:n.value})).filter((function(e){return void 0!==e})));var t=Array.from(new Set([].concat((0,u.Z)(ke),(0,u.Z)(n))));Re(t),t.forEach((function(e){Be(e,!0)}))},dropdownMatchSelectWidth:O,OptionList:oe,emptyOptions:!Ie.length,activeValue:Le,activeDescendantId:"".concat(X,"_list_").concat(ze)})))}));var Ze=we;Ze.Option=ie,Ze.OptGroup=ce;var Ne=Ze,Se=t(59844),ke=t(80882),Oe=t(50888),Pe=t(63606),Ke=t(97937),De=t(4340),Ie=t(68795),Re=t(9708);var Me=t(97647),Te=t(65223),Le=t(33603),Ae=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=t}(c,h||1,o,a);return l.createElement(j,(0,i.Z)({},e,{colSpan:m,rowSpan:h,hovering:g,ref:n,onHover:r}))}));H.displayName="WrappedCell";var z=H,_=l.createContext(null);function V(e,n,t,r,o){var a,i,l=t[e]||{},c=t[n]||{};"left"===l.fixed?a=r.left[e]:"right"===c.fixed&&(i=r.right[n]);var u=!1,s=!1,d=!1,f=!1,p=t[n+1],v=t[e-1];if("rtl"===o){if(void 0!==a)f=!(v&&"left"===v.fixed);else if(void 0!==i){d=!(p&&"right"===p.fixed)}}else if(void 0!==a){u=!(p&&"left"===p.fixed)}else if(void 0!==i){s=!(v&&"right"===v.fixed)}return{fixLeft:a,fixRight:i,lastFixLeft:u,firstFixRight:s,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}function F(e){var n,t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,c=e.cellComponent,u=e.onHeaderRow,s=e.index,d=l.useContext(_),f=d.prefixCls,p=d.direction;u&&(n=u(t.map((function(e){return e.column})),s));var v=P(t.map((function(e){return e.column})));return l.createElement(a,n,t.map((function(e,n){var t,a=e.column,u=V(e.colStart,e.colEnd,o,r,p);return a&&a.onHeaderCell&&(t=e.column.onHeaderCell(a)),l.createElement(z,(0,i.Z)({},e,{ellipsis:a.ellipsis,align:a.align,component:c,prefixCls:f,key:v[n]},u,{additionalProps:t,rowType:"header"}))})))}F.displayName="HeaderRow";var B=F;var U=function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=l.useContext(_),i=a.prefixCls,c=a.getComponent,u=l.useMemo((function(){return function(e){var n=[];!function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n[o]=n[o]||[];var a=r;return t.filter(Boolean).map((function(t){var r={key:t.key,className:t.className||"",children:t.title,column:t,colStart:a},i=1,l=t.children;return l&&l.length>0&&(i=e(l,a,o+1).reduce((function(e,n){return e+n}),0),r.hasSubColumns=!0),"colSpan"in t&&(i=t.colSpan),"rowSpan"in t&&(r.rowSpan=t.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,n[o].push(r),a+=i,i}))}(e,0);for(var t=n.length,r=function(e){n[e].forEach((function(n){"rowSpan"in n||n.hasSubColumns||(n.rowSpan=t-e)}))},o=0;o1?o-1:0),i=1;i0?[].concat((0,f.Z)(e),(0,f.Z)(fe(o).map((function(e){return(0,d.Z)({fixed:r},e)})))):[].concat((0,f.Z)(e),[(0,d.Z)((0,d.Z)({},n),{},{fixed:r})])}),[])}var pe=function(e,n){var t=e.prefixCls,r=e.columns,a=e.children,i=e.expandable,c=e.expandedKeys,u=e.getRowKey,s=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,v=e.expandIconColumnIndex,m=e.direction,h=e.expandRowByClick,g=e.columnWidth,y=e.fixed,b=l.useMemo((function(){return r||de(a)}),[r,a]),x=l.useMemo((function(){if(i){var e,n=b.slice();if(!n.includes(ce)){var r=v||0;r>=0&&n.splice(r,0,ce)}0;var a=n.indexOf(ce);n=n.filter((function(e,n){return e!==ce||n===a}));var d,m=b[a];d="left"!==y&&!y||v?"right"!==y&&!y||v!==b.length?m?m.fixed:null:"right":"left";var x=(e={},(0,o.Z)(e,le,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,o.Z)(e,"title",""),(0,o.Z)(e,"fixed",d),(0,o.Z)(e,"className","".concat(t,"-row-expand-icon-cell")),(0,o.Z)(e,"width",g),(0,o.Z)(e,"render",(function(e,n,r){var o=u(n,r),a=c.has(o),i=!p||p(n),d=f({prefixCls:t,expanded:a,expandable:i,record:n,onExpand:s});return h?l.createElement("span",{onClick:function(e){return e.stopPropagation()}},d):d})),e);return n.map((function(e){return e===ce?x:e}))}return b.filter((function(e){return e!==ce}))}),[i,b,u,c,f,m]),C=l.useMemo((function(){var e=x;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,x,m]),E=l.useMemo((function(){return"rtl"===m?function(e){return e.map((function(e){var n=e.fixed,t=(0,N.Z)(e,se),r=n;return"left"===n?r="right":"right"===n&&(r="left"),(0,d.Z)({fixed:r},t)}))}(fe(C)):fe(C)}),[C,m]);return[C,E]};function ve(e){var n=(0,l.useRef)(e),t=(0,l.useState)({}),r=(0,a.Z)(t,2)[1],o=(0,l.useRef)(null),i=(0,l.useRef)([]);return(0,l.useEffect)((function(){return function(){o.current=null}}),[]),[n.current,function(e){i.current.push(e);var t=Promise.resolve();o.current=t,t.then((function(){if(o.current===t){var e=i.current,a=n.current;i.current=[],e.forEach((function(e){n.current=e(n.current)})),o.current=null,a!==n.current&&r({})}}))}]}var me=function(e,n,t){return(0,l.useMemo)((function(){for(var r=[],o=[],a=0,i=0,l=0;l=0;a-=1){var c=n[a],u=t&&t[a],s=u&&u[le];if(c||s||o){var d=s||{},f=(d.columnType,(0,N.Z)(d,he));r.unshift(l.createElement("col",(0,i.Z)({key:a,style:{width:c}},f))),o=!0}}return l.createElement("colgroup",null,r)};var ye=function(e){var n=e.className,t=e.children;return l.createElement("div",{className:n},t)},be=l.createContext({});var xe=["children"];function Ce(e){return e.children}Ce.Row=function(e){var n=e.children,t=(0,N.Z)(e,xe);return l.createElement("tr",t,n)},Ce.Cell=function(e){var n=e.className,t=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,c=e.rowSpan,u=e.align,s=l.useContext(_),d=s.prefixCls,f=s.direction,p=l.useContext(be),v=p.scrollColumnIndex,m=p.stickyOffsets,h=t+a-1+1===v?a+1:a,g=V(t,t+h-1,p.flattenColumns,m,f);return l.createElement(z,(0,i.Z)({className:n,index:t,component:"td",prefixCls:d,record:null,dataIndex:null,align:u,colSpan:h,rowSpan:c,render:function(){return r}},g))};var Ee=Ce;var we=function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,o=l.useContext(_).prefixCls,a=r.length-1,i=r[a],c=l.useMemo((function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:(null===i||void 0===i?void 0:i.scrollbar)?a:null}}),[i,r,a,t]);return l.createElement(be.Provider,{value:c},l.createElement("tfoot",{className:"".concat(o,"-summary")},n))},Ze=Ee;function Ne(e){var n,t=e.prefixCls,r=e.record,a=e.onExpand,i=e.expanded,c=e.expandable,s="".concat(t,"-row-expand-icon");if(!c)return l.createElement("span",{className:u()(s,"".concat(t,"-row-spaced"))});return l.createElement("span",{className:u()(s,(n={},(0,o.Z)(n,"".concat(t,"-row-expanded"),i),(0,o.Z)(n,"".concat(t,"-row-collapsed"),!i),n)),onClick:function(e){a(r,e),e.stopPropagation()}})}var Se=t(64019);function ke(e){var n=e.getBoundingClientRect(),t=document.documentElement;return{left:n.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}var Oe=function(e,n){var t,r,i=e.scrollBodyRef,c=e.onScroll,s=e.offsetScroll,f=e.container,p=l.useContext(_).prefixCls,v=(null===(t=i.current)||void 0===t?void 0:t.scrollWidth)||0,m=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,h=v&&m*(m/v),g=l.useRef(),y=ve({scrollLeft:0,isHiddenScrollBar:!1}),b=(0,a.Z)(y,2),x=b[0],C=b[1],w=l.useRef({delta:0,x:0}),Z=l.useState(!1),N=(0,a.Z)(Z,2),S=N[0],k=N[1],O=function(){k(!1)},P=function(e){var n,t=(e||(null===(n=window)||void 0===n?void 0:n.event)).buttons;if(S&&0!==t){var r=w.current.x+e.pageX-w.current.x-w.current.delta;r<=0&&(r=0),r+h>=m&&(r=m-h),c({scrollLeft:r/m*(v+2)}),w.current.x=e.pageX}else S&&k(!1)},K=function(){if(i.current){var e=ke(i.current).top,n=e+i.current.offsetHeight,t=f===window?document.documentElement.scrollTop+window.innerHeight:ke(f).top+f.clientHeight;n-(0,E.Z)()<=t||e>=t-s?C((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!0})})):C((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!1})}))}},D=function(e){C((function(n){return(0,d.Z)((0,d.Z)({},n),{},{scrollLeft:e/v*m||0})}))};return l.useImperativeHandle(n,(function(){return{setScrollLeft:D}})),l.useEffect((function(){var e=(0,Se.Z)(document.body,"mouseup",O,!1),n=(0,Se.Z)(document.body,"mousemove",P,!1);return K(),function(){e.remove(),n.remove()}}),[h,S]),l.useEffect((function(){var e=(0,Se.Z)(f,"scroll",K,!1),n=(0,Se.Z)(window,"resize",K,!1);return function(){e.remove(),n.remove()}}),[f]),l.useEffect((function(){x.isHiddenScrollBar||C((function(e){var n=i.current;return n?(0,d.Z)((0,d.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e}))}),[x.isHiddenScrollBar]),v<=m||!h||x.isHiddenScrollBar?null:l.createElement("div",{style:{height:(0,E.Z)(),width:m,bottom:s},className:"".concat(p,"-sticky-scroll")},l.createElement("div",{onMouseDown:function(e){e.persist(),w.current.delta=e.pageX-x.scrollLeft,w.current.x=0,k(!0),e.preventDefault()},ref:g,className:u()("".concat(p,"-sticky-scroll-bar"),(0,o.Z)({},"".concat(p,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(x.scrollLeft,"px, 0, 0)")}}))},Pe=l.forwardRef(Oe),Ke=(0,m.Z)()?window:null;var De=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var Ie=l.forwardRef((function(e,n){var t=e.className,r=e.noData,a=e.columns,i=e.flattenColumns,c=e.colWidths,s=e.columCount,p=e.stickyOffsets,v=e.direction,m=e.fixHeader,h=e.stickyTopOffset,g=e.stickyBottomOffset,y=e.stickyClassName,b=e.onScroll,x=e.maxContentScroll,C=e.children,E=(0,N.Z)(e,De),w=l.useContext(_),Z=w.prefixCls,k=w.scrollbarSize,O=w.isSticky,P=O&&!m?0:k,K=l.useRef(null),D=l.useCallback((function(e){(0,S.mH)(n,e),(0,S.mH)(K,e)}),[]);l.useEffect((function(){var e;function n(e){var n=e.currentTarget,t=e.deltaX;t&&(b({currentTarget:n,scrollLeft:n.scrollLeft+t}),e.preventDefault())}return null===(e=K.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=K.current)||void 0===e||e.removeEventListener("wheel",n)}}),[]);var I=l.useMemo((function(){return i.every((function(e){return e.width>=0}))}),[i]),R=i[i.length-1],M={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Z,"-cell-scrollbar")}}},T=(0,l.useMemo)((function(){return P?[].concat((0,f.Z)(a),[M]):a}),[P,a]),L=(0,l.useMemo)((function(){return P?[].concat((0,f.Z)(i),[M]):i}),[P,i]),A=(0,l.useMemo)((function(){var e=p.right,n=p.left;return(0,d.Z)((0,d.Z)({},p),{},{left:"rtl"===v?[].concat((0,f.Z)(n.map((function(e){return e+P}))),[0]):n,right:"rtl"===v?e:[].concat((0,f.Z)(e.map((function(e){return e+P}))),[0]),isSticky:O})}),[P,p,O]),j=function(e,n){return(0,l.useMemo)((function(){for(var t=[],r=0;r0)):(an(a>0),sn(a=0||n.relatedTarget.className.indexOf("".concat(a,"-item"))>=0)||o(e.getValidValue()))},e.go=function(n){""!==e.state.goInputText&&(n.keyCode!==We&&"click"!==n.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,Ve.Z)(t,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,n=e.pageSize,t=e.pageSizeOptions;return t.some((function(e){return e.toString()===n.toString()}))?t:t.concat([n.toString()]).sort((function(e,n){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(n))?0:Number(n))}))}},{key:"render",value:function(){var e=this,n=this.props,t=n.pageSize,r=n.locale,o=n.rootPrefixCls,a=n.changeSize,i=n.quickGo,c=n.goButton,u=n.selectComponentClass,s=n.buildOptionText,d=n.selectPrefixCls,f=n.disabled,p=this.state.goInputText,v="".concat(o,"-options"),m=u,h=null,g=null,y=null;if(!a&&!i)return null;var b=this.getPageSizeOptions();if(a&&m){var x=b.map((function(n,t){return l.createElement(m.Option,{key:t,value:n.toString()},(s||e.buildOptionText)(n))}));h=l.createElement(m,{disabled:f,prefixCls:d,showSearch:!1,className:"".concat(v,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(t||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},x)}return i&&(c&&(y="boolean"===typeof c?l.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:f,className:"".concat(v,"-quick-jumper-button")},r.jump_to_confirm):l.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),g=l.createElement("div",{className:"".concat(v,"-quick-jumper")},r.jump_to,l.createElement("input",{disabled:f,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,y)),l.createElement("li",{className:"".concat(v)},h,g)}}]),t}(l.Component);qe.defaultProps={pageSizeOptions:["10","20","50","100"]};var Xe=qe;function Je(){}function $e(e){var n=Number(e);return"number"===typeof n&&!isNaN(n)&&isFinite(n)&&Math.floor(n)===n}function Qe(e,n,t){var r="undefined"===typeof e?n.pageSize:e;return Math.floor((t.total-1)/r)+1}var en=function(e){(0,Fe.Z)(t,e);var n=(0,Be.Z)(t);function t(e){var r;(0,_e.Z)(this,t),(r=n.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(Qe(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,n){var t=r.props.prefixCls,o=e||l.createElement("button",{type:"button","aria-label":n,className:"".concat(t,"-item-link")});return"function"===typeof e&&(o=l.createElement(e,(0,d.Z)({},r.props))),o},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){var n=r.props.total;return $e(e)&&e!==r.state.current&&$e(n)&&n>0},r.shouldDisplayQuickJumper=function(){var e=r.props,n=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&n},r.handleKeyDown=function(e){e.keyCode!==Ge&&e.keyCode!==Ye||e.preventDefault()},r.handleKeyUp=function(e){var n=r.getValidValue(e);n!==r.state.currentInputValue&&r.setState({currentInputValue:n}),e.keyCode===We?r.handleChange(n):e.keyCode===Ge?r.handleChange(n-1):e.keyCode===Ye&&r.handleChange(n+1)},r.handleBlur=function(e){var n=r.getValidValue(e);r.handleChange(n)},r.changePageSize=function(e){var n=r.state.current,t=Qe(e,r.state,r.props);n=n>t?t:n,0===t&&(n=r.state.current),"number"===typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:n,currentInputValue:n})),r.props.onShowSizeChange(n,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(n,e)},r.handleChange=function(e){var n=r.props.disabled,t=e;if(r.isValid(t)&&!n){var o=Qe(void 0,r.state,r.props);t>o?t=o:t<1&&(t=1),"current"in r.props||r.setState({current:t,currentInputValue:t});var a=r.state.pageSize;return r.props.onChange(t,a),t}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?t-2:0),o=2;o=t?t:Number(n)}},{key:"getShowSizeChanger",value:function(){var e=this.props,n=e.showSizeChanger,t=e.total,r=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof n?n:t>r}},{key:"renderPrev",value:function(e){var n=this.props,t=n.prevIcon,r=(0,n.itemRender)(e,"prev",this.getItemIcon(t,"prev page")),o=!this.hasPrev();return(0,l.isValidElement)(r)?(0,l.cloneElement)(r,{disabled:o}):r}},{key:"renderNext",value:function(e){var n=this.props,t=n.nextIcon,r=(0,n.itemRender)(e,"next",this.getItemIcon(t,"next page")),o=!this.hasNext();return(0,l.isValidElement)(r)?(0,l.cloneElement)(r,{disabled:o}):r}},{key:"render",value:function(){var e=this,n=this.props,t=n.prefixCls,r=n.className,a=n.style,c=n.disabled,s=n.hideOnSinglePage,d=n.total,f=n.locale,p=n.showQuickJumper,v=n.showLessItems,m=n.showTitle,h=n.showTotal,g=n.simple,y=n.itemRender,b=n.showPrevNextJumpers,x=n.jumpPrevIcon,C=n.jumpNextIcon,E=n.selectComponentClass,w=n.selectPrefixCls,Z=n.pageSizeOptions,N=this.state,S=N.current,k=N.pageSize,O=N.currentInputValue;if(!0===s&&d<=k)return null;var P=Qe(void 0,this.state,this.props),K=[],D=null,I=null,R=null,M=null,T=null,L=p&&p.goButton,A=v?1:2,j=S-1>0?S-1:0,H=S+1=2*A&&3!==S&&(K[0]=(0,l.cloneElement)(K[0],{className:"".concat(t,"-item-after-jump-prev")}),K.unshift(D)),P-S>=2*A&&S!==P-2&&(K[K.length-1]=(0,l.cloneElement)(K[K.length-1],{className:"".concat(t,"-item-before-jump-next")}),K.push(I)),1!==W&&K.unshift(R),G!==P&&K.push(M)}var X=null;h&&(X=l.createElement("li",{className:"".concat(t,"-total-text")},h(d,[0===d?0:(S-1)*k+1,S*k>d?d:S*k])));var J=!this.hasPrev()||!P,$=!this.hasNext()||!P;return l.createElement("ul",(0,i.Z)({className:u()(t,r,(0,o.Z)({},"".concat(t,"-disabled"),c)),style:a,unselectable:"unselectable",ref:this.savePaginationNode},z),X,l.createElement("li",{title:m?f.prev_page:null,onClick:this.prev,tabIndex:J?null:0,onKeyPress:this.runIfEnterPrev,className:u()("".concat(t,"-prev"),(0,o.Z)({},"".concat(t,"-disabled"),J)),"aria-disabled":J},this.renderPrev(j)),K,l.createElement("li",{title:m?f.next_page:null,onClick:this.next,tabIndex:$?null:0,onKeyPress:this.runIfEnterNext,className:u()("".concat(t,"-next"),(0,o.Z)({},"".concat(t,"-disabled"),$)),"aria-disabled":$},this.renderNext(H)),l.createElement(Xe,{disabled:c,locale:f,rootPrefixCls:t,selectComponentClass:E,selectPrefixCls:w,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:S,pageSize:k,pageSizeOptions:Z,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:L}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t={};if("current"in e&&(t.current=e.current,e.current!==n.current&&(t.currentInputValue=t.current)),"pageSize"in e&&e.pageSize!==n.pageSize){var r=n.current,o=Qe(e.pageSize,n,e);r=r>o?o:r,"current"in e||(t.current=r,t.currentInputValue=r),t.pageSize=e.pageSize}return t}}]),t}(l.Component);en.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Je,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Je,locale:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"},style:{},itemRender:function(e,n,t){return t},totalBoundaryShowSizeChanger:50};var nn=en,tn=t(62906),rn=t(6171),on=t(18073),an={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},ln=t(42922),cn=function(e,n){return l.createElement(ln.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:an}))};cn.displayName="DoubleLeftOutlined";var un=l.forwardRef(cn),sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},dn=function(e,n){return l.createElement(ln.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:sn}))};dn.displayName="DoubleRightOutlined";var fn=l.forwardRef(dn),pn=t(38939),vn=function(e){return l.createElement(pn.Z,(0,i.Z)({size:"small"},e))};vn.Option=pn.Z.Option;var mn=vn,hn=t(23715),gn=t(59844),yn=t(25378),bn=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?u:e}),h=Math.ceil((u||e)/m.pageSize);m.current>h&&(m.current=h||1);var g=function(e,n){v({current:null!==e&&void 0!==e?e:1,pageSize:n||m.pageSize})};return!1===n?[{},function(){}]:[(0,i.Z)((0,i.Z)({},m),{onChange:function(e,r){var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),g(e,r),t(e,r||(null===m||void 0===m?void 0:m.pageSize))}}),g]}var wn=t(84506),Zn=t(80882),Nn=t(98423),Sn=t(97326),kn=l.createContext(null),On=function(e){for(var n=e.prefixCls,t=e.level,r=e.isStart,a=e.isEnd,i="".concat(n,"-indent-unit"),c=[],s=0;s=0&&t.splice(r,1),t}function An(e,n){var t=(e||[]).slice();return-1===t.indexOf(n)&&t.push(n),t}function jn(e){return e.split("-")}function Hn(e,n){return"".concat(e,"-").concat(n)}function zn(e,n){var t=[];return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n.forEach((function(n){var r=n.key,o=n.children;t.push(r),e(o)}))}(n[e].children),t}function _n(e){if(e.parent){var n=jn(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function Vn(e,n,t,r,o,a,i,l,c,u){var s,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),v=p.top,m=p.height,h=(("rtl"===u?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-d)-12)/r,g=l[t.props.eventKey];if(f-1.5?a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1:a({dragNode:S,dropNode:k,dropPosition:0})?w=0:a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1:a({dragNode:S,dropNode:k,dropPosition:1})?w=1:O=!1,{dropPosition:w,dropLevelOffset:Z,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:E,dropContainerKey:0===w?null:(null===(s=g.parent)||void 0===s?void 0:s.key)||null,dropAllowed:O}}function Fn(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function Bn(e){if(!e)return null;var n;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,r.Z)(e))return(0,x.ZP)(!1,"`checkedKeys` is not an array or an object"),null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function Un(e,n){var t=new Set;function r(e){if(!t.has(e)){var o=n[e];if(o){t.add(e);var a=o.parent;o.node.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,f.Z)(t)}var Wn=["children"];function Gn(e,n){return null!==e&&void 0!==e?e:n}function Yn(e){var n=e||{},t=n.title||"title";return{title:t,_title:n._title||[t],key:n.key||"key",children:n.children||"children"}}function qn(e){return function e(n){return(0,ae.Z)(n).map((function(n){if(!function(e){return e&&e.type&&e.type.isTreeNode}(n))return(0,x.ZP)(!n,"Tree/TreeNode can only accept TreeNode as children."),null;var t=n.key,r=n.props,o=r.children,a=(0,N.Z)(r,Wn),i=(0,d.Z)({key:t},a),l=e(o);return l.length&&(i.children=l),i})).filter((function(e){return e}))}(e)}function Xn(e,n,t){var r=Yn(t),o=r._title,a=r.key,i=r.children,l=new Set(!0===n?[]:n),c=[];return function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t.map((function(u,s){for(var p,v=Hn(r?r.pos:"0",s),m=Gn(u[a],v),h=0;h1&&void 0!==arguments[1]?arguments[1]:{},t=n.initWrapper,r=n.processEntity,o=n.onProcessFinished,a=n.externalGetKey,i=n.childrenPropName,l=n.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,s={},d={},f={posEntities:s,keyEntities:d};return t&&(f=t(f)||f),Jn(e,(function(e){var n=e.node,t=e.index,o=e.pos,a=e.key,i=e.parentPos,l=e.level,c={node:n,nodes:e.nodes,index:t,key:a,pos:o,level:l},u=Gn(a,o);s[o]=c,d[u]=c,c.parent=s[i],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:u,childrenPropName:i,fieldNames:l}),o&&o(f),f}function Qn(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,i=n.checkedKeys,l=n.halfCheckedKeys,c=n.dragOverNodeKey,u=n.dropPosition,s=n.keyEntities[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(s?s.pos:""),dragOver:c===e&&0===u,dragOverGapTop:c===e&&-1===u,dragOverGapBottom:c===e&&1===u}}function et(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,s=e.dragOverGapBottom,f=e.pos,p=e.active,v=e.eventKey,m=(0,d.Z)((0,d.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:s,pos:f,active:p,key:v});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,x.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function nt(e,n){var t=new Set;return e.forEach((function(e){n.has(e)||t.add(e)})),t}function tt(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!(!t&&!r)||!1===o}function rt(e,n,t,r){var o,a=[];o=r||tt;var i,l=new Set(e.filter((function(e){var n=!!t[e];return n||a.push(e),n}))),c=new Map,u=0;return Object.keys(t).forEach((function(e){var n=t[e],r=n.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(n),u=Math.max(u,r)})),(0,x.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),i=!0===n?function(e,n,t,r){for(var o=new Set(e),a=new Set,i=0;i<=t;i+=1)(n.get(i)||new Set).forEach((function(e){var n=e.key,t=e.node,a=e.children,i=void 0===a?[]:a;o.has(n)&&!r(t)&&i.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,c=t;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!r(t)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(n.key);else{var i=!0,c=!1;(n.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var n=e.key,t=o.has(n);i&&!t&&(i=!1),c||!t&&!a.has(n)||(c=!0)})),i&&o.add(n.key),c&&a.add(n.key),l.add(n.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(nt(a,o))}}(l,c,u,o):function(e,n,t,r,o){for(var a=new Set(e),i=new Set(n),l=0;l<=r;l+=1)(t.get(l)||new Set).forEach((function(e){var n=e.key,t=e.node,r=e.children,l=void 0===r?[]:r;a.has(n)||i.has(n)||o(t)||l.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));i=new Set;for(var c=new Set,u=r;u>=0;u-=1)(t.get(u)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!o(t)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(n.key);else{var r=!0,l=!1;(n.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var n=e.key,t=a.has(n);r&&!t&&(r=!1),l||!t&&!i.has(n)||(l=!0)})),r||a.delete(n.key),l&&i.add(n.key),c.add(n.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(nt(i,a))}}(l,n.halfCheckedKeys,c,u,o),i}var ot=t(5663),at=t(32808),it=t(38504),lt=t(68157),ct=t(50132),ut=t(17799),st=l.createContext(null),dt=st.Provider,ft=st,pt=t(11941),vt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0){var O="button"===m?"".concat(N,"-button"):N;k=v.map((function(e){return"string"===typeof e||"number"===typeof e?l.createElement(gt,{key:e.toString(),prefixCls:O,disabled:y,value:e,checked:p===e},e):l.createElement(gt,{key:"radio-group-value-options-".concat(e.value),prefixCls:O,disabled:e.disabled||y,value:e.value,checked:p===e.value,style:e.style},e.label)}))}var P=x||s,K=u()(S,"".concat(S,"-").concat(g),(t={},(0,o.Z)(t,"".concat(S,"-").concat(P),P),(0,o.Z)(t,"".concat(S,"-rtl"),"rtl"===c),t),f);return l.createElement("div",(0,i.Z)({},(0,bt.Z)(e),{className:K,style:C,onMouseEnter:w,onMouseLeave:Z,id:E,ref:n}),k)}())})),Ct=l.memo(xt),Et=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=e.length,r=n.length;if(1!==Math.abs(t-r))return{add:!1,key:null};function o(e,n){var t=new Map;e.forEach((function(e){t.set(e,!0)}));var r=n.filter((function(e){return!t.has(e)}));return 1===r.length?r[0]:null}return t ").concat(n);return n}(w)),l.createElement("div",null,l.createElement("input",{style:gr,disabled:!1===E||v,tabIndex:!1!==E?S:null,onKeyDown:k,onFocus:O,onBlur:P,value:"",onChange:yr,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},l.createElement("div",{className:"".concat(t,"-indent")},l.createElement("div",{ref:T,className:"".concat(t,"-indent-unit")}))),l.createElement(sr.Z,(0,i.Z)({},R,{data:re,itemKey:Zr,height:b,fullHeight:!1,virtual:C,itemHeight:x,prefixCls:"".concat(t,"-list"),ref:M,onVisibleChange:function(e,n){var t=new Set(e);n.filter((function(e){return!t.has(e)})).some((function(e){return Zr(e)===br}))&&te()}}),(function(e){var n=e.pos,t=(0,i.Z)({},e.data),r=e.title,o=e.key,a=e.isStart,c=e.isEnd,u=Gn(o,n);delete t.key,delete t.children;var s=Qn(u,oe);return l.createElement(vr,(0,i.Z)({},t,s,{title:r,active:!!w&&o===w.key,pos:n,data:e.data,isStart:a,isEnd:c,motion:y,motionNodes:o===br?X:null,motionType:ee,onMotionStart:D,onMotionEnd:te,treeNodeRequiredProps:oe,onMouseMove:function(){K(null)}}))})))},Sr=l.forwardRef(Nr);Sr.displayName="NodeList";var kr=Sr;var Or=function(e){(0,Fe.Z)(t,e);var n=(0,Be.Z)(t);function t(){var e;(0,_e.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],a=e.state,i=a.dragChildrenKeys,l=a.dropPosition,c=a.dropTargetKey,u=a.dropTargetPos,s=a.dropAllowed;if(s){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var p=(0,d.Z)((0,d.Z)({},Qn(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.data.key)===c,data:e.state.keyEntities[c].node}),v=-1!==i.indexOf(c);(0,x.ZP)(!v,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=jn(u),h={event:n,node:et(p),dragNode:e.dragNode?et(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(m[m.length-1])};o||null===f||void 0===f||f(h),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.onNodeClick=function(n,t){var r=e.props.onClick;null===r||void 0===r||r(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props.onDoubleClick;null===r||void 0===r||r(n,t)},e.onNodeSelect=function(n,t){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,i=o.fieldNames,l=e.props,c=l.onSelect,u=l.multiple,s=t.selected,d=t[i.key],f=!s,p=(r=f?u?An(r,d):[d]:Ln(r,d)).map((function(e){var n=a[e];return n?n.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null===c||void 0===c||c(r,{event:"select",selected:f,node:t,selectedNodes:p,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,t,r){var o,a=e.state,i=a.keyEntities,l=a.checkedKeys,c=a.halfCheckedKeys,u=e.props,s=u.checkStrictly,d=u.onCheck,p=t.key,v={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(s){var m=r?An(l,p):Ln(l,p);o={checked:m,halfChecked:Ln(c,p)},v.checkedNodes=m.map((function(e){return i[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var h=rt([].concat((0,f.Z)(l),[p]),!0,i),g=h.checkedKeys,y=h.halfCheckedKeys;if(!r){var b=new Set(g);b.delete(p);var x=rt(Array.from(b),{checked:!1,halfCheckedKeys:y},i);g=x.checkedKeys,y=x.halfCheckedKeys}o=g,v.checkedNodes=[],v.checkedNodesPositions=[],v.halfCheckedKeys=y,g.forEach((function(e){var n=i[e];if(n){var t=n.node,r=n.pos;v.checkedNodes.push(t),v.checkedNodesPositions.push({node:t,pos:r})}})),e.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:y})}null===d||void 0===d||d(o,v)},e.onNodeLoad=function(n){var t=n.key,r=new Promise((function(r,o){e.setState((function(a){var i=a.loadedKeys,l=void 0===i?[]:i,c=a.loadingKeys,u=void 0===c?[]:c,s=e.props,d=s.loadData,f=s.onLoad;return d&&-1===l.indexOf(t)&&-1===u.indexOf(t)?(d(n).then((function(){var o=An(e.state.loadedKeys,t);null===f||void 0===f||f(o,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:Ln(e.loadingKeys,t)}})),r()})).catch((function(n){if(e.setState((function(e){return{loadingKeys:Ln(e.loadingKeys,t)}})),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,x.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:An(a,t)}),r()}o(n)})),{loadingKeys:An(u,t)}):null}))}));return r.catch((function(){})),r},e.onNodeMouseEnter=function(n,t){var r=e.props.onMouseEnter;null===r||void 0===r||r({event:n,node:t})},e.onNodeMouseLeave=function(n,t){var r=e.props.onMouseLeave;null===r||void 0===r||r({event:n,node:t})},e.onNodeContextMenu=function(n,t){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:t}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var t=arguments.length,r=new Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,i={};Object.keys(n).forEach((function(t){t in e.props?a=!1:(o=!0,i[t]=n[t])})),!o||t&&!a||e.setState((0,d.Z)((0,d.Z)({},i),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,Ve.Z)(t,[{key:"componentDidMount",value:function(){this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,n,t=this.state,a=t.focused,c=t.flattenNodes,s=t.keyEntities,d=t.draggingNodeKey,f=t.activeKey,p=t.dropLevelOffset,m=t.dropContainerKey,h=t.dropTargetKey,g=t.dropPosition,y=t.dragOverNodeKey,b=t.indent,x=this.props,C=x.prefixCls,E=x.className,w=x.style,Z=x.showLine,N=x.focusable,S=x.tabIndex,k=void 0===S?0:S,O=x.selectable,P=x.showIcon,K=x.icon,D=x.switcherIcon,I=x.draggable,R=x.checkable,M=x.checkStrictly,T=x.disabled,L=x.motion,A=x.loadData,j=x.filterTreeNode,H=x.height,z=x.itemHeight,_=x.virtual,V=x.titleRender,F=x.dropIndicatorRender,B=x.onContextMenu,U=x.onScroll,W=x.direction,G=(0,v.Z)(this.props,{aria:!0,data:!0});return I&&(n="object"===(0,r.Z)(I)?I:"function"===typeof I?{nodeDraggable:I}:{}),l.createElement(kn.Provider,{value:{prefixCls:C,selectable:O,showIcon:P,icon:K,switcherIcon:D,draggable:n,draggingNodeKey:d,checkable:R,checkStrictly:M,disabled:T,keyEntities:s,dropLevelOffset:p,dropContainerKey:m,dropTargetKey:h,dropPosition:g,dragOverNodeKey:y,indent:b,direction:W,dropIndicatorRender:F,loadData:A,filterTreeNode:j,titleRender:V,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},l.createElement("div",{role:"tree",className:u()(C,E,(e={},(0,o.Z)(e,"".concat(C,"-show-line"),Z),(0,o.Z)(e,"".concat(C,"-focused"),a),(0,o.Z)(e,"".concat(C,"-active-focused"),null!==f),e))},l.createElement(kr,(0,i.Z)({ref:this.listRef,prefixCls:C,style:w,data:c,disabled:T,selectable:O,checkable:!!R,motion:L,dragging:null!==d,height:H,itemHeight:z,virtual:_,focusable:N,focused:a,tabIndex:k,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:U},this.getTreeNodeRequiredProps(),G))))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t,r=n.prevProps,a={prevProps:e};function i(n){return!r&&n in e||r&&r[n]!==e[n]}var l=n.fieldNames;if(i("fieldNames")&&(l=Yn(e.fieldNames),a.fieldNames=l),i("treeData")?t=e.treeData:i("children")&&((0,x.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=qn(e.children)),t){a.treeData=t;var c=$n(t,{fieldNames:l});a.keyEntities=(0,d.Z)((0,o.Z)({},br,Cr),c.keyEntities)}var u,s=a.keyEntities||n.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Un(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var f=(0,d.Z)({},s);delete f[br],a.expandedKeys=Object.keys(f).map((function(e){return f[e].key}))}else!r&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Un(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var p=Xn(t||n.treeData,a.expandedKeys||n.expandedKeys,l);a.flattenNodes=p}if((e.selectable&&(i("selectedKeys")?a.selectedKeys=Fn(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(a.selectedKeys=Fn(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?u=Bn(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=Bn(e.defaultCheckedKeys)||{}:t&&(u=Bn(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),u)){var v=u,m=v.checkedKeys,h=void 0===m?[]:m,g=v.halfCheckedKeys,y=void 0===g?[]:g;if(!e.checkStrictly){var b=rt(h,!0,s);h=b.checkedKeys,y=b.halfCheckedKeys}a.checkedKeys=h,a.halfCheckedKeys=y}return i("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(l.Component);Or.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,t=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-t*r;break;case 1:o.bottom=0,o.left=-t*r;break;case 0:o.bottom=0,o.left=r}return l.createElement("div",{style:o})},allowDrop:function(){return!0}},Or.TreeNode=Tn;var Pr=Or,Kr=t(23279),Dr=t.n(Kr),Ir={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"},Rr=function(e,n){return l.createElement(ln.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Ir}))};Rr.displayName="FileOutlined";var Mr=l.forwardRef(Rr),Tr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Lr=function(e,n){return l.createElement(ln.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Tr}))};Lr.displayName="FolderOpenOutlined";var Ar=l.forwardRef(Lr),jr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Hr=function(e,n){return l.createElement(ln.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:jr}))};Hr.displayName="FolderOutlined";var zr,_r=l.forwardRef(Hr);function Vr(e,n){e.forEach((function(e){var t=e.key,r=e.children;!1!==n(t,e)&&Vr(r||[],n)}))}function Fr(e){var n=e.treeData,t=e.expandedKeys,r=e.startKey,o=e.endKey,a=[],i=zr.None;if(r&&r===o)return[r];if(!r||!o)return[];return Vr(n,(function(e){if(i===zr.End)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),i===zr.None)i=zr.Start;else if(i===zr.Start)return i=zr.End,!1}else i===zr.Start&&a.push(e);return-1!==t.indexOf(e)})),a}function Br(e,n){var t=(0,f.Z)(n),r=[];return Vr(e,(function(e,n){var o=t.indexOf(e);return-1!==o&&(r.push(n),t.splice(o,1)),!!t.length})),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(zr||(zr={}));var Ur=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},n=e.confirm,t=e.closeDropdown;n&&X([]),t&&O(!1),G(""),M([])},Q=u()((0,o.Z)({},"".concat(c,"-menu-without-submenu"),!(i.filters||[]).some((function(e){return e.children})))),ee=function(e){if(e.target.checked){var n=No(null===i||void 0===i?void 0:i.filters).map((function(e){return String(e)}));M(n)}else M([])},ne=function e(n){return(n.filters||[]).map((function(n,t){var r=String(n.value),o={title:n.text,key:void 0!==n.value?r:t};return n.children&&(o.children=e({filters:n.children})),o}))};if("function"===typeof i.filterDropdown)q=i.filterDropdown({prefixCls:"".concat(c,"-custom"),setSelectedKeys:function(e){return T({selectedKeys:e})},selectedKeys:R(),confirm:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0}).closeDropdown&&O(!1),X(R())},clearFilters:$,filters:i.filters,visible:P});else if(i.filterDropdown)q=i.filterDropdown;else{var te=R()||[];q=l.createElement(l.Fragment,null,0===(i.filters||[]).length?l.createElement(vo.Z,{image:vo.Z.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?l.createElement(l.Fragment,null,l.createElement(yo,{filterSearch:m,value:W,onChange:Y,tablePrefixCls:t,locale:y}),l.createElement("div",{className:"".concat(t,"-filter-dropdown-tree")},d?l.createElement(at.Z,{checked:te.length===No(i.filters).length,indeterminate:te.length>0&&te.length1&&void 0!==arguments[1]?arguments[1]:{},t=n.getContainer,r=void 0===t?function(){return window}:t,o=n.callback,a=n.duration,i=void 0===a?450:a,l=r(),c=Mo(l,!0),u=Date.now(),s=function n(){var t=Date.now()-u,r=To(t>i?i:t,c,e,i);Ro(l)?l.scrollTo(window.pageXOffset,r):l instanceof HTMLDocument||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=r:l.scrollTop=r,t1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var A=l.useMemo((function(){return C||de(E)}),[C,E]),j=l.useMemo((function(){return A.some((function(e){return e.responsive}))}),[A]),H=(0,yn.Z)(j),z=l.useMemo((function(){var e=new Set(Object.keys(H).filter((function(e){return H[e]})));return A.filter((function(n){return!n.responsive||n.responsive.some((function(n){return e.has(n)}))}))}),[A,H]),_=(0,s.Z)(e,["className","style","columns"]),V=l.useContext(yt.Z),F=l.useContext(gn.E_),B=F.locale,U=void 0===B?Ao:B,W=F.renderEmpty,G=F.direction,Y=p||V,q=(0,i.Z)((0,i.Z)({},U.Table),M),X=h||zo,J=l.useContext(gn.E_).getPrefixCls,$=J("table",c),Q=J("dropdown",m),ee=(0,i.Z)({childrenColumnName:w,expandIconColumnIndex:K},O),ne=ee.childrenColumnName,te=void 0===ne?"children":ne,re=l.useMemo((function(){return X.some((function(e){return null===e||void 0===e?void 0:e[te]}))?"nest":P||O&&O.expandedRowRender?"row":null}),[X]),oe={body:l.useRef()},ae=l.useMemo((function(){return"function"===typeof b?b:function(e){return null===e||void 0===e?void 0:e[b]}}),[b]),ie=function(e,n,t){var o=l.useRef({});return[function(a){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==n||o.current.getRowKey!==t){var i=new Map;function a(e){e.forEach((function(e,o){var l=t(e,o);i.set(l,e),e&&"object"===(0,r.Z)(e)&&n in e&&a(e[n]||[])}))}a(e),o.current={data:e,childrenColumnName:n,kvMap:i,getRowKey:t}}return o.current.kvMap.get(a)}]}(X,te,ae),le=(0,a.Z)(ie,1)[0],ce={},ue=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=(0,i.Z)((0,i.Z)({},ce),e);t&&(ce.resetPagination(),r.pagination.current&&(r.pagination.current=1),g&&g.onChange&&g.onChange(1,r.pagination.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&oe.body.current&&Lo(0,{getContainer:function(){return oe.body.current}}),null===Z||void 0===Z||Z(r.pagination,r.filters,r.sorter,{currentDataSource:ko($t(X,r.sorterStates,te),r.filterStates),action:n})},se=Qt({prefixCls:$,mergedColumns:z,onSorterChange:function(e,n){ue({sorter:e,sorterStates:n},"sort",!1)},sortDirections:R||["ascend","descend"],tableLocale:q,showSorterTooltip:L}),fe=(0,a.Z)(se,4),pe=fe[0],ve=fe[1],me=fe[2],he=fe[3],ge=l.useMemo((function(){return $t(X,ve,te)}),[X,ve]);ce.sorter=he(),ce.sorterStates=ve;var ye=Oo({prefixCls:$,locale:q,dropdownPrefixCls:Q,mergedColumns:z,onFilterChange:function(e,n){ue({filters:e,filterStates:n},"filter",!0)},getPopupContainer:N}),be=(0,a.Z)(ye,3),xe=be[0],Ce=be[1],Ee=be[2],we=ko(ge,Ce);ce.filters=Ee(),ce.filterStates=Ce;var Ze=Ko(l.useMemo((function(){return(0,i.Z)({},me)}),[me])),Ne=(0,a.Z)(Ze,1)[0],Se=En(we.length,g,(function(e,n){ue({pagination:(0,i.Z)((0,i.Z)({},ce.pagination),{current:e,pageSize:n})},"paginate")})),ke=(0,a.Z)(Se,2),Oe=ke[0],Pe=ke[1];ce.pagination=!1===g?{}:function(e,n){var t={current:n.current,pageSize:n.pageSize},o=e&&"object"===(0,r.Z)(e)?e:{};return Object.keys(o).forEach((function(e){var r=n[e];"function"!==typeof r&&(t[e]=r)})),t}(g,Oe),ce.resetPagination=Pe;var Ke=l.useMemo((function(){if(!1===g||!Oe.pageSize)return we;var e=Oe.current,n=void 0===e?1:e,t=Oe.total,r=Oe.pageSize,o=void 0===r?10:r;return(0,pt.Z)(n>0,"Table","`current` should be positive number."),we.lengtho?((0,pt.Z)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),we.slice((n-1)*o,n*o)):we:we.slice((n-1)*o,n*o)}),[!!g,we,Oe&&Oe.current,Oe&&Oe.pageSize,Oe&&Oe.total]),De=Rt(y,{prefixCls:$,data:we,pageData:Ke,getRowKey:ae,getRecordByKey:le,expandType:re,childrenColumnName:te,locale:q,getPopupContainer:N}),Ie=(0,a.Z)(De,2),Re=Ie[0],Me=Ie[1];ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||k||Do(q),"nest"===re&&void 0===ee.expandIconColumnIndex?ee.expandIconColumnIndex=y?1:0:ee.expandIconColumnIndex>0&&y&&(ee.expandIconColumnIndex-=1),"number"!==typeof ee.indentSize&&(ee.indentSize="number"===typeof D?D:15);var Te,Ae,je,_e=l.useCallback((function(e){return Ne(Re(xe(pe(e))))}),[pe,xe,Re]);if(!1!==g&&(null===Oe||void 0===Oe?void 0:Oe.total)){var Ve;Ve=Oe.size?Oe.size:"small"===Y||"middle"===Y?"small":void 0;var Fe=function(e){return l.createElement(xn,(0,i.Z)({},Oe,{className:u()("".concat($,"-pagination ").concat($,"-pagination-").concat(e),Oe.className),size:Ve}))},Be="rtl"===G?"left":"right",Ue=Oe.position;if(null!==Ue&&Array.isArray(Ue)){var We=Ue.find((function(e){return-1!==e.indexOf("top")})),Ge=Ue.find((function(e){return-1!==e.indexOf("bottom")})),Ye=Ue.every((function(e){return"none"==="".concat(e)}));We||Ge||Ye||(Ae=Fe(Be)),We&&(Te=Fe(We.toLowerCase().replace("top",""))),Ge&&(Ae=Fe(Ge.toLowerCase().replace("bottom","")))}else Ae=Fe(Be)}"boolean"===typeof S?je={spinning:S}:"object"===(0,r.Z)(S)&&(je=(0,i.Z)({spinning:!0},S));var qe=u()("".concat($,"-wrapper"),(0,o.Z)({},"".concat($,"-wrapper-rtl"),"rtl"===G),d);return l.createElement("div",{ref:n,className:qe,style:f},l.createElement(ze.Z,(0,i.Z)({spinning:!1},je),Te,l.createElement(He,(0,i.Z)({},_,{columns:z,direction:G,expandable:ee,prefixCls:$,className:u()((t={},(0,o.Z)(t,"".concat($,"-middle"),"middle"===Y),(0,o.Z)(t,"".concat($,"-small"),"small"===Y),(0,o.Z)(t,"".concat($,"-bordered"),v),(0,o.Z)(t,"".concat($,"-empty"),0===X.length),t)),data:Ke,rowKey:ae,rowClassName:function(e,n,t){var r;return r="function"===typeof x?u()(x(e,n,t)):u()(x),u()((0,o.Z)({},"".concat($,"-row-selected"),Me.has(ae(e,n))),r)},emptyText:M&&M.emptyText||W("Table"),internalHooks:Le,internalRefs:oe,transformColumns:_e})),Ae))}var Vo=l.forwardRef(_o);Vo.defaultProps={rowKey:"key"},Vo.SELECTION_COLUMN=kt,Vo.EXPAND_COLUMN=He.EXPAND_COLUMN,Vo.SELECTION_ALL=Ot,Vo.SELECTION_INVERT=Pt,Vo.SELECTION_NONE=Kt,Vo.Column=jo,Vo.ColumnGroup=Ho,Vo.Summary=Ze;var Fo=Vo},27561:function(e,n,t){var r=t(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},67990:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},23279:function(e,n,t){var r=t(13218),o=t(7771),a=t(14841),i=Math.max,l=Math.min;e.exports=function(e,n,t){var c,u,s,d,f,p,v=0,m=!1,h=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(n){var t=c,r=u;return c=u=void 0,v=n,d=e.apply(r,t)}function b(e){return v=e,f=setTimeout(C,n),m?y(e):d}function x(e){var t=e-p;return void 0===p||t>=n||t<0||h&&e-v>=s}function C(){var e=o();if(x(e))return E(e);f=setTimeout(C,function(e){var t=n-(e-p);return h?l(t,s-(e-v)):t}(e))}function E(e){return f=void 0,g&&c?y(e):(c=u=void 0,d)}function w(){var e=o(),t=x(e);if(c=arguments,u=this,p=e,t){if(void 0===f)return b(p);if(h)return clearTimeout(f),f=setTimeout(C,n),y(p)}return void 0===f&&(f=setTimeout(C,n)),d}return n=a(n)||0,r(t)&&(m=!!t.leading,s=(h="maxWait"in t)?i(a(t.maxWait)||0,n):s,g="trailing"in t?!!t.trailing:g),w.cancel=function(){void 0!==f&&clearTimeout(f),v=0,c=p=u=f=void 0},w.flush=function(){return void 0===f?d:E(o())},w}},33448:function(e,n,t){var r=t(44239),o=t(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),o=t(13218),a=t(33448),i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=l.test(e);return t||c.test(e)?u(e.slice(2),t?2:8):i.test(e)?NaN:+e}},50132:function(e,n,t){"use strict";var r=t(87462),o=t(4942),a=t(91),i=t(1413),l=t(15671),c=t(43144),u=t(60136),s=t(73568),d=t(67294),f=t(94184),p=t.n(f),v=function(e){(0,u.Z)(t,e);var n=(0,s.Z)(t);function t(e){var r;(0,l.Z)(this,t),(r=n.call(this,e)).handleChange=function(e){var n=r.props,t=n.disabled,o=n.onChange;t||("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:(0,i.Z)((0,i.Z)({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return(0,c.Z)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,i=n.className,l=n.style,c=n.name,u=n.id,s=n.type,f=n.disabled,v=n.readOnly,m=n.tabIndex,h=n.onClick,g=n.onFocus,y=n.onBlur,b=n.onKeyDown,x=n.onKeyPress,C=n.onKeyUp,E=n.autoFocus,w=n.value,Z=n.required,N=(0,a.Z)(n,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),S=Object.keys(N).reduce((function(e,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(e[n]=N[n]),e}),{}),k=this.state.checked,O=p()(t,i,(e={},(0,o.Z)(e,"".concat(t,"-checked"),k),(0,o.Z)(e,"".concat(t,"-disabled"),f),e));return d.createElement("span",{className:O,style:l},d.createElement("input",(0,r.Z)({name:c,id:u,type:s,required:Z,readOnly:v,disabled:f,tabIndex:m,className:"".concat(t,"-input"),checked:!!k,onClick:h,onFocus:g,onBlur:y,onKeyUp:C,onKeyDown:b,onKeyPress:x,onChange:this.handleChange,autoFocus:E,ref:this.saveInput,value:w},S)),d.createElement("span",{className:"".concat(t,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return"checked"in e?(0,i.Z)((0,i.Z)({},n),{},{checked:e.checked}):null}}]),t}(d.Component);v.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},n.Z=v},60057:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var r=t(4942),o=t(1413),a=t(97685),i=t(91),l=t(67294),c=t(82532),u=t(94184),s=t.n(u),d={adjustX:1,adjustY:1},f=[0,0],p={topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:f}},v=t(15105),m=v.Z.ESC,h=v.Z.TAB;function g(e){var n=e.visible,t=e.setTriggerVisible,r=e.triggerRef,o=e.menuRef,a=e.menuClassName,i=e.onVisibleChange,c=function(){n&&r.current&&(r.current.triggerRef.current&&r.current.triggerRef.current.focus(),t(!1),"function"===typeof i&&i(!1))},u=function(e){switch(e.keyCode){case m:case h:c()}};l.useEffect((function(){return n?(setTimeout((function(){!function(){if(o.current){var e,n,t,r=(null===(e=o.current.className)||void 0===e?void 0:e.includes(a))?o.current:null===(n=(t=o.current).querySelector)||void 0===n?void 0:n.call(t,a);r&&r.focus()}}(),window.addEventListener("keydown",u)}),100),function(){window.removeEventListener("keydown",u)}):function(){return null}}),[n]);return{returnFocus:function(){n&&r.current&&r.current.triggerRef.current&&setTimeout((function(){var e,n,t;null===(e=r.current)||void 0===e||null===(n=e.triggerRef)||void 0===n||null===(t=n.current)||void 0===t||t.focus()}),100)}}}var y=t(42550),b=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"];function x(e,n){var t=e.arrow,u=void 0!==t&&t,d=e.prefixCls,f=void 0===d?"rc-dropdown":d,v=e.transitionName,m=e.animation,h=e.align,x=e.placement,C=void 0===x?"bottomLeft":x,E=e.placements,w=void 0===E?p:E,Z=e.getPopupContainer,N=e.showAction,S=e.hideAction,k=e.overlayClassName,O=e.overlayStyle,P=e.visible,K=e.trigger,D=void 0===K?["hover"]:K,I=(0,i.Z)(e,b),R=l.useState(),M=(0,a.Z)(R,2),T=M[0],L=M[1],A="visible"in e?P:T,j=l.useRef(null);l.useImperativeHandle(n,(function(){return j.current}));var H=l.useRef(null),z="".concat(f,"-menu"),_=g({visible:A,setTriggerVisible:L,triggerRef:j,menuRef:H,menuClassName:z,onVisibleChange:e.onVisibleChange}).returnFocus,V=function(){var n=e.overlay;return"function"===typeof n?n():n},F=function(n){var t=e.onOverlayClick,r=V().props;L(!1),t&&t(n),r.onClick&&r.onClick(n),_()},B=function(){var e=V(),n={prefixCls:z,onClick:F,ref:(0,y.Yr)(e)?H:void 0};return"string"===typeof e.type&&delete n.prefixCls,l.createElement(l.Fragment,null,u&&l.createElement("div",{className:"".concat(f,"-arrow")}),l.cloneElement(e,n))},U=S;return U||-1===D.indexOf("contextMenu")||(U=["click"]),l.createElement(c.Z,(0,o.Z)((0,o.Z)({builtinPlacements:w},I),{},{prefixCls:f,ref:j,popupClassName:s()(k,(0,r.Z)({},"".concat(f,"-show-arrow"),u)),popupStyle:O,action:D,showAction:N,hideAction:U||[],popupPlacement:C,popupAlign:h,popupTransitionName:v,popupAnimation:m,popupVisible:A,stretch:function(){var n=e.minOverlayWidthMatchTrigger,t=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?n:!t}()?"minWidth":"",popup:"function"===typeof e.overlay?B:B(),onPopupVisibleChange:function(n){var t=e.onVisibleChange;L(n),"function"===typeof t&&t(n)},getPopupContainer:Z}),function(){var n=e.children,t=n.props?n.props:{},r=s()(t.className,function(){var n=e.openClassName;return void 0!==n?n:"".concat(f,"-open")}());return A&&n?l.cloneElement(n,{className:r}):n}())}var C=l.forwardRef(x)},8410:function(e,n,t){"use strict";var r=t(67294),o=(0,t(98924).Z)()?r.useLayoutEffect:r.useEffect;n.Z=o},73453:function(e,n,t){"use strict";t.d(n,{Z:function(){return q}});var r=t(67294),o=t(94184),a=t.n(o),i=t(48555);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;nt},e}return n=l,(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(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,n=e.dragging,t=e.visible,o=this.props.prefixCls,i=this.getSpinHeight(),l=this.getTop(),c=this.showScroll(),u=c&&t;return r.createElement("div",{ref:this.scrollbarRef,className:a()("".concat(o,"-scrollbar"),v({},"".concat(o,"-scrollbar-show"),c)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:u?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},r.createElement("div",{ref:this.thumbRef,className:a()("".concat(o,"-scrollbar-thumb"),v({},"".concat(o,"-scrollbar-thumb-moving"),n)),style:{width:"100%",height:i,top:l,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&h(n.prototype,t),o&&h(n,o),Object.defineProperty(n,"prototype",{writable:!1}),l}(r.Component);function w(e){var n=e.children,t=e.setRef,o=r.useCallback((function(e){t(e)}),[]);return r.cloneElement(n,{ref:o})}var Z=t(34203);function N(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]&&arguments[1],r=e<0&&i.current.top||e>0&&i.current.bottom;return n&&r?(clearTimeout(o.current),t.current=!1):r&&!t.current||a(),!t.current&&r}};var L=t(8410);var A=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function j(){return j=Object.assign||function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var U=[],W={overflowY:"auto",overflowAnchor:"none"};function G(e,n){var t=e.prefixCls,o=void 0===t?"rc-virtual-list":t,i=e.className,l=e.height,c=e.itemHeight,u=e.fullHeight,s=void 0===u||u,p=e.style,v=e.data,m=e.children,h=e.itemKey,g=e.virtual,y=e.component,b=void 0===y?"div":y,x=e.onScroll,C=e.onVisibleChange,N=B(e,A),O=!(!1===g||!l||!c),K=O&&v&&c*v.length>l,D=V((0,r.useState)(0),2),R=D[0],H=D[1],F=V((0,r.useState)(!1),2),G=F[0],Y=F[1],q=a()(o,i),X=v||U,J=(0,r.useRef)(),$=(0,r.useRef)(),Q=(0,r.useRef)(),ee=r.useCallback((function(e){return"function"===typeof h?h(e):null===e||void 0===e?void 0:e[h]}),[h]),ne={getKey:ee};function te(e){H((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)}("function"===typeof e?e(n):e);return J.current.scrollTop=t,t}))}var re=(0,r.useRef)({start:0,end:X.length}),oe=(0,r.useRef)(),ae=V(I(X,ee),1)[0];oe.current=ae;var ie=function(e,n,t){var o=k(r.useState(0),2),a=o[0],i=o[1],l=(0,r.useRef)(new Map),c=(0,r.useRef)(new S),u=(0,r.useRef)();function s(){f.Z.cancel(u.current)}function d(){s(),u.current=(0,f.Z)((function(){l.current.forEach((function(e,n){if(e&&e.offsetParent){var t=(0,Z.Z)(e),r=t.offsetHeight;c.current.get(n)!==r&&c.current.set(n,t.offsetHeight)}})),i((function(e){return e+1}))}))}return(0,r.useEffect)((function(){return s}),[]),[function(r,o){var a=e(r),i=l.current.get(a);o?(l.current.set(a,o),d()):l.current.delete(a),!i!==!o&&(o?null===n||void 0===n||n(r):null===t||void 0===t||t(r))},d,c.current,a]}(ee,null,null),le=V(ie,4),ce=le[0],ue=le[1],se=le[2],de=le[3],fe=r.useMemo((function(){if(!O)return{scrollHeight:void 0,start:0,end:X.length-1,offset:void 0};var e;if(!K)return{scrollHeight:(null===(e=$.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:X.length-1,offset:void 0};for(var n,t,r,o=0,a=X.length,i=0;i=R&&void 0===n&&(n=i,t=o),f>R+l&&void 0===r&&(r=i),o=f}return void 0===n&&(n=0,t=0),void 0===r&&(r=X.length-1),{scrollHeight:o,start:n,end:r=Math.min(r+1,X.length),offset:t}}),[K,O,R,X,de,l]),pe=fe.scrollHeight,ve=fe.start,me=fe.end,he=fe.offset;re.current.start=ve,re.current.end=me;var ge=pe-l,ye=(0,r.useRef)(ge);ye.current=ge;var be=R<=0,xe=R>=ge,Ce=T(be,xe);var Ee=function(e,n,t,o){var a=(0,r.useRef)(0),i=(0,r.useRef)(null),l=(0,r.useRef)(null),c=(0,r.useRef)(!1),u=T(n,t);return[function(n){if(e){f.Z.cancel(i.current);var t=n.deltaY;a.current+=t,l.current=t,u(t)||(M||n.preventDefault(),i.current=(0,f.Z)((function(){var e=c.current?10:1;o(a.current*e),a.current=0})))}},function(n){e&&(c.current=n.detail===l.current)}]}(O,be,xe,(function(e){te((function(n){return n+e}))})),we=V(Ee,2),Ze=we[0],Ne=we[1];!function(e,n,t){var o,a=(0,r.useRef)(!1),i=(0,r.useRef)(0),l=(0,r.useRef)(null),c=(0,r.useRef)(null),u=function(e){if(a.current){var n=Math.ceil(e.touches[0].pageY),r=i.current-n;i.current=n,t(r)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!t(r*=.9333333333333333,!0)||Math.abs(r)<=.1)&&clearInterval(c.current)}),16)}},s=function(){a.current=!1,o()},d=function(e){o(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u),l.current.addEventListener("touchend",s))};o=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",s))},(0,L.Z)((function(){return e&&n.current.addEventListener("touchstart",d),function(){n.current.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(O,J,(function(e,n){return!Ce(e,n)&&(Ze({preventDefault:function(){},deltaY:e}),!0)})),(0,L.Z)((function(){function e(e){O&&e.preventDefault()}return J.current.addEventListener("wheel",Ze),J.current.addEventListener("DOMMouseScroll",Ne),J.current.addEventListener("MozMousePixelScroll",e),function(){J.current.removeEventListener("wheel",Ze),J.current.removeEventListener("DOMMouseScroll",Ne),J.current.removeEventListener("MozMousePixelScroll",e)}}),[O]);var Se=function(e,n,t,o,a,i,l,c){var u=r.useRef();return function(r){if(null!==r&&void 0!==r){if(f.Z.cancel(u.current),"number"===typeof r)l(r);else if(r&&"object"===P(r)){var s,d=r.align;s="index"in r?r.index:n.findIndex((function(e){return a(e)===r.key}));var p=r.offset,v=void 0===p?0:p;!function r(c,p){if(!(c<0)&&e.current){var m=e.current.clientHeight,h=!1,g=p;if(m){for(var y=p||d,b=0,x=0,C=0,E=Math.min(n.length,s),w=0;w<=E;w+=1){var Z=a(n[w]);x=b;var N=t.get(Z);b=C=x+(void 0===N?o:N),w===s&&void 0===N&&(h=!0)}var S=null;switch(y){case"top":S=x-v;break;case"bottom":S=C-m+v;break;default:var k=e.current.scrollTop;xk+m&&(g="bottom")}null!==S&&S!==e.current.scrollTop&&l(S)}u.current=(0,f.Z)((function(){h&&i(),r(c-1,g)}))}}(3)}}else c()}}(J,X,se,c,ee,ue,te,(function(){var e;null===(e=Q.current)||void 0===e||e.delayHidden()}));r.useImperativeHandle(n,(function(){return{scrollTo:Se}})),(0,L.Z)((function(){if(C){var e=X.slice(ve,me+1);C(e,X)}}),[ve,me,X]);var ke=function(e,n,t,o,a,i){var l=i.getKey;return e.slice(n,t+1).map((function(e,t){var i=a(e,n+t,{}),c=l(e);return r.createElement(w,{key:c,setRef:function(n){return o(e,n)}},i)}))}(X,ve,me,ce,m,ne),Oe=null;return l&&(Oe=z(_({},s?"height":"maxHeight",l),W),O&&(Oe.overflowY="hidden",G&&(Oe.pointerEvents="none"))),r.createElement("div",j({style:z(z({},p),{},{position:"relative"}),className:q},N),r.createElement(b,{className:"".concat(o,"-holder"),style:Oe,ref:J,onScroll:function(e){var n=e.currentTarget.scrollTop;n!==R&&te(n),null===x||void 0===x||x(e)}},r.createElement(d,{prefixCls:o,height:pe,offset:he,onInnerResize:ue,ref:$},ke)),O&&r.createElement(E,{ref:Q,prefixCls:o,scrollTop:R,height:l,scrollHeight:pe,count:X.length,onScroll:function(e){te(e)},onStartMove:function(){Y(!0)},onStopMove:function(){Y(!1)}}))}var Y=r.forwardRef(G);Y.displayName="List";var q=Y}}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/access-tokens-b6a250590368e866.js b/static/admin/_next/static/chunks/pages/access-tokens-9dbb873b6a36d6fa.js similarity index 61% rename from static/admin/_next/static/chunks/pages/access-tokens-b6a250590368e866.js rename to static/admin/_next/static/chunks/pages/access-tokens-9dbb873b6a36d6fa.js index 5eacda8a1..2fe5949ab 100644 --- a/static/admin/_next/static/chunks/pages/access-tokens-b6a250590368e866.js +++ b/static/admin/_next/static/chunks/pages/access-tokens-9dbb873b6a36d6fa.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[874],{48689:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1413),c=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},a=n(42922),s=function(e,t){return c.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};s.displayName="DeleteOutlined";var i=c.forwardRef(s)},6226:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(4942),c=n(87462),o=n(71002),a=n(67294),s=n(94184),i=n.n(s),l=n(99134),u=n(59844),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(r=Object.getOwnPropertySymbols(e);c0){var I=m[0]/2;A.paddingLeft=I,A.paddingRight=I}if(m&&m[1]>0&&!x){var R=m[1]/2;A.paddingTop=R,A.paddingBottom=R}return E&&(A.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(E),!1!==y||A.minWidth||(A.minWidth=0)),a.createElement("div",(0,c.Z)({},S,{style:(0,c.Z)((0,c.Z)({},A),N),className:T,ref:t}),O)}));d.displayName="Col";var h=d},99134:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},25968:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(87462),c=n(4942),o=n(71002),a=n(97685),s=n(67294),i=n(94184),l=n.n(i),u=n(59844),f=n(99134),p=n(93355),d=n(24308),h=n(98082),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(r=Object.getOwnPropertySymbols(e);c0?I[0]/-2:void 0,H=I[1]>0?I[1]/-2:void 0;if(G&&(M.marginLeft=G,M.marginRight=G),_){var z=(0,a.Z)(I,2);M.rowGap=z[1]}else H&&(M.marginTop=H,M.marginBottom=H);var D=(0,a.Z)(I,2),B=D[0],F=D[1],U=s.useMemo((function(){return{gutter:[B,F],wrap:w,supportFlexGap:_}}),[B,F,w,_]);return s.createElement(f.Z.Provider,{value:U},s.createElement("div",(0,r.Z)({},k,{className:R,style:(0,r.Z)((0,r.Z)({},M),x),ref:t}),b))})));m.displayName="Row";var y=m},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(4942),c=n(87462),o=n(97685),a=n(67294),s=n(94184),i=n.n(s),l=n(10366),u=n(97937),f=n(59844),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(r=Object.getOwnPropertySymbols(e);c0){var I=m[0]/2;A.paddingLeft=I,A.paddingRight=I}if(m&&m[1]>0&&!x){var R=m[1]/2;A.paddingTop=R,A.paddingBottom=R}return E&&(A.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(E),!1!==y||A.minWidth||(A.minWidth=0)),a.createElement("div",(0,c.Z)({},S,{style:(0,c.Z)((0,c.Z)({},A),N),className:T,ref:t}),O)}));d.displayName="Col";var h=d},99134:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},25968:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(87462),c=n(4942),o=n(71002),a=n(97685),s=n(67294),i=n(94184),l=n.n(i),u=n(59844),f=n(99134),p=n(93355),d=n(24308),h=n(98082),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(r=Object.getOwnPropertySymbols(e);c0?I[0]/-2:void 0,H=I[1]>0?I[1]/-2:void 0;if(G&&(M.marginLeft=G,M.marginRight=G),_){var z=(0,a.Z)(I,2);M.rowGap=z[1]}else H&&(M.marginTop=H,M.marginBottom=H);var D=(0,a.Z)(I,2),B=D[0],F=D[1],U=s.useMemo((function(){return{gutter:[B,F],wrap:w,supportFlexGap:_}}),[B,F,w,_]);return s.createElement(f.Z.Provider,{value:U},s.createElement("div",(0,r.Z)({},k,{className:R,style:(0,r.Z)((0,r.Z)({},M),x),ref:t}),b))})));m.displayName="Row";var y=m},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(4942),c=n(87462),o=n(97685),a=n(67294),s=n(94184),i=n.n(s),l=n(10366),u=n(97937),f=n(59844),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(r=Object.getOwnPropertySymbols(e);ce.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t0?(0,s.jsx)(l.Z,{style:{color:"var(--ant-success)"}}):(0,s.jsx)(f.Z,{style:{color:"var(--ant-warning)"}}));var S="Click to ".concat(t?"hide":"show"," this message");return(0,s.jsxs)("div",{className:"toggle-switch ".concat(t?"":"hidden"),children:[(0,s.jsx)("span",{className:"outcome-icon",children:O}),(0,s.jsx)(y.Z,{title:S,placement:"topRight",children:(0,s.jsx)(u.Z,{shape:"circle",size:"small",type:"text",icon:t?(0,s.jsx)(g.Z,{}):(0,s.jsx)(b.Z,{}),onClick:x})})]})}var S=n(31386);function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nr?1:0}))}(t),D={selectedRowKeys:o,onChange:function(e){d(e)}},U=function(e){var r=t.findIndex((function(t){return t.id===e.id}));t.splice(r,1,e),n(Z(t))},Q=function(){A=setTimeout((function(){j(null),T("")}),E)},H=function(){var e=P(i().mark((function e(r){var a,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(!0),e.next=3,(0,p.rQ)(p.hn,{auth:!0,method:"POST",data:{visible:r,idArray:o}});case 3:(a=e.sent).success&&"changed"===a.message?(j((0,s.jsx)(l.Z,{})),Q(),u=Z(t),o.map((function(e){var n=u.findIndex((function(t){return t.id===e})),i=C({},t[n],{visible:r});return u.splice(n,1,i),null})),n(u),d([])):(j((0,s.jsx)(f.Z,{})),Q()),b(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),V=[{title:"Time",dataIndex:"timestamp",key:"timestamp",className:"timestamp-col",defaultSortOrder:"descend",render:function(e){var t=new Date(e);return(0,h.Z)(t,"PP pp")},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},width:90},{title:"User",dataIndex:"user",key:"user",className:"name-col",filters:z,onFilter:function(e,t){return t.user.id===e},sorter:function(e,t){return e.user.displayName.localeCompare(t.user.displayName)},sortDirections:["ascend","descend"],ellipsis:!0,render:function(e){var t=e.displayName;return(0,s.jsx)(S.Z,{user:e,children:t})},width:110},{title:"Message",dataIndex:"body",key:"body",className:"message-col",width:320,render:function(e){return(0,s.jsx)("div",{className:"message-contents",dangerouslySetInnerHTML:{__html:e}})}},{title:"",dataIndex:"hiddenAt",key:"hiddenAt",className:"toggle-col",filters:[{text:"Visible messages",value:!0},{text:"Hidden messages",value:!1}],onFilter:function(e,t){return t.visible===e},render:function(e,t){return(0,s.jsx)(O,{isVisible:!e,message:t,setMessage:U})},width:30}],F=m()({"bulk-editor":!0,active:o.length});return(0,s.jsxs)("div",{className:"chat-messages",children:[(0,s.jsx)(_,{children:"Chat Messages"}),(0,s.jsx)("p",{children:"Manage the messages from viewers that show up on your stream."}),(0,s.jsxs)("div",{className:F,children:[(0,s.jsx)("span",{className:"label",children:"Check multiple messages to change their visibility to: "}),(0,s.jsx)(u.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"show"===k&&g,icon:"show"===k&&x,disabled:!o.length||k&&"show"!==k,onClick:function(){T("show"),H(!0)},children:"Show"}),(0,s.jsx)(u.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"hide"===k&&g,icon:"hide"===k&&x,disabled:!o.length||k&&"hide"!==k,onClick:function(){T("hide"),H(!1)},children:"Hide"})]}),(0,s.jsx)(c.Z,{size:"small",className:"table-container",pagination:{defaultPageSize:100,showSizeChanger:!0},scroll:{y:540},rowClassName:function(e){return e.hiddenAt?"hidden":""},dataSource:t,columns:V,rowKey:function(e){return e.id},rowSelection:D})]})}}},function(e){e.O(0,[662,551,91,533,464,774,888,179],(function(){return t=9007,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/chat/messages-b8f889ed815f672a.js b/static/admin/_next/static/chunks/pages/chat/messages-b8f889ed815f672a.js new file mode 100644 index 000000000..88d4a8c58 --- /dev/null +++ b/static/admin/_next/static/chunks/pages/chat/messages-b8f889ed815f672a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[145],{9007:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/chat/messages",function(){return n(40625)}])},40625:function(e,t,n){"use strict";n.r(t),n.d(t,{OUTCOME_TIMEOUT:function(){return E},default:function(){return A}});var r=n(34051),i=n.n(r),s=n(85893),a=n(67294),o=n(84916),u=n(71577),c=n(17962),l=n(89739),f=n(21640),d=n(94184),m=n.n(d),h=n(58091),p=n(58827),v=n(2766),y=n(94199),g=n(99611),b=n(90420);function w(e,t,n,r,i,s,a){try{var o=e[s](a),u=o.value}catch(c){return void n(c)}o.done?t(u):Promise.resolve(u).then(r,i)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){for(var t=1;t0?(0,s.jsx)(l.Z,{style:{color:"var(--ant-success)"}}):(0,s.jsx)(f.Z,{style:{color:"var(--ant-warning)"}}));var S="Click to ".concat(t?"hide":"show"," this message");return(0,s.jsxs)("div",{className:"toggle-switch ".concat(t?"":"hidden"),children:[(0,s.jsx)("span",{className:"outcome-icon",children:O}),(0,s.jsx)(y.Z,{title:S,placement:"topRight",children:(0,s.jsx)(u.Z,{shape:"circle",size:"small",type:"text",icon:t?(0,s.jsx)(g.Z,{}):(0,s.jsx)(b.Z,{}),onClick:x})})]})}var S=n(31386);function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nr?1:0}))}(t),D={selectedRowKeys:o,onChange:function(e){d(e)}},U=function(e){var r=t.findIndex((function(t){return t.id===e.id}));t.splice(r,1,e),n(Z(t))},Q=function(){A=setTimeout((function(){j(null),T("")}),E)},H=function(){var e=P(i().mark((function e(r){var a,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(!0),e.next=3,(0,p.rQ)(p.hn,{auth:!0,method:"POST",data:{visible:r,idArray:o}});case 3:(a=e.sent).success&&"changed"===a.message?(j((0,s.jsx)(l.Z,{})),Q(),u=Z(t),o.map((function(e){var n=u.findIndex((function(t){return t.id===e})),i=C({},t[n],{visible:r});return u.splice(n,1,i),null})),n(u),d([])):(j((0,s.jsx)(f.Z,{})),Q()),b(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),V=[{title:"Time",dataIndex:"timestamp",key:"timestamp",className:"timestamp-col",defaultSortOrder:"descend",render:function(e){var t=new Date(e);return(0,h.Z)(t,"PP pp")},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},width:90},{title:"User",dataIndex:"user",key:"user",className:"name-col",filters:z,onFilter:function(e,t){return t.user.id===e},sorter:function(e,t){return e.user.displayName.localeCompare(t.user.displayName)},sortDirections:["ascend","descend"],ellipsis:!0,render:function(e){var t=e.displayName;return(0,s.jsx)(S.Z,{user:e,children:t})},width:110},{title:"Message",dataIndex:"body",key:"body",className:"message-col",width:320,render:function(e){return(0,s.jsx)("div",{className:"message-contents",dangerouslySetInnerHTML:{__html:e}})}},{title:"",dataIndex:"hiddenAt",key:"hiddenAt",className:"toggle-col",filters:[{text:"Visible messages",value:!0},{text:"Hidden messages",value:!1}],onFilter:function(e,t){return t.visible===e},render:function(e,t){return(0,s.jsx)(O,{isVisible:!e,message:t,setMessage:U})},width:30}],F=m()({"bulk-editor":!0,active:o.length});return(0,s.jsxs)("div",{className:"chat-messages",children:[(0,s.jsx)(_,{children:"Chat Messages"}),(0,s.jsx)("p",{children:"Manage the messages from viewers that show up on your stream."}),(0,s.jsxs)("div",{className:F,children:[(0,s.jsx)("span",{className:"label",children:"Check multiple messages to change their visibility to: "}),(0,s.jsx)(u.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"show"===k&&g,icon:"show"===k&&x,disabled:!o.length||k&&"show"!==k,onClick:function(){T("show"),H(!0)},children:"Show"}),(0,s.jsx)(u.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"hide"===k&&g,icon:"hide"===k&&x,disabled:!o.length||k&&"hide"!==k,onClick:function(){T("hide"),H(!1)},children:"Hide"})]}),(0,s.jsx)(c.Z,{size:"small",className:"table-container",pagination:{defaultPageSize:100,showSizeChanger:!0},scroll:{y:540},rowClassName:function(e){return e.hiddenAt?"hidden":""},dataSource:t,columns:V,rowKey:function(e){return e.id},rowSelection:D})]})}}},function(e){e.O(0,[662,962,91,533,464,774,888,179],(function(){return t=9007,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/chat/users-9302c9a7edcbfeaa.js b/static/admin/_next/static/chunks/pages/chat/users-9302c9a7edcbfeaa.js deleted file mode 100644 index a55525bce..000000000 --- a/static/admin/_next/static/chunks/pages/chat/users-9302c9a7edcbfeaa.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[255],{22494:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/chat/users",function(){return t(59673)}])},59673:function(e,n,t){"use strict";t.r(n),t.d(n,{FETCH_INTERVAL:function(){return C},default:function(){return I}});var r=t(34051),a=t.n(r),s=t(85893),c=t(67294),o=t(87961),i=t(35159),u=t(58827),d=t(20643),l=t(6551),f=t(85533),h=t(31386),p=t(66192),v=t(2766);function x(e){var n=e.data,t=[{title:"Display Name",key:"username",render:function(e){var n=e.user,t={connectedAt:e.connectedAt,messageCount:e.messageCount,userAgent:e.userAgent};return(0,s.jsx)(h.Z,{user:n,connectionInfo:t,children:(0,s.jsx)("span",{className:"display-name",children:n.displayName})})},sorter:function(e,n){return e.user.displayName-n.user.displayName},sortDirections:["descend","ascend"]},{title:"Messages sent",dataIndex:"messageCount",key:"messageCount",className:"number-col",width:"12%",sorter:function(e,n){return e.messageCount-n.messageCount},sortDirections:["descend","ascend"],render:function(e){return(0,s.jsx)("div",{style:{textAlign:"center"},children:e})}},{title:"Connected Time",dataIndex:"connectedAt",key:"connectedAt",defaultSortOrder:"ascend",render:function(e){return(0,f.Z)(new Date(e))},sorter:function(e,n){return new Date(e.connectedAt).getTime()-new Date(n.connectedAt).getTime()},sortDirections:["descend","ascend"]},{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,v.AB)(e)}},{title:"Location",dataIndex:"geo",key:"geo",render:function(e){return e?"".concat(e.regionName,", ").concat(e.countryCode):"-"}},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,s.jsx)(p.Z,{user:n.user,isEnabled:!n.user.disabledAt})}}];return(0,s.jsx)(l.Z,{className:"table-container",pagination:{hideOnSinglePage:!0},columns:t,dataSource:n,size:"small",rowKey:"id"})}var m=t(71577),g=t(58091),y=t(84674);function w(e,n,t,r,a,s,c){try{var o=e[s](c),i=o.value}catch(u){return void t(u)}o.done?n(i):Promise.resolve(i).then(r,a)}function k(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var s=e.apply(n,t);function c(e){w(s,r,a,c,o,"next",e)}function o(e){w(s,r,a,c,o,"throw",e)}c(void 0)}))}}function b(){return(b=k(a().mark((function e(n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.rQ)(u.RB,{data:{value:n},method:"POST",auth:!0});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}function A(e){var n=e.data,t=[{title:"IP Address",dataIndex:"ipAddress",key:"ipAddress"},{title:"Reason",dataIndex:"notes",key:"notes"},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:function(e){return function(e){return(0,g.Z)(new Date(e),"MMM d H:mma")}(e)},sorter:function(e,n){return new Date(e.createdAt).getTime()-new Date(n.createdAt).getTime()},sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,s.jsx)(m.Z,{title:"Remove IP Address Ban",onClick:function(){return function(e){return b.apply(this,arguments)}(n.ipAddress)},icon:(0,s.jsx)(y.Z,{twoToneColor:"#ff4d4f"}),className:"block-user-button"})}}];return(0,s.jsx)(l.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:t,dataSource:n,size:"large",rowKey:"ipAddress"})}function j(e,n,t,r,a,s,c){try{var o=e[s](c),i=o.value}catch(u){return void t(u)}o.done?n(i):Promise.resolve(i).then(r,a)}var N=o.Z.TabPane,C=1e4;function I(){var e=((0,c.useContext)(i.aC)||{}).online,n=(0,c.useState)([]),t=n[0],r=n[1],l=(0,c.useState)([]),f=l[0],h=l[1],p=(0,c.useState)([]),v=p[0],m=p[1],g=(0,c.useState)([]),y=g[0],w=g[1],k=function(){var e,n=(e=a().mark((function e(){var n,t,s,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.rQ)(u.qk);case 3:n=e.sent,r(n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("==== error",e.t0);case 10:return e.prev=10,e.next=13,(0,u.rQ)(u.Kp);case 13:t=e.sent,m(t),e.next=20;break;case 17:e.prev=17,e.t1=e.catch(10),console.log("==== error",e.t1);case 20:return e.prev=20,e.next=23,(0,u.rQ)(u.GC);case 23:s=e.sent,w(s),e.next=30;break;case 27:e.prev=27,e.t2=e.catch(20),console.error("error fetching moderators",e.t2);case 30:return e.prev=30,e.next=33,(0,u.rQ)(u.Bu);case 33:c=e.sent,h(c),e.next=40;break;case 37:e.prev=37,e.t3=e.catch(30),console.error("error fetching banned ips",e.t3);case 40:case"end":return e.stop()}}),e,null,[[0,7],[10,17],[20,27],[30,37]])})),function(){var n=this,t=arguments;return new Promise((function(r,a){var s=e.apply(n,t);function c(e){j(s,r,a,c,o,"next",e)}function o(e){j(s,r,a,c,o,"throw",e)}c(void 0)}))});return function(){return n.apply(this,arguments)}}();(0,c.useEffect)((function(){var e;return k(),e=setInterval(k,C),function(){clearInterval(e)}}),[e]);var b=e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x,{data:v}),(0,s.jsxs)("p",{className:"description",children:["Visit the"," ",(0,s.jsx)("a",{href:"https://owncast.online/docs/viewers/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"documentation"})," ","to configure additional details about your viewers."]})]}):(0,s.jsx)("p",{className:"description",children:"When a stream is active and chat is enabled, connected chat clients will be displayed here."});return(0,s.jsxs)(o.Z,{defaultActiveKey:"1",children:[(0,s.jsx)(N,{tab:(0,s.jsxs)("span",{children:["Connected ",e?"(".concat(v.length,")"):"(offline)"]}),children:b},"1"),(0,s.jsx)(N,{tab:(0,s.jsxs)("span",{children:["Banned Users (",t.length,")"]}),children:(0,s.jsx)(d.Z,{data:t})},"2"),(0,s.jsx)(N,{tab:(0,s.jsxs)("span",{children:["IP Bans (",f.length,")"]}),children:(0,s.jsx)(A,{data:f})},"3"),(0,s.jsx)(N,{tab:(0,s.jsxs)("span",{children:["Moderators (",y.length,")"]}),children:(0,s.jsx)(d.Z,{data:y})},"4")]})}}},function(e){e.O(0,[662,551,91,961,533,464,774,888,179],(function(){return n=22494,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/chat/users-e0d4a19491972de5.js b/static/admin/_next/static/chunks/pages/chat/users-e0d4a19491972de5.js new file mode 100644 index 000000000..cf9a309a7 --- /dev/null +++ b/static/admin/_next/static/chunks/pages/chat/users-e0d4a19491972de5.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[255],{22494:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/chat/users",function(){return t(59673)}])},59673:function(e,n,t){"use strict";t.r(n),t.d(n,{FETCH_INTERVAL:function(){return C},default:function(){return I}});var r=t(34051),a=t.n(r),s=t(85893),c=t(67294),o=t(87961),i=t(35159),u=t(58827),d=t(20643),l=t(17962),f=t(85533),h=t(31386),p=t(66192),v=t(2766);function x(e){var n=e.data,t=[{title:"Display Name",key:"username",render:function(e){var n=e.user,t={connectedAt:e.connectedAt,messageCount:e.messageCount,userAgent:e.userAgent};return(0,s.jsx)(h.Z,{user:n,connectionInfo:t,children:(0,s.jsx)("span",{className:"display-name",children:n.displayName})})},sorter:function(e,n){return e.user.displayName-n.user.displayName},sortDirections:["descend","ascend"]},{title:"Messages sent",dataIndex:"messageCount",key:"messageCount",className:"number-col",width:"12%",sorter:function(e,n){return e.messageCount-n.messageCount},sortDirections:["descend","ascend"],render:function(e){return(0,s.jsx)("div",{style:{textAlign:"center"},children:e})}},{title:"Connected Time",dataIndex:"connectedAt",key:"connectedAt",defaultSortOrder:"ascend",render:function(e){return(0,f.Z)(new Date(e))},sorter:function(e,n){return new Date(e.connectedAt).getTime()-new Date(n.connectedAt).getTime()},sortDirections:["descend","ascend"]},{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,v.AB)(e)}},{title:"Location",dataIndex:"geo",key:"geo",render:function(e){return e?"".concat(e.regionName,", ").concat(e.countryCode):"-"}},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,s.jsx)(p.Z,{user:n.user,isEnabled:!n.user.disabledAt})}}];return(0,s.jsx)(l.Z,{className:"table-container",pagination:{hideOnSinglePage:!0},columns:t,dataSource:n,size:"small",rowKey:"id"})}var m=t(71577),g=t(58091),y=t(84674);function w(e,n,t,r,a,s,c){try{var o=e[s](c),i=o.value}catch(u){return void t(u)}o.done?n(i):Promise.resolve(i).then(r,a)}function k(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var s=e.apply(n,t);function c(e){w(s,r,a,c,o,"next",e)}function o(e){w(s,r,a,c,o,"throw",e)}c(void 0)}))}}function b(){return(b=k(a().mark((function e(n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.rQ)(u.RB,{data:{value:n},method:"POST",auth:!0});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}function A(e){var n=e.data,t=[{title:"IP Address",dataIndex:"ipAddress",key:"ipAddress"},{title:"Reason",dataIndex:"notes",key:"notes"},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:function(e){return function(e){return(0,g.Z)(new Date(e),"MMM d H:mma")}(e)},sorter:function(e,n){return new Date(e.createdAt).getTime()-new Date(n.createdAt).getTime()},sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,s.jsx)(m.Z,{title:"Remove IP Address Ban",onClick:function(){return function(e){return b.apply(this,arguments)}(n.ipAddress)},icon:(0,s.jsx)(y.Z,{twoToneColor:"#ff4d4f"}),className:"block-user-button"})}}];return(0,s.jsx)(l.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:t,dataSource:n,size:"large",rowKey:"ipAddress"})}function j(e,n,t,r,a,s,c){try{var o=e[s](c),i=o.value}catch(u){return void t(u)}o.done?n(i):Promise.resolve(i).then(r,a)}var N=o.Z.TabPane,C=1e4;function I(){var e=((0,c.useContext)(i.aC)||{}).online,n=(0,c.useState)([]),t=n[0],r=n[1],l=(0,c.useState)([]),f=l[0],h=l[1],p=(0,c.useState)([]),v=p[0],m=p[1],g=(0,c.useState)([]),y=g[0],w=g[1],k=function(){var e,n=(e=a().mark((function e(){var n,t,s,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.rQ)(u.qk);case 3:n=e.sent,r(n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("==== error",e.t0);case 10:return e.prev=10,e.next=13,(0,u.rQ)(u.Kp);case 13:t=e.sent,m(t),e.next=20;break;case 17:e.prev=17,e.t1=e.catch(10),console.log("==== error",e.t1);case 20:return e.prev=20,e.next=23,(0,u.rQ)(u.GC);case 23:s=e.sent,w(s),e.next=30;break;case 27:e.prev=27,e.t2=e.catch(20),console.error("error fetching moderators",e.t2);case 30:return e.prev=30,e.next=33,(0,u.rQ)(u.Bu);case 33:c=e.sent,h(c),e.next=40;break;case 37:e.prev=37,e.t3=e.catch(30),console.error("error fetching banned ips",e.t3);case 40:case"end":return e.stop()}}),e,null,[[0,7],[10,17],[20,27],[30,37]])})),function(){var n=this,t=arguments;return new Promise((function(r,a){var s=e.apply(n,t);function c(e){j(s,r,a,c,o,"next",e)}function o(e){j(s,r,a,c,o,"throw",e)}c(void 0)}))});return function(){return n.apply(this,arguments)}}();(0,c.useEffect)((function(){var e;return k(),e=setInterval(k,C),function(){clearInterval(e)}}),[e]);var b=e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x,{data:v}),(0,s.jsxs)("p",{className:"description",children:["Visit the"," ",(0,s.jsx)("a",{href:"https://owncast.online/docs/viewers/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"documentation"})," ","to configure additional details about your viewers."]})]}):(0,s.jsx)("p",{className:"description",children:"When a stream is active and chat is enabled, connected chat clients will be displayed here."});return(0,s.jsxs)(o.Z,{defaultActiveKey:"1",children:[(0,s.jsx)(N,{tab:(0,s.jsxs)("span",{children:["Connected ",e?"(".concat(v.length,")"):"(offline)"]}),children:b},"1"),(0,s.jsx)(N,{tab:(0,s.jsxs)("span",{children:["Banned Users (",t.length,")"]}),children:(0,s.jsx)(d.Z,{data:t})},"2"),(0,s.jsx)(N,{tab:(0,s.jsxs)("span",{children:["IP Bans (",f.length,")"]}),children:(0,s.jsx)(A,{data:f})},"3"),(0,s.jsx)(N,{tab:(0,s.jsxs)("span",{children:["Moderators (",y.length,")"]}),children:(0,s.jsx)(d.Z,{data:y})},"4")]})}}},function(e){e.O(0,[662,962,91,961,533,464,774,888,179],(function(){return n=22494,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/config-public-details-bfb9f2ead4c611ae.js b/static/admin/_next/static/chunks/pages/config-public-details-f428bad30447489a.js similarity index 99% rename from static/admin/_next/static/chunks/pages/config-public-details-bfb9f2ead4c611ae.js rename to static/admin/_next/static/chunks/pages/config-public-details-f428bad30447489a.js index c1a173696..50e1954ff 100644 --- a/static/admin/_next/static/chunks/pages/config-public-details-bfb9f2ead4c611ae.js +++ b/static/admin/_next/static/chunks/pages/config-public-details-f428bad30447489a.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[721],{85344:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config-public-details",function(){return t(99928)}])},10063:function(e,n,t){"use strict";t.d(n,{Q:function(){return u},Z:function(){return d}});var r=t(85893),a=t(67294),i=t(84916),s=t(20550),o=t(48419),c=t(78464),l=i.Z.Title,u="#5a67d8";function d(e){var n=(0,a.useState)(""),t=n[0],i=n[1],d=e.title,f=e.description,h=e.placeholder,m=e.maxLength,p=e.values,v=e.handleDeleteIndex,g=e.handleCreateString,x=e.submitStatus,j=e.continuousStatusMessage;return(0,r.jsxs)("div",{className:"edit-string-array-container",children:[(0,r.jsx)(l,{level:3,className:"section-title",children:d}),(0,r.jsx)("p",{className:"description",children:f}),(0,r.jsx)("div",{className:"edit-current-strings",children:null===p||void 0===p?void 0:p.map((function(e,n){return(0,r.jsx)(s.Z,{closable:!0,onClose:function(){v(n)},color:u,children:e},"tag-".concat(e,"-").concat(n))}))}),j&&(0,r.jsx)("div",{className:"continuous-status-section",children:(0,r.jsx)(c.Z,{status:j})}),(0,r.jsx)("div",{className:"add-new-string-section",children:(0,r.jsx)(o.ZP,{fieldName:"string-input",value:t,onChange:function(e){var n=e.value;i(n)},onPressEnter:function(){var e=t.trim();g(e),i("")},maxLength:m,placeholder:h,status:x})})]})}d.defaultProps={maxLength:50,description:null,submitStatus:null,continuousStatusMessage:null}},15976:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var r=t(34051),a=t.n(r),i=t(85893),s=t(67294),o=t(94594),c=t(83192),l=t(78464),u=t(25964),d=t(35159);function f(e,n,t,r,a,i,s){try{var o=e[i](s),c=o.value}catch(l){return void t(l)}o.done?n(c):Promise.resolve(c).then(r,a)}function h(e){var n=(0,s.useState)(null),t=n[0],r=n[1],h=null,m=((0,s.useContext)(d.aC)||{}).setFieldInConfigState,p=e.apiPath,v=e.checked,g=e.reversed,x=void 0!==g&&g,j=e.configPath,y=void 0===j?"":j,w=e.disabled,b=void 0!==w&&w,N=e.fieldName,S=e.label,C=e.tip,k=e.useSubmit,P=e.onChange,T=function(){r(null),clearTimeout(h),h=null},Z=function(){var e,n=(e=a().mark((function e(n){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!k){e.next=6;break}return r((0,c.kg)(c.Jk)),t=x?!n:n,e.next=5,(0,u.Si)({apiPath:p,data:{value:t},onSuccess:function(){m({fieldName:N,value:t,path:y}),r((0,c.kg)(c.zv))},onError:function(e){r((0,c.kg)(c.Un,"There was an error: ".concat(e)))}});case 5:h=setTimeout(T,u.sI);case 6:P&&P(n);case 7:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,a){var i=e.apply(n,t);function s(e){f(i,r,a,s,o,"next",e)}function o(e){f(i,r,a,s,o,"throw",e)}s(void 0)}))});return function(e){return n.apply(this,arguments)}}(),E=null!==t&&t.type===c.Jk;return(0,i.jsxs)("div",{className:"formfield-container toggleswitch-container",children:[S&&(0,i.jsx)("div",{className:"label-side",children:(0,i.jsx)("span",{className:"formfield-label",children:S})}),(0,i.jsxs)("div",{className:"input-side",children:[(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsx)(o.Z,{className:"switch field-".concat(N),loading:E,onChange:Z,defaultChecked:v,checked:v,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:b}),(0,i.jsx)(l.Z,{status:t})]}),(0,i.jsx)("p",{className:"field-tip",children:C})]})]})}h.defaultProps={apiPath:"",checked:!1,reversed:!1,configPath:"",disabled:!1,label:"",tip:"",useSubmit:!1,onChange:null}},99928:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return q}});var r=t(85893),a=t(67294),i=t(84916),s=t(50197),o=t(35159),c=t(25964),l=t(15976),u=t(34051),d=t.n(u),f=t(77916),h=t(71577),m=t(50888),p=t(88484),v=t(78464),g=t(83192),x=t(58827);function j(e,n,t,r,a,i,s){try{var o=e[i](s),c=o.value}catch(l){return void t(l)}o.done?n(c):Promise.resolve(c).then(r,a)}var y=["image/png","image/jpeg","image/gif"];function w(){var e,n=(0,a.useState)(null),t=n[0],i=n[1],s=(0,a.useState)(!1),l=s[0],u=s[1],w=(0,a.useState)(0),b=w[0],N=w[1],S=(0,a.useContext)(o.aC)||{},C=S.setFieldInConfigState,k=S.serverConfig,P=null===k||void 0===k||null===(e=k.instanceDetails)||void 0===e?void 0:e.logo,T=(0,a.useState)(null),Z=T[0],E=T[1],_=null,I=c.ZQ.apiPath,O=c.ZQ.tip,U=function(){E(null),clearTimeout(_),_=null},L=function(){var e,n=(e=d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t===P){e.next=5;break}return E((0,g.kg)(g.Jk)),e.next=4,(0,c.Si)({apiPath:I,data:{value:t},onSuccess:function(){C({fieldName:"logo",value:t,path:""}),E((0,g.kg)(g.zv)),u(!1),N(Math.floor(100*Math.random()))},onError:function(e){E((0,g.kg)(g.Un,"There was an error: ".concat(e))),u(!1)}});case 4:_=setTimeout(U,c.sI);case 5:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,a){var i=e.apply(n,t);function s(e){j(i,r,a,s,o,"next",e)}function o(e){j(i,r,a,s,o,"throw",e)}s(void 0)}))});return function(){return n.apply(this,arguments)}}(),A="".concat(x.WB,"logo?random=").concat(b);return(0,r.jsxs)("div",{className:"formfield-container logo-upload-container",children:[(0,r.jsx)("div",{className:"label-side",children:(0,r.jsx)("span",{className:"formfield-label",children:"Logo"})}),(0,r.jsxs)("div",{className:"input-side",children:[(0,r.jsxs)("div",{className:"input-group",children:[(0,r.jsx)("img",{src:A,alt:"avatar",className:"logo-preview"}),(0,r.jsx)(f.Z,{name:"logo",listType:"picture",className:"avatar-uploader",showUploadList:!1,accept:y.join(","),beforeUpload:function(e){return u(!0),new Promise((function(n,t){if(!y.includes(e.type)){var r="File type is not supported: ".concat(e.type);return E((0,g.kg)(g.Un,"There was an error: ".concat(r))),_=setTimeout(U,c.sI),u(!1),t()}!function(e,n){var t=new FileReader;t.addEventListener("load",(function(){return n(t.result)})),t.readAsDataURL(e)}(e,(function(e){return i(e),n()}))}))},customRequest:L,disabled:l,children:l?(0,r.jsx)(m.Z,{style:{color:"white"}}):(0,r.jsx)(h.Z,{icon:(0,r.jsx)(p.Z,{})})})]}),(0,r.jsx)(v.Z,{status:Z}),(0,r.jsx)("p",{className:"field-tip",children:O})]})]})}function b(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function N(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2),"Avatar","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(q,"` at https://ant.design/components/icon"));var $,J=I("avatar",D),ee=f()((n={},(0,s.Z)(n,"".concat(J,"-lg"),"large"===Y),(0,s.Z)(n,"".concat(J,"-sm"),"small"===Y),n)),te=i.isValidElement(M),ne=f()(J,ee,(r={},(0,s.Z)(r,"".concat(J,"-").concat(R),!!R),(0,s.Z)(r,"".concat(J,"-image"),te||M&&P),(0,s.Z)(r,"".concat(J,"-icon"),!!q),r),H),re="number"===typeof Y?{width:Y,height:Y,lineHeight:"".concat(Y,"px"),fontSize:q?Y/2:18}:{};if("string"===typeof M&&P)$=i.createElement("img",{src:M,draggable:U,srcSet:F,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&z(!1)},alt:B,crossOrigin:X});else if(te)$=M;else if(q)$=q;else if(S||1!==x){var ae="scale(".concat(x,") translateX(-50%)"),ce={msTransform:ae,WebkitTransform:ae,transform:ae},ie="number"===typeof Y?{lineHeight:"".concat(Y,"px")}:{};$=i.createElement(p.default,{onResize:_},i.createElement("span",{className:"".concat(J,"-string"),ref:function(e){A.current=e},style:(0,o.Z)((0,o.Z)({},ie),ce)},W))}else $=i.createElement("span",{className:"".concat(J,"-string"),style:{opacity:0},ref:function(e){A.current=e}},W);return delete K.onError,delete K.gap,i.createElement("span",(0,o.Z)({},K,{style:(0,o.Z)((0,o.Z)((0,o.Z)({},re),V),K.style),className:ne,ref:N}),$)},Z=i.forwardRef(j);Z.displayName="Avatar",Z.defaultProps={shape:"circle",size:"default"};var S=Z,E=n(37419),C=n(96159),O=n(55241),P=function(e){var t=i.useContext(h.E_),n=t.getPrefixCls,r=t.direction,a=e.prefixCls,c=e.className,o=void 0===c?"":c,l=e.maxCount,u=e.maxStyle,d=e.size,p=n("avatar-group",a),m=f()(p,(0,s.Z)({},"".concat(p,"-rtl"),"rtl"===r),o),v=e.children,g=e.maxPopoverPlacement,y=void 0===g?"top":g,x=e.maxPopoverTrigger,k=void 0===x?"hover":x,b=(0,E.Z)(v).map((function(e,t){return(0,C.Tm)(e,{key:"avatar-key-".concat(t)})})),j=b.length;if(l&&le.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&"(".concat(n.length,")")]}),children:[(0,c.jsxs)("p",{children:["The following people are requesting to follow your Owncast server on the"," ",(0,c.jsx)("a",{href:"https://en.wikipedia.org/wiki/Fediverse",target:"_blank",rel:"noopener noreferrer",children:"Fediverse"})," ","and be alerted to when you go live. Each must be approved."]}),e(n,E)]},"2");return(0,c.jsx)("div",{className:"followers-section",children:(0,c.jsxs)(A.Z,{defaultActiveKey:"1",children:[(0,c.jsxs)(V,{tab:(0,c.jsxs)("span",{children:["Followers ",d.length>0&&"(".concat(d.length,")")]}),children:[(0,c.jsx)("p",{children:"The following accounts get notified when you go live or send a post."}),e(d,O)," "]},"1"),P,(0,c.jsxs)(V,{tab:(0,c.jsxs)("span",{children:["Blocked ",s.length>0&&"(".concat(s.length,")")]}),children:[(0,c.jsx)("p",{children:"The following people were either rejected or blocked by you. You can approve them as a follower."}),(0,c.jsx)("p",{children:e(s,C)})]},"3")]})})}}},function(e){e.O(0,[551,91,961,774,888,179],(function(){return t=1481,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/federation/followers-c470c6527a07b6bf.js b/static/admin/_next/static/chunks/pages/federation/followers-c470c6527a07b6bf.js new file mode 100644 index 000000000..ec5aa5b66 --- /dev/null +++ b/static/admin/_next/static/chunks/pages/federation/followers-c470c6527a07b6bf.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[480],{1481:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/federation/followers",function(){return n(38403)}])},38403:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return $}});var r=n(34051),a=n.n(r),c=n(85893),i=n(67294),o=n(87462),s=n(4942),l=n(71002),u=n(97685),d=n(94184),f=n.n(d),p=n(48555),m=n(17799),h=n(59844),v=n(11941),g=n(24308),y=n(25378),x=i.createContext("default"),w=function(e){var t=e.children,n=e.size;return i.createElement(x.Consumer,null,(function(e){return i.createElement(x.Provider,{value:n||e},t)}))},k=x,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a2),"Avatar","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(q,"` at https://ant.design/components/icon"));var $,J=I("avatar",D),ee=f()((n={},(0,s.Z)(n,"".concat(J,"-lg"),"large"===Y),(0,s.Z)(n,"".concat(J,"-sm"),"small"===Y),n)),te=i.isValidElement(M),ne=f()(J,ee,(r={},(0,s.Z)(r,"".concat(J,"-").concat(R),!!R),(0,s.Z)(r,"".concat(J,"-image"),te||M&&P),(0,s.Z)(r,"".concat(J,"-icon"),!!q),r),H),re="number"===typeof Y?{width:Y,height:Y,lineHeight:"".concat(Y,"px"),fontSize:q?Y/2:18}:{};if("string"===typeof M&&P)$=i.createElement("img",{src:M,draggable:U,srcSet:F,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&z(!1)},alt:B,crossOrigin:X});else if(te)$=M;else if(q)$=q;else if(S||1!==x){var ae="scale(".concat(x,") translateX(-50%)"),ce={msTransform:ae,WebkitTransform:ae,transform:ae},ie="number"===typeof Y?{lineHeight:"".concat(Y,"px")}:{};$=i.createElement(p.default,{onResize:_},i.createElement("span",{className:"".concat(J,"-string"),ref:function(e){A.current=e},style:(0,o.Z)((0,o.Z)({},ie),ce)},W))}else $=i.createElement("span",{className:"".concat(J,"-string"),style:{opacity:0},ref:function(e){A.current=e}},W);return delete K.onError,delete K.gap,i.createElement("span",(0,o.Z)({},K,{style:(0,o.Z)((0,o.Z)((0,o.Z)({},re),V),K.style),className:ne,ref:N}),$)},Z=i.forwardRef(j);Z.displayName="Avatar",Z.defaultProps={shape:"circle",size:"default"};var S=Z,E=n(37419),C=n(96159),O=n(55241),P=function(e){var t=i.useContext(h.E_),n=t.getPrefixCls,r=t.direction,a=e.prefixCls,c=e.className,o=void 0===c?"":c,l=e.maxCount,u=e.maxStyle,d=e.size,p=n("avatar-group",a),m=f()(p,(0,s.Z)({},"".concat(p,"-rtl"),"rtl"===r),o),v=e.children,g=e.maxPopoverPlacement,y=void 0===g?"top":g,x=e.maxPopoverTrigger,k=void 0===x?"hover":x,b=(0,E.Z)(v).map((function(e,t){return(0,C.Tm)(e,{key:"avatar-key-".concat(t)})})),j=b.length;if(l&&le.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&"(".concat(n.length,")")]}),children:[(0,c.jsxs)("p",{children:["The following people are requesting to follow your Owncast server on the"," ",(0,c.jsx)("a",{href:"https://en.wikipedia.org/wiki/Fediverse",target:"_blank",rel:"noopener noreferrer",children:"Fediverse"})," ","and be alerted to when you go live. Each must be approved."]}),e(n,E)]},"2");return(0,c.jsx)("div",{className:"followers-section",children:(0,c.jsxs)(A.Z,{defaultActiveKey:"1",children:[(0,c.jsxs)(V,{tab:(0,c.jsxs)("span",{children:["Followers ",d.length>0&&"(".concat(d.length,")")]}),children:[(0,c.jsx)("p",{children:"The following accounts get notified when you go live or send a post."}),e(d,O)," "]},"1"),P,(0,c.jsxs)(V,{tab:(0,c.jsxs)("span",{children:["Blocked ",s.length>0&&"(".concat(s.length,")")]}),children:[(0,c.jsx)("p",{children:"The following people were either rejected or blocked by you. You can approve them as a follower."}),(0,c.jsx)("p",{children:e(s,C)})]},"3")]})})}}},function(e){e.O(0,[962,91,961,774,888,179],(function(){return t=1481,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/index-897a1278e0c03ce5.js b/static/admin/_next/static/chunks/pages/index-897a1278e0c03ce5.js new file mode 100644 index 000000000..bc07d6f92 --- /dev/null +++ b/static/admin/_next/static/chunks/pages/index-897a1278e0c03ce5.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(94831)}])},824:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var r=t(85893),s=(t(67294),t(84916)),i=t(20550),a=t(17962),o=t(53731),l=t(58091),c=s.Z.Title;function d(e,n){var t="black";return"warning"===n.level?t="orange":"error"===n.level&&(t="red"),(0,r.jsx)(i.Z,{color:t,children:e})}function u(e){return(0,r.jsx)(o.Z,{children:e})}function m(e){var n=e.logs,t=e.pageSize;if(!(null===n||void 0===n?void 0:n.length))return null;var s=[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:function(e,n){return 0===n.level.indexOf(e)},render:d},{title:"Timestamp",dataIndex:"time",key:"time",render:function(e){var n=new Date(e);return(0,l.Z)(n,"pp P")},sorter:function(e,n){return new Date(e.time).getTime()-new Date(n.time).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Message",dataIndex:"message",key:"message",render:u}];return(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(c,{children:"Logs"}),(0,r.jsx)(a.Z,{size:"middle",dataSource:n,columns:s,rowKey:function(e){return e.time},pagination:{pageSize:t||20}})]})}},94831:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return V}});var r=t(34051),s=t.n(r),i=t(85893),a=t(67294),o=t(41080),l=t(74763),c=t(97751),d=t(25968),u=t(6226),m=t(24019),v=t(87547),f=t(26555),h=t(85533),x=t(35159),p=t(824),j=t(66567),g=t(63179),w=t(78346),b=t(27482),Z=t(84916),y=t(41664),k=t(92659),N=t(54907),S=t(58091),O=t(58827);function C(e,n,t,r,s,i,a){try{var o=e[i](a),l=o.value}catch(c){return void t(c)}o.done?n(l):Promise.resolve(l).then(r,s)}function _(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var P=N.Z.Panel,E=Z.Z.Title,D=Z.Z.Link;function T(e){var n=e.title,t=e.url,r=e.content_html,s=e.date_published,a=new Date(s),o=(0,S.Z)(a,"MMM dd, yyyy, HH:mm");return(0,i.jsx)("article",{children:(0,i.jsx)(N.Z,{children:(0,i.jsxs)(P,{header:n,children:[(0,i.jsxs)("p",{className:"timestamp",children:[o," (",(0,i.jsx)(D,{href:"".concat("https://owncast.online").concat(t),target:"_blank",rel:"noopener noreferrer",children:"Link"}),")"]}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})]},t)})})}function U(){var e=(0,a.useState)([]),n=e[0],t=e[1],r=(0,a.useState)(!0),l=r[0],c=r[1],d=function(){var e,n=(e=s().mark((function e(){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c(!1),e.prev=1,e.next=4,(0,O.kg)("https://owncast.online/news/index.json");case 4:(null===(n=e.sent)||void 0===n?void 0:n.items.length)>0&&t(n.items),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.log("==== error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})),function(){var n=this,t=arguments;return new Promise((function(r,s){var i=e.apply(n,t);function a(e){C(i,r,s,a,o,"next",e)}function o(e){C(i,r,s,a,o,"throw",e)}a(void 0)}))});return function(){return n.apply(this,arguments)}}();(0,a.useEffect)((function(){d()}),[]);var u=l?(0,i.jsx)(o.Z,{loading:!0,active:!0}):null,m=l||0!==n.length?null:(0,i.jsx)("div",{children:"No news."});return(0,i.jsxs)("section",{className:"news-feed form-module",children:[(0,i.jsx)(E,{level:2,children:"News & Updates from Owncast"}),u,n.map((function(e){return(0,a.createElement)(T,function(e){for(var n=1;n0&&t(n.items),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.log("==== error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})),function(){var n=this,t=arguments;return new Promise((function(r,s){var i=e.apply(n,t);function a(e){C(i,r,s,a,o,"next",e)}function o(e){C(i,r,s,a,o,"throw",e)}a(void 0)}))});return function(){return n.apply(this,arguments)}}();(0,a.useEffect)((function(){d()}),[]);var u=l?(0,i.jsx)(o.Z,{loading:!0,active:!0}):null,m=l||0!==n.length?null:(0,i.jsx)("div",{children:"No news."});return(0,i.jsxs)("section",{className:"news-feed form-module",children:[(0,i.jsx)(E,{level:2,children:"News & Updates from Owncast"}),u,n.map((function(e){return(0,a.createElement)(T,function(e){for(var n=1;n0&&d.push({name:r,color:a,data:u(t)}),s.forEach((function(e){d.push({name:e.name,data:u(e.data),color:e.color,dataset:e.options})}));var f={scales:{y:{reverse:!1,type:"linear"},x:{type:"time"}}};return f.scales.y.reverse=o,f.scales.y.type=l?"logarithmic":"linear",(0,n.jsx)("div",{className:"line-chart-container",children:(0,n.jsx)(c.wW,{xtitle:"Time",ytitle:r,suffix:i,legend:"bottom",color:a,data:d,download:r,library:f})})}s().use(a.Z),l.defaultProps={dataCollections:[],data:[],title:"",yFlipped:!1,yLogarithmic:!1}},34440:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(85893),a=r(84916),i=r(97910),s=r(74763),o=r(97751);function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){for(var t=1;t90?"red":o,u=(0,n.jsxs)("div",{children:[a,(0,n.jsx)("div",{children:(0,n.jsx)(l,{type:"secondary",children:t})}),(0,n.jsx)("div",{children:(0,n.jsxs)(l,{type:"secondary",children:[r,s||"%"]})})]});return(0,n.jsx)(i.Z,{type:"dashboard",percent:r,width:120,strokeColor:{"0%":o,"90%":c},format:function(){return u}})}function v(e){var t=e.title,r=e.value,a=e.prefix,i=e.formatter;return(0,n.jsx)(s.Z,{title:t,value:r,prefix:a,formatter:i})}function h(e){var t=e.progress?f:v,r=e.centered?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,n.jsx)(o.Z,{type:"inner",children:(0,n.jsx)("div",{style:r,children:(0,n.jsx)(t,u({},e))})})}f.defaultProps=d,v.defaultProps=d,h.defaultProps=d},51237:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return L}});var n=r(34051),a=r.n(n),i=r(85893),s=r(67294),o=r(68157),c=r(84916),u=r(25968),l=r(6226),d=r(38504),f=r(11382),v=r(14670),h=r(87547),x=r(80882),p=r(83946),m=r(19013),y=r(13882);function Z(e,t){(0,y.Z)(2,arguments);var r=(0,m.Z)(e),n=(0,p.Z)(t);return isNaN(n)?new Date(NaN):n?(r.setDate(r.getDate()+n),r):r}function w(e,t){(0,y.Z)(2,arguments);var r=(0,p.Z)(t);return Z(e,-r)}function g(e,t){(0,y.Z)(2,arguments);var r=(0,m.Z)(e),n=(0,p.Z)(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var s=i.getDate();return a>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}function j(e,t){(0,y.Z)(2,arguments);var r=(0,p.Z)(t);return g(e,-r)}function b(e,t){if((0,y.Z)(2,arguments),!t||"object"!==typeof t)return new Date(NaN);var r=t.years?(0,p.Z)(t.years):0,n=t.months?(0,p.Z)(t.months):0,a=t.weeks?(0,p.Z)(t.weeks):0,i=t.days?(0,p.Z)(t.days):0,s=t.hours?(0,p.Z)(t.hours):0,o=t.minutes?(0,p.Z)(t.minutes):0,c=t.seconds?(0,p.Z)(t.seconds):0,u=j(e,n+12*r),l=w(u,i+7*a),d=o+60*s,f=c+60*d,v=1e3*f,h=new Date(l.getTime()-v);return h}function D(e){(0,y.Z)(1,arguments);var t=(0,m.Z)(e),r=t.getTime();return r}function S(e){return(0,y.Z)(1,arguments),Math.floor(D(e)/1e3)}var k=r(89270),N=r(34440),C=r(6551),P=r(85533),O=r(2766);function _(e){var t=e.data,r=[{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,O.AB)(e)}},{title:"Location",dataIndex:"geo",key:"geo",render:function(e){return e?"".concat(e.regionName,", ").concat(e.countryCode):"-"}},{title:"Watch Time",dataIndex:"firstSeen",key:"firstSeen",defaultSortOrder:"ascend",render:function(e){return(0,P.Z)(new Date(e))},sorter:function(e,t){return new Date(e.firstSeen).getTime()-new Date(t.firstSeen).getTime()},sortDirections:["descend","ascend"]}];return(0,i.jsx)(C.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:r,dataSource:t,size:"small",rowKey:"id"})}var E=r(35159),T=r(58827);function I(e,t,r,n,a,i,s){try{var o=e[i](s),c=o.value}catch(u){return void r(u)}o.done?t(c):Promise.resolve(c).then(n,a)}function L(){var e,t=(0,s.useContext)(E.aC)||{},r=t.online,n=t.broadcaster,p=t.viewerCount,m=t.overallPeakViewerCount,y=t.sessionPeakViewerCount;n&&n.time&&(e=new Date(n.time));var Z=[{title:"Current stream",start:e},{title:"Last 12 hours",start:b(new Date,{hours:12})},{title:"Last 24 hours",start:b(new Date,{hours:24})},{title:"Last 7 days",start:b(new Date,{days:7})},{title:"Last 30 days",start:b(new Date,{days:30})},{title:"Last 3 months",start:b(new Date,{months:3})},{title:"Last 6 months",start:b(new Date,{months:6})}],w=(0,s.useState)(!0),g=w[0],j=w[1],D=(0,s.useState)([]),C=D[0],P=D[1],O=(0,s.useState)([]),L=O[0],M=O[1],A=(0,s.useState)(Z[1]),F=A[0],V=A[1],z=function(){var e,t=(e=a().mark((function e(){var t,r,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t="".concat(T.iV,"?windowStart=").concat(S(F.start)),e.next=4,(0,T.rQ)(t);case 4:r=e.sent,P(r),j(!1),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log("==== error",e.t0);case 12:return e.prev=12,e.next=15,(0,T.rQ)(T.a_);case 15:n=e.sent,M(n),e.next=22;break;case 19:e.prev=19,e.t1=e.catch(12),console.log("==== error",e.t1);case 22:case"end":return e.stop()}}),e,null,[[0,9],[12,19]])})),function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){I(i,n,a,s,o,"next",e)}function o(e){I(i,n,a,s,o,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}();(0,s.useEffect)((function(){var e=null;return z(),r?(e=setInterval(z,6e4),function(){clearInterval(e)}):function(){return[]}}),[r,F]);var B=function(e){var t=e.key;V(Z[t])},Q=(0,i.jsxs)(o.Z,{children:[r&&e&&(0,i.jsx)(o.Z.Item,{onClick:B,children:Z[0].title},"0"),Z.slice(1).map((function(e,t){return(0,i.jsx)(o.Z.Item,{onClick:B,children:e.title},t+1)}))]});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z.Title,{children:"Viewer Info"}),(0,i.jsx)("br",{}),(0,i.jsxs)(u.Z,{gutter:[16,16],justify:"space-around",children:[r&&(0,i.jsx)(l.Z,{span:8,md:8,children:(0,i.jsx)(N.Z,{title:"Current viewers",value:p.toString(),prefix:(0,i.jsx)(h.Z,{})})}),(0,i.jsx)(l.Z,{md:r?8:12,children:(0,i.jsx)(N.Z,{title:r?"Max viewers this session":"Max viewers last session",value:y.toString(),prefix:(0,i.jsx)(h.Z,{})})}),(0,i.jsx)(l.Z,{md:r?8:12,children:(0,i.jsx)(N.Z,{title:"All-time max viewers",value:m.toString(),prefix:(0,i.jsx)(h.Z,{})})})]}),(0,i.jsx)(d.Z,{overlay:Q,trigger:["click"],children:(0,i.jsxs)("button",{type:"button",style:{float:"right",background:"transparent",border:"unset"},children:[F.title," ",(0,i.jsx)(x.Z,{})]})}),C.length>0&&(0,i.jsx)(k.Z,{title:"Viewers",data:C,color:"#2087E2",unit:"viewers"}),(0,i.jsx)(_,{data:L}),(0,i.jsx)(f.Z,{spinning:g,children:0===C.length&&(0,i.jsx)(v.Z,{banner:!0,message:"Please wait",description:"No viewer data has been collected yet.",type:"info"})})]})}}},function(e){e.O(0,[570,551,91,961,751,763,533,80,910,774,888,179],(function(){return t=31709,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[194],{87547:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),a=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},s=r(42922),o=function(e,t){return a.createElement(s.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};o.displayName="UserOutlined";var c=a.forwardRef(o)},31709:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/viewer-info",function(){return r(51237)}])},89270:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(85893),a=r(31877),i=r(92616),s=r.n(i),o=r(58091),c=r(60727);function u(e){var t={};return e.forEach((function(e){var r=new Date(e.time),n=(0,o.Z)(r,"H:mma");t[n]=e.value})),t}function l(e){var t=e.data,r=e.title,a=e.color,i=e.unit,s=e.dataCollections,o=e.yFlipped,l=e.yLogarithmic,d=[];t&&t.length>0&&d.push({name:r,color:a,data:u(t)}),s.forEach((function(e){d.push({name:e.name,data:u(e.data),color:e.color,dataset:e.options})}));var f={scales:{y:{reverse:!1,type:"linear"},x:{type:"time"}}};return f.scales.y.reverse=o,f.scales.y.type=l?"logarithmic":"linear",(0,n.jsx)("div",{className:"line-chart-container",children:(0,n.jsx)(c.wW,{xtitle:"Time",ytitle:r,suffix:i,legend:"bottom",color:a,data:d,download:r,library:f})})}s().use(a.Z),l.defaultProps={dataCollections:[],data:[],title:"",yFlipped:!1,yLogarithmic:!1}},34440:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(85893),a=r(84916),i=r(97910),s=r(74763),o=r(97751);function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){for(var t=1;t90?"red":o,u=(0,n.jsxs)("div",{children:[a,(0,n.jsx)("div",{children:(0,n.jsx)(l,{type:"secondary",children:t})}),(0,n.jsx)("div",{children:(0,n.jsxs)(l,{type:"secondary",children:[r,s||"%"]})})]});return(0,n.jsx)(i.Z,{type:"dashboard",percent:r,width:120,strokeColor:{"0%":o,"90%":c},format:function(){return u}})}function v(e){var t=e.title,r=e.value,a=e.prefix,i=e.formatter;return(0,n.jsx)(s.Z,{title:t,value:r,prefix:a,formatter:i})}function h(e){var t=e.progress?f:v,r=e.centered?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,n.jsx)(o.Z,{type:"inner",children:(0,n.jsx)("div",{style:r,children:(0,n.jsx)(t,u({},e))})})}f.defaultProps=d,v.defaultProps=d,h.defaultProps=d},51237:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return L}});var n=r(34051),a=r.n(n),i=r(85893),s=r(67294),o=r(68157),c=r(84916),u=r(25968),l=r(6226),d=r(38504),f=r(11382),v=r(14670),h=r(87547),x=r(80882),p=r(83946),m=r(19013),y=r(13882);function Z(e,t){(0,y.Z)(2,arguments);var r=(0,m.Z)(e),n=(0,p.Z)(t);return isNaN(n)?new Date(NaN):n?(r.setDate(r.getDate()+n),r):r}function w(e,t){(0,y.Z)(2,arguments);var r=(0,p.Z)(t);return Z(e,-r)}function g(e,t){(0,y.Z)(2,arguments);var r=(0,m.Z)(e),n=(0,p.Z)(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var s=i.getDate();return a>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}function j(e,t){(0,y.Z)(2,arguments);var r=(0,p.Z)(t);return g(e,-r)}function b(e,t){if((0,y.Z)(2,arguments),!t||"object"!==typeof t)return new Date(NaN);var r=t.years?(0,p.Z)(t.years):0,n=t.months?(0,p.Z)(t.months):0,a=t.weeks?(0,p.Z)(t.weeks):0,i=t.days?(0,p.Z)(t.days):0,s=t.hours?(0,p.Z)(t.hours):0,o=t.minutes?(0,p.Z)(t.minutes):0,c=t.seconds?(0,p.Z)(t.seconds):0,u=j(e,n+12*r),l=w(u,i+7*a),d=o+60*s,f=c+60*d,v=1e3*f,h=new Date(l.getTime()-v);return h}function D(e){(0,y.Z)(1,arguments);var t=(0,m.Z)(e),r=t.getTime();return r}function S(e){return(0,y.Z)(1,arguments),Math.floor(D(e)/1e3)}var k=r(89270),N=r(34440),C=r(17962),P=r(85533),O=r(2766);function _(e){var t=e.data,r=[{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,O.AB)(e)}},{title:"Location",dataIndex:"geo",key:"geo",render:function(e){return e?"".concat(e.regionName,", ").concat(e.countryCode):"-"}},{title:"Watch Time",dataIndex:"firstSeen",key:"firstSeen",defaultSortOrder:"ascend",render:function(e){return(0,P.Z)(new Date(e))},sorter:function(e,t){return new Date(e.firstSeen).getTime()-new Date(t.firstSeen).getTime()},sortDirections:["descend","ascend"]}];return(0,i.jsx)(C.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:r,dataSource:t,size:"small",rowKey:"id"})}var E=r(35159),T=r(58827);function I(e,t,r,n,a,i,s){try{var o=e[i](s),c=o.value}catch(u){return void r(u)}o.done?t(c):Promise.resolve(c).then(n,a)}function L(){var e,t=(0,s.useContext)(E.aC)||{},r=t.online,n=t.broadcaster,p=t.viewerCount,m=t.overallPeakViewerCount,y=t.sessionPeakViewerCount;n&&n.time&&(e=new Date(n.time));var Z=[{title:"Current stream",start:e},{title:"Last 12 hours",start:b(new Date,{hours:12})},{title:"Last 24 hours",start:b(new Date,{hours:24})},{title:"Last 7 days",start:b(new Date,{days:7})},{title:"Last 30 days",start:b(new Date,{days:30})},{title:"Last 3 months",start:b(new Date,{months:3})},{title:"Last 6 months",start:b(new Date,{months:6})}],w=(0,s.useState)(!0),g=w[0],j=w[1],D=(0,s.useState)([]),C=D[0],P=D[1],O=(0,s.useState)([]),L=O[0],M=O[1],A=(0,s.useState)(Z[1]),F=A[0],V=A[1],z=function(){var e,t=(e=a().mark((function e(){var t,r,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t="".concat(T.iV,"?windowStart=").concat(S(F.start)),e.next=4,(0,T.rQ)(t);case 4:r=e.sent,P(r),j(!1),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log("==== error",e.t0);case 12:return e.prev=12,e.next=15,(0,T.rQ)(T.a_);case 15:n=e.sent,M(n),e.next=22;break;case 19:e.prev=19,e.t1=e.catch(12),console.log("==== error",e.t1);case 22:case"end":return e.stop()}}),e,null,[[0,9],[12,19]])})),function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){I(i,n,a,s,o,"next",e)}function o(e){I(i,n,a,s,o,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}();(0,s.useEffect)((function(){var e=null;return z(),r?(e=setInterval(z,6e4),function(){clearInterval(e)}):function(){return[]}}),[r,F]);var B=function(e){var t=e.key;V(Z[t])},Q=(0,i.jsxs)(o.Z,{children:[r&&e&&(0,i.jsx)(o.Z.Item,{onClick:B,children:Z[0].title},"0"),Z.slice(1).map((function(e,t){return(0,i.jsx)(o.Z.Item,{onClick:B,children:e.title},t+1)}))]});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z.Title,{children:"Viewer Info"}),(0,i.jsx)("br",{}),(0,i.jsxs)(u.Z,{gutter:[16,16],justify:"space-around",children:[r&&(0,i.jsx)(l.Z,{span:8,md:8,children:(0,i.jsx)(N.Z,{title:"Current viewers",value:p.toString(),prefix:(0,i.jsx)(h.Z,{})})}),(0,i.jsx)(l.Z,{md:r?8:12,children:(0,i.jsx)(N.Z,{title:r?"Max viewers this session":"Max viewers last session",value:y.toString(),prefix:(0,i.jsx)(h.Z,{})})}),(0,i.jsx)(l.Z,{md:r?8:12,children:(0,i.jsx)(N.Z,{title:"All-time max viewers",value:m.toString(),prefix:(0,i.jsx)(h.Z,{})})})]}),(0,i.jsx)(d.Z,{overlay:Q,trigger:["click"],children:(0,i.jsxs)("button",{type:"button",style:{float:"right",background:"transparent",border:"unset"},children:[F.title," ",(0,i.jsx)(x.Z,{})]})}),C.length>0&&(0,i.jsx)(k.Z,{title:"Viewers",data:C,color:"#2087E2",unit:"viewers"}),(0,i.jsx)(_,{data:L}),(0,i.jsx)(f.Z,{spinning:g,children:0===C.length&&(0,i.jsx)(v.Z,{banner:!0,message:"Please wait",description:"No viewer data has been collected yet.",type:"info"})})]})}}},function(e){e.O(0,[570,962,91,961,751,763,533,80,910,774,888,179],(function(){return t=31709,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/admin/_next/static/chunks/pages/webhooks-147eacbf99197b5b.js b/static/admin/_next/static/chunks/pages/webhooks-a736f2d3f9c0e432.js similarity index 63% rename from static/admin/_next/static/chunks/pages/webhooks-147eacbf99197b5b.js rename to static/admin/_next/static/chunks/pages/webhooks-a736f2d3f9c0e432.js index d171b0856..3d8653fa5 100644 --- a/static/admin/_next/static/chunks/pages/webhooks-147eacbf99197b5b.js +++ b/static/admin/_next/static/chunks/pages/webhooks-a736f2d3f9c0e432.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[462],{48689:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},a=n(42922),i=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:c}))};i.displayName="DeleteOutlined";var s=o.forwardRef(i)},6226:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(4942),o=n(87462),c=n(71002),a=n(67294),i=n(94184),s=n.n(i),l=n(99134),u=n(59844),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0){var R=m[0]/2;A.paddingLeft=R,A.paddingRight=R}if(m&&m[1]>0&&!y){var I=m[1]/2;A.paddingTop=I,A.paddingBottom=I}return E&&(A.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(E),!1!==b||A.minWidth||(A.minWidth=0)),a.createElement("div",(0,o.Z)({},N,{style:(0,o.Z)((0,o.Z)({},A),P),className:T,ref:t}),C)}));d.displayName="Col";var h=d},99134:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},25968:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(87462),o=n(4942),c=n(71002),a=n(97685),i=n(67294),s=n(94184),l=n.n(s),u=n(59844),f=n(99134),p=n(93355),d=n(24308),h=n(98082),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?R[0]/-2:void 0,G=R[1]>0?R[1]/-2:void 0;if(M&&(W.marginLeft=M,W.marginRight=M),_){var H=(0,a.Z)(R,2);W.rowGap=H[1]}else G&&(W.marginTop=G,W.marginBottom=G);var B=(0,a.Z)(R,2),D=B[0],U=B[1],z=i.useMemo((function(){return{gutter:[D,U],wrap:w,supportFlexGap:_}}),[D,U,w,_]);return i.createElement(f.Z.Provider,{value:z},i.createElement("div",(0,r.Z)({},j,{className:I,style:(0,r.Z)((0,r.Z)({},W),y),ref:t}),x))})));m.displayName="Row";var b=m},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(4942),o=n(87462),c=n(97685),a=n(67294),i=n(94184),s=n.n(i),l=n(10366),u=n(97937),f=n(59844),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0){var R=m[0]/2;A.paddingLeft=R,A.paddingRight=R}if(m&&m[1]>0&&!y){var I=m[1]/2;A.paddingTop=I,A.paddingBottom=I}return E&&(A.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(E),!1!==b||A.minWidth||(A.minWidth=0)),a.createElement("div",(0,o.Z)({},N,{style:(0,o.Z)((0,o.Z)({},A),P),className:T,ref:t}),C)}));d.displayName="Col";var h=d},99134:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},25968:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(87462),o=n(4942),c=n(71002),a=n(97685),i=n(67294),s=n(94184),l=n.n(s),u=n(59844),f=n(99134),p=n(93355),d=n(24308),h=n(98082),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?R[0]/-2:void 0,G=R[1]>0?R[1]/-2:void 0;if(M&&(W.marginLeft=M,W.marginRight=M),_){var H=(0,a.Z)(R,2);W.rowGap=H[1]}else G&&(W.marginTop=G,W.marginBottom=G);var B=(0,a.Z)(R,2),D=B[0],U=B[1],z=i.useMemo((function(){return{gutter:[D,U],wrap:w,supportFlexGap:_}}),[D,U,w,_]);return i.createElement(f.Z.Provider,{value:z},i.createElement("div",(0,r.Z)({},j,{className:I,style:(0,r.Z)((0,r.Z)({},W),y),ref:t}),x))})));m.displayName="Row";var b=m},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(4942),o=n(87462),c=n(97685),a=n(67294),i=n(94184),s=n.n(i),l=n(10366),u=n(97937),f=n(59844),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oOwncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file diff --git a/static/admin/actions/index.html b/static/admin/actions/index.html index 935f7e028..f29ae7ba9 100644 --- a/static/admin/actions/index.html +++ b/static/admin/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file diff --git a/static/admin/chat/messages/index.html b/static/admin/chat/messages/index.html index afd5bcf9c..5968ee79f 100644 --- a/static/admin/chat/messages/index.html +++ b/static/admin/chat/messages/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file diff --git a/static/admin/chat/users/index.html b/static/admin/chat/users/index.html index 4d3ec8acb..810f710ab 100644 --- a/static/admin/chat/users/index.html +++ b/static/admin/chat/users/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file diff --git a/static/admin/config-chat/index.html b/static/admin/config-chat/index.html index e133fd47e..6eafcb946 100644 --- a/static/admin/config-chat/index.html +++ b/static/admin/config-chat/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/admin/config-federation/index.html b/static/admin/config-federation/index.html index 6cd4d3ba2..680c17e07 100644 --- a/static/admin/config-federation/index.html +++ b/static/admin/config-federation/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/admin/config-public-details/index.html b/static/admin/config-public-details/index.html index e7e9493f1..e00145f3c 100644 --- a/static/admin/config-public-details/index.html +++ b/static/admin/config-public-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file diff --git a/static/admin/config-server-details/index.html b/static/admin/config-server-details/index.html index 132251e30..82e4d8eaf 100644 --- a/static/admin/config-server-details/index.html +++ b/static/admin/config-server-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file diff --git a/static/admin/config-social-items/index.html b/static/admin/config-social-items/index.html index b23b53834..ce48892a7 100644 --- a/static/admin/config-social-items/index.html +++ b/static/admin/config-social-items/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file diff --git a/static/admin/config-storage/index.html b/static/admin/config-storage/index.html index 23ff7f2bf..c6e943239 100644 --- a/static/admin/config-storage/index.html +++ b/static/admin/config-storage/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file diff --git a/static/admin/config-video/index.html b/static/admin/config-video/index.html index 99e62a7ce..33fdea670 100644 --- a/static/admin/config-video/index.html +++ b/static/admin/config-video/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file diff --git a/static/admin/federation/actions/index.html b/static/admin/federation/actions/index.html index 543d558a9..d16eae5fe 100644 --- a/static/admin/federation/actions/index.html +++ b/static/admin/federation/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file diff --git a/static/admin/federation/followers/index.html b/static/admin/federation/followers/index.html index c88961d99..1900d43f8 100644 --- a/static/admin/federation/followers/index.html +++ b/static/admin/federation/followers/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file diff --git a/static/admin/hardware-info/index.html b/static/admin/hardware-info/index.html index 29bcadaf4..c2ff783c3 100644 --- a/static/admin/hardware-info/index.html +++ b/static/admin/hardware-info/index.html @@ -1,4 +1,4 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


Disk
0%
Loading...
\ No newline at end of file + a 47,47 0 1 1 0,94" stroke="" stroke-linecap="round" stroke-width="6" opacity="0" fill-opacity="0" style="stroke:#52C41A;stroke-dasharray:0px 295.3097094374406px;stroke-dashoffset:-37.5px;transition:stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s">
Disk
0%
Loading...
\ No newline at end of file diff --git a/static/admin/help/index.html b/static/admin/help/index.html index 651aa31e3..d0e31ac74 100644 --- a/static/admin/help/index.html +++ b/static/admin/help/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file diff --git a/static/admin/index.html b/static/admin/index.html index 030922e26..a42b50d0b 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file diff --git a/static/admin/logs/index.html b/static/admin/logs/index.html index 43442279e..280f573c5 100644 --- a/static/admin/logs/index.html +++ b/static/admin/logs/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/admin/stream-health/index.html b/static/admin/stream-health/index.html index a32b91d5d..0edf9e015 100644 --- a/static/admin/stream-health/index.html +++ b/static/admin/stream-health/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

Data has not yet been collected. Once a stream has begun and viewers are watching this page will be available.
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

Data has not yet been collected. Once a stream has begun and viewers are watching this page will be available.
\ No newline at end of file diff --git a/static/admin/upgrade/index.html b/static/admin/upgrade/index.html index d06b7250b..4ae387f98 100644 --- a/static/admin/upgrade/index.html +++ b/static/admin/upgrade/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file diff --git a/static/admin/viewer-info/index.html b/static/admin/viewer-info/index.html index 80cfc941f..0d840eb2d 100644 --- a/static/admin/viewer-info/index.html +++ b/static/admin/viewer-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last session
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last session
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file diff --git a/static/admin/webhooks/index.html b/static/admin/webhooks/index.html index dfb7506cb..996139bfe 100644 --- a/static/admin/webhooks/index.html +++ b/static/admin/webhooks/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file