owncast/static/web/_next/static/chunks/1700-20ee1212d9d53d1f.js
2023-08-13 12:42:48 +00:00

1 line
No EOL
24 KiB
JavaScript
Vendored

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1700,775],{83647:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"}},57583:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"}},29260:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"}},69427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,r=(a=n(52655))&&a.__esModule?a:{default:a};t.default=r,e.exports=r},10775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,r=(a=n(58452))&&a.__esModule?a:{default:a};t.default=r,e.exports=r},39398:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,r=(a=n(73764))&&a.__esModule?a:{default:a};t.default=r,e.exports=r},52655:function(e,t,n){"use strict";var a=n(64836),r=n(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(n(42122)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var a={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=l?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(a,o,u):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}(n(67294)),u=a(n(83647)),i=a(n(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var f=function(e,t){return o.createElement(i.default,(0,l.default)((0,l.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="CopyOutlined";var d=o.forwardRef(f);t.default=d},58452:function(e,t,n){"use strict";var a=n(64836),r=n(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(n(42122)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var a={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=l?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(a,o,u):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}(n(67294)),u=a(n(57583)),i=a(n(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var f=function(e,t){return o.createElement(i.default,(0,l.default)((0,l.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="EditOutlined";var d=o.forwardRef(f);t.default=d},73764:function(e,t,n){"use strict";var a=n(64836),r=n(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(n(42122)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var a={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=l?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(a,o,u):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}(n(67294)),u=a(n(29260)),i=a(n(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}var f=function(e,t){return o.createElement(i.default,(0,l.default)((0,l.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="EnterOutlined";var d=o.forwardRef(f);t.default=d},60938:function(e,t,n){"use strict";var a=n(75263).default,r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(n(10434)),o=r(n(27712)),u=a(n(67294)),i=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},c={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},f=u.forwardRef(function(e,t){var n=e.style,a=e.noStyle,r=e.disabled,f=i(e,["style","noStyle","disabled"]),d={};return a||(d=(0,l.default)({},c)),r&&(d.pointerEvents="none"),d=(0,l.default)((0,l.default)({},d),n),u.createElement("div",(0,l.default)({role:"button",tabIndex:0,ref:t},f,{onKeyDown:function(e){e.keyCode===o.default.ENTER&&e.preventDefault()},onKeyUp:function(t){var n=t.keyCode,a=e.onClick;n===o.default.ENTER&&a&&a()},style:d}))});t.default=f},12385:function(e,t,n){"use strict";var a=n(75263).default,r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(n(10434)),o=r(n(27424)),u=r(n(18698)),i=r(n(45598)),c=r(n(82546)),f=a(n(67294));function d(e){var t=(0,u.default)(e);return"string"===t||"number"===t}function s(e,t){for(var n=0,a=[],r=0;r<e.length;r+=1){if(n===t)return a;var l=e[r],o=n+(d(l)?String(l).length:1);if(o>t){var u=t-n;return a.push(String(l).slice(0,u)),a}a.push(l),n=o}return e}t.default=function(e){var t=e.enabledMeasure,n=e.children,a=e.text,r=e.width,u=e.fontSize,p=e.rows,v=e.onEllipsis,y=f.useState([0,0,0]),E=(0,o.default)(y,2),m=(0,o.default)(E[0],3),b=m[0],O=m[1],g=m[2],_=E[1],S=f.useState(0),M=(0,o.default)(S,2),N=M[0],C=M[1],h=f.useState(0),w=(0,o.default)(h,2),P=w[0],R=w[1],x=f.useRef(null),T=f.useRef(null),A=f.useMemo(function(){return(0,i.default)(a)},[a]),I=f.useMemo(function(){var e;return e=0,A.forEach(function(t){d(t)?e+=String(t).length:e+=1}),e},[A]),U=f.useMemo(function(){return t&&3===N?n(s(A,O),O<I):n(A,!1)},[t,N,n,A,O,I]);(0,c.default)(function(){t&&r&&u&&I&&(C(1),_([0,Math.ceil(I/2),I]))},[t,r,u,a,I,p]),(0,c.default)(function(){var e;1===N&&R((null===(e=x.current)||void 0===e?void 0:e.offsetHeight)||0)},[N]),(0,c.default)(function(){var e,t;if(P){if(1===N)((null===(e=T.current)||void 0===e?void 0:e.offsetHeight)||0)<=p*P?(C(4),v(!1)):C(2);else if(2===N){if(b!==g){var n=(null===(t=T.current)||void 0===t?void 0:t.offsetHeight)||0,a=p*P,r=b,l=g;b===g-1?l=b:n<=a?r=O:l=O;var o=Math.ceil((r+l)/2);_([r,o,l])}else C(3),v(!0)}}},[N,b,g,p,P]);var j=function(e,t,n){return f.createElement("span",{"aria-hidden":!0,ref:t,style:(0,l.default)({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.floor(u/2)},n)},e)};return f.createElement(f.Fragment,null,U,t&&3!==N&&4!==N&&f.createElement(f.Fragment,null,j("lg",x,{wordBreak:"keep-all",whiteSpace:"nowrap"}),j(1===N?n(A,!1):n(s(A,O),!0),T,{width:r,whiteSpace:"normal",margin:0,padding:0})))}},69274:function(e,t,n){"use strict";var a=n(75263).default,r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(n(10434)),o=a(n(67294)),u=r(n(94055));t.default=function(e){var t=e.enabledEllipsis,n=e.isEllipsis,a=e.children,r=e.tooltipProps;return(null==r?void 0:r.title)&&t?o.createElement(u.default,(0,l.default)({open:!!n&&void 0},r),a):a}},28460:function(e,t,n){"use strict";var a=n(75263).default,r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(n(38416)),o=r(n(10434)),u=r(n(18698)),i=r(n(27424)),c=r(n(71961)),f=r(n(69427)),d=r(n(10775)),s=r(n(94184)),p=r(n(20640)),v=r(n(48555)),y=r(n(45598)),E=r(n(82546)),m=r(n(60869)),b=r(n(18475)),O=n(75531),g=a(n(67294)),_=n(31929),S=n(73625),M=r(n(60938)),N=n(38882),C=r(n(94055)),h=r(n(69425)),w=r(n(92759)),P=r(n(67312)),R=r(n(89652)),x=r(n(12385)),T=r(n(69274)),A=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};function I(e,t,n){return!0===e||void 0===e?t:e||n&&t}function U(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}var j=g.forwardRef(function(e,t){var n,a,r,j=e.prefixCls,k=e.className,D=e.style,L=e.type,H=e.disabled,K=e.children,F=e.ellipsis,W=e.editable,z=e.copyable,B=e.component,G=e.title,V=A(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),Q=g.useContext(_.ConfigContext),Y=Q.getPrefixCls,X=Q.direction,Z=(0,S.useLocaleReceiver)("Text")[0],J=g.useRef(null),q=g.useRef(null),$=Y("typography",j),ee=(0,b.default)(V,["mark","code","delete","underline","strong","keyboard","italic"]),et=(0,w.default)(W),en=(0,i.default)(et,2),ea=en[0],er=en[1],el=(0,m.default)(!1,{value:er.editing}),eo=(0,i.default)(el,2),eu=eo[0],ei=eo[1],ec=er.triggerType,ef=void 0===ec?["icon"]:ec,ed=function(e){var t;e&&(null===(t=er.onStart)||void 0===t||t.call(er)),ei(e)};(0,P.default)(function(){var e;eu||null===(e=q.current)||void 0===e||e.focus()},[eu]);var es=function(e){null==e||e.preventDefault(),ed(!0)},ep=(0,w.default)(z),ev=(0,i.default)(ep,2),ey=ev[0],eE=ev[1],em=g.useState(!1),eb=(0,i.default)(em,2),eO=eb[0],eg=eb[1],e_=g.useRef(),eS={};eE.format&&(eS.format=eE.format);var eM=function(){window.clearTimeout(e_.current)},eN=function(e){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),(0,p.default)(eE.text||String(K)||"",eS),eg(!0),eM(),e_.current=window.setTimeout(function(){eg(!1)},3e3),null===(t=eE.onCopy)||void 0===t||t.call(eE,e)};g.useEffect(function(){return eM},[]);var eC=g.useState(!1),eh=(0,i.default)(eC,2),ew=eh[0],eP=eh[1],eR=g.useState(!1),ex=(0,i.default)(eR,2),eT=ex[0],eA=ex[1],eI=g.useState(!1),eU=(0,i.default)(eI,2),ej=eU[0],ek=eU[1],eD=g.useState(!1),eL=(0,i.default)(eD,2),eH=eL[0],eK=eL[1],eF=g.useState(!1),eW=(0,i.default)(eF,2),ez=eW[0],eB=eW[1],eG=g.useState(!0),eV=(0,i.default)(eG,2),eQ=eV[0],eY=eV[1],eX=(0,w.default)(F,{expandable:!1}),eZ=(0,i.default)(eX,2),eJ=eZ[0],eq=eZ[1],e$=eJ&&!ej,e0=eq.rows,e1=void 0===e0?1:e0,e2=g.useMemo(function(){return!e$||void 0!==eq.suffix||eq.onEllipsis||eq.expandable||ea||ey},[e$,eq,ea,ey]);(0,E.default)(function(){eJ&&!e2&&(eP((0,N.isStyleSupport)("webkitLineClamp")),eA((0,N.isStyleSupport)("textOverflow")))},[e2,eJ]);var e4=g.useMemo(function(){return!e2&&(1===e1?eT:ew)},[e2,eT,ew]),e6=e$&&(e4?ez:eH),e3=e$&&1===e1&&e4,e8=e$&&e1>1&&e4,e7=function(e){var t;ek(!0),null===(t=eq.onExpand)||void 0===t||t.call(eq,e)},e9=g.useState(0),e5=(0,i.default)(e9,2),te=e5[0],tt=e5[1],tn=g.useState(0),ta=(0,i.default)(tn,2),tr=ta[0],tl=ta[1],to=function(e){var t;eK(e),eH!==e&&(null===(t=eq.onEllipsis)||void 0===t||t.call(eq,e))};g.useEffect(function(){var e=J.current;if(eJ&&e4&&e){var t=e8?e.offsetHeight<e.scrollHeight:e.offsetWidth<e.scrollWidth;ez!==t&&eB(t)}},[eJ,e4,K,e8,eQ]),g.useEffect(function(){var e=J.current;if("undefined"!=typeof IntersectionObserver&&e&&e4&&e$){var t=new IntersectionObserver(function(){eY(!!e.offsetParent)});return t.observe(e),function(){t.disconnect()}}},[e4,e$]);var tu={};tu=!0===eq.tooltip?{title:null!==(n=er.text)&&void 0!==n?n:K}:g.isValidElement(eq.tooltip)?{title:eq.tooltip}:"object"===(0,u.default)(eq.tooltip)?(0,o.default)({title:null!==(a=er.text)&&void 0!==a?a:K},eq.tooltip):{title:eq.tooltip};var ti=g.useMemo(function(){var e=function(e){return["string","number"].includes((0,u.default)(e))};return!eJ||e4?void 0:e(er.text)?er.text:e(K)?K:e(G)?G:e(tu.title)?tu.title:void 0},[eJ,e4,G,tu.title,e6]);if(eu)return g.createElement(h.default,{value:null!==(r=er.text)&&void 0!==r?r:"string"==typeof K?K:"",onSave:function(e){var t;null===(t=er.onChange)||void 0===t||t.call(er,e),ed(!1)},onCancel:function(){var e;null===(e=er.onCancel)||void 0===e||e.call(er),ed(!1)},onEnd:er.onEnd,prefixCls:$,className:k,style:D,direction:X,component:B,maxLength:er.maxLength,autoSize:er.autoSize,enterIcon:er.enterIcon});var tc=function(){var e,t=eq.expandable,n=eq.symbol;return t?(e=n||Z.expand,g.createElement("a",{key:"expand",className:"".concat($,"-expand"),onClick:e7,"aria-label":Z.expand},e)):null},tf=function(){if(ea){var e=er.icon,t=er.tooltip,n=(0,y.default)(t)[0]||Z.edit;return ef.includes("icon")?g.createElement(C.default,{key:"edit",title:!1===t?"":n},g.createElement(M.default,{ref:q,className:"".concat($,"-edit"),onClick:es,"aria-label":"string"==typeof n?n:""},e||g.createElement(d.default,{role:"button"}))):null}},td=function(){if(ey){var e=eE.tooltips,t=eE.icon,n=U(e),a=U(t),r=eO?I(n[1],Z.copied):I(n[0],Z.copy),l=eO?Z.copied:Z.copy;return g.createElement(C.default,{key:"copy",title:r},g.createElement(M.default,{className:(0,s.default)("".concat($,"-copy"),eO&&"".concat($,"-copy-success")),onClick:eN,"aria-label":"string"==typeof r?r:l},eO?I(a[1],g.createElement(c.default,null),!0):I(a[0],g.createElement(f.default,null),!0)))}};return g.createElement(v.default,{onResize:function(e,t){var n;tt(e.offsetWidth),tl(parseInt(null===(n=window.getComputedStyle)||void 0===n?void 0:n.call(window,t).fontSize,10)||0)},disabled:!e$||e4},function(n){var a;return g.createElement(T.default,{tooltipProps:tu,enabledEllipsis:e$,isEllipsis:e6},g.createElement(R.default,(0,o.default)({className:(0,s.default)((a={},(0,l.default)(a,"".concat($,"-").concat(L),L),(0,l.default)(a,"".concat($,"-disabled"),H),(0,l.default)(a,"".concat($,"-ellipsis"),eJ),(0,l.default)(a,"".concat($,"-single-line"),e$&&1===e1),(0,l.default)(a,"".concat($,"-ellipsis-single-line"),e3),(0,l.default)(a,"".concat($,"-ellipsis-multiple-line"),e8),a),k),prefixCls:j,style:(0,o.default)((0,o.default)({},D),{WebkitLineClamp:e8?e1:void 0}),component:B,ref:(0,O.composeRef)(n,J,t),direction:X,onClick:ef.includes("text")?es:void 0,"aria-label":null==ti?void 0:ti.toString(),title:G},ee),g.createElement(x.default,{enabledMeasure:e$&&!e4,text:K,rows:e1,width:te,fontSize:tr,onEllipsis:to},function(t,n){var a=t;return t.length&&n&&ti&&(a=g.createElement("span",{key:"show-content","aria-hidden":!0},a)),function(e,t){var n=e.mark,a=e.code,r=e.underline,l=e.delete,o=e.strong,u=e.keyboard,i=e.italic,c=t;function f(e,t){e&&(c=g.createElement(t,{},c))}return f(o,"strong"),f(r,"u"),f(l,"del"),f(a,"code"),f(n,"mark"),f(u,"kbd"),f(i,"i"),c}(e,g.createElement(g.Fragment,null,a,[n&&g.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),eq.suffix,[n&&tc(),tf(),td()]]))})))})});t.default=j},69425:function(e,t,n){"use strict";var a=n(75263).default,r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(n(38416)),o=r(n(27424)),u=r(n(39398)),i=r(n(94184)),c=r(n(27712)),f=a(n(67294)),d=r(n(14104)),s=n(47419);t.default=function(e){var t=e.prefixCls,n=e["aria-label"],a=e.className,r=e.style,p=e.direction,v=e.maxLength,y=e.autoSize,E=e.value,m=e.onSave,b=e.onCancel,O=e.onEnd,g=e.component,_=e.enterIcon,S=void 0===_?f.createElement(u.default,null):_,M=f.useRef(null),N=f.useRef(!1),C=f.useRef(),h=f.useState(E),w=(0,o.default)(h,2),P=w[0],R=w[1];f.useEffect(function(){R(E)},[E]),f.useEffect(function(){if(M.current&&M.current.resizableTextArea){var e=M.current.resizableTextArea.textArea;e.focus();var t=e.value.length;e.setSelectionRange(t,t)}},[]);var x=function(){m(P.trim())},T=g?"".concat(t,"-").concat(g):"",A=(0,i.default)(t,"".concat(t,"-edit-content"),(0,l.default)({},"".concat(t,"-rtl"),"rtl"===p),a,T);return f.createElement("div",{className:A,style:r},f.createElement(d.default,{ref:M,maxLength:v,value:P,onChange:function(e){R(e.target.value.replace(/[\n\r]/g,""))},onKeyDown:function(e){var t=e.keyCode;N.current||(C.current=t)},onKeyUp:function(e){var t=e.keyCode,n=e.ctrlKey,a=e.altKey,r=e.metaKey,l=e.shiftKey;C.current!==t||N.current||n||a||r||l||(t===c.default.ENTER?(x(),null==O||O()):t===c.default.ESC&&b())},onCompositionStart:function(){N.current=!0},onCompositionEnd:function(){N.current=!1},onBlur:function(){x()},"aria-label":n,rows:1,autoSize:void 0===y||y}),null!==S?(0,s.cloneElement)(S,{className:"".concat(t,"-edit-content-confirm")}):null)}},34528:function(e,t,n){"use strict";var a=n(75263).default,r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(n(10434)),o=a(n(67294)),u=n(66764);r(n(13594));var i=r(n(28460)),c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},f=(0,u.tupleNum)(1,2,3,4,5),d=o.forwardRef(function(e,t){var n,a=e.level,r=void 0===a?1:a,u=c(e,["level"]);return n=f.includes(r)?"h".concat(r):"h1",o.createElement(i.default,(0,l.default)({ref:t},u,{component:n}))});t.default=d},89652:function(e,t,n){"use strict";var a=n(75263).default,r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=r(n(10434)),o=r(n(38416)),u=r(n(94184)),i=n(75531),c=a(n(67294)),f=n(31929);r(n(13594));var d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},s=c.forwardRef(function(e,t){var n=e.prefixCls,a=e.component,r=void 0===a?"article":a,s=e.className,p=e.setContentRef,v=e.children,y=e.direction,E=d(e,["prefixCls","component","className","setContentRef","children","direction"]),m=c.useContext(f.ConfigContext),b=m.getPrefixCls,O=m.direction,g=null!=y?y:O,_=t;p&&(_=(0,i.composeRef)(t,p));var S=b("typography",n),M=(0,u.default)(S,(0,o.default)({},"".concat(S,"-rtl"),"rtl"===g),s);return c.createElement(r,(0,l.default)({className:M,ref:_},E),v)});t.default=s},92759:function(e,t,n){"use strict";var a=n(75263).default,r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return u.useMemo(function(){var n=!!e;return[n,(0,o.default)((0,o.default)({},t),n&&"object"===(0,l.default)(e)?e:null)]},[e])};var l=r(n(18698)),o=r(n(10434)),u=a(n(67294))},67312:function(e,t,n){"use strict";var a=n(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(67294));t.default=function(e,t){var n=r.useRef(!1);r.useEffect(function(){n.current?e():n.current=!0},t)}},20640:function(e,t,n){"use strict";var a=n(11742),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,l,o,u,i,c,f,d,s=!1;t||(t={}),o=t.debug||!1;try{if(i=a(),c=document.createRange(),f=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=r[t.format]||r.default;window.clipboardData.setData(a,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),f.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");s=!0}catch(a){o&&console.error("unable to copy using execCommand: ",a),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(a){o&&console.error("unable to copy using clipboardData: ",a),o&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",l=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",u=n.replace(/#{\s*key\s*}/g,l),window.prompt(u,e)}}finally{f&&("function"==typeof f.removeRange?f.removeRange(c):f.removeAllRanges()),d&&document.body.removeChild(d),i()}return s}},27712:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE||e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY||e>=n.A&&e<=n.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.default=n},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],a=0;a<e.rangeCount;a++)n.push(e.getRangeAt(a));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}}}]);