owncast/static/web/_next/static/chunks/8465-8fa0e08d5a9b953d.js
2023-11-25 12:51:44 +00:00

1 line
No EOL
35 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8465,7949],{93003:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={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"}},25079:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"}},10560:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"}},50554:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"}},98907:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"}},77949:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=_interopRequireDefault(r(19702));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default=n,e.exports=n},75720:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=_interopRequireDefault(r(30744));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default=n,e.exports=n},51736:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=_interopRequireDefault(r(15839));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default=n,e.exports=n},20006:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=_interopRequireDefault(r(3332));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default=n,e.exports=n},94086:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=_interopRequireDefault(r(70970));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default=n,e.exports=n},19702:function(e,t,r){var n=r(64836),a=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(42122)),l=_interopRequireWildcard(r(67294)),i=n(r(93003)),c=n(r(92074));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=o?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(n,l,i):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n}var DeleteOutlined=function(e,t){return l.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};DeleteOutlined.displayName="DeleteOutlined";var u=l.forwardRef(DeleteOutlined);t.default=u},30744:function(e,t,r){var n=r(64836),a=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(42122)),l=_interopRequireWildcard(r(67294)),i=n(r(25079)),c=n(r(92074));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=o?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(n,l,i):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n}var DownloadOutlined=function(e,t){return l.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};DownloadOutlined.displayName="DownloadOutlined";var u=l.forwardRef(DownloadOutlined);t.default=u},15839:function(e,t,r){var n=r(64836),a=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(42122)),l=_interopRequireWildcard(r(67294)),i=n(r(10560)),c=n(r(92074));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=o?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(n,l,i):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n}var FileTwoTone=function(e,t){return l.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};FileTwoTone.displayName="FileTwoTone";var u=l.forwardRef(FileTwoTone);t.default=u},3332:function(e,t,r){var n=r(64836),a=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(42122)),l=_interopRequireWildcard(r(67294)),i=n(r(50554)),c=n(r(92074));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=o?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(n,l,i):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n}var PaperClipOutlined=function(e,t){return l.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};PaperClipOutlined.displayName="PaperClipOutlined";var u=l.forwardRef(PaperClipOutlined);t.default=u},70970:function(e,t,r){var n=r(64836),a=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(42122)),l=_interopRequireWildcard(r(67294)),i=n(r(98907)),c=n(r(92074));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=o?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(n,l,i):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n}var PictureTwoTone=function(e,t){return l.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};PictureTwoTone.displayName="PictureTwoTone";var u=l.forwardRef(PictureTwoTone);t.default=u},37182:function(e,t,r){var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(38416)),l=r(92138),i=a(r(94184)),c=r(34744),u=n(r(67294)),d=r(4087);function getPercentage(e){var t=e.percent,r=e.success,n=e.successPercent,a=(0,d.validProgress)((0,d.getSuccessPercent)({success:r,successPercent:n}));return[a,(0,d.validProgress)((0,d.validProgress)(t)-a)]}function getStrokeColor(e){var t=e.success,r=e.strokeColor;return[(void 0===t?{}:t).strokeColor||l.presetPrimaryColors.green,r||null]}t.default=function(e){var t=e.prefixCls,r=e.width,n=e.strokeWidth,a=e.trailColor,l=e.strokeLinecap,d=e.gapPosition,s=e.gapDegree,f=e.type,p=e.children,v=e.success,m=r||120,g=n||6,h="[object Object]"===Object.prototype.toString.call(e.strokeColor),y=getStrokeColor({success:v,strokeColor:e.strokeColor}),b=(0,i.default)("".concat(t,"-inner"),(0,o.default)({},"".concat(t,"-circle-gradient"),h));return u.createElement("div",{className:b,style:{width:m,height:m,fontSize:.15*m+6}},u.createElement(c.Circle,{percent:getPercentage(e),strokeWidth:g,trailWidth:g,strokeColor:y,strokeLinecap:void 0===l?"round":l,trailColor:void 0===a?null:a,prefixCls:t,gapDegree:s||0===s?s:"dashboard"===f?75:void 0,gapPosition:d||"dashboard"===f&&"bottom"||void 0}),p)}},2384:function(e,t,r){var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.sortGradient=t.handleGradient=t.default=void 0;var o=a(r(10434)),l=r(92138),i=n(r(67294)),c=r(4087),__rest=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},u=t.sortGradient=function(e){var t=[];return Object.keys(e).forEach(function(r){var n=parseFloat(r.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[r]})}),(t=t.sort(function(e,t){return e.key-t.key})).map(function(e){var t=e.key,r=e.value;return"".concat(r," ").concat(t,"%")}).join(", ")},d=t.handleGradient=function(e,t){var r=e.from,n=void 0===r?l.presetPrimaryColors.blue:r,a=e.to,o=void 0===a?l.presetPrimaryColors.blue:a,i=e.direction,c=void 0===i?"rtl"===t?"to left":"to right":i,d=__rest(e,["from","to","direction"]);if(0!==Object.keys(d).length){var s=u(d);return{backgroundImage:"linear-gradient(".concat(c,", ").concat(s,")")}}return{backgroundImage:"linear-gradient(".concat(c,", ").concat(n,", ").concat(o,")")}};t.default=function(e){var t=e.prefixCls,r=e.direction,n=e.percent,a=e.strokeWidth,l=e.size,u=e.strokeColor,s=e.strokeLinecap,f=void 0===s?"round":s,p=e.children,v=e.trailColor,m=e.success,g=u&&"string"!=typeof u?d(u,r):{background:u},h="square"===f||"butt"===f?0:void 0,y=(0,o.default)({width:"".concat((0,c.validProgress)(n),"%"),height:a||("small"===l?6:8),borderRadius:h},g),b=(0,c.getSuccessPercent)(e),w={width:"".concat((0,c.validProgress)(b),"%"),height:a||("small"===l?6:8),borderRadius:h,backgroundColor:null==m?void 0:m.strokeColor},_=void 0!==b?i.createElement("div",{className:"".concat(t,"-success-bg"),style:w}):null;return i.createElement(i.Fragment,null,i.createElement("div",{className:"".concat(t,"-outer")},i.createElement("div",{className:"".concat(t,"-inner"),style:{backgroundColor:(void 0===v?null:v)||void 0,borderRadius:h}},i.createElement("div",{className:"".concat(t,"-bg"),style:y}),_)),p)}},44428:function(e,t,r){var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(38416)),l=a(r(94184)),i=n(r(67294));t.default=function(e){for(var t=e.size,r=e.steps,n=e.percent,a=e.strokeWidth,c=void 0===a?8:a,u=e.strokeColor,d=e.trailColor,s=void 0===d?null:d,f=e.prefixCls,p=e.children,v=Math.round(r*((void 0===n?0:n)/100)),m="small"===t?2:14,g=Array(r),h=0;h<r;h++){var y=Array.isArray(u)?u[h]:u;g[h]=i.createElement("div",{key:h,className:(0,l.default)("".concat(f,"-steps-item"),(0,o.default)({},"".concat(f,"-steps-item-active"),h<=v-1)),style:{backgroundColor:h<=v-1?y:s,width:m,height:c}})}return i.createElement("div",{className:"".concat(f,"-steps-outer")},g,p)}},74806:function(e,t,r){var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(7325));t.default=a.default},7325:function(e,t,r){var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(38416)),l=a(r(10434)),i=a(r(37431)),c=a(r(71961)),u=a(r(42547)),d=a(r(40753)),s=a(r(94184)),f=a(r(18475)),p=n(r(67294)),v=r(31929),m=r(66764);a(r(13594));var g=a(r(37182)),h=a(r(2384)),y=a(r(44428)),b=r(4087),__rest=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};(0,m.tuple)("line","circle","dashboard");var w=(0,m.tuple)("normal","exception","active","success");t.default=function(e){var t,r=e.prefixCls,n=e.className,a=e.steps,m=e.strokeColor,_=e.percent,O=void 0===_?0:_,P=e.size,C=void 0===P?"default":P,E=e.showInfo,I=void 0===E||E,j=e.type,R=void 0===j?"line":j,k=__rest(e,["prefixCls","className","steps","strokeColor","percent","size","showInfo","type"]);function getPercentNumber(){var t=(0,b.getSuccessPercent)(e);return parseInt(void 0!==t?t.toString():O.toString(),10)}function getProgressStatus(){var t=e.status;return!w.includes(t)&&getPercentNumber()>=100?"success":t||"normal"}function renderProcessInfo(t,r){var n,a=e.format,o=(0,b.getSuccessPercent)(e);if(!I)return null;var l="line"===R;return a||"exception"!==r&&"success"!==r?n=(a||function(e){return"".concat(e,"%")})((0,b.validProgress)(O),(0,b.validProgress)(o)):"exception"===r?n=l?p.createElement(u.default,null):p.createElement(d.default,null):"success"===r&&(n=l?p.createElement(i.default,null):p.createElement(c.default,null)),p.createElement("span",{className:"".concat(t,"-text"),title:"string"==typeof n?n:void 0},n)}var x=p.useContext(v.ConfigContext),M=x.getPrefixCls,D=x.direction,N=M("progress",r),F=getProgressStatus(),S=renderProcessInfo(N,F),W=Array.isArray(m)?m[0]:m,L="string"==typeof m||Array.isArray(m)?m:void 0;"line"===R?t=a?p.createElement(y.default,(0,l.default)({},e,{strokeColor:L,prefixCls:N,steps:a}),S):p.createElement(h.default,(0,l.default)({},e,{strokeColor:W,prefixCls:N,direction:D}),S):("circle"===R||"dashboard"===R)&&(t=p.createElement(g.default,(0,l.default)({},e,{strokeColor:W,prefixCls:N,progressStatus:F}),S));var q=(0,s.default)(N,(0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)({},"".concat(N,"-").concat("dashboard"===R&&"circle"||a&&"steps"||R),!0),"".concat(N,"-status-").concat(F),!0),"".concat(N,"-show-info"),I),"".concat(N,"-").concat(C),C),"".concat(N,"-rtl"),"rtl"===D),n);return p.createElement("div",(0,l.default)({},(0,f.default)(k,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"]),{className:q,role:"progressbar"}),t)}},4087:function(e,t,r){var n=r(64836).default;function validProgress(e){return!e||e<0?0:e>100?100:e}function getSuccessPercent(e){var t=e.success,r=e.successPercent;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}Object.defineProperty(t,"__esModule",{value:!0}),t.getSuccessPercent=getSuccessPercent,t.validProgress=validProgress,n(r(13594))},58602:function(e,t,r){var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(10434)),l=n(r(67294)),i=a(r(38411)),__rest=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},c=l.forwardRef(function(e,t){var r=e.style,n=e.height,a=__rest(e,["style","height"]);return l.createElement(i.default,(0,o.default)({ref:t},a,{type:"drag",style:(0,o.default)((0,o.default)({},r),{height:n})}))});t.default=c},38411:function(e,t,r){var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LIST_IGNORE=void 0;var o=a(r(38416)),l=a(r(10434)),i=a(r(17061)),c=a(r(18698)),u=a(r(861)),d=a(r(27424)),s=a(r(94184)),f=a(r(36356)),p=a(r(60869)),v=n(r(67294)),m=r(73935);a(r(13594));var g=r(31929),h=a(r(93319)),y=a(r(73625)),b=a(r(56350)),w=a(r(32799)),_=r(50362),__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n.throw(e))}catch(e){a(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},O=t.LIST_IGNORE="__LIST_IGNORE_".concat(Date.now(),"__"),P=v.forwardRef(function(e,t){var r,n=e.fileList,a=e.defaultFileList,P=e.onRemove,C=e.showUploadList,E=void 0===C||C,I=e.listType,j=void 0===I?"text":I,R=e.onPreview,k=e.onDownload,x=e.onChange,M=e.onDrop,D=e.previewFile,N=e.disabled,F=e.locale,S=e.iconRender,W=e.isImageUrl,L=e.progress,q=e.prefixCls,T=e.className,U=e.type,z=e.children,A=e.style,V=e.itemRender,H=e.maxCount,B=e.data,G=e.multiple,J=e.action,Z=e.accept,$=e.supportServerRender,K=v.useContext(h.default),Q=null!=N?N:K,X=(0,p.default)(a||[],{value:n,postState:function(e){return null!=e?e:[]}}),Y=(0,d.default)(X,2),ee=Y[0],et=Y[1],er=v.useState("drop"),en=(0,d.default)(er,2),ea=en[0],eo=en[1],el=v.useRef(null);v.useMemo(function(){var e=Date.now();(n||[]).forEach(function(t,r){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(r,"__"))})},[n]);var onInternalChange=function(e,t,r){var n=(0,u.default)(t);1===H?n=n.slice(-1):H&&(n=n.slice(0,H)),(0,m.flushSync)(function(){et(n)});var a={file:e,fileList:n};r&&(a.event=r),(0,m.flushSync)(function(){null==x||x(a)})},onBatchStart=function(e){var t=e.filter(function(e){return!e.file[O]});if(t.length){var r=t.map(function(e){return(0,_.file2Obj)(e.file)}),n=(0,u.default)(ee);r.forEach(function(e){n=(0,_.updateFileList)(e,n)}),r.forEach(function(e,r){var a=e;if(t[r].parsedFile)e.status="uploading";else{var o,l=e.originFileObj;try{o=new File([l],l.name,{type:l.type})}catch(e){(o=new Blob([l],{type:l.type})).name=l.name,o.lastModifiedDate=new Date,o.lastModified=new Date().getTime()}o.uid=e.uid,a=o}onInternalChange(a,n)})}},onSuccess=function(e,t,r){try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if((0,_.getFileItem)(t,ee)){var n=(0,_.file2Obj)(t);n.status="done",n.percent=100,n.response=e,n.xhr=r;var a=(0,_.updateFileList)(n,ee);onInternalChange(n,a)}},onProgress=function(e,t){if((0,_.getFileItem)(t,ee)){var r=(0,_.file2Obj)(t);r.status="uploading",r.percent=e.percent;var n=(0,_.updateFileList)(r,ee);onInternalChange(r,n,e)}},onError=function(e,t,r){if((0,_.getFileItem)(r,ee)){var n=(0,_.file2Obj)(r);n.error=e,n.response=t,n.status="error";var a=(0,_.updateFileList)(n,ee);onInternalChange(n,a)}},handleRemove=function(e){var t;Promise.resolve("function"==typeof P?P(e):P).then(function(r){if(!1!==r){var n,a=(0,_.removeFileItem)(e,ee);a&&(t=(0,l.default)((0,l.default)({},e),{status:"removed"}),null==ee||ee.forEach(function(e){var r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")}),null===(n=el.current)||void 0===n||n.abort(t),onInternalChange(t,a))}})},onFileDrop=function(e){eo(e.type),"drop"===e.type&&(null==M||M(e))};v.useImperativeHandle(t,function(){return{onBatchStart:onBatchStart,onSuccess:onSuccess,onProgress:onProgress,onError:onError,fileList:ee,upload:el.current}});var ei=v.useContext(g.ConfigContext),ec=ei.getPrefixCls,eu=ei.direction,ed=ec("upload",q),es=(0,l.default)((0,l.default)({onBatchStart:onBatchStart,onError:onError,onProgress:onProgress,onSuccess:onSuccess},e),{data:void 0===B?{}:B,multiple:void 0!==G&&G,action:void 0===J?"":J,accept:void 0===Z?"":Z,supportServerRender:void 0===$||$,prefixCls:ed,disabled:Q,beforeUpload:function(t,r){return __awaiter(void 0,void 0,void 0,(0,i.default)().mark(function _callee(){var n,a,o,l;return(0,i.default)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(n=e.beforeUpload,a=e.transformFile,o=t,!n){i.next=13;break}return i.next=5,n(t,r);case 5:if(!1!==(l=i.sent)){i.next=8;break}return i.abrupt("return",!1);case 8:if(delete t[O],l!==O){i.next=12;break}return Object.defineProperty(t,O,{value:!0,configurable:!0}),i.abrupt("return",!1);case 12:"object"===(0,c.default)(l)&&l&&(o=l);case 13:if(!a){i.next=17;break}return i.next=16,a(o);case 16:o=i.sent;case 17:return i.abrupt("return",o);case 18:case"end":return i.stop()}},_callee)}))},onChange:void 0});delete es.className,delete es.style,(!z||Q)&&delete es.id;var renderUploadList=function(e,t){return E?v.createElement(y.default,{componentName:"Upload",defaultLocale:b.default.Upload},function(r){var n="boolean"==typeof E?{}:E,a=n.showRemoveIcon,o=n.showPreviewIcon,i=n.showDownloadIcon,c=n.removeIcon,u=n.previewIcon,d=n.downloadIcon;return v.createElement(w.default,{prefixCls:ed,listType:j,items:ee,previewFile:D,onPreview:R,onDownload:k,onRemove:handleRemove,showRemoveIcon:!Q&&a,showPreviewIcon:o,showDownloadIcon:i,removeIcon:c,previewIcon:u,downloadIcon:d,iconRender:S,locale:(0,l.default)((0,l.default)({},r),F),isImageUrl:W,progress:L,appendAction:e,appendActionVisible:t,itemRender:V,disabled:Q})}):e};if("drag"===(void 0===U?"select":U)){var ef=(0,s.default)(ed,(0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)({},"".concat(ed,"-drag"),!0),"".concat(ed,"-drag-uploading"),ee.some(function(e){return"uploading"===e.status})),"".concat(ed,"-drag-hover"),"dragover"===ea),"".concat(ed,"-disabled"),Q),"".concat(ed,"-rtl"),"rtl"===eu),T);return v.createElement("span",null,v.createElement("div",{className:ef,onDrop:onFileDrop,onDragOver:onFileDrop,onDragLeave:onFileDrop,style:A},v.createElement(f.default,(0,l.default)({},es,{ref:el,className:"".concat(ed,"-btn")}),v.createElement("div",{className:"".concat(ed,"-drag-container")},z))),renderUploadList())}var ep=(0,s.default)(ed,(0,o.default)((0,o.default)((0,o.default)((0,o.default)({},"".concat(ed,"-select"),!0),"".concat(ed,"-select-").concat(j),!0),"".concat(ed,"-disabled"),Q),"".concat(ed,"-rtl"),"rtl"===eu)),ev=(r=z?void 0:{display:"none"},v.createElement("div",{className:ep,style:r},v.createElement(f.default,(0,l.default)({},es,{ref:el}))));return"picture-card"===j?v.createElement("span",{className:(0,s.default)("".concat(ed,"-picture-card-wrapper"),T)},renderUploadList(ev,!!z)):v.createElement("span",{className:T},ev,renderUploadList())});t.default=P},78053:function(e,t,r){var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(10434)),l=a(r(38416)),i=a(r(27424)),c=a(r(77949)),u=a(r(75720)),d=a(r(29918)),s=a(r(94184)),f=a(r(82225)),p=n(r(67294)),v=r(31929),m=a(r(74806)),g=a(r(94055)),h=p.forwardRef(function(e,t){var r,n,a,h=e.prefixCls,y=e.className,b=e.style,w=e.locale,_=e.listType,O=e.file,P=e.items,C=e.progress,E=e.iconRender,I=e.actionIconRender,j=e.itemRender,R=e.isImgUrl,k=e.showPreviewIcon,x=e.showRemoveIcon,M=e.showDownloadIcon,D=e.previewIcon,N=e.removeIcon,F=e.downloadIcon,S=e.onPreview,W=e.onDownload,L=e.onClose,q=O.status,T=p.useState(q),U=(0,i.default)(T,2),z=U[0],A=U[1];p.useEffect(function(){"removed"!==q&&A(q)},[q]);var V=p.useState(!1),H=(0,i.default)(V,2),B=H[0],G=H[1],J=p.useRef(null);p.useEffect(function(){return J.current=setTimeout(function(){G(!0)},300),function(){J.current&&clearTimeout(J.current)}},[]);var Z="".concat(h,"-span"),$=E(O),K=p.createElement("div",{className:"".concat(h,"-text-icon")},$);if("picture"===_||"picture-card"===_){if("uploading"!==z&&(O.thumbUrl||O.url)){var Q=(null==R?void 0:R(O))?p.createElement("img",{src:O.thumbUrl||O.url,alt:O.name,className:"".concat(h,"-list-item-image"),crossOrigin:O.crossOrigin}):$,X=(0,s.default)((0,l.default)((0,l.default)({},"".concat(h,"-list-item-thumbnail"),!0),"".concat(h,"-list-item-file"),R&&!R(O)));K=p.createElement("a",{className:X,onClick:function(e){return S(O,e)},href:O.url||O.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q)}else{var Y=(0,s.default)((0,l.default)((0,l.default)({},"".concat(h,"-list-item-thumbnail"),!0),"".concat(h,"-list-item-file"),"uploading"!==z));K=p.createElement("div",{className:Y},$)}}var ee=(0,s.default)((0,l.default)((0,l.default)((0,l.default)({},"".concat(h,"-list-item"),!0),"".concat(h,"-list-item-").concat(z),!0),"".concat(h,"-list-item-list-type-").concat(_),!0)),et="string"==typeof O.linkProps?JSON.parse(O.linkProps):O.linkProps,er=x?I(("function"==typeof N?N(O):N)||p.createElement(c.default,null),function(){return L(O)},h,w.removeFile):null,en=M&&"done"===z?I(("function"==typeof F?F(O):F)||p.createElement(u.default,null),function(){return W(O)},h,w.downloadFile):null,ea="picture-card"!==_&&p.createElement("span",{key:"download-delete",className:(0,s.default)("".concat(h,"-list-item-card-actions"),{picture:"picture"===_})},en,er),eo=(0,s.default)("".concat(h,"-list-item-name")),el=O.url?[p.createElement("a",(0,o.default)({key:"view",target:"_blank",rel:"noopener noreferrer",className:eo,title:O.name},et,{href:O.url,onClick:function(e){return S(O,e)}}),O.name),ea]:[p.createElement("span",{key:"view",className:eo,onClick:function(e){return S(O,e)},title:O.name},O.name),ea],ei=k?p.createElement("a",{href:O.url||O.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:O.url||O.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(e){return S(O,e)},title:w.previewFile},"function"==typeof D?D(O):D||p.createElement(d.default,null)):null,ec="picture-card"===_&&"uploading"!==z&&p.createElement("span",{className:"".concat(h,"-list-item-actions")},ei,"done"===z&&en,er);a=O.response&&"string"==typeof O.response?O.response:(null===(r=O.error)||void 0===r?void 0:r.statusText)||(null===(n=O.error)||void 0===n?void 0:n.message)||w.uploadError;var eu=p.createElement("span",{className:Z},K,el),ed=(0,p.useContext(v.ConfigContext).getPrefixCls)(),es=p.createElement("div",{className:ee},p.createElement("div",{className:"".concat(h,"-list-item-info")},eu),ec,B&&p.createElement(f.default,{motionName:"".concat(ed,"-fade"),visible:"uploading"===z,motionDeadline:2e3},function(e){var t=e.className,r="percent"in O?p.createElement(m.default,(0,o.default)({},C,{type:"line",percent:O.percent})):null;return p.createElement("div",{className:(0,s.default)("".concat(h,"-list-item-progress"),t)},r)})),ef=(0,s.default)("".concat(h,"-list-").concat(_,"-container"),y),ep="error"===z?p.createElement(g.default,{title:a,getPopupContainer:function(e){return e.parentNode}},es):es;return p.createElement("div",{className:ef,style:b,ref:t},j?j(ep,O,P,{download:W.bind(null,O),preview:S.bind(null,O),remove:L.bind(null,O)}):ep)});t.default=h},32799:function(e,t,r){var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(861)),l=a(r(38416)),i=a(r(27424)),c=a(r(10434)),u=a(r(51736)),d=a(r(628)),s=a(r(20006)),f=a(r(94086)),p=a(r(94184)),v=n(r(82225)),m=n(r(67294)),g=a(r(65400)),h=r(31929),y=a(r(23854)),b=a(r(53683)),w=r(47419),_=r(50362),O=a(r(78053)),P=(0,c.default)({},b.default);delete P.onAppearEnd,delete P.onEnterEnd,delete P.onLeaveEnd;var C=m.forwardRef(function(e,t){var r=e.listType,n=void 0===r?"text":r,a=e.previewFile,b=void 0===a?_.previewImage:a,C=e.onPreview,E=e.onDownload,I=e.onRemove,j=e.locale,R=e.iconRender,k=e.isImageUrl,x=void 0===k?_.isImageUrl:k,M=e.prefixCls,D=e.items,N=void 0===D?[]:D,F=e.showPreviewIcon,S=void 0===F||F,W=e.showRemoveIcon,L=void 0===W||W,q=e.showDownloadIcon,T=void 0!==q&&q,U=e.removeIcon,z=e.previewIcon,A=e.downloadIcon,V=e.progress,H=void 0===V?{strokeWidth:2,showInfo:!1}:V,B=e.appendAction,G=e.appendActionVisible,J=e.itemRender,Z=e.disabled,$=(0,y.default)(),K=m.useState(!1),Q=(0,i.default)(K,2),X=Q[0],Y=Q[1];m.useEffect(function(){("picture"===n||"picture-card"===n)&&(N||[]).forEach(function(e){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",b&&b(e.originFileObj).then(function(t){e.thumbUrl=t||"",$()}))})},[n,N,b]),m.useEffect(function(){Y(!0)},[]);var onInternalPreview=function(e,t){if(C)return null==t||t.preventDefault(),C(e)},onInternalDownload=function(e){"function"==typeof E?E(e):e.url&&window.open(e.url)},onInternalClose=function(e){null==I||I(e)},internalIconRender=function(e){if(R)return R(e,n);var t="uploading"===e.status,r=x&&x(e)?m.createElement(f.default,null):m.createElement(u.default,null),a=t?m.createElement(d.default,null):m.createElement(s.default,null);return"picture"===n?a=t?m.createElement(d.default,null):r:"picture-card"===n&&(a=t?j.uploading:r),a},actionIconRender=function(e,t,r,n){var a={type:"text",size:"small",title:n,disabled:Z,onClick:function(r){t(),(0,w.isValidElement)(e)&&e.props.onClick&&e.props.onClick(r)},className:"".concat(r,"-list-item-card-actions-btn")};if((0,w.isValidElement)(e)){var o=(0,w.cloneElement)(e,(0,c.default)((0,c.default)({},e.props),{onClick:function(){}}));return m.createElement(g.default,(0,c.default)({},a,{icon:o}))}return m.createElement(g.default,(0,c.default)({},a),m.createElement("span",null,e))};m.useImperativeHandle(t,function(){return{handlePreview:onInternalPreview,handleDownload:onInternalDownload}});var ee=m.useContext(h.ConfigContext),et=ee.getPrefixCls,er=ee.direction,en=et("upload",M),ea=(0,p.default)((0,l.default)((0,l.default)((0,l.default)({},"".concat(en,"-list"),!0),"".concat(en,"-list-").concat(n),!0),"".concat(en,"-list-rtl"),"rtl"===er)),eo=(0,o.default)(N.map(function(e){return{key:e.uid,file:e}})),el="picture-card"===n?"animate-inline":"animate",ei={motionDeadline:2e3,motionName:"".concat(en,"-").concat(el),keys:eo,motionAppear:X};return"picture-card"!==n&&(ei=(0,c.default)((0,c.default)({},P),ei)),m.createElement("div",{className:ea},m.createElement(v.CSSMotionList,(0,c.default)({},ei,{component:!1}),function(e){var t=e.key,r=e.file,a=e.className,o=e.style;return m.createElement(O.default,{key:t,locale:j,prefixCls:en,className:a,style:o,file:r,items:N,progress:H,listType:n,isImgUrl:x,showPreviewIcon:S,showRemoveIcon:L,showDownloadIcon:T,removeIcon:U,previewIcon:z,downloadIcon:A,iconRender:internalIconRender,actionIconRender:actionIconRender,itemRender:J,onPreview:onInternalPreview,onDownload:onInternalDownload,onClose:onInternalClose})}),B&&m.createElement(v.default,(0,c.default)({},ei,{visible:void 0===G||G,forceRender:!0}),function(e){var t=e.className,r=e.style;return(0,w.cloneElement)(B,function(e){return{className:(0,p.default)(e.className,t),style:(0,c.default)((0,c.default)((0,c.default)({},r),{pointerEvents:t?"none":void 0}),e.style)}})}))});t.default=C},28465:function(e,t,r){var n=r(75263).default,a=r(64836).default;t.Z=void 0;var o=a(r(58602)),l=n(r(38411)),i=l.default;i.Dragger=o.default,i.LIST_IGNORE=l.LIST_IGNORE,t.Z=i},50362:function(e,t,r){var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.file2Obj=file2Obj,t.getFileItem=getFileItem,t.isImageUrl=void 0,t.previewImage=previewImage,t.removeFileItem=removeFileItem,t.updateFileList=updateFileList;var a=n(r(861)),o=n(r(10434));function file2Obj(e){return(0,o.default)((0,o.default)({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function updateFileList(e,t){var r=(0,a.default)(t),n=r.findIndex(function(t){return t.uid===e.uid});return -1===n?r.push(e):r[n]=e,r}function getFileItem(e,t){var r=void 0!==e.uid?"uid":"name";return t.filter(function(t){return t[r]===e[r]})[0]}function removeFileItem(e,t){var r=void 0!==e.uid?"uid":"name",n=t.filter(function(t){return t[r]!==e[r]});return n.length===t.length?null:n}var extname=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},isImageFileType=function(e){return 0===e.indexOf("image/")};function previewImage(e){return new Promise(function(t){if(!e.type||!isImageFileType(e.type)){t("");return}var r=document.createElement("canvas");r.width=200,r.height=200,r.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(r);var n=r.getContext("2d"),a=new Image;if(a.onload=function(){var e=a.width,o=a.height,l=200,i=200,c=0,u=0;e>o?u=-((i=o*(200/e))-l)/2:c=-((l=e*(200/o))-i)/2,n.drawImage(a,c,u,l,i);var d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(a.src),t(d)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){var o=new FileReader;o.onload=function(){o.result&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){var l=new FileReader;l.onload=function(){l.result&&t(l.result)},l.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}t.isImageUrl=function(e){if(e.type&&!e.thumbUrl)return isImageFileType(e.type);var t=e.thumbUrl||e.url||"",r=extname(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r))||!/^data:/.test(t)&&!r}}}]);