owncast/static/web/_next/static/chunks/6167-befd1cf6abf01a92.js
2024-10-04 21:40:36 +00:00

1 line
No EOL
12 KiB
JavaScript
Vendored

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6167],{98947:function(e,t,n){"use strict";n.d(t,{c4:function(){return c}});var r=n(4942),o=n(87462),c=["xxl","xl","lg","md","sm","xs"],u={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},a=new Map,l=-1,i={};t.ZP={matchHandlers:{},dispatch:function(e){return i=e,a.forEach(function(e){return e(i)}),a.size>=1},subscribe:function(e){return a.size||this.register(),l+=1,a.set(l,e),e(i),l},unsubscribe:function(e){a.delete(e),a.size||this.unregister()},unregister:function(){var e=this;Object.keys(u).forEach(function(t){var n=u[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),a.clear()},register:function(){var e=this;Object.keys(u).forEach(function(t){var n=u[t],c=function(n){var c=n.matches;e.dispatch((0,o.Z)((0,o.Z)({},i),(0,r.Z)({},t,c)))},a=window.matchMedia(n);a.addListener(c),e.matchHandlers[n]={mql:a,listener:c},c(a)})}}},50563:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},78235:function(e,t,n){"use strict";var r=n(4942),o=n(87462),c=n(71002),u=n(93967),a=n.n(u),l=n(67294),i=n(17399),f=n(50563),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},d=["xs","sm","md","lg","xl","xxl"],p=l.forwardRef(function(e,t){var n=l.useContext(i.E_),u=n.getPrefixCls,p=n.direction,h=l.useContext(f.Z),v=h.gutter,y=h.wrap,b=h.supportFlexGap,m=e.prefixCls,g=e.span,x=e.order,O=e.offset,Z=e.push,j=e.pull,_=e.className,E=e.children,C=e.flex,P=e.style,w=s(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),R=u("col",m),T={};d.forEach(function(t){var n={},u=e[t];"number"==typeof u?n.span=u:"object"===(0,c.Z)(u)&&(n=u||{}),delete w[t],T=(0,o.Z)((0,o.Z)({},T),(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(R,"-").concat(t,"-").concat(n.span),void 0!==n.span),"".concat(R,"-").concat(t,"-order-").concat(n.order),n.order||0===n.order),"".concat(R,"-").concat(t,"-offset-").concat(n.offset),n.offset||0===n.offset),"".concat(R,"-").concat(t,"-push-").concat(n.push),n.push||0===n.push),"".concat(R,"-").concat(t,"-pull-").concat(n.pull),n.pull||0===n.pull),"".concat(R,"-rtl"),"rtl"===p))});var A=a()(R,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(R,"-").concat(g),void 0!==g),"".concat(R,"-order-").concat(x),x),"".concat(R,"-offset-").concat(O),O),"".concat(R,"-push-").concat(Z),Z),"".concat(R,"-pull-").concat(j),j),_,T),M={};if(v&&v[0]>0){var S=v[0]/2;M.paddingLeft=S,M.paddingRight=S}if(v&&v[1]>0&&!b){var k=v[1]/2;M.paddingTop=k,M.paddingBottom=k}return C&&(M.flex="number"==typeof C?"".concat(C," ").concat(C," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(C)?"0 0 ".concat(C):C,!1!==y||M.minWidth||(M.minWidth=0)),l.createElement("div",(0,o.Z)({},w,{style:(0,o.Z)((0,o.Z)({},M),P),className:A,ref:t}),E)});t.Z=p},79338:function(e,t,n){"use strict";var r=n(87462),o=n(4942),c=n(71002),u=n(97685),a=n(93967),l=n.n(a),i=n(67294),f=n(17399),s=n(90136),d=n(98947),p=n(3227),h=n(50563),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function y(e,t){var n=i.useState("string"==typeof e?e:""),r=(0,u.Z)(n,2),o=r[0],a=r[1],l=function(){if("string"==typeof e&&a(e),"object"===(0,c.Z)(e))for(var n=0;n<d.c4.length;n++){var r=d.c4[n];if(t[r]){var o=e[r];if(void 0!==o){a(o);return}}}};return i.useEffect(function(){l()},[JSON.stringify(e),t]),o}(0,p.b)("top","middle","bottom","stretch"),(0,p.b)("start","end","center","space-around","space-between","space-evenly");var b=i.forwardRef(function(e,t){var n,a=e.prefixCls,p=e.justify,b=e.align,m=e.className,g=e.style,x=e.children,O=e.gutter,Z=void 0===O?0:O,j=e.wrap,_=v(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),E=i.useContext(f.E_),C=E.getPrefixCls,P=E.direction,w=i.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),R=(0,u.Z)(w,2),T=R[0],A=R[1],M=i.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=(0,u.Z)(M,2),k=S[0],I=S[1],N=y(b,k),L=y(p,k),H=(0,s.Z)(),U=i.useRef(Z);i.useEffect(function(){var e=d.ZP.subscribe(function(e){I(e);var t=U.current||0;(!Array.isArray(t)&&"object"===(0,c.Z)(t)||Array.isArray(t)&&("object"===(0,c.Z)(t[0])||"object"===(0,c.Z)(t[1])))&&A(e)});return function(){return d.ZP.unsubscribe(e)}},[]);var F=C("row",a),K=(n=[void 0,void 0],(Array.isArray(Z)?Z:[Z,void 0]).forEach(function(e,t){if("object"===(0,c.Z)(e))for(var r=0;r<d.c4.length;r++){var o=d.c4[r];if(T[o]&&void 0!==e[o]){n[t]=e[o];break}}else n[t]=e}),n),z=l()(F,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(F,"-no-wrap"),!1===j),"".concat(F,"-").concat(L),L),"".concat(F,"-").concat(N),N),"".concat(F,"-rtl"),"rtl"===P),m),D={},G=null!=K[0]&&K[0]>0?-(K[0]/2):void 0,q=null!=K[1]&&K[1]>0?-(K[1]/2):void 0;if(G&&(D.marginLeft=G,D.marginRight=G),H){var B=(0,u.Z)(K,2);D.rowGap=B[1]}else q&&(D.marginTop=q,D.marginBottom=q);var V=(0,u.Z)(K,2),W=V[0],J=V[1],Y=i.useMemo(function(){return{gutter:[W,J],wrap:j,supportFlexGap:H}},[W,J,j,H]);return i.createElement(h.Z.Provider,{value:Y},i.createElement("div",(0,r.Z)({},_,{className:z,style:(0,r.Z)((0,r.Z)({},D),g),ref:t}),x))});t.Z=b},38199:function(e,t){"use strict";var n,r,o,c;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return s},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return f},ACTION_REFRESH:function(){return u},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return i},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let u="refresh",a="navigate",l="restore",i="server-patch",f="prefetch",s="fast-refresh",d="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(c=r||(r={})).fresh="fresh",c.reusable="reusable",c.expired="expired",c.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87195:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(98337),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98342:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(38754),o=n(85893),c=r._(n(67294)),u=n(36075),a=n(53955),l=n(48041),i=n(99903),f=n(65490),s=n(81928),d=n(60257),p=n(84229),h=n(87195),v=n(89470),y=n(38199),b=new Set;function m(e,t,n,r,o,c){if(c||(0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(b.has(o))return;b.add(o)}(async()=>c?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let x=c.default.forwardRef(function(e,t){let n,r;let{href:l,as:b,children:x,prefetch:O=null,passHref:Z,replace:j,shallow:_,scroll:E,locale:C,onClick:P,onMouseEnter:w,onTouchStart:R,legacyBehavior:T=!1,...A}=e;n=x,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let M=c.default.useContext(s.RouterContext),S=c.default.useContext(d.AppRouterContext),k=null!=M?M:S,I=!M,N=!1!==O,L=null===O?y.PrefetchKind.AUTO:y.PrefetchKind.FULL,{href:H,as:U}=c.default.useMemo(()=>{if(!M){let e=g(l);return{href:e,as:b?g(b):e}}let[e,t]=(0,u.resolveHref)(M,l,!0);return{href:e,as:b?(0,u.resolveHref)(M,b):t||e}},[M,l,b]),F=c.default.useRef(H),K=c.default.useRef(U);T&&(r=c.default.Children.only(n));let z=T?r&&"object"==typeof r&&r.ref:t,[D,G,q]=(0,p.useIntersection)({rootMargin:"200px"}),B=c.default.useCallback(e=>{(K.current!==U||F.current!==H)&&(q(),K.current=U,F.current=H),D(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[U,z,H,q,D]);c.default.useEffect(()=>{k&&G&&N&&m(k,H,U,{locale:C},{kind:L},I)},[U,H,G,C,N,null==M?void 0:M.locale,k,I,L]);let V={ref:B,onClick(e){T||"function"!=typeof P||P(e),T&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),k&&!e.defaultPrevented&&function(e,t,n,r,o,u,l,i,f){let{nodeName:s}=e.currentTarget;if("A"===s.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!f&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:u,locale:i,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};f?c.default.startTransition(d):d()}(e,k,H,U,j,_,E,C,I)},onMouseEnter(e){T||"function"!=typeof w||w(e),T&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),k&&(N||!I)&&m(k,H,U,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:L},I)},onTouchStart:function(e){T||"function"!=typeof R||R(e),T&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),k&&(N||!I)&&m(k,H,U,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:L},I)}};if((0,i.isAbsoluteUrl)(U))V.href=U;else if(!T||Z||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,h.getDomainLocale)(U,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);V.href=t||(0,v.addBasePath)((0,f.addLocale)(U,e,null==M?void 0:M.defaultLocale))}return T?c.default.cloneElement(r,V):(0,o.jsx)("a",{...A,...V,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(67294),o=n(84474),c="function"==typeof IntersectionObserver,u=new Map,a=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,i=l||!c,[f,s]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(c){if(i||f)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:c}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=u.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},a.push(n),u.set(n,t),t}(n);return c.set(e,t),o.observe(e),function(){if(c.delete(e),o.unobserve(e),0===c.size){o.disconnect(),u.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&s(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!f){let e=(0,o.requestIdleCallback)(()=>s(!0));return()=>(0,o.cancelIdleCallback)(e)}},[i,n,t,f,d.current]),[p,f,(0,r.useCallback)(()=>{s(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41664:function(e,t,n){e.exports=n(98342)}}]);