diff --git a/static/web/404.html b/static/web/404.html index e6848fb65..63d2a1391 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index e6848fb65..63d2a1391 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/PXrLrLwN0xe5zsQnjdW_Y/_buildManifest.js b/static/web/_next/static/PXrLrLwN0xe5zsQnjdW_Y/_buildManifest.js deleted file mode 100644 index 0f4a54927..000000000 --- a/static/web/_next/static/PXrLrLwN0xe5zsQnjdW_Y/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,a,c,e,i,t,n,d,f,h,o,m,b,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[m,b,l,s,t,n,f,u,k,_,w,v,"static/chunks/9358-4680e4896298cbd2.js",h,r,y,"static/css/88e696b24c18d1ea.css","static/chunks/pages/index-4d76e82174dd5550.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,n,d,o,k,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-3176829e7059317f.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-ffe8732ccbc0256e.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-e6982b17ca2b6d30.js"],"/admin/chat/messages":[I,a,s,c,e,i,n,B,F,"static/chunks/pages/admin/chat/messages-574b118b6708bb45.js"],"/admin/chat/users":[I,a,s,c,e,i,t,n,B,F,"static/chunks/pages/admin/chat/users-4eca8d7ae4b4f4d0.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-60cf4efa879df43b.js"],"/admin/config-federation":["static/chunks/1829-b015b4e5cd814fc8.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-162a41a161f6bd5a.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-aee7dee7c0ddef1c.js",a,s,c,e,g,"static/chunks/9257-d713fc824ad40552.js",A,"static/chunks/pages/admin/config-public-details-f2c8c0e20cfe4aef.js"],"/admin/config-server-details":[D,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[a,s,c,e,A,"static/chunks/pages/admin/config-social-items-0c9506f9b2b2acaf.js"],"/admin/config-storage":["static/chunks/5473-ecd3fd646bf241fd.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[a,s,c,e,D,"static/chunks/4812-9c96405be4c6ddd3.js","static/chunks/pages/admin/config-video-67dd9ceeab2a8d04.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-e31f1858274d3033.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-9a4b0ecf039c6197.js"],"/admin/hardware-info":[j,i,t,d,o,p,g,"static/chunks/pages/admin/hardware-info-2cb40bf1c957de96.js"],"/admin/help":[t,d,v,"static/chunks/5566-d74e7fd6b2bc806a.js","static/chunks/pages/admin/help-635a866be914f510.js"],"/admin/logs":[a,s,c,e,i,k,"static/chunks/pages/admin/logs-2296627de57047d9.js"],"/admin/stream-health":[j,i,t,d,o,p,"static/chunks/6610-d5a140d3395ae209.js","static/chunks/pages/admin/stream-health-897a4c79610a240c.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/3812-73e73ff4fa8c15d9.js","static/chunks/pages/admin/upgrade-a2690af66d4d3214.js"],"/admin/viewer-info":[j,a,s,c,e,i,t,n,d,o,p,g,"static/chunks/pages/admin/viewer-info-fcaef066e0a36623.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-31e1e30a1af46238.js"],"/embed/chat/readonly":[m,b,f,u,h,r,"static/css/87104b15c089124a.css","static/chunks/pages/embed/chat/readonly-7d52555642af387d.js"],"/embed/chat/readwrite":[m,b,s,f,u,h,r,"static/css/38031c0e461b403f.css","static/chunks/pages/embed/chat/readwrite-b54f76d80455488b.js"],"/embed/video":[l,n,f,_,w,h,y,"static/css/50d4ea374f37f0f9.css","static/chunks/pages/embed/video-b921529d7c1b6a75.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-97c724332d1a5798.js","static/chunks/8939-29079579e398192c.js","static/chunks/3698-68c12d00e813fbb1.js","static/chunks/3626-6e2d5f9ad5a28e5a.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/2944-2a9b62dad629aca2.js","static/chunks/9764-3705d4c034a766fe.js","static/chunks/5315-0e7e74a6fb9533c3.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-18f6a7fa5034eeb3.js","static/chunks/4763-a050d4b408cb3260.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-579ef58c933db91c.js","static/chunks/7364-aaa393afe6bb8ebd.js","static/chunks/2429-38af9f180f370b65.js","static/chunks/8763-3aa1a6c3e214b143.js","static/chunks/7910-c80aab5f0058b5c3.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-e5a704c6afec0fd3.js","static/css/7c735c05af084bb2.css","static/chunks/2860-6233db10d7394b17.js","static/chunks/1082-c86716156ee6f510.js","static/chunks/2854-adab6ebb159dfcfb.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9189-200a9342100c92dd.js","static/chunks/9640-e282810d6fb4f58d.js","static/chunks/2877-6ed259e27dba66ad.js","static/chunks/3286-a15aa91d3d2fc97f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2860-6233db10d7394b17.js b/static/web/_next/static/chunks/2860-6233db10d7394b17.js deleted file mode 100644 index db61bce78..000000000 --- a/static/web/_next/static/chunks/2860-6233db10d7394b17.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2860],{71578:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(1413),i=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z"}}]},name:"bell",theme:"filled"},o=r(42135),s=function(t,e){return i.createElement(o.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:e,icon:a}))};s.displayName="BellFilled";var u=i.forwardRef(s)},24019:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(1413),i=r(67294),a={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 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},o=r(42135),s=function(t,e){return i.createElement(o.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:e,icon:a}))};s.displayName="ClockCircleOutlined";var u=i.forwardRef(s)},34447:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(1413),i=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]},name:"heart",theme:"filled"},o=r(42135),s=function(t,e){return i.createElement(o.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:e,icon:a}))};s.displayName="HeartFilled";var u=i.forwardRef(s)},60562:function(t,e,r){"use strict";r.d(e,{Au:function(){return i},G3:function(){return h},Ki:function(){return a},d3:function(){return f},hL:function(){return c},lx:function(){return p},qX:function(){return l},tm:function(){return u}});var n=r(58908),i=function(t){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},a=function(t){return t instanceof Uint8Array?t:(Array.isArray(t)||i(t)||t instanceof ArrayBuffer||(t="number"!==typeof t||"number"===typeof t&&t!==t?0:[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},o=r.n(n)().BigInt||Number,s=[o("0x1"),o("0x100"),o("0x10000"),o("0x1000000"),o("0x100000000"),o("0x10000000000"),o("0x1000000000000"),o("0x100000000000000"),o("0x10000000000000000")],u=(function(){var t=new Uint16Array([65484]),e=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);255===e[0]||e[0]}(),function(t,e){var r=void 0===e?{}:e,n=r.signed,i=void 0!==n&&n,u=r.le,c=void 0!==u&&u;t=a(t);var f=c?"reduce":"reduceRight",l=(t[f]?t[f]:Array.prototype[f]).call(t,(function(e,r,n){var i=c?n:Math.abs(n+1-t.length);return e+o(r)*s[i]}),o(0));if(i){var p=s[t.length]/o(2)-o(1);(l=o(l))>p&&(l-=p,l-=p,l-=o(2))}return Number(l)}),c=function(t,e){var r=(void 0===e?{}:e).le,n=void 0!==r&&r;("bigint"!==typeof t&&"number"!==typeof t||"number"===typeof t&&t!==t)&&(t=0),t=o(t);for(var i,a=(i=t,Math.ceil(function(t){return t.toString(2).length}(i)/8)),u=new Uint8Array(new ArrayBuffer(a)),c=0;c=e.length&&c.call(e,(function(e,r){return e===(u[r]?u[r]&t[o+r]:t[o+r])}))}},92260:function(t,e,r){"use strict";r.d(e,{Hi:function(){return d},Jg:function(){return f},KL:function(){return l},_5:function(){return p},kS:function(){return c},lA:function(){return m},p7:function(){return h},ws:function(){return u},xz:function(){return g}});var n=r(58908),i=r.n(n),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],u=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,r){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)})):t},c=function(t){void 0===t&&(t="");var e=t.split(","),r=[];return e.forEach((function(t){var e;t=t.trim(),o.forEach((function(n){var i=a[n].exec(t.toLowerCase());if(i&&!(i.length<=1)){e=n;var o=t.substring(0,i[1].length),s=t.replace(o,"");r.push({type:o,details:s,mediaType:n})}})),e||r.push({type:t,details:"",mediaType:"unknown"})})),r},f=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var r=t.mediaGroups.AUDIO[e];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return c(i.playlists[0].attributes.CODECS)}return null},l=function(t){return void 0===t&&(t=""),a.audio.test(t.trim().toLowerCase())},p=function(t){if(t&&"string"===typeof t){var e,r=t.toLowerCase().split(",").map((function(t){return u(t.trim())})),n="video";1===r.length&&l(r[0])?n="audio":1===r.length&&(void 0===(e=r[0])&&(e=""),a.text.test(e.trim().toLowerCase()))&&(n="application");var i="mp4";return r.every((function(t){return a.mp4.test(t)}))?i="mp4":r.every((function(t){return a.webm.test(t)}))?i="webm":r.every((function(t){return a.ogg.test(t)}))&&(i="ogg"),n+"/"+i+';codecs="'+t+'"'}},h=function(t){return void 0===t&&(t=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(p(t))||!1},d=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every((function(t){t=t.trim();for(var e=0;er;){var a=t[r],o=0,s=0,u=t[++s];for(s++;128&u;)o=(127&u)<<7,u=t[s],s++;o+=127&u;for(var c=0;c>>0,c=e.subarray(s+4,s+8);if(0===u)break;var f=s+u;if(f>e.length){if(n)break;f=e.length}var l=e.subarray(s+8,f);(0,i.G3)(c,r[0])&&(1===r.length?o.push(l):o.push.apply(o,t(l,r.slice(1),n))),s=f}return o},u={EBML:(0,i.Ki)([26,69,223,163]),DocType:(0,i.Ki)([66,130]),Segment:(0,i.Ki)([24,83,128,103]),SegmentInfo:(0,i.Ki)([21,73,169,102]),Tracks:(0,i.Ki)([22,84,174,107]),Track:(0,i.Ki)([174]),TrackNumber:(0,i.Ki)([215]),DefaultDuration:(0,i.Ki)([35,227,131]),TrackEntry:(0,i.Ki)([174]),TrackType:(0,i.Ki)([131]),FlagDefault:(0,i.Ki)([136]),CodecID:(0,i.Ki)([134]),CodecPrivate:(0,i.Ki)([99,162]),VideoTrack:(0,i.Ki)([224]),AudioTrack:(0,i.Ki)([225]),Cluster:(0,i.Ki)([31,67,182,117]),Timestamp:(0,i.Ki)([231]),TimestampScale:(0,i.Ki)([42,215,177]),BlockGroup:(0,i.Ki)([160]),BlockDuration:(0,i.Ki)([155]),Block:(0,i.Ki)([161]),SimpleBlock:(0,i.Ki)([163])},c=[128,64,32,16,8,4,2,1],f=function(t,e,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var a=function(t){for(var e=1,r=0;r=r.length)return r.length;var a=f(r,n,!1);if((0,i.G3)(e.bytes,a.bytes))return n;var o=f(r,n+a.length);return t(e,r,n+o.length+o.value+a.length)},h=function t(e,r){r=function(t){return Array.isArray(t)?t.map((function(t){return l(t)})):[l(t)]}(r),e=(0,i.Ki)(e);var n=[];if(!r.length)return n;for(var a=0;ae.length?e.length:u+s.value,h=e.subarray(u,c);(0,i.G3)(r[0],o.bytes)&&(1===r.length?n.push(h):n=n.concat(t(h,r.slice(1)))),a+=o.length+s.length+h.length}return n},d=r(68925),m=(0,i.Ki)([0,0,0,1]),g=(0,i.Ki)([0,0,1]),v=(0,i.Ki)([0,0,3]),y=function(t){for(var e=[],r=1;r>1&63),-1!==r.indexOf(c)&&(a=o+u),o+=u+("h264"===e?1:2)}else o++}return t.subarray(0,0)},w={webm:(0,i.Ki)([119,101,98,109]),matroska:(0,i.Ki)([109,97,116,114,111,115,107,97]),flac:(0,i.Ki)([102,76,97,67]),ogg:(0,i.Ki)([79,103,103,83]),ac3:(0,i.Ki)([11,119]),riff:(0,i.Ki)([82,73,70,70]),avi:(0,i.Ki)([65,86,73]),wav:(0,i.Ki)([87,65,86,69]),"3gp":(0,i.Ki)([102,116,121,112,51,103]),mp4:(0,i.Ki)([102,116,121,112]),fmp4:(0,i.Ki)([115,116,121,112]),mov:(0,i.Ki)([102,116,121,112,113,116]),moov:(0,i.Ki)([109,111,111,118]),moof:(0,i.Ki)([109,111,111,102])},E={aac:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=h(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.webm)},mkv:function(t){var e=h(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.matroska)},mp4:function(t){return!E["3gp"](t)&&!E.mov(t)&&(!(!(0,i.G3)(t,w.mp4,{offset:4})&&!(0,i.G3)(t,w.fmp4,{offset:4}))||(!(!(0,i.G3)(t,w.moof,{offset:4})&&!(0,i.G3)(t,w.moov,{offset:4}))||void 0))},mov:function(t){return(0,i.G3)(t,w.mov,{offset:4})},"3gp":function(t){return(0,i.G3)(t,w["3gp"],{offset:4})},ac3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,w.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+1880}},36722:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(58908),i=r.n(n),a=r(48764).lW;function o(t){for(var e,r=(e=t,i().atob?i().atob(e):a.from(e,"base64").toString("binary")),n=new Uint8Array(r.length),o=0;o>4?i+20:i+10}(e,r),t(e,r))}},8485:function(t,e,r){"use strict";r.d(e,{t:function(){return a}});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,i=/^application\/dash\+xml/i,a=function(t){return n.test(t)?"hls":i.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null}},80779:function(t,e,r){"use strict";var n=r(49945),i=r.n(n),a=r(58908),o=r.n(a),s="http://example.com";e.Z=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=o().location&&o().location.href||"");var r="function"===typeof o().URL,n=/^\/\//.test(t),a=!o().location&&!/\/\//i.test(t);if(r?t=new(o().URL)(t,o().location||s):/\/\//i.test(t)||(t=i().buildAbsoluteURL(o().location&&o().location.href||"",t)),r){var u=new URL(e,t);return a?u.href.slice(s.length):n?u.href.slice(u.protocol.length):u.href}return i().buildAbsoluteURL(t,e)}},13490:function(t,e,r){"use strict";var n=r(58908);t.exports=function(t,e){return void 0===e&&(e=!1),function(r,i,a){if(r)t(r);else if(i.statusCode>=400&&i.statusCode<=599){var o=a;if(e)if(n.TextDecoder){var s=function(t){void 0===t&&(t="");return t.toLowerCase().split(";").reduce((function(t,e){var r=e.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():t}),"utf-8")}(i.headers&&i.headers["content-type"]);try{o=new TextDecoder(s).decode(a)}catch(u){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));t({cause:o})}else t(null,a)}}},9603:function(t,e,r){"use strict";var n=r(58908),i=r(10434),a=r(27376);s.httpHandler=r(13490);function o(t,e,r){var n=t;return a(e)?(r=e,"string"===typeof t&&(n={uri:t})):n=i({},e,{uri:t}),n.callback=r,n}function s(t,e,r){return u(e=o(t,e,r))}function u(t){if("undefined"===typeof t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(r){}return null}(c),g)try{t=JSON.parse(t)}catch(e){}return t}function i(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,v)}function a(){if(!u){var e;clearTimeout(f),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=v,a=null;return 0!==e?(i={body:n(),statusCode:e,method:p,headers:{},url:l,rawRequest:c},c.getAllResponseHeaders&&(i.headers=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var r=t.indexOf(":"),n=t.slice(0,r).trim().toLowerCase(),i=t.slice(r+1).trim();"undefined"===typeof e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]})),e):e}(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),r(a,i,i.body)}}var o,u,c=t.xhr||null;c||(c=t.cors||t.useXDR?new s.XDomainRequest:new s.XMLHttpRequest);var f,l=c.url=t.uri||t.url,p=c.method=t.method||"GET",h=t.body||t.data,d=c.headers=t.headers||{},m=!!t.sync,g=!1,v={body:void 0,headers:{},statusCode:0,method:p,url:l,rawRequest:c};if("json"in t&&!1!==t.json&&(g=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),h=JSON.stringify(!0===t.json?h:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=i,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=i,c.open(p,l,!m,t.username,t.password),m||(c.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(f=setTimeout((function(){if(!u){u=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),c.setRequestHeader)for(o in d)d.hasOwnProperty(o)&&c.setRequestHeader(o,d[o]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"===typeof t.beforeSend&&t.beforeSend(c),c.send(h||null),c}t.exports=s,t.exports.default=s,s.XMLHttpRequest=n.XMLHttpRequest||function(){},s.XDomainRequest="withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r=e+r||e?new java.lang.String(t,e,r)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}l.prototype.parseFromString=function(t,e){var r=this.options,n=new f,i=r.domBuilder||new p,o=r.errorHandler,s=r.locator,c=r.xmlns||{},l=/\/x?html?$/.test(e),h=l?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&i.setDocumentLocator(s),n.errorHandler=function(t,e,r){if(!t){if(e instanceof p)return e;t=e}var n={},i=t instanceof Function;function a(e){var a=t[e];!a&&i&&(a=2==t.length?function(r){t(e,r)}:t),n[e]=a&&function(t){a("[xmldom "+e+"]\t"+t+d(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}(o,i,s),n.domBuilder=r.domBuilder||i,l&&(c[""]=u.HTML),c.xml=c.xml||u.XML,t&&"string"===typeof t?n.parse(t,c,h):n.errorHandler.error("invalid doc source"),i.doc},p.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var i=this.doc,a=i.createElementNS(t,r||e),o=n.length;g(this,a),this.currentElement=a,this.locator&&h(this.locator,a);for(var s=0;s=0))throw C(A,new Error(t.tagName+"@"+r));for(var i=e.length-1;n"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function _(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(_(t,e))return!0}while(t=t.nextSibling)}function Z(){}function X(t,e,r,i){t&&t._inc++,r.namespaceURI===n.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function j(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a}}}function z(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,j(t.ownerDocument,t),e}function F(t,e,r){var n=e.parentNode;if(n&&n.removeChild(e),e.nodeType===w){var i=e.firstChild;if(null==i)return e;var a=e.lastChild}else i=a=e;var o=r?r.previousSibling:t.lastChild;i.previousSibling=o,a.nextSibling=r,o?o.nextSibling=i:t.firstChild=i,null==r?t.lastChild=a:r.previousSibling=a;do{i.parentNode=t}while(i!==a&&(i=i.nextSibling));return j(t.ownerDocument||t,t),e.nodeType==w&&(e.firstChild=e.lastChild=null),e}function q(){this._nsMap={}}function H(){}function K(){}function G(){}function V(){}function W(){}function Y(){}function $(){}function J(){}function Q(){}function tt(){}function et(){}function rt(){}function nt(t,e){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i&&null==(i=n.lookupPrefix(a)))var o=[{namespace:a,prefix:null}];return ot(this,r,t,e,o),r.join("")}function it(t,e,r){var i=t.prefix||"",a=t.namespaceURI;if(!a)return!1;if("xml"===i&&a===n.XML||a===n.XMLNS)return!1;for(var o=r.length;o--;){var s=r[o];if(s.prefix===i)return s.namespace!==a}return!0}function at(t,e,r){t.push(" ",e,'="',r.replace(/[<&"]/g,B),'"')}function ot(t,e,r,i,a){if(a||(a=[]),i){if(!(t=i(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case f:var o=t.attributes,s=o.length,u=t.firstChild,c=t.tagName,m=c;if(!(r=n.isHTML(t.namespaceURI)||r)&&!t.prefix&&t.namespaceURI){for(var E,T=0;T=0;N--){if(""===(S=a[N]).prefix&&S.namespace===t.namespaceURI){E=S.namespace;break}}if(E!==t.namespaceURI)for(N=a.length-1;N>=0;N--){var S;if((S=a[N]).namespace===t.namespaceURI){S.prefix&&(m=S.prefix+":"+c);break}}}e.push("<",m);for(var A=0;A"),r&&/^script$/i.test(c))for(;u;)u.data?e.push(u.data):ot(u,e,r,i,a.slice()),u=u.nextSibling;else for(;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;e.push("")}else e.push("/>");return;case y:case w:for(u=t.firstChild;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;return;case l:return at(e,t.name,t.value);case p:return e.push(t.data.replace(/[<&]/g,B).replace(/]]>/g,"]]>"));case h:return e.push("");case v:return e.push("\x3c!--",t.data,"--\x3e");case b:var O=t.publicId,R=t.systemId;if(e.push("");else if(R&&"."!=R)e.push(" SYSTEM ",R,">");else{var D=t.internalSubset;D&&e.push(" [",D,"]"),e.push(">")}return;case g:return e.push("");case d:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function st(t,e,r){var n;switch(e.nodeType){case f:(n=e.cloneNode(!1)).ownerDocument=t;case w:break;case l:r=!0}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var i=e.firstChild;i;)n.appendChild(st(t,i,r)),i=i.nextSibling;return n}function ut(t,e,r){var n=new e.constructor;for(var i in e){var a=e[i];"object"!=typeof a&&a!=n[i]&&(n[i]=a)}switch(e.childNodes&&(n.childNodes=new I),n.ownerDocument=t,n.nodeType){case f:var o=e.attributes,s=n.attributes=new D,u=o.length;s._ownerElement=n;for(var c=0;c0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r)for(var n in r)if(r[n]==t)return n;e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r)return r[t];e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},s(c,k),s(c,k.prototype),Z.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==w){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return null==this.documentElement&&t.nodeType==f&&(this.documentElement=t),F(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),z(this,t)},importNode:function(t,e){return st(this,t,e)},getElementById:function(t){var e=null;return _(this.documentElement,(function(r){if(r.nodeType==f&&r.getAttribute("id")==t)return e=r,!0})),e},getElementsByClassName:function(t){var e=o(t);return new O(this,(function(r){var n=[];return e.length>0&&_(r.documentElement,(function(i){if(i!==r&&i.nodeType===f){var a=i.getAttribute("class");if(a){var s=t===a;if(!s){var u=o(a);s=e.every((c=u,function(t){return c&&-1!==c.indexOf(t)}))}s&&n.push(i)}}var c})),n}))},createElement:function(t){var e=new q;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new I,(e.attributes=new D)._ownerElement=e,e},createDocumentFragment:function(){var t=new tt;return t.ownerDocument=this,t.childNodes=new I,t},createTextNode:function(t){var e=new G;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new V;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new W;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new et;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new H;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Q;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new q,n=e.split(":"),i=r.attributes=new D;return r.childNodes=new I,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,i._ownerElement=r,r},createAttributeNS:function(t,e){var r=new H,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}},u(Z,k),q.prototype={nodeType:f,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===w?this.insertBefore(t,null):function(t,e){var r=e.parentNode;if(r){var n=t.lastChild;r.removeChild(e),n=t.lastChild}return n=t.lastChild,e.parentNode=t,e.previousSibling=n,e.nextSibling=null,n?n.nextSibling=e:t.firstChild=e,t.lastChild=e,j(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new O(this,(function(e){var r=[];return _(e,(function(n){n===e||n.nodeType!=f||"*"!==t&&n.tagName!=t||r.push(n)})),r}))},getElementsByTagNameNS:function(t,e){return new O(this,(function(r){var n=[];return _(r,(function(i){i===r||i.nodeType!==f||"*"!==t&&i.namespaceURI!==t||"*"!==e&&i.localName!=e||n.push(i)})),n}))}},Z.prototype.getElementsByTagName=q.prototype.getElementsByTagName,Z.prototype.getElementsByTagNameNS=q.prototype.getElementsByTagNameNS,u(q,k),H.prototype.nodeType=l,u(H,k),K.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(N[S])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},u(K,k),G.prototype={nodeName:"#text",nodeType:p,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(G,K),V.prototype={nodeName:"#comment",nodeType:v},u(V,K),W.prototype={nodeName:"#cdata-section",nodeType:h},u(W,K),Y.prototype.nodeType=b,u(Y,k),$.prototype.nodeType=E,u($,k),J.prototype.nodeType=m,u(J,k),Q.prototype.nodeType=d,u(Q,k),tt.prototype.nodeName="#document-fragment",tt.prototype.nodeType=w,u(tt,k),et.prototype.nodeType=g,u(et,k),rt.prototype.serializeToString=function(t,e,r){return nt.call(t,e,r)},k.prototype.toString=nt;try{if(Object.defineProperty){function ft(t){switch(t.nodeType){case f:case w:var e=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&e.push(ft(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}Object.defineProperty(O.prototype,"length",{get:function(){return R(this),this.$$length}}),Object.defineProperty(k.prototype,"textContent",{get:function(){return ft(this)},set:function(t){switch(this.nodeType){case f:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),ct=function(t,e,r){t["$$"+e]=r}}}catch(lt){}e.DocumentType=Y,e.DOMException=C,e.DOMImplementation=L,e.Element=q,e.Node=k,e.NodeList=I,e.XMLSerializer=rt},31045:function(t,e,r){var n=r(72167).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),e.entityMap=e.HTML_ENTITIES},3969:function(t,e,r){var n=r(41146);n.DOMImplementation,n.XMLSerializer,e.DOMParser=r(86129).DOMParser},76925:function(t,e,r){var n=r(72167).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$");function s(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r,i,a,o){function s(t,e,n){r.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),r.addValue(t,e,n)}for(var u,c=++e,f=0;;){var l=t.charAt(c);switch(l){case"=":if(1===f)u=t.slice(e,c),f=3;else{if(2!==f)throw new Error("attribute equal must after attrName");f=3}break;case"'":case'"':if(3===f||1===f){if(1===f&&(o.warning('attribute value must after "="'),u=t.slice(e,c)),e=c+1,!((c=t.indexOf(l,e))>0))throw new Error("attribute value no end '"+l+"' match");s(u,p=t.slice(e,c).replace(/&#?\w+;/g,a),e-1),f=5}else{if(4!=f)throw new Error('attribute value must after "="');s(u,p=t.slice(e,c).replace(/&#?\w+;/g,a),e),o.warning('attribute "'+u+'" missed start quot('+l+")!!"),e=c+1,f=5}break;case"/":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:f=7,r.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==f&&r.setTagName(t.slice(e,c)),c;case">":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(p=t.slice(e,c)).slice(-1)&&(r.closed=!0,p=p.slice(0,-1));case 2:2===f&&(p=u),4==f?(o.warning('attribute "'+p+'" missed quot(")!'),s(u,p.replace(/&#?\w+;/g,a),e)):(n.isHTML(i[""])&&p.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+p+'" missed value!! "'+p+'" instead!!'),s(p,p,e));break;case 3:throw new Error("attribute value missed!!")}return c;case"\x80":l=" ";default:if(l<=" ")switch(f){case 0:r.setTagName(t.slice(e,c)),f=6;break;case 1:u=t.slice(e,c),f=2;break;case 4:var p=t.slice(e,c).replace(/&#?\w+;/g,a);o.warning('attribute "'+p+'" missed quot(")!!'),s(u,p,e);case 5:f=6}else switch(f){case 2:r.tagName;n.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,e),e=c,f=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:f=1,e=c;break;case 3:f=4,e=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function l(t,e,r){for(var i=t.tagName,a=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value;if((h=u.indexOf(":"))>0)var f=s.prefix=u.slice(0,h),l=u.slice(h+1),p="xmlns"===f&&l;else l=u,f=null,p="xmlns"===u&&"";s.localName=l,!1!==p&&(null==a&&(a={},d(r,r={})),r[p]=a[p]=c,s.uri=n.XMLNS,e.startPrefixMapping(p,c))}for(o=t.length;o--;){(f=(s=t[o]).prefix)&&("xml"===f&&(s.uri=n.XML),"xmlns"!==f&&(s.uri=r[f||""]))}var h;(h=i.indexOf(":"))>0?(f=t.prefix=i.slice(0,h),l=t.localName=i.slice(h+1)):(f=null,l=t.localName=i);var m=t.uri=r[f||""];if(e.startElement(m,l,i,t),!t.closed)return t.currentNSMap=r,t.localNSMap=a,!0;if(e.endElement(m,l,i),a)for(f in a)e.endPrefixMapping(f)}function p(t,e,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var a=t.indexOf("",e),o=t.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return e+1}function h(t,e,r,n){var i=n[r];return null==i&&((i=t.lastIndexOf(""))e?(r.comment(t,e+4,i-e-4),i+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,i-e-9),r.endCDATA(),i+3}var a=function(t,e){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=e,i.exec(t);for(;r=i.exec(t);)if(n.push(r),r[1])return n}(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return r.startDTD(s,u,c),r.endDTD(),f.index+f[0].length}return-1}function g(t,e,r){var n=t.indexOf("?>",e);if(n){var i=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return r.processingInstruction(i[1],i[2]),n+2}return-1}return-1}function v(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,u.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),d(e,e={}),function(t,e,r,i,a){function o(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}function u(t){var e=t.slice(1,-1);return e in r?r[e]:"#"===e.charAt(0)?o(parseInt(e.substr(1).replace("x","0x"))):(a.error("entity not found:"+t),t)}function d(e){if(e>A){var r=t.substring(A,e).replace(/&#?\w+;/g,u);T&&y(A),i.characters(r,0,e-A),A=e}}function y(e,r){for(;e>=w&&(r=E.exec(t));)b=r.index,w=b+r[0].length,T.lineNumber++;T.columnNumber=e-b+1}var b=0,w=0,E=/.*(?:\r\n?|\n)|.*$/g,T=i.locator,N=[{currentNSMap:e}],S={},A=0;for(;;){try{var x=t.indexOf("<",A);if(x<0){if(!t.substr(A).match(/^\s*$/)){var C=i.doc,I=C.createTextNode(t.substr(A));C.appendChild(I),i.currentElement=I}return}switch(x>A&&d(x),t.charAt(x+1)){case"/":var O=t.indexOf(">",x+3),R=t.substring(x+2,O).replace(/[ \t\n\r]+$/g,""),D=N.pop();O<0?(R=t.substring(x+2).replace(/[\s<].*/,""),a.error("end tag name: "+R+" is not complete:"+D.tagName),O=x+1+R.length):R.match(/\sA?A=O:d(Math.max(x,A)+1)}}(t,e,r,i,this.errorHandler),i.endDocument()}},v.prototype={setTagName:function(t){if(!o.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!o.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=u,e.ParseError=s},27049:function(t,e,r){"use strict";var n=r(87462),i=r(4942),a=r(94184),o=r.n(a),s=r(67294),u=r(53124),c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i0?"-".concat(m):m,S=!!y,A="left"===m&&null!=g,x="right"===m&&null!=g,C=o()(T,"".concat(T,"-").concat(h),(e={},(0,i.Z)(e,"".concat(T,"-with-text"),S),(0,i.Z)(e,"".concat(T,"-with-text").concat(N),S),(0,i.Z)(e,"".concat(T,"-dashed"),!!b),(0,i.Z)(e,"".concat(T,"-plain"),!!w),(0,i.Z)(e,"".concat(T,"-rtl"),"rtl"===f),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-left"),A),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-right"),x),e),v),I=(0,n.Z)((0,n.Z)({},A&&{marginLeft:g}),x&&{marginRight:g});return s.createElement("div",(0,n.Z)({className:C},E,{role:"separator"}),y&&"vertical"!==h&&s.createElement("span",{className:"".concat(T,"-inner-text"),style:I},y))}},26303:function(t,e,r){"use strict";r.d(e,{Z:function(){return C}});var n=r(4942),i=r(87462),a=r(71002),o=r(94184),s=r.n(o),u=r(67294),c=r(53124),f=r(98423),l=function(t){var e,r,a=t.prefixCls,o=t.className,c=t.style,f=t.size,l=t.shape,p=s()((e={},(0,n.Z)(e,"".concat(a,"-lg"),"large"===f),(0,n.Z)(e,"".concat(a,"-sm"),"small"===f),e)),h=s()((r={},(0,n.Z)(r,"".concat(a,"-circle"),"circle"===l),(0,n.Z)(r,"".concat(a,"-square"),"square"===l),(0,n.Z)(r,"".concat(a,"-round"),"round"===l),r)),d=u.useMemo((function(){return"number"===typeof f?{width:f,height:f,lineHeight:"".concat(f,"px")}:{}}),[f]);return u.createElement("span",{className:s()(a,p,h,o),style:(0,i.Z)((0,i.Z)({},d),c)})},p=function(t){var e=t.prefixCls,r=t.className,a=t.active,o=t.shape,p=void 0===o?"circle":o,h=t.size,d=void 0===h?"default":h,m=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),g=(0,f.Z)(t,["prefixCls","className"]),v=s()(m,"".concat(m,"-element"),(0,n.Z)({},"".concat(m,"-active"),a),r);return u.createElement("div",{className:v},u.createElement(l,(0,i.Z)({prefixCls:"".concat(m,"-avatar"),shape:p,size:d},g)))},h=function(t){var e,r=t.prefixCls,a=t.className,o=t.active,p=t.block,h=void 0!==p&&p,d=t.size,m=void 0===d?"default":d,g=(0,u.useContext(c.E_).getPrefixCls)("skeleton",r),v=(0,f.Z)(t,["prefixCls"]),y=s()(g,"".concat(g,"-element"),(e={},(0,n.Z)(e,"".concat(g,"-active"),o),(0,n.Z)(e,"".concat(g,"-block"),h),e),a);return u.createElement("div",{className:y},u.createElement(l,(0,i.Z)({prefixCls:"".concat(g,"-button"),size:m},v)))},d=r(1413),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},g=r(42135),v=function(t,e){return u.createElement(g.Z,(0,d.Z)((0,d.Z)({},t),{},{ref:e,icon:m}))};v.displayName="DotChartOutlined";var y=u.forwardRef(v),b=function(t){var e=t.prefixCls,r=t.className,i=t.style,a=t.active,o=t.children,f=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),l=s()(f,"".concat(f,"-element"),(0,n.Z)({},"".concat(f,"-active"),a),r),p=null!==o&&void 0!==o?o:u.createElement(y,null);return u.createElement("div",{className:l},u.createElement("div",{className:s()("".concat(f,"-image"),r),style:i},p))},w=function(t){var e=t.prefixCls,r=t.className,i=t.style,a=t.active,o=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),f=s()(o,"".concat(o,"-element"),(0,n.Z)({},"".concat(o,"-active"),a),r);return u.createElement("div",{className:f},u.createElement("div",{className:s()("".concat(o,"-image"),r),style:i},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(o,"-image-svg")},u.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(o,"-image-path")}))))},E=function(t){var e,r=t.prefixCls,a=t.className,o=t.active,p=t.block,h=t.size,d=void 0===h?"default":h,m=(0,u.useContext(c.E_).getPrefixCls)("skeleton",r),g=(0,f.Z)(t,["prefixCls"]),v=s()(m,"".concat(m,"-element"),(e={},(0,n.Z)(e,"".concat(m,"-active"),o),(0,n.Z)(e,"".concat(m,"-block"),p),e),a);return u.createElement("div",{className:v},u.createElement(l,(0,i.Z)({prefixCls:"".concat(m,"-input"),size:d},g)))},T=r(74902),N=function(t){var e=function(e){var r=t.width,n=t.rows,i=void 0===n?2:n;return Array.isArray(r)?r[e]:i-1===e?r:void 0},r=t.prefixCls,n=t.className,i=t.style,a=t.rows,o=(0,T.Z)(Array(a)).map((function(t,r){return u.createElement("li",{key:r,style:{width:e(r)}})}));return u.createElement("ul",{className:s()(r,n),style:i},o)},S=function(t){var e=t.prefixCls,r=t.className,n=t.width,a=t.style;return u.createElement("h3",{className:s()(e,r),style:(0,i.Z)({width:n},a)})};function A(t){return t&&"object"===(0,a.Z)(t)?t:{}}var x=function(t){var e=t.prefixCls,r=t.loading,a=t.className,o=t.style,f=t.children,p=t.avatar,h=void 0!==p&&p,d=t.title,m=void 0===d||d,g=t.paragraph,v=void 0===g||g,y=t.active,b=t.round,w=u.useContext(c.E_),E=w.getPrefixCls,T=w.direction,x=E("skeleton",e);if(r||!("loading"in t)){var C,I,O,R=!!h,D=!!m,M=!!v;if(R){var P=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-avatar")},function(t,e){return t&&!e?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(D,M)),A(h));I=u.createElement("div",{className:"".concat(x,"-header")},u.createElement(l,(0,i.Z)({},P)))}if(D||M){var U,L;if(D){var k=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-title")},function(t,e){return!t&&e?{width:"38%"}:t&&e?{width:"50%"}:{}}(R,M)),A(m));U=u.createElement(S,(0,i.Z)({},k))}if(M){var B=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-paragraph")},function(t,e){var r={};return t&&e||(r.width="61%"),r.rows=!t&&e?3:2,r}(R,D)),A(v));L=u.createElement(N,(0,i.Z)({},B))}O=u.createElement("div",{className:"".concat(x,"-content")},U,L)}var _=s()(x,(C={},(0,n.Z)(C,"".concat(x,"-with-avatar"),R),(0,n.Z)(C,"".concat(x,"-active"),y),(0,n.Z)(C,"".concat(x,"-rtl"),"rtl"===T),(0,n.Z)(C,"".concat(x,"-round"),b),C),a);return u.createElement("div",{className:_,style:o},I,O)}return"undefined"!==typeof f?f:null};x.Button=h,x.Avatar=p,x.Input=E,x.Image=w,x.Node=b;var C=x},11382:function(t,e,r){"use strict";var n=r(87462),i=r(4942),a=r(15671),o=r(43144),s=r(60136),u=r(33643),c=r(94184),f=r.n(c),l=r(23279),p=r.n(l),h=r(98423),d=r(67294),m=r(53124),g=r(96159),v=r(93355),y=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i0?o-4:o;for(r=0;r>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,u=n-i;su?u:s+o));1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return a.join("")};for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,n){for(var i,a,o=[],s=e;s>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(t,e,r){"use strict";var n=r(79742),i=r(80645),a="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=u,e.h2=50;var o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|m(t,e),n=s(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(j(t,Uint8Array)){var e=new Uint8Array(t);return h(e.buffer,e.byteOffset,e.byteLength)}return p(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(j(t,ArrayBuffer)||t&&j(t.buffer,ArrayBuffer))return h(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(j(t,SharedArrayBuffer)||t&&j(t.buffer,SharedArrayBuffer)))return h(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!==typeof t.length||z(t.length)?s(0):p(t);if("Buffer"===t.type&&Array.isArray(t.data))return p(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),s(t<0?0:0|d(t))}function p(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(t).length;default:if(i)return n?-1:_(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),z(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var l=!0,p=0;pi&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128===(192&(a=t[i+1]))&&(u=(31&c)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nn.length?u.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),c=this.slice(n,i),f=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return T(this,t,e,r);case"base64":return N(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function I(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function U(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,n,a){return e=+e,r>>>=0,a||U(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function k(t,e,r,n,a){return e=+e,r>>>=0,a||U(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return k(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return k(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(a=e;a55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Z(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function X(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function z(t){return t!==t}var F=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},86559:function(t,e,r){"use strict";r.d(e,{Z:function(){return g}});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(t,e,r){var i,a=n[t];return i="string"===typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function a(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(t,e,r,n){return s[t]};function c(t){return function(e,r){var n;if("formatting"===(null!==r&&void 0!==r&&r.context?String(r.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!==r&&void 0!==r&&r.width?String(r.width):i;n=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,s=null!==r&&void 0!==r&&r.width?String(r.width):t.defaultWidth;n=t.values[s]||t.values[o]}return n[t.argumentCallback?t.argumentCallback(e):e]}}var f={ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:c({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:c({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:c({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function l(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var o,s=a[0],u=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?h(u,(function(t){return t.test(s)})):p(u,(function(t){return t.test(s)}));o=t.valueCallback?t.valueCallback(c):c,o=r.valueCallback?r.valueCallback(o):o;var f=e.slice(s.length);return{value:o,rest:f}}}function p(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function h(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(d.matchPattern);if(!r)return null;var n=r[0],i=t.match(d.parsePattern);if(!i)return null;var a=d.valueCallback?d.valueCallback(i[0]):i[0];a=e.valueCallback?e.valueCallback(a):a;var o=t.slice(n.length);return{value:a,rest:o}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},g={code:"en-US",formatDistance:i,formatLong:o,formatRelative:u,localize:f,match:m,options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(t,e,r){"use strict";r.d(e,{j:function(){return i}});var n={};function i(){return n}},24262:function(t,e,r){"use strict";function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}r.d(e,{Z:function(){return n}})},83946:function(t,e,r){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}r.d(e,{Z:function(){return n}})},77349:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);return isNaN(o)?new Date(NaN):o?(r.setDate(r.getDate()+o),r):r}},11640:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);if(isNaN(o))return new Date(NaN);if(!o)return r;var s=r.getDate(),u=new Date(r.getTime());u.setMonth(r.getMonth()+o+1,0);var c=u.getDate();return s>=c?u:(r.setFullYear(u.getFullYear(),u.getMonth(),s),r)}},75401:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(24262),i=r(19013),a=r(13882);function o(t){(0,a.Z)(1,arguments);var e=(0,i.Z)(t);return e.setHours(0,0,0,0),e}var s=864e5;function u(t,e){(0,a.Z)(2,arguments);var r=o(t),i=o(e),u=r.getTime()-(0,n.Z)(r),c=i.getTime()-(0,n.Z)(i);return Math.round((u-c)/s)}},68730:function(t,e,r){"use strict";r.d(e,{Z:function(){return N}});var n=r(49474),i=r(77349),a=r(11640),o=r(19013),s=r(13882),u=r(83946);function c(t){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e){if((0,s.Z)(2,arguments),!e||"object"!==c(e))return new Date(NaN);var r=e.years?(0,u.Z)(e.years):0,n=e.months?(0,u.Z)(e.months):0,f=e.weeks?(0,u.Z)(e.weeks):0,l=e.days?(0,u.Z)(e.days):0,p=e.hours?(0,u.Z)(e.hours):0,h=e.minutes?(0,u.Z)(e.minutes):0,d=e.seconds?(0,u.Z)(e.seconds):0,m=(0,o.Z)(t),g=n||r?(0,a.Z)(m,n+12*r):m,v=l||f?(0,i.Z)(g,l+7*f):g,y=h+60*p,b=d+60*y,w=1e3*b,E=new Date(v.getTime()+w);return E}var l=r(75401);function p(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function h(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e),i=p(r,n),a=Math.abs((0,l.Z)(r,n));r.setDate(r.getDate()-i*a);var u=Number(p(r,n)===-i),c=i*(a-u);return 0===c?0:c}Math.pow(10,8);var d=36e5,m=r(59910),g=r(93645);function v(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/d;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}function y(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/6e4;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}var b=r(82161),w=r(11699);function E(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e);return r.getFullYear()-n.getFullYear()}function T(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),i=(0,o.Z)(e),a=(0,n.Z)(r,i),u=Math.abs(E(r,i));r.setFullYear(1584),i.setFullYear(1584);var c=(0,n.Z)(r,i)===-a,f=a*(u-Number(c));return 0===f?0:f}function N(t){(0,s.Z)(1,arguments);var e=(0,o.Z)(t.start),r=(0,o.Z)(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(r.getTime()))throw new RangeError("End Date is invalid");var i={};i.years=Math.abs(T(r,e));var a=(0,n.Z)(r,e),u=f(e,{years:a*i.years});i.months=Math.abs((0,b.Z)(r,u));var c=f(u,{months:a*i.months});i.days=Math.abs(h(r,c));var l=f(c,{days:a*i.days});i.hours=Math.abs(v(r,l));var p=f(l,{hours:a*i.hours});i.minutes=Math.abs(y(r,p));var d=f(p,{minutes:a*i.minutes});return i.seconds=Math.abs((0,w.Z)(r,d)),i}},89144:function(t,e,r){var n,i="undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:{},a=r(25893);"undefined"!==typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n},58908:function(t,e,r){var n;n="undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{},t.exports=n},80645:function(t,e){e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<>1,f=-7,l=r?i-1:0,p=r?-1:1,h=t[e+l];for(l+=p,a=h&(1<<-f)-1,h>>=-f,f+=s;f>0;a=256*a+t[e+l],l+=p,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+l],l+=p,f-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),a-=c}return(h?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,c=8*a-i-1,f=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+l>=1?p/u:p*Math.pow(2,1-l))*u>=2&&(o++,u/=2),o+l>=f?(s=0,o=f):o+l>=1?(s=(e*u-1)*Math.pow(2,i),o+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[r+h]=255&s,h+=d,s/=256,i-=8);for(o=o<0;t[r+h]=255&o,h+=d,o/=256,c-=8);t[r+h-d]|=128*m}},27376:function(t){t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"===typeof t&&"[object RegExp]"!==r||"undefined"!==typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},27537:function(t,e){function r(t){if(t&&"object"===typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"===typeof t)return o[t];var r,a=String(t);return(r=n[a.toLowerCase()])?r:(r=i[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}r.isEventKey=function(t,e){if(t&&"object"===typeof t){var r=t.which||t.keyCode||t.charCode;if(null===r||void 0===r)return!1;if("string"===typeof e){var a;if(a=n[e.toLowerCase()])return a===r;if(a=i[e.toLowerCase()])return a===r}else if("number"===typeof e)return e===r;return!1}};var n=(e=t.exports=r).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":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,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var o=e.names=e.title={};for(a in n)o[n[a]]=a;for(var s in i)n[s]=i[s]},9323:function(t,e,r){"use strict";r.d(e,{_b:function(){return m}});var n=r(94578),i=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var r=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(r,1),r>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var r=e.length,n=0;n-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(i),c=String.fromCharCode(9),f=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return e[1]&&(r.length=parseInt(e[1],10)),e[2]&&(r.offset=parseInt(e[2],10)),r},l=function(t){for(var e,r=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},i=r.length;i--;)""!==r[i]&&((e=/([^=]*)=(.*)/.exec(r[i]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},p=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}(0,n.Z)(e,t);var r=e.prototype;return r.push=function(t){var e,r,n=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce((function(e,r){var n=r(t);return n===t?e:e.concat([n])}),[t]).forEach((function(t){for(var i=0;i0&&(f.duration=t.duration),0===t.duration&&(f.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=c},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("com.microsoft.playready"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:(0,s.Z)(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},"undefined"!==typeof t.attributes.IV&&(n.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,v=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange),n&&(r.key=n)},"stream-inf":function(){this.manifest.playlists=c,this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes?(f.attributes||(f.attributes={}),(0,a.Z)(f.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var r=this.manifest.mediaGroups[t.attributes.TYPE];r[t.attributes["GROUP-ID"]]=r[t.attributes["GROUP-ID"]]||{},e=r[t.attributes["GROUP-ID"]],(o={default:/yes/i.test(t.attributes.DEFAULT)}).default?o.autoselect=!0:o.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(o.language=t.attributes.LANGUAGE),t.attributes.URI&&(o.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(o.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(o.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(o.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=o}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){v+=1,f.discontinuity=!0,this.manifest.discontinuityStarts.push(c.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),f.dateTimeString=t.dateTimeString,f.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,d.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){f.cueOut=t.data},"cue-out-cont":function(){f.cueOutCont=t.data},"cue-in":function(){f.cueIn=t.data},skip:function(){this.manifest.skip=h(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;l=!0;var r=this.manifest.segments.length,n=h(t.attributes);f.parts=f.parts||[],f.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=b),b=n.byterange.offset+n.byterange.length);var i=f.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+r,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(t,r){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+r+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var e=this.manifest.serverControl=h(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),d.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,r=h(t.attributes),n=r.type&&"PART"===r.type;f.preloadHints=f.preloadHints||[],f.preloadHints.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=n?b:0,n&&(b=r.byterange.offset+r.byterange.length)));var i=f.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+e,t.attributes,["TYPE","URI"]),r.type)for(var a=0;ae.timeline?1:-1}));var e,r},I=function(t){var e,r,n=[];return e=t,r=function(t,e,r,i){n=n.concat(t.playlists||[])},x.forEach((function(t){for(var n in e.mediaGroups[t])for(var i in e.mediaGroups[t][n]){var a=e.mediaGroups[t][n][i];r(a,t,n,i)}})),n},O=function(t){var e=t.playlist,r=t.mediaSequence;e.mediaSequence=r,e.segments.forEach((function(t,r){t.number=e.mediaSequence+r}))},R=function(t){var e=t.oldManifest,r=t.newManifest,n=e.playlists.concat(I(e)),i=r.playlists.concat(I(r));return r.timelineStarts=C([e.timelineStarts,r.timelineStarts]),function(t){var e=t.oldPlaylists,r=t.newPlaylists,n=t.timelineStarts;r.forEach((function(t){t.discontinuitySequence=h(n,(function(e){return e.timeline===t.timeline}));var r=function(t,e){for(var r=0;rr.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--);r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),O({playlist:t,mediaSequence:r.segments[a].number})}}))}({oldPlaylists:n,newPlaylists:i,timelineStarts:r.timelineStarts}),r},D=function(t){return t&&t.uri+"-"+function(t){var e;return e="bigint"===typeof t.offset||"bigint"===typeof t.length?a().BigInt(t.offset)+a().BigInt(t.length)-a().BigInt(1):t.offset+t.length-1,t.offset+"-"+e}(t.byterange)},M=function(t){return f(t.reduce((function(t,e){var r=e.attributes.id+(e.attributes.lang||"");if(t[r]){var n;if(e.segments)e.segments[0]&&(e.segments[0].discontinuity=!0),(n=t[r].segments).push.apply(n,e.segments);e.attributes.contentProtection&&(t[r].attributes.contentProtection=e.attributes.contentProtection)}else t[r]=e,t[r].attributes.timelineStarts=[];return t[r].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t}),{})).map((function(t){var e,r;return t.discontinuityStarts=(e=t.segments||[],r="discontinuity",e.reduce((function(t,e,n){return e[r]&&t.push(n),t}),[])),t}))},P=function(t,e){var r=D(t.sidx),n=r&&e[r]&&e[r].sidx;return n&&A(t,n,t.sidx.resolvedUri),t},U=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var r in t)t[r]=P(t[r],e);return t},L=function(t){var e,r=t.attributes,n=t.segments,i=t.sidx,a=t.discontinuityStarts,o={attributes:(e={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuityStarts:a,timelineStarts:r.timelineStarts,segments:n};return r.contentProtection&&(o.contentProtection=r.contentProtection),i&&(o.sidx=i),o},k=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},B=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},_=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},Z=function(t){return t?Object.keys(t).reduce((function(e,r){var n=t[r];return e.concat(n.playlists)}),[]):[]},X=function(t){var e,r=t.dashPlaylists,n=t.locations,i=t.sidxMapping,a=void 0===i?{}:i,o=t.previousManifest;if(!r.length)return{};var s=r[0].attributes,u=s.sourceDuration,c=s.type,f=s.suggestedPresentationDelay,l=s.minimumUpdatePeriod,p=M(r.filter(k)).map(L),d=M(r.filter(B)),m=M(r.filter(_)),g=r.map((function(t){return t.attributes.captionServices})).filter(Boolean),v={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(e={AUDIO:{},VIDEO:{}},e["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:u,playlists:U(p,a)};l>=0&&(v.minimumUpdatePeriod=1e3*l),n&&(v.locations=n),"dynamic"===c&&(v.suggestedPresentationDelay=f);var y,b,w=0===v.playlists.length,E=d.length?function(t,e,r){var n;void 0===e&&(e={}),void 0===r&&(r=!1);var i=t.reduce((function(t,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";if(o&&!i.attributes.label){var u=a?" ("+a+")":"";s=""+i.attributes.lang+u}t[s]||(t[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=P(function(t,e){var r,n=t.attributes,i=t.segments,a=t.sidx,o=t.mediaSequence,s=t.discontinuitySequence,u=t.discontinuityStarts,c={attributes:(r={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},r["PROGRAM-ID"]=1,r),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:n.timelineStarts,mediaSequence:o,segments:i};return n.contentProtection&&(c.contentProtection=n.contentProtection),a&&(c.sidx=a),e&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c}(i,r),e);return t[s].playlists.push(c),"undefined"===typeof n&&"main"===a&&((n=i).default=!0),t}),{});return n||(i[Object.keys(i)[0]].default=!0),i}(d,a,w):null,T=m.length?function(t,e){return void 0===e&&(e={}),t.reduce((function(t,r){var n=r.attributes.lang||"text";return t[n]||(t[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(P(function(t){var e,r=t.attributes,n=t.segments,i=t.mediaSequence,a=t.discontinuityStarts,o=t.discontinuitySequence;"undefined"===typeof n&&(n=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var s=((e={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e);return r.codecs&&(s.CODECS=r.codecs),{attributes:s,uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:i,segments:n}}(r),e)),t}),{})}(m,a):null,N=p.concat(Z(E),Z(T)),S=N.map((function(t){return t.timelineStarts}));return v.timelineStarts=C(S),y=N,b=v.timelineStarts,y.forEach((function(t){t.mediaSequence=0,t.discontinuitySequence=h(b,(function(e){return e.timeline===t.timeline})),t.segments&&t.segments.forEach((function(t,e){t.number=e}))})),E&&(v.mediaGroups.AUDIO.audio=E),T&&(v.mediaGroups.SUBTITLES.subs=T),g.length&&(v.mediaGroups["CLOSED-CAPTIONS"].cc=g.reduce((function(t,e){return e?(e.forEach((function(e){var r=e.channel,n=e.language;t[n]={autoselect:!1,default:!1,instreamId:r,language:n},e.hasOwnProperty("aspectRatio")&&(t[n].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[n].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[n]["3D"]=e["3D"])})),t):t}),{})),o?R({oldManifest:o,newManifest:v}):v},j=function(t,e,r){var n=t.NOW,i=t.clientOffset,a=t.availabilityStartTime,o=t.timescale,s=void 0===o?1:o,u=t.periodStart,c=void 0===u?0:u,f=t.minimumUpdatePeriod,l=(n+i)/1e3+(void 0===f?0:f)-(a+c);return Math.ceil((l*s-e)/r)},z=function(t,e){for(var r=t.type,n=t.minimumUpdatePeriod,i=void 0===n?0:n,a=t.media,o=void 0===a?"":a,s=t.sourceDuration,u=t.timescale,c=void 0===u?1:u,f=t.startNumber,l=void 0===f?1:f,p=t.periodStart,h=[],d=-1,m=0;md&&(d=b);var w=void 0;if(y<0){var E=m+1;w=E===e.length?"dynamic"===r&&i>0&&o.indexOf("$Number$")>0?j(t,d,v):(s*c-d)/v:(e[E].t-d)/v}else w=y+1;for(var T=l+h.length+w,N=l+h.length;N=i?a:""+new Array(i-a.length+1).join("0")+a)}}(e))},H=function(t,e){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=w({baseUrl:t.baseUrl,source:q(a.sourceURL,r),range:a.range}),s=function(t,e){return t.duration||e?t.duration?N(t):z(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]}(t,e);return s.map((function(e){r.Number=e.number,r.Time=e.time;var i=q(t.media||"",r),a=t.timescale||1,s=t.presentationTimeOffset||0,u=t.periodStart+(e.time-s)/a;return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:(0,n.Z)(t.baseUrl||"",i),map:o,number:e.number,presentationTime:u}}))},K=function(t,e){var r=t.duration,n=t.segmentUrls,i=void 0===n?[]:n,a=t.periodStart;if(!r&&!e||r&&e)throw new Error(y);var o,s=i.map((function(e){return function(t,e){var r=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,a=w({baseUrl:r,source:i.sourceURL,range:i.range}),o=w({baseUrl:r,source:e.media,range:e.mediaRange});return o.map=a,o}(t,e)}));return r&&(o=N(t)),e&&(o=z(t,e)),o.map((function(e,r){if(s[r]){var n=s[r],i=t.timescale||1,o=t.presentationTimeOffset||0;return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n.presentationTime=a+(e.time-o)/i,n}})).filter((function(t){return t}))},G=function(t){var e,r,n=t.attributes,i=t.segmentInfo;i.template?(r=H,e=c(n,i.template)):i.base?(r=S,e=c(n,i.base)):i.list&&(r=K,e=c(n,i.list));var a={attributes:n};if(!r)return a;var o=r(e,i.segmentTimeline);if(e.duration){var s=e,u=s.duration,f=s.timescale,l=void 0===f?1:f;e.duration=u/l}else o.length?e.duration=o.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):e.duration=0;return a.attributes=e,a.segments=o,i.base&&e.indexRange&&(a.sidx=o[0],a.segments=[]),a},V=function(t,e){return p(t.childNodes).filter((function(t){return t.tagName===e}))},W=function(t){return t.textContent.trim()},Y=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var r=e.slice(1),n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(u||0)},$={mediaPresentationDuration:function(t){return Y(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return Y(t)},suggestedPresentationDelay:function(t){return Y(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return Y(t)},start:function(t){return Y(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?Y(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},J=function(t){return t&&t.attributes?p(t.attributes).reduce((function(t,e){var r=$[e.name]||$.DEFAULT;return t[e.name]=r(e.value),t}),{}):{}},Q={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},tt=function(t,e){return e.length?l(t.map((function(t){return e.map((function(e){return(0,n.Z)(t,W(e))}))}))):t},et=function(t){var e=V(t,"SegmentTemplate")[0],r=V(t,"SegmentList")[0],n=r&&V(r,"SegmentURL").map((function(t){return c({tag:"SegmentURL"},J(t))})),i=V(t,"SegmentBase")[0],a=r||e,o=a&&V(a,"SegmentTimeline")[0],s=r||i||e,u=s&&V(s,"Initialization")[0],f=e&&J(e);f&&u?f.initialization=u&&J(u):f&&f.initialization&&(f.initialization={sourceURL:f.initialization});var l={template:f,segmentTimeline:o&&V(o,"S").map((function(t){return J(t)})),list:r&&c(J(r),{segmentUrls:n,initialization:J(u)}),base:i&&c(J(i),{initialization:J(u)})};return Object.keys(l).forEach((function(t){l[t]||delete l[t]})),l},rt=function(t,e,r){return function(n){var i,a=J(n),s=tt(e,V(n,"BaseURL")),u=V(n,"Role")[0],f={role:J(u)},p=c(t,a,f),h=V(n,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2015"===(i=J(h)).schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e,r;if(r=t,/^CC\d=/.test(t)){var n=t.split("=");e=n[0],r=n[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:r}})):"urn:scte:dash:cc:cea-708:2015"===i.schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var r=t.split("="),n=r[0],i=r[1],a=void 0===i?"":i;e.channel=n,e.language=t,a.split(",").forEach((function(t){var r=t.split(":"),n=r[0],i=r[1];"lang"===n?e.language=i:"er"===n?e.easyReader=Number(i):"war"===n?e.aspectRatio=Number(i):"3D"===n&&(e["3D"]=Number(i))}))}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e})):void 0;d&&(p=c(p,{captionServices:d}));var m=V(n,"Label")[0];if(m&&m.childNodes.length){var g=m.childNodes[0].nodeValue.trim();p=c(p,{label:g})}var v=V(n,"ContentProtection").reduce((function(t,e){var r=J(e);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());var n=Q[r.schemeIdUri];if(n){t[n]={attributes:r};var i=V(e,"cenc:pssh")[0];if(i){var a=W(i);t[n].pssh=a&&(0,o.Z)(a)}}return t}),{});Object.keys(v).length&&(p=c(p,{contentProtection:v}));var y=et(n),b=V(n,"Representation"),w=c(r,y);return l(b.map(function(t,e,r){return function(n){var i=V(n,"BaseURL"),a=tt(e,i),o=c(t,J(n)),s=et(n);return a.map((function(t){return{segmentInfo:c(r,s),attributes:c(o,{baseUrl:t})}}))}}(p,s,w)))}},nt=function(t,e){return function(r,n){var i=tt(e,V(r.node,"BaseURL")),a=c(t,{periodStart:r.attributes.start});"number"===typeof r.attributes.duration&&(a.periodDuration=r.attributes.duration);var o=V(r.node,"AdaptationSet"),s=et(r.node);return l(o.map(rt(a,i,s)))}},it=function(t){if(""===t)throw new Error(m);var e,r,n=new s.DOMParser;try{r=(e=n.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(i){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw new Error(g);return r},at=function(t,e){void 0===e&&(e={});var r=function(t,e){void 0===e&&(e={});var r=e,n=r.manifestUri,i=void 0===n?"":n,a=r.NOW,o=void 0===a?Date.now():a,s=r.clientOffset,u=void 0===s?0:s,c=V(t,"Period");if(!c.length)throw new Error(d);var f=V(t,"Location"),p=J(t),h=tt([i],V(t,"BaseURL"));p.type=p.type||"static",p.sourceDuration=p.mediaPresentationDuration||0,p.NOW=o,p.clientOffset=u,f.length&&(p.locations=f.map(W));var m=[];return c.forEach((function(t,e){var r=J(t),n=m[e-1];r.start=function(t){var e=t.attributes,r=t.priorPeriodAttributes,n=t.mpdType;return"number"===typeof e.start?e.start:r&&"number"===typeof r.start&&"number"===typeof r.duration?r.start+r.duration:r||"static"!==n?null:0}({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:p.type}),m.push({node:t,attributes:r})})),{locations:p.locations,representationInfo:l(m.map(nt(p,h)))}}(it(t),e),n=r.representationInfo.map(G);return X({dashPlaylists:n,locations:r.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})},ot=function(t){return function(t){var e=V(t,"UTCTiming")[0];if(!e)return null;var r=J(e);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw new Error(b)}return r}(it(t))}},84221:function(t,e,r){var n=r(46894).getUint64;t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=e.getUint32(i),r.firstOffset=e.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(t.subarray(i)),r.firstOffset=n(t.subarray(i+8)),i+=16),i+=2;var a=e.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&e.getUint32(i),subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&e.getUint32(i+8)});return r}},51489:function(t){var e,r,n,i,a,o,s,u=9e4;e=function(t){return t*u},r=function(t,e){return t*e},n=function(t){return t/u},i=function(t,e){return t/e},a=function(t,r){return e(i(t,r))},o=function(t,e){return r(n(t),e)},s=function(t,e,r){return n(r?t:t-e)},t.exports={ONE_SECOND_IN_TS:u,secondsToVideoTs:e,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:s}},46894:function(t){var e=Math.pow(2,32);t.exports={getUint64:function(t){var r,n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getBigUint64?(r=n.getBigUint64(0))0;function i(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),(function(){r(window.event)}))}function a(t,e){for(var r=e.slice(0,e.length-1),n=0;n=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":n?173:189,"=":n?61:187,";":n?59:186,"'":222,"[":219,"]":221,"\\":220},u={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},c={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},f={16:!1,18:!1,17:!1,91:!1},l={},p=1;p<20;p++)s["f".concat(p)]=111+p;var h=[],d=!1,m="all",g=[],v=function(t){return s[t.toLowerCase()]||u[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function y(t){m=t||"all"}function b(){return m||"all"}var w=function(t){var e=t.key,r=t.scope,n=t.method,i=t.splitKey,s=void 0===i?"+":i;o(e).forEach((function(t){var e=t.split(s),i=e.length,o=e[i-1],c="*"===o?"*":v(o);if(l[c]){r||(r=b());var f=i>1?a(u,e):[];l[c]=l[c].filter((function(t){return!((!n||t.method===n)&&t.scope===r&&function(t,e){for(var r=t.length>=e.length?t:e,n=t.length>=e.length?e:t,i=!0,a=0;a0,f)Object.prototype.hasOwnProperty.call(f,a)&&(!f[a]&&e.mods.indexOf(+a)>-1||f[a]&&-1===e.mods.indexOf(+a))&&(i=!1);(0!==e.mods.length||f[16]||f[18]||f[17]||f[91])&&!i&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function T(t,e){var r=l["*"],n=t.keyCode||t.which||t.charCode;if(N.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===h.indexOf(n)&&229!==n&&h.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var r=c[e];t[e]&&-1===h.indexOf(r)?h.push(r):!t[e]&&h.indexOf(r)>-1?h.splice(h.indexOf(r),1):"metaKey"===e&&t[e]&&3===h.length&&(t.ctrlKey||t.shiftKey||t.altKey||(h=h.slice(h.indexOf(r))))})),n in f){for(var i in f[n]=!0,u)u[i]===n&&(N[i]=!0);if(!r)return}for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(f[a]=t[c[a]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===h.indexOf(17)&&h.push(17),-1===h.indexOf(18)&&h.push(18),f[17]=!0,f[18]=!0);var o=b();if(r)for(var s=0;s1&&(s=a(u,t)),(t="*"===(t=t[t.length-1])?"*":v(t))in l||(l[t]=[]),l[t].push({keyup:y,keydown:b,scope:c,mods:s,shortcut:n[m],method:r,key:n[m],splitKey:w,element:p});"undefined"!==typeof p&&!function(t){return g.indexOf(t)>-1}(p)&&window&&(g.push(p),i(p,"keydown",(function(t){T(t,p)}),E),d||(d=!0,i(window,"focus",(function(){h=[]}),E)),i(p,"keyup",(function(t){T(t,p),function(t){var e=t.keyCode||t.which||t.charCode,r=h.indexOf(e);if(r>=0&&h.splice(r,1),t.key&&"meta"===t.key.toLowerCase()&&h.splice(0,h.length),93!==e&&224!==e||(e=91),e in f)for(var n in f[e]=!1,u)u[n]===e&&(N[n]=!1)}(t)}),E))}var S={setScope:y,getScope:b,deleteScope:function(t,e){var r,n;for(var i in t||(t=b()),l)if(Object.prototype.hasOwnProperty.call(l,i))for(r=l[i],n=0;n1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(l).forEach((function(r){var n=l[r].find((function(r){return r.scope===e&&r.shortcut===t}));n&&n.method&&n.method()}))},unbind:function(t){if("undefined"===typeof t)Object.keys(l).forEach((function(t){return delete l[t]}));else if(Array.isArray(t))t.forEach((function(t){t.key&&w(t)}));else if("object"===typeof t)t.key&&w(t);else if("string"===typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function s(){this.values=i(null)}function u(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"===typeof i[a]){var o=i[a].split(r);if(2===o.length)e(o[0].trim(),o[1].trim())}}function c(t,e,r){var n=t;function i(){var e=o(t);if(null===e)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=i(),c(),"--\x3e"!==t.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),c(),e.endTime=i(),c(),function(t,e){var n=new s;u(t,(function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),o=a[0];n.integer(t,o),n.percent(t,o)&&n.set("snapToLines",!1),n.alt(t,o,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(i){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(i){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(i){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var f=n.createElement&&n.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},p={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},h={v:"title",lang:"lang"},d={rt:"ruby"};function m(t,e){function r(){if(!e)return null;var t,r=e.match(/^([^<]*)(<[^>]*>?)?/);return t=r[1]?r[1]:r[2],e=e.substr(t.length),t}function n(t,e){return!d[e.localName]||d[e.localName]===t.localName}function i(e,r){var n=l[e];if(!n)return null;var i=t.document.createElement(n),a=h[e];return a&&r&&(i[a]=r.trim()),i}for(var a,s,u=t.document.createElement("div"),c=u,m=[];null!==(a=r());)if("<"!==a[0])c.appendChild(t.document.createTextNode((s=a,f.innerHTML=s,s=f.textContent,f.textContent="",s)));else{if("/"===a[1]){m.length&&m[m.length-1]===a.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,v=o(a.substr(1,a.length-2));if(v){g=t.document.createProcessingInstruction("timestamp",v),c.appendChild(g);continue}var y=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=i(y[1],y[3])))continue;if(!n(c,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(t){var e=/^bg_/.test(t),r=e?t.slice(3):t;if(p.hasOwnProperty(r)){var n=e?"background-color":"color",i=p[r];g.style[n]=i}})),g.className=b.join(" ")}m.push(y[1]),c.appendChild(g),c=g}return u}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(t){for(var e=0;e=r[0]&&t<=r[1])return!0}return!1}function y(t){var e=[],r="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var r=e.childNodes.length-1;r>=0;r--)t.push(e.childNodes[r])}function i(t){if(!t||!t.length)return null;var e=t.pop(),r=e.textContent||e.innerText;if(r){var a=r.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):r}return"ruby"===e.tagName?i(t):e.childNodes?(n(t,e),i(t)):void 0}for(n(e,t);r=i(e);)for(var a=0;a=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,r=e.textTrackList,n=0,i=0;il&&(f=f<0?-1:1,f*=Math.ceil(l/c)*c),o<0&&(f+=""===a.vertical?r.height:r.width,s=s.reverse()),i.move(p,f)}else{var h=i.lineHeight/r.height*100;switch(a.lineAlign){case"center":o-=h/2;break;case"end":o-=h}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new E(e)}var d=function(t,e){for(var i,a=new E(t),o=1,s=0;su&&(i=new E(t),o=u),t=new E(a)}return i||a}(i,s);e.move(d.toCSSCompatValues(r))}function N(){}b.prototype.applyStyles=function(t,e){for(var r in e=e||this.div,t)t.hasOwnProperty(r)&&(e.style[r]=t[r])},b.prototype.formatStyle=function(t,e){return 0===t?0:t+e},w.prototype=i(b.prototype),w.prototype.constructor=w,E.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},E.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},E.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},E.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},E.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},E.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},E.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r}},N.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!==typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},N.convertCueToDOMTree=function(t,e){return t&&e?m(t,e):null};N.processCues=function(t,e,r){if(!t||!e||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),function(t){for(var e=0;e100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=n(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(t){var e=n(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=i},13710:function(t){var e={"":!0,up:!0};function r(t){return"number"===typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,i=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var r=function(t){return"string"===typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===r?console.warn("Scroll: an invalid or illegal string was specified."):u=r}}})}},10434:function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;eh&&(l-=h,l-=h,l-=o(2))}return Number(l)}),c=function(t,e){var r=(void 0===e?{}:e).le,n=void 0!==r&&r;("bigint"!==typeof t&&"number"!==typeof t||"number"===typeof t&&t!==t)&&(t=0),t=o(t);for(var i,a=(i=t,Math.ceil(function(t){return t.toString(2).length}(i)/8)),u=new Uint8Array(new ArrayBuffer(a)),c=0;c=e.length&&c.call(e,(function(e,r){return e===(u[r]?u[r]&t[o+r]:t[o+r])}))}},92260:function(t,e,r){"use strict";r.d(e,{Hi:function(){return d},Jg:function(){return f},KL:function(){return l},_5:function(){return h},kS:function(){return c},lA:function(){return m},p7:function(){return p},ws:function(){return u},xz:function(){return g}});var n=r(58908),i=r.n(n),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],u=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,r){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)})):t},c=function(t){void 0===t&&(t="");var e=t.split(","),r=[];return e.forEach((function(t){var e;t=t.trim(),o.forEach((function(n){var i=a[n].exec(t.toLowerCase());if(i&&!(i.length<=1)){e=n;var o=t.substring(0,i[1].length),s=t.replace(o,"");r.push({type:o,details:s,mediaType:n})}})),e||r.push({type:t,details:"",mediaType:"unknown"})})),r},f=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var r=t.mediaGroups.AUDIO[e];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return c(i.playlists[0].attributes.CODECS)}return null},l=function(t){return void 0===t&&(t=""),a.audio.test(t.trim().toLowerCase())},h=function(t){if(t&&"string"===typeof t){var e,r=t.toLowerCase().split(",").map((function(t){return u(t.trim())})),n="video";1===r.length&&l(r[0])?n="audio":1===r.length&&(void 0===(e=r[0])&&(e=""),a.text.test(e.trim().toLowerCase()))&&(n="application");var i="mp4";return r.every((function(t){return a.mp4.test(t)}))?i="mp4":r.every((function(t){return a.webm.test(t)}))?i="webm":r.every((function(t){return a.ogg.test(t)}))&&(i="ogg"),n+"/"+i+';codecs="'+t+'"'}},p=function(t){return void 0===t&&(t=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(h(t))||!1},d=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every((function(t){t=t.trim();for(var e=0;er;){var a=t[r],o=0,s=0,u=t[++s];for(s++;128&u;)o=(127&u)<<7,u=t[s],s++;o+=127&u;for(var c=0;c>>0,c=e.subarray(s+4,s+8);if(0===u)break;var f=s+u;if(f>e.length){if(n)break;f=e.length}var l=e.subarray(s+8,f);(0,i.G3)(c,r[0])&&(1===r.length?o.push(l):o.push.apply(o,t(l,r.slice(1),n))),s=f}return o},u={EBML:(0,i.Ki)([26,69,223,163]),DocType:(0,i.Ki)([66,130]),Segment:(0,i.Ki)([24,83,128,103]),SegmentInfo:(0,i.Ki)([21,73,169,102]),Tracks:(0,i.Ki)([22,84,174,107]),Track:(0,i.Ki)([174]),TrackNumber:(0,i.Ki)([215]),DefaultDuration:(0,i.Ki)([35,227,131]),TrackEntry:(0,i.Ki)([174]),TrackType:(0,i.Ki)([131]),FlagDefault:(0,i.Ki)([136]),CodecID:(0,i.Ki)([134]),CodecPrivate:(0,i.Ki)([99,162]),VideoTrack:(0,i.Ki)([224]),AudioTrack:(0,i.Ki)([225]),Cluster:(0,i.Ki)([31,67,182,117]),Timestamp:(0,i.Ki)([231]),TimestampScale:(0,i.Ki)([42,215,177]),BlockGroup:(0,i.Ki)([160]),BlockDuration:(0,i.Ki)([155]),Block:(0,i.Ki)([161]),SimpleBlock:(0,i.Ki)([163])},c=[128,64,32,16,8,4,2,1],f=function(t,e,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var a=function(t){for(var e=1,r=0;r=r.length)return r.length;var a=f(r,n,!1);if((0,i.G3)(e.bytes,a.bytes))return n;var o=f(r,n+a.length);return t(e,r,n+o.length+o.value+a.length)},p=function t(e,r){r=function(t){return Array.isArray(t)?t.map((function(t){return l(t)})):[l(t)]}(r),e=(0,i.Ki)(e);var n=[];if(!r.length)return n;for(var a=0;ae.length?e.length:u+s.value,p=e.subarray(u,c);(0,i.G3)(r[0],o.bytes)&&(1===r.length?n.push(p):n=n.concat(t(p,r.slice(1)))),a+=o.length+s.length+p.length}return n},d=r(68925),m=(0,i.Ki)([0,0,0,1]),g=(0,i.Ki)([0,0,1]),v=(0,i.Ki)([0,0,3]),y=function(t){for(var e=[],r=1;r>1&63),-1!==r.indexOf(c)&&(a=o+u),o+=u+("h264"===e?1:2)}else o++}return t.subarray(0,0)},w={webm:(0,i.Ki)([119,101,98,109]),matroska:(0,i.Ki)([109,97,116,114,111,115,107,97]),flac:(0,i.Ki)([102,76,97,67]),ogg:(0,i.Ki)([79,103,103,83]),ac3:(0,i.Ki)([11,119]),riff:(0,i.Ki)([82,73,70,70]),avi:(0,i.Ki)([65,86,73]),wav:(0,i.Ki)([87,65,86,69]),"3gp":(0,i.Ki)([102,116,121,112,51,103]),mp4:(0,i.Ki)([102,116,121,112]),fmp4:(0,i.Ki)([115,116,121,112]),mov:(0,i.Ki)([102,116,121,112,113,116]),moov:(0,i.Ki)([109,111,111,118]),moof:(0,i.Ki)([109,111,111,102])},E={aac:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.webm)},mkv:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.matroska)},mp4:function(t){return!E["3gp"](t)&&!E.mov(t)&&(!(!(0,i.G3)(t,w.mp4,{offset:4})&&!(0,i.G3)(t,w.fmp4,{offset:4}))||(!(!(0,i.G3)(t,w.moof,{offset:4})&&!(0,i.G3)(t,w.moov,{offset:4}))||void 0))},mov:function(t){return(0,i.G3)(t,w.mov,{offset:4})},"3gp":function(t){return(0,i.G3)(t,w["3gp"],{offset:4})},ac3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,w.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+1880}},36722:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(58908),i=r.n(n),a=r(48764).lW;function o(t){for(var e,r=(e=t,i().atob?i().atob(e):a.from(e,"base64").toString("binary")),n=new Uint8Array(r.length),o=0;o>4?i+20:i+10}(e,r),t(e,r))}},8485:function(t,e,r){"use strict";r.d(e,{t:function(){return a}});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,i=/^application\/dash\+xml/i,a=function(t){return n.test(t)?"hls":i.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null}},80779:function(t,e,r){"use strict";var n=r(49945),i=r.n(n),a=r(58908),o=r.n(a),s="http://example.com";e.Z=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=o().location&&o().location.href||"");var r="function"===typeof o().URL,n=/^\/\//.test(t),a=!o().location&&!/\/\//i.test(t);if(r?t=new(o().URL)(t,o().location||s):/\/\//i.test(t)||(t=i().buildAbsoluteURL(o().location&&o().location.href||"",t)),r){var u=new URL(e,t);return a?u.href.slice(s.length):n?u.href.slice(u.protocol.length):u.href}return i().buildAbsoluteURL(t,e)}},13490:function(t,e,r){"use strict";var n=r(58908);t.exports=function(t,e){return void 0===e&&(e=!1),function(r,i,a){if(r)t(r);else if(i.statusCode>=400&&i.statusCode<=599){var o=a;if(e)if(n.TextDecoder){var s=function(t){void 0===t&&(t="");return t.toLowerCase().split(";").reduce((function(t,e){var r=e.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():t}),"utf-8")}(i.headers&&i.headers["content-type"]);try{o=new TextDecoder(s).decode(a)}catch(u){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));t({cause:o})}else t(null,a)}}},9603:function(t,e,r){"use strict";var n=r(58908),i=r(10434),a=r(27376);s.httpHandler=r(13490);function o(t,e,r){var n=t;return a(e)?(r=e,"string"===typeof t&&(n={uri:t})):n=i({},e,{uri:t}),n.callback=r,n}function s(t,e,r){return u(e=o(t,e,r))}function u(t){if("undefined"===typeof t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(r){}return null}(c),g)try{t=JSON.parse(t)}catch(e){}return t}function i(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,v)}function a(){if(!u){var e;clearTimeout(f),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=v,a=null;return 0!==e?(i={body:n(),statusCode:e,method:h,headers:{},url:l,rawRequest:c},c.getAllResponseHeaders&&(i.headers=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var r=t.indexOf(":"),n=t.slice(0,r).trim().toLowerCase(),i=t.slice(r+1).trim();"undefined"===typeof e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]})),e):e}(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),r(a,i,i.body)}}var o,u,c=t.xhr||null;c||(c=t.cors||t.useXDR?new s.XDomainRequest:new s.XMLHttpRequest);var f,l=c.url=t.uri||t.url,h=c.method=t.method||"GET",p=t.body||t.data,d=c.headers=t.headers||{},m=!!t.sync,g=!1,v={body:void 0,headers:{},statusCode:0,method:h,url:l,rawRequest:c};if("json"in t&&!1!==t.json&&(g=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),p=JSON.stringify(!0===t.json?p:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=i,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=i,c.open(h,l,!m,t.username,t.password),m||(c.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(f=setTimeout((function(){if(!u){u=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),c.setRequestHeader)for(o in d)d.hasOwnProperty(o)&&c.setRequestHeader(o,d[o]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"===typeof t.beforeSend&&t.beforeSend(c),c.send(p||null),c}t.exports=s,t.exports.default=s,s.XMLHttpRequest=n.XMLHttpRequest||function(){},s.XDomainRequest="withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r=e+r||e?new java.lang.String(t,e,r)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}l.prototype.parseFromString=function(t,e){var r=this.options,n=new f,i=r.domBuilder||new h,o=r.errorHandler,s=r.locator,c=r.xmlns||{},l=/\/x?html?$/.test(e),p=l?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&i.setDocumentLocator(s),n.errorHandler=function(t,e,r){if(!t){if(e instanceof h)return e;t=e}var n={},i=t instanceof Function;function a(e){var a=t[e];!a&&i&&(a=2==t.length?function(r){t(e,r)}:t),n[e]=a&&function(t){a("[xmldom "+e+"]\t"+t+d(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}(o,i,s),n.domBuilder=r.domBuilder||i,l&&(c[""]=u.HTML),c.xml=c.xml||u.XML,t&&"string"===typeof t?n.parse(t,c,p):n.errorHandler.error("invalid doc source"),i.doc},h.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var i=this.doc,a=i.createElementNS(t,r||e),o=n.length;g(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var s=0;s=0))throw I(A,new Error(t.tagName+"@"+r));for(var i=e.length-1;n"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function _(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(_(t,e))return!0}while(t=t.nextSibling)}function X(){}function Z(t,e,r,i){t&&t._inc++,r.namespaceURI===n.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function j(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a}}}function z(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,j(t.ownerDocument,t),e}function F(t,e,r){var n=e.parentNode;if(n&&n.removeChild(e),e.nodeType===w){var i=e.firstChild;if(null==i)return e;var a=e.lastChild}else i=a=e;var o=r?r.previousSibling:t.lastChild;i.previousSibling=o,a.nextSibling=r,o?o.nextSibling=i:t.firstChild=i,null==r?t.lastChild=a:r.previousSibling=a;do{i.parentNode=t}while(i!==a&&(i=i.nextSibling));return j(t.ownerDocument||t,t),e.nodeType==w&&(e.firstChild=e.lastChild=null),e}function q(){this._nsMap={}}function H(){}function K(){}function G(){}function V(){}function Y(){}function W(){}function $(){}function J(){}function Q(){}function tt(){}function et(){}function rt(){}function nt(t,e){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i&&null==(i=n.lookupPrefix(a)))var o=[{namespace:a,prefix:null}];return ot(this,r,t,e,o),r.join("")}function it(t,e,r){var i=t.prefix||"",a=t.namespaceURI;if(!a)return!1;if("xml"===i&&a===n.XML||a===n.XMLNS)return!1;for(var o=r.length;o--;){var s=r[o];if(s.prefix===i)return s.namespace!==a}return!0}function at(t,e,r){t.push(" ",e,'="',r.replace(/[<&"]/g,B),'"')}function ot(t,e,r,i,a){if(a||(a=[]),i){if(!(t=i(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case f:var o=t.attributes,s=o.length,u=t.firstChild,c=t.tagName,m=c;if(!(r=n.isHTML(t.namespaceURI)||r)&&!t.prefix&&t.namespaceURI){for(var E,T=0;T=0;N--){if(""===(S=a[N]).prefix&&S.namespace===t.namespaceURI){E=S.namespace;break}}if(E!==t.namespaceURI)for(N=a.length-1;N>=0;N--){var S;if((S=a[N]).namespace===t.namespaceURI){S.prefix&&(m=S.prefix+":"+c);break}}}e.push("<",m);for(var A=0;A"),r&&/^script$/i.test(c))for(;u;)u.data?e.push(u.data):ot(u,e,r,i,a.slice()),u=u.nextSibling;else for(;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;e.push("")}else e.push("/>");return;case y:case w:for(u=t.firstChild;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;return;case l:return at(e,t.name,t.value);case h:return e.push(t.data.replace(/[<&]/g,B).replace(/]]>/g,"]]>"));case p:return e.push("");case v:return e.push("\x3c!--",t.data,"--\x3e");case b:var O=t.publicId,R=t.systemId;if(e.push("");else if(R&&"."!=R)e.push(" SYSTEM ",R,">");else{var D=t.internalSubset;D&&e.push(" [",D,"]"),e.push(">")}return;case g:return e.push("");case d:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function st(t,e,r){var n;switch(e.nodeType){case f:(n=e.cloneNode(!1)).ownerDocument=t;case w:break;case l:r=!0}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var i=e.firstChild;i;)n.appendChild(st(t,i,r)),i=i.nextSibling;return n}function ut(t,e,r){var n=new e.constructor;for(var i in e){var a=e[i];"object"!=typeof a&&a!=n[i]&&(n[i]=a)}switch(e.childNodes&&(n.childNodes=new C),n.ownerDocument=t,n.nodeType){case f:var o=e.attributes,s=n.attributes=new D,u=o.length;s._ownerElement=n;for(var c=0;c0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r)for(var n in r)if(r[n]==t)return n;e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r)return r[t];e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},s(c,k),s(c,k.prototype),X.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==w){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return null==this.documentElement&&t.nodeType==f&&(this.documentElement=t),F(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),z(this,t)},importNode:function(t,e){return st(this,t,e)},getElementById:function(t){var e=null;return _(this.documentElement,(function(r){if(r.nodeType==f&&r.getAttribute("id")==t)return e=r,!0})),e},getElementsByClassName:function(t){var e=o(t);return new O(this,(function(r){var n=[];return e.length>0&&_(r.documentElement,(function(i){if(i!==r&&i.nodeType===f){var a=i.getAttribute("class");if(a){var s=t===a;if(!s){var u=o(a);s=e.every((c=u,function(t){return c&&-1!==c.indexOf(t)}))}s&&n.push(i)}}var c})),n}))},createElement:function(t){var e=new q;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new C,(e.attributes=new D)._ownerElement=e,e},createDocumentFragment:function(){var t=new tt;return t.ownerDocument=this,t.childNodes=new C,t},createTextNode:function(t){var e=new G;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new V;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Y;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new et;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new H;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Q;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new q,n=e.split(":"),i=r.attributes=new D;return r.childNodes=new C,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,i._ownerElement=r,r},createAttributeNS:function(t,e){var r=new H,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}},u(X,k),q.prototype={nodeType:f,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===w?this.insertBefore(t,null):function(t,e){var r=e.parentNode;if(r){var n=t.lastChild;r.removeChild(e),n=t.lastChild}return n=t.lastChild,e.parentNode=t,e.previousSibling=n,e.nextSibling=null,n?n.nextSibling=e:t.firstChild=e,t.lastChild=e,j(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new O(this,(function(e){var r=[];return _(e,(function(n){n===e||n.nodeType!=f||"*"!==t&&n.tagName!=t||r.push(n)})),r}))},getElementsByTagNameNS:function(t,e){return new O(this,(function(r){var n=[];return _(r,(function(i){i===r||i.nodeType!==f||"*"!==t&&i.namespaceURI!==t||"*"!==e&&i.localName!=e||n.push(i)})),n}))}},X.prototype.getElementsByTagName=q.prototype.getElementsByTagName,X.prototype.getElementsByTagNameNS=q.prototype.getElementsByTagNameNS,u(q,k),H.prototype.nodeType=l,u(H,k),K.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(N[S])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},u(K,k),G.prototype={nodeName:"#text",nodeType:h,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(G,K),V.prototype={nodeName:"#comment",nodeType:v},u(V,K),Y.prototype={nodeName:"#cdata-section",nodeType:p},u(Y,K),W.prototype.nodeType=b,u(W,k),$.prototype.nodeType=E,u($,k),J.prototype.nodeType=m,u(J,k),Q.prototype.nodeType=d,u(Q,k),tt.prototype.nodeName="#document-fragment",tt.prototype.nodeType=w,u(tt,k),et.prototype.nodeType=g,u(et,k),rt.prototype.serializeToString=function(t,e,r){return nt.call(t,e,r)},k.prototype.toString=nt;try{if(Object.defineProperty){function ft(t){switch(t.nodeType){case f:case w:var e=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&e.push(ft(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}Object.defineProperty(O.prototype,"length",{get:function(){return R(this),this.$$length}}),Object.defineProperty(k.prototype,"textContent",{get:function(){return ft(this)},set:function(t){switch(this.nodeType){case f:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),ct=function(t,e,r){t["$$"+e]=r}}}catch(lt){}e.DocumentType=W,e.DOMException=I,e.DOMImplementation=U,e.Element=q,e.Node=k,e.NodeList=C,e.XMLSerializer=rt},31045:function(t,e,r){var n=r(72167).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),e.entityMap=e.HTML_ENTITIES},3969:function(t,e,r){var n=r(41146);n.DOMImplementation,n.XMLSerializer,e.DOMParser=r(86129).DOMParser},76925:function(t,e,r){var n=r(72167).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$");function s(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r,i,a,o){function s(t,e,n){r.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),r.addValue(t,e,n)}for(var u,c=++e,f=0;;){var l=t.charAt(c);switch(l){case"=":if(1===f)u=t.slice(e,c),f=3;else{if(2!==f)throw new Error("attribute equal must after attrName");f=3}break;case"'":case'"':if(3===f||1===f){if(1===f&&(o.warning('attribute value must after "="'),u=t.slice(e,c)),e=c+1,!((c=t.indexOf(l,e))>0))throw new Error("attribute value no end '"+l+"' match");s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e-1),f=5}else{if(4!=f)throw new Error('attribute value must after "="');s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e),o.warning('attribute "'+u+'" missed start quot('+l+")!!"),e=c+1,f=5}break;case"/":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:f=7,r.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==f&&r.setTagName(t.slice(e,c)),c;case">":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=t.slice(e,c)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===f&&(h=u),4==f?(o.warning('attribute "'+h+'" missed quot(")!'),s(u,h.replace(/&#?\w+;/g,a),e)):(n.isHTML(i[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,e));break;case 3:throw new Error("attribute value missed!!")}return c;case"\x80":l=" ";default:if(l<=" ")switch(f){case 0:r.setTagName(t.slice(e,c)),f=6;break;case 1:u=t.slice(e,c),f=2;break;case 4:var h=t.slice(e,c).replace(/&#?\w+;/g,a);o.warning('attribute "'+h+'" missed quot(")!!'),s(u,h,e);case 5:f=6}else switch(f){case 2:r.tagName;n.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,e),e=c,f=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:f=1,e=c;break;case 3:f=4,e=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function l(t,e,r){for(var i=t.tagName,a=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value;if((p=u.indexOf(":"))>0)var f=s.prefix=u.slice(0,p),l=u.slice(p+1),h="xmlns"===f&&l;else l=u,f=null,h="xmlns"===u&&"";s.localName=l,!1!==h&&(null==a&&(a={},d(r,r={})),r[h]=a[h]=c,s.uri=n.XMLNS,e.startPrefixMapping(h,c))}for(o=t.length;o--;){(f=(s=t[o]).prefix)&&("xml"===f&&(s.uri=n.XML),"xmlns"!==f&&(s.uri=r[f||""]))}var p;(p=i.indexOf(":"))>0?(f=t.prefix=i.slice(0,p),l=t.localName=i.slice(p+1)):(f=null,l=t.localName=i);var m=t.uri=r[f||""];if(e.startElement(m,l,i,t),!t.closed)return t.currentNSMap=r,t.localNSMap=a,!0;if(e.endElement(m,l,i),a)for(f in a)e.endPrefixMapping(f)}function h(t,e,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var a=t.indexOf("",e),o=t.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return e+1}function p(t,e,r,n){var i=n[r];return null==i&&((i=t.lastIndexOf(""))e?(r.comment(t,e+4,i-e-4),i+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,i-e-9),r.endCDATA(),i+3}var a=function(t,e){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=e,i.exec(t);for(;r=i.exec(t);)if(n.push(r),r[1])return n}(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return r.startDTD(s,u,c),r.endDTD(),f.index+f[0].length}return-1}function g(t,e,r){var n=t.indexOf("?>",e);if(n){var i=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return r.processingInstruction(i[1],i[2]),n+2}return-1}return-1}function v(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,u.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),d(e,e={}),function(t,e,r,i,a){function o(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}function u(t){var e=t.slice(1,-1);return e in r?r[e]:"#"===e.charAt(0)?o(parseInt(e.substr(1).replace("x","0x"))):(a.error("entity not found:"+t),t)}function d(e){if(e>A){var r=t.substring(A,e).replace(/&#?\w+;/g,u);T&&y(A),i.characters(r,0,e-A),A=e}}function y(e,r){for(;e>=w&&(r=E.exec(t));)b=r.index,w=b+r[0].length,T.lineNumber++;T.columnNumber=e-b+1}var b=0,w=0,E=/.*(?:\r\n?|\n)|.*$/g,T=i.locator,N=[{currentNSMap:e}],S={},A=0;for(;;){try{var x=t.indexOf("<",A);if(x<0){if(!t.substr(A).match(/^\s*$/)){var I=i.doc,C=I.createTextNode(t.substr(A));I.appendChild(C),i.currentElement=C}return}switch(x>A&&d(x),t.charAt(x+1)){case"/":var O=t.indexOf(">",x+3),R=t.substring(x+2,O).replace(/[ \t\n\r]+$/g,""),D=N.pop();O<0?(R=t.substring(x+2).replace(/[\s<].*/,""),a.error("end tag name: "+R+" is not complete:"+D.tagName),O=x+1+R.length):R.match(/\sA?A=O:d(Math.max(x,A)+1)}}(t,e,r,i,this.errorHandler),i.endDocument()}},v.prototype={setTagName:function(t){if(!o.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!o.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=u,e.ParseError=s},27049:function(t,e,r){"use strict";var n=r(87462),i=r(4942),a=r(94184),o=r.n(a),s=r(67294),u=r(53124),c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i0?"-".concat(m):m,S=!!y,A="left"===m&&null!=g,x="right"===m&&null!=g,I=o()(T,"".concat(T,"-").concat(p),(e={},(0,i.Z)(e,"".concat(T,"-with-text"),S),(0,i.Z)(e,"".concat(T,"-with-text").concat(N),S),(0,i.Z)(e,"".concat(T,"-dashed"),!!b),(0,i.Z)(e,"".concat(T,"-plain"),!!w),(0,i.Z)(e,"".concat(T,"-rtl"),"rtl"===f),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-left"),A),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-right"),x),e),v),C=(0,n.Z)((0,n.Z)({},A&&{marginLeft:g}),x&&{marginRight:g});return s.createElement("div",(0,n.Z)({className:I},E,{role:"separator"}),y&&"vertical"!==p&&s.createElement("span",{className:"".concat(T,"-inner-text"),style:C},y))}},26303:function(t,e,r){"use strict";r.d(e,{Z:function(){return I}});var n=r(4942),i=r(87462),a=r(71002),o=r(94184),s=r.n(o),u=r(67294),c=r(53124),f=r(98423),l=function(t){var e,r,a=t.prefixCls,o=t.className,c=t.style,f=t.size,l=t.shape,h=s()((e={},(0,n.Z)(e,"".concat(a,"-lg"),"large"===f),(0,n.Z)(e,"".concat(a,"-sm"),"small"===f),e)),p=s()((r={},(0,n.Z)(r,"".concat(a,"-circle"),"circle"===l),(0,n.Z)(r,"".concat(a,"-square"),"square"===l),(0,n.Z)(r,"".concat(a,"-round"),"round"===l),r)),d=u.useMemo((function(){return"number"===typeof f?{width:f,height:f,lineHeight:"".concat(f,"px")}:{}}),[f]);return u.createElement("span",{className:s()(a,h,p,o),style:(0,i.Z)((0,i.Z)({},d),c)})},h=function(t){var e=t.prefixCls,r=t.className,a=t.active,o=t.shape,h=void 0===o?"circle":o,p=t.size,d=void 0===p?"default":p,m=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),g=(0,f.Z)(t,["prefixCls","className"]),v=s()(m,"".concat(m,"-element"),(0,n.Z)({},"".concat(m,"-active"),a),r);return u.createElement("div",{className:v},u.createElement(l,(0,i.Z)({prefixCls:"".concat(m,"-avatar"),shape:h,size:d},g)))},p=function(t){var e,r=t.prefixCls,a=t.className,o=t.active,h=t.block,p=void 0!==h&&h,d=t.size,m=void 0===d?"default":d,g=(0,u.useContext(c.E_).getPrefixCls)("skeleton",r),v=(0,f.Z)(t,["prefixCls"]),y=s()(g,"".concat(g,"-element"),(e={},(0,n.Z)(e,"".concat(g,"-active"),o),(0,n.Z)(e,"".concat(g,"-block"),p),e),a);return u.createElement("div",{className:y},u.createElement(l,(0,i.Z)({prefixCls:"".concat(g,"-button"),size:m},v)))},d=r(1413),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},g=r(42135),v=function(t,e){return u.createElement(g.Z,(0,d.Z)((0,d.Z)({},t),{},{ref:e,icon:m}))};v.displayName="DotChartOutlined";var y=u.forwardRef(v),b=function(t){var e=t.prefixCls,r=t.className,i=t.style,a=t.active,o=t.children,f=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),l=s()(f,"".concat(f,"-element"),(0,n.Z)({},"".concat(f,"-active"),a),r),h=null!==o&&void 0!==o?o:u.createElement(y,null);return u.createElement("div",{className:l},u.createElement("div",{className:s()("".concat(f,"-image"),r),style:i},h))},w=function(t){var e=t.prefixCls,r=t.className,i=t.style,a=t.active,o=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),f=s()(o,"".concat(o,"-element"),(0,n.Z)({},"".concat(o,"-active"),a),r);return u.createElement("div",{className:f},u.createElement("div",{className:s()("".concat(o,"-image"),r),style:i},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(o,"-image-svg")},u.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(o,"-image-path")}))))},E=function(t){var e,r=t.prefixCls,a=t.className,o=t.active,h=t.block,p=t.size,d=void 0===p?"default":p,m=(0,u.useContext(c.E_).getPrefixCls)("skeleton",r),g=(0,f.Z)(t,["prefixCls"]),v=s()(m,"".concat(m,"-element"),(e={},(0,n.Z)(e,"".concat(m,"-active"),o),(0,n.Z)(e,"".concat(m,"-block"),h),e),a);return u.createElement("div",{className:v},u.createElement(l,(0,i.Z)({prefixCls:"".concat(m,"-input"),size:d},g)))},T=r(74902),N=function(t){var e=function(e){var r=t.width,n=t.rows,i=void 0===n?2:n;return Array.isArray(r)?r[e]:i-1===e?r:void 0},r=t.prefixCls,n=t.className,i=t.style,a=t.rows,o=(0,T.Z)(Array(a)).map((function(t,r){return u.createElement("li",{key:r,style:{width:e(r)}})}));return u.createElement("ul",{className:s()(r,n),style:i},o)},S=function(t){var e=t.prefixCls,r=t.className,n=t.width,a=t.style;return u.createElement("h3",{className:s()(e,r),style:(0,i.Z)({width:n},a)})};function A(t){return t&&"object"===(0,a.Z)(t)?t:{}}var x=function(t){var e=t.prefixCls,r=t.loading,a=t.className,o=t.style,f=t.children,h=t.avatar,p=void 0!==h&&h,d=t.title,m=void 0===d||d,g=t.paragraph,v=void 0===g||g,y=t.active,b=t.round,w=u.useContext(c.E_),E=w.getPrefixCls,T=w.direction,x=E("skeleton",e);if(r||!("loading"in t)){var I,C,O,R=!!p,D=!!m,M=!!v;if(R){var P=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-avatar")},function(t,e){return t&&!e?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(D,M)),A(p));C=u.createElement("div",{className:"".concat(x,"-header")},u.createElement(l,(0,i.Z)({},P)))}if(D||M){var L,U;if(D){var k=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-title")},function(t,e){return!t&&e?{width:"38%"}:t&&e?{width:"50%"}:{}}(R,M)),A(m));L=u.createElement(S,(0,i.Z)({},k))}if(M){var B=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-paragraph")},function(t,e){var r={};return t&&e||(r.width="61%"),r.rows=!t&&e?3:2,r}(R,D)),A(v));U=u.createElement(N,(0,i.Z)({},B))}O=u.createElement("div",{className:"".concat(x,"-content")},L,U)}var _=s()(x,(I={},(0,n.Z)(I,"".concat(x,"-with-avatar"),R),(0,n.Z)(I,"".concat(x,"-active"),y),(0,n.Z)(I,"".concat(x,"-rtl"),"rtl"===T),(0,n.Z)(I,"".concat(x,"-round"),b),I),a);return u.createElement("div",{className:_,style:o},C,O)}return"undefined"!==typeof f?f:null};x.Button=p,x.Avatar=h,x.Input=E,x.Image=w,x.Node=b;var I=x},79742:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,a=u(t),o=a[0],s=a[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),f=0,l=s>0?o-4:o;for(r=0;r>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,u=n-i;su?u:s+o));1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return a.join("")};for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,n){for(var i,a,o=[],s=e;s>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(t,e,r){"use strict";var n=r(79742),i=r(80645),a="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=u,e.h2=50;var o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|m(t,e),n=s(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(j(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(j(t,ArrayBuffer)||t&&j(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(j(t,SharedArrayBuffer)||t&&j(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!==typeof t.length||z(t.length)?s(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),s(t<0?0:0|d(t))}function h(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(i)return n?-1:_(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return C(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),z(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var l=!0,h=0;hi&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128===(192&(a=t[i+1]))&&(u=(31&c)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nn.length?u.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),c=this.slice(n,i),f=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return T(this,t,e,r);case"base64":return N(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function C(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function L(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function k(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return k(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return k(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(a=e;a55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function X(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function Z(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function z(t){return t!==t}var F=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},86559:function(t,e,r){"use strict";r.d(e,{Z:function(){return g}});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(t,e,r){var i,a=n[t];return i="string"===typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function a(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(t,e,r,n){return s[t]};function c(t){return function(e,r){var n;if("formatting"===(null!==r&&void 0!==r&&r.context?String(r.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!==r&&void 0!==r&&r.width?String(r.width):i;n=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,s=null!==r&&void 0!==r&&r.width?String(r.width):t.defaultWidth;n=t.values[s]||t.values[o]}return n[t.argumentCallback?t.argumentCallback(e):e]}}var f={ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:c({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:c({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:c({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function l(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var o,s=a[0],u=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?p(u,(function(t){return t.test(s)})):h(u,(function(t){return t.test(s)}));o=t.valueCallback?t.valueCallback(c):c,o=r.valueCallback?r.valueCallback(o):o;var f=e.slice(s.length);return{value:o,rest:f}}}function h(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function p(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(d.matchPattern);if(!r)return null;var n=r[0],i=t.match(d.parsePattern);if(!i)return null;var a=d.valueCallback?d.valueCallback(i[0]):i[0];a=e.valueCallback?e.valueCallback(a):a;var o=t.slice(n.length);return{value:a,rest:o}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},g={code:"en-US",formatDistance:i,formatLong:o,formatRelative:u,localize:f,match:m,options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(t,e,r){"use strict";r.d(e,{j:function(){return i}});var n={};function i(){return n}},24262:function(t,e,r){"use strict";function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}r.d(e,{Z:function(){return n}})},83946:function(t,e,r){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}r.d(e,{Z:function(){return n}})},77349:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);return isNaN(o)?new Date(NaN):o?(r.setDate(r.getDate()+o),r):r}},11640:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);if(isNaN(o))return new Date(NaN);if(!o)return r;var s=r.getDate(),u=new Date(r.getTime());u.setMonth(r.getMonth()+o+1,0);var c=u.getDate();return s>=c?u:(r.setFullYear(u.getFullYear(),u.getMonth(),s),r)}},75401:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(24262),i=r(19013),a=r(13882);function o(t){(0,a.Z)(1,arguments);var e=(0,i.Z)(t);return e.setHours(0,0,0,0),e}var s=864e5;function u(t,e){(0,a.Z)(2,arguments);var r=o(t),i=o(e),u=r.getTime()-(0,n.Z)(r),c=i.getTime()-(0,n.Z)(i);return Math.round((u-c)/s)}},68730:function(t,e,r){"use strict";r.d(e,{Z:function(){return N}});var n=r(49474),i=r(77349),a=r(11640),o=r(19013),s=r(13882),u=r(83946);function c(t){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e){if((0,s.Z)(2,arguments),!e||"object"!==c(e))return new Date(NaN);var r=e.years?(0,u.Z)(e.years):0,n=e.months?(0,u.Z)(e.months):0,f=e.weeks?(0,u.Z)(e.weeks):0,l=e.days?(0,u.Z)(e.days):0,h=e.hours?(0,u.Z)(e.hours):0,p=e.minutes?(0,u.Z)(e.minutes):0,d=e.seconds?(0,u.Z)(e.seconds):0,m=(0,o.Z)(t),g=n||r?(0,a.Z)(m,n+12*r):m,v=l||f?(0,i.Z)(g,l+7*f):g,y=p+60*h,b=d+60*y,w=1e3*b,E=new Date(v.getTime()+w);return E}var l=r(75401);function h(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function p(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e),i=h(r,n),a=Math.abs((0,l.Z)(r,n));r.setDate(r.getDate()-i*a);var u=Number(h(r,n)===-i),c=i*(a-u);return 0===c?0:c}Math.pow(10,8);var d=36e5,m=r(59910),g=r(93645);function v(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/d;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}function y(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/6e4;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}var b=r(82161),w=r(11699);function E(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e);return r.getFullYear()-n.getFullYear()}function T(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),i=(0,o.Z)(e),a=(0,n.Z)(r,i),u=Math.abs(E(r,i));r.setFullYear(1584),i.setFullYear(1584);var c=(0,n.Z)(r,i)===-a,f=a*(u-Number(c));return 0===f?0:f}function N(t){(0,s.Z)(1,arguments);var e=(0,o.Z)(t.start),r=(0,o.Z)(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(r.getTime()))throw new RangeError("End Date is invalid");var i={};i.years=Math.abs(T(r,e));var a=(0,n.Z)(r,e),u=f(e,{years:a*i.years});i.months=Math.abs((0,b.Z)(r,u));var c=f(u,{months:a*i.months});i.days=Math.abs(p(r,c));var l=f(c,{days:a*i.days});i.hours=Math.abs(v(r,l));var h=f(l,{hours:a*i.hours});i.minutes=Math.abs(y(r,h));var d=f(h,{minutes:a*i.minutes});return i.seconds=Math.abs((0,w.Z)(r,d)),i}},89144:function(t,e,r){var n,i="undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:{},a=r(25893);"undefined"!==typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n},58908:function(t,e,r){var n;n="undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{},t.exports=n},80645:function(t,e){e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<>1,f=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,a=p&(1<<-f)-1,p>>=-f,f+=s;f>0;a=256*a+t[e+l],l+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+l],l+=h,f-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,c=8*a-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(o++,u/=2),o+l>=f?(s=0,o=f):o+l>=1?(s=(e*u-1)*Math.pow(2,i),o+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m}},27376:function(t){t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"===typeof t&&"[object RegExp]"!==r||"undefined"!==typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},27537:function(t,e){function r(t){if(t&&"object"===typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"===typeof t)return o[t];var r,a=String(t);return(r=n[a.toLowerCase()])?r:(r=i[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}r.isEventKey=function(t,e){if(t&&"object"===typeof t){var r=t.which||t.keyCode||t.charCode;if(null===r||void 0===r)return!1;if("string"===typeof e){var a;if(a=n[e.toLowerCase()])return a===r;if(a=i[e.toLowerCase()])return a===r}else if("number"===typeof e)return e===r;return!1}};var n=(e=t.exports=r).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":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,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var o=e.names=e.title={};for(a in n)o[n[a]]=a;for(var s in i)n[s]=i[s]},9323:function(t,e,r){"use strict";r.d(e,{_b:function(){return m}});var n=r(94578),i=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var r=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(r,1),r>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var r=e.length,n=0;n-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(i),c=String.fromCharCode(9),f=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return e[1]&&(r.length=parseInt(e[1],10)),e[2]&&(r.offset=parseInt(e[2],10)),r},l=function(t){for(var e,r=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},i=r.length;i--;)""!==r[i]&&((e=/([^=]*)=(.*)/.exec(r[i]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},h=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}(0,n.Z)(e,t);var r=e.prototype;return r.push=function(t){var e,r,n=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce((function(e,r){var n=r(t);return n===t?e:e.concat([n])}),[t]).forEach((function(t){for(var i=0;i0&&(f.duration=t.duration),0===t.duration&&(f.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=c},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("com.microsoft.playready"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:(0,s.Z)(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},"undefined"!==typeof t.attributes.IV&&(n.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,v=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange),n&&(r.key=n)},"stream-inf":function(){this.manifest.playlists=c,this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes?(f.attributes||(f.attributes={}),(0,a.Z)(f.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var r=this.manifest.mediaGroups[t.attributes.TYPE];r[t.attributes["GROUP-ID"]]=r[t.attributes["GROUP-ID"]]||{},e=r[t.attributes["GROUP-ID"]],(o={default:/yes/i.test(t.attributes.DEFAULT)}).default?o.autoselect=!0:o.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(o.language=t.attributes.LANGUAGE),t.attributes.URI&&(o.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(o.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(o.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(o.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=o}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){v+=1,f.discontinuity=!0,this.manifest.discontinuityStarts.push(c.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),f.dateTimeString=t.dateTimeString,f.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,d.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){f.cueOut=t.data},"cue-out-cont":function(){f.cueOutCont=t.data},"cue-in":function(){f.cueIn=t.data},skip:function(){this.manifest.skip=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;l=!0;var r=this.manifest.segments.length,n=p(t.attributes);f.parts=f.parts||[],f.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=b),b=n.byterange.offset+n.byterange.length);var i=f.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+r,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(t,r){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+r+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var e=this.manifest.serverControl=p(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),d.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,r=p(t.attributes),n=r.type&&"PART"===r.type;f.preloadHints=f.preloadHints||[],f.preloadHints.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=n?b:0,n&&(b=r.byterange.offset+r.byterange.length)));var i=f.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+e,t.attributes,["TYPE","URI"]),r.type)for(var a=0;ae.timeline?1:-1}));var e,r},C=function(t){var e,r,n=[];return e=t,r=function(t,e,r,i){n=n.concat(t.playlists||[])},x.forEach((function(t){for(var n in e.mediaGroups[t])for(var i in e.mediaGroups[t][n]){var a=e.mediaGroups[t][n][i];r(a,t,n,i)}})),n},O=function(t){var e=t.playlist,r=t.mediaSequence;e.mediaSequence=r,e.segments.forEach((function(t,r){t.number=e.mediaSequence+r}))},R=function(t){var e=t.oldManifest,r=t.newManifest,n=e.playlists.concat(C(e)),i=r.playlists.concat(C(r));return r.timelineStarts=I([e.timelineStarts,r.timelineStarts]),function(t){var e=t.oldPlaylists,r=t.newPlaylists,n=t.timelineStarts;r.forEach((function(t){t.discontinuitySequence=p(n,(function(e){return e.timeline===t.timeline}));var r=function(t,e){for(var r=0;rr.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--);r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),O({playlist:t,mediaSequence:r.segments[a].number})}}))}({oldPlaylists:n,newPlaylists:i,timelineStarts:r.timelineStarts}),r},D=function(t){return t&&t.uri+"-"+function(t){var e;return e="bigint"===typeof t.offset||"bigint"===typeof t.length?a().BigInt(t.offset)+a().BigInt(t.length)-a().BigInt(1):t.offset+t.length-1,t.offset+"-"+e}(t.byterange)},M=function(t){return f(t.reduce((function(t,e){var r=e.attributes.id+(e.attributes.lang||"");if(t[r]){var n;if(e.segments)e.segments[0]&&(e.segments[0].discontinuity=!0),(n=t[r].segments).push.apply(n,e.segments);e.attributes.contentProtection&&(t[r].attributes.contentProtection=e.attributes.contentProtection)}else t[r]=e,t[r].attributes.timelineStarts=[];return t[r].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t}),{})).map((function(t){var e,r;return t.discontinuityStarts=(e=t.segments||[],r="discontinuity",e.reduce((function(t,e,n){return e[r]&&t.push(n),t}),[])),t}))},P=function(t,e){var r=D(t.sidx),n=r&&e[r]&&e[r].sidx;return n&&A(t,n,t.sidx.resolvedUri),t},L=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var r in t)t[r]=P(t[r],e);return t},U=function(t){var e,r=t.attributes,n=t.segments,i=t.sidx,a=t.discontinuityStarts,o={attributes:(e={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuityStarts:a,timelineStarts:r.timelineStarts,segments:n};return r.contentProtection&&(o.contentProtection=r.contentProtection),i&&(o.sidx=i),o},k=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},B=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},_=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},X=function(t){return t?Object.keys(t).reduce((function(e,r){var n=t[r];return e.concat(n.playlists)}),[]):[]},Z=function(t){var e,r=t.dashPlaylists,n=t.locations,i=t.sidxMapping,a=void 0===i?{}:i,o=t.previousManifest;if(!r.length)return{};var s=r[0].attributes,u=s.sourceDuration,c=s.type,f=s.suggestedPresentationDelay,l=s.minimumUpdatePeriod,h=M(r.filter(k)).map(U),d=M(r.filter(B)),m=M(r.filter(_)),g=r.map((function(t){return t.attributes.captionServices})).filter(Boolean),v={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(e={AUDIO:{},VIDEO:{}},e["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:u,playlists:L(h,a)};l>=0&&(v.minimumUpdatePeriod=1e3*l),n&&(v.locations=n),"dynamic"===c&&(v.suggestedPresentationDelay=f);var y,b,w=0===v.playlists.length,E=d.length?function(t,e,r){var n;void 0===e&&(e={}),void 0===r&&(r=!1);var i=t.reduce((function(t,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";if(o&&!i.attributes.label){var u=a?" ("+a+")":"";s=""+i.attributes.lang+u}t[s]||(t[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=P(function(t,e){var r,n=t.attributes,i=t.segments,a=t.sidx,o=t.mediaSequence,s=t.discontinuitySequence,u=t.discontinuityStarts,c={attributes:(r={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},r["PROGRAM-ID"]=1,r),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:n.timelineStarts,mediaSequence:o,segments:i};return n.contentProtection&&(c.contentProtection=n.contentProtection),a&&(c.sidx=a),e&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c}(i,r),e);return t[s].playlists.push(c),"undefined"===typeof n&&"main"===a&&((n=i).default=!0),t}),{});return n||(i[Object.keys(i)[0]].default=!0),i}(d,a,w):null,T=m.length?function(t,e){return void 0===e&&(e={}),t.reduce((function(t,r){var n=r.attributes.lang||"text";return t[n]||(t[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(P(function(t){var e,r=t.attributes,n=t.segments,i=t.mediaSequence,a=t.discontinuityStarts,o=t.discontinuitySequence;"undefined"===typeof n&&(n=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var s=((e={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e);return r.codecs&&(s.CODECS=r.codecs),{attributes:s,uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:i,segments:n}}(r),e)),t}),{})}(m,a):null,N=h.concat(X(E),X(T)),S=N.map((function(t){return t.timelineStarts}));return v.timelineStarts=I(S),y=N,b=v.timelineStarts,y.forEach((function(t){t.mediaSequence=0,t.discontinuitySequence=p(b,(function(e){return e.timeline===t.timeline})),t.segments&&t.segments.forEach((function(t,e){t.number=e}))})),E&&(v.mediaGroups.AUDIO.audio=E),T&&(v.mediaGroups.SUBTITLES.subs=T),g.length&&(v.mediaGroups["CLOSED-CAPTIONS"].cc=g.reduce((function(t,e){return e?(e.forEach((function(e){var r=e.channel,n=e.language;t[n]={autoselect:!1,default:!1,instreamId:r,language:n},e.hasOwnProperty("aspectRatio")&&(t[n].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[n].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[n]["3D"]=e["3D"])})),t):t}),{})),o?R({oldManifest:o,newManifest:v}):v},j=function(t,e,r){var n=t.NOW,i=t.clientOffset,a=t.availabilityStartTime,o=t.timescale,s=void 0===o?1:o,u=t.periodStart,c=void 0===u?0:u,f=t.minimumUpdatePeriod,l=(n+i)/1e3+(void 0===f?0:f)-(a+c);return Math.ceil((l*s-e)/r)},z=function(t,e){for(var r=t.type,n=t.minimumUpdatePeriod,i=void 0===n?0:n,a=t.media,o=void 0===a?"":a,s=t.sourceDuration,u=t.timescale,c=void 0===u?1:u,f=t.startNumber,l=void 0===f?1:f,h=t.periodStart,p=[],d=-1,m=0;md&&(d=b);var w=void 0;if(y<0){var E=m+1;w=E===e.length?"dynamic"===r&&i>0&&o.indexOf("$Number$")>0?j(t,d,v):(s*c-d)/v:(e[E].t-d)/v}else w=y+1;for(var T=l+p.length+w,N=l+p.length;N=i?a:""+new Array(i-a.length+1).join("0")+a)}}(e))},H=function(t,e){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=w({baseUrl:t.baseUrl,source:q(a.sourceURL,r),range:a.range}),s=function(t,e){return t.duration||e?t.duration?N(t):z(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]}(t,e);return s.map((function(e){r.Number=e.number,r.Time=e.time;var i=q(t.media||"",r),a=t.timescale||1,s=t.presentationTimeOffset||0,u=t.periodStart+(e.time-s)/a;return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:(0,n.Z)(t.baseUrl||"",i),map:o,number:e.number,presentationTime:u}}))},K=function(t,e){var r=t.duration,n=t.segmentUrls,i=void 0===n?[]:n,a=t.periodStart;if(!r&&!e||r&&e)throw new Error(y);var o,s=i.map((function(e){return function(t,e){var r=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,a=w({baseUrl:r,source:i.sourceURL,range:i.range}),o=w({baseUrl:r,source:e.media,range:e.mediaRange});return o.map=a,o}(t,e)}));return r&&(o=N(t)),e&&(o=z(t,e)),o.map((function(e,r){if(s[r]){var n=s[r],i=t.timescale||1,o=t.presentationTimeOffset||0;return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n.presentationTime=a+(e.time-o)/i,n}})).filter((function(t){return t}))},G=function(t){var e,r,n=t.attributes,i=t.segmentInfo;i.template?(r=H,e=c(n,i.template)):i.base?(r=S,e=c(n,i.base)):i.list&&(r=K,e=c(n,i.list));var a={attributes:n};if(!r)return a;var o=r(e,i.segmentTimeline);if(e.duration){var s=e,u=s.duration,f=s.timescale,l=void 0===f?1:f;e.duration=u/l}else o.length?e.duration=o.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):e.duration=0;return a.attributes=e,a.segments=o,i.base&&e.indexRange&&(a.sidx=o[0],a.segments=[]),a},V=function(t,e){return h(t.childNodes).filter((function(t){return t.tagName===e}))},Y=function(t){return t.textContent.trim()},W=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var r=e.slice(1),n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(u||0)},$={mediaPresentationDuration:function(t){return W(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return W(t)},suggestedPresentationDelay:function(t){return W(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return W(t)},start:function(t){return W(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?W(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},J=function(t){return t&&t.attributes?h(t.attributes).reduce((function(t,e){var r=$[e.name]||$.DEFAULT;return t[e.name]=r(e.value),t}),{}):{}},Q={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},tt=function(t,e){return e.length?l(t.map((function(t){return e.map((function(e){return(0,n.Z)(t,Y(e))}))}))):t},et=function(t){var e=V(t,"SegmentTemplate")[0],r=V(t,"SegmentList")[0],n=r&&V(r,"SegmentURL").map((function(t){return c({tag:"SegmentURL"},J(t))})),i=V(t,"SegmentBase")[0],a=r||e,o=a&&V(a,"SegmentTimeline")[0],s=r||i||e,u=s&&V(s,"Initialization")[0],f=e&&J(e);f&&u?f.initialization=u&&J(u):f&&f.initialization&&(f.initialization={sourceURL:f.initialization});var l={template:f,segmentTimeline:o&&V(o,"S").map((function(t){return J(t)})),list:r&&c(J(r),{segmentUrls:n,initialization:J(u)}),base:i&&c(J(i),{initialization:J(u)})};return Object.keys(l).forEach((function(t){l[t]||delete l[t]})),l},rt=function(t,e,r){return function(n){var i,a=J(n),s=tt(e,V(n,"BaseURL")),u=V(n,"Role")[0],f={role:J(u)},h=c(t,a,f),p=V(n,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2015"===(i=J(p)).schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e,r;if(r=t,/^CC\d=/.test(t)){var n=t.split("=");e=n[0],r=n[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:r}})):"urn:scte:dash:cc:cea-708:2015"===i.schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var r=t.split("="),n=r[0],i=r[1],a=void 0===i?"":i;e.channel=n,e.language=t,a.split(",").forEach((function(t){var r=t.split(":"),n=r[0],i=r[1];"lang"===n?e.language=i:"er"===n?e.easyReader=Number(i):"war"===n?e.aspectRatio=Number(i):"3D"===n&&(e["3D"]=Number(i))}))}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e})):void 0;d&&(h=c(h,{captionServices:d}));var m=V(n,"Label")[0];if(m&&m.childNodes.length){var g=m.childNodes[0].nodeValue.trim();h=c(h,{label:g})}var v=V(n,"ContentProtection").reduce((function(t,e){var r=J(e);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());var n=Q[r.schemeIdUri];if(n){t[n]={attributes:r};var i=V(e,"cenc:pssh")[0];if(i){var a=Y(i);t[n].pssh=a&&(0,o.Z)(a)}}return t}),{});Object.keys(v).length&&(h=c(h,{contentProtection:v}));var y=et(n),b=V(n,"Representation"),w=c(r,y);return l(b.map(function(t,e,r){return function(n){var i=V(n,"BaseURL"),a=tt(e,i),o=c(t,J(n)),s=et(n);return a.map((function(t){return{segmentInfo:c(r,s),attributes:c(o,{baseUrl:t})}}))}}(h,s,w)))}},nt=function(t,e){return function(r,n){var i=tt(e,V(r.node,"BaseURL")),a=c(t,{periodStart:r.attributes.start});"number"===typeof r.attributes.duration&&(a.periodDuration=r.attributes.duration);var o=V(r.node,"AdaptationSet"),s=et(r.node);return l(o.map(rt(a,i,s)))}},it=function(t){if(""===t)throw new Error(m);var e,r,n=new s.DOMParser;try{r=(e=n.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(i){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw new Error(g);return r},at=function(t,e){void 0===e&&(e={});var r=function(t,e){void 0===e&&(e={});var r=e,n=r.manifestUri,i=void 0===n?"":n,a=r.NOW,o=void 0===a?Date.now():a,s=r.clientOffset,u=void 0===s?0:s,c=V(t,"Period");if(!c.length)throw new Error(d);var f=V(t,"Location"),h=J(t),p=tt([i],V(t,"BaseURL"));h.type=h.type||"static",h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=o,h.clientOffset=u,f.length&&(h.locations=f.map(Y));var m=[];return c.forEach((function(t,e){var r=J(t),n=m[e-1];r.start=function(t){var e=t.attributes,r=t.priorPeriodAttributes,n=t.mpdType;return"number"===typeof e.start?e.start:r&&"number"===typeof r.start&&"number"===typeof r.duration?r.start+r.duration:r||"static"!==n?null:0}({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:h.type}),m.push({node:t,attributes:r})})),{locations:h.locations,representationInfo:l(m.map(nt(h,p)))}}(it(t),e),n=r.representationInfo.map(G);return Z({dashPlaylists:n,locations:r.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})},ot=function(t){return function(t){var e=V(t,"UTCTiming")[0];if(!e)return null;var r=J(e);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw new Error(b)}return r}(it(t))}},84221:function(t,e,r){var n=r(46894).getUint64;t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=e.getUint32(i),r.firstOffset=e.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(t.subarray(i)),r.firstOffset=n(t.subarray(i+8)),i+=16),i+=2;var a=e.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&e.getUint32(i),subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&e.getUint32(i+8)});return r}},51489:function(t){var e,r,n,i,a,o,s,u=9e4;e=function(t){return t*u},r=function(t,e){return t*e},n=function(t){return t/u},i=function(t,e){return t/e},a=function(t,r){return e(i(t,r))},o=function(t,e){return r(n(t),e)},s=function(t,e,r){return n(r?t:t-e)},t.exports={ONE_SECOND_IN_TS:u,secondsToVideoTs:e,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:s}},46894:function(t){var e=Math.pow(2,32);t.exports={getUint64:function(t){var r,n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getBigUint64?(r=n.getBigUint64(0))0;function i(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),(function(){r(window.event)}))}function a(t,e){for(var r=e.slice(0,e.length-1),n=0;n=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":n?173:189,"=":n?61:187,";":n?59:186,"'":222,"[":219,"]":221,"\\":220},u={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},c={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},f={16:!1,18:!1,17:!1,91:!1},l={},h=1;h<20;h++)s["f".concat(h)]=111+h;var p=[],d=!1,m="all",g=[],v=function(t){return s[t.toLowerCase()]||u[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function y(t){m=t||"all"}function b(){return m||"all"}var w=function(t){var e=t.key,r=t.scope,n=t.method,i=t.splitKey,s=void 0===i?"+":i;o(e).forEach((function(t){var e=t.split(s),i=e.length,o=e[i-1],c="*"===o?"*":v(o);if(l[c]){r||(r=b());var f=i>1?a(u,e):[];l[c]=l[c].filter((function(t){return!((!n||t.method===n)&&t.scope===r&&function(t,e){for(var r=t.length>=e.length?t:e,n=t.length>=e.length?e:t,i=!0,a=0;a0,f)Object.prototype.hasOwnProperty.call(f,a)&&(!f[a]&&e.mods.indexOf(+a)>-1||f[a]&&-1===e.mods.indexOf(+a))&&(i=!1);(0!==e.mods.length||f[16]||f[18]||f[17]||f[91])&&!i&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function T(t,e){var r=l["*"],n=t.keyCode||t.which||t.charCode;if(N.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===p.indexOf(n)&&229!==n&&p.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var r=c[e];t[e]&&-1===p.indexOf(r)?p.push(r):!t[e]&&p.indexOf(r)>-1?p.splice(p.indexOf(r),1):"metaKey"===e&&t[e]&&3===p.length&&(t.ctrlKey||t.shiftKey||t.altKey||(p=p.slice(p.indexOf(r))))})),n in f){for(var i in f[n]=!0,u)u[i]===n&&(N[i]=!0);if(!r)return}for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(f[a]=t[c[a]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),f[17]=!0,f[18]=!0);var o=b();if(r)for(var s=0;s1&&(s=a(u,t)),(t="*"===(t=t[t.length-1])?"*":v(t))in l||(l[t]=[]),l[t].push({keyup:y,keydown:b,scope:c,mods:s,shortcut:n[m],method:r,key:n[m],splitKey:w,element:h});"undefined"!==typeof h&&!function(t){return g.indexOf(t)>-1}(h)&&window&&(g.push(h),i(h,"keydown",(function(t){T(t,h)}),E),d||(d=!0,i(window,"focus",(function(){p=[]}),E)),i(h,"keyup",(function(t){T(t,h),function(t){var e=t.keyCode||t.which||t.charCode,r=p.indexOf(e);if(r>=0&&p.splice(r,1),t.key&&"meta"===t.key.toLowerCase()&&p.splice(0,p.length),93!==e&&224!==e||(e=91),e in f)for(var n in f[e]=!1,u)u[n]===e&&(N[n]=!1)}(t)}),E))}var S={setScope:y,getScope:b,deleteScope:function(t,e){var r,n;for(var i in t||(t=b()),l)if(Object.prototype.hasOwnProperty.call(l,i))for(r=l[i],n=0;n1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(l).forEach((function(r){var n=l[r].find((function(r){return r.scope===e&&r.shortcut===t}));n&&n.method&&n.method()}))},unbind:function(t){if("undefined"===typeof t)Object.keys(l).forEach((function(t){return delete l[t]}));else if(Array.isArray(t))t.forEach((function(t){t.key&&w(t)}));else if("object"===typeof t)t.key&&w(t);else if("string"===typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function s(){this.values=i(null)}function u(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"===typeof i[a]){var o=i[a].split(r);if(2===o.length)e(o[0].trim(),o[1].trim())}}function c(t,e,r){var n=t;function i(){var e=o(t);if(null===e)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=i(),c(),"--\x3e"!==t.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),c(),e.endTime=i(),c(),function(t,e){var n=new s;u(t,(function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),o=a[0];n.integer(t,o),n.percent(t,o)&&n.set("snapToLines",!1),n.alt(t,o,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(i){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(i){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(i){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var f=n.createElement&&n.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},d={rt:"ruby"};function m(t,e){function r(){if(!e)return null;var t,r=e.match(/^([^<]*)(<[^>]*>?)?/);return t=r[1]?r[1]:r[2],e=e.substr(t.length),t}function n(t,e){return!d[e.localName]||d[e.localName]===t.localName}function i(e,r){var n=l[e];if(!n)return null;var i=t.document.createElement(n),a=p[e];return a&&r&&(i[a]=r.trim()),i}for(var a,s,u=t.document.createElement("div"),c=u,m=[];null!==(a=r());)if("<"!==a[0])c.appendChild(t.document.createTextNode((s=a,f.innerHTML=s,s=f.textContent,f.textContent="",s)));else{if("/"===a[1]){m.length&&m[m.length-1]===a.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,v=o(a.substr(1,a.length-2));if(v){g=t.document.createProcessingInstruction("timestamp",v),c.appendChild(g);continue}var y=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=i(y[1],y[3])))continue;if(!n(c,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(t){var e=/^bg_/.test(t),r=e?t.slice(3):t;if(h.hasOwnProperty(r)){var n=e?"background-color":"color",i=h[r];g.style[n]=i}})),g.className=b.join(" ")}m.push(y[1]),c.appendChild(g),c=g}return u}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(t){for(var e=0;e=r[0]&&t<=r[1])return!0}return!1}function y(t){var e=[],r="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var r=e.childNodes.length-1;r>=0;r--)t.push(e.childNodes[r])}function i(t){if(!t||!t.length)return null;var e=t.pop(),r=e.textContent||e.innerText;if(r){var a=r.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):r}return"ruby"===e.tagName?i(t):e.childNodes?(n(t,e),i(t)):void 0}for(n(e,t);r=i(e);)for(var a=0;a=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,r=e.textTrackList,n=0,i=0;il&&(f=f<0?-1:1,f*=Math.ceil(l/c)*c),o<0&&(f+=""===a.vertical?r.height:r.width,s=s.reverse()),i.move(h,f)}else{var p=i.lineHeight/r.height*100;switch(a.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new E(e)}var d=function(t,e){for(var i,a=new E(t),o=1,s=0;su&&(i=new E(t),o=u),t=new E(a)}return i||a}(i,s);e.move(d.toCSSCompatValues(r))}function N(){}b.prototype.applyStyles=function(t,e){for(var r in e=e||this.div,t)t.hasOwnProperty(r)&&(e.style[r]=t[r])},b.prototype.formatStyle=function(t,e){return 0===t?0:t+e},w.prototype=i(b.prototype),w.prototype.constructor=w,E.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},E.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},E.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},E.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},E.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},E.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},E.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r}},N.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!==typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},N.convertCueToDOMTree=function(t,e){return t&&e?m(t,e):null};N.processCues=function(t,e,r){if(!t||!e||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),function(t){for(var e=0;e100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=n(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(t){var e=n(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=i},13710:function(t){var e={"":!0,up:!0};function r(t){return"number"===typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,i=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var r=function(t){return"string"===typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===r?console.warn("Scroll: an invalid or illegal string was specified."):u=r}}})}},10434:function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e0&&(a=M().map((function(e){return c.createElement(k,{prefixCls:L,key:e.value.toString(),disabled:"disabled"in e?e.disabled:C.disabled,value:e.value,checked:-1!==S.indexOf(e.value),onChange:e.onChange,className:"".concat(T,"-item"),style:e.style},e.label)})));var A={toggleOption:function(e){var n=S.indexOf(e.value),t=(0,u.Z)(S);-1===n?t.push(e.value):t.splice(n,1),"value"in C||K(t);var r=M();null===x||void 0===x||x(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:S,disabled:C.disabled,name:C.name,registerValue:function(e){R((function(n){return[].concat((0,u.Z)(n),[e])}))},cancelValue:function(e){R((function(n){return n.filter((function(n){return n!==e}))}))}},H=i()(T,(0,r.Z)({},"".concat(T,"-rtl"),"rtl"===N),y);return c.createElement("div",(0,o.Z)({className:H,style:g},I,{ref:n}),c.createElement(m.Provider,{value:A},a))},y=c.forwardRef(h),g=c.memo(y),x=t(98866),C=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}(t,p||1,null===e||void 0===e?void 0:e.startRow,null===e||void 0===e?void 0:e.endRow);return{onHover:null===e||void 0===e?void 0:e.onHover,hovering:n}})),m=v.onHover,y=v.hovering;return u.createElement(z,(0,a.Z)({},e,{colSpan:f,rowSpan:p,hovering:y,ref:n,onHover:m}))}));_.displayName="WrappedCell";var F=_,j=u.createContext(null);function B(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 d=!1,s=!1,u=!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){u=!(p&&"right"===p.fixed)}}else if(void 0!==a){d=!(p&&"left"===p.fixed)}else if(void 0!==i){s=!(v&&"right"===v.fixed)}return{fixLeft:a,fixRight:i,lastFixLeft:d,firstFixRight:s,lastFixRight:u,firstFixLeft:f,isSticky:r.isSticky}}function V(e){var n,t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,i=e.rowComponent,l=e.cellComponent,c=e.onHeaderRow,d=e.index,s=u.useContext(j),f=s.prefixCls,p=s.direction;c&&(n=c(t.map((function(e){return e.column})),d));var v=w(t.map((function(e){return e.column})));return u.createElement(i,n,t.map((function(e,n){var t,i=e.column,c=B(e.colStart,e.colEnd,o,r,p);return i&&i.onHeaderCell&&(t=e.column.onHeaderCell(i)),u.createElement(F,(0,a.Z)({},e,{ellipsis:i.ellipsis,align:i.align,component:l,prefixCls:f,key:v[n]},c,{additionalProps:t,rowType:"header"}))})))}V.displayName="HeaderRow";var W=V;var U=function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=u.useContext(j),i=a.prefixCls,l=a.getComponent,c=u.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?t-1:0),a=1;a0?[].concat((0,s.Z)(e),(0,s.Z)(ue(o).map((function(e){return(0,d.Z)({fixed:r},e)})))):[].concat((0,s.Z)(e),[(0,d.Z)((0,d.Z)({},n),{},{fixed:r})])}),[])}var fe=function(e,n){var t=e.prefixCls,r=e.columns,a=e.children,i=e.expandable,l=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,f=e.onTriggerExpand,p=e.expandIcon,v=e.rowExpandable,m=e.expandIconColumnIndex,h=e.direction,y=e.expandRowByClick,g=e.columnWidth,x=e.fixed,C=u.useMemo((function(){return r||se(a)}),[r,a]),E=u.useMemo((function(){if(i){var e,n=C.slice();if(!n.includes(le)){var r=m||0;r>=0&&n.splice(r,0,le)}0;var a=n.indexOf(le);n=n.filter((function(e,n){return e!==le||n===a}));var d,h=C[a];d="left"!==x&&!x||m?"right"!==x&&!x||m!==C.length?h?h.fixed:null:"right":"left";var E=(e={},(0,o.Z)(e,ie,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,o.Z)(e,"title",c),(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=s(n,r),a=l.has(o),i=!v||v(n),c=p({prefixCls:t,expanded:a,expandable:i,record:n,onExpand:f});return y?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c})),e);return n.map((function(e){return e===le?E:e}))}return C.filter((function(e){return e!==le}))}),[i,C,s,l,p,h]),Z=u.useMemo((function(){var e=E;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,E,h]),N=u.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var n=e.fixed,t=(0,k.Z)(e,de),r=n;return"left"===n?r="right":"right"===n&&(r="left"),(0,d.Z)({fixed:r},t)}))}(ue(Z)):ue(Z)}),[Z,h]);return[Z,N]};function pe(e){var n=(0,u.useRef)(e),t=(0,u.useState)({}),r=(0,i.Z)(t,2)[1],o=(0,u.useRef)(null),a=(0,u.useRef)([]);return(0,u.useEffect)((function(){return function(){o.current=null}}),[]),[n.current,function(e){a.current.push(e);var t=Promise.resolve();o.current=t,t.then((function(){if(o.current===t){var e=a.current,i=n.current;a.current=[],e.forEach((function(e){n.current=e(n.current)})),o.current=null,i!==n.current&&r({})}}))}]}var ve=function(e,n,t){return(0,u.useMemo)((function(){for(var r=[],o=[],a=0,i=0,l=0;l=0;i-=1){var l=n[i],c=t&&t[i],d=c&&c[ie];if(l||d||o){var s=d||{},f=(s.columnType,(0,k.Z)(s,me));r.unshift(u.createElement("col",(0,a.Z)({key:i,style:{width:l}},f))),o=!0}}return u.createElement("colgroup",null,r)};var ye=function(e){var n=e.className,t=e.children;return u.createElement("div",{className:n},t)},ge=u.createContext({});var xe=["children"];function Ce(e){return e.children}Ce.Row=function(e){var n=e.children,t=(0,k.Z)(e,xe);return u.createElement("tr",t,n)},Ce.Cell=function(e){var n=e.className,t=e.index,r=e.children,o=e.colSpan,i=void 0===o?1:o,l=e.rowSpan,c=e.align,d=u.useContext(j),s=d.prefixCls,f=d.direction,p=u.useContext(ge),v=p.scrollColumnIndex,m=p.stickyOffsets,h=t+i-1+1===v?i+1:i,y=B(t,t+h-1,p.flattenColumns,m,f);return u.createElement(F,(0,a.Z)({className:n,index:t,component:"td",prefixCls:s,record:null,dataIndex:null,align:c,colSpan:h,rowSpan:l,render:function(){return r}},y))};var Ee=Ce;var ke=function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,o=u.useContext(j).prefixCls,a=r.length-1,i=r[a],l=u.useMemo((function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:(null===i||void 0===i?void 0:i.scrollbar)?a:null}}),[i,r,a,t]);return u.createElement(ge.Provider,{value:l},u.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,l=e.expandable,d="".concat(t,"-row-expand-icon");if(!l)return u.createElement("span",{className:c()(d,"".concat(t,"-row-spaced"))});return u.createElement("span",{className:c()(d,(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 be=t(64019),we=t(27678),Se=function(e,n){var t,r,a=e.scrollBodyRef,l=e.onScroll,s=e.offsetScroll,f=e.container,p=u.useContext(j).prefixCls,v=(null===(t=a.current)||void 0===t?void 0:t.scrollWidth)||0,m=(null===(r=a.current)||void 0===r?void 0:r.clientWidth)||0,h=v&&m*(m/v),y=u.useRef(),g=pe({scrollLeft:0,isHiddenScrollBar:!1}),C=(0,i.Z)(g,2),E=C[0],k=C[1],Z=u.useRef({delta:0,x:0}),N=u.useState(!1),b=(0,i.Z)(N,2),w=b[0],S=b[1],K=function(){S(!1)},O=function(e){var n,t=(e||(null===(n=window)||void 0===n?void 0:n.event)).buttons;if(w&&0!==t){var r=Z.current.x+e.pageX-Z.current.x-Z.current.delta;r<=0&&(r=0),r+h>=m&&(r=m-h),l({scrollLeft:r/m*(v+2)}),Z.current.x=e.pageX}else w&&S(!1)},P=function(){if(a.current){var e=(0,we.os)(a.current).top,n=e+a.current.offsetHeight,t=f===window?document.documentElement.scrollTop+window.innerHeight:(0,we.os)(f).top+f.clientHeight;n-(0,x.Z)()<=t||e>=t-s?k((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!0})})):k((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!1})}))}},D=function(e){k((function(n){return(0,d.Z)((0,d.Z)({},n),{},{scrollLeft:e/v*m||0})}))};return u.useImperativeHandle(n,(function(){return{setScrollLeft:D}})),u.useEffect((function(){var e=(0,be.Z)(document.body,"mouseup",K,!1),n=(0,be.Z)(document.body,"mousemove",O,!1);return P(),function(){e.remove(),n.remove()}}),[h,w]),u.useEffect((function(){var e=(0,be.Z)(f,"scroll",P,!1),n=(0,be.Z)(window,"resize",P,!1);return function(){e.remove(),n.remove()}}),[f]),u.useEffect((function(){E.isHiddenScrollBar||k((function(e){var n=a.current;return n?(0,d.Z)((0,d.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e}))}),[E.isHiddenScrollBar]),v<=m||!h||E.isHiddenScrollBar?null:u.createElement("div",{style:{height:(0,x.Z)(),width:m,bottom:s},className:"".concat(p,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(e){e.persist(),Z.current.delta=e.pageX-E.scrollLeft,Z.current.x=0,S(!0),e.preventDefault()},ref:y,className:c()("".concat(p,"-sticky-scroll-bar"),(0,o.Z)({},"".concat(p,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(E.scrollLeft,"px, 0, 0)")}}))},Ke=u.forwardRef(Se),Oe=(0,t(98924).Z)()?window:null;var Pe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var De=u.forwardRef((function(e,n){var t=e.className,r=e.noData,a=e.columns,i=e.flattenColumns,l=e.colWidths,f=e.columCount,p=e.stickyOffsets,v=e.direction,m=e.fixHeader,h=e.stickyTopOffset,y=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,C=e.maxContentScroll,E=e.children,N=(0,k.Z)(e,Pe),b=u.useContext(j),w=b.prefixCls,S=b.scrollbarSize,K=b.isSticky,O=K&&!m?0:S,P=u.useRef(null),D=u.useCallback((function(e){(0,Z.mH)(n,e),(0,Z.mH)(P,e)}),[]);u.useEffect((function(){var e;function n(e){var n=e.currentTarget,t=e.deltaX;t&&(x({currentTarget:n,scrollLeft:n.scrollLeft+t}),e.preventDefault())}return null===(e=P.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=P.current)||void 0===e||e.removeEventListener("wheel",n)}}),[]);var R=u.useMemo((function(){return i.every((function(e){return e.width>=0}))}),[i]),M=i[i.length-1],L={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},T=(0,u.useMemo)((function(){return O?[].concat((0,s.Z)(a),[L]):a}),[O,a]),I=(0,u.useMemo)((function(){return O?[].concat((0,s.Z)(i),[L]):i}),[O,i]),A=(0,u.useMemo)((function(){var e=p.right,n=p.left;return(0,d.Z)((0,d.Z)({},p),{},{left:"rtl"===v?[].concat((0,s.Z)(n.map((function(e){return e+O}))),[0]):n,right:"rtl"===v?e:[].concat((0,s.Z)(e.map((function(e){return e+O}))),[0]),isSticky:K})}),[O,p,K]),H=function(e,n){return(0,u.useMemo)((function(){for(var t=[],r=0;r0)):(ln(a>0),un(a1&&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=Ye(l,!0),d=Date.now(),s=function n(){var t=Date.now()-d,r=Xe(t>i?i:t,c,e,i);qe(l)?l.scrollTo(window.pageXOffset,r):l instanceof HTMLDocument||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=r:l.scrollTop=r,t0&&(M=x.map((function(e){return"string"===typeof e||"number"===typeof e?u.createElement(On,{key:e.toString(),prefixCls:D,disabled:k,value:e,checked:v===e},e):u.createElement(On,{key:"radio-group-value-options-".concat(e.value),prefixCls:D,disabled:e.disabled||k,value:e.value,checked:v===e.value,style:e.style},e.label)})));var L=N||s,T=c()(R,"".concat(R,"-").concat(E),(t={},(0,o.Z)(t,"".concat(R,"-").concat(L),L),(0,o.Z)(t,"".concat(R,"-rtl"),"rtl"===d),t),g);return u.createElement("div",(0,a.Z)({},(0,gn.Z)(e),{className:T,style:b,onMouseEnter:S,onMouseLeave:K,onFocus:O,onBlur:P,id:w,ref:n}),u.createElement(Cn,{value:{onChange:function(n){var t=v,r=n.target.value;"value"in e||m(r);var o=e.onChange;o&&r!==t&&o(n)},value:v,disabled:e.disabled,name:e.name,optionType:e.optionType}},M))})),Dn=u.memo(Pn),Rn=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);o1&&void 0!==arguments[1]?arguments[1]:null;return t.map((function(u,f){for(var p,v=pt(r?r.pos:"0",f),m=Yn(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,d=a||c,s={},u={},f={posEntities:s,keyEntities:u};return t&&(f=t(f)||f),et(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},d=Yn(a,o);s[o]=c,u[d]=c,c.parent=s[i],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:d,childrenPropName:i,fieldNames:l}),o&&o(f),f}function tt(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,i=n.checkedKeys,l=n.halfCheckedKeys,c=n.dragOverNodeKey,d=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===d,dragOverGapTop:c===e&&-1===d,dragOverGapBottom:c===e&&1===d}}function rt(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,s=e.dragOverGapTop,u=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:s,dragOverGapBottom:u,pos:f,active:p,key:v});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,y.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}var ot=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],at="open",it="close",lt=function(e){(0,Bn.Z)(t,e);var n=(0,Vn.Z)(t);function t(){var e;(0,_n.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a=0&&t.splice(r,1),t}function ut(e,n){var t=(e||[]).slice();return-1===t.indexOf(n)&&t.push(n),t}function ft(e){return e.split("-")}function pt(e,n){return"".concat(e,"-").concat(n)}function vt(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 mt(e){if(e.parent){var n=ft(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function ht(e,n,t,r,o,a,i,l,c,d){var s,u=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),v=p.top,m=p.height,h=(("rtl"===d?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-u)-12)/r,y=l[t.props.eventKey];if(f-1.5?a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1:a({dragNode:w,dropNode:S,dropPosition:0})?Z=0:a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1:a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1,{dropPosition:Z,dropLevelOffset:N,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:k,dropContainerKey:0===Z?null:(null===(s=y.parent)||void 0===s?void 0:s.key)||null,dropAllowed:K}}function yt(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function gt(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,y.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 xt(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,s.Z)(t)}var Ct=t(73453),Et=t(62874),kt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Zt=function(e,n){var t=e.className,r=e.style,o=e.motion,l=e.motionNodes,d=e.motionType,s=e.onMotionStart,f=e.onMotionEnd,p=e.active,v=e.treeNodeRequiredProps,m=(0,k.Z)(e,kt),h=u.useState(!0),y=(0,i.Z)(h,2),g=y[0],x=y[1],C=u.useContext(Un).prefixCls,E=u.useRef(!1),Z=function(){E.current||f(),E.current=!0};return(0,u.useEffect)((function(){l&&"hide"===d&&g&&x(!1)}),[l]),(0,u.useEffect)((function(){return l&&s(),function(){l&&Z()}}),[]),l?u.createElement(Et.Z,(0,a.Z)({ref:n,visible:g},o,{motionAppear:"show"===d,onAppearEnd:Z,onLeaveEnd:Z}),(function(e,n){var t=e.className,r=e.style;return u.createElement("div",{ref:n,className:c()("".concat(C,"-treenode-motion"),t),style:r},l.map((function(e){var n=(0,a.Z)({},e.data),t=e.title,r=e.key,o=e.isStart,i=e.isEnd;delete n.children;var l=tt(r,v);return u.createElement(dt,(0,a.Z)({},n,l,{title:t,active:p,data:e.data,key:r,isStart:o,isEnd:i}))})))})):u.createElement(dt,(0,a.Z)({domRef:n,className:t,style:r},m,{active:p}))};Zt.displayName="MotionTreeNode";var Nt=u.forwardRef(Zt);function bt(e,n,t){var r=e.findIndex((function(e){return e.key===t})),o=e[r+1],a=n.findIndex((function(e){return e.key===t}));if(o){var i=n.findIndex((function(e){return e.key===o.key}));return n.slice(a+1,i)}return n.slice(a+1)}var wt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],St={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Kt=function(){},Ot="RC_TREE_MOTION_".concat(Math.random()),Pt={key:Ot},Dt={key:Ot,level:0,index:0,pos:"0",node:Pt,nodes:[Pt]},Rt={parent:null,children:[],pos:Dt.pos,data:Pt,title:null,key:Ot,isStart:[],isEnd:[]};function Mt(e,n,t,r){return!1!==n&&t?e.slice(0,Math.ceil(t/r)+1):e}function Lt(e){return Yn(e.key,e.pos)}var Tt=u.forwardRef((function(e,n){var t=e.prefixCls,r=e.data,o=(e.selectable,e.checkable,e.expandedKeys),l=e.selectedKeys,c=e.checkedKeys,d=e.loadedKeys,s=e.loadingKeys,f=e.halfCheckedKeys,p=e.keyEntities,v=e.disabled,m=e.dragging,h=e.dragOverNodeKey,y=e.dropPosition,g=e.motion,x=e.height,C=e.itemHeight,E=e.virtual,Z=e.focusable,N=e.activeItem,b=e.focused,w=e.tabIndex,S=e.onKeyDown,K=e.onFocus,O=e.onBlur,P=e.onActiveChange,D=e.onListChangeStart,R=e.onListChangeEnd,M=(0,k.Z)(e,wt),L=u.useRef(null),T=u.useRef(null);u.useImperativeHandle(n,(function(){return{scrollTo:function(e){L.current.scrollTo(e)},getIndentWidth:function(){return T.current.offsetWidth}}}));var I=u.useState(o),A=(0,i.Z)(I,2),H=A[0],z=A[1],_=u.useState(r),F=(0,i.Z)(_,2),j=F[0],B=F[1],V=u.useState(r),W=(0,i.Z)(V,2),U=W[0],G=W[1],X=u.useState([]),q=(0,i.Z)(X,2),Y=q[0],$=q[1],J=u.useState(null),Q=(0,i.Z)(J,2),ee=Q[0],ne=Q[1],te=u.useRef(r);function re(){var e=te.current;B(e),G(e),$([]),ne(null),R()}te.current=r,u.useEffect((function(){z(o);var e=function(){var e=arguments.length>0&&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}(N)),u.createElement("div",null,u.createElement("input",{style:St,disabled:!1===Z||v,tabIndex:!1!==Z?w:null,onKeyDown:S,onFocus:K,onBlur:O,value:"",onChange:Kt,"aria-label":"for screen reader"})),u.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},u.createElement("div",{className:"".concat(t,"-indent")},u.createElement("div",{ref:T,className:"".concat(t,"-indent-unit")}))),u.createElement(Ct.Z,(0,a.Z)({},M,{data:oe,itemKey:Lt,height:x,fullHeight:!1,virtual:E,itemHeight:C,prefixCls:"".concat(t,"-list"),ref:L,onVisibleChange:function(e,n){var t=new Set(e);n.filter((function(e){return!t.has(e)})).some((function(e){return Lt(e)===Ot}))&&re()}}),(function(e){var n=e.pos,t=(0,a.Z)({},e.data),r=e.title,o=e.key,i=e.isStart,l=e.isEnd,c=Yn(o,n);delete t.key,delete t.children;var d=tt(c,ae);return u.createElement(Nt,(0,a.Z)({},t,d,{title:r,active:!!N&&o===N.key,pos:n,data:e.data,isStart:i,isEnd:l,motion:g,motionNodes:o===Ot?Y:null,motionType:ee,onMotionStart:D,onMotionEnd:re,treeNodeRequiredProps:ae,onMouseMove:function(){P(null)}}))})))}));Tt.displayName="NodeList";var It=Tt;function At(e,n){var t=new Set;return e.forEach((function(e){n.has(e)||t.add(e)})),t}function Ht(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!(!t&&!r)||!1===o}function zt(e,n,t,r){var o,a=[];o=r||Ht;var i,l=new Set(e.filter((function(e){var n=!!t[e];return n||a.push(e),n}))),c=new Map,d=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),d=Math.max(d,r)})),(0,y.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(At(a,o))}}(l,c,d,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,d=r;d>=0;d-=1)(t.get(d)||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(At(i,a))}}(l,n.halfCheckedKeys,c,d,o),i}var _t=function(e){(0,Bn.Z)(t,e);var n=(0,Vn.Z)(t);function t(){var e;(0,_n.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,s=a.dropTargetPos,u=a.dropAllowed;if(u){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var p=(0,d.Z)((0,d.Z)({},tt(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:e.state.keyEntities[c].node}),v=-1!==i.indexOf(c);(0,y.ZP)(!v,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=ft(s),h={event:n,node:rt(p),dragNode:e.dragNode?rt(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.triggerExpandActionExpand=function(n,t){var r=e.state,o=r.expandedKeys,a=r.flattenNodes,i=t.expanded,l=t.key;if(!(t.isLeaf||n.shiftKey||n.metaKey||n.ctrlKey)){var c=a.filter((function(e){return e.key===l}))[0],s=rt((0,d.Z)((0,d.Z)({},tt(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(i?st(o,l):ut(o,l)),e.onNodeExpand(n,s)}},e.onNodeClick=function(n,t){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(n,t),null===o||void 0===o||o(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(n,t),null===o||void 0===o||o(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,d=l.multiple,s=t.selected,u=t[i.key],f=!s,p=(r=f?d?ut(r,u):[u]:st(r,u)).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,d=e.props,u=d.checkStrictly,f=d.onCheck,p=t.key,v={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(u){var m=r?ut(l,p):st(l,p);o={checked:m,halfChecked:st(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=zt([].concat((0,s.Z)(l),[p]),!0,i),y=h.checkedKeys,g=h.halfCheckedKeys;if(!r){var x=new Set(y);x.delete(p);var C=zt(Array.from(x),{checked:!1,halfCheckedKeys:g},i);y=C.checkedKeys,g=C.halfCheckedKeys}o=y,v.checkedNodes=[],v.checkedNodesPositions=[],v.halfCheckedKeys=g,y.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:y},!1,{halfCheckedKeys:g})}null===f||void 0===f||f(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,d=void 0===c?[]:c,s=e.props,u=s.loadData,f=s.onLoad;return u&&-1===l.indexOf(t)&&-1===d.indexOf(t)?(u(n).then((function(){var o=ut(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:st(e.loadingKeys,t)}})),r()})).catch((function(n){if(e.setState((function(e){return{loadingKeys:st(e.loadingKeys,t)}})),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:ut(a,t)}),r()}o(n)})),{loadingKeys:ut(d,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,Fn.Z)(t,[{key:"componentDidMount",value:function(){this.destroyed=!1,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,i=t.focused,l=t.flattenNodes,d=t.keyEntities,s=t.draggingNodeKey,f=t.activeKey,v=t.dropLevelOffset,m=t.dropContainerKey,h=t.dropTargetKey,y=t.dropPosition,g=t.dragOverNodeKey,x=t.indent,C=this.props,E=C.prefixCls,k=C.className,Z=C.style,N=C.showLine,b=C.focusable,w=C.tabIndex,S=void 0===w?0:w,K=C.selectable,O=C.showIcon,P=C.icon,D=C.switcherIcon,R=C.draggable,M=C.checkable,L=C.checkStrictly,T=C.disabled,I=C.motion,A=C.loadData,H=C.filterTreeNode,z=C.height,_=C.itemHeight,F=C.virtual,j=C.titleRender,B=C.dropIndicatorRender,V=C.onContextMenu,W=C.onScroll,U=C.direction,G=C.rootClassName,X=C.rootStyle,q=(0,p.Z)(this.props,{aria:!0,data:!0});return R&&(n="object"===(0,r.Z)(R)?R:"function"===typeof R?{nodeDraggable:R}:{}),u.createElement(Un.Provider,{value:{prefixCls:E,selectable:K,showIcon:O,icon:P,switcherIcon:D,draggable:n,draggingNodeKey:s,checkable:M,checkStrictly:L,disabled:T,keyEntities:d,dropLevelOffset:v,dropContainerKey:m,dropTargetKey:h,dropPosition:y,dragOverNodeKey:g,indent:x,direction:U,dropIndicatorRender:B,loadData:A,filterTreeNode:H,titleRender:j,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}},u.createElement("div",{role:"tree",className:c()(E,k,G,(e={},(0,o.Z)(e,"".concat(E,"-show-line"),N),(0,o.Z)(e,"".concat(E,"-focused"),i),(0,o.Z)(e,"".concat(E,"-active-focused"),null!==f),e)),style:X},u.createElement(It,(0,a.Z)({ref:this.listRef,prefixCls:E,style:Z,data:l,disabled:T,selectable:K,checkable:!!M,motion:I,dragging:null!==s,height:z,itemHeight:_,virtual:F,focusable:b,focused:i,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:W},this.getTreeNodeRequiredProps(),q))))}}],[{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=$n(e.fieldNames),a.fieldNames=l),i("treeData")?t=e.treeData:i("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=Jn(e.children)),t){a.treeData=t;var c=nt(t,{fieldNames:l});a.keyEntities=(0,d.Z)((0,o.Z)({},Ot,Dt),c.keyEntities)}var s,u=a.keyEntities||n.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?xt(e.expandedKeys,u):e.expandedKeys;else if(!r&&e.defaultExpandAll){var f=(0,d.Z)({},u);delete f[Ot],a.expandedKeys=Object.keys(f).map((function(e){return f[e].key}))}else!r&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?xt(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var p=Qn(t||n.treeData,a.expandedKeys||n.expandedKeys,l);a.flattenNodes=p}if((e.selectable&&(i("selectedKeys")?a.selectedKeys=yt(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(a.selectedKeys=yt(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?s=gt(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=gt(e.defaultCheckedKeys)||{}:t&&(s=gt(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),s)){var v=s,m=v.checkedKeys,h=void 0===m?[]:m,g=v.halfCheckedKeys,x=void 0===g?[]:g;if(!e.checkStrictly){var C=zt(h,!0,u);h=C.checkedKeys,x=C.halfCheckedKeys}a.checkedKeys=h,a.halfCheckedKeys=x}return i("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(u.Component);_t.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 u.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},_t.TreeNode=dt;var Ft=_t,jt=t(33603),Bt={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"},Vt=function(e,n){return u.createElement(an.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Bt}))};Vt.displayName="FileOutlined";var Wt=u.forwardRef(Vt),Ut={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"},Gt=function(e,n){return u.createElement(an.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Ut}))};Gt.displayName="FolderOpenOutlined";var Xt=u.forwardRef(Gt),qt={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"},Yt=function(e,n){return u.createElement(an.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:qt}))};Yt.displayName="FolderOutlined";var $t,Jt=u.forwardRef(Yt);function Qt(e,n){e.forEach((function(e){var t=e.key,r=e.children;!1!==n(t,e)&&Qt(r||[],n)}))}function er(e){var n=e.treeData,t=e.expandedKeys,r=e.startKey,o=e.endKey,a=[],i=$t.None;if(r&&r===o)return[r];if(!r||!o)return[];return Qt(n,(function(e){if(i===$t.End)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),i===$t.None)i=$t.Start;else if(i===$t.Start)return i=$t.End,!1}else i===$t.Start&&a.push(e);return-1!==t.indexOf(e)})),a}function nr(e,n){var t=(0,s.Z)(n),r=[];return Qt(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"}($t||($t={}));var tr=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&&Q([]),t&&L(!1),Y(""),z(S?(K||[]).map((function(e){return String(e)})):[])},te=c()((0,o.Z)({},"".concat(s,"-menu-without-submenu"),!(d.filters||[]).some((function(e){return e.children})))),re=function(e){if(e.target.checked){var n=Rr(null===d||void 0===d?void 0:d.filters).map((function(e){return String(e)}));z(n)}else z([])},oe=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}))},ae=function e(n){var t;return(0,a.Z)((0,a.Z)({},n),{text:n.title,value:n.key,children:(null===(t=n.children)||void 0===t?void 0:t.map((function(n){return e(n)})))||[]})};if("function"===typeof d.filterDropdown)J=d.filterDropdown({prefixCls:"".concat(s,"-custom"),setSelectedKeys:function(e){return _({selectedKeys:e})},selectedKeys:H(),confirm:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0}).closeDropdown&&L(!1),Q(H())},clearFilters:ne,filters:d.filters,visible:t});else if(d.filterDropdown)J=d.filterDropdown;else{var ie=H()||[];J=u.createElement(u.Fragment,null,0===(d.filters||[]).length?u.createElement(vn.Z,{image:vn.Z.PRESENTED_IMAGE_SIMPLE,description:C.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===m?u.createElement(u.Fragment,null,u.createElement(br,{filterSearch:y,value:q,onChange:$,tablePrefixCls:r,locale:C}),u.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},p?u.createElement(fn.Z,{checked:ie.length===Rr(d.filters).length,indeterminate:ie.length>0&&ie.length0?c:e}),h=Math.ceil((c||e)/m.pageSize);m.current>h&&(m.current=h||1);var y=function(e,n){v({current:null!==e&&void 0!==e?e:1,pageSize:n||m.pageSize})};return!1===n?[{},function(){}]:[(0,a.Z)((0,a.Z)({},m),{onChange:function(e,r){var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),y(e,r),t(e,r||(null===m||void 0===m?void 0:m.pageSize))}}),y]}var Hr=t(84506),zr=t(80882),_r={},Fr="SELECT_ALL",jr="SELECT_INVERT",Br="SELECT_NONE",Vr=[];function Wr(e,n){var t=[];return(e||[]).forEach((function(e){t.push(e),e&&"object"===(0,r.Z)(e)&&n in e&&(t=[].concat((0,s.Z)(t),(0,s.Z)(Wr(e[n],n))))})),t}function Ur(e,n){var t=e||{},r=t.preserveSelectedRowKeys,l=t.selectedRowKeys,c=t.defaultSelectedRowKeys,d=t.getCheckboxProps,f=t.onChange,p=t.onSelect,v=t.onSelectAll,m=t.onSelectInvert,h=t.onSelectNone,y=t.onSelectMultiple,g=t.columnWidth,x=t.type,C=t.selections,E=t.fixed,k=t.renderCell,Z=t.hideSelectAll,N=t.checkStrictly,b=void 0===N||N,w=n.prefixCls,S=n.data,K=n.pageData,O=n.getRecordByKey,P=n.getRowKey,D=n.expandType,R=n.childrenColumnName,M=n.locale,L=n.getPopupContainer,T=(0,yn.Z)(l||c||Vr,{value:l}),I=(0,i.Z)(T,2),A=I[0],H=I[1],z=u.useRef(new Map),_=(0,u.useCallback)((function(e){if(r){var n=new Map;e.forEach((function(e){var t=O(e);!t&&z.current.has(e)&&(t=z.current.get(e)),n.set(e,t)})),z.current=n}}),[O,r]);u.useEffect((function(){_(A)}),[A]);var F=(0,u.useMemo)((function(){return b?{keyEntities:null}:nt(S,{externalGetKey:P,childrenPropName:R})}),[S,P,b,R]).keyEntities,j=(0,u.useMemo)((function(){return Wr(K,R)}),[K,R]),B=(0,u.useMemo)((function(){var e=new Map;return j.forEach((function(n,t){var r=P(n,t),o=(d?d(n):null)||{};e.set(r,o)})),e}),[j,P,d]),V=(0,u.useCallback)((function(e){var n;return!!(null===(n=B.get(P(e)))||void 0===n?void 0:n.disabled)}),[B,P]),W=(0,u.useMemo)((function(){if(b)return[A||[],[]];var e=zt(A,!0,F,V);return[e.checkedKeys||[],e.halfCheckedKeys]}),[A,b,F,V]),U=(0,i.Z)(W,2),G=U[0],X=U[1],q=(0,u.useMemo)((function(){var e="radio"===x?G.slice(0,1):G;return new Set(e)}),[G,x]),Y=(0,u.useMemo)((function(){return"radio"===x?new Set:new Set(X)}),[X,x]),$=(0,u.useState)(null),J=(0,i.Z)($,2),Q=J[0],ee=J[1];u.useEffect((function(){e||H(Vr)}),[!!e]);var ne=(0,u.useCallback)((function(e,n){var t,o;_(e),r?(t=e,o=e.map((function(e){return z.current.get(e)}))):(t=[],o=[],e.forEach((function(e){var n=O(e);void 0!==n&&(t.push(e),o.push(n))}))),H(t),null===f||void 0===f||f(t,o,{type:n})}),[H,O,f,r]),te=(0,u.useCallback)((function(e,n,t,r){if(p){var o=t.map((function(e){return O(e)}));p(O(e),n,o,r)}ne(t,"single")}),[p,O,ne]),re=(0,u.useMemo)((function(){return!C||Z?null:(!0===C?[Fr,jr,Br]:C).map((function(e){return e===Fr?{key:"all",text:M.selectionAll,onSelect:function(){ne(S.map((function(e,n){return P(e,n)})).filter((function(e){var n=B.get(e);return!(null===n||void 0===n?void 0:n.disabled)||q.has(e)})),"all")}}:e===jr?{key:"invert",text:M.selectInvert,onSelect:function(){var e=new Set(q);K.forEach((function(n,t){var r=P(n,t),o=B.get(r);(null===o||void 0===o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));var n=Array.from(e);m&&m(n),ne(n,"invert")}}:e===Br?{key:"none",text:M.selectNone,onSelect:function(){null===h||void 0===h||h(),ne(Array.from(q).filter((function(e){var n=B.get(e);return null===n||void 0===n?void 0:n.disabled})),"none")}}:e})).map((function(e){return(0,a.Z)((0,a.Z)({},e),{onSelect:function(){for(var n,t,r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],r=(0,a.Z)((0,a.Z)({},ce),e);t&&(ce.resetPagination(),r.pagination.current&&(r.pagination.current=1),h&&h.onChange&&h.onChange(1,r.pagination.pageSize)),R&&!1!==R.scrollToFirstRowOnChange&&oe.body.current&&$e(0,{getContainer:function(){return oe.body.current}}),null===N||void 0===N||N(r.pagination,r.filters,r.sorter,{currentDataSource:Lr(oo(Y,r.sorterStates,te),r.filterStates),action:n})},ue=ao({prefixCls:J,mergedColumns:_,onSorterChange:function(e,n){de({sorter:e,sorterStates:n},"sort",!1)},sortDirections:M||["ascend","descend"],tableLocale:q,showSorterTooltip:I}),fe=(0,i.Z)(ue,4),pe=fe[0],ve=fe[1],me=fe[2],he=fe[3],ye=u.useMemo((function(){return oo(Y,ve,te)}),[Y,ve]);ce.sorter=he(),ce.sorterStates=ve;var ge=Tr({prefixCls:J,locale:q,dropdownPrefixCls:Q,mergedColumns:_,onFilterChange:function(e,n){de({filters:e,filterStates:n},"filter",!0)},getPopupContainer:b}),xe=(0,i.Z)(ge,3),Ce=xe[0],Ee=xe[1],ke=xe[2],Ze=Lr(ye,Ee);ce.filters=ke,ce.filterStates=Ee;var Ne=lo(u.useMemo((function(){var e={};return Object.keys(ke).forEach((function(n){null!==ke[n]&&(e[n]=ke[n])})),(0,a.Z)((0,a.Z)({},me),{filters:e})}),[me,ke])),be=(0,i.Z)(Ne,1)[0],we=Ar(Ze.length,h,(function(e,n){de({pagination:(0,a.Z)((0,a.Z)({},ce.pagination),{current:e,pageSize:n})},"paginate")})),Se=(0,i.Z)(we,2),Ke=Se[0],Oe=Se[1];ce.pagination=!1===h?{}: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}(h,Ke),ce.resetPagination=Oe;var Pe=u.useMemo((function(){if(!1===h||!Ke.pageSize)return Ze;var e=Ke.current,n=void 0===e?1:e,t=Ke.total,r=Ke.pageSize,o=void 0===r?10:r;return Ze.lengtho?Ze.slice((n-1)*o,n*o):Ze:Ze.slice((n-1)*o,n*o)}),[!!h,Ze,Ke&&Ke.current,Ke&&Ke.pageSize,Ke&&Ke.total]),De=Ur(y,{prefixCls:J,data:Ze,pageData:Pe,getRowKey:ae,getRecordByKey:le,expandType:re,childrenColumnName:te,locale:q,getPopupContainer:b}),Re=(0,i.Z)(De,2),Me=Re[0],Le=Re[1];ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||S||en(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 Ie,Ae,Ge,Xe=u.useCallback((function(e){return be(Me(Ce(pe(e))))}),[pe,Ce,Me]);if(!1!==h&&(null===Ke||void 0===Ke?void 0:Ke.total)){var qe;qe=Ke.size?Ke.size:"small"===X||"middle"===X?"small":void 0;var Ye=function(e){return u.createElement(We.Z,(0,a.Z)({},Ke,{className:c()("".concat(J,"-pagination ").concat(J,"-pagination-").concat(e),Ke.className),size:qe}))},Je="rtl"===G?"left":"right",Qe=Ke.position;if(null!==Qe&&Array.isArray(Qe)){var nn=Qe.find((function(e){return-1!==e.indexOf("top")})),tn=Qe.find((function(e){return-1!==e.indexOf("bottom")})),rn=Qe.every((function(e){return"none"==="".concat(e)}));nn||tn||rn||(Ae=Ye(Je)),nn&&(Ie=Ye(nn.toLowerCase().replace("top",""))),tn&&(Ae=Ye(tn.toLowerCase().replace("bottom","")))}else Ae=Ye(Je)}"boolean"===typeof w?Ge={spinning:w}:"object"===(0,r.Z)(w)&&(Ge=(0,a.Z)({spinning:!0},w));var on=c()("".concat(J,"-wrapper"),(0,o.Z)({},"".concat(J,"-wrapper-rtl"),"rtl"===G),d);return u.createElement("div",{ref:n,className:on,style:s},u.createElement(Ue.Z,(0,a.Z)({spinning:!1},Ge),Ie,u.createElement(He,(0,a.Z)({},F,{columns:_,direction:G,expandable:ee,prefixCls:J,className:c()((t={},(0,o.Z)(t,"".concat(J,"-middle"),"middle"===X),(0,o.Z)(t,"".concat(J,"-small"),"small"===X),(0,o.Z)(t,"".concat(J,"-bordered"),p),(0,o.Z)(t,"".concat(J,"-empty"),0===Y.length),t)),data:Pe,rowKey:ae,rowClassName:function(e,n,t){var r;return r="function"===typeof C?c()(C(e,n,t)):c()(C),c()((0,o.Z)({},"".concat(J,"-row-selected"),Le.has(ae(e,n))),r)},emptyText:L&&L.emptyText||(U||Fe.Z)("Table"),internalHooks:Te,internalRefs:oe,transformColumns:Xe})),Ae))}var uo=u.forwardRef(so);uo.SELECTION_COLUMN=_r,uo.EXPAND_COLUMN=He.EXPAND_COLUMN,uo.SELECTION_ALL=Fr,uo.SELECTION_INVERT=jr,uo.SELECTION_NONE=Br,uo.Column=Je,uo.ColumnGroup=Qe,uo.Summary=Ze;var fo=uo},50132:function(e,n,t){var r=t(87462),o=t(4942),a=t(45987),i=t(1413),l=t(15671),c=t(43144),d=t(60136),s=t(33643),u=t(67294),f=t(94184),p=t.n(f),v=function(e){(0,d.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,d=n.id,s=n.type,f=n.disabled,v=n.readOnly,m=n.tabIndex,h=n.onClick,y=n.onFocus,g=n.onBlur,x=n.onKeyDown,C=n.onKeyPress,E=n.onKeyUp,k=n.autoFocus,Z=n.value,N=n.required,b=(0,a.Z)(n,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),w=Object.keys(b).reduce((function(e,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(e[n]=b[n]),e}),{}),S=this.state.checked,K=p()(t,i,(e={},(0,o.Z)(e,"".concat(t,"-checked"),S),(0,o.Z)(e,"".concat(t,"-disabled"),f),e));return u.createElement("span",{className:K,style:l},u.createElement("input",(0,r.Z)({name:c,id:d,type:s,required:N,readOnly:v,disabled:f,tabIndex:m,className:"".concat(t,"-input"),checked:!!S,onClick:h,onFocus:y,onBlur:g,onKeyUp:E,onKeyDown:x,onKeyPress:C,onChange:this.handleChange,autoFocus:k,ref:this.saveInput,value:Z},w)),u.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}(u.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},27678:function(e,n,t){t.d(n,{g1:function(){return r},os:function(){return o}});function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function o(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)}}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/3626-717f7ff16ee717f6.js b/static/web/_next/static/chunks/3626-717f7ff16ee717f6.js new file mode 100644 index 000000000..5886d493f --- /dev/null +++ b/static/web/_next/static/chunks/3626-717f7ff16ee717f6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3626],{10010:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(1413),o=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},l=t(42135),i=function(e,n){return o.createElement(l.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:a}))};i.displayName="CaretUpOutlined";var c=o.forwardRef(i)},32808:function(e,n,t){t.d(n,{Z:function(){return N}});var r=t(4942),o=t(87462),a=t(94184),l=t.n(a),i=t(50132),c=t(67294),d=t(53124),s=t(65223),u=t(74902),f=t(97685),p=t(98423),v=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&&(a=M().map((function(e){return c.createElement(k,{prefixCls:L,key:e.value.toString(),disabled:"disabled"in e?e.disabled:C.disabled,value:e.value,checked:-1!==S.indexOf(e.value),onChange:e.onChange,className:"".concat(T,"-item"),style:e.style},e.label)})));var A={toggleOption:function(e){var n=S.indexOf(e.value),t=(0,u.Z)(S);-1===n?t.push(e.value):t.splice(n,1),"value"in C||K(t);var r=M();null===x||void 0===x||x(t.filter((function(e){return-1!==P.indexOf(e)})).sort((function(e,n){return r.findIndex((function(n){return n.value===e}))-r.findIndex((function(e){return e.value===n}))})))},value:S,disabled:C.disabled,name:C.name,registerValue:function(e){R((function(n){return[].concat((0,u.Z)(n),[e])}))},cancelValue:function(e){R((function(n){return n.filter((function(n){return n!==e}))}))}},H=l()(T,(0,r.Z)({},"".concat(T,"-rtl"),"rtl"===N),y);return c.createElement("div",(0,o.Z)({className:H,style:g},I,{ref:n}),c.createElement(h.Provider,{value:A},a))},y=c.forwardRef(m),g=c.memo(y),x=t(98866),C=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}(t,p||1,null===e||void 0===e?void 0:e.startRow,null===e||void 0===e?void 0:e.endRow);return{onHover:null===e||void 0===e?void 0:e.onHover,hovering:n}})),h=v.onHover,y=v.hovering;return u.createElement(z,(0,a.Z)({},e,{colSpan:f,rowSpan:p,hovering:y,ref:n,onHover:h}))}));F.displayName="WrappedCell";var _=F,j=u.createContext(null);function B(e,n,t,r,o){var a,l,i=t[e]||{},c=t[n]||{};"left"===i.fixed?a=r.left[e]:"right"===c.fixed&&(l=r.right[n]);var d=!1,s=!1,u=!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!==l){u=!(p&&"right"===p.fixed)}}else if(void 0!==a){d=!(p&&"left"===p.fixed)}else if(void 0!==l){s=!(v&&"right"===v.fixed)}return{fixLeft:a,fixRight:l,lastFixLeft:d,firstFixRight:s,lastFixRight:u,firstFixLeft:f,isSticky:r.isSticky}}function V(e){var n,t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,l=e.rowComponent,i=e.cellComponent,c=e.onHeaderRow,d=e.index,s=u.useContext(j),f=s.prefixCls,p=s.direction;c&&(n=c(t.map((function(e){return e.column})),d));var v=w(t.map((function(e){return e.column})));return u.createElement(l,n,t.map((function(e,n){var t,l=e.column,c=B(e.colStart,e.colEnd,o,r,p);return l&&l.onHeaderCell&&(t=e.column.onHeaderCell(l)),u.createElement(_,(0,a.Z)({},e,{ellipsis:l.ellipsis,align:l.align,component:i,prefixCls:f,key:v[n]},c,{additionalProps:t,rowType:"header"}))})))}V.displayName="HeaderRow";var W=V;var U=function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=u.useContext(j),l=a.prefixCls,i=a.getComponent,c=u.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},l=1,i=t.children;return i&&i.length>0&&(l=e(i,a,o+1).reduce((function(e,n){return e+n}),0),r.hasSubColumns=!0),"colSpan"in t&&(l=t.colSpan),"rowSpan"in t&&(r.rowSpan=t.rowSpan),r.colSpan=l,r.colEnd=r.colStart+l-1,n[o].push(r),a+=l,l}))}(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?t-1:0),a=1;a0?[].concat((0,s.Z)(e),(0,s.Z)(ue(o).map((function(e){return(0,d.Z)({fixed:r},e)})))):[].concat((0,s.Z)(e),[(0,d.Z)((0,d.Z)({},n),{},{fixed:r})])}),[])}var fe=function(e,n){var t=e.prefixCls,r=e.columns,a=e.children,l=e.expandable,i=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,f=e.onTriggerExpand,p=e.expandIcon,v=e.rowExpandable,h=e.expandIconColumnIndex,m=e.direction,y=e.expandRowByClick,g=e.columnWidth,x=e.fixed,C=u.useMemo((function(){return r||se(a)}),[r,a]),E=u.useMemo((function(){if(l){var e,n=C.slice();if(!n.includes(ie)){var r=h||0;r>=0&&n.splice(r,0,ie)}0;var a=n.indexOf(ie);n=n.filter((function(e,n){return e!==ie||n===a}));var d,m=C[a];d="left"!==x&&!x||h?"right"!==x&&!x||h!==C.length?m?m.fixed:null:"right":"left";var E=(e={},(0,o.Z)(e,le,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,o.Z)(e,"title",c),(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=s(n,r),a=i.has(o),l=!v||v(n),c=p({prefixCls:t,expanded:a,expandable:l,record:n,onExpand:f});return y?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c})),e);return n.map((function(e){return e===ie?E:e}))}return C.filter((function(e){return e!==ie}))}),[l,C,s,i,p,m]),Z=u.useMemo((function(){var e=E;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,E,m]),N=u.useMemo((function(){return"rtl"===m?function(e){return e.map((function(e){var n=e.fixed,t=(0,k.Z)(e,de),r=n;return"left"===n?r="right":"right"===n&&(r="left"),(0,d.Z)({fixed:r},t)}))}(ue(Z)):ue(Z)}),[Z,m]);return[Z,N]};function pe(e){var n=(0,u.useRef)(e),t=(0,u.useState)({}),r=(0,l.Z)(t,2)[1],o=(0,u.useRef)(null),a=(0,u.useRef)([]);return(0,u.useEffect)((function(){return function(){o.current=null}}),[]),[n.current,function(e){a.current.push(e);var t=Promise.resolve();o.current=t,t.then((function(){if(o.current===t){var e=a.current,l=n.current;a.current=[],e.forEach((function(e){n.current=e(n.current)})),o.current=null,l!==n.current&&r({})}}))}]}var ve=function(e,n,t){return(0,u.useMemo)((function(){for(var r=[],o=[],a=0,l=0,i=0;i=0;l-=1){var i=n[l],c=t&&t[l],d=c&&c[le];if(i||d||o){var s=d||{},f=(s.columnType,(0,k.Z)(s,he));r.unshift(u.createElement("col",(0,a.Z)({key:l,style:{width:i}},f))),o=!0}}return u.createElement("colgroup",null,r)};var ye=function(e){var n=e.className,t=e.children;return u.createElement("div",{className:n},t)},ge=u.createContext({});var xe=["children"];function Ce(e){return e.children}Ce.Row=function(e){var n=e.children,t=(0,k.Z)(e,xe);return u.createElement("tr",t,n)},Ce.Cell=function(e){var n=e.className,t=e.index,r=e.children,o=e.colSpan,l=void 0===o?1:o,i=e.rowSpan,c=e.align,d=u.useContext(j),s=d.prefixCls,f=d.direction,p=u.useContext(ge),v=p.scrollColumnIndex,h=p.stickyOffsets,m=t+l-1+1===v?l+1:l,y=B(t,t+m-1,p.flattenColumns,h,f);return u.createElement(_,(0,a.Z)({className:n,index:t,component:"td",prefixCls:s,record:null,dataIndex:null,align:c,colSpan:m,rowSpan:i,render:function(){return r}},y))};var Ee=Ce;var ke=function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,o=u.useContext(j).prefixCls,a=r.length-1,l=r[a],i=u.useMemo((function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:(null===l||void 0===l?void 0:l.scrollbar)?a:null}}),[l,r,a,t]);return u.createElement(ge.Provider,{value:i},u.createElement("tfoot",{className:"".concat(o,"-summary")},n))},Ze=Ee;function Ne(e){var n,t=e.prefixCls,r=e.record,a=e.onExpand,l=e.expanded,i=e.expandable,d="".concat(t,"-row-expand-icon");if(!i)return u.createElement("span",{className:c()(d,"".concat(t,"-row-spaced"))});return u.createElement("span",{className:c()(d,(n={},(0,o.Z)(n,"".concat(t,"-row-expanded"),l),(0,o.Z)(n,"".concat(t,"-row-collapsed"),!l),n)),onClick:function(e){a(r,e),e.stopPropagation()}})}var be=t(64019),we=t(27678),Se=function(e,n){var t,r,a=e.scrollBodyRef,i=e.onScroll,s=e.offsetScroll,f=e.container,p=u.useContext(j).prefixCls,v=(null===(t=a.current)||void 0===t?void 0:t.scrollWidth)||0,h=(null===(r=a.current)||void 0===r?void 0:r.clientWidth)||0,m=v&&h*(h/v),y=u.useRef(),g=pe({scrollLeft:0,isHiddenScrollBar:!1}),C=(0,l.Z)(g,2),E=C[0],k=C[1],Z=u.useRef({delta:0,x:0}),N=u.useState(!1),b=(0,l.Z)(N,2),w=b[0],S=b[1],K=function(){S(!1)},O=function(e){var n,t=(e||(null===(n=window)||void 0===n?void 0:n.event)).buttons;if(w&&0!==t){var r=Z.current.x+e.pageX-Z.current.x-Z.current.delta;r<=0&&(r=0),r+m>=h&&(r=h-m),i({scrollLeft:r/h*(v+2)}),Z.current.x=e.pageX}else w&&S(!1)},D=function(){if(a.current){var e=(0,we.os)(a.current).top,n=e+a.current.offsetHeight,t=f===window?document.documentElement.scrollTop+window.innerHeight:(0,we.os)(f).top+f.clientHeight;n-(0,x.Z)()<=t||e>=t-s?k((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!0})})):k((function(e){return(0,d.Z)((0,d.Z)({},e),{},{isHiddenScrollBar:!1})}))}},P=function(e){k((function(n){return(0,d.Z)((0,d.Z)({},n),{},{scrollLeft:e/v*h||0})}))};return u.useImperativeHandle(n,(function(){return{setScrollLeft:P}})),u.useEffect((function(){var e=(0,be.Z)(document.body,"mouseup",K,!1),n=(0,be.Z)(document.body,"mousemove",O,!1);return D(),function(){e.remove(),n.remove()}}),[m,w]),u.useEffect((function(){var e=(0,be.Z)(f,"scroll",D,!1),n=(0,be.Z)(window,"resize",D,!1);return function(){e.remove(),n.remove()}}),[f]),u.useEffect((function(){E.isHiddenScrollBar||k((function(e){var n=a.current;return n?(0,d.Z)((0,d.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e}))}),[E.isHiddenScrollBar]),v<=h||!m||E.isHiddenScrollBar?null:u.createElement("div",{style:{height:(0,x.Z)(),width:h,bottom:s},className:"".concat(p,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(e){e.persist(),Z.current.delta=e.pageX-E.scrollLeft,Z.current.x=0,S(!0),e.preventDefault()},ref:y,className:c()("".concat(p,"-sticky-scroll-bar"),(0,o.Z)({},"".concat(p,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(E.scrollLeft,"px, 0, 0)")}}))},Ke=u.forwardRef(Se),Oe=(0,t(98924).Z)()?window:null;var De=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var Pe=u.forwardRef((function(e,n){var t=e.className,r=e.noData,a=e.columns,l=e.flattenColumns,i=e.colWidths,f=e.columCount,p=e.stickyOffsets,v=e.direction,h=e.fixHeader,m=e.stickyTopOffset,y=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,C=e.maxContentScroll,E=e.children,N=(0,k.Z)(e,De),b=u.useContext(j),w=b.prefixCls,S=b.scrollbarSize,K=b.isSticky,O=K&&!h?0:S,D=u.useRef(null),P=u.useCallback((function(e){(0,Z.mH)(n,e),(0,Z.mH)(D,e)}),[]);u.useEffect((function(){var e;function n(e){var n=e.currentTarget,t=e.deltaX;t&&(x({currentTarget:n,scrollLeft:n.scrollLeft+t}),e.preventDefault())}return null===(e=D.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=D.current)||void 0===e||e.removeEventListener("wheel",n)}}),[]);var R=u.useMemo((function(){return l.every((function(e){return e.width>=0}))}),[l]),M=l[l.length-1],L={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},T=(0,u.useMemo)((function(){return O?[].concat((0,s.Z)(a),[L]):a}),[O,a]),I=(0,u.useMemo)((function(){return O?[].concat((0,s.Z)(l),[L]):l}),[O,l]),A=(0,u.useMemo)((function(){var e=p.right,n=p.left;return(0,d.Z)((0,d.Z)({},p),{},{left:"rtl"===v?[].concat((0,s.Z)(n.map((function(e){return e+O}))),[0]):n,right:"rtl"===v?e:[].concat((0,s.Z)(e.map((function(e){return e+O}))),[0]),isSticky:K})}),[O,p,K]),H=function(e,n){return(0,u.useMemo)((function(){for(var t=[],r=0;r0)):(ln(a>0),un(a1&&void 0!==arguments[1]?arguments[1]:{},t=n.getContainer,r=void 0===t?function(){return window}:t,o=n.callback,a=n.duration,l=void 0===a?450:a,i=r(),c=Ye(i,!0),d=Date.now(),s=function n(){var t=Date.now()-d,r=Xe(t>l?l:t,c,e,l);qe(i)?i.scrollTo(window.pageXOffset,r):i instanceof HTMLDocument||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=r:i.scrollTop=r,t0&&(M=x.map((function(e){return"string"===typeof e||"number"===typeof e?u.createElement(On,{key:e.toString(),prefixCls:P,disabled:k,value:e,checked:v===e},e):u.createElement(On,{key:"radio-group-value-options-".concat(e.value),prefixCls:P,disabled:e.disabled||k,value:e.value,checked:v===e.value,style:e.style},e.label)})));var L=N||s,T=c()(R,"".concat(R,"-").concat(E),(t={},(0,o.Z)(t,"".concat(R,"-").concat(L),L),(0,o.Z)(t,"".concat(R,"-rtl"),"rtl"===d),t),g);return u.createElement("div",(0,a.Z)({},(0,gn.Z)(e),{className:T,style:b,onMouseEnter:S,onMouseLeave:K,onFocus:O,onBlur:D,id:w,ref:n}),u.createElement(Cn,{value:{onChange:function(n){var t=v,r=n.target.value;"value"in e||h(r);var o=e.onChange;o&&r!==t&&o(n)},value:v,disabled:e.disabled,name:e.name,optionType:e.optionType}},M))})),Pn=u.memo(Dn),Rn=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);o1&&void 0!==arguments[1]?arguments[1]:null;return t.map((function(u,f){for(var p,v=pt(r?r.pos:"0",f),h=Yn(u[a],v),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},t=n.initWrapper,r=n.processEntity,o=n.onProcessFinished,a=n.externalGetKey,l=n.childrenPropName,i=n.fieldNames,c=arguments.length>2?arguments[2]:void 0,d=a||c,s={},u={},f={posEntities:s,keyEntities:u};return t&&(f=t(f)||f),et(e,(function(e){var n=e.node,t=e.index,o=e.pos,a=e.key,l=e.parentPos,i=e.level,c={node:n,nodes:e.nodes,index:t,key:a,pos:o,level:i},d=Yn(a,o);s[o]=c,u[d]=c,c.parent=s[l],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:d,childrenPropName:l,fieldNames:i}),o&&o(f),f}function tt(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,l=n.checkedKeys,i=n.halfCheckedKeys,c=n.dragOverNodeKey,d=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!==l.indexOf(e),halfChecked:-1!==i.indexOf(e),pos:String(s?s.pos:""),dragOver:c===e&&0===d,dragOverGapTop:c===e&&-1===d,dragOverGapBottom:c===e&&1===d}}function rt(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,a=e.loaded,l=e.loading,i=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,p=e.active,v=e.eventKey,h=(0,d.Z)((0,d.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:a,loading:l,halfChecked:i,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:f,active:p,key:v});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,y.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var ot=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],at="open",lt="close",it=function(e){(0,Bn.Z)(t,e);var n=(0,Vn.Z)(t);function t(){var e;(0,Fn.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a=0&&t.splice(r,1),t}function ut(e,n){var t=(e||[]).slice();return-1===t.indexOf(n)&&t.push(n),t}function ft(e){return e.split("-")}function pt(e,n){return"".concat(e,"-").concat(n)}function vt(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 ht(e){if(e.parent){var n=ft(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function mt(e,n,t,r,o,a,l,i,c,d){var s,u=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),v=p.top,h=p.height,m=(("rtl"===d?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-u)-12)/r,y=i[t.props.eventKey];if(f-1.5?a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1:a({dragNode:w,dropNode:S,dropPosition:0})?Z=0:a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1:a({dragNode:w,dropNode:S,dropPosition:1})?Z=1:K=!1,{dropPosition:Z,dropLevelOffset:N,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:k,dropContainerKey:0===Z?null:(null===(s=y.parent)||void 0===s?void 0:s.key)||null,dropAllowed:K}}function yt(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function gt(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,y.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 xt(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,s.Z)(t)}var Ct=t(73453),Et=t(62874),kt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Zt=function(e,n){var t=e.className,r=e.style,o=e.motion,i=e.motionNodes,d=e.motionType,s=e.onMotionStart,f=e.onMotionEnd,p=e.active,v=e.treeNodeRequiredProps,h=(0,k.Z)(e,kt),m=u.useState(!0),y=(0,l.Z)(m,2),g=y[0],x=y[1],C=u.useContext(Un).prefixCls,E=u.useRef(!1),Z=function(){E.current||f(),E.current=!0};return(0,u.useEffect)((function(){i&&"hide"===d&&g&&x(!1)}),[i]),(0,u.useEffect)((function(){return i&&s(),function(){i&&Z()}}),[]),i?u.createElement(Et.Z,(0,a.Z)({ref:n,visible:g},o,{motionAppear:"show"===d,onAppearEnd:Z,onLeaveEnd:Z}),(function(e,n){var t=e.className,r=e.style;return u.createElement("div",{ref:n,className:c()("".concat(C,"-treenode-motion"),t),style:r},i.map((function(e){var n=(0,a.Z)({},e.data),t=e.title,r=e.key,o=e.isStart,l=e.isEnd;delete n.children;var i=tt(r,v);return u.createElement(dt,(0,a.Z)({},n,i,{title:t,active:p,data:e.data,key:r,isStart:o,isEnd:l}))})))})):u.createElement(dt,(0,a.Z)({domRef:n,className:t,style:r},h,{active:p}))};Zt.displayName="MotionTreeNode";var Nt=u.forwardRef(Zt);function bt(e,n,t){var r=e.findIndex((function(e){return e.key===t})),o=e[r+1],a=n.findIndex((function(e){return e.key===t}));if(o){var l=n.findIndex((function(e){return e.key===o.key}));return n.slice(a+1,l)}return n.slice(a+1)}var wt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],St={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Kt=function(){},Ot="RC_TREE_MOTION_".concat(Math.random()),Dt={key:Ot},Pt={key:Ot,level:0,index:0,pos:"0",node:Dt,nodes:[Dt]},Rt={parent:null,children:[],pos:Pt.pos,data:Dt,title:null,key:Ot,isStart:[],isEnd:[]};function Mt(e,n,t,r){return!1!==n&&t?e.slice(0,Math.ceil(t/r)+1):e}function Lt(e){return Yn(e.key,e.pos)}var Tt=u.forwardRef((function(e,n){var t=e.prefixCls,r=e.data,o=(e.selectable,e.checkable,e.expandedKeys),i=e.selectedKeys,c=e.checkedKeys,d=e.loadedKeys,s=e.loadingKeys,f=e.halfCheckedKeys,p=e.keyEntities,v=e.disabled,h=e.dragging,m=e.dragOverNodeKey,y=e.dropPosition,g=e.motion,x=e.height,C=e.itemHeight,E=e.virtual,Z=e.focusable,N=e.activeItem,b=e.focused,w=e.tabIndex,S=e.onKeyDown,K=e.onFocus,O=e.onBlur,D=e.onActiveChange,P=e.onListChangeStart,R=e.onListChangeEnd,M=(0,k.Z)(e,wt),L=u.useRef(null),T=u.useRef(null);u.useImperativeHandle(n,(function(){return{scrollTo:function(e){L.current.scrollTo(e)},getIndentWidth:function(){return T.current.offsetWidth}}}));var I=u.useState(o),A=(0,l.Z)(I,2),H=A[0],z=A[1],F=u.useState(r),_=(0,l.Z)(F,2),j=_[0],B=_[1],V=u.useState(r),W=(0,l.Z)(V,2),U=W[0],G=W[1],X=u.useState([]),q=(0,l.Z)(X,2),Y=q[0],$=q[1],J=u.useState(null),Q=(0,l.Z)(J,2),ee=Q[0],ne=Q[1],te=u.useRef(r);function re(){var e=te.current;B(e),G(e),$([]),ne(null),R()}te.current=r,u.useEffect((function(){z(o);var e=function(){var e=arguments.length>0&&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}(N)),u.createElement("div",null,u.createElement("input",{style:St,disabled:!1===Z||v,tabIndex:!1!==Z?w:null,onKeyDown:S,onFocus:K,onBlur:O,value:"",onChange:Kt,"aria-label":"for screen reader"})),u.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},u.createElement("div",{className:"".concat(t,"-indent")},u.createElement("div",{ref:T,className:"".concat(t,"-indent-unit")}))),u.createElement(Ct.Z,(0,a.Z)({},M,{data:oe,itemKey:Lt,height:x,fullHeight:!1,virtual:E,itemHeight:C,prefixCls:"".concat(t,"-list"),ref:L,onVisibleChange:function(e,n){var t=new Set(e);n.filter((function(e){return!t.has(e)})).some((function(e){return Lt(e)===Ot}))&&re()}}),(function(e){var n=e.pos,t=(0,a.Z)({},e.data),r=e.title,o=e.key,l=e.isStart,i=e.isEnd,c=Yn(o,n);delete t.key,delete t.children;var d=tt(c,ae);return u.createElement(Nt,(0,a.Z)({},t,d,{title:r,active:!!N&&o===N.key,pos:n,data:e.data,isStart:l,isEnd:i,motion:g,motionNodes:o===Ot?Y:null,motionType:ee,onMotionStart:P,onMotionEnd:re,treeNodeRequiredProps:ae,onMouseMove:function(){D(null)}}))})))}));Tt.displayName="NodeList";var It=Tt;function At(e,n){var t=new Set;return e.forEach((function(e){n.has(e)||t.add(e)})),t}function Ht(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!(!t&&!r)||!1===o}function zt(e,n,t,r){var o,a=[];o=r||Ht;var l,i=new Set(e.filter((function(e){var n=!!t[e];return n||a.push(e),n}))),c=new Map,d=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),d=Math.max(d,r)})),(0,y.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),l=!0===n?function(e,n,t,r){for(var o=new Set(e),a=new Set,l=0;l<=t;l+=1)(n.get(l)||new Set).forEach((function(e){var n=e.key,t=e.node,a=e.children,l=void 0===a?[]:a;o.has(n)&&!r(t)&&l.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var i=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&&!i.has(e.parent.key))if(r(e.parent.node))i.add(n.key);else{var l=!0,c=!1;(n.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var n=e.key,t=o.has(n);l&&!t&&(l=!1),c||!t&&!a.has(n)||(c=!0)})),l&&o.add(n.key),c&&a.add(n.key),i.add(n.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(At(a,o))}}(i,c,d,o):function(e,n,t,r,o){for(var a=new Set(e),l=new Set(n),i=0;i<=r;i+=1)(t.get(i)||new Set).forEach((function(e){var n=e.key,t=e.node,r=e.children,i=void 0===r?[]:r;a.has(n)||l.has(n)||o(t)||i.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));l=new Set;for(var c=new Set,d=r;d>=0;d-=1)(t.get(d)||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,i=!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),i||!t&&!l.has(n)||(i=!0)})),r||a.delete(n.key),i&&l.add(n.key),c.add(n.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(At(l,a))}}(i,n.halfCheckedKeys,c,d,o),l}var Ft=function(e){(0,Bn.Z)(t,e);var n=(0,Vn.Z)(t);function t(){var e;(0,Fn.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],a=e.state,l=a.dragChildrenKeys,i=a.dropPosition,c=a.dropTargetKey,s=a.dropTargetPos,u=a.dropAllowed;if(u){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var p=(0,d.Z)((0,d.Z)({},tt(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:e.state.keyEntities[c].node}),v=-1!==l.indexOf(c);(0,y.ZP)(!v,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var h=ft(s),m={event:n,node:rt(p),dragNode:e.dragNode?rt(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(l),dropToGap:0!==i,dropPosition:i+Number(h[h.length-1])};o||null===f||void 0===f||f(m),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.triggerExpandActionExpand=function(n,t){var r=e.state,o=r.expandedKeys,a=r.flattenNodes,l=t.expanded,i=t.key;if(!(t.isLeaf||n.shiftKey||n.metaKey||n.ctrlKey)){var c=a.filter((function(e){return e.key===i}))[0],s=rt((0,d.Z)((0,d.Z)({},tt(i,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(l?st(o,i):ut(o,i)),e.onNodeExpand(n,s)}},e.onNodeClick=function(n,t){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(n,t),null===o||void 0===o||o(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(n,t),null===o||void 0===o||o(n,t)},e.onNodeSelect=function(n,t){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,l=o.fieldNames,i=e.props,c=i.onSelect,d=i.multiple,s=t.selected,u=t[l.key],f=!s,p=(r=f?d?ut(r,u):[u]:st(r,u)).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,l=a.keyEntities,i=a.checkedKeys,c=a.halfCheckedKeys,d=e.props,u=d.checkStrictly,f=d.onCheck,p=t.key,v={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(u){var h=r?ut(i,p):st(i,p);o={checked:h,halfChecked:st(c,p)},v.checkedNodes=h.map((function(e){return l[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:h})}else{var m=zt([].concat((0,s.Z)(i),[p]),!0,l),y=m.checkedKeys,g=m.halfCheckedKeys;if(!r){var x=new Set(y);x.delete(p);var C=zt(Array.from(x),{checked:!1,halfCheckedKeys:g},l);y=C.checkedKeys,g=C.halfCheckedKeys}o=y,v.checkedNodes=[],v.checkedNodesPositions=[],v.halfCheckedKeys=g,y.forEach((function(e){var n=l[e];if(n){var t=n.node,r=n.pos;v.checkedNodes.push(t),v.checkedNodesPositions.push({node:t,pos:r})}})),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:g})}null===f||void 0===f||f(o,v)},e.onNodeLoad=function(n){var t=n.key,r=new Promise((function(r,o){e.setState((function(a){var l=a.loadedKeys,i=void 0===l?[]:l,c=a.loadingKeys,d=void 0===c?[]:c,s=e.props,u=s.loadData,f=s.onLoad;return u&&-1===i.indexOf(t)&&-1===d.indexOf(t)?(u(n).then((function(){var o=ut(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:st(e.loadingKeys,t)}})),r()})).catch((function(n){if(e.setState((function(e){return{loadingKeys:st(e.loadingKeys,t)}})),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:ut(a,t)}),r()}o(n)})),{loadingKeys:ut(d,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,l={};Object.keys(n).forEach((function(t){t in e.props?a=!1:(o=!0,l[t]=n[t])})),!o||t&&!a||e.setState((0,d.Z)((0,d.Z)({},l),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,_n.Z)(t,[{key:"componentDidMount",value:function(){this.destroyed=!1,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,l=t.focused,i=t.flattenNodes,d=t.keyEntities,s=t.draggingNodeKey,f=t.activeKey,v=t.dropLevelOffset,h=t.dropContainerKey,m=t.dropTargetKey,y=t.dropPosition,g=t.dragOverNodeKey,x=t.indent,C=this.props,E=C.prefixCls,k=C.className,Z=C.style,N=C.showLine,b=C.focusable,w=C.tabIndex,S=void 0===w?0:w,K=C.selectable,O=C.showIcon,D=C.icon,P=C.switcherIcon,R=C.draggable,M=C.checkable,L=C.checkStrictly,T=C.disabled,I=C.motion,A=C.loadData,H=C.filterTreeNode,z=C.height,F=C.itemHeight,_=C.virtual,j=C.titleRender,B=C.dropIndicatorRender,V=C.onContextMenu,W=C.onScroll,U=C.direction,G=C.rootClassName,X=C.rootStyle,q=(0,p.Z)(this.props,{aria:!0,data:!0});return R&&(n="object"===(0,r.Z)(R)?R:"function"===typeof R?{nodeDraggable:R}:{}),u.createElement(Un.Provider,{value:{prefixCls:E,selectable:K,showIcon:O,icon:D,switcherIcon:P,draggable:n,draggingNodeKey:s,checkable:M,checkStrictly:L,disabled:T,keyEntities:d,dropLevelOffset:v,dropContainerKey:h,dropTargetKey:m,dropPosition:y,dragOverNodeKey:g,indent:x,direction:U,dropIndicatorRender:B,loadData:A,filterTreeNode:H,titleRender:j,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}},u.createElement("div",{role:"tree",className:c()(E,k,G,(e={},(0,o.Z)(e,"".concat(E,"-show-line"),N),(0,o.Z)(e,"".concat(E,"-focused"),l),(0,o.Z)(e,"".concat(E,"-active-focused"),null!==f),e)),style:X},u.createElement(It,(0,a.Z)({ref:this.listRef,prefixCls:E,style:Z,data:i,disabled:T,selectable:K,checkable:!!M,motion:I,dragging:null!==s,height:z,itemHeight:F,virtual:_,focusable:b,focused:l,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:W},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t,r=n.prevProps,a={prevProps:e};function l(n){return!r&&n in e||r&&r[n]!==e[n]}var i=n.fieldNames;if(l("fieldNames")&&(i=$n(e.fieldNames),a.fieldNames=i),l("treeData")?t=e.treeData:l("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=Jn(e.children)),t){a.treeData=t;var c=nt(t,{fieldNames:i});a.keyEntities=(0,d.Z)((0,o.Z)({},Ot,Pt),c.keyEntities)}var s,u=a.keyEntities||n.keyEntities;if(l("expandedKeys")||r&&l("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?xt(e.expandedKeys,u):e.expandedKeys;else if(!r&&e.defaultExpandAll){var f=(0,d.Z)({},u);delete f[Ot],a.expandedKeys=Object.keys(f).map((function(e){return f[e].key}))}else!r&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?xt(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var p=Qn(t||n.treeData,a.expandedKeys||n.expandedKeys,i);a.flattenNodes=p}if((e.selectable&&(l("selectedKeys")?a.selectedKeys=yt(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(a.selectedKeys=yt(e.defaultSelectedKeys,e))),e.checkable)&&(l("checkedKeys")?s=gt(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=gt(e.defaultCheckedKeys)||{}:t&&(s=gt(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),s)){var v=s,h=v.checkedKeys,m=void 0===h?[]:h,g=v.halfCheckedKeys,x=void 0===g?[]:g;if(!e.checkStrictly){var C=zt(m,!0,u);m=C.checkedKeys,x=C.halfCheckedKeys}a.checkedKeys=m,a.halfCheckedKeys=x}return l("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(u.Component);Ft.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 u.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},Ft.TreeNode=dt;var _t=Ft,jt=t(33603),Bt={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"},Vt=function(e,n){return u.createElement(an.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Bt}))};Vt.displayName="FileOutlined";var Wt=u.forwardRef(Vt),Ut={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"},Gt=function(e,n){return u.createElement(an.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:Ut}))};Gt.displayName="FolderOpenOutlined";var Xt=u.forwardRef(Gt),qt={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"},Yt=function(e,n){return u.createElement(an.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:n,icon:qt}))};Yt.displayName="FolderOutlined";var $t,Jt=u.forwardRef(Yt);function Qt(e,n){e.forEach((function(e){var t=e.key,r=e.children;!1!==n(t,e)&&Qt(r||[],n)}))}function er(e){var n=e.treeData,t=e.expandedKeys,r=e.startKey,o=e.endKey,a=[],l=$t.None;if(r&&r===o)return[r];if(!r||!o)return[];return Qt(n,(function(e){if(l===$t.End)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),l===$t.None)l=$t.Start;else if(l===$t.Start)return l=$t.End,!1}else l===$t.Start&&a.push(e);return-1!==t.indexOf(e)})),a}function nr(e,n){var t=(0,s.Z)(n),r=[];return Qt(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"}($t||($t={}));var tr=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&&Q([]),t&&L(!1),Y(""),z(S?(K||[]).map((function(e){return String(e)})):[])},te=c()((0,o.Z)({},"".concat(s,"-menu-without-submenu"),!(d.filters||[]).some((function(e){return e.children})))),re=function(e){if(e.target.checked){var n=Rr(null===d||void 0===d?void 0:d.filters).map((function(e){return String(e)}));z(n)}else z([])},oe=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}))},ae=function e(n){var t;return(0,a.Z)((0,a.Z)({},n),{text:n.title,value:n.key,children:(null===(t=n.children)||void 0===t?void 0:t.map((function(n){return e(n)})))||[]})};if("function"===typeof d.filterDropdown)J=d.filterDropdown({prefixCls:"".concat(s,"-custom"),setSelectedKeys:function(e){return F({selectedKeys:e})},selectedKeys:H(),confirm:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0}).closeDropdown&&L(!1),Q(H())},clearFilters:ne,filters:d.filters,visible:t});else if(d.filterDropdown)J=d.filterDropdown;else{var le=H()||[];J=u.createElement(u.Fragment,null,0===(d.filters||[]).length?u.createElement(vn.Z,{image:vn.Z.PRESENTED_IMAGE_SIMPLE,description:C.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===h?u.createElement(u.Fragment,null,u.createElement(br,{filterSearch:y,value:q,onChange:$,tablePrefixCls:r,locale:C}),u.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},p?u.createElement(fn.Z,{checked:le.length===Rr(d.filters).length,indeterminate:le.length>0&&le.length0?c:e}),m=Math.ceil((c||e)/h.pageSize);h.current>m&&(h.current=m||1);var y=function(e,n){v({current:null!==e&&void 0!==e?e:1,pageSize:n||h.pageSize})};return!1===n?[{},function(){}]:[(0,a.Z)((0,a.Z)({},h),{onChange:function(e,r){var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),y(e,r),t(e,r||(null===h||void 0===h?void 0:h.pageSize))}}),y]}var Hr=t(84506),zr=t(80882),Fr={},_r="SELECT_ALL",jr="SELECT_INVERT",Br="SELECT_NONE",Vr=[];function Wr(e,n){var t=[];return(e||[]).forEach((function(e){t.push(e),e&&"object"===(0,r.Z)(e)&&n in e&&(t=[].concat((0,s.Z)(t),(0,s.Z)(Wr(e[n],n))))})),t}function Ur(e,n){var t=e||{},r=t.preserveSelectedRowKeys,i=t.selectedRowKeys,c=t.defaultSelectedRowKeys,d=t.getCheckboxProps,f=t.onChange,p=t.onSelect,v=t.onSelectAll,h=t.onSelectInvert,m=t.onSelectNone,y=t.onSelectMultiple,g=t.columnWidth,x=t.type,C=t.selections,E=t.fixed,k=t.renderCell,Z=t.hideSelectAll,N=t.checkStrictly,b=void 0===N||N,w=n.prefixCls,S=n.data,K=n.pageData,O=n.getRecordByKey,D=n.getRowKey,P=n.expandType,R=n.childrenColumnName,M=n.locale,L=n.getPopupContainer,T=(0,yn.Z)(i||c||Vr,{value:i}),I=(0,l.Z)(T,2),A=I[0],H=I[1],z=u.useRef(new Map),F=(0,u.useCallback)((function(e){if(r){var n=new Map;e.forEach((function(e){var t=O(e);!t&&z.current.has(e)&&(t=z.current.get(e)),n.set(e,t)})),z.current=n}}),[O,r]);u.useEffect((function(){F(A)}),[A]);var _=(0,u.useMemo)((function(){return b?{keyEntities:null}:nt(S,{externalGetKey:D,childrenPropName:R})}),[S,D,b,R]).keyEntities,j=(0,u.useMemo)((function(){return Wr(K,R)}),[K,R]),B=(0,u.useMemo)((function(){var e=new Map;return j.forEach((function(n,t){var r=D(n,t),o=(d?d(n):null)||{};e.set(r,o)})),e}),[j,D,d]),V=(0,u.useCallback)((function(e){var n;return!!(null===(n=B.get(D(e)))||void 0===n?void 0:n.disabled)}),[B,D]),W=(0,u.useMemo)((function(){if(b)return[A||[],[]];var e=zt(A,!0,_,V);return[e.checkedKeys||[],e.halfCheckedKeys]}),[A,b,_,V]),U=(0,l.Z)(W,2),G=U[0],X=U[1],q=(0,u.useMemo)((function(){var e="radio"===x?G.slice(0,1):G;return new Set(e)}),[G,x]),Y=(0,u.useMemo)((function(){return"radio"===x?new Set:new Set(X)}),[X,x]),$=(0,u.useState)(null),J=(0,l.Z)($,2),Q=J[0],ee=J[1];u.useEffect((function(){e||H(Vr)}),[!!e]);var ne=(0,u.useCallback)((function(e,n){var t,o;F(e),r?(t=e,o=e.map((function(e){return z.current.get(e)}))):(t=[],o=[],e.forEach((function(e){var n=O(e);void 0!==n&&(t.push(e),o.push(n))}))),H(t),null===f||void 0===f||f(t,o,{type:n})}),[H,O,f,r]),te=(0,u.useCallback)((function(e,n,t,r){if(p){var o=t.map((function(e){return O(e)}));p(O(e),n,o,r)}ne(t,"single")}),[p,O,ne]),re=(0,u.useMemo)((function(){return!C||Z?null:(!0===C?[_r,jr,Br]:C).map((function(e){return e===_r?{key:"all",text:M.selectionAll,onSelect:function(){ne(S.map((function(e,n){return D(e,n)})).filter((function(e){var n=B.get(e);return!(null===n||void 0===n?void 0:n.disabled)||q.has(e)})),"all")}}:e===jr?{key:"invert",text:M.selectInvert,onSelect:function(){var e=new Set(q);K.forEach((function(n,t){var r=D(n,t),o=B.get(r);(null===o||void 0===o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));var n=Array.from(e);h&&h(n),ne(n,"invert")}}:e===Br?{key:"none",text:M.selectNone,onSelect:function(){null===m||void 0===m||m(),ne(Array.from(q).filter((function(e){var n=B.get(e);return null===n||void 0===n?void 0:n.disabled})),"none")}}:e})).map((function(e){return(0,a.Z)((0,a.Z)({},e),{onSelect:function(){for(var n,t,r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],r=(0,a.Z)((0,a.Z)({},ce),e);t&&(ce.resetPagination(),r.pagination.current&&(r.pagination.current=1),m&&m.onChange&&m.onChange(1,r.pagination.pageSize)),R&&!1!==R.scrollToFirstRowOnChange&&oe.body.current&&$e(0,{getContainer:function(){return oe.body.current}}),null===N||void 0===N||N(r.pagination,r.filters,r.sorter,{currentDataSource:Lr(oo(Y,r.sorterStates,te),r.filterStates),action:n})},ue=ao({prefixCls:J,mergedColumns:F,onSorterChange:function(e,n){de({sorter:e,sorterStates:n},"sort",!1)},sortDirections:M||["ascend","descend"],tableLocale:q,showSorterTooltip:I}),fe=(0,l.Z)(ue,4),pe=fe[0],ve=fe[1],he=fe[2],me=fe[3],ye=u.useMemo((function(){return oo(Y,ve,te)}),[Y,ve]);ce.sorter=me(),ce.sorterStates=ve;var ge=Tr({prefixCls:J,locale:q,dropdownPrefixCls:Q,mergedColumns:F,onFilterChange:function(e,n){de({filters:e,filterStates:n},"filter",!0)},getPopupContainer:b}),xe=(0,l.Z)(ge,3),Ce=xe[0],Ee=xe[1],ke=xe[2],Ze=Lr(ye,Ee);ce.filters=ke,ce.filterStates=Ee;var Ne=io(u.useMemo((function(){var e={};return Object.keys(ke).forEach((function(n){null!==ke[n]&&(e[n]=ke[n])})),(0,a.Z)((0,a.Z)({},he),{filters:e})}),[he,ke])),be=(0,l.Z)(Ne,1)[0],we=Ar(Ze.length,m,(function(e,n){de({pagination:(0,a.Z)((0,a.Z)({},ce.pagination),{current:e,pageSize:n})},"paginate")})),Se=(0,l.Z)(we,2),Ke=Se[0],Oe=Se[1];ce.pagination=!1===m?{}: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}(m,Ke),ce.resetPagination=Oe;var De=u.useMemo((function(){if(!1===m||!Ke.pageSize)return Ze;var e=Ke.current,n=void 0===e?1:e,t=Ke.total,r=Ke.pageSize,o=void 0===r?10:r;return Ze.lengtho?Ze.slice((n-1)*o,n*o):Ze:Ze.slice((n-1)*o,n*o)}),[!!m,Ze,Ke&&Ke.current,Ke&&Ke.pageSize,Ke&&Ke.total]),Pe=Ur(y,{prefixCls:J,data:Ze,pageData:De,getRowKey:ae,getRecordByKey:ie,expandType:re,childrenColumnName:te,locale:q,getPopupContainer:b}),Re=(0,l.Z)(Pe,2),Me=Re[0],Le=Re[1];ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||S||en(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 P?P:15);var Ie,Ae,Ge,Xe=u.useCallback((function(e){return be(Me(Ce(pe(e))))}),[pe,Ce,Me]);if(!1!==m&&(null===Ke||void 0===Ke?void 0:Ke.total)){var qe;qe=Ke.size?Ke.size:"small"===X||"middle"===X?"small":void 0;var Ye=function(e){return u.createElement(We.Z,(0,a.Z)({},Ke,{className:c()("".concat(J,"-pagination ").concat(J,"-pagination-").concat(e),Ke.className),size:qe}))},Je="rtl"===G?"left":"right",Qe=Ke.position;if(null!==Qe&&Array.isArray(Qe)){var nn=Qe.find((function(e){return-1!==e.indexOf("top")})),tn=Qe.find((function(e){return-1!==e.indexOf("bottom")})),rn=Qe.every((function(e){return"none"==="".concat(e)}));nn||tn||rn||(Ae=Ye(Je)),nn&&(Ie=Ye(nn.toLowerCase().replace("top",""))),tn&&(Ae=Ye(tn.toLowerCase().replace("bottom","")))}else Ae=Ye(Je)}"boolean"===typeof w?Ge={spinning:w}:"object"===(0,r.Z)(w)&&(Ge=(0,a.Z)({spinning:!0},w));var on=c()("".concat(J,"-wrapper"),(0,o.Z)({},"".concat(J,"-wrapper-rtl"),"rtl"===G),d);return u.createElement("div",{ref:n,className:on,style:s},u.createElement(Ue.Z,(0,a.Z)({spinning:!1},Ge),Ie,u.createElement(He,(0,a.Z)({},_,{columns:F,direction:G,expandable:ee,prefixCls:J,className:c()((t={},(0,o.Z)(t,"".concat(J,"-middle"),"middle"===X),(0,o.Z)(t,"".concat(J,"-small"),"small"===X),(0,o.Z)(t,"".concat(J,"-bordered"),p),(0,o.Z)(t,"".concat(J,"-empty"),0===Y.length),t)),data:De,rowKey:ae,rowClassName:function(e,n,t){var r;return r="function"===typeof C?c()(C(e,n,t)):c()(C),c()((0,o.Z)({},"".concat(J,"-row-selected"),Le.has(ae(e,n))),r)},emptyText:L&&L.emptyText||(U||_e.Z)("Table"),internalHooks:Te,internalRefs:oe,transformColumns:Xe})),Ae))}var uo=u.forwardRef(so);uo.SELECTION_COLUMN=Fr,uo.EXPAND_COLUMN=He.EXPAND_COLUMN,uo.SELECTION_ALL=_r,uo.SELECTION_INVERT=jr,uo.SELECTION_NONE=Br,uo.Column=Je,uo.ColumnGroup=Qe,uo.Summary=Ze;var fo=uo},50132:function(e,n,t){var r=t(87462),o=t(4942),a=t(45987),l=t(1413),i=t(15671),c=t(43144),d=t(60136),s=t(33643),u=t(67294),f=t(94184),p=t.n(f),v=function(e){(0,d.Z)(t,e);var n=(0,s.Z)(t);function t(e){var r;(0,i.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,l.Z)((0,l.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,l=n.className,i=n.style,c=n.name,d=n.id,s=n.type,f=n.disabled,v=n.readOnly,h=n.tabIndex,m=n.onClick,y=n.onFocus,g=n.onBlur,x=n.onKeyDown,C=n.onKeyPress,E=n.onKeyUp,k=n.autoFocus,Z=n.value,N=n.required,b=(0,a.Z)(n,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),w=Object.keys(b).reduce((function(e,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(e[n]=b[n]),e}),{}),S=this.state.checked,K=p()(t,l,(e={},(0,o.Z)(e,"".concat(t,"-checked"),S),(0,o.Z)(e,"".concat(t,"-disabled"),f),e));return u.createElement("span",{className:K,style:i},u.createElement("input",(0,r.Z)({name:c,id:d,type:s,required:N,readOnly:v,disabled:f,tabIndex:h,className:"".concat(t,"-input"),checked:!!S,onClick:m,onFocus:y,onBlur:g,onKeyUp:E,onKeyDown:x,onKeyPress:C,onChange:this.handleChange,autoFocus:k,ref:this.saveInput,value:Z},w)),u.createElement("span",{className:"".concat(t,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return"checked"in e?(0,l.Z)((0,l.Z)({},n),{},{checked:e.checked}):null}}]),t}(u.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}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/3698-68c12d00e813fbb1.js b/static/web/_next/static/chunks/3698-68c12d00e813fbb1.js deleted file mode 100644 index cbd5446c8..000000000 --- a/static/web/_next/static/chunks/3698-68c12d00e813fbb1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3698],{57838:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(97685),r=n(67294);function i(){var e=r.useReducer((function(e){return e+1}),0);return(0,a.Z)(e,2)[1]}},24308:function(e,t,n){n.d(t,{c4:function(){return i}});var a=n(4942),r=n(87462),i=["xxl","xl","lg","md","sm","xs"],o={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},l=new Map,s=-1,c={},u={matchHandlers:{},dispatch:function(e){return c=e,l.forEach((function(e){return e(c)})),l.size>=1},subscribe:function(e){return l.size||this.register(),s+=1,l.set(s,e),e(c),s},unsubscribe:function(e){l.delete(e),l.size||this.unregister()},unregister:function(){var e=this;Object.keys(o).forEach((function(t){var n=o[t],a=e.matchHandlers[n];null===a||void 0===a||a.mql.removeListener(null===a||void 0===a?void 0:a.listener)})),l.clear()},register:function(){var e=this;Object.keys(o).forEach((function(t){var n=o[t],i=function(n){var i=n.matches;e.dispatch((0,r.Z)((0,r.Z)({},c),(0,a.Z)({},t,i)))},l=window.matchMedia(n);l.addListener(i),e.matchHandlers[n]={mql:l,listener:i},i(l)}))}};t.ZP=u},25378:function(e,t,n){var a=n(67294),r=n(57838),i=n(24308);t.Z=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(0,a.useRef)({}),n=(0,r.Z)();return(0,a.useEffect)((function(){var a=i.ZP.subscribe((function(a){t.current=a,e&&n()}));return function(){return i.ZP.unsubscribe(a)}}),[]),t.current}},3698:function(e,t,n){n.d(t,{Z:function(){return D}});var a=n(4942),r=n(87462),i=n(1413),o=n(67294),l={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"},s=n(42135),c=function(e,t){return o.createElement(s.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:l}))};c.displayName="DoubleLeftOutlined";var u=o.forwardRef(c),p={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"},h=function(e,t){return o.createElement(s.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:p}))};h.displayName="DoubleRightOutlined";var m=o.forwardRef(h),d=n(6171),g=n(18073),f=n(94184),v=n.n(f),x=n(15671),C=n(43144),b=n(60136),y=n(33643),N=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=v()(n,"".concat(n,"-").concat(e.page),(t={},(0,a.Z)(t,"".concat(n,"-active"),e.active),(0,a.Z)(t,"".concat(n,"-disabled"),!e.page),(0,a.Z)(t,e.className,!!e.className),t));return o.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",o.createElement("a",{rel:"nofollow"},e.page)))},P=13,E=38,k=40,S=function(e){(0,b.Z)(n,e);var t=(0,y.Z)(n);function n(){var e;(0,x.Z)(this,n);for(var a=arguments.length,r=new Array(a),i=0;i=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==P&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,C.Z)(n,[{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,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,a=t.locale,r=t.rootPrefixCls,i=t.changeSize,l=t.quickGo,s=t.goButton,c=t.selectComponentClass,u=t.buildOptionText,p=t.selectPrefixCls,h=t.disabled,m=this.state.goInputText,d="".concat(r,"-options"),g=c,f=null,v=null,x=null;if(!i&&!l)return null;var C=this.getPageSizeOptions();if(i&&g){var b=C.map((function(t,n){return o.createElement(g.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))}));f=o.createElement(g,{disabled:h,prefixCls:p,showSearch:!1,className:"".concat(d,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||C[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":a.page_size,defaultOpen:!1},b)}return l&&(s&&(x="boolean"===typeof s?o.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(d,"-quick-jumper-button")},a.jump_to_confirm):o.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),v=o.createElement("div",{className:"".concat(d,"-quick-jumper")},a.jump_to,o.createElement("input",{disabled:h,type:"text",value:m,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":a.page}),a.page,x)),o.createElement("li",{className:"".concat(d)},f,v)}}]),n}(o.Component);S.defaultProps={pageSizeOptions:["10","20","50","100"]};var I=S;function z(){}function w(e){var t=Number(e);return"number"===typeof t&&!isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Z(e,t,n){var a="undefined"===typeof e?t.pageSize:e;return Math.floor((n.total-1)/a)+1}var O=function(e){(0,b.Z)(n,e);var t=(0,y.Z)(n);function n(e){var a;(0,x.Z)(this,n),(a=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(Z(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(e,t){var n=a.props.prefixCls,r=e||o.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"===typeof e&&(r=o.createElement(e,(0,i.Z)({},a.props))),r},a.savePaginationNode=function(e){a.paginationNode=e},a.isValid=function(e){var t=a.props.total;return w(e)&&e!==a.state.current&&w(t)&&t>0},a.shouldDisplayQuickJumper=function(){var e=a.props,t=e.showQuickJumper;return!(e.total<=a.state.pageSize)&&t},a.handleKeyDown=function(e){e.keyCode!==E&&e.keyCode!==k||e.preventDefault()},a.handleKeyUp=function(e){var t=a.getValidValue(e);t!==a.state.currentInputValue&&a.setState({currentInputValue:t}),e.keyCode===P?a.handleChange(t):e.keyCode===E?a.handleChange(t-1):e.keyCode===k&&a.handleChange(t+1)},a.handleBlur=function(e){var t=a.getValidValue(e);a.handleChange(t)},a.changePageSize=function(e){var t=a.state.current,n=Z(e,a.state,a.props);t=t>n?n:t,0===n&&(t=a.state.current),"number"===typeof e&&("pageSize"in a.props||a.setState({pageSize:e}),"current"in a.props||a.setState({current:t,currentInputValue:t})),a.props.onShowSizeChange(t,e),"onChange"in a.props&&a.props.onChange&&a.props.onChange(t,e)},a.handleChange=function(e){var t=a.props,n=t.disabled,r=t.onChange,i=a.state,o=i.pageSize,l=i.current,s=i.currentInputValue;if(a.isValid(e)&&!n){var c=Z(void 0,a.state,a.props),u=e;return e>c?u=c:e<1&&(u=1),"current"in a.props||a.setState({current:u}),u!==s&&a.setState({currentInputValue:u}),r(u,o),u}return l},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current2?n-2:0),r=2;r=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,a=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof t?t:n>a}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,a=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),r=!this.hasPrev();return(0,o.isValidElement)(a)?(0,o.cloneElement)(a,{disabled:r}):a}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,a=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),r=!this.hasNext();return(0,o.isValidElement)(a)?(0,o.cloneElement)(a,{disabled:r}):a}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,l=t.style,s=t.disabled,c=t.hideOnSinglePage,u=t.total,p=t.locale,h=t.showQuickJumper,m=t.showLessItems,d=t.showTitle,g=t.showTotal,f=t.simple,x=t.itemRender,C=t.showPrevNextJumpers,b=t.jumpPrevIcon,y=t.jumpNextIcon,P=t.selectComponentClass,E=t.selectPrefixCls,k=t.pageSizeOptions,S=this.state,z=S.current,w=S.pageSize,O=S.currentInputValue;if(!0===c&&u<=w)return null;var _=Z(void 0,this.state,this.props),j=[],T=null,V=null,K=null,J=null,L=null,B=h&&h.goButton,R=m?1:2,M=z-1>0?z-1:0,D=z+1<_?z+1:_,U=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(f)return B&&(L="boolean"===typeof B?o.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},p.jump_to_confirm):o.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},B),L=o.createElement("li",{title:d?"".concat(p.jump_to).concat(z,"/").concat(_):null,className:"".concat(n,"-simple-pager")},L)),o.createElement("ul",(0,r.Z)({className:v()(n,"".concat(n,"-simple"),(0,a.Z)({},"".concat(n,"-disabled"),s),i),style:l,ref:this.savePaginationNode},U),o.createElement("li",{title:d?p.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:v()("".concat(n,"-prev"),(0,a.Z)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(M)),o.createElement("li",{title:d?"".concat(z,"/").concat(_):null,className:"".concat(n,"-simple-pager")},o.createElement("input",{type:"text",value:O,disabled:s,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),o.createElement("span",{className:"".concat(n,"-slash")},"/"),_),o.createElement("li",{title:d?p.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:v()("".concat(n,"-next"),(0,a.Z)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(D)),L);if(_<=3+2*R){var q={locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:d,itemRender:x};_||j.push(o.createElement(N,(0,r.Z)({},q,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var G=1;G<=_;G+=1){var H=z===G;j.push(o.createElement(N,(0,r.Z)({},q,{key:G,page:G,active:H})))}}else{var Q=m?p.prev_3:p.prev_5,A=m?p.next_3:p.next_5;C&&(T=o.createElement("li",{title:d?Q:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:v()("".concat(n,"-jump-prev"),(0,a.Z)({},"".concat(n,"-jump-prev-custom-icon"),!!b))},x(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(b,"prev page"))),V=o.createElement("li",{title:d?A:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:v()("".concat(n,"-jump-next"),(0,a.Z)({},"".concat(n,"-jump-next-custom-icon"),!!y))},x(this.getJumpNextPage(),"jump-next",this.getItemIcon(y,"next page")))),J=o.createElement(N,{locale:p,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_,page:_,active:!1,showTitle:d,itemRender:x}),K=o.createElement(N,{locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:d,itemRender:x});var F=Math.max(1,z-R),W=Math.min(z+R,_);z-1<=R&&(W=1+2*R),_-z<=R&&(F=_-2*R);for(var Y=F;Y<=W;Y+=1){var X=z===Y;j.push(o.createElement(N,{locale:p,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Y,page:Y,active:X,showTitle:d,itemRender:x}))}z-1>=2*R&&3!==z&&(j[0]=(0,o.cloneElement)(j[0],{className:"".concat(n,"-item-after-jump-prev")}),j.unshift(T)),_-z>=2*R&&z!==_-2&&(j[j.length-1]=(0,o.cloneElement)(j[j.length-1],{className:"".concat(n,"-item-before-jump-next")}),j.push(V)),1!==F&&j.unshift(K),W!==_&&j.push(J)}var $=null;g&&($=o.createElement("li",{className:"".concat(n,"-total-text")},g(u,[0===u?0:(z-1)*w+1,z*w>u?u:z*w])));var ee=!this.hasPrev()||!_,te=!this.hasNext()||!_;return o.createElement("ul",(0,r.Z)({className:v()(n,i,(0,a.Z)({},"".concat(n,"-disabled"),s)),style:l,unselectable:"unselectable",ref:this.savePaginationNode},U),$,o.createElement("li",{title:d?p.prev_page:null,onClick:this.prev,tabIndex:ee?null:0,onKeyPress:this.runIfEnterPrev,className:v()("".concat(n,"-prev"),(0,a.Z)({},"".concat(n,"-disabled"),ee)),"aria-disabled":ee},this.renderPrev(M)),j,o.createElement("li",{title:d?p.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:v()("".concat(n,"-next"),(0,a.Z)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderNext(D)),o.createElement(I,{disabled:s,locale:p,rootPrefixCls:n,selectComponentClass:P,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:z,pageSize:w,pageSizeOptions:k,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var a=t.current,r=Z(e.pageSize,t,e);a=a>r?r:a,"current"in e||(n.current=a,n.currentInputValue=a),n.pageSize=e.pageSize}return n}}]),n}(o.Component);O.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:z,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:z,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,t,n){return n},totalBoundaryShowSizeChanger:50};var _=O,j=n(62906),T=n(53124),V=n(25378),K=n(23715),J=n(38939),L=function(e){return o.createElement(J.Z,(0,r.Z)({},e,{size:"small"}))},B=function(e){return o.createElement(J.Z,(0,r.Z)({},e,{size:"middle"}))};L.Option=J.Z.Option,B.Option=J.Z.Option;var R=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r=1},subscribe:function(e){return l.size||this.register(),c+=1,l.set(c,e),e(s),c},unsubscribe:function(e){l.delete(e),l.size||this.unregister()},unregister:function(){var e=this;Object.keys(o).forEach((function(t){var n=o[t],a=e.matchHandlers[n];null===a||void 0===a||a.mql.removeListener(null===a||void 0===a?void 0:a.listener)})),l.clear()},register:function(){var e=this;Object.keys(o).forEach((function(t){var n=o[t],i=function(n){var i=n.matches;e.dispatch((0,r.Z)((0,r.Z)({},s),(0,a.Z)({},t,i)))},l=window.matchMedia(n);l.addListener(i),e.matchHandlers[n]={mql:l,listener:i},i(l)}))}};t.ZP=u},25378:function(e,t,n){var a=n(67294),r=n(57838),i=n(24308);t.Z=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(0,a.useRef)({}),n=(0,r.Z)();return(0,a.useEffect)((function(){var a=i.ZP.subscribe((function(a){t.current=a,e&&n()}));return function(){return i.ZP.unsubscribe(a)}}),[]),t.current}},40378:function(e,t,n){var a=n(6213);t.Z=a.Z},3698:function(e,t,n){n.d(t,{Z:function(){return D}});var a=n(4942),r=n(87462),i=n(1413),o=n(67294),l={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"},c=n(42135),s=function(e,t){return o.createElement(c.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:l}))};s.displayName="DoubleLeftOutlined";var u=o.forwardRef(s),p={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"},m=function(e,t){return o.createElement(c.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:p}))};m.displayName="DoubleRightOutlined";var h=o.forwardRef(m),d=n(6171),f=n(18073),g=n(94184),v=n.n(g),x=n(15671),y=n(43144),C=n(60136),N=n(33643),b=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=v()(n,"".concat(n,"-").concat(e.page),(t={},(0,a.Z)(t,"".concat(n,"-active"),e.active),(0,a.Z)(t,"".concat(n,"-disabled"),!e.page),(0,a.Z)(t,e.className,!!e.className),t));return o.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",o.createElement("a",{rel:"nofollow"},e.page)))},E=13,P=38,S=40,k=function(e){(0,C.Z)(n,e);var t=(0,N.Z)(n);function n(){var e;(0,x.Z)(this,n);for(var a=arguments.length,r=new Array(a),i=0;i=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==E&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,y.Z)(n,[{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,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,a=t.locale,r=t.rootPrefixCls,i=t.changeSize,l=t.quickGo,c=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,p=t.selectPrefixCls,m=t.disabled,h=this.state.goInputText,d="".concat(r,"-options"),f=s,g=null,v=null,x=null;if(!i&&!l)return null;var y=this.getPageSizeOptions();if(i&&f){var C=y.map((function(t,n){return o.createElement(f.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))}));g=o.createElement(f,{disabled:m,prefixCls:p,showSearch:!1,className:"".concat(d,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":a.page_size,defaultOpen:!1},C)}return l&&(c&&(x="boolean"===typeof c?o.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:m,className:"".concat(d,"-quick-jumper-button")},a.jump_to_confirm):o.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),v=o.createElement("div",{className:"".concat(d,"-quick-jumper")},a.jump_to,o.createElement("input",{disabled:m,type:"text",value:h,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":a.page}),a.page,x)),o.createElement("li",{className:"".concat(d)},g,v)}}]),n}(o.Component);k.defaultProps={pageSizeOptions:["10","20","50","100"]};var Z=k;function I(){}function w(e){var t=Number(e);return"number"===typeof t&&!isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function z(e,t,n){var a="undefined"===typeof e?t.pageSize:e;return Math.floor((n.total-1)/a)+1}var O=function(e){(0,C.Z)(n,e);var t=(0,N.Z)(n);function n(e){var a;(0,x.Z)(this,n),(a=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(z(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(e,t){var n=a.props.prefixCls,r=e||o.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"===typeof e&&(r=o.createElement(e,(0,i.Z)({},a.props))),r},a.savePaginationNode=function(e){a.paginationNode=e},a.isValid=function(e){var t=a.props.total;return w(e)&&e!==a.state.current&&w(t)&&t>0},a.shouldDisplayQuickJumper=function(){var e=a.props,t=e.showQuickJumper;return!(e.total<=a.state.pageSize)&&t},a.handleKeyDown=function(e){e.keyCode!==P&&e.keyCode!==S||e.preventDefault()},a.handleKeyUp=function(e){var t=a.getValidValue(e);t!==a.state.currentInputValue&&a.setState({currentInputValue:t}),e.keyCode===E?a.handleChange(t):e.keyCode===P?a.handleChange(t-1):e.keyCode===S&&a.handleChange(t+1)},a.handleBlur=function(e){var t=a.getValidValue(e);a.handleChange(t)},a.changePageSize=function(e){var t=a.state.current,n=z(e,a.state,a.props);t=t>n?n:t,0===n&&(t=a.state.current),"number"===typeof e&&("pageSize"in a.props||a.setState({pageSize:e}),"current"in a.props||a.setState({current:t,currentInputValue:t})),a.props.onShowSizeChange(t,e),"onChange"in a.props&&a.props.onChange&&a.props.onChange(t,e)},a.handleChange=function(e){var t=a.props,n=t.disabled,r=t.onChange,i=a.state,o=i.pageSize,l=i.current,c=i.currentInputValue;if(a.isValid(e)&&!n){var s=z(void 0,a.state,a.props),u=e;return e>s?u=s:e<1&&(u=1),"current"in a.props||a.setState({current:u}),u!==c&&a.setState({currentInputValue:u}),r(u,o),u}return l},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current2?n-2:0),r=2;r=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,a=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof t?t:n>a}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,a=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),r=!this.hasPrev();return(0,o.isValidElement)(a)?(0,o.cloneElement)(a,{disabled:r}):a}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,a=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),r=!this.hasNext();return(0,o.isValidElement)(a)?(0,o.cloneElement)(a,{disabled:r}):a}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,l=t.style,c=t.disabled,s=t.hideOnSinglePage,u=t.total,p=t.locale,m=t.showQuickJumper,h=t.showLessItems,d=t.showTitle,f=t.showTotal,g=t.simple,x=t.itemRender,y=t.showPrevNextJumpers,C=t.jumpPrevIcon,N=t.jumpNextIcon,E=t.selectComponentClass,P=t.selectPrefixCls,S=t.pageSizeOptions,k=this.state,I=k.current,w=k.pageSize,O=k.currentInputValue;if(!0===s&&u<=w)return null;var j=z(void 0,this.state,this.props),_=[],T=null,V=null,K=null,L=null,J=null,U=m&&m.goButton,B=h?1:2,R=I-1>0?I-1:0,D=I+1=2*B&&3!==I&&(_[0]=(0,o.cloneElement)(_[0],{className:"".concat(n,"-item-after-jump-prev")}),_.unshift(T)),j-I>=2*B&&I!==j-2&&(_[_.length-1]=(0,o.cloneElement)(_[_.length-1],{className:"".concat(n,"-item-before-jump-next")}),_.push(V)),1!==W&&_.unshift(K),F!==j&&_.push(L)}var X=null;f&&(X=o.createElement("li",{className:"".concat(n,"-total-text")},f(u,[0===u?0:(I-1)*w+1,I*w>u?u:I*w])));var ee=!this.hasPrev()||!j,te=!this.hasNext()||!j;return o.createElement("ul",(0,r.Z)({className:v()(n,i,(0,a.Z)({},"".concat(n,"-disabled"),c)),style:l,unselectable:"unselectable",ref:this.savePaginationNode},M),X,o.createElement("li",{title:d?p.prev_page:null,onClick:this.prev,tabIndex:ee?null:0,onKeyPress:this.runIfEnterPrev,className:v()("".concat(n,"-prev"),(0,a.Z)({},"".concat(n,"-disabled"),ee)),"aria-disabled":ee},this.renderPrev(R)),_,o.createElement("li",{title:d?p.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:v()("".concat(n,"-next"),(0,a.Z)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderNext(D)),o.createElement(Z,{disabled:c,locale:p,rootPrefixCls:n,selectComponentClass:E,selectPrefixCls:P,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:w,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:U}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var a=t.current,r=z(e.pageSize,t,e);a=a>r?r:a,"current"in e||(n.current=a,n.currentInputValue=a),n.pageSize=e.pageSize}return n}}]),n}(o.Component);O.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:I,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:I,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,t,n){return n},totalBoundaryShowSizeChanger:50};var j=O,_=n(62906),T=n(53124),V=n(25378),K=n(23715),L=n(38939),J=function(e){return o.createElement(L.Z,(0,r.Z)({},e,{size:"small"}))},U=function(e){return o.createElement(L.Z,(0,r.Z)({},e,{size:"middle"}))};J.Option=L.Z.Option,U.Option=L.Z.Option;var B=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r=1},subscribe:function(e){return a.size||this.register(),c+=1,a.set(c,e),e(l),c},unsubscribe:function(e){a.delete(e),a.size||this.unregister()},unregister:function(){var e=this;Object.keys(s).forEach((function(t){var r=s[t],n=e.matchHandlers[r];null===n||void 0===n||n.mql.removeListener(null===n||void 0===n?void 0:n.listener)})),a.clear()},register:function(){var e=this;Object.keys(s).forEach((function(t){var r=s[t],o=function(r){var o=r.matches;e.dispatch((0,i.Z)((0,i.Z)({},l),(0,n.Z)({},t,o)))},a=window.matchMedia(r);a.addListener(o),e.matchHandlers[r]={mql:a,listener:o},o(a)}))}};t.ZP=u},6226:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(4942),i=r(87462),o=r(71002),s=r(94184),a=r.n(s),c=r(67294),l=r(53124),u=r(99134),f=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i0){var A=m[0]/2;k.paddingLeft=A,k.paddingRight=A}if(m&&m[1]>0&&!b){var L=m[1]/2;k.paddingTop=L,k.paddingBottom=L}return O&&(k.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(O),!1!==w||k.minWidth||(k.minWidth=0)),c.createElement("div",(0,i.Z)({},P,{style:(0,i.Z)((0,i.Z)({},k),M),className:B,ref:t}),C)}))},99134:function(e,t,r){"use strict";var n=(0,r(67294).createContext)({});t.Z=n},25968:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(87462),i=r(4942),o=r(71002),s=r(97685),a=r(94184),c=r.n(a),l=r(67294),u=r(53124),f=r(98082),d=r(24308),p=r(93355),h=r(99134),v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i0?A[0]/-2:void 0,I=null!=A[1]&&A[1]>0?A[1]/-2:void 0;if(T&&(R.marginLeft=T,R.marginRight=T),S){var J=(0,s.Z)(A,2);R.rowGap=J[1]}else I&&(R.marginTop=I,R.marginBottom=I);var W=(0,s.Z)(A,2),F=W[0],H=W[1],V=l.useMemo((function(){return{gutter:[F,H],wrap:Z,supportFlexGap:S}}),[F,H,Z,S]);return l.createElement(h.Z.Provider,{value:V},l.createElement("div",(0,n.Z)({},j,{className:L,style:(0,n.Z)((0,n.Z)({},R),b),ref:t}),x))}))},5135:function(e,t,r){"use strict";r.r(t),r.d(t,{BrowserNotifyModal:function(){return N}});var n=r(47568),i=r(70655),o=r(85893),s=r(84485),a=r(71577),c=r(11382),l=r(25968),u=r(6226),f=r(67294),d=r(4480),p=r(1899);function h(){return(h=(0,n.Z)((function(e,t,r){var n,o,s;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:n="/api/notifications/register",o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({channel:e,destination:t})},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,fetch("".concat(n,"?accessToken=").concat(r),o)];case 2:return i.sent(),[3,4];case 3:return s=i.sent(),console.error(s),[3,4];case 4:return[2]}}))}))).apply(this,arguments)}function v(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(t),n=new Uint8Array(r.length),i=0;i0){var R=h[0]/2;z.paddingLeft=R,z.paddingRight=R}if(h&&h[1]>0&&!x){var A=h[1]/2;z.paddingTop=A,z.paddingBottom=A}return _&&(z.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(_),!1!==g||z.minWidth||(z.minWidth=0)),s.createElement("div",(0,o.Z)({},N,{style:(0,o.Z)((0,o.Z)({},z),S),className:F,ref:t}),C)}))},99134:function(e,t,r){"use strict";var n=(0,r(67294).createContext)({});t.Z=n},25968:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(87462),o=r(4942),a=r(71002),c=r(97685),l=r(94184),s=r.n(l),i=r(67294),u=r(53124),f=r(98082),p=r(24308),d=r(93355),v=r(99134),m=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o0?R[0]/-2:void 0,B=null!=R[1]&&R[1]>0?R[1]/-2:void 0;if(W&&(T.marginLeft=W,T.marginRight=W),k){var G=(0,c.Z)(R,2);T.rowGap=G[1]}else B&&(T.marginTop=B,T.marginBottom=B);var H=(0,c.Z)(R,2),I=H[0],L=H[1],M=i.useMemo((function(){return{gutter:[I,L],wrap:b,supportFlexGap:k}}),[I,L,b,k]);return i.createElement(v.Z.Provider,{value:M},i.createElement("div",(0,n.Z)({},j,{className:A,style:(0,n.Z)((0,n.Z)({},T),x),ref:t}),y))}))},97373:function(e,t,r){"use strict";r.r(t),r.d(t,{FollowerCollection:function(){return g}});var n=r(47568),o=r(70655),a=r(85893),c=r(67294),l=r(25968),s=r(6226),i=r(3698),u=r(24093),f=r(40305),p=r.n(f),d=function(e){var t=e.follower;return(0,a.jsx)("div",{className:p().follower,children:(0,a.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,a.jsxs)(l.Z,{wrap:!1,children:[(0,a.jsx)(s.Z,{span:6,children:(0,a.jsx)(u.C,{src:t.image,alt:"Avatar",className:p().avatar,children:(0,a.jsx)("img",{src:"/logo",alt:"Logo",className:p().placeholder})})}),(0,a.jsxs)(s.Z,{children:[(0,a.jsx)(l.Z,{children:t.name}),(0,a.jsx)(l.Z,{className:p().account,children:t.username})]})]})})})},v=r(12103),m=r.n(v),h=r(30896),g=function(e){var t=e.name,r=(0,c.useState)([]),u=r[0],f=r[1],p=(0,c.useState)(0),v=p[0],g=p[1],x=(0,c.useState)(1),y=x[0],Z=x[1],w=Math.ceil(v/24),b=function(){var e=(0,n.Z)((function(){var e,t,r,n;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,fetch("".concat("/api/followers","?page=").concat(y))];case 1:return[4,o.sent().json()];case 2:return e=o.sent(),t=e.results,r=e.total,f(t),g(r),[3,4];case 3:return n=o.sent(),console.error(n),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){b()}),[]),(0,c.useEffect)((function(){b()}),[y]);var j=(0,a.jsxs)("div",{className:m().noFollowers,children:[(0,a.jsx)("h2",{children:"Be the first follower!"}),(0,a.jsxs)("p",{children:["Owncast"!==t?t:"This server"," is a part of the"," ",(0,a.jsx)("a",{href:"https://owncast.online/join-fediverse",children:"Fediverse"}),", an interconnected network of independent users and servers."]}),(0,a.jsxs)("p",{children:["By following ","Owncast"!==t?t:"this server"," you'll be able to get updates from the stream, share it with others, and and show your appreciation when it goes live, all from your own Fediverse account."]}),(0,a.jsx)(h.e,{})]});return(null===u||void 0===u?void 0:u.length)?(0,a.jsxs)("div",{className:m().followers,children:[(0,a.jsx)(l.Z,{wrap:!0,gutter:[10,10],justify:"space-around",children:u.map((function(e){return(0,a.jsx)(s.Z,{children:(0,a.jsx)(d,{follower:e},e.link)})}))}),(0,a.jsx)(i.Z,{current:y,pageSize:24,total:w||1,onChange:function(e){Z(e)},hideOnSinglePage:!0})]}):j}},12103:function(e){e.exports={followers:"FollowerCollection_followers__e_EUS",noFollowers:"FollowerCollection_noFollowers__UaCVW"}},40305:function(e){e.exports={follower:"SingleFollower_follower__EyBDI",avatar:"SingleFollower_avatar__V9jHG",account:"SingleFollower_account__Z66vo",placeholder:"SingleFollower_placeholder__CgsfJ"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/8763-3aa1a6c3e214b143.js b/static/web/_next/static/chunks/8763-7d290efc89421849.js similarity index 99% rename from static/web/_next/static/chunks/8763-3aa1a6c3e214b143.js rename to static/web/_next/static/chunks/8763-7d290efc89421849.js index 1f793a44f..9625b2b07 100644 --- a/static/web/_next/static/chunks/8763-3aa1a6c3e214b143.js +++ b/static/web/_next/static/chunks/8763-7d290efc89421849.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8763],{28763:function(e,t,n){"use strict";n.r(t),n.d(t,{ChatContainer:function(){return ge}});var a=n(85893),s=n(9764),r=n(67294),o=n(36531),i=n(11622),c=n(13545),l=n.n(c),u=n(14924),d=n(86492),h=n.n(d),m=n(94184),g=n.n(m),p=n(94199),f=n(29158),x=n(4480),_=n(5152),C=n.n(_),v=n(78583),j=n.n(v);function y(e){var t=new Date(e);if(Number.isNaN(t))return"";if(function(e){var t="string"===typeof e?new Date(e):e;return(new Date-t)/864e5}(e)>=1){var n=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(n," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var N,M,b,w,S,E=n(79010),T=n.n(E),k=function(e){var t=e.badge,n=e.userColor,s="var(--theme-user-colors-".concat(n,")"),r={color:s,borderColor:s};return(0,a.jsx)("span",{style:r,className:T().badge,children:t})},B=n(1899),D=C()((function(){return Promise.all([n.e(8939),n.e(3903),n.e(3698),n.e(3626),n.e(8091),n.e(1300),n.e(7781)]).then(n.bind(n,87781)).then((function(e){return e.ChatModerationActionMenu}))}),{loadableGenerated:{webpack:function(){return[87781]}}}),O=C()((function(){return Promise.resolve().then(n.bind(n,47049)).then((function(e){return e.Highlight}))}),{loadableGenerated:{webpack:function(){return[47049]}}}),U=function(e){var t=e.message,n=e.highlightString,s=e.showModeratorMenu,o=e.sentBySelf,i=e.sameUserAsLast,c=e.isAuthorModerator,l=e.isAuthorAuthenticated,d=t.id,m=t.body,_=t.user,C=t.timestamp,v=_.id,N=_.displayName,M=_.displayColor,b=(0,x.sJ)(B.FI),w="var(--theme-color-users-".concat(M,")"),S="Sent ".concat(y(C)),E=(0,r.useState)(m),T=E[0],U=E[1],A=[];return c&&A.push((0,a.jsx)(k,{badge:"mod",userColor:M},"mod")),l&&A.push((0,a.jsx)(k,{badge:(0,a.jsx)(f.Z,{title:"authenticated"}),userColor:M},"auth")),(0,r.useEffect)((function(){U(h().decode(m))}),[t]),(0,a.jsx)("div",{className:g()(j().messagePadding,i&&j().messagePaddingCollapsed),children:(0,a.jsxs)("div",{className:g()(j().root,(0,u.Z)({},j().ownMessage,o)),style:{borderColor:w},children:[!i&&(0,a.jsx)(p.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,a.jsxs)("div",{className:j().user,style:{color:w},children:[(0,a.jsx)("span",{className:j().userName,children:N}),(0,a.jsx)("span",{children:A})]})}),(0,a.jsx)(p.Z,{title:S,mouseEnterDelay:1,children:(0,a.jsx)(O,{search:n,children:(0,a.jsx)("div",{className:j().message,dangerouslySetInnerHTML:{__html:T}})})}),s&&(0,a.jsx)("div",{className:j().modMenuWrapper,children:(0,a.jsx)(D,{messageID:d,accessToken:b,userID:v,userDisplayName:N})}),(0,a.jsx)("div",{className:j().background,style:{color:w}})]})})},A=n(26042),F=n(69396),I=n(828),R=n(93045),Z=n(27496),L=n(55241),H=n(77493),P=n(96391),W=n(25882),G=n.n(W),V=C()((function(){return Promise.all([n.e(7741),n.e(786)]).then(n.bind(n,30786)).then((function(e){return e.EmojiPicker}))}),{loadableGenerated:{webpack:function(){return[30786]}}}),Y=function(e){var t=e.attributes,n=e.element,s=e.children,r=(0,P.vt)(),o=(0,P.UE)();return(0,a.jsxs)("span",(0,F.Z)((0,A.Z)({},t),{contentEditable:!1,children:[(0,a.jsx)("img",{alt:n.alt,src:n.src,title:n.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(r&&o?"0 0 0 3px #B4D5FF":"none")}}),s]}))},J=function(e){var t,n;if(H.xv.isText(e))return e.text;0===e.children.length?t=[{text:""}]:t=null===(n=e.children)||void 0===n?void 0:n.map((function(e){return J(e)})).join("");switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},z=function(e){if(H.xv.isText(e))return e.text.length;if("image"===e.type)return 5;var t=0;return e.children.forEach((function(e){t+=z(e)})),t},X=function(e){var t=e.defaultText,n=(0,r.useState)(!1),s=n[0],o=n[1],c=(0,r.useState)(null===t||void 0===t?void 0:t.length),l=c[0],u=c[1],d=(0,x.sJ)(B.Gt),h=(0,r.useMemo)((function(){return(0,P.BU)(function(e){var t=e.isVoid;return e.isVoid=function(e){return"image"===e.type||t(e)},e.isInline=function(e){return"image"===e.type},e}((0,H.Jh)()))}),[]),m=[{type:"paragraph",children:[{text:t||""}]}],p=function(){if(d){var e=J(h);d.send({type:i.C.CHAT,body:e}),H.YR.delete(h,{at:{anchor:H.ML.start(h,[]),focus:H.ML.end(h,[])}}),u(0)}else console.log("websocketService is not defined")};return(0,a.jsx)("div",{className:G().root,children:(0,a.jsxs)("div",{className:g()(G().inputWrap,l>=300&&G().maxCharacters),children:[(0,a.jsxs)(P.mH,{editor:h,value:m,children:[(0,a.jsx)(P.CX,{onKeyDown:function(e){var t=z(h)+1;if("Enter"===e.key)return e.preventDefault(),void p();"Backspace"!==e.key?(t+1>300&&e.preventDefault(),u(t+1)):u(t-1)},onPaste:function(e){var t=e.clipboardData.getData("text/plain").length;l+t>300&&e.preventDefault()},renderElement:function(e){return"image"===e.element.type?(0,a.jsx)(Y,(0,A.Z)({},e)):(0,a.jsx)("p",(0,A.Z)({},e))},placeholder:"Chat message goes here...",style:{width:"100%"},autoFocus:!0}),(0,a.jsx)(L.Z,{content:(0,a.jsx)(V,{onEmojiSelect:function(e){P.F3.focus(h),H.YR.insertText(h,e)},onCustomEmojiSelect:function(e,t){P.F3.focus(h),function(e,t){if(e){var n=h.selection,a=function(e,t,n){return{type:"image",alt:e,src:t,name:n,children:[{text:""}]}}(t,e,t);if(H.YR.insertNodes(h,a,{select:!0}),n){var s,r=(0,I.Z)(H.ML.parent(h,null===(s=n.focus)||void 0===s?void 0:s.path),2),o=r[0],i=r[1];h.isVoid(o)||H.NB.string(o).length?H.YR.insertNodes(h,a,{at:H.y$.next(i),select:!0}):(H.YR.insertNodes(h,a,{at:i,select:!0}),H.ML.normalize(h,{force:!0}))}else H.YR.insertNodes(h,a,{select:!0})}}(t,e)}}),trigger:"click",onOpenChange:function(e){return o(e)},open:s})]}),(0,a.jsxs)("div",{style:{display:"flex",paddingLeft:"5px"},children:[(0,a.jsx)("button",{type:"button",className:G().emojiButton,title:"Emoji picker button",onClick:function(){return o(!s)},children:(0,a.jsx)(R.Z,{})}),(0,a.jsx)("button",{type:"button",className:G().sendButton,title:"Send message Button",onClick:p,children:(0,a.jsx)(Z.Z,{})})]})]})})},q=n(93174),K=n.n(q);function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t12e4)&&a===(null===s||void 0===s?void 0:s.user.id)}function me(e){var t=e.user.scopes;return!(!t||0===t.length)&&t.includes("MODERATOR")}var ge=function(e){var t=e.messages,n=e.usernameToHighlight,c=e.chatUserId,u=e.isModerator,d=e.showInput,h=e.height,m=(0,r.useState)(!1),g=m[0],p=m[1],f=(0,r.useRef)(null),x=function(e,s){switch(s.type){case i.C.CHAT:var r,d,h;return(0,a.jsx)(U,{message:s,showModeratorMenu:u,highlightString:n,sentBySelf:(null===(r=s.user)||void 0===r?void 0:r.id)===c,sameUserAsLast:he(t,e),isAuthorModerator:null===(d=s.user.scopes)||void 0===d?void 0:d.includes("MODERATOR"),isAuthorAuthenticated:null===(h=s.user)||void 0===h?void 0:h.authenticated},s.id);case i.C.NAME_CHANGE:return function(e){var t=e.oldName,n=e.user,s=n.displayName,r=n.displayColor,i="var(--theme-color-users-".concat(r,")");return(0,a.jsxs)("div",{className:l().nameChangeView,children:[(0,a.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,a.jsx)(o.Z,{})}),(0,a.jsxs)("div",{className:l().nameChangeText,children:[(0,a.jsx)("span",{style:{color:i},children:t}),(0,a.jsx)("span",{className:l().plain,children:" is now known as "}),(0,a.jsx)("span",{style:{color:i},children:s})]})]})}(s);case i.C.CONNECTED_USER_INFO:return function(e){if(!me(e))return(0,a.jsx)("div",{style:{width:"1px",height:"1px"}});return(0,a.jsx)(ee,{})}(s);case i.C.USER_JOINED:return function(e){var t=e.user,n=t.displayName,s=t.displayColor,r=me(e);return(0,a.jsx)(ce,{displayName:n,userColor:s,isAuthorModerator:r})}(s);case i.C.SYSTEM:return(0,a.jsx)(se,{message:s,highlightString:n},s.id);default:return null}},_=(0,r.useMemo)((function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.OO,{style:{height:h},className:l().virtuoso,ref:f,initialTopMostItemIndex:t.length-1,data:t,itemContent:function(e,t){return x(e,t)},followOutput:"auto",alignToBottom:!0,atBottomStateChange:function(e){return p(e)}}),!g&&(0,a.jsx)(de,{chatContainerRef:f,messages:t})]})}),[t,n,c,u,g]);return(0,a.jsxs)("div",{className:l().chatContainer,children:[_,d&&(0,a.jsx)(X,{})]})};ge.defaultProps={showInput:!0,height:"auto"}},13545:function(e){e.exports={chatHeader:"ChatContainer_chatHeader__EJsYI",toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",toBottomBtn:"ChatContainer_toBottomBtn__453AG",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19",chatContainer:"ChatContainer_chatContainer__O2lYN",virtuoso:"ChatContainer_virtuoso__OS9Kz"}},83066:function(e){e.exports={root:"ChatJoinMessage_root__vuVXa"}},93174:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},31681:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},25882:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrap:"ChatTextField_inputWrap__1mAjD",maxCharacters:"ChatTextField_maxCharacters__yGT4s",emojiButton:"ChatTextField_emojiButton__ON_Cu",sendButton:"ChatTextField_sendButton__MOmD4"}},79010:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},78583:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8763],{28763:function(e,t,n){"use strict";n.r(t),n.d(t,{ChatContainer:function(){return ge}});var a=n(85893),s=n(9764),r=n(67294),o=n(36531),i=n(11622),c=n(13545),l=n.n(c),u=n(14924),d=n(86492),h=n.n(d),m=n(94184),g=n.n(m),p=n(94199),f=n(29158),x=n(4480),_=n(5152),C=n.n(_),v=n(78583),j=n.n(v);function y(e){var t=new Date(e);if(Number.isNaN(t))return"";if(function(e){var t="string"===typeof e?new Date(e):e;return(new Date-t)/864e5}(e)>=1){var n=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(n," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var N,M,b,w,S,E=n(79010),T=n.n(E),k=function(e){var t=e.badge,n=e.userColor,s="var(--theme-user-colors-".concat(n,")"),r={color:s,borderColor:s};return(0,a.jsx)("span",{style:r,className:T().badge,children:t})},B=n(1899),D=C()((function(){return Promise.all([n.e(8939),n.e(3903),n.e(4267),n.e(3626),n.e(8091),n.e(1300),n.e(7781)]).then(n.bind(n,87781)).then((function(e){return e.ChatModerationActionMenu}))}),{loadableGenerated:{webpack:function(){return[87781]}}}),O=C()((function(){return Promise.resolve().then(n.bind(n,47049)).then((function(e){return e.Highlight}))}),{loadableGenerated:{webpack:function(){return[47049]}}}),U=function(e){var t=e.message,n=e.highlightString,s=e.showModeratorMenu,o=e.sentBySelf,i=e.sameUserAsLast,c=e.isAuthorModerator,l=e.isAuthorAuthenticated,d=t.id,m=t.body,_=t.user,C=t.timestamp,v=_.id,N=_.displayName,M=_.displayColor,b=(0,x.sJ)(B.FI),w="var(--theme-color-users-".concat(M,")"),S="Sent ".concat(y(C)),E=(0,r.useState)(m),T=E[0],U=E[1],A=[];return c&&A.push((0,a.jsx)(k,{badge:"mod",userColor:M},"mod")),l&&A.push((0,a.jsx)(k,{badge:(0,a.jsx)(f.Z,{title:"authenticated"}),userColor:M},"auth")),(0,r.useEffect)((function(){U(h().decode(m))}),[t]),(0,a.jsx)("div",{className:g()(j().messagePadding,i&&j().messagePaddingCollapsed),children:(0,a.jsxs)("div",{className:g()(j().root,(0,u.Z)({},j().ownMessage,o)),style:{borderColor:w},children:[!i&&(0,a.jsx)(p.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,a.jsxs)("div",{className:j().user,style:{color:w},children:[(0,a.jsx)("span",{className:j().userName,children:N}),(0,a.jsx)("span",{children:A})]})}),(0,a.jsx)(p.Z,{title:S,mouseEnterDelay:1,children:(0,a.jsx)(O,{search:n,children:(0,a.jsx)("div",{className:j().message,dangerouslySetInnerHTML:{__html:T}})})}),s&&(0,a.jsx)("div",{className:j().modMenuWrapper,children:(0,a.jsx)(D,{messageID:d,accessToken:b,userID:v,userDisplayName:N})}),(0,a.jsx)("div",{className:j().background,style:{color:w}})]})})},A=n(26042),F=n(69396),I=n(828),R=n(93045),Z=n(27496),L=n(55241),H=n(77493),P=n(96391),W=n(25882),G=n.n(W),V=C()((function(){return Promise.all([n.e(7741),n.e(786)]).then(n.bind(n,30786)).then((function(e){return e.EmojiPicker}))}),{loadableGenerated:{webpack:function(){return[30786]}}}),Y=function(e){var t=e.attributes,n=e.element,s=e.children,r=(0,P.vt)(),o=(0,P.UE)();return(0,a.jsxs)("span",(0,F.Z)((0,A.Z)({},t),{contentEditable:!1,children:[(0,a.jsx)("img",{alt:n.alt,src:n.src,title:n.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(r&&o?"0 0 0 3px #B4D5FF":"none")}}),s]}))},J=function(e){var t,n;if(H.xv.isText(e))return e.text;0===e.children.length?t=[{text:""}]:t=null===(n=e.children)||void 0===n?void 0:n.map((function(e){return J(e)})).join("");switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},z=function(e){if(H.xv.isText(e))return e.text.length;if("image"===e.type)return 5;var t=0;return e.children.forEach((function(e){t+=z(e)})),t},X=function(e){var t=e.defaultText,n=(0,r.useState)(!1),s=n[0],o=n[1],c=(0,r.useState)(null===t||void 0===t?void 0:t.length),l=c[0],u=c[1],d=(0,x.sJ)(B.Gt),h=(0,r.useMemo)((function(){return(0,P.BU)(function(e){var t=e.isVoid;return e.isVoid=function(e){return"image"===e.type||t(e)},e.isInline=function(e){return"image"===e.type},e}((0,H.Jh)()))}),[]),m=[{type:"paragraph",children:[{text:t||""}]}],p=function(){if(d){var e=J(h);d.send({type:i.C.CHAT,body:e}),H.YR.delete(h,{at:{anchor:H.ML.start(h,[]),focus:H.ML.end(h,[])}}),u(0)}else console.log("websocketService is not defined")};return(0,a.jsx)("div",{className:G().root,children:(0,a.jsxs)("div",{className:g()(G().inputWrap,l>=300&&G().maxCharacters),children:[(0,a.jsxs)(P.mH,{editor:h,value:m,children:[(0,a.jsx)(P.CX,{onKeyDown:function(e){var t=z(h)+1;if("Enter"===e.key)return e.preventDefault(),void p();"Backspace"!==e.key?(t+1>300&&e.preventDefault(),u(t+1)):u(t-1)},onPaste:function(e){var t=e.clipboardData.getData("text/plain").length;l+t>300&&e.preventDefault()},renderElement:function(e){return"image"===e.element.type?(0,a.jsx)(Y,(0,A.Z)({},e)):(0,a.jsx)("p",(0,A.Z)({},e))},placeholder:"Chat message goes here...",style:{width:"100%"},autoFocus:!0}),(0,a.jsx)(L.Z,{content:(0,a.jsx)(V,{onEmojiSelect:function(e){P.F3.focus(h),H.YR.insertText(h,e)},onCustomEmojiSelect:function(e,t){P.F3.focus(h),function(e,t){if(e){var n=h.selection,a=function(e,t,n){return{type:"image",alt:e,src:t,name:n,children:[{text:""}]}}(t,e,t);if(H.YR.insertNodes(h,a,{select:!0}),n){var s,r=(0,I.Z)(H.ML.parent(h,null===(s=n.focus)||void 0===s?void 0:s.path),2),o=r[0],i=r[1];h.isVoid(o)||H.NB.string(o).length?H.YR.insertNodes(h,a,{at:H.y$.next(i),select:!0}):(H.YR.insertNodes(h,a,{at:i,select:!0}),H.ML.normalize(h,{force:!0}))}else H.YR.insertNodes(h,a,{select:!0})}}(t,e)}}),trigger:"click",onOpenChange:function(e){return o(e)},open:s})]}),(0,a.jsxs)("div",{style:{display:"flex",paddingLeft:"5px"},children:[(0,a.jsx)("button",{type:"button",className:G().emojiButton,title:"Emoji picker button",onClick:function(){return o(!s)},children:(0,a.jsx)(R.Z,{})}),(0,a.jsx)("button",{type:"button",className:G().sendButton,title:"Send message Button",onClick:p,children:(0,a.jsx)(Z.Z,{})})]})]})})},q=n(93174),K=n.n(q);function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t12e4)&&a===(null===s||void 0===s?void 0:s.user.id)}function me(e){var t=e.user.scopes;return!(!t||0===t.length)&&t.includes("MODERATOR")}var ge=function(e){var t=e.messages,n=e.usernameToHighlight,c=e.chatUserId,u=e.isModerator,d=e.showInput,h=e.height,m=(0,r.useState)(!1),g=m[0],p=m[1],f=(0,r.useRef)(null),x=function(e,s){switch(s.type){case i.C.CHAT:var r,d,h;return(0,a.jsx)(U,{message:s,showModeratorMenu:u,highlightString:n,sentBySelf:(null===(r=s.user)||void 0===r?void 0:r.id)===c,sameUserAsLast:he(t,e),isAuthorModerator:null===(d=s.user.scopes)||void 0===d?void 0:d.includes("MODERATOR"),isAuthorAuthenticated:null===(h=s.user)||void 0===h?void 0:h.authenticated},s.id);case i.C.NAME_CHANGE:return function(e){var t=e.oldName,n=e.user,s=n.displayName,r=n.displayColor,i="var(--theme-color-users-".concat(r,")");return(0,a.jsxs)("div",{className:l().nameChangeView,children:[(0,a.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,a.jsx)(o.Z,{})}),(0,a.jsxs)("div",{className:l().nameChangeText,children:[(0,a.jsx)("span",{style:{color:i},children:t}),(0,a.jsx)("span",{className:l().plain,children:" is now known as "}),(0,a.jsx)("span",{style:{color:i},children:s})]})]})}(s);case i.C.CONNECTED_USER_INFO:return function(e){if(!me(e))return(0,a.jsx)("div",{style:{width:"1px",height:"1px"}});return(0,a.jsx)(ee,{})}(s);case i.C.USER_JOINED:return function(e){var t=e.user,n=t.displayName,s=t.displayColor,r=me(e);return(0,a.jsx)(ce,{displayName:n,userColor:s,isAuthorModerator:r})}(s);case i.C.SYSTEM:return(0,a.jsx)(se,{message:s,highlightString:n},s.id);default:return null}},_=(0,r.useMemo)((function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.OO,{style:{height:h},className:l().virtuoso,ref:f,initialTopMostItemIndex:t.length-1,data:t,itemContent:function(e,t){return x(e,t)},followOutput:"auto",alignToBottom:!0,atBottomStateChange:function(e){return p(e)}}),!g&&(0,a.jsx)(de,{chatContainerRef:f,messages:t})]})}),[t,n,c,u,g]);return(0,a.jsxs)("div",{className:l().chatContainer,children:[_,d&&(0,a.jsx)(X,{})]})};ge.defaultProps={showInput:!0,height:"auto"}},13545:function(e){e.exports={chatHeader:"ChatContainer_chatHeader__EJsYI",toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",toBottomBtn:"ChatContainer_toBottomBtn__453AG",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19",chatContainer:"ChatContainer_chatContainer__O2lYN",virtuoso:"ChatContainer_virtuoso__OS9Kz"}},83066:function(e){e.exports={root:"ChatJoinMessage_root__vuVXa"}},93174:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},31681:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},25882:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrap:"ChatTextField_inputWrap__1mAjD",maxCharacters:"ChatTextField_maxCharacters__yGT4s",emojiButton:"ChatTextField_emojiButton__ON_Cu",sendButton:"ChatTextField_sendButton__MOmD4"}},79010:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},78583:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/8782-f3854e33766b9b1f.js b/static/web/_next/static/chunks/8782-f3854e33766b9b1f.js new file mode 100644 index 000000000..4f0919600 --- /dev/null +++ b/static/web/_next/static/chunks/8782-f3854e33766b9b1f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8782],{25413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}},6594: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:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}},77307: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:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},54067:function(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(n=r(45799))&&n.__esModule?n:{default:n};t.default=a,e.exports=a},68229:function(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(n=r(7500))&&n.__esModule?n:{default:n};t.default=a,e.exports=a},67638:function(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(n=r(86994))&&n.__esModule?n:{default:n};t.default=a,e.exports=a},94149:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(1413),a=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},c=r(42135),i=function(e,t){return a.createElement(c.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};i.displayName="LockOutlined";var l=a.forwardRef(i)},87547:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(1413),a=r(67294),o={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"},c=r(42135),i=function(e,t){return a.createElement(c.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};i.displayName="UserOutlined";var l=a.forwardRef(i)},45799:function(e,t,r){var n=r(75263),a=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(42122)),c=n(r(67294)),i=a(r(25413)),l=a(r(92074)),s=function(e,t){return c.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};s.displayName="BarsOutlined";var u=c.forwardRef(s);t.default=u},7500:function(e,t,r){var n=r(75263),a=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(42122)),c=n(r(67294)),i=a(r(6594)),l=a(r(92074)),s=function(e,t){return c.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};s.displayName="LeftOutlined";var u=c.forwardRef(s);t.default=u},86994:function(e,t,r){var n=r(75263),a=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r(42122)),c=n(r(67294)),i=a(r(77307)),l=a(r(92074)),s=function(e,t){return c.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};s.displayName="RightOutlined";var u=c.forwardRef(s);t.default=u},24093:function(e,t,r){r.d(t,{C:function(){return N}});var n=r(87462),a=r(4942),o=r(71002),c=r(97685),i=r(94184),l=r.n(i),s=r(48555),u=r(42550),f=r(67294),d=r(53124),v=r(25378),p=r(24308),m=f.createContext("default"),g=function(e){var t=e.children,r=e.size;return f.createElement(m.Consumer,null,(function(e){return f.createElement(m.Provider,{value:r||e},t)}))},h=m,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a0){var _=g[0]/2;R.paddingLeft=_,R.paddingRight=_}if(g&&g[1]>0&&!y){var L=g[1]/2;R.paddingTop=L,R.paddingBottom=L}return P&&(R.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(P),!1!==h||R.minWidth||(R.minWidth=0)),l.createElement("div",(0,a.Z)({},k,{style:(0,a.Z)((0,a.Z)({},R),S),className:M,ref:t}),N)}))},99134:function(e,t,r){var n=(0,r(67294).createContext)({});t.Z=n},79216:function(e,t,r){r.d(t,{Z:function(){return ie}});var n=r(87462),a=r(71002),o=r(99611),c=r(1413),i=r(4942),l=r(97685),s=r(45987),u=r(67294),f=r(94184),d=r.n(f),v=r(27678),p=r(21770),m=r(95173),g=r(64019),h=r(15105),y=r(80334),w=r(75164);function Z(e,t,r,n){var a=t+r,o=(r-n)/2;if(r>n){if(t>0)return(0,i.Z)({},e,o);if(t<0&&an)return(0,i.Z)({},e,t<0?o:-o);return{}}var x=["visible","onVisibleChange","getContainer","current","countRender"],C=u.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),b=C.Provider,E=function(e){var t=e.previewPrefixCls,r=void 0===t?"rc-image-preview":t,o=e.children,c=e.icons,i=void 0===c?{}:c,f=e.preview,d="object"===(0,a.Z)(f)?f:{},v=d.visible,m=void 0===v?void 0:v,g=d.onVisibleChange,h=void 0===g?void 0:g,y=d.getContainer,w=void 0===y?void 0:y,Z=d.current,C=void 0===Z?0:Z,E=d.countRender,O=void 0===E?void 0:E,N=(0,s.Z)(d,x),P=(0,u.useState)(new Map),S=(0,l.Z)(P,2),k=S[0],z=S[1],j=(0,u.useState)(),R=(0,l.Z)(j,2),_=R[0],L=R[1],H=(0,p.Z)(!!m,{value:m,onChange:h}),I=(0,l.Z)(H,2),V=I[0],T=I[1],B=(0,u.useState)(null),A=(0,l.Z)(B,2),W=A[0],F=A[1],G=void 0!==m,D=Array.from(k.keys())[C],X=new Map(Array.from(k).filter((function(e){return!!(0,l.Z)(e,2)[1].canPreview})).map((function(e){var t=(0,l.Z)(e,2);return[t[0],t[1].url]})));return u.useEffect((function(){L(D)}),[D]),u.useEffect((function(){!V&&G&&L(D)}),[D,G,V]),u.createElement(b,{value:{isPreviewGroup:!0,previewUrls:X,setPreviewUrls:z,current:_,setCurrent:L,setShowPreview:T,setMousePosition:F,registerImage:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=function(){z((function(t){var r=new Map(t);return r.delete(e)?r:t}))};return z((function(n){return new Map(n).set(e,{url:t,canPreview:r})})),n}}},o,u.createElement(M,(0,n.Z)({"aria-hidden":!V,visible:V,prefixCls:r,onClose:function(e){e.stopPropagation(),T(!1),F(null)},mousePosition:W,src:X.get(_),icons:i,getContainer:w,countRender:O},N)))},O=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","countRender"],N=u.useState,P=u.useEffect,S=u.useCallback,k=u.useRef,z=u.useContext,j={x:0,y:0},M=function(e){var t,r=e.prefixCls,a=e.src,o=e.alt,f=e.onClose,p=(e.afterClose,e.visible),x=e.icons,b=void 0===x?{}:x,E=e.rootClassName,M=e.countRender,R=(0,s.Z)(e,O),_=b.rotateLeft,L=b.rotateRight,H=b.zoomIn,I=b.zoomOut,V=b.close,T=b.left,B=b.right,A=N(1),W=(0,l.Z)(A,2),F=W[0],G=W[1],D=N(0),X=(0,l.Z)(D,2),Y=X[0],U=X[1],K=function(e){var t=u.useRef(null),r=u.useState(e),n=(0,l.Z)(r,2),a=n[0],o=n[1],i=u.useRef([]);return u.useEffect((function(){return function(){return t.current&&w.Z.cancel(t.current)}}),[]),[a,function(e){null===t.current&&(i.current=[],t.current=(0,w.Z)((function(){o((function(e){var r=e;return i.current.forEach((function(e){r=(0,c.Z)((0,c.Z)({},r),e)})),t.current=null,r}))}))),i.current.push(e)}]}(j),Q=(0,l.Z)(K,2),$=Q[0],q=Q[1],J=k(),ee=k({originX:0,originY:0,deltaX:0,deltaY:0}),te=N(!1),re=(0,l.Z)(te,2),ne=re[0],ae=re[1],oe=z(C),ce=oe.previewUrls,ie=oe.current,le=oe.isPreviewGroup,se=oe.setCurrent,ue=ce.size,fe=Array.from(ce.keys()),de=fe.indexOf(ie),ve=le?ce.get(ie):a,pe=le&&ue>1,me=N({wheelDirection:0}),ge=(0,l.Z)(me,2),he=ge[0],ye=ge[1],we=function(){G((function(e){return e+1})),q(j)},Ze=function(){F>1&&G((function(e){return e-1})),q(j)},xe=d()((0,i.Z)({},"".concat(r,"-moving"),ne)),Ce="".concat(r,"-operations-operation"),be="".concat(r,"-operations-icon"),Ee=[{icon:V,onClick:f,type:"close"},{icon:H,onClick:we,type:"zoomIn"},{icon:I,onClick:Ze,type:"zoomOut",disabled:1===F},{icon:L,onClick:function(){U((function(e){return e+90}))},type:"rotateRight"},{icon:_,onClick:function(){U((function(e){return e-90}))},type:"rotateLeft"}],Oe=function(){if(p&&ne){var e=J.current.offsetWidth*F,t=J.current.offsetHeight*F,r=J.current.getBoundingClientRect(),n=r.left,a=r.top,o=Y%180!==0;ae(!1);var i=function(e,t,r,n){var a=(0,v.g1)(),o=a.width,i=a.height,l=null;return e<=o&&t<=i?l={x:0,y:0}:(e>o||t>i)&&(l=(0,c.Z)((0,c.Z)({},Z("x",r,e,o)),Z("y",n,t,i))),l}(o?t:e,o?e:t,n,a);i&&q((0,c.Z)({},i))}},Ne=function(e){p&&ne&&q({x:e.pageX-ee.current.deltaX,y:e.pageY-ee.current.deltaY})},Pe=function(e){if(p){e.preventDefault();var t=e.deltaY;ye({wheelDirection:t})}},Se=S((function(e){p&&pe&&(e.preventDefault(),e.keyCode===h.Z.LEFT?de>0&&se(fe[de-1]):e.keyCode===h.Z.RIGHT&&de0?Ze():e<0&&we()}),[he]),P((function(){var e,t,r=(0,g.Z)(window,"mouseup",Oe,!1),n=(0,g.Z)(window,"mousemove",Ne,!1),a=(0,g.Z)(window,"wheel",Pe,{passive:!1}),o=(0,g.Z)(window,"keydown",Se,!1);try{window.top!==window.self&&(e=(0,g.Z)(window.top,"mouseup",Oe,!1),t=(0,g.Z)(window.top,"mousemove",Ne,!1))}catch(c){(0,y.Kp)(!1,"[rc-image] ".concat(c))}return function(){r.remove(),n.remove(),a.remove(),o.remove(),e&&e.remove(),t&&t.remove()}}),[p,ne,Se]),u.createElement(m.Z,(0,n.Z)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:r,onClose:f,afterClose:function(){G(1),U(0),q(j)},visible:p,wrapClassName:xe,rootClassName:E},R),u.createElement("ul",{className:"".concat(r,"-operations")},pe&&u.createElement("li",{className:"".concat(r,"-operations-progress")},null!==(t=null===M||void 0===M?void 0:M(de+1,ue))&&void 0!==t?t:"".concat(de+1," / ").concat(ue)),Ee.map((function(e){var t=e.icon,n=e.onClick,a=e.type,o=e.disabled;return u.createElement("li",{className:d()(Ce,(0,i.Z)({},"".concat(r,"-operations-operation-disabled"),!!o)),onClick:n,key:a},u.isValidElement(t)?u.cloneElement(t,{className:be}):t)}))),u.createElement("div",{className:"".concat(r,"-img-wrapper"),style:{transform:"translate3d(".concat($.x,"px, ").concat($.y,"px, 0)")}},u.createElement("img",{width:e.width,height:e.height,onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),ee.current.deltaX=e.pageX-$.x,ee.current.deltaY=e.pageY-$.y,ee.current.originX=$.x,ee.current.originY=$.y,ae(!0))},onDoubleClick:function(){p&&(1!==F&&G(1),$.x===j.x&&$.y===j.y||q(j))},ref:J,className:"".concat(r,"-img"),src:ve,alt:o,style:{transform:"scale3d(".concat(F,", ").concat(F,", 1) rotate(").concat(Y,"deg)")}})),pe&&u.createElement("div",{className:d()("".concat(r,"-switch-left"),(0,i.Z)({},"".concat(r,"-switch-left-disabled"),0===de)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de>0&&se(fe[de-1])}},T),pe&&u.createElement("div",{className:d()("".concat(r,"-switch-right"),(0,i.Z)({},"".concat(r,"-switch-right-disabled"),de===ue-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de0?_[0]/-2:void 0,V=null!=_[1]&&_[1]>0?_[1]/-2:void 0;if(I&&(H.marginLeft=I,H.marginRight=I),j){var T=(0,c.Z)(_,2);H.rowGap=T[1]}else V&&(H.marginTop=V,H.marginBottom=V);var B=(0,c.Z)(_,2),A=B[0],W=B[1],F=s.useMemo((function(){return{gutter:[A,W],wrap:C,supportFlexGap:j}}),[A,W,C,j]);return s.createElement(p.Z.Provider,{value:F},s.createElement("div",(0,n.Z)({},b,{className:L,style:(0,n.Z)((0,n.Z)({},H),y),ref:t}),w))}))},63406:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};t.default=r},87412:function(e,t,r){var n=r(75263).default,a=r(64836).default;t.ZP=void 0;var o=a(r(38416)),c=a(r(10434)),i=a(r(27424)),l=a(r(54067)),s=a(r(68229)),u=a(r(67638)),f=a(r(94184)),d=a(r(18475)),v=n(r(67294)),p=r(31929),m=a(r(63406)),g=r(62704),h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}();var x=v.forwardRef((function(e,t){var r=e.prefixCls,n=e.className,a=e.trigger,x=e.children,C=e.defaultCollapsed,b=void 0!==C&&C,E=e.theme,O=void 0===E?"dark":E,N=e.style,P=void 0===N?{}:N,S=e.collapsible,k=void 0!==S&&S,z=e.reverseArrow,j=void 0!==z&&z,M=e.width,R=void 0===M?200:M,_=e.collapsedWidth,L=void 0===_?80:_,H=e.zeroWidthTriggerStyle,I=e.breakpoint,V=e.onCollapse,T=e.onBreakpoint,B=h(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),A=(0,v.useContext)(g.LayoutContext).siderHook,W=(0,v.useState)("collapsed"in B?B.collapsed:b),F=(0,i.default)(W,2),G=F[0],D=F[1],X=(0,v.useState)(!1),Y=(0,i.default)(X,2),U=Y[0],K=Y[1];(0,v.useEffect)((function(){"collapsed"in B&&D(B.collapsed)}),[B.collapsed]);var Q=function(e,t){"collapsed"in B||D(e),null===V||void 0===V||V(e,t)},$=(0,v.useRef)();$.current=function(e){K(e.matches),null===T||void 0===T||T(e.matches),G!==e.matches&&Q(e.matches,"responsive")},(0,v.useEffect)((function(){function e(e){return $.current(e)}var t;if("undefined"!==typeof window){var r=window.matchMedia;if(r&&I&&I in y){t=r("(max-width: ".concat(y[I],")"));try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(n){null===t||void 0===t||t.removeListener(e)}}}),[I]),(0,v.useEffect)((function(){var e=Z("ant-sider-");return A.addSider(e),function(){return A.removeSider(e)}}),[]);var q=function(){Q(!G,"clickTrigger")},J=(0,v.useContext)(p.ConfigContext).getPrefixCls,ee=v.useMemo((function(){return{siderCollapsed:G}}),[G]);return v.createElement(w.Provider,{value:ee},function(){var e,i=J("layout-sider",r),p=(0,d.default)(B,["collapsed"]),g=G?L:R,h=(0,m.default)(g)?"".concat(g,"px"):String(g),y=0===parseFloat(String(L||0))?v.createElement("span",{onClick:q,className:(0,f.default)("".concat(i,"-zero-width-trigger"),"".concat(i,"-zero-width-trigger-").concat(j?"right":"left")),style:H},a||v.createElement(l.default,null)):null,w={expanded:j?v.createElement(u.default,null):v.createElement(s.default,null),collapsed:j?v.createElement(s.default,null):v.createElement(u.default,null)}[G?"collapsed":"expanded"],Z=null!==a?y||v.createElement("div",{className:"".concat(i,"-trigger"),onClick:q,style:{width:h}},a||w):null,C=(0,c.default)((0,c.default)({},P),{flex:"0 0 ".concat(h),maxWidth:h,minWidth:h,width:h}),b=(0,f.default)(i,"".concat(i,"-").concat(O),(e={},(0,o.default)(e,"".concat(i,"-collapsed"),!!G),(0,o.default)(e,"".concat(i,"-has-trigger"),k&&null!==a&&!y),(0,o.default)(e,"".concat(i,"-below"),!!U),(0,o.default)(e,"".concat(i,"-zero-width"),0===parseFloat(h)),e),n);return v.createElement("aside",(0,c.default)({className:b},p,{style:C,ref:t}),v.createElement("div",{className:"".concat(i,"-children")},x),k||U&&y?Z:null)}())}));t.ZP=x},62704:function(e,t,r){var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LayoutContext=t.Header=t.Footer=t.Content=void 0;var o=a(r(861)),c=a(r(38416)),i=a(r(27424)),l=a(r(10434)),s=a(r(94184)),u=n(r(67294)),f=r(31929),d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a0),(0,c.default)(r,"".concat(h,"-rtl"),"rtl"===n),r),y),E=u.useMemo((function(){return{siderHook:{addSider:function(e){g((function(t){return[].concat((0,o.default)(t),[e])}))},removeSider:function(e){g((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return u.createElement(v.Provider,{value:E},u.createElement(x,(0,l.default)({ref:t,className:b},C),w))})),h=p({suffixCls:"layout",tagName:"section",displayName:"Layout"})(g),y=p({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(m);t.Header=y;var w=p({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(m);t.Footer=w;var Z=p({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(m);t.Content=Z;var x=h;t.default=x},82670:function(e,t,r){function n(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}r.d(t,{Z:function(){return n}})}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/9358-4680e4896298cbd2.js b/static/web/_next/static/chunks/9358-4680e4896298cbd2.js deleted file mode 100644 index 027eabc4e..000000000 --- a/static/web/_next/static/chunks/9358-4680e4896298cbd2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9358],{25413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}},6594: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:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}},77307: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:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},54067:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(45799))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},68229:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(7500))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},67638:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(86994))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},94149:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},i=n(42135),l=function(e,t){return a.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};l.displayName="LockOutlined";var c=a.forwardRef(l)},87547:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(1413),a=n(67294),o={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"},i=n(42135),l=function(e,t){return a.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};l.displayName="UserOutlined";var c=a.forwardRef(l)},45799:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),i=r(n(67294)),l=a(n(25413)),c=a(n(92074)),u=function(e,t){return i.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:l.default}))};u.displayName="BarsOutlined";var s=i.forwardRef(u);t.default=s},7500:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),i=r(n(67294)),l=a(n(6594)),c=a(n(92074)),u=function(e,t){return i.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:l.default}))};u.displayName="LeftOutlined";var s=i.forwardRef(u);t.default=s},86994:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),i=r(n(67294)),l=a(n(77307)),c=a(n(92074)),u=function(e,t){return i.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:l.default}))};u.displayName="RightOutlined";var s=i.forwardRef(u);t.default=s},79216:function(e,t,n){n.d(t,{Z:function(){return le}});var r=n(87462),a=n(71002),o=n(99611),i=n(1413),l=n(4942),c=n(97685),u=n(45987),s=n(67294),f=n(94184),d=n.n(f),v=n(27678),m=n(21770),p=n(95173),g=n(64019),h=n(15105),w=n(80334),y=n(75164);function C(e,t,n,r){var a=t+n,o=(n-r)/2;if(n>r){if(t>0)return(0,l.Z)({},e,o);if(t<0&&ar)return(0,l.Z)({},e,t<0?o:-o);return{}}var x=["visible","onVisibleChange","getContainer","current","countRender"],Z=s.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),b=Z.Provider,E=function(e){var t=e.previewPrefixCls,n=void 0===t?"rc-image-preview":t,o=e.children,i=e.icons,l=void 0===i?{}:i,f=e.preview,d="object"===(0,a.Z)(f)?f:{},v=d.visible,p=void 0===v?void 0:v,g=d.onVisibleChange,h=void 0===g?void 0:g,w=d.getContainer,y=void 0===w?void 0:w,C=d.current,Z=void 0===C?0:C,E=d.countRender,N=void 0===E?void 0:E,P=(0,u.Z)(d,x),O=(0,s.useState)(new Map),k=(0,c.Z)(O,2),M=k[0],S=k[1],z=(0,s.useState)(),R=(0,c.Z)(z,2),j=R[0],L=R[1],H=(0,m.Z)(!!p,{value:p,onChange:h}),I=(0,c.Z)(H,2),V=I[0],B=I[1],T=(0,s.useState)(null),D=(0,c.Z)(T,2),F=D[0],W=D[1],Y=void 0!==p,A=Array.from(M.keys())[Z],X=new Map(Array.from(M).filter((function(e){return!!(0,c.Z)(e,2)[1].canPreview})).map((function(e){var t=(0,c.Z)(e,2);return[t[0],t[1].url]})));return s.useEffect((function(){L(A)}),[A]),s.useEffect((function(){!V&&Y&&L(A)}),[A,Y,V]),s.createElement(b,{value:{isPreviewGroup:!0,previewUrls:X,setPreviewUrls:S,current:j,setCurrent:L,setShowPreview:B,setMousePosition:W,registerImage:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(){S((function(t){var n=new Map(t);return n.delete(e)?n:t}))};return S((function(r){return new Map(r).set(e,{url:t,canPreview:n})})),r}}},o,s.createElement(_,(0,r.Z)({"aria-hidden":!V,visible:V,prefixCls:n,onClose:function(e){e.stopPropagation(),B(!1),W(null)},mousePosition:F,src:X.get(j),icons:l,getContainer:y,countRender:N},P)))},N=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","countRender"],P=s.useState,O=s.useEffect,k=s.useCallback,M=s.useRef,S=s.useContext,z={x:0,y:0},_=function(e){var t,n=e.prefixCls,a=e.src,o=e.alt,f=e.onClose,m=(e.afterClose,e.visible),x=e.icons,b=void 0===x?{}:x,E=e.rootClassName,_=e.countRender,R=(0,u.Z)(e,N),j=b.rotateLeft,L=b.rotateRight,H=b.zoomIn,I=b.zoomOut,V=b.close,B=b.left,T=b.right,D=P(1),F=(0,c.Z)(D,2),W=F[0],Y=F[1],A=P(0),X=(0,c.Z)(A,2),G=X[0],U=X[1],K=function(e){var t=s.useRef(null),n=s.useState(e),r=(0,c.Z)(n,2),a=r[0],o=r[1],l=s.useRef([]);return s.useEffect((function(){return function(){return t.current&&y.Z.cancel(t.current)}}),[]),[a,function(e){null===t.current&&(l.current=[],t.current=(0,y.Z)((function(){o((function(e){var n=e;return l.current.forEach((function(e){n=(0,i.Z)((0,i.Z)({},n),e)})),t.current=null,n}))}))),l.current.push(e)}]}(z),q=(0,c.Z)(K,2),J=q[0],Q=q[1],$=M(),ee=M({originX:0,originY:0,deltaX:0,deltaY:0}),te=P(!1),ne=(0,c.Z)(te,2),re=ne[0],ae=ne[1],oe=S(Z),ie=oe.previewUrls,le=oe.current,ce=oe.isPreviewGroup,ue=oe.setCurrent,se=ie.size,fe=Array.from(ie.keys()),de=fe.indexOf(le),ve=ce?ie.get(le):a,me=ce&&se>1,pe=P({wheelDirection:0}),ge=(0,c.Z)(pe,2),he=ge[0],we=ge[1],ye=function(){Y((function(e){return e+1})),Q(z)},Ce=function(){W>1&&Y((function(e){return e-1})),Q(z)},xe=d()((0,l.Z)({},"".concat(n,"-moving"),re)),Ze="".concat(n,"-operations-operation"),be="".concat(n,"-operations-icon"),Ee=[{icon:V,onClick:f,type:"close"},{icon:H,onClick:ye,type:"zoomIn"},{icon:I,onClick:Ce,type:"zoomOut",disabled:1===W},{icon:L,onClick:function(){U((function(e){return e+90}))},type:"rotateRight"},{icon:j,onClick:function(){U((function(e){return e-90}))},type:"rotateLeft"}],Ne=function(){if(m&&re){var e=$.current.offsetWidth*W,t=$.current.offsetHeight*W,n=$.current.getBoundingClientRect(),r=n.left,a=n.top,o=G%180!==0;ae(!1);var l=function(e,t,n,r){var a=(0,v.g1)(),o=a.width,l=a.height,c=null;return e<=o&&t<=l?c={x:0,y:0}:(e>o||t>l)&&(c=(0,i.Z)((0,i.Z)({},C("x",n,e,o)),C("y",r,t,l))),c}(o?t:e,o?e:t,r,a);l&&Q((0,i.Z)({},l))}},Pe=function(e){m&&re&&Q({x:e.pageX-ee.current.deltaX,y:e.pageY-ee.current.deltaY})},Oe=function(e){if(m){e.preventDefault();var t=e.deltaY;we({wheelDirection:t})}},ke=k((function(e){m&&me&&(e.preventDefault(),e.keyCode===h.Z.LEFT?de>0&&ue(fe[de-1]):e.keyCode===h.Z.RIGHT&&de0?Ce():e<0&&ye()}),[he]),O((function(){var e,t,n=(0,g.Z)(window,"mouseup",Ne,!1),r=(0,g.Z)(window,"mousemove",Pe,!1),a=(0,g.Z)(window,"wheel",Oe,{passive:!1}),o=(0,g.Z)(window,"keydown",ke,!1);try{window.top!==window.self&&(e=(0,g.Z)(window.top,"mouseup",Ne,!1),t=(0,g.Z)(window.top,"mousemove",Pe,!1))}catch(i){(0,w.Kp)(!1,"[rc-image] ".concat(i))}return function(){n.remove(),r.remove(),a.remove(),o.remove(),e&&e.remove(),t&&t.remove()}}),[m,re,ke]),s.createElement(p.Z,(0,r.Z)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:n,onClose:f,afterClose:function(){Y(1),U(0),Q(z)},visible:m,wrapClassName:xe,rootClassName:E},R),s.createElement("ul",{className:"".concat(n,"-operations")},me&&s.createElement("li",{className:"".concat(n,"-operations-progress")},null!==(t=null===_||void 0===_?void 0:_(de+1,se))&&void 0!==t?t:"".concat(de+1," / ").concat(se)),Ee.map((function(e){var t=e.icon,r=e.onClick,a=e.type,o=e.disabled;return s.createElement("li",{className:d()(Ze,(0,l.Z)({},"".concat(n,"-operations-operation-disabled"),!!o)),onClick:r,key:a},s.isValidElement(t)?s.cloneElement(t,{className:be}):t)}))),s.createElement("div",{className:"".concat(n,"-img-wrapper"),style:{transform:"translate3d(".concat(J.x,"px, ").concat(J.y,"px, 0)")}},s.createElement("img",{width:e.width,height:e.height,onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),ee.current.deltaX=e.pageX-J.x,ee.current.deltaY=e.pageY-J.y,ee.current.originX=J.x,ee.current.originY=J.y,ae(!0))},onDoubleClick:function(){m&&(1!==W&&Y(1),J.x===z.x&&J.y===z.y||Q(z))},ref:$,className:"".concat(n,"-img"),src:ve,alt:o,style:{transform:"scale3d(".concat(W,", ").concat(W,", 1) rotate(").concat(G,"deg)")}})),me&&s.createElement("div",{className:d()("".concat(n,"-switch-left"),(0,l.Z)({},"".concat(n,"-switch-left-disabled"),0===de)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de>0&&ue(fe[de-1])}},B),me&&s.createElement("div",{className:d()("".concat(n,"-switch-right"),(0,l.Z)({},"".concat(n,"-switch-right-disabled"),de===se-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}();var x=v.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,a=e.trigger,x=e.children,Z=e.defaultCollapsed,b=void 0!==Z&&Z,E=e.theme,N=void 0===E?"dark":E,P=e.style,O=void 0===P?{}:P,k=e.collapsible,M=void 0!==k&&k,S=e.reverseArrow,z=void 0!==S&&S,_=e.width,R=void 0===_?200:_,j=e.collapsedWidth,L=void 0===j?80:j,H=e.zeroWidthTriggerStyle,I=e.breakpoint,V=e.onCollapse,B=e.onBreakpoint,T=h(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),D=(0,v.useContext)(g.LayoutContext).siderHook,F=(0,v.useState)("collapsed"in T?T.collapsed:b),W=(0,l.default)(F,2),Y=W[0],A=W[1],X=(0,v.useState)(!1),G=(0,l.default)(X,2),U=G[0],K=G[1];(0,v.useEffect)((function(){"collapsed"in T&&A(T.collapsed)}),[T.collapsed]);var q=function(e,t){"collapsed"in T||A(e),null===V||void 0===V||V(e,t)},J=(0,v.useRef)();J.current=function(e){K(e.matches),null===B||void 0===B||B(e.matches),Y!==e.matches&&q(e.matches,"responsive")},(0,v.useEffect)((function(){function e(e){return J.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&I&&I in w){t=n("(max-width: ".concat(w[I],")"));try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(r){null===t||void 0===t||t.removeListener(e)}}}),[I]),(0,v.useEffect)((function(){var e=C("ant-sider-");return D.addSider(e),function(){return D.removeSider(e)}}),[]);var Q=function(){q(!Y,"clickTrigger")},$=(0,v.useContext)(m.ConfigContext).getPrefixCls,ee=v.useMemo((function(){return{siderCollapsed:Y}}),[Y]);return v.createElement(y.Provider,{value:ee},function(){var e,l=$("layout-sider",n),m=(0,d.default)(T,["collapsed"]),g=Y?L:R,h=(0,p.default)(g)?"".concat(g,"px"):String(g),w=0===parseFloat(String(L||0))?v.createElement("span",{onClick:Q,className:(0,f.default)("".concat(l,"-zero-width-trigger"),"".concat(l,"-zero-width-trigger-").concat(z?"right":"left")),style:H},a||v.createElement(c.default,null)):null,y={expanded:z?v.createElement(s.default,null):v.createElement(u.default,null),collapsed:z?v.createElement(u.default,null):v.createElement(s.default,null)}[Y?"collapsed":"expanded"],C=null!==a?w||v.createElement("div",{className:"".concat(l,"-trigger"),onClick:Q,style:{width:h}},a||y):null,Z=(0,i.default)((0,i.default)({},O),{flex:"0 0 ".concat(h),maxWidth:h,minWidth:h,width:h}),b=(0,f.default)(l,"".concat(l,"-").concat(N),(e={},(0,o.default)(e,"".concat(l,"-collapsed"),!!Y),(0,o.default)(e,"".concat(l,"-has-trigger"),M&&null!==a&&!w),(0,o.default)(e,"".concat(l,"-below"),!!U),(0,o.default)(e,"".concat(l,"-zero-width"),0===parseFloat(h)),e),r);return v.createElement("aside",(0,i.default)({className:b},m,{style:Z,ref:t}),v.createElement("div",{className:"".concat(l,"-children")},x),M||U&&w?C:null)}())}));t.ZP=x},62704:function(e,t,n){var r=n(75263).default,a=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LayoutContext=t.Header=t.Footer=t.Content=void 0;var o=a(n(861)),i=a(n(38416)),l=a(n(27424)),c=a(n(10434)),u=a(n(94184)),s=r(n(67294)),f=n(31929),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),(0,i.default)(n,"".concat(h,"-rtl"),"rtl"===r),n),w),E=s.useMemo((function(){return{siderHook:{addSider:function(e){g((function(t){return[].concat((0,o.default)(t),[e])}))},removeSider:function(e){g((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return s.createElement(v.Provider,{value:E},s.createElement(x,(0,c.default)({ref:t,className:b},Z),y))})),h=m({suffixCls:"layout",tagName:"section",displayName:"Layout"})(g),w=m({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(p);t.Header=w;var y=m({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(p);t.Footer=y;var C=m({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(p);t.Content=C;var x=h;t.default=x},27678:function(e,t,n){n.d(t,{g1:function(){return r},os:function(){return a}});function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function a(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}},82670:function(e,t,n){function r(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n.d(t,{Z:function(){return r}})}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin-3176829e7059317f.js b/static/web/_next/static/chunks/pages/admin-4b93901c94acbbd2.js similarity index 98% rename from static/web/_next/static/chunks/pages/admin-3176829e7059317f.js rename to static/web/_next/static/chunks/pages/admin-4b93901c94acbbd2.js index d79395896..df0ff00ae 100644 --- a/static/web/_next/static/chunks/pages/admin-3176829e7059317f.js +++ b/static/web/_next/static/chunks/pages/admin-4b93901c94acbbd2.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6964],{64830:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin",function(){return t(47073)}])},38856:function(e,n,t){"use strict";t.d(n,{o:function(){return h}});var s=t(85893),r=(t(67294),t(84485)),i=t(20550),a=t(93626),o=t(53731),l=t(58091),c=r.Z.Title;function d(e,n){var t="black";return"warning"===n.level?t="orange":"error"===n.level&&(t="red"),(0,s.jsx)(i.Z,{color:t,children:e})}function u(e){return(0,s.jsx)(o.Z,{children:e})}var h=function(e){var n=e.logs,t=e.pageSize;if(!(null===n||void 0===n?void 0:n.length))return null;var r=[{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,s.jsxs)("div",{className:"logs-section",children:[(0,s.jsx)(c,{children:"Logs"}),(0,s.jsx)(a.Z,{size:"middle",dataSource:n,columns:r,rowKey:function(e){return e.time},pagination:{pageSize:t||20}})]})}},71630:function(e,n,t){"use strict";t.d(n,{j:function(){return v}});var s=t(85893),r=t(8751),i=t(11475),a=t(25968),o=t(6226),l=t(74763),c=t(84485),d=t(14670),u=t(71577),h=t(41664),m=t.n(h),x=t(67294),f=t(35159),v=function(e){var n=e.showTroubleshootButton,t=(0,x.useContext)(f.aC).health;if(!t)return null;var h=t.healthy,v=t.healthPercentage,j=t.message,p=t.representation,g="#3f8600",w="info";return v<80?(g="#cf000f",w="error"):v<30&&(g="#f0ad4e",w="error"),(0,s.jsxs)("div",{children:[(0,s.jsxs)(a.Z,{gutter:8,children:[(0,s.jsx)(o.Z,{span:12,children:(0,s.jsx)(l.Z,{title:"Healthy Stream",value:h?"Yes":"No",valueStyle:{color:g},prefix:h?(0,s.jsx)(r.Z,{}):(0,s.jsx)(i.Z,{})})}),(0,s.jsx)(o.Z,{span:12,children:(0,s.jsx)(l.Z,{title:"Playback Health",value:v,valueStyle:{color:g},suffix:"%"})})]}),(0,s.jsx)(a.Z,{style:{display:p<100&&0!==p?"grid":"none"},children:(0,s.jsxs)(c.Z.Text,{type:"secondary",style:{textAlign:"center",fontSize:"0.7em",opacity:"0.3"},children:["Stream health represents ",p,"% of all known players. Other player status is unknown."]})}),(0,s.jsx)(a.Z,{gutter:16,style:{width:"100%",display:j?"grid":"none",marginTop:"10px"},children:(0,s.jsx)(o.Z,{span:24,children:(0,s.jsx)(d.Z,{message:j,type:w,showIcon:!0,action:n&&(0,s.jsx)(m(),{passHref:!0,href:"/stream-health",children:(0,s.jsx)(u.Z,{size:"small",type:"text",style:{color:"black"},children:"TROUBLESHOOT"})})})})})]})};v.defaultProps={showTroubleshootButton:!0}},47073:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return V}});var s=t(47568),r=t(70655),i=t(85893),a=t(67294),o=t(26303),l=t(74763),c=t(59652),d=t(25968),u=t(6226),h=t(24019),m=t(87547),x=t(19642),f=t(45938),v=t(35159),j=t(38856),p=t(66567),g=t(63179),w=t(78346),Z=t(27482),y=t(84485),b=t(41664),k=t.n(b),N=t(60113),S=t(26042),_=t(69396),C=t(54907),T=t(58091),O=t(58827),E=C.Z.Panel,D=y.Z.Title,P=y.Z.Link,U=function(e){var n=e.title,t=e.url,s=e.content_html,r=e.date_published,a=new Date(r),o=(0,T.Z)(a,"MMM dd, yyyy, HH:mm");return(0,i.jsx)("article",{children:(0,i.jsx)(C.Z,{children:(0,i.jsxs)(E,{header:n,children:[(0,i.jsxs)("p",{className:"timestamp",children:[o," (",(0,i.jsx)(P,{href:"".concat("https://owncast.online").concat(t),target:"_blank",rel:"noopener noreferrer",children:"Link"}),")"]}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})]},t)})})},I=function(){var e=(0,a.useState)([]),n=e[0],t=e[1],l=(0,a.useState)(!0),c=l[0],d=l[1],u=function(){var e=(0,s.Z)((function(){var e,n;return(0,r.__generator)(this,(function(s){switch(s.label){case 0:d(!1),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,O.kg)("https://owncast.online/news/index.json")];case 2:return(null===(e=s.sent())||void 0===e?void 0:e.items.length)>0&&t(e.items),[3,4];case 3:return n=s.sent(),console.log("==== error",n),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){u()}),[]);var h=c?(0,i.jsx)(o.Z,{loading:!0,active:!0}):null,m=c||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)(D,{level:2,children:"News & Updates from Owncast"}),h,n.map((function(e){return(0,a.createElement)(U,(0,_.Z)((0,S.Z)({},e),{key:e.url}))})),m]})},z=y.Z.Paragraph,B=y.Z.Text,L=y.Z.Title,F=c.Z.Meta;var H=function(e){var n,s,r,o,l=e.logs,h=void 0===l?[]:l,m=e.config,x=((0,a.useContext)(v.aC)||{}).serverConfig,f=x.streamKey,y=x.rtmpServerPort,b=(null===(n=t.g.window)||void 0===n?void 0:n.location.hostname)||"";b&&y&&(o=function(e,n){return"rtmp://".concat(e.replace(/(^\w+:|^)\/\//,""),":").concat(n,"/live")}(b,y));var S=[{icon:(0,i.jsx)(p.Z,{twoToneColor:"#6f42c1"}),title:"Use your broadcasting software",content:(0,i.jsxs)("div",{children:[(0,i.jsx)("a",{href:"https://owncast.online/docs/broadcasting/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn how to point your existing software to your new server and start streaming your content."}),(0,i.jsxs)("div",{className:"stream-info-container",children:[(0,i.jsx)(B,{strong:!0,className:"stream-info-label",children:"Streaming URL:"}),o&&(0,i.jsx)(z,{className:"stream-info-box",copyable:!0,children:o}),(0,i.jsx)(B,{strong:!0,className:"stream-info-label",children:"Stream Key:"}),(0,i.jsx)(z,{className:"stream-info-box",copyable:{text:f},children:"*********************"})]})]})},{icon:(0,i.jsx)(g.Z,{twoToneColor:"#f9826c"}),title:"Embed your video onto other sites",content:(0,i.jsx)("div",{children:(0,i.jsx)("a",{href:"https://owncast.online/docs/embed?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn how you can add your Owncast stream to other sites you control."})})}];return(null===m||void 0===m?void 0:m.chatDisabled)||S.push({icon:(0,i.jsx)(w.Z,{twoToneColor:"#0366d6"}),title:"Chat is disabled",content:(0,i.jsx)("span",{children:"Chat will continue to be disabled until you begin a live stream."})}),(null===m||void 0===m||null===(s=m.yp)||void 0===s?void 0:s.enabled)||S.push({icon:(0,i.jsx)(Z.Z,{twoToneColor:"#D18BFE"}),title:"Find an audience on the Owncast Directory",content:(0,i.jsxs)("div",{children:["List yourself in the Owncast Directory and show off your stream. Enable it in"," ",(0,i.jsx)(k(),{href:"/config-public-details",children:"settings."})]})}),(null===m||void 0===m||null===(r=m.federation)||void 0===r?void 0:r.enabled)||S.push({icon:(0,i.jsx)("img",{alt:"fediverse",width:"20px",src:"fediverse-white.png"}),title:"Add your Owncast instance to the Fediverse",content:(0,i.jsxs)("div",{children:[(0,i.jsx)(k(),{href:"/config-federation",children:"Enable Owncast social"})," features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream."]})}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{children:(0,i.jsx)(u.Z,{span:12,offset:6,children:(0,i.jsxs)("div",{className:"offline-intro",children:[(0,i.jsx)("span",{className:"logo",children:(0,i.jsx)(N.C,{variant:"simple"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(L,{level:2,children:"No stream is active"}),(0,i.jsx)("p",{children:"You should start one."})]})]})})}),(0,i.jsxs)(d.Z,{gutter:[16,16],className:"offline-content",children:[(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,className:"list-section",children:S.map((function(e){return(0,i.jsx)(c.Z,{size:"small",bordered:!1,children:(0,i.jsx)(F,{avatar:e.icon,title:e.title,description:e.content})},e.title)}))}),(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,children:(0,i.jsx)(I,{})})]}),(0,i.jsx)(j.o,{logs:h,pageSize:5})]})},M=t(71630),A=t(2766);function Q(e){return(0,i.jsxs)("ul",{className:"statistics-list",children:[(0,i.jsxs)("li",{children:[e.videoCodec||"Unknown"," @ ",e.videoBitrate||"Unknown"," kbps"]}),(0,i.jsxs)("li",{children:[e.framerate||"Unknown"," fps"]}),(0,i.jsxs)("li",{children:[e.width," x ",e.height]})]})}function V(){var e,n,t=(0,a.useContext)(v.aC),p=t||{},g=p.broadcaster,w=p.serverConfig,Z=g||{},y=Z.remoteAddr,b=Z.streamDetails,k=(null===b||void 0===b?void 0:b.encoder)||"Unknown encoder",N=(0,a.useState)([]),S=N[0],_=N[1],C=function(){var e=(0,s.Z)((function(){var e,n;return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,O.rQ)(O.WQ)];case 1:return e=t.sent(),_(e),[3,3];case 2:return n=t.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),T=function(){C()};if((0,a.useEffect)((function(){T();var e;return e=setInterval(T,O.NE),function(){clearInterval(e)}}),[]),(0,A.Qr)(w)||(0,A.Qr)(t))return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{active:!0}),(0,i.jsx)(o.Z,{active:!0}),(0,i.jsx)(o.Z,{active:!0})]});if(!g)return(0,i.jsx)(H,{logs:S,config:w});var E=null===t||void 0===t||null===(e=t.currentBroadcast)||void 0===e||null===(n=e.outputSettings)||void 0===n?void 0:n.map((function(e){var n=e.audioPassthrough,t=e.videoPassthrough,s=e.audioBitrate,r=e.videoBitrate,a=e.framerate,o=n?"".concat(b.audioCodec||"Unknown",", ").concat(b.audioBitrate," kbps"):"".concat(s||"Unknown"," kbps"),c=t?"".concat(b.videoBitrate||"Unknown"," kbps, ").concat(b.framerate," fps ").concat(b.width," x ").concat(b.height):"".concat(r||"Unknown"," kbps, ").concat(a," fps");return(0,i.jsxs)("div",{className:"stream-details-item-container",children:[(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Outbound Video Stream",value:c}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Outbound Audio Stream",value:o})]})})),D=t.viewerCount,P=t.sessionPeakViewerCount,U="".concat(b.audioCodec,", ").concat(b.audioBitrate||"Unknown"," kbps"),z=new Date(g.time);return(0,i.jsxs)("div",{className:"home-container",children:[(0,i.jsxs)("div",{className:"sections-container",children:[(0,i.jsx)("div",{className:"online-status-section",children:(0,i.jsxs)(c.Z,{size:"small",type:"inner",className:"online-details-card",children:[(0,i.jsxs)(d.Z,{gutter:[16,16],align:"middle",children:[(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Stream started ".concat((0,x.Z)(z,Date.now())),value:(0,f.Z)(z),prefix:(0,i.jsx)(h.Z,{})})}),(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Viewers",value:D,prefix:(0,i.jsx)(m.Z,{})})}),(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Peak viewer count",value:P,prefix:(0,i.jsx)(m.Z,{})})})]}),(0,i.jsx)(M.j,{})]})}),(0,i.jsxs)(d.Z,{gutter:[16,16],className:"section stream-details-section",children:[(0,i.jsxs)(u.Z,{className:"stream-details",span:12,sm:24,md:24,lg:12,children:[(0,i.jsx)(c.Z,{size:"small",title:"Outbound Stream Details",type:"inner",className:"outbound-details",children:E}),(0,i.jsxs)(c.Z,{size:"small",title:"Inbound Stream Details",type:"inner",children:[(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Input",value:"".concat(k," ").concat((0,A.t5)(y))}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Inbound Video Stream",value:b,formatter:Q}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Inbound Audio Stream",value:U})]})]}),(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,children:(0,i.jsx)(I,{})})]})]}),(0,i.jsx)("br",{}),(0,i.jsx)(j.o,{logs:S,pageSize:5})]})}}},function(e){e.O(0,[8939,3903,3698,3626,8091,2944,9764,5315,4763,2429,8676,9774,2888,179],(function(){return n=64830,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6964],{64830:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin",function(){return t(47073)}])},38856:function(e,n,t){"use strict";t.d(n,{o:function(){return h}});var s=t(85893),r=(t(67294),t(84485)),i=t(20550),a=t(93626),o=t(53731),l=t(58091),c=r.Z.Title;function d(e,n){var t="black";return"warning"===n.level?t="orange":"error"===n.level&&(t="red"),(0,s.jsx)(i.Z,{color:t,children:e})}function u(e){return(0,s.jsx)(o.Z,{children:e})}var h=function(e){var n=e.logs,t=e.pageSize;if(!(null===n||void 0===n?void 0:n.length))return null;var r=[{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,s.jsxs)("div",{className:"logs-section",children:[(0,s.jsx)(c,{children:"Logs"}),(0,s.jsx)(a.Z,{size:"middle",dataSource:n,columns:r,rowKey:function(e){return e.time},pagination:{pageSize:t||20}})]})}},71630:function(e,n,t){"use strict";t.d(n,{j:function(){return v}});var s=t(85893),r=t(8751),i=t(11475),a=t(25968),o=t(6226),l=t(74763),c=t(84485),d=t(14670),u=t(71577),h=t(41664),m=t.n(h),x=t(67294),f=t(35159),v=function(e){var n=e.showTroubleshootButton,t=(0,x.useContext)(f.aC).health;if(!t)return null;var h=t.healthy,v=t.healthPercentage,j=t.message,p=t.representation,g="#3f8600",w="info";return v<80?(g="#cf000f",w="error"):v<30&&(g="#f0ad4e",w="error"),(0,s.jsxs)("div",{children:[(0,s.jsxs)(a.Z,{gutter:8,children:[(0,s.jsx)(o.Z,{span:12,children:(0,s.jsx)(l.Z,{title:"Healthy Stream",value:h?"Yes":"No",valueStyle:{color:g},prefix:h?(0,s.jsx)(r.Z,{}):(0,s.jsx)(i.Z,{})})}),(0,s.jsx)(o.Z,{span:12,children:(0,s.jsx)(l.Z,{title:"Playback Health",value:v,valueStyle:{color:g},suffix:"%"})})]}),(0,s.jsx)(a.Z,{style:{display:p<100&&0!==p?"grid":"none"},children:(0,s.jsxs)(c.Z.Text,{type:"secondary",style:{textAlign:"center",fontSize:"0.7em",opacity:"0.3"},children:["Stream health represents ",p,"% of all known players. Other player status is unknown."]})}),(0,s.jsx)(a.Z,{gutter:16,style:{width:"100%",display:j?"grid":"none",marginTop:"10px"},children:(0,s.jsx)(o.Z,{span:24,children:(0,s.jsx)(d.Z,{message:j,type:w,showIcon:!0,action:n&&(0,s.jsx)(m(),{passHref:!0,href:"/stream-health",children:(0,s.jsx)(u.Z,{size:"small",type:"text",style:{color:"black"},children:"TROUBLESHOOT"})})})})})]})};v.defaultProps={showTroubleshootButton:!0}},47073:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return V}});var s=t(47568),r=t(70655),i=t(85893),a=t(67294),o=t(26303),l=t(74763),c=t(59652),d=t(25968),u=t(6226),h=t(24019),m=t(87547),x=t(19642),f=t(45938),v=t(35159),j=t(38856),p=t(66567),g=t(63179),w=t(78346),Z=t(27482),y=t(84485),b=t(41664),k=t.n(b),N=t(60113),S=t(26042),_=t(69396),C=t(54907),T=t(58091),O=t(58827),E=C.Z.Panel,D=y.Z.Title,P=y.Z.Link,U=function(e){var n=e.title,t=e.url,s=e.content_html,r=e.date_published,a=new Date(r),o=(0,T.Z)(a,"MMM dd, yyyy, HH:mm");return(0,i.jsx)("article",{children:(0,i.jsx)(C.Z,{children:(0,i.jsxs)(E,{header:n,children:[(0,i.jsxs)("p",{className:"timestamp",children:[o," (",(0,i.jsx)(P,{href:"".concat("https://owncast.online").concat(t),target:"_blank",rel:"noopener noreferrer",children:"Link"}),")"]}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})]},t)})})},I=function(){var e=(0,a.useState)([]),n=e[0],t=e[1],l=(0,a.useState)(!0),c=l[0],d=l[1],u=function(){var e=(0,s.Z)((function(){var e,n;return(0,r.__generator)(this,(function(s){switch(s.label){case 0:d(!1),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,O.kg)("https://owncast.online/news/index.json")];case 2:return(null===(e=s.sent())||void 0===e?void 0:e.items.length)>0&&t(e.items),[3,4];case 3:return n=s.sent(),console.log("==== error",n),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){u()}),[]);var h=c?(0,i.jsx)(o.Z,{loading:!0,active:!0}):null,m=c||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)(D,{level:2,children:"News & Updates from Owncast"}),h,n.map((function(e){return(0,a.createElement)(U,(0,_.Z)((0,S.Z)({},e),{key:e.url}))})),m]})},z=y.Z.Paragraph,B=y.Z.Text,L=y.Z.Title,F=c.Z.Meta;var H=function(e){var n,s,r,o,l=e.logs,h=void 0===l?[]:l,m=e.config,x=((0,a.useContext)(v.aC)||{}).serverConfig,f=x.streamKey,y=x.rtmpServerPort,b=(null===(n=t.g.window)||void 0===n?void 0:n.location.hostname)||"";b&&y&&(o=function(e,n){return"rtmp://".concat(e.replace(/(^\w+:|^)\/\//,""),":").concat(n,"/live")}(b,y));var S=[{icon:(0,i.jsx)(p.Z,{twoToneColor:"#6f42c1"}),title:"Use your broadcasting software",content:(0,i.jsxs)("div",{children:[(0,i.jsx)("a",{href:"https://owncast.online/docs/broadcasting/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn how to point your existing software to your new server and start streaming your content."}),(0,i.jsxs)("div",{className:"stream-info-container",children:[(0,i.jsx)(B,{strong:!0,className:"stream-info-label",children:"Streaming URL:"}),o&&(0,i.jsx)(z,{className:"stream-info-box",copyable:!0,children:o}),(0,i.jsx)(B,{strong:!0,className:"stream-info-label",children:"Stream Key:"}),(0,i.jsx)(z,{className:"stream-info-box",copyable:{text:f},children:"*********************"})]})]})},{icon:(0,i.jsx)(g.Z,{twoToneColor:"#f9826c"}),title:"Embed your video onto other sites",content:(0,i.jsx)("div",{children:(0,i.jsx)("a",{href:"https://owncast.online/docs/embed?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn how you can add your Owncast stream to other sites you control."})})}];return(null===m||void 0===m?void 0:m.chatDisabled)||S.push({icon:(0,i.jsx)(w.Z,{twoToneColor:"#0366d6"}),title:"Chat is disabled",content:(0,i.jsx)("span",{children:"Chat will continue to be disabled until you begin a live stream."})}),(null===m||void 0===m||null===(s=m.yp)||void 0===s?void 0:s.enabled)||S.push({icon:(0,i.jsx)(Z.Z,{twoToneColor:"#D18BFE"}),title:"Find an audience on the Owncast Directory",content:(0,i.jsxs)("div",{children:["List yourself in the Owncast Directory and show off your stream. Enable it in"," ",(0,i.jsx)(k(),{href:"/config-public-details",children:"settings."})]})}),(null===m||void 0===m||null===(r=m.federation)||void 0===r?void 0:r.enabled)||S.push({icon:(0,i.jsx)("img",{alt:"fediverse",width:"20px",src:"fediverse-white.png"}),title:"Add your Owncast instance to the Fediverse",content:(0,i.jsxs)("div",{children:[(0,i.jsx)(k(),{href:"/config-federation",children:"Enable Owncast social"})," features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream."]})}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{children:(0,i.jsx)(u.Z,{span:12,offset:6,children:(0,i.jsxs)("div",{className:"offline-intro",children:[(0,i.jsx)("span",{className:"logo",children:(0,i.jsx)(N.C,{variant:"simple"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)(L,{level:2,children:"No stream is active"}),(0,i.jsx)("p",{children:"You should start one."})]})]})})}),(0,i.jsxs)(d.Z,{gutter:[16,16],className:"offline-content",children:[(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,className:"list-section",children:S.map((function(e){return(0,i.jsx)(c.Z,{size:"small",bordered:!1,children:(0,i.jsx)(F,{avatar:e.icon,title:e.title,description:e.content})},e.title)}))}),(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,children:(0,i.jsx)(I,{})})]}),(0,i.jsx)(j.o,{logs:h,pageSize:5})]})},M=t(71630),A=t(2766);function Q(e){return(0,i.jsxs)("ul",{className:"statistics-list",children:[(0,i.jsxs)("li",{children:[e.videoCodec||"Unknown"," @ ",e.videoBitrate||"Unknown"," kbps"]}),(0,i.jsxs)("li",{children:[e.framerate||"Unknown"," fps"]}),(0,i.jsxs)("li",{children:[e.width," x ",e.height]})]})}function V(){var e,n,t=(0,a.useContext)(v.aC),p=t||{},g=p.broadcaster,w=p.serverConfig,Z=g||{},y=Z.remoteAddr,b=Z.streamDetails,k=(null===b||void 0===b?void 0:b.encoder)||"Unknown encoder",N=(0,a.useState)([]),S=N[0],_=N[1],C=function(){var e=(0,s.Z)((function(){var e,n;return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,O.rQ)(O.WQ)];case 1:return e=t.sent(),_(e),[3,3];case 2:return n=t.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),T=function(){C()};if((0,a.useEffect)((function(){T();var e;return e=setInterval(T,O.NE),function(){clearInterval(e)}}),[]),(0,A.Qr)(w)||(0,A.Qr)(t))return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{active:!0}),(0,i.jsx)(o.Z,{active:!0}),(0,i.jsx)(o.Z,{active:!0})]});if(!g)return(0,i.jsx)(H,{logs:S,config:w});var E=null===t||void 0===t||null===(e=t.currentBroadcast)||void 0===e||null===(n=e.outputSettings)||void 0===n?void 0:n.map((function(e){var n=e.audioPassthrough,t=e.videoPassthrough,s=e.audioBitrate,r=e.videoBitrate,a=e.framerate,o=n?"".concat(b.audioCodec||"Unknown",", ").concat(b.audioBitrate," kbps"):"".concat(s||"Unknown"," kbps"),c=t?"".concat(b.videoBitrate||"Unknown"," kbps, ").concat(b.framerate," fps ").concat(b.width," x ").concat(b.height):"".concat(r||"Unknown"," kbps, ").concat(a," fps");return(0,i.jsxs)("div",{className:"stream-details-item-container",children:[(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Outbound Video Stream",value:c}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Outbound Audio Stream",value:o})]})})),D=t.viewerCount,P=t.sessionPeakViewerCount,U="".concat(b.audioCodec,", ").concat(b.audioBitrate||"Unknown"," kbps"),z=new Date(g.time);return(0,i.jsxs)("div",{className:"home-container",children:[(0,i.jsxs)("div",{className:"sections-container",children:[(0,i.jsx)("div",{className:"online-status-section",children:(0,i.jsxs)(c.Z,{size:"small",type:"inner",className:"online-details-card",children:[(0,i.jsxs)(d.Z,{gutter:[16,16],align:"middle",children:[(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Stream started ".concat((0,x.Z)(z,Date.now())),value:(0,f.Z)(z),prefix:(0,i.jsx)(h.Z,{})})}),(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Viewers",value:D,prefix:(0,i.jsx)(m.Z,{})})}),(0,i.jsx)(u.Z,{span:8,sm:24,md:8,children:(0,i.jsx)(l.Z,{title:"Peak viewer count",value:P,prefix:(0,i.jsx)(m.Z,{})})})]}),(0,i.jsx)(M.j,{})]})}),(0,i.jsxs)(d.Z,{gutter:[16,16],className:"section stream-details-section",children:[(0,i.jsxs)(u.Z,{className:"stream-details",span:12,sm:24,md:24,lg:12,children:[(0,i.jsx)(c.Z,{size:"small",title:"Outbound Stream Details",type:"inner",className:"outbound-details",children:E}),(0,i.jsxs)(c.Z,{size:"small",title:"Inbound Stream Details",type:"inner",children:[(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Input",value:"".concat(k," ").concat((0,A.t5)(y))}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Inbound Video Stream",value:b,formatter:Q}),(0,i.jsx)(l.Z,{className:"stream-details-item",title:"Inbound Audio Stream",value:U})]})]}),(0,i.jsx)(u.Z,{span:12,xs:24,sm:24,md:24,lg:12,children:(0,i.jsx)(I,{})})]})]}),(0,i.jsx)("br",{}),(0,i.jsx)(j.o,{logs:S,pageSize:5})]})}}},function(e){e.O(0,[8939,3903,4267,3626,8091,2944,9764,5315,4763,2429,8676,9774,2888,179],(function(){return n=64830,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/access-tokens-ffe8732ccbc0256e.js b/static/web/_next/static/chunks/pages/admin/access-tokens-5f45e77ab2176f5b.js similarity index 99% rename from static/web/_next/static/chunks/pages/admin/access-tokens-ffe8732ccbc0256e.js rename to static/web/_next/static/chunks/pages/admin/access-tokens-5f45e77ab2176f5b.js index 9e03bad64..8b953beee 100644 --- a/static/web/_next/static/chunks/pages/admin/access-tokens-ffe8732ccbc0256e.js +++ b/static/web/_next/static/chunks/pages/admin/access-tokens-5f45e77ab2176f5b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9882],{48689:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});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(42135),s=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:c}))};s.displayName="DeleteOutlined";var i=o.forwardRef(s)},6226:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(4942),o=n(87462),c=n(71002),a=n(94184),s=n.n(a),i=n(67294),l=n(53124),u=n(99134),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 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)),i.createElement("div",(0,o.Z)({},S,{style:(0,o.Z)((0,o.Z)({},A),N),className:T,ref:t}),C)}))},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 m}});var r=n(87462),o=n(4942),c=n(71002),a=n(97685),s=n(94184),i=n.n(s),l=n(67294),u=n(53124),f=n(98082),p=n(24308),d=n(93355),v=n(99134),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 o=0;for(r=Object.getOwnPropertySymbols(e);o0?I[0]/-2:void 0,G=null!=I[1]&&I[1]>0?I[1]/-2:void 0;if(D&&(M.marginLeft=D,M.marginRight=D),P){var H=(0,a.Z)(I,2);M.rowGap=H[1]}else G&&(M.marginTop=G,M.marginBottom=G);var $=(0,a.Z)(I,2),z=$[0],W=$[1],B=l.useMemo((function(){return{gutter:[z,W],wrap:j,supportFlexGap:P}}),[z,W,j,P]);return l.createElement(v.Z.Provider,{value:B},l.createElement("div",(0,r.Z)({},w,{className:R,style:(0,r.Z)((0,r.Z)({},M),x),ref:t}),b))}))},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(97937),s=n(94184),i=n.n(s),l=n(98423),u=n(67294),f=n(53124),p=n(98787),d=n(68349),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);o=t||n<0||m&&e-v>=u}function g(){var e=o();if(Z(e))return j(e);p=setTimeout(g,function(e){var n=t-(e-d);return m?s(n,u-(e-v)):n}(e))}function j(e){return p=void 0,y&&i?x(e):(i=l=void 0,f)}function w(){var e=o(),n=Z(e);if(i=arguments,l=this,d=e,n){if(void 0===p)return b(d);if(m)return clearTimeout(p),p=setTimeout(g,t),x(d)}return void 0===p&&(p=setTimeout(g,t)),f}return t=c(t)||0,r(n)&&(h=!!n.leading,u=(m="maxWait"in n)?a(c(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==p&&clearTimeout(p),v=0,i=d=l=p=void 0},w.flush=function(){return void 0===p?f:j(o())},w}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),o=n(13218),c=n(33448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,i=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(c(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||i.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},26562:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/access-tokens",function(){return n(75575)}])},75575:function(e,t,n){"use strict";n.r(t);var r=n(47568),o=n(70655),c=n(85893),a=n(67294),s=n(84485),i=n(94199),l=n(20550),u=n(6226),f=n(32808),p=n(85402),d=n(69677),v=n(25968),h=n(71577),m=n(26713),y=n(93626),x=n(48689),b=n(58091),Z=n(58827),g=s.Z.Title,j=s.Z.Paragraph,w={CAN_SEND_SYSTEM_MESSAGES:{name:"System messages",description:"Can send official messages on behalf of the system.",color:"purple"},CAN_SEND_MESSAGES:{name:"User chat messages",description:"Can send chat messages on behalf of the owner of this token.",color:"green"},HAS_ADMIN_ACCESS:{name:"Has admin access",description:"Can perform administrative actions such as moderation, get server statuses, etc.",color:"red"}};var k=function(e){var t=e.onOk,n=e.onCancel,r=e.visible,o=(0,a.useState)([]),s=o[0],i=o[1],l=(0,a.useState)(""),m=l[0],y=l[1],x=Object.keys(w).map((function(e){return{value:e,label:w[e].description}})),b={disabled:0===s.length||""===m},Z=x.map((function(e){return(0,c.jsx)(u.Z,{span:8,children:(0,c.jsx)(f.Z,{value:e.value,children:e.label})},e.value)}));return(0,c.jsxs)(p.Z,{title:"Create New Access token",visible:r,onOk:function(){t(m,s),i([]),y("")},onCancel:n,okButtonProps:b,children:[(0,c.jsxs)("p",{children:[(0,c.jsx)("p",{children:"The name will be displayed as the chat user when sending messages with this access token."}),(0,c.jsx)(d.Z,{value:m,placeholder:"Name of bot, service, or integration",onChange:function(e){return y(e.currentTarget.value)}})]}),(0,c.jsx)("p",{children:"Select the permissions this access token will have. It cannot be edited after it's created."}),(0,c.jsx)(f.Z.Group,{style:{width:"100%"},value:s,onChange:function(e){i(e)},children:(0,c.jsx)(v.Z,{children:Z})}),(0,c.jsx)("p",{children:(0,c.jsx)(h.Z,{type:"primary",onClick:function(){i(Object.keys(w))},children:"Select all"})})]})};t.default=function(){var e=function(e){console.error("error",e)},t=(0,a.useState)([]),n=t[0],s=t[1],u=(0,a.useState)(!1),f=u[0],p=u[1];function v(){return O.apply(this,arguments)}function O(){return(O=(0,r.Z)((function(){var t,n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,Z.rQ)(Z.ms)];case 1:return t=r.sent(),s(t),[3,3];case 2:return n=r.sent(),e(n),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}function C(){return(C=(0,r.Z)((function(t){var n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,Z.rQ)(Z.Wr,{method:"POST",data:{token:t}})];case 1:return r.sent(),v(),[3,3];case 2:return n=r.sent(),e(n),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}function E(){return(E=(0,r.Z)((function(t,r){var c,a;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(0,Z.rQ)(Z.IO,{method:"POST",data:{name:t,scopes:r}})];case 1:return c=o.sent(),s(n.concat(c)),[3,3];case 2:return a=o.sent(),e(a),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}(0,a.useEffect)((function(){v()}),[]);var N=[{title:"",key:"delete",render:function(e,t){return(0,c.jsx)(m.Z,{size:"middle",children:(0,c.jsx)(h.Z,{onClick:function(){return function(e){return C.apply(this,arguments)}(t.accessToken)},icon:(0,c.jsx)(x.Z,{})})})}},{title:"Name",dataIndex:"displayName",key:"displayName"},{title:"Token",dataIndex:"accessToken",key:"accessToken",render:function(e){return(0,c.jsx)(d.Z.Password,{size:"small",bordered:!1,value:e})}},{title:"Scopes",dataIndex:"scopes",key:"scopes",render:function(e){return(0,c.jsx)(c.Fragment,{children:e.map((function(e){return function(e){if(!e||!w[e])return null;var t=w[e];return(0,c.jsx)(i.Z,{title:t.description,children:(0,c.jsx)(l.Z,{color:t.color,children:t.name})},e)}(e)}))})}},{title:"Last Used",dataIndex:"lastUsed",key:"lastUsed",render:function(e){if(!e)return"Never";var t=new Date(e);return(0,b.Z)(t,"P p")}}];return(0,c.jsxs)("div",{children:[(0,c.jsx)(g,{children:"Access Tokens"}),(0,c.jsx)(j,{children:"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."}),(0,c.jsxs)(j,{children:["Read more about how to use these tokens, with examples, at"," ",(0,c.jsx)("a",{href:"https://owncast.online/docs/integrations/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"our documentation"}),"."]}),(0,c.jsx)(y.Z,{rowKey:"token",columns:N,dataSource:n,pagination:!1}),(0,c.jsx)("br",{}),(0,c.jsx)(h.Z,{type:"primary",onClick:function(){p(!0)},children:"Create Access Token"}),(0,c.jsx)(k,{visible:f,onOk:function(e,t){p(!1),function(e,t){E.apply(this,arguments)}(e,t)},onCancel:function(){p(!1)}})]})}}},function(e){e.O(0,[8939,3903,3698,3626,8091,9774,2888,179],(function(){return t=26562,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([[9882],{48689:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});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(42135),s=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:c}))};s.displayName="DeleteOutlined";var i=o.forwardRef(s)},6226:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(4942),o=n(87462),c=n(71002),a=n(94184),s=n.n(a),i=n(67294),l=n(53124),u=n(99134),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 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)),i.createElement("div",(0,o.Z)({},S,{style:(0,o.Z)((0,o.Z)({},A),N),className:T,ref:t}),C)}))},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 m}});var r=n(87462),o=n(4942),c=n(71002),a=n(97685),s=n(94184),i=n.n(s),l=n(67294),u=n(53124),f=n(98082),p=n(24308),d=n(93355),v=n(99134),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 o=0;for(r=Object.getOwnPropertySymbols(e);o0?I[0]/-2:void 0,G=null!=I[1]&&I[1]>0?I[1]/-2:void 0;if(D&&(M.marginLeft=D,M.marginRight=D),P){var H=(0,a.Z)(I,2);M.rowGap=H[1]}else G&&(M.marginTop=G,M.marginBottom=G);var $=(0,a.Z)(I,2),z=$[0],W=$[1],B=l.useMemo((function(){return{gutter:[z,W],wrap:j,supportFlexGap:P}}),[z,W,j,P]);return l.createElement(v.Z.Provider,{value:B},l.createElement("div",(0,r.Z)({},w,{className:R,style:(0,r.Z)((0,r.Z)({},M),x),ref:t}),b))}))},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(97937),s=n(94184),i=n.n(s),l=n(98423),u=n(67294),f=n(53124),p=n(98787),d=n(68349),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);o=t||n<0||m&&e-v>=u}function g(){var e=o();if(Z(e))return j(e);p=setTimeout(g,function(e){var n=t-(e-d);return m?s(n,u-(e-v)):n}(e))}function j(e){return p=void 0,y&&i?x(e):(i=l=void 0,f)}function w(){var e=o(),n=Z(e);if(i=arguments,l=this,d=e,n){if(void 0===p)return b(d);if(m)return clearTimeout(p),p=setTimeout(g,t),x(d)}return void 0===p&&(p=setTimeout(g,t)),f}return t=c(t)||0,r(n)&&(h=!!n.leading,u=(m="maxWait"in n)?a(c(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==p&&clearTimeout(p),v=0,i=d=l=p=void 0},w.flush=function(){return void 0===p?f:j(o())},w}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),o=n(13218),c=n(33448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,i=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(c(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||i.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},26562:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/access-tokens",function(){return n(75575)}])},75575:function(e,t,n){"use strict";n.r(t);var r=n(47568),o=n(70655),c=n(85893),a=n(67294),s=n(84485),i=n(94199),l=n(20550),u=n(6226),f=n(32808),p=n(85402),d=n(69677),v=n(25968),h=n(71577),m=n(26713),y=n(93626),x=n(48689),b=n(58091),Z=n(58827),g=s.Z.Title,j=s.Z.Paragraph,w={CAN_SEND_SYSTEM_MESSAGES:{name:"System messages",description:"Can send official messages on behalf of the system.",color:"purple"},CAN_SEND_MESSAGES:{name:"User chat messages",description:"Can send chat messages on behalf of the owner of this token.",color:"green"},HAS_ADMIN_ACCESS:{name:"Has admin access",description:"Can perform administrative actions such as moderation, get server statuses, etc.",color:"red"}};var k=function(e){var t=e.onOk,n=e.onCancel,r=e.visible,o=(0,a.useState)([]),s=o[0],i=o[1],l=(0,a.useState)(""),m=l[0],y=l[1],x=Object.keys(w).map((function(e){return{value:e,label:w[e].description}})),b={disabled:0===s.length||""===m},Z=x.map((function(e){return(0,c.jsx)(u.Z,{span:8,children:(0,c.jsx)(f.Z,{value:e.value,children:e.label})},e.value)}));return(0,c.jsxs)(p.Z,{title:"Create New Access token",visible:r,onOk:function(){t(m,s),i([]),y("")},onCancel:n,okButtonProps:b,children:[(0,c.jsxs)("p",{children:[(0,c.jsx)("p",{children:"The name will be displayed as the chat user when sending messages with this access token."}),(0,c.jsx)(d.Z,{value:m,placeholder:"Name of bot, service, or integration",onChange:function(e){return y(e.currentTarget.value)}})]}),(0,c.jsx)("p",{children:"Select the permissions this access token will have. It cannot be edited after it's created."}),(0,c.jsx)(f.Z.Group,{style:{width:"100%"},value:s,onChange:function(e){i(e)},children:(0,c.jsx)(v.Z,{children:Z})}),(0,c.jsx)("p",{children:(0,c.jsx)(h.Z,{type:"primary",onClick:function(){i(Object.keys(w))},children:"Select all"})})]})};t.default=function(){var e=function(e){console.error("error",e)},t=(0,a.useState)([]),n=t[0],s=t[1],u=(0,a.useState)(!1),f=u[0],p=u[1];function v(){return O.apply(this,arguments)}function O(){return(O=(0,r.Z)((function(){var t,n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,Z.rQ)(Z.ms)];case 1:return t=r.sent(),s(t),[3,3];case 2:return n=r.sent(),e(n),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}function C(){return(C=(0,r.Z)((function(t){var n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,Z.rQ)(Z.Wr,{method:"POST",data:{token:t}})];case 1:return r.sent(),v(),[3,3];case 2:return n=r.sent(),e(n),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}function E(){return(E=(0,r.Z)((function(t,r){var c,a;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(0,Z.rQ)(Z.IO,{method:"POST",data:{name:t,scopes:r}})];case 1:return c=o.sent(),s(n.concat(c)),[3,3];case 2:return a=o.sent(),e(a),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}(0,a.useEffect)((function(){v()}),[]);var N=[{title:"",key:"delete",render:function(e,t){return(0,c.jsx)(m.Z,{size:"middle",children:(0,c.jsx)(h.Z,{onClick:function(){return function(e){return C.apply(this,arguments)}(t.accessToken)},icon:(0,c.jsx)(x.Z,{})})})}},{title:"Name",dataIndex:"displayName",key:"displayName"},{title:"Token",dataIndex:"accessToken",key:"accessToken",render:function(e){return(0,c.jsx)(d.Z.Password,{size:"small",bordered:!1,value:e})}},{title:"Scopes",dataIndex:"scopes",key:"scopes",render:function(e){return(0,c.jsx)(c.Fragment,{children:e.map((function(e){return function(e){if(!e||!w[e])return null;var t=w[e];return(0,c.jsx)(i.Z,{title:t.description,children:(0,c.jsx)(l.Z,{color:t.color,children:t.name})},e)}(e)}))})}},{title:"Last Used",dataIndex:"lastUsed",key:"lastUsed",render:function(e){if(!e)return"Never";var t=new Date(e);return(0,b.Z)(t,"P p")}}];return(0,c.jsxs)("div",{children:[(0,c.jsx)(g,{children:"Access Tokens"}),(0,c.jsx)(j,{children:"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."}),(0,c.jsxs)(j,{children:["Read more about how to use these tokens, with examples, at"," ",(0,c.jsx)("a",{href:"https://owncast.online/docs/integrations/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"our documentation"}),"."]}),(0,c.jsx)(y.Z,{rowKey:"token",columns:N,dataSource:n,pagination:!1}),(0,c.jsx)("br",{}),(0,c.jsx)(h.Z,{type:"primary",onClick:function(){p(!0)},children:"Create Access Token"}),(0,c.jsx)(k,{visible:f,onOk:function(e,t){p(!1),function(e,t){E.apply(this,arguments)}(e,t)},onCancel:function(){p(!1)}})]})}}},function(e){e.O(0,[8939,3903,4267,3626,8091,9774,2888,179],(function(){return t=26562,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/actions-e6982b17ca2b6d30.js b/static/web/_next/static/chunks/pages/admin/actions-118addb368d4ec1b.js similarity index 98% rename from static/web/_next/static/chunks/pages/admin/actions-e6982b17ca2b6d30.js rename to static/web/_next/static/chunks/pages/admin/actions-118addb368d4ec1b.js index c1d7c49d4..dd4f8e88d 100644 --- a/static/web/_next/static/chunks/pages/admin/actions-e6982b17ca2b6d30.js +++ b/static/web/_next/static/chunks/pages/admin/actions-118addb368d4ec1b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5685],{48689:function(t,n,e){"use strict";e.d(n,{Z:function(){return c}});var r=e(1413),o=e(67294),i={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=e(42135),u=function(t,n){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},t),{},{ref:n,icon:i}))};u.displayName="DeleteOutlined";var c=o.forwardRef(u)},27561:function(t,n,e){var r=e(67990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},67990:function(t){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},23279:function(t,n,e){var r=e(13218),o=e(7771),i=e(14841),a=Math.max,u=Math.min;t.exports=function(t,n,e){var c,l,s,f,d,p,h=0,v=!1,x=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(n){var e=c,r=l;return c=l=void 0,h=n,f=t.apply(r,e)}function g(t){return h=t,d=setTimeout(j,n),v?m(t):f}function b(t){var e=t-p;return void 0===p||e>=n||e<0||x&&t-h>=s}function j(){var t=o();if(b(t))return Z(t);d=setTimeout(j,function(t){var e=n-(t-p);return x?u(e,s-(t-h)):e}(t))}function Z(t){return d=void 0,y&&c?m(t):(c=l=void 0,f)}function w(){var t=o(),e=b(t);if(c=arguments,l=this,p=t,e){if(void 0===d)return g(p);if(x)return clearTimeout(d),d=setTimeout(j,n),m(p)}return void 0===d&&(d=setTimeout(j,n)),f}return n=i(n)||0,r(e)&&(v=!!e.leading,s=(x="maxWait"in e)?a(i(e.maxWait)||0,n):s,y="trailing"in e?!!e.trailing:y),w.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=p=l=d=void 0},w.flush=function(){return void 0===d?f:Z(o())},w}},33448:function(t,n,e){var r=e(44239),o=e(37005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},7771:function(t,n,e){var r=e(55639);t.exports=function(){return r.Date.now()}},14841:function(t,n,e){var r=e(27561),o=e(13218),i=e(33448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=o(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=u.test(t);return e||c.test(t)?l(t.slice(2),e?2:8):a.test(t)?NaN:+t}},54005:function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/actions",function(){return e(4437)}])},4437:function(t,n,e){"use strict";e.r(n);var r=e(47568),o=e(29815),i=e(70655),a=e(85893),u=e(48689),c=e(84485),l=e(85402),s=e(69677),f=e(32808),d=e(26713),p=e(71577),h=e(93626),v=e(67294),x=e(25521),y=e(25964),m=e(83192),g=e(35159),b=e(19411),j=c.Z.Title,Z=c.Z.Paragraph,w=null,k=function(t){var n=t.onOk,e=t.onCancel,r=t.visible,o=(0,v.useState)(""),i=o[0],u=o[1],c=(0,v.useState)(""),d=c[0],p=c[1],h=(0,v.useState)(""),x=h[0],y=h[1],m=(0,v.useState)(""),g=m[0],j=m[1],Z=(0,v.useState)(""),w=Z[0],k=Z[1],C=(0,v.useState)(!1),T=C[0],S=C[1],_={disabled:!function(){try{if("https:"!==new URL(i).protocol)return!1}catch(t){return!1}return(0,b.Z)(i)&&""!==d}()};return(0,a.jsx)(l.Z,{title:"Create New Action",visible:r,onOk:function(){n(i,d,x,g,w,T),u(""),p(""),y(""),j(""),k(""),S(!1)},onCancel:e,okButtonProps:_,children:(0,a.jsxs)("div",{children:["Add the URL for the external action you want to present."," ",(0,a.jsx)("strong",{children:"Only HTTPS urls are supported."}),(0,a.jsx)("p",{children:(0,a.jsx)("a",{href:"https://owncast.online/thirdparty/actions/",target:"_blank",rel:"noopener noreferrer",children:"Read more about external actions."})}),(0,a.jsx)("p",{children:(0,a.jsx)(s.Z,{value:i,required:!0,placeholder:"https://myserver.com/action (required)",onChange:function(t){return u(t.currentTarget.value.trim())},type:"url",pattern:b.a})}),(0,a.jsx)("p",{children:(0,a.jsx)(s.Z,{value:d,required:!0,placeholder:"Your action title (required)",onChange:function(t){return p(t.currentTarget.value)}})}),(0,a.jsx)("p",{children:(0,a.jsx)(s.Z,{value:x,placeholder:"Optional description",onChange:function(t){return y(t.currentTarget.value)}})}),(0,a.jsx)("p",{children:(0,a.jsx)(s.Z,{value:g,placeholder:"https://myserver.com/action/icon.png (optional)",onChange:function(t){return j(t.currentTarget.value)}})}),(0,a.jsxs)("p",{children:[(0,a.jsx)(s.Z,{type:"color",value:w,onChange:function(t){return k(t.currentTarget.value)}}),"Optional background color of the action button."]}),(0,a.jsx)(f.Z,{checked:T,defaultChecked:T,onChange:function(t){S(t.target.checked)},children:"Open in a new tab instead of within your page."})]})})};n.default=function(){var t=(0,v.useContext)(g.aC)||{},n=t.serverConfig,e=t.setFieldInConfigState,c=n.externalActions,l=(0,v.useState)([]),s=l[0],f=l[1],b=(0,v.useState)(!1),C=b[0],T=b[1],S=(0,v.useState)(null),_=S[0],I=S[1],E=function(){I(null),w=null,clearTimeout(w)};function O(t){return A.apply(this,arguments)}function A(){return(A=(0,r.Z)((function(t){return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,y.Si)({apiPath:y.os,data:{value:t},onSuccess:function(){e({fieldName:"externalActions",value:t,path:""}),I((0,m.kg)(m.zv,"Updated.")),w=setTimeout(E,y.sI)},onError:function(t){console.log(t),I((0,m.kg)(m.Un,t)),w=setTimeout(E,y.sI)}})];case 1:return n.sent(),[2]}}))}))).apply(this,arguments)}function N(){return(N=(0,r.Z)((function(t){var n,e;return(0,i.__generator)(this,(function(r){n=(0,o.Z)(s),e=s.findIndex((function(n){return n.url===t.url})),n.splice(e,1);try{f(n),O(n)}catch(i){console.error(i)}return[2]}))}))).apply(this,arguments)}function U(){return(U=(0,r.Z)((function(t,n,e,r,a,u){var c,l,d;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),c=(0,o.Z)(s),l=c.concat({url:t,title:n,description:e,icon:r,color:a,openExternally:u}),f(l),[4,O(l)];case 1:return i.sent(),[3,3];case 2:return d=i.sent(),console.error(d),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}(0,v.useEffect)((function(){f(c||[])}),[c]);var R=[{title:"",key:"delete",render:function(t,n){return(0,a.jsx)(d.Z,{size:"middle",children:(0,a.jsx)(p.Z,{onClick:function(){return function(t){return N.apply(this,arguments)}(n)},icon:(0,a.jsx)(u.Z,{})})})}},{title:"Name",dataIndex:"title",key:"title"},{title:"Description",dataIndex:"description",key:"description"},{title:"URL",dataIndex:"url",key:"url"},{title:"Icon",dataIndex:"icon",key:"icon",render:function(t){return t?(0,a.jsx)("img",{style:{width:"2vw"},src:t,alt:""}):null}},{title:"Color",dataIndex:"color",key:"color",render:function(t){return t?(0,a.jsx)("div",{style:{backgroundColor:t,height:"30px"},children:t}):null}},{title:"Opens",dataIndex:"openExternally",key:"openExternally",render:function(t){return t?"In a new tab":"In a modal"}}];return(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{children:"External Actions"}),(0,a.jsx)(Z,{children:"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."}),(0,a.jsxs)(Z,{children:["Read more about how to use actions, with examples, at"," ",(0,a.jsx)("a",{href:"https://owncast.online/thirdparty/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"our documentation"}),"."]}),(0,a.jsx)(h.Z,{rowKey:function(t){return"".concat(t.title,"-").concat(t.url)},columns:R,dataSource:s,pagination:!1}),(0,a.jsx)("br",{}),(0,a.jsx)(p.Z,{type:"primary",onClick:function(){T(!0)},children:"Create New Action"}),(0,a.jsx)(x.E,{status:_}),(0,a.jsx)(k,{visible:C,onOk:function(t,n,e,r,o,i){T(!1),function(t,n,e,r,o,i){U.apply(this,arguments)}(t,n,e,r,o,i)},onCancel:function(){T(!1)}})]})}},20943:function(t,n,e){"use strict";function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=n||e<0||x&&t-h>=s}function j(){var t=o();if(b(t))return Z(t);d=setTimeout(j,function(t){var e=n-(t-p);return x?u(e,s-(t-h)):e}(t))}function Z(t){return d=void 0,y&&c?m(t):(c=l=void 0,f)}function w(){var t=o(),e=b(t);if(c=arguments,l=this,p=t,e){if(void 0===d)return g(p);if(x)return clearTimeout(d),d=setTimeout(j,n),m(p)}return void 0===d&&(d=setTimeout(j,n)),f}return n=i(n)||0,r(e)&&(v=!!e.leading,s=(x="maxWait"in e)?a(i(e.maxWait)||0,n):s,y="trailing"in e?!!e.trailing:y),w.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=p=l=d=void 0},w.flush=function(){return void 0===d?f:Z(o())},w}},33448:function(t,n,e){var r=e(44239),o=e(37005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},7771:function(t,n,e){var r=e(55639);t.exports=function(){return r.Date.now()}},14841:function(t,n,e){var r=e(27561),o=e(13218),i=e(33448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=o(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=u.test(t);return e||c.test(t)?l(t.slice(2),e?2:8):a.test(t)?NaN:+t}},54005:function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/actions",function(){return e(4437)}])},4437:function(t,n,e){"use strict";e.r(n);var r=e(47568),o=e(29815),i=e(70655),a=e(85893),u=e(48689),c=e(84485),l=e(85402),s=e(69677),f=e(32808),d=e(26713),p=e(71577),h=e(93626),v=e(67294),x=e(25521),y=e(25964),m=e(83192),g=e(35159),b=e(19411),j=c.Z.Title,Z=c.Z.Paragraph,w=null,k=function(t){var n=t.onOk,e=t.onCancel,r=t.visible,o=(0,v.useState)(""),i=o[0],u=o[1],c=(0,v.useState)(""),d=c[0],p=c[1],h=(0,v.useState)(""),x=h[0],y=h[1],m=(0,v.useState)(""),g=m[0],j=m[1],Z=(0,v.useState)(""),w=Z[0],k=Z[1],C=(0,v.useState)(!1),T=C[0],S=C[1],_={disabled:!function(){try{if("https:"!==new URL(i).protocol)return!1}catch(t){return!1}return(0,b.Z)(i)&&""!==d}()};return(0,a.jsx)(l.Z,{title:"Create New Action",visible:r,onOk:function(){n(i,d,x,g,w,T),u(""),p(""),y(""),j(""),k(""),S(!1)},onCancel:e,okButtonProps:_,children:(0,a.jsxs)("div",{children:["Add the URL for the external action you want to present."," ",(0,a.jsx)("strong",{children:"Only HTTPS urls are supported."}),(0,a.jsx)("p",{children:(0,a.jsx)("a",{href:"https://owncast.online/thirdparty/actions/",target:"_blank",rel:"noopener noreferrer",children:"Read more about external actions."})}),(0,a.jsx)("p",{children:(0,a.jsx)(s.Z,{value:i,required:!0,placeholder:"https://myserver.com/action (required)",onChange:function(t){return u(t.currentTarget.value.trim())},type:"url",pattern:b.a})}),(0,a.jsx)("p",{children:(0,a.jsx)(s.Z,{value:d,required:!0,placeholder:"Your action title (required)",onChange:function(t){return p(t.currentTarget.value)}})}),(0,a.jsx)("p",{children:(0,a.jsx)(s.Z,{value:x,placeholder:"Optional description",onChange:function(t){return y(t.currentTarget.value)}})}),(0,a.jsx)("p",{children:(0,a.jsx)(s.Z,{value:g,placeholder:"https://myserver.com/action/icon.png (optional)",onChange:function(t){return j(t.currentTarget.value)}})}),(0,a.jsxs)("p",{children:[(0,a.jsx)(s.Z,{type:"color",value:w,onChange:function(t){return k(t.currentTarget.value)}}),"Optional background color of the action button."]}),(0,a.jsx)(f.Z,{checked:T,defaultChecked:T,onChange:function(t){S(t.target.checked)},children:"Open in a new tab instead of within your page."})]})})};n.default=function(){var t=(0,v.useContext)(g.aC)||{},n=t.serverConfig,e=t.setFieldInConfigState,c=n.externalActions,l=(0,v.useState)([]),s=l[0],f=l[1],b=(0,v.useState)(!1),C=b[0],T=b[1],S=(0,v.useState)(null),_=S[0],I=S[1],E=function(){I(null),w=null,clearTimeout(w)};function O(t){return A.apply(this,arguments)}function A(){return(A=(0,r.Z)((function(t){return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,y.Si)({apiPath:y.os,data:{value:t},onSuccess:function(){e({fieldName:"externalActions",value:t,path:""}),I((0,m.kg)(m.zv,"Updated.")),w=setTimeout(E,y.sI)},onError:function(t){console.log(t),I((0,m.kg)(m.Un,t)),w=setTimeout(E,y.sI)}})];case 1:return n.sent(),[2]}}))}))).apply(this,arguments)}function N(){return(N=(0,r.Z)((function(t){var n,e;return(0,i.__generator)(this,(function(r){n=(0,o.Z)(s),e=s.findIndex((function(n){return n.url===t.url})),n.splice(e,1);try{f(n),O(n)}catch(i){console.error(i)}return[2]}))}))).apply(this,arguments)}function U(){return(U=(0,r.Z)((function(t,n,e,r,a,u){var c,l,d;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),c=(0,o.Z)(s),l=c.concat({url:t,title:n,description:e,icon:r,color:a,openExternally:u}),f(l),[4,O(l)];case 1:return i.sent(),[3,3];case 2:return d=i.sent(),console.error(d),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}(0,v.useEffect)((function(){f(c||[])}),[c]);var R=[{title:"",key:"delete",render:function(t,n){return(0,a.jsx)(d.Z,{size:"middle",children:(0,a.jsx)(p.Z,{onClick:function(){return function(t){return N.apply(this,arguments)}(n)},icon:(0,a.jsx)(u.Z,{})})})}},{title:"Name",dataIndex:"title",key:"title"},{title:"Description",dataIndex:"description",key:"description"},{title:"URL",dataIndex:"url",key:"url"},{title:"Icon",dataIndex:"icon",key:"icon",render:function(t){return t?(0,a.jsx)("img",{style:{width:"2vw"},src:t,alt:""}):null}},{title:"Color",dataIndex:"color",key:"color",render:function(t){return t?(0,a.jsx)("div",{style:{backgroundColor:t,height:"30px"},children:t}):null}},{title:"Opens",dataIndex:"openExternally",key:"openExternally",render:function(t){return t?"In a new tab":"In a modal"}}];return(0,a.jsxs)("div",{children:[(0,a.jsx)(j,{children:"External Actions"}),(0,a.jsx)(Z,{children:"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."}),(0,a.jsxs)(Z,{children:["Read more about how to use actions, with examples, at"," ",(0,a.jsx)("a",{href:"https://owncast.online/thirdparty/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"our documentation"}),"."]}),(0,a.jsx)(h.Z,{rowKey:function(t){return"".concat(t.title,"-").concat(t.url)},columns:R,dataSource:s,pagination:!1}),(0,a.jsx)("br",{}),(0,a.jsx)(p.Z,{type:"primary",onClick:function(){T(!0)},children:"Create New Action"}),(0,a.jsx)(x.E,{status:_}),(0,a.jsx)(k,{visible:C,onOk:function(t,n,e,r,o,i){T(!1),function(t,n,e,r,o,i){U.apply(this,arguments)}(t,n,e,r,o,i)},onCancel:function(){T(!1)}})]})}},20943:function(t,n,e){"use strict";function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e0?(0,c.jsx)(m.Z,{style:{color:"var(--ant-success)"}}):(0,c.jsx)(f.Z,{style:{color:"var(--ant-warning)"}}));var _="Click to ".concat(t?"hide":"show"," this message");return(0,c.jsxs)("div",{className:"toggle-switch ".concat(t?"":"hidden"),children:[(0,c.jsx)("span",{className:"outcome-icon",children:j}),(0,c.jsx)(y.Z,{title:_,placement:"topRight",children:(0,c.jsx)(d.Z,{shape:"circle",size:"small",type:"text",icon:t?(0,c.jsx)(Z.Z,{}):(0,c.jsx)(b.Z,{}),onClick:N})})]})},j=n(11085),_=l.Z.Title;var T=3e3;function C(){var e=(0,o.useState)([]),t=e[0],n=e[1],l=(0,o.useState)([]),p=l[0],y=l[1],Z=(0,o.useState)(!1),b=Z[0],C=Z[1],S=(0,o.useState)(null),k=S[0],E=S[1],I=(0,o.useState)(""),M=I[0],O=I[1],P=null,z=null,A=function(){var e=(0,s.Z)((function(){var e,t;return(0,u.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,(0,x.rQ)(x.WE,{auth:!0})];case 1:return e=s.sent(),(0,w.Qr)(e)?n([]):n(e),[3,3];case 2:return t=s.sent(),console.log("==== error",t),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,o.useEffect)((function(){return A(),z=setInterval((function(){A()}),x.NE),function(){clearTimeout(P),clearTimeout(z)}}),[]);var Q=function(e){return e.reduce((function(e,t){var n=t.user.id;return e.some((function(e){return e.text===n}))||e.push({text:n,value:n}),e}),[]).sort((function(e,t){var n=e.text.toUpperCase(),s=t.text.toUpperCase();return ns?1:0}))}(t),U={selectedRowKeys:p,onChange:function(e){y(e)}},D=function(e){var s=t.findIndex((function(t){return t.id===e.id}));t.splice(s,1,e),n((0,a.Z)(t))},H=function(){P=setTimeout((function(){E(null),O("")}),T)},V=function(){var e=(0,s.Z)((function(e){var s,o;return(0,u.__generator)(this,(function(u){switch(u.label){case 0:return C(!0),[4,(0,x.rQ)(x.hn,{auth:!0,method:"POST",data:{visible:e,idArray:p}})];case 1:return(s=u.sent()).success&&"changed"===s.message?(E((0,c.jsx)(m.Z,{})),H(),o=(0,a.Z)(t),p.map((function(n){var s=o.findIndex((function(e){return e.id===n})),a=(0,i.Z)((0,r.Z)({},t[s]),{visible:e});return o.splice(s,1,a),null})),n(o),y([])):(E((0,c.jsx)(f.Z,{})),H()),C(!1),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),F=[{title:"Time",dataIndex:"timestamp",key:"timestamp",className:"timestamp-col",defaultSortOrder:"descend",render:function(e){var t=new Date(e);return(0,v.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:Q,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,c.jsx)(j.Z,{user:e,children:t})},width:110},{title:"Message",dataIndex:"body",key:"body",className:"message-col",width:320,render:function(e){return(0,c.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,c.jsx)(N,{isVisible:!e,message:t,setMessage:D})},width:30}],K=g()({"bulk-editor":!0,active:p.length});return(0,c.jsxs)("div",{className:"chat-messages",children:[(0,c.jsx)(_,{children:"Chat Messages"}),(0,c.jsx)("p",{children:"Manage the messages from viewers that show up on your stream."}),(0,c.jsxs)("div",{className:K,children:[(0,c.jsx)("span",{className:"label",children:"Check multiple messages to change their visibility to: "}),(0,c.jsx)(d.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"show"===M&&b,icon:"show"===M&&k,disabled:!p.length||M&&"show"!==M,onClick:function(){O("show"),V(!0)},children:"Show"}),(0,c.jsx)(d.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"hide"===M&&b,icon:"hide"===M&&k,disabled:!p.length||M&&"hide"!==M,onClick:function(){O("hide"),V(!1)},children:"Hide"})]}),(0,c.jsx)(h.Z,{size:"small",className:"table-container",pagination:{defaultPageSize:100,showSizeChanger:!0},scroll:{y:540},rowClassName:function(e){return e.hiddenAt?"hidden":""},dataSource:t,columns:F,rowKey:function(e){return e.id},rowSelection:U})]})}}},function(e){e.O(0,[3662,8939,3903,3698,3626,8091,9764,9189,9640,9774,2888,179],(function(){return t=62433,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([[7095],{62433:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/chat/messages",function(){return n(28599)}])},28599:function(e,t,n){"use strict";n.r(t),n.d(t,{OUTCOME_TIMEOUT:function(){return T},default:function(){return C}});var s=n(47568),r=n(26042),i=n(69396),a=n(29815),u=n(70655),c=n(85893),o=n(67294),l=n(84485),d=n(71577),h=n(93626),m=n(89739),f=n(21640),p=n(94184),g=n.n(p),v=n(58091),x=n(58827),w=n(2766),y=n(94199),Z=n(99611),b=n(90420),N=function(e){var t=e.isVisible,n=e.message,a=e.setMessage;if(!n||(0,w.Qr)(n))return null;var l=null,h=(0,o.useState)(0),p=h[0],g=h[1],v=(n||{}).id;(0,o.useEffect)((function(){return function(){clearTimeout(l)}}));var N=function(){var e=(0,s.Z)((function(){var e;return(0,u.__generator)(this,(function(s){switch(s.label){case 0:return clearTimeout(l),g(0),[4,(0,x.rQ)(x.hn,{auth:!0,method:"POST",data:{visible:!t,idArray:[v]}})];case 1:return(e=s.sent()).success&&"changed"===e.message?(a((0,i.Z)((0,r.Z)({},n),{visible:!t})),g(1)):(a((0,i.Z)((0,r.Z)({},n),{visible:t})),g(-1)),l=setTimeout((function(){g(0)}),T),[2]}}))}));return function(){return e.apply(this,arguments)}}(),j=(0,c.jsx)(m.Z,{style:{color:"transparent"}});p&&(j=p>0?(0,c.jsx)(m.Z,{style:{color:"var(--ant-success)"}}):(0,c.jsx)(f.Z,{style:{color:"var(--ant-warning)"}}));var _="Click to ".concat(t?"hide":"show"," this message");return(0,c.jsxs)("div",{className:"toggle-switch ".concat(t?"":"hidden"),children:[(0,c.jsx)("span",{className:"outcome-icon",children:j}),(0,c.jsx)(y.Z,{title:_,placement:"topRight",children:(0,c.jsx)(d.Z,{shape:"circle",size:"small",type:"text",icon:t?(0,c.jsx)(Z.Z,{}):(0,c.jsx)(b.Z,{}),onClick:N})})]})},j=n(11085),_=l.Z.Title;var T=3e3;function C(){var e=(0,o.useState)([]),t=e[0],n=e[1],l=(0,o.useState)([]),p=l[0],y=l[1],Z=(0,o.useState)(!1),b=Z[0],C=Z[1],S=(0,o.useState)(null),k=S[0],E=S[1],I=(0,o.useState)(""),M=I[0],O=I[1],P=null,z=null,A=function(){var e=(0,s.Z)((function(){var e,t;return(0,u.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,(0,x.rQ)(x.WE,{auth:!0})];case 1:return e=s.sent(),(0,w.Qr)(e)?n([]):n(e),[3,3];case 2:return t=s.sent(),console.log("==== error",t),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,o.useEffect)((function(){return A(),z=setInterval((function(){A()}),x.NE),function(){clearTimeout(P),clearTimeout(z)}}),[]);var Q=function(e){return e.reduce((function(e,t){var n=t.user.id;return e.some((function(e){return e.text===n}))||e.push({text:n,value:n}),e}),[]).sort((function(e,t){var n=e.text.toUpperCase(),s=t.text.toUpperCase();return ns?1:0}))}(t),U={selectedRowKeys:p,onChange:function(e){y(e)}},D=function(e){var s=t.findIndex((function(t){return t.id===e.id}));t.splice(s,1,e),n((0,a.Z)(t))},H=function(){P=setTimeout((function(){E(null),O("")}),T)},V=function(){var e=(0,s.Z)((function(e){var s,o;return(0,u.__generator)(this,(function(u){switch(u.label){case 0:return C(!0),[4,(0,x.rQ)(x.hn,{auth:!0,method:"POST",data:{visible:e,idArray:p}})];case 1:return(s=u.sent()).success&&"changed"===s.message?(E((0,c.jsx)(m.Z,{})),H(),o=(0,a.Z)(t),p.map((function(n){var s=o.findIndex((function(e){return e.id===n})),a=(0,i.Z)((0,r.Z)({},t[s]),{visible:e});return o.splice(s,1,a),null})),n(o),y([])):(E((0,c.jsx)(f.Z,{})),H()),C(!1),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),F=[{title:"Time",dataIndex:"timestamp",key:"timestamp",className:"timestamp-col",defaultSortOrder:"descend",render:function(e){var t=new Date(e);return(0,v.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:Q,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,c.jsx)(j.Z,{user:e,children:t})},width:110},{title:"Message",dataIndex:"body",key:"body",className:"message-col",width:320,render:function(e){return(0,c.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,c.jsx)(N,{isVisible:!e,message:t,setMessage:D})},width:30}],K=g()({"bulk-editor":!0,active:p.length});return(0,c.jsxs)("div",{className:"chat-messages",children:[(0,c.jsx)(_,{children:"Chat Messages"}),(0,c.jsx)("p",{children:"Manage the messages from viewers that show up on your stream."}),(0,c.jsxs)("div",{className:K,children:[(0,c.jsx)("span",{className:"label",children:"Check multiple messages to change their visibility to: "}),(0,c.jsx)(d.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"show"===M&&b,icon:"show"===M&&k,disabled:!p.length||M&&"show"!==M,onClick:function(){O("show"),V(!0)},children:"Show"}),(0,c.jsx)(d.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"hide"===M&&b,icon:"hide"===M&&k,disabled:!p.length||M&&"hide"!==M,onClick:function(){O("hide"),V(!1)},children:"Hide"})]}),(0,c.jsx)(h.Z,{size:"small",className:"table-container",pagination:{defaultPageSize:100,showSizeChanger:!0},scroll:{y:540},rowClassName:function(e){return e.hiddenAt?"hidden":""},dataSource:t,columns:F,rowKey:function(e){return e.id},rowSelection:U})]})}}},function(e){e.O(0,[3662,8939,3903,4267,3626,8091,9764,9189,9640,9774,2888,179],(function(){return t=62433,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/chat/users-4eca8d7ae4b4f4d0.js b/static/web/_next/static/chunks/pages/admin/chat/users-47c7102aec07a1a6.js similarity index 97% rename from static/web/_next/static/chunks/pages/admin/chat/users-4eca8d7ae4b4f4d0.js rename to static/web/_next/static/chunks/pages/admin/chat/users-47c7102aec07a1a6.js index b957a9212..f34e69b6c 100644 --- a/static/web/_next/static/chunks/pages/admin/chat/users-4eca8d7ae4b4f4d0.js +++ b/static/web/_next/static/chunks/pages/admin/chat/users-47c7102aec07a1a6.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9522],{55583:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/chat/users",function(){return t(66540)}])},66540:function(e,n,t){"use strict";t.r(n),t.d(n,{FETCH_INTERVAL:function(){return b},default:function(){return N}});var r=t(47568),s=t(70655),a=t(85893),c=t(67294),o=t(2944),i=t(35159),u=t(58827),d=t(41542),l=t(69677),f=t(93626),h=t(68795),p=t(45938),m=t(11085),g=t(77891),y=t(2766),x=function(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,a.jsx)(m.Z,{user:n,connectionInfo:t,children:(0,a.jsx)("span",{className:"display-name",children:n.displayName})})},sorter:function(e,n){return n.user.displayName.localeCompare(e.user.displayName)},filterIcon:(0,a.jsx)(h.Z,{}),filterDropdown:function(e){var n=e.setSelectedKeys,t=e.selectedKeys,r=e.confirm;return(0,a.jsx)("div",{style:{padding:8},children:(0,a.jsx)(l.Z,{placeholder:"Search display names...",value:t[0],onChange:function(e){n(e.target.value?[e.target.value]:[]),r({closeDropdown:!1})}})})},onFilter:function(e,n){return n.user.displayName.includes(e)},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,a.jsx)("div",{style:{textAlign:"center"},children:e})}},{title:"Connected Time",dataIndex:"connectedAt",key:"connectedAt",defaultSortOrder:"ascend",render:function(e){return(0,p.Z)(new Date(e))},sorter:function(e,n){return new Date(n.connectedAt).getTime()-new Date(e.connectedAt).getTime()},sortDirections:["descend","ascend"]},{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,y.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,a.jsx)(g.e,{user:n.user,isEnabled:!n.user.disabledAt})}}];return(0,a.jsx)(f.Z,{className:"table-container",pagination:{hideOnSinglePage:!0},columns:t,dataSource:n,size:"small",rowKey:"id"})},v=t(71577),A=t(58091),j=t(84674);function k(){return(k=(0,r.Z)((function(e){var n;return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,u.rQ)(u.RB,{data:{value:e},method:"POST",auth:!0})];case 1:return t.sent(),[3,3];case 2:return n=t.sent(),console.error(n),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}var w=function(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,A.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,a.jsx)(v.Z,{title:"Remove IP Address Ban",onClick:function(){return function(e){return k.apply(this,arguments)}(n.ipAddress)},icon:(0,a.jsx)(j.Z,{twoToneColor:"#ff4d4f"}),className:"block-user-button"})}}];return(0,a.jsx)(f.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:t,dataSource:n,size:"large",rowKey:"ipAddress"})},b=1e4;function N(){var e=((0,c.useContext)(i.aC)||{}).online,n=(0,c.useState)([]),t=n[0],l=n[1],f=(0,c.useState)([]),h=f[0],p=f[1],m=(0,c.useState)([]),g=m[0],y=m[1],v=(0,c.useState)([]),A=v[0],j=v[1],k=function(){var e=(0,r.Z)((function(){var e,n,t,r,a,c,o,i;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,(0,u.rQ)(u.qk)];case 1:return e=s.sent(),l(e),[3,3];case 2:return n=s.sent(),console.log("==== error",n),[3,3];case 3:return s.trys.push([3,5,,6]),[4,(0,u.rQ)(u.Kp)];case 4:return t=s.sent(),y(t),[3,6];case 5:return r=s.sent(),console.log("==== error",r),[3,6];case 6:return s.trys.push([6,8,,9]),[4,(0,u.rQ)(u.GC)];case 7:return a=s.sent(),j(a),[3,9];case 8:return c=s.sent(),console.error("error fetching moderators",c),[3,9];case 9:return s.trys.push([9,11,,12]),[4,(0,u.rQ)(u.Bu)];case 10:return o=s.sent(),p(o),[3,12];case 11:return i=s.sent(),console.error("error fetching banned ips",i),[3,12];case 12:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){var e;return k(),e=setInterval(k,b),function(){clearInterval(e)}}),[e]);var N=e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{data:g}),(0,a.jsxs)("p",{className:"description",children:["Visit the"," ",(0,a.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,a.jsx)("p",{className:"description",children:"When a stream is active and chat is enabled, connected chat clients will be displayed here."}),C=[{label:(0,a.jsxs)("span",{children:["Connected ",e?"(".concat(g.length,")"):"(offline)"]}),key:"1",children:N},{label:(0,a.jsxs)("span",{children:["Banned Users (",t.length,")"]}),key:"2",children:(0,a.jsx)(d.K,{data:t})},{label:(0,a.jsxs)("span",{children:["IP Bans (",h.length,")"]}),key:"3",children:(0,a.jsx)(w,{data:h})},{label:(0,a.jsxs)("span",{children:["Moderators (",A.length,")"]}),key:"4",children:(0,a.jsx)(d.K,{data:A})}];return(0,a.jsx)(o.Z,{defaultActiveKey:"1",items:C})}}},function(e){e.O(0,[3662,8939,3903,3698,3626,8091,2944,9764,9189,9640,9774,2888,179],(function(){return n=55583,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9522],{55583:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/chat/users",function(){return t(66540)}])},66540:function(e,n,t){"use strict";t.r(n),t.d(n,{FETCH_INTERVAL:function(){return b},default:function(){return N}});var r=t(47568),s=t(70655),a=t(85893),c=t(67294),o=t(2944),i=t(35159),u=t(58827),d=t(41542),l=t(69677),f=t(93626),h=t(68795),p=t(45938),m=t(11085),g=t(77891),y=t(2766),x=function(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,a.jsx)(m.Z,{user:n,connectionInfo:t,children:(0,a.jsx)("span",{className:"display-name",children:n.displayName})})},sorter:function(e,n){return n.user.displayName.localeCompare(e.user.displayName)},filterIcon:(0,a.jsx)(h.Z,{}),filterDropdown:function(e){var n=e.setSelectedKeys,t=e.selectedKeys,r=e.confirm;return(0,a.jsx)("div",{style:{padding:8},children:(0,a.jsx)(l.Z,{placeholder:"Search display names...",value:t[0],onChange:function(e){n(e.target.value?[e.target.value]:[]),r({closeDropdown:!1})}})})},onFilter:function(e,n){return n.user.displayName.includes(e)},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,a.jsx)("div",{style:{textAlign:"center"},children:e})}},{title:"Connected Time",dataIndex:"connectedAt",key:"connectedAt",defaultSortOrder:"ascend",render:function(e){return(0,p.Z)(new Date(e))},sorter:function(e,n){return new Date(n.connectedAt).getTime()-new Date(e.connectedAt).getTime()},sortDirections:["descend","ascend"]},{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,y.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,a.jsx)(g.e,{user:n.user,isEnabled:!n.user.disabledAt})}}];return(0,a.jsx)(f.Z,{className:"table-container",pagination:{hideOnSinglePage:!0},columns:t,dataSource:n,size:"small",rowKey:"id"})},v=t(71577),A=t(58091),j=t(84674);function k(){return(k=(0,r.Z)((function(e){var n;return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,u.rQ)(u.RB,{data:{value:e},method:"POST",auth:!0})];case 1:return t.sent(),[3,3];case 2:return n=t.sent(),console.error(n),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}var w=function(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,A.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,a.jsx)(v.Z,{title:"Remove IP Address Ban",onClick:function(){return function(e){return k.apply(this,arguments)}(n.ipAddress)},icon:(0,a.jsx)(j.Z,{twoToneColor:"#ff4d4f"}),className:"block-user-button"})}}];return(0,a.jsx)(f.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:t,dataSource:n,size:"large",rowKey:"ipAddress"})},b=1e4;function N(){var e=((0,c.useContext)(i.aC)||{}).online,n=(0,c.useState)([]),t=n[0],l=n[1],f=(0,c.useState)([]),h=f[0],p=f[1],m=(0,c.useState)([]),g=m[0],y=m[1],v=(0,c.useState)([]),A=v[0],j=v[1],k=function(){var e=(0,r.Z)((function(){var e,n,t,r,a,c,o,i;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,(0,u.rQ)(u.qk)];case 1:return e=s.sent(),l(e),[3,3];case 2:return n=s.sent(),console.log("==== error",n),[3,3];case 3:return s.trys.push([3,5,,6]),[4,(0,u.rQ)(u.Kp)];case 4:return t=s.sent(),y(t),[3,6];case 5:return r=s.sent(),console.log("==== error",r),[3,6];case 6:return s.trys.push([6,8,,9]),[4,(0,u.rQ)(u.GC)];case 7:return a=s.sent(),j(a),[3,9];case 8:return c=s.sent(),console.error("error fetching moderators",c),[3,9];case 9:return s.trys.push([9,11,,12]),[4,(0,u.rQ)(u.Bu)];case 10:return o=s.sent(),p(o),[3,12];case 11:return i=s.sent(),console.error("error fetching banned ips",i),[3,12];case 12:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){var e;return k(),e=setInterval(k,b),function(){clearInterval(e)}}),[e]);var N=e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{data:g}),(0,a.jsxs)("p",{className:"description",children:["Visit the"," ",(0,a.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,a.jsx)("p",{className:"description",children:"When a stream is active and chat is enabled, connected chat clients will be displayed here."}),C=[{label:(0,a.jsxs)("span",{children:["Connected ",e?"(".concat(g.length,")"):"(offline)"]}),key:"1",children:N},{label:(0,a.jsxs)("span",{children:["Banned Users (",t.length,")"]}),key:"2",children:(0,a.jsx)(d.K,{data:t})},{label:(0,a.jsxs)("span",{children:["IP Bans (",h.length,")"]}),key:"3",children:(0,a.jsx)(w,{data:h})},{label:(0,a.jsxs)("span",{children:["Moderators (",A.length,")"]}),key:"4",children:(0,a.jsx)(d.K,{data:A})}];return(0,a.jsx)(o.Z,{defaultActiveKey:"1",items:C})}}},function(e){e.O(0,[3662,8939,3903,4267,3626,8091,2944,9764,9189,9640,9774,2888,179],(function(){return n=55583,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/config-public-details-f2c8c0e20cfe4aef.js b/static/web/_next/static/chunks/pages/admin/config-public-details-e19f32415e69afa7.js similarity index 99% rename from static/web/_next/static/chunks/pages/admin/config-public-details-f2c8c0e20cfe4aef.js rename to static/web/_next/static/chunks/pages/admin/config-public-details-e19f32415e69afa7.js index d7e63a0e9..50151c56b 100644 --- a/static/web/_next/static/chunks/pages/admin/config-public-details-f2c8c0e20cfe4aef.js +++ b/static/web/_next/static/chunks/pages/admin/config-public-details-e19f32415e69afa7.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4311],{86045:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config-public-details",function(){return t(42992)}])},80939:function(e,n,t){"use strict";t.d(n,{Q:function(){return u},Y:function(){return d}});var a=t(85893),s=t(67294),i=t(84485),r=t(20550),l=t(24389),o=t(25521),c=i.Z.Title,u="#5a67d8",d=function(e){var n=e.title,t=e.description,i=e.placeholder,d=e.maxLength,h=e.values,f=e.handleDeleteIndex,m=e.handleCreateString,g=e.submitStatus,p=e.continuousStatusMessage,v=(0,s.useState)(""),x=v[0],j=v[1];return(0,a.jsxs)("div",{className:"edit-string-array-container",children:[(0,a.jsx)(c,{level:3,className:"section-title",children:n}),(0,a.jsx)("p",{className:"description",children:t}),(0,a.jsx)("div",{className:"edit-current-strings",children:null===h||void 0===h?void 0:h.map((function(e,n){return(0,a.jsx)(r.Z,{closable:!0,onClose:function(){f(n)},color:u,children:e},"tag-".concat(e,"-").concat(n))}))}),p&&(0,a.jsx)("div",{className:"continuous-status-section",children:(0,a.jsx)(o.E,{status:p})}),(0,a.jsx)("div",{className:"add-new-string-section",children:(0,a.jsx)(l.nv,{fieldName:"string-input",value:x,onChange:function(e){var n=e.value;j(n)},onPressEnter:function(){var e=x.trim();m(e),j("")},maxLength:d,placeholder:i,status:g})})]})};d.defaultProps={maxLength:50,description:null,submitStatus:null,continuousStatusMessage:null}},3664:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var a=t(47568),s=t(70655),i=t(85893),r=t(67294),l=t(94594),o=t(83192),c=t(25521),u=t(25964),d=t(35159),h=function(e){var n=e.apiPath,t=e.checked,h=e.reversed,f=void 0!==h&&h,m=e.configPath,g=void 0===m?"":m,p=e.disabled,v=void 0!==p&&p,x=e.fieldName,j=e.label,N=e.tip,C=e.useSubmit,S=e.onChange,b=(0,r.useState)(null),y=b[0],k=b[1],w=null,Z=((0,r.useContext)(d.aC)||{}).setFieldInConfigState,_=function(){k(null),clearTimeout(w),w=null},T=function(){var e=(0,a.Z)((function(e){var t;return(0,s.__generator)(this,(function(a){switch(a.label){case 0:return C?(k((0,o.kg)(o.Jk)),t=f?!e:e,[4,(0,u.Si)({apiPath:n,data:{value:t},onSuccess:function(){Z({fieldName:x,value:t,path:g}),k((0,o.kg)(o.zv))},onError:function(e){k((0,o.kg)(o.Un,"There was an error: ".concat(e)))}})]):[3,2];case 1:a.sent(),w=setTimeout(_,u.sI),a.label=2;case 2:return S&&S(e),[2]}}))}));return function(n){return e.apply(this,arguments)}}(),P=null!==y&&y.type===o.Jk;return(0,i.jsxs)("div",{className:"formfield-container toggleswitch-container",children:[j&&(0,i.jsx)("div",{className:"label-side",children:(0,i.jsx)("span",{className:"formfield-label",children:j})}),(0,i.jsxs)("div",{className:"input-side",children:[(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsx)(l.Z,{className:"switch field-".concat(x),loading:P,onChange:T,defaultChecked:t,checked:t,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:v}),(0,i.jsx)(c.E,{status:y})]}),(0,i.jsx)("p",{className:"field-tip",children:N})]})]})};h.defaultProps={apiPath:"",checked:!1,reversed:!1,configPath:"",disabled:!1,label:"",tip:"",useSubmit:!1,onChange:null}},42992:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return R}});var a=t(85893),s=t(67294),i=t(84485),r=t(14924),l=t(26042),o=t(69396),c=t(45200),u=t(35159),d=t(25964),h=t(3664),f=t(47568),m=t(70655),g=t(77916),p=t(71577),v=t(50888),x=t(88484),j=t(25521),N=t(83192),C=t(58827),S=["image/png","image/jpeg","image/gif"];var b=function(){var e,n=(0,s.useState)(null),t=n[0],i=n[1],r=(0,s.useState)(!1),l=r[0],o=r[1],c=(0,s.useState)(0),h=c[0],b=c[1],y=(0,s.useContext)(u.aC)||{},k=y.setFieldInConfigState,w=y.serverConfig,Z=null===w||void 0===w||null===(e=w.instanceDetails)||void 0===e?void 0:e.logo,_=(0,s.useState)(null),T=_[0],P=_[1],E=null,L=d.ZQ.apiPath,U=d.ZQ.tip,I=function(){P(null),clearTimeout(E),E=null},D=function(){var e=(0,f.Z)((function(){return(0,m.__generator)(this,(function(e){switch(e.label){case 0:return t===Z?[3,2]:(P((0,N.kg)(N.Jk)),[4,(0,d.Si)({apiPath:L,data:{value:t},onSuccess:function(){k({fieldName:"logo",value:t,path:""}),P((0,N.kg)(N.zv)),o(!1),b(Math.floor(100*Math.random()))},onError:function(e){P((0,N.kg)(N.Un,"There was an error: ".concat(e))),o(!1)}})]);case 1:e.sent(),E=setTimeout(I,d.sI),e.label=2;case 2:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),F="".concat(C.WB,"logo?random=").concat(h);return(0,a.jsxs)("div",{className:"formfield-container logo-upload-container",children:[(0,a.jsx)("div",{className:"label-side",children:(0,a.jsx)("span",{className:"formfield-label",children:"Logo"})}),(0,a.jsxs)("div",{className:"input-side",children:[(0,a.jsxs)("div",{className:"input-group",children:[(0,a.jsx)("img",{src:F,alt:"avatar",className:"logo-preview"}),(0,a.jsx)(g.Z,{name:"logo",listType:"picture",className:"avatar-uploader",showUploadList:!1,accept:S.join(","),beforeUpload:function(e){return o(!0),new Promise((function(n,t){if(!S.includes(e.type)){var a="File type is not supported: ".concat(e.type);return P((0,N.kg)(N.Un,"There was an error: ".concat(a))),E=setTimeout(I,d.sI),o(!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:D,disabled:l,children:l?(0,a.jsx)(v.Z,{style:{color:"white"}}):(0,a.jsx)(p.Z,{icon:(0,a.jsx)(x.Z,{})})})]}),(0,a.jsx)(j.E,{status:T}),(0,a.jsx)("p",{className:"field-tip",children:U})]})]})},y=i.Z.Title,k=function(){var e=(0,s.useState)(null),n=e[0],t=e[1],i=((0,s.useContext)(u.aC)||{}).serverConfig,f=i.instanceDetails,m=i.yp,g=m.instanceUrl;if((0,s.useEffect)((function(){t((0,l.Z)({},f,m))}),[f,m]),!n)return null;var p=function(e){var a=e.fieldName,s=e.value;t((0,o.Z)((0,l.Z)({},n),(0,r.Z)({},a,s)))},v=""!==g;return(0,a.jsxs)("div",{className:"edit-general-settings",children:[(0,a.jsx)(y,{level:3,className:"section-title",children:"Configure Instance Details"}),(0,a.jsx)("br",{}),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"name"},d.RE),{value:n.name,initialValue:f.name,onChange:p})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"instanceUrl"},d.cj),{value:n.instanceUrl,initialValue:m.instanceUrl,type:c.xA,onChange:p,onSubmit:function(){""===n.instanceUrl&&!0===m.enabled&&(0,d.Si)({apiPath:d.AP,data:{value:!1}})}})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"summary"},d.rs),{type:c.Sk,value:n.summary,initialValue:f.summary,onChange:p})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"offlineMessage"},d.rd),{type:c.Sk,value:n.offlineMessage,initialValue:f.offlineMessage,onChange:p})),(0,a.jsx)(b,{}),(0,a.jsx)(h.Z,(0,o.Z)((0,l.Z)({fieldName:"hideViewerCount",useSubmit:!0},d._X),{checked:n.hideViewerCount,onChange:function(e){p({fieldName:"hideViewerCount",value:e})}})),(0,a.jsx)("br",{}),(0,a.jsxs)("p",{className:"description",children:["Increase your audience by appearing in the"," ",(0,a.jsx)("a",{href:"https://directory.owncast.online",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("strong",{children:"Owncast Directory"})}),". This is an external service run by the Owncast project."," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/directory/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn more"}),"."]}),!m.instanceUrl&&(0,a.jsxs)("p",{className:"description",children:["You must set your ",(0,a.jsx)("strong",{children:"Server URL"})," above to enable the directory."]}),(0,a.jsxs)("div",{className:"config-yp-container",children:[(0,a.jsx)(h.Z,(0,o.Z)((0,l.Z)({fieldName:"enabled",useSubmit:!0},d.P),{checked:n.enabled,disabled:!v})),(0,a.jsx)(h.Z,(0,o.Z)((0,l.Z)({fieldName:"nsfw",useSubmit:!0},d.EY),{checked:n.nsfw,disabled:!v}))]})]})},w=t(29815),Z=t(20550),_=t(24389),T=t(80939),P=i.Z.Title,E=function(){var e=(0,s.useState)(""),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useContext)(u.aC)||{},c=o.serverConfig,h=o.setFieldInConfigState,g=c.instanceDetails.tags,p=void 0===g?[]:g,v=d.y_.apiPath,x=d.y_.maxLength,j=d.y_.placeholder,C=d.y_.configPath,S=null;(0,s.useEffect)((function(){return function(){clearTimeout(S)}}),[]);var b=function(){l(null),S=null,clearTimeout(S)},y=function(){var e=(0,f.Z)((function(e){return(0,m.__generator)(this,(function(n){switch(n.label){case 0:return l((0,N.kg)(N.Jk)),[4,(0,d.Si)({apiPath:v,data:{value:e},onSuccess:function(){h({fieldName:"tags",value:e,path:C}),l((0,N.kg)(N.zv,"Tags updated.")),t(""),S=setTimeout(b,d.sI)},onError:function(e){l((0,N.kg)(N.Un,e)),S=setTimeout(b,d.sI)}})];case 1:return n.sent(),[2]}}))}));return function(n){return e.apply(this,arguments)}}();return(0,a.jsxs)("div",{className:"tag-editor-container",children:[(0,a.jsx)(P,{level:3,className:"section-title",children:"Add Tags"}),(0,a.jsx)("p",{className:"description",children:"This is a great way to categorize your Owncast server on the Directory!"}),(0,a.jsx)("div",{className:"edit-current-strings",children:p.map((function(e,n){return(0,a.jsx)(Z.Z,{closable:!0,onClose:function(){!function(e){b();var n=(0,w.Z)(p);n.splice(e,1),y(n)}(n)},color:T.Q,children:e},"tag-".concat(e,"-").concat(n))}))}),(0,a.jsx)("div",{className:"add-new-string-section",children:(0,a.jsx)(_.nv,{fieldName:"tag-input",value:n,className:"new-tag-input",onChange:function(e){var n=e.value;r||l(null),t(n)},onPressEnter:function(){b();var e=n.trim();if(""!==e)if(p.some((function(n){return n.toLowerCase()===e.toLowerCase()})))l((0,N.kg)(N.dG,"This tag is already used!"));else{var t=(0,w.Z)(p).concat([e]);y(t)}else l((0,N.kg)(N.dG,"Please enter a tag"))},maxLength:x,placeholder:j,status:r})})]})},L=t(72877),U=t(87685),I=t(58909),D=t(48825),F=t(76538),M=i.Z.Title,z=function(){var e=(0,s.useState)(""),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useState)(!1),c=o[0],h=o[1],g=(0,s.useContext)(u.aC)||{},v=g.serverConfig,x=g.setFieldInConfigState,C=v.instanceDetails,S=C.extraPageContent,b=null,y=function(){l(null),h(!1),clearTimeout(b),b=null};function k(){return(k=(0,f.Z)((function(){return(0,m.__generator)(this,(function(e){switch(e.label){case 0:return l((0,N.kg)(N.Jk)),[4,(0,d.Si)({apiPath:d.AA,data:{value:n},onSuccess:function(e){x({fieldName:"extraPageContent",value:n,path:"instanceDetails"}),l((0,N.kg)(N.zv,e))},onError:function(e){l((0,N.kg)(N.Un,e))}})];case 1:return e.sent(),b=setTimeout(y,d.sI),[2]}}))}))).apply(this,arguments)}return(0,s.useEffect)((function(){t(S)}),[C]),(0,a.jsxs)("div",{className:"edit-page-content",children:[(0,a.jsx)(M,{level:3,className:"section-title",children:"Custom Page Content"}),(0,a.jsxs)("p",{className:"description",children:["Edit the content of your page by using simple"," ",(0,a.jsx)("a",{href:"https://www.markdownguide.org/basic-syntax/",target:"_blank",rel:"noopener noreferrer",children:"Markdown syntax"}),"."]}),(0,a.jsx)(U.ZP,{value:n,placeholder:"Enter your custom page content here...",theme:I.F,onChange:function(e){t(e),e===S||c?e===S&&c&&h(!1):h(!0)},extensions:[(0,D.markdown)({base:D.markdownLanguage,codeLanguages:F.M})]}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[c&&(0,a.jsx)(p.Z,{type:"primary",onClick:function(){return k.apply(this,arguments)},children:"Save"}),(0,a.jsx)(j.E,{status:r})]})]})},O=t(61426),V=i.Z.Title,A=function(){var e=(0,s.useState)("/* Enter custom CSS here */"),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useState)(!1),c=o[0],h=o[1],g=(0,s.useContext)(u.aC)||{},v=g.serverConfig,x=g.setFieldInConfigState,C=v.instanceDetails,S=C.customStyles,b=null,y=function(){l(null),h(!1),clearTimeout(b),b=null};function k(){return(k=(0,f.Z)((function(){return(0,m.__generator)(this,(function(e){switch(e.label){case 0:return l((0,N.kg)(N.Jk)),[4,(0,d.Si)({apiPath:d.d$,data:{value:n},onSuccess:function(e){x({fieldName:"customStyles",value:n,path:"instanceDetails"}),l((0,N.kg)(N.zv,e))},onError:function(e){l((0,N.kg)(N.Un,e))}})];case 1:return e.sent(),b=setTimeout(y,d.sI),[2]}}))}))).apply(this,arguments)}(0,s.useEffect)((function(){t(S)}),[C]);var w=s.useCallback((function(e){t(e),e===S||c?e===S&&c&&h(!1):h(!0)}),[]);return(0,a.jsxs)("div",{className:"edit-custom-css",children:[(0,a.jsx)(V,{level:3,className:"section-title",children:"Customize your page styling with CSS"}),(0,a.jsxs)("p",{className:"description",children:["Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the"," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/website/",rel:"noopener noreferrer",target:"_blank",children:"CSS & Components guide"}),"."]}),(0,a.jsx)("p",{className:"description",children:"Please input plain CSS text, as this will be directly injected onto your page during load."}),(0,a.jsx)(U.ZP,{value:n,placeholder:"/* Enter custom CSS here */",theme:I.F,height:"200px",extensions:[(0,O.css)()],onChange:w}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[c&&(0,a.jsx)(p.Z,{type:"primary",onClick:function(){return k.apply(this,arguments)},children:"Save"}),(0,a.jsx)(j.E,{status:r})]})]})},J=i.Z.Title;function R(){return(0,a.jsxs)("div",{className:"config-public-details-page",children:[(0,a.jsx)(J,{children:"General Settings"}),(0,a.jsxs)("p",{className:"description",children:["The following are displayed on your site to describe your stream and its content."," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/website/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn more."})]}),(0,a.jsxs)("div",{className:"top-container",children:[(0,a.jsx)("div",{className:"form-module instance-details-container",children:(0,a.jsx)(k,{})}),(0,a.jsxs)("div",{className:"form-module social-items-container ",children:[(0,a.jsx)("div",{className:"form-module tags-module",children:(0,a.jsx)(E,{})}),(0,a.jsx)("div",{className:"form-module social-handles-container",children:(0,a.jsx)(L.h,{})})]})]}),(0,a.jsx)("div",{className:"form-module page-content-module",children:(0,a.jsx)(z,{})}),(0,a.jsx)("div",{className:"form-module page-content-module",children:(0,a.jsx)(A,{})})]})}}},function(e){e.O(0,[5762,8939,3903,3698,3626,7910,9257,2877,9774,2888,179],(function(){return n=86045,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4311],{86045:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config-public-details",function(){return t(42992)}])},80939:function(e,n,t){"use strict";t.d(n,{Q:function(){return u},Y:function(){return d}});var a=t(85893),s=t(67294),i=t(84485),r=t(20550),l=t(24389),o=t(25521),c=i.Z.Title,u="#5a67d8",d=function(e){var n=e.title,t=e.description,i=e.placeholder,d=e.maxLength,h=e.values,f=e.handleDeleteIndex,m=e.handleCreateString,g=e.submitStatus,p=e.continuousStatusMessage,v=(0,s.useState)(""),x=v[0],j=v[1];return(0,a.jsxs)("div",{className:"edit-string-array-container",children:[(0,a.jsx)(c,{level:3,className:"section-title",children:n}),(0,a.jsx)("p",{className:"description",children:t}),(0,a.jsx)("div",{className:"edit-current-strings",children:null===h||void 0===h?void 0:h.map((function(e,n){return(0,a.jsx)(r.Z,{closable:!0,onClose:function(){f(n)},color:u,children:e},"tag-".concat(e,"-").concat(n))}))}),p&&(0,a.jsx)("div",{className:"continuous-status-section",children:(0,a.jsx)(o.E,{status:p})}),(0,a.jsx)("div",{className:"add-new-string-section",children:(0,a.jsx)(l.nv,{fieldName:"string-input",value:x,onChange:function(e){var n=e.value;j(n)},onPressEnter:function(){var e=x.trim();m(e),j("")},maxLength:d,placeholder:i,status:g})})]})};d.defaultProps={maxLength:50,description:null,submitStatus:null,continuousStatusMessage:null}},3664:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var a=t(47568),s=t(70655),i=t(85893),r=t(67294),l=t(94594),o=t(83192),c=t(25521),u=t(25964),d=t(35159),h=function(e){var n=e.apiPath,t=e.checked,h=e.reversed,f=void 0!==h&&h,m=e.configPath,g=void 0===m?"":m,p=e.disabled,v=void 0!==p&&p,x=e.fieldName,j=e.label,N=e.tip,C=e.useSubmit,S=e.onChange,b=(0,r.useState)(null),y=b[0],k=b[1],w=null,Z=((0,r.useContext)(d.aC)||{}).setFieldInConfigState,_=function(){k(null),clearTimeout(w),w=null},T=function(){var e=(0,a.Z)((function(e){var t;return(0,s.__generator)(this,(function(a){switch(a.label){case 0:return C?(k((0,o.kg)(o.Jk)),t=f?!e:e,[4,(0,u.Si)({apiPath:n,data:{value:t},onSuccess:function(){Z({fieldName:x,value:t,path:g}),k((0,o.kg)(o.zv))},onError:function(e){k((0,o.kg)(o.Un,"There was an error: ".concat(e)))}})]):[3,2];case 1:a.sent(),w=setTimeout(_,u.sI),a.label=2;case 2:return S&&S(e),[2]}}))}));return function(n){return e.apply(this,arguments)}}(),P=null!==y&&y.type===o.Jk;return(0,i.jsxs)("div",{className:"formfield-container toggleswitch-container",children:[j&&(0,i.jsx)("div",{className:"label-side",children:(0,i.jsx)("span",{className:"formfield-label",children:j})}),(0,i.jsxs)("div",{className:"input-side",children:[(0,i.jsxs)("div",{className:"input-group",children:[(0,i.jsx)(l.Z,{className:"switch field-".concat(x),loading:P,onChange:T,defaultChecked:t,checked:t,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:v}),(0,i.jsx)(c.E,{status:y})]}),(0,i.jsx)("p",{className:"field-tip",children:N})]})]})};h.defaultProps={apiPath:"",checked:!1,reversed:!1,configPath:"",disabled:!1,label:"",tip:"",useSubmit:!1,onChange:null}},42992:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return R}});var a=t(85893),s=t(67294),i=t(84485),r=t(14924),l=t(26042),o=t(69396),c=t(45200),u=t(35159),d=t(25964),h=t(3664),f=t(47568),m=t(70655),g=t(77916),p=t(71577),v=t(50888),x=t(88484),j=t(25521),N=t(83192),C=t(58827),S=["image/png","image/jpeg","image/gif"];var b=function(){var e,n=(0,s.useState)(null),t=n[0],i=n[1],r=(0,s.useState)(!1),l=r[0],o=r[1],c=(0,s.useState)(0),h=c[0],b=c[1],y=(0,s.useContext)(u.aC)||{},k=y.setFieldInConfigState,w=y.serverConfig,Z=null===w||void 0===w||null===(e=w.instanceDetails)||void 0===e?void 0:e.logo,_=(0,s.useState)(null),T=_[0],P=_[1],E=null,L=d.ZQ.apiPath,U=d.ZQ.tip,I=function(){P(null),clearTimeout(E),E=null},D=function(){var e=(0,f.Z)((function(){return(0,m.__generator)(this,(function(e){switch(e.label){case 0:return t===Z?[3,2]:(P((0,N.kg)(N.Jk)),[4,(0,d.Si)({apiPath:L,data:{value:t},onSuccess:function(){k({fieldName:"logo",value:t,path:""}),P((0,N.kg)(N.zv)),o(!1),b(Math.floor(100*Math.random()))},onError:function(e){P((0,N.kg)(N.Un,"There was an error: ".concat(e))),o(!1)}})]);case 1:e.sent(),E=setTimeout(I,d.sI),e.label=2;case 2:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),F="".concat(C.WB,"logo?random=").concat(h);return(0,a.jsxs)("div",{className:"formfield-container logo-upload-container",children:[(0,a.jsx)("div",{className:"label-side",children:(0,a.jsx)("span",{className:"formfield-label",children:"Logo"})}),(0,a.jsxs)("div",{className:"input-side",children:[(0,a.jsxs)("div",{className:"input-group",children:[(0,a.jsx)("img",{src:F,alt:"avatar",className:"logo-preview"}),(0,a.jsx)(g.Z,{name:"logo",listType:"picture",className:"avatar-uploader",showUploadList:!1,accept:S.join(","),beforeUpload:function(e){return o(!0),new Promise((function(n,t){if(!S.includes(e.type)){var a="File type is not supported: ".concat(e.type);return P((0,N.kg)(N.Un,"There was an error: ".concat(a))),E=setTimeout(I,d.sI),o(!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:D,disabled:l,children:l?(0,a.jsx)(v.Z,{style:{color:"white"}}):(0,a.jsx)(p.Z,{icon:(0,a.jsx)(x.Z,{})})})]}),(0,a.jsx)(j.E,{status:T}),(0,a.jsx)("p",{className:"field-tip",children:U})]})]})},y=i.Z.Title,k=function(){var e=(0,s.useState)(null),n=e[0],t=e[1],i=((0,s.useContext)(u.aC)||{}).serverConfig,f=i.instanceDetails,m=i.yp,g=m.instanceUrl;if((0,s.useEffect)((function(){t((0,l.Z)({},f,m))}),[f,m]),!n)return null;var p=function(e){var a=e.fieldName,s=e.value;t((0,o.Z)((0,l.Z)({},n),(0,r.Z)({},a,s)))},v=""!==g;return(0,a.jsxs)("div",{className:"edit-general-settings",children:[(0,a.jsx)(y,{level:3,className:"section-title",children:"Configure Instance Details"}),(0,a.jsx)("br",{}),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"name"},d.RE),{value:n.name,initialValue:f.name,onChange:p})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"instanceUrl"},d.cj),{value:n.instanceUrl,initialValue:m.instanceUrl,type:c.xA,onChange:p,onSubmit:function(){""===n.instanceUrl&&!0===m.enabled&&(0,d.Si)({apiPath:d.AP,data:{value:!1}})}})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"summary"},d.rs),{type:c.Sk,value:n.summary,initialValue:f.summary,onChange:p})),(0,a.jsx)(c.$7,(0,o.Z)((0,l.Z)({fieldName:"offlineMessage"},d.rd),{type:c.Sk,value:n.offlineMessage,initialValue:f.offlineMessage,onChange:p})),(0,a.jsx)(b,{}),(0,a.jsx)(h.Z,(0,o.Z)((0,l.Z)({fieldName:"hideViewerCount",useSubmit:!0},d._X),{checked:n.hideViewerCount,onChange:function(e){p({fieldName:"hideViewerCount",value:e})}})),(0,a.jsx)("br",{}),(0,a.jsxs)("p",{className:"description",children:["Increase your audience by appearing in the"," ",(0,a.jsx)("a",{href:"https://directory.owncast.online",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("strong",{children:"Owncast Directory"})}),". This is an external service run by the Owncast project."," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/directory/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn more"}),"."]}),!m.instanceUrl&&(0,a.jsxs)("p",{className:"description",children:["You must set your ",(0,a.jsx)("strong",{children:"Server URL"})," above to enable the directory."]}),(0,a.jsxs)("div",{className:"config-yp-container",children:[(0,a.jsx)(h.Z,(0,o.Z)((0,l.Z)({fieldName:"enabled",useSubmit:!0},d.P),{checked:n.enabled,disabled:!v})),(0,a.jsx)(h.Z,(0,o.Z)((0,l.Z)({fieldName:"nsfw",useSubmit:!0},d.EY),{checked:n.nsfw,disabled:!v}))]})]})},w=t(29815),Z=t(20550),_=t(24389),T=t(80939),P=i.Z.Title,E=function(){var e=(0,s.useState)(""),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useContext)(u.aC)||{},c=o.serverConfig,h=o.setFieldInConfigState,g=c.instanceDetails.tags,p=void 0===g?[]:g,v=d.y_.apiPath,x=d.y_.maxLength,j=d.y_.placeholder,C=d.y_.configPath,S=null;(0,s.useEffect)((function(){return function(){clearTimeout(S)}}),[]);var b=function(){l(null),S=null,clearTimeout(S)},y=function(){var e=(0,f.Z)((function(e){return(0,m.__generator)(this,(function(n){switch(n.label){case 0:return l((0,N.kg)(N.Jk)),[4,(0,d.Si)({apiPath:v,data:{value:e},onSuccess:function(){h({fieldName:"tags",value:e,path:C}),l((0,N.kg)(N.zv,"Tags updated.")),t(""),S=setTimeout(b,d.sI)},onError:function(e){l((0,N.kg)(N.Un,e)),S=setTimeout(b,d.sI)}})];case 1:return n.sent(),[2]}}))}));return function(n){return e.apply(this,arguments)}}();return(0,a.jsxs)("div",{className:"tag-editor-container",children:[(0,a.jsx)(P,{level:3,className:"section-title",children:"Add Tags"}),(0,a.jsx)("p",{className:"description",children:"This is a great way to categorize your Owncast server on the Directory!"}),(0,a.jsx)("div",{className:"edit-current-strings",children:p.map((function(e,n){return(0,a.jsx)(Z.Z,{closable:!0,onClose:function(){!function(e){b();var n=(0,w.Z)(p);n.splice(e,1),y(n)}(n)},color:T.Q,children:e},"tag-".concat(e,"-").concat(n))}))}),(0,a.jsx)("div",{className:"add-new-string-section",children:(0,a.jsx)(_.nv,{fieldName:"tag-input",value:n,className:"new-tag-input",onChange:function(e){var n=e.value;r||l(null),t(n)},onPressEnter:function(){b();var e=n.trim();if(""!==e)if(p.some((function(n){return n.toLowerCase()===e.toLowerCase()})))l((0,N.kg)(N.dG,"This tag is already used!"));else{var t=(0,w.Z)(p).concat([e]);y(t)}else l((0,N.kg)(N.dG,"Please enter a tag"))},maxLength:x,placeholder:j,status:r})})]})},L=t(72877),U=t(87685),I=t(58909),D=t(48825),F=t(76538),M=i.Z.Title,z=function(){var e=(0,s.useState)(""),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useState)(!1),c=o[0],h=o[1],g=(0,s.useContext)(u.aC)||{},v=g.serverConfig,x=g.setFieldInConfigState,C=v.instanceDetails,S=C.extraPageContent,b=null,y=function(){l(null),h(!1),clearTimeout(b),b=null};function k(){return(k=(0,f.Z)((function(){return(0,m.__generator)(this,(function(e){switch(e.label){case 0:return l((0,N.kg)(N.Jk)),[4,(0,d.Si)({apiPath:d.AA,data:{value:n},onSuccess:function(e){x({fieldName:"extraPageContent",value:n,path:"instanceDetails"}),l((0,N.kg)(N.zv,e))},onError:function(e){l((0,N.kg)(N.Un,e))}})];case 1:return e.sent(),b=setTimeout(y,d.sI),[2]}}))}))).apply(this,arguments)}return(0,s.useEffect)((function(){t(S)}),[C]),(0,a.jsxs)("div",{className:"edit-page-content",children:[(0,a.jsx)(M,{level:3,className:"section-title",children:"Custom Page Content"}),(0,a.jsxs)("p",{className:"description",children:["Edit the content of your page by using simple"," ",(0,a.jsx)("a",{href:"https://www.markdownguide.org/basic-syntax/",target:"_blank",rel:"noopener noreferrer",children:"Markdown syntax"}),"."]}),(0,a.jsx)(U.ZP,{value:n,placeholder:"Enter your custom page content here...",theme:I.F,onChange:function(e){t(e),e===S||c?e===S&&c&&h(!1):h(!0)},extensions:[(0,D.markdown)({base:D.markdownLanguage,codeLanguages:F.M})]}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[c&&(0,a.jsx)(p.Z,{type:"primary",onClick:function(){return k.apply(this,arguments)},children:"Save"}),(0,a.jsx)(j.E,{status:r})]})]})},O=t(61426),V=i.Z.Title,A=function(){var e=(0,s.useState)("/* Enter custom CSS here */"),n=e[0],t=e[1],i=(0,s.useState)(null),r=i[0],l=i[1],o=(0,s.useState)(!1),c=o[0],h=o[1],g=(0,s.useContext)(u.aC)||{},v=g.serverConfig,x=g.setFieldInConfigState,C=v.instanceDetails,S=C.customStyles,b=null,y=function(){l(null),h(!1),clearTimeout(b),b=null};function k(){return(k=(0,f.Z)((function(){return(0,m.__generator)(this,(function(e){switch(e.label){case 0:return l((0,N.kg)(N.Jk)),[4,(0,d.Si)({apiPath:d.d$,data:{value:n},onSuccess:function(e){x({fieldName:"customStyles",value:n,path:"instanceDetails"}),l((0,N.kg)(N.zv,e))},onError:function(e){l((0,N.kg)(N.Un,e))}})];case 1:return e.sent(),b=setTimeout(y,d.sI),[2]}}))}))).apply(this,arguments)}(0,s.useEffect)((function(){t(S)}),[C]);var w=s.useCallback((function(e){t(e),e===S||c?e===S&&c&&h(!1):h(!0)}),[]);return(0,a.jsxs)("div",{className:"edit-custom-css",children:[(0,a.jsx)(V,{level:3,className:"section-title",children:"Customize your page styling with CSS"}),(0,a.jsxs)("p",{className:"description",children:["Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the"," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/website/",rel:"noopener noreferrer",target:"_blank",children:"CSS & Components guide"}),"."]}),(0,a.jsx)("p",{className:"description",children:"Please input plain CSS text, as this will be directly injected onto your page during load."}),(0,a.jsx)(U.ZP,{value:n,placeholder:"/* Enter custom CSS here */",theme:I.F,height:"200px",extensions:[(0,O.css)()],onChange:w}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[c&&(0,a.jsx)(p.Z,{type:"primary",onClick:function(){return k.apply(this,arguments)},children:"Save"}),(0,a.jsx)(j.E,{status:r})]})]})},J=i.Z.Title;function R(){return(0,a.jsxs)("div",{className:"config-public-details-page",children:[(0,a.jsx)(J,{children:"General Settings"}),(0,a.jsxs)("p",{className:"description",children:["The following are displayed on your site to describe your stream and its content."," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/website/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"Learn more."})]}),(0,a.jsxs)("div",{className:"top-container",children:[(0,a.jsx)("div",{className:"form-module instance-details-container",children:(0,a.jsx)(k,{})}),(0,a.jsxs)("div",{className:"form-module social-items-container ",children:[(0,a.jsx)("div",{className:"form-module tags-module",children:(0,a.jsx)(E,{})}),(0,a.jsx)("div",{className:"form-module social-handles-container",children:(0,a.jsx)(L.h,{})})]})]}),(0,a.jsx)("div",{className:"form-module page-content-module",children:(0,a.jsx)(z,{})}),(0,a.jsx)("div",{className:"form-module page-content-module",children:(0,a.jsx)(A,{})})]})}}},function(e){e.O(0,[5762,8939,3903,4267,3626,7910,9257,2877,9774,2888,179],(function(){return n=86045,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/config-social-items-0c9506f9b2b2acaf.js b/static/web/_next/static/chunks/pages/admin/config-social-items-4259e7e71b649d89.js similarity index 96% rename from static/web/_next/static/chunks/pages/admin/config-social-items-0c9506f9b2b2acaf.js rename to static/web/_next/static/chunks/pages/admin/config-social-items-4259e7e71b649d89.js index 1fe2e3f83..d5e359f6c 100644 --- a/static/web/_next/static/chunks/pages/admin/config-social-items-0c9506f9b2b2acaf.js +++ b/static/web/_next/static/chunks/pages/admin/config-social-items-4259e7e71b649d89.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30],{48689:function(t,n,r){"use strict";r.d(n,{Z:function(){return a}});var e=r(1413),i=r(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"},u=r(42135),c=function(t,n){return i.createElement(u.Z,(0,e.Z)((0,e.Z)({},t),{},{ref:n,icon:o}))};c.displayName="DeleteOutlined";var a=i.forwardRef(c)},27561:function(t,n,r){var e=r(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,e(t)+1).replace(i,""):t}},67990:function(t){var n=/\s/;t.exports=function(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}},23279:function(t,n,r){var e=r(13218),i=r(7771),o=r(14841),u=Math.max,c=Math.min;t.exports=function(t,n,r){var a,f,s,l,v,d,m=0,p=!1,h=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(n){var r=a,e=f;return a=f=void 0,m=n,l=t.apply(e,r)}function g(t){return m=t,v=setTimeout(w,n),p?b(t):l}function x(t){var r=t-d;return void 0===d||r>=n||r<0||h&&t-m>=s}function w(){var t=i();if(x(t))return Z(t);v=setTimeout(w,function(t){var r=n-(t-d);return h?c(r,s-(t-m)):r}(t))}function Z(t){return v=void 0,y&&a?b(t):(a=f=void 0,l)}function _(){var t=i(),r=x(t);if(a=arguments,f=this,d=t,r){if(void 0===v)return g(d);if(h)return clearTimeout(v),v=setTimeout(w,n),b(d)}return void 0===v&&(v=setTimeout(w,n)),l}return n=o(n)||0,e(r)&&(p=!!r.leading,s=(h="maxWait"in r)?u(o(r.maxWait)||0,n):s,y="trailing"in r?!!r.trailing:y),_.cancel=function(){void 0!==v&&clearTimeout(v),m=0,a=d=f=v=void 0},_.flush=function(){return void 0===v?l:Z(i())},_}},33448:function(t,n,r){var e=r(44239),i=r(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==e(t)}},7771:function(t,n,r){var e=r(55639);t.exports=function(){return e.Date.now()}},14841:function(t,n,r){var e=r(27561),i=r(13218),o=r(33448),u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=e(t);var r=c.test(t);return r||a.test(t)?f(t.slice(2),r?2:8):u.test(t)?NaN:+t}},81009:function(t,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config-social-items",function(){return r(97063)}])},97063:function(t,n,r){"use strict";r.r(n),r.d(n,{default:function(){return c}});var e=r(85893),i=(r(67294),r(84485)),o=r(72877),u=i.Z.Title;function c(){return(0,e.jsxs)("div",{className:"config-social-items",children:[(0,e.jsx)(u,{children:"Social Items"}),(0,e.jsx)(o.h,{})]})}},20943:function(t,n,r){"use strict";function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r=n||r<0||h&&t-m>=s}function w(){var t=i();if(x(t))return Z(t);v=setTimeout(w,function(t){var r=n-(t-d);return h?c(r,s-(t-m)):r}(t))}function Z(t){return v=void 0,y&&a?b(t):(a=f=void 0,l)}function _(){var t=i(),r=x(t);if(a=arguments,f=this,d=t,r){if(void 0===v)return g(d);if(h)return clearTimeout(v),v=setTimeout(w,n),b(d)}return void 0===v&&(v=setTimeout(w,n)),l}return n=o(n)||0,e(r)&&(p=!!r.leading,s=(h="maxWait"in r)?u(o(r.maxWait)||0,n):s,y="trailing"in r?!!r.trailing:y),_.cancel=function(){void 0!==v&&clearTimeout(v),m=0,a=d=f=v=void 0},_.flush=function(){return void 0===v?l:Z(i())},_}},33448:function(t,n,r){var e=r(44239),i=r(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==e(t)}},7771:function(t,n,r){var e=r(55639);t.exports=function(){return e.Date.now()}},14841:function(t,n,r){var e=r(27561),i=r(13218),o=r(33448),u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=e(t);var r=c.test(t);return r||a.test(t)?f(t.slice(2),r?2:8):u.test(t)?NaN:+t}},81009:function(t,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config-social-items",function(){return r(97063)}])},97063:function(t,n,r){"use strict";r.r(n),r.d(n,{default:function(){return c}});var e=r(85893),i=(r(67294),r(84485)),o=r(72877),u=i.Z.Title;function c(){return(0,e.jsxs)("div",{className:"config-social-items",children:[(0,e.jsx)(u,{children:"Social Items"}),(0,e.jsx)(o.h,{})]})}},20943:function(t,n,r){"use strict";function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r=e||n<0||m&&t-p>=f}function g(){var t=i();if(x(t))return _(t);d=setTimeout(g,function(t){var n=e-(t-v);return m?u(n,f-(t-p)):n}(t))}function _(t){return d=void 0,E&&s?y(t):(s=c=void 0,l)}function I(){var t=i(),n=x(t);if(s=arguments,c=this,v=t,n){if(void 0===d)return w(v);if(m)return clearTimeout(d),d=setTimeout(g,e),y(v)}return void 0===d&&(d=setTimeout(g,e)),l}return e=o(e)||0,r(n)&&(h=!!n.leading,f=(m="maxWait"in n)?a(o(n.maxWait)||0,e):f,E="trailing"in n?!!n.trailing:E),I.cancel=function(){void 0!==d&&clearTimeout(d),p=0,s=v=c=d=void 0},I.flush=function(){return void 0===d?l:_(i())},I}},33448:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},14841:function(t,e,n){var r=n(27561),i=n(13218),o=n(33448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||s.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},10203:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/actions",function(){return n(13268)}])},13268:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var r=n(47568),i=n(70655),o=n(85893),a=n(67294),u=n(84485),s=n(93626),c=n(58091),f=n(58827),l=n(2766),d=u.Z.Title,v=u.Z.Paragraph;function p(){var t=(0,a.useState)([]),e=t[0],n=t[1],u=(0,a.useState)(0),p=u[0],h=u[1],m=(0,a.useState)(0),E=m[0],y=m[1],w=function(){var t=(0,r.Z)((function(){var t,e,r,o,a,u;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),50,t=50*E,e="".concat(f.op,"?offset=").concat(t,"&limit=").concat(50),[4,(0,f.rQ)(e,{auth:!0})];case 1:return r=i.sent(),o=r.results,a=r.total,h(a),(0,l.Qr)(o)?n([]):n(o),[3,3];case 2:return u=i.sent(),console.log("==== error",u),[3,3];case 3:return[2]}}))}));return function(){return t.apply(this,arguments)}}();(0,a.useEffect)((function(){w()}),[E]);var x,g,_=[{title:"Action",dataIndex:"type",key:"type",width:50,render:function(t,e){var n,r;switch(e.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",r="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",r="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",r="Follow";break;default:n=""}return(0,o.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,o.jsx)("img",{src:n,width:"70%",alt:r,title:r}),(0,o.jsx)("div",{style:{fontSize:"0.7rem"},children:r})]})}},{title:"From",dataIndex:"actorIRI",key:"from",render:function(t,e){return(0,o.jsx)("a",{href:e.actorIRI,children:e.actorIRI})}},{title:"When",dataIndex:"timestamp",key:"timestamp",render:function(t,e){var n=new Date(e.timestamp);return(0,c.Z)(n,"P pp")}}];return(0,o.jsxs)("div",{children:[(0,o.jsx)(d,{level:3,children:"Fediverse Actions"}),(0,o.jsx)(v,{children:"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."}),(x=e,g=_,(0,o.jsx)(s.Z,{dataSource:x,columns:g,size:"small",rowKey:function(t){return t.iri},pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:p},onChange:function(t){var e=t.current;y(e)}}))]})}}},function(t){t.O(0,[8939,3903,3698,3626,8091,9774,2888,179],(function(){return e=10203,t(t.s=e);var e}));var e=t.O();_N_E=e}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{27561:function(t,e,n){var r=n(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},23279:function(t,e,n){var r=n(13218),i=n(7771),o=n(14841),a=Math.max,u=Math.min;t.exports=function(t,e,n){var s,c,f,l,d,v,p=0,h=!1,m=!1,E=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=s,r=c;return s=c=void 0,p=e,l=t.apply(r,n)}function w(t){return p=t,d=setTimeout(g,e),h?y(t):l}function x(t){var n=t-v;return void 0===v||n>=e||n<0||m&&t-p>=f}function g(){var t=i();if(x(t))return _(t);d=setTimeout(g,function(t){var n=e-(t-v);return m?u(n,f-(t-p)):n}(t))}function _(t){return d=void 0,E&&s?y(t):(s=c=void 0,l)}function I(){var t=i(),n=x(t);if(s=arguments,c=this,v=t,n){if(void 0===d)return w(v);if(m)return clearTimeout(d),d=setTimeout(g,e),y(v)}return void 0===d&&(d=setTimeout(g,e)),l}return e=o(e)||0,r(n)&&(h=!!n.leading,f=(m="maxWait"in n)?a(o(n.maxWait)||0,e):f,E="trailing"in n?!!n.trailing:E),I.cancel=function(){void 0!==d&&clearTimeout(d),p=0,s=v=c=d=void 0},I.flush=function(){return void 0===d?l:_(i())},I}},33448:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},14841:function(t,e,n){var r=n(27561),i=n(13218),o=n(33448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||s.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},10203:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/actions",function(){return n(13268)}])},13268:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var r=n(47568),i=n(70655),o=n(85893),a=n(67294),u=n(84485),s=n(93626),c=n(58091),f=n(58827),l=n(2766),d=u.Z.Title,v=u.Z.Paragraph;function p(){var t=(0,a.useState)([]),e=t[0],n=t[1],u=(0,a.useState)(0),p=u[0],h=u[1],m=(0,a.useState)(0),E=m[0],y=m[1],w=function(){var t=(0,r.Z)((function(){var t,e,r,o,a,u;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),50,t=50*E,e="".concat(f.op,"?offset=").concat(t,"&limit=").concat(50),[4,(0,f.rQ)(e,{auth:!0})];case 1:return r=i.sent(),o=r.results,a=r.total,h(a),(0,l.Qr)(o)?n([]):n(o),[3,3];case 2:return u=i.sent(),console.log("==== error",u),[3,3];case 3:return[2]}}))}));return function(){return t.apply(this,arguments)}}();(0,a.useEffect)((function(){w()}),[E]);var x,g,_=[{title:"Action",dataIndex:"type",key:"type",width:50,render:function(t,e){var n,r;switch(e.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",r="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",r="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",r="Follow";break;default:n=""}return(0,o.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,o.jsx)("img",{src:n,width:"70%",alt:r,title:r}),(0,o.jsx)("div",{style:{fontSize:"0.7rem"},children:r})]})}},{title:"From",dataIndex:"actorIRI",key:"from",render:function(t,e){return(0,o.jsx)("a",{href:e.actorIRI,children:e.actorIRI})}},{title:"When",dataIndex:"timestamp",key:"timestamp",render:function(t,e){var n=new Date(e.timestamp);return(0,c.Z)(n,"P pp")}}];return(0,o.jsxs)("div",{children:[(0,o.jsx)(d,{level:3,children:"Fediverse Actions"}),(0,o.jsx)(v,{children:"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."}),(x=e,g=_,(0,o.jsx)(s.Z,{dataSource:x,columns:g,size:"small",rowKey:function(t){return t.iri},pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:p},onChange:function(t){var e=t.current;y(e)}}))]})}}},function(t){t.O(0,[8939,3903,4267,3626,8091,9774,2888,179],(function(){return e=10203,t(t.s=e);var e}));var e=t.O();_N_E=e}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/federation/followers-9a4b0ecf039c6197.js b/static/web/_next/static/chunks/pages/admin/federation/followers-7c6d59427a9c1b69.js similarity index 99% rename from static/web/_next/static/chunks/pages/admin/federation/followers-9a4b0ecf039c6197.js rename to static/web/_next/static/chunks/pages/admin/federation/followers-7c6d59427a9c1b69.js index ee835d9b7..72a8f8733 100644 --- a/static/web/_next/static/chunks/pages/admin/federation/followers-9a4b0ecf039c6197.js +++ b/static/web/_next/static/chunks/pages/admin/federation/followers-7c6d59427a9c1b69.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2476],{24093:function(e,t,n){"use strict";n.d(t,{C:function(){return S}});var r=n(87462),a=n(4942),i=n(71002),o=n(97685),c=n(94184),s=n.n(c),u=n(48555),l=n(42550),f=n(67294),d=n(53124),m=n(25378),p=n(24308),h=f.createContext("default"),v=function(e){var t=e.children,n=e.size;return f.createElement(h.Consumer,null,(function(e){return f.createElement(h.Provider,{value:n||e},t)}))},g=h,y=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);a=t||n<0||v&&e-p>=l}function Z(){var e=a();if(w(e))return b(e);d=setTimeout(Z,function(e){var n=t-(e-m);return v?c(n,l-(e-p)):n}(e))}function b(e){return d=void 0,g&&s?y(e):(s=u=void 0,f)}function k(){var e=a(),n=w(e);if(s=arguments,u=this,m=e,n){if(void 0===d)return x(m);if(v)return clearTimeout(d),d=setTimeout(Z,t),y(m)}return void 0===d&&(d=setTimeout(Z,t)),f}return t=i(t)||0,r(n)&&(h=!!n.leading,l=(v="maxWait"in n)?o(i(n.maxWait)||0,t):l,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==d&&clearTimeout(d),p=0,s=m=u=d=void 0},k.flush=function(){return void 0===d?f:b(a())},k}},33448:function(e,t,n){var r=n(44239),a=n(37005);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),a=n(13218),i=n(33448),o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):o.test(e)?NaN:+e}},89675:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/followers",function(){return n(72301)}])},72301:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return j}});var r=n(47568),a=n(29815),i=n(70655),o=n(85893),c=n(67294),s=n(93626),u=n(24093),l=n(71577),f=n(2944),d=n(58091),m=n(1413),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},h=n(42135),v=function(e,t){return c.createElement(h.Z,(0,m.Z)((0,m.Z)({},e),{},{ref:t,icon:p}))};v.displayName="UserAddOutlined";var g=c.forwardRef(v),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 655.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 518 759.6 444.7 759.6 362c0-137-110.8-248-247.5-248S264.7 225 264.7 362c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 901.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 641.2 432.2 610 512.2 610c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 534c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 362c0-45.9 17.9-89.1 50.3-121.6S466.3 190 512.2 190s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 362c0 45.9-17.9 89.1-50.3 121.6C601.1 516.1 558 534 512.2 534zM880 772H640c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-delete",theme:"outlined"},x=function(e,t){return c.createElement(h.Z,(0,m.Z)((0,m.Z)({},e),{},{ref:t,icon:y}))};x.displayName="UserDeleteOutlined";var w=c.forwardRef(x),Z=n(35159),b=n(58827),k=n(2766);function j(){var e=function(e,t){return(0,o.jsx)(s.Z,{dataSource:e,columns:t,size:"small",rowKey:function(e){return e.link},pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:S},onChange:function(e){var t=e.current;_(t)}})},t=(0,c.useState)([]),n=t[0],m=t[1],p=(0,c.useState)([]),h=p[0],v=p[1],y=(0,c.useState)([]),x=y[0],j=y[1],E=(0,c.useState)(0),S=E[0],C=E[1],O=(0,c.useState)(0),T=O[0],_=O[1],N=((0,c.useContext)(Z.aC)||{}).serverConfig.federation.isPrivate,z=function(){var e=(0,r.Z)((function(){var e,t,n,r,a,o,c,s;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),50,e=50*T,t="".concat(b.HP,"?offset=").concat(e,"&limit=").concat(50),[4,(0,b.rQ)(t,{auth:!0})];case 1:return n=i.sent(),r=n.results,a=n.total,(0,k.Qr)(r)?j([]):(C(a),j(r)),[4,(0,b.rQ)(b.E8,{auth:!0})];case 2:return o=i.sent(),(0,k.Qr)(o)?m([]):m(o),[4,(0,b.rQ)(b.Y9,{auth:!0})];case 3:return c=i.sent(),(0,k.Qr)(h)?v([]):v(c),[3,5];case 4:return s=i.sent(),console.log("==== error",s),[3,5];case 5:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){z()}),[]);var I=[{title:"",dataIndex:"image",key:"image",width:90,render:function(e){return(0,o.jsx)(u.C,{size:40,src:e||"/img/logo.svg"})}},{title:"Name",dataIndex:"name",key:"name",render:function(e,t){return(0,o.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:t.name||t.username})}},{title:"URL",dataIndex:"link",key:"link",render:function(e,t){return(0,o.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:t.link})}}];function P(e){return A.apply(this,arguments)}function A(){return(A=(0,r.Z)((function(e){var t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,b.rQ)(b.kb,{auth:!0,method:"POST",data:{actorIRI:e.link,approved:!0}})];case 1:return n.sent(),z(),[3,3];case 2:return t=n.sent(),console.error(t),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}function D(e){return R.apply(this,arguments)}function R(){return(R=(0,r.Z)((function(e){var t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,b.rQ)(b.kb,{auth:!0,method:"POST",data:{actorIRI:e.link,approved:!1}})];case 1:return n.sent(),z(),[3,3];case 2:return t=n.sent(),console.error(t),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}var F=(0,a.Z)(I);F.unshift({title:"Approve",dataIndex:null,key:null,render:function(e){return(0,o.jsx)(l.Z,{type:"primary",icon:(0,o.jsx)(g,{}),onClick:function(){P(e)}})},width:50},{title:"Reject",dataIndex:null,key:null,render:function(e){return(0,o.jsx)(l.Z,{type:"primary",danger:!0,icon:(0,o.jsx)(w,{}),onClick:function(){D(e)}})},width:50}),F.push({title:"Requested",dataIndex:"timestamp",key:"requested",width:200,render:function(e){var t=new Date(e);return(0,o.jsx)(o.Fragment,{children:(0,d.Z)(t,"P")})},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"});var M=(0,a.Z)(I);M.unshift({title:"Approve",dataIndex:null,key:null,render:function(e){return(0,o.jsx)(l.Z,{type:"primary",icon:(0,o.jsx)(g,{}),size:"large",onClick:function(){P(e)}})},width:50}),M.push({title:"Requested",dataIndex:"timestamp",key:"requested",width:200,render:function(e){var t=new Date(e);return(0,o.jsx)(o.Fragment,{children:(0,d.Z)(t,"P")})},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Rejected/Blocked",dataIndex:"timestamp",key:"disabled_at",width:200,render:function(e){var t=new Date(e);return(0,o.jsx)(o.Fragment,{children:(0,d.Z)(t,"P")})},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"});var Q=(0,a.Z)(I);Q.push({title:"Added",dataIndex:"timestamp",key:"timestamp",width:200,render:function(e){var t=new Date(e);return(0,o.jsx)(o.Fragment,{children:(0,d.Z)(t,"P")})},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Remove",dataIndex:null,key:null,render:function(e){return(0,o.jsx)(l.Z,{type:"primary",danger:!0,icon:(0,o.jsx)(w,{}),onClick:function(){D(e)}})},width:50});var q=(0,o.jsxs)("span",{children:["Followers ",x.length>0&&"(".concat(x.length,")")]}),H=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"The following accounts get notified when you go live or send a post."}),e(x,Q)," "]}),W=(0,o.jsxs)("span",{children:["Requests ",n.length>0&&"(".concat(n.length,")")]}),B=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("p",{children:["The following people are requesting to follow your Owncast server on the"," ",(0,o.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,F)]}),U=[{label:q,key:"1",children:H},N&&{label:W,key:"2",children:B},{label:(0,o.jsxs)("span",{children:["Blocked ",h.length>0&&"(".concat(h.length,")")]}),key:"3",children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"The following people were either rejected or blocked by you. You can approve them as a follower."}),(0,o.jsx)("p",{children:e(h,M)})]})}];return(0,o.jsx)("div",{className:"followers-section",children:(0,o.jsx)(f.Z,{defaultActiveKey:"1",items:U})})}},20943:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t||n<0||v&&e-p>=l}function Z(){var e=a();if(w(e))return b(e);d=setTimeout(Z,function(e){var n=t-(e-m);return v?c(n,l-(e-p)):n}(e))}function b(e){return d=void 0,g&&s?y(e):(s=u=void 0,f)}function k(){var e=a(),n=w(e);if(s=arguments,u=this,m=e,n){if(void 0===d)return x(m);if(v)return clearTimeout(d),d=setTimeout(Z,t),y(m)}return void 0===d&&(d=setTimeout(Z,t)),f}return t=i(t)||0,r(n)&&(h=!!n.leading,l=(v="maxWait"in n)?o(i(n.maxWait)||0,t):l,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==d&&clearTimeout(d),p=0,s=m=u=d=void 0},k.flush=function(){return void 0===d?f:b(a())},k}},33448:function(e,t,n){var r=n(44239),a=n(37005);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),a=n(13218),i=n(33448),o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):o.test(e)?NaN:+e}},89675:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/followers",function(){return n(72301)}])},72301:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return j}});var r=n(47568),a=n(29815),i=n(70655),o=n(85893),c=n(67294),s=n(93626),u=n(24093),l=n(71577),f=n(2944),d=n(58091),m=n(1413),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},h=n(42135),v=function(e,t){return c.createElement(h.Z,(0,m.Z)((0,m.Z)({},e),{},{ref:t,icon:p}))};v.displayName="UserAddOutlined";var g=c.forwardRef(v),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 655.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 518 759.6 444.7 759.6 362c0-137-110.8-248-247.5-248S264.7 225 264.7 362c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 901.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 641.2 432.2 610 512.2 610c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 534c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 362c0-45.9 17.9-89.1 50.3-121.6S466.3 190 512.2 190s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 362c0 45.9-17.9 89.1-50.3 121.6C601.1 516.1 558 534 512.2 534zM880 772H640c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-delete",theme:"outlined"},x=function(e,t){return c.createElement(h.Z,(0,m.Z)((0,m.Z)({},e),{},{ref:t,icon:y}))};x.displayName="UserDeleteOutlined";var w=c.forwardRef(x),Z=n(35159),b=n(58827),k=n(2766);function j(){var e=function(e,t){return(0,o.jsx)(s.Z,{dataSource:e,columns:t,size:"small",rowKey:function(e){return e.link},pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:S},onChange:function(e){var t=e.current;_(t)}})},t=(0,c.useState)([]),n=t[0],m=t[1],p=(0,c.useState)([]),h=p[0],v=p[1],y=(0,c.useState)([]),x=y[0],j=y[1],E=(0,c.useState)(0),S=E[0],C=E[1],O=(0,c.useState)(0),T=O[0],_=O[1],N=((0,c.useContext)(Z.aC)||{}).serverConfig.federation.isPrivate,z=function(){var e=(0,r.Z)((function(){var e,t,n,r,a,o,c,s;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),50,e=50*T,t="".concat(b.HP,"?offset=").concat(e,"&limit=").concat(50),[4,(0,b.rQ)(t,{auth:!0})];case 1:return n=i.sent(),r=n.results,a=n.total,(0,k.Qr)(r)?j([]):(C(a),j(r)),[4,(0,b.rQ)(b.E8,{auth:!0})];case 2:return o=i.sent(),(0,k.Qr)(o)?m([]):m(o),[4,(0,b.rQ)(b.Y9,{auth:!0})];case 3:return c=i.sent(),(0,k.Qr)(h)?v([]):v(c),[3,5];case 4:return s=i.sent(),console.log("==== error",s),[3,5];case 5:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){z()}),[]);var I=[{title:"",dataIndex:"image",key:"image",width:90,render:function(e){return(0,o.jsx)(u.C,{size:40,src:e||"/img/logo.svg"})}},{title:"Name",dataIndex:"name",key:"name",render:function(e,t){return(0,o.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:t.name||t.username})}},{title:"URL",dataIndex:"link",key:"link",render:function(e,t){return(0,o.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:t.link})}}];function P(e){return A.apply(this,arguments)}function A(){return(A=(0,r.Z)((function(e){var t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,b.rQ)(b.kb,{auth:!0,method:"POST",data:{actorIRI:e.link,approved:!0}})];case 1:return n.sent(),z(),[3,3];case 2:return t=n.sent(),console.error(t),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}function D(e){return R.apply(this,arguments)}function R(){return(R=(0,r.Z)((function(e){var t;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,b.rQ)(b.kb,{auth:!0,method:"POST",data:{actorIRI:e.link,approved:!1}})];case 1:return n.sent(),z(),[3,3];case 2:return t=n.sent(),console.error(t),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}var F=(0,a.Z)(I);F.unshift({title:"Approve",dataIndex:null,key:null,render:function(e){return(0,o.jsx)(l.Z,{type:"primary",icon:(0,o.jsx)(g,{}),onClick:function(){P(e)}})},width:50},{title:"Reject",dataIndex:null,key:null,render:function(e){return(0,o.jsx)(l.Z,{type:"primary",danger:!0,icon:(0,o.jsx)(w,{}),onClick:function(){D(e)}})},width:50}),F.push({title:"Requested",dataIndex:"timestamp",key:"requested",width:200,render:function(e){var t=new Date(e);return(0,o.jsx)(o.Fragment,{children:(0,d.Z)(t,"P")})},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"});var M=(0,a.Z)(I);M.unshift({title:"Approve",dataIndex:null,key:null,render:function(e){return(0,o.jsx)(l.Z,{type:"primary",icon:(0,o.jsx)(g,{}),size:"large",onClick:function(){P(e)}})},width:50}),M.push({title:"Requested",dataIndex:"timestamp",key:"requested",width:200,render:function(e){var t=new Date(e);return(0,o.jsx)(o.Fragment,{children:(0,d.Z)(t,"P")})},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Rejected/Blocked",dataIndex:"timestamp",key:"disabled_at",width:200,render:function(e){var t=new Date(e);return(0,o.jsx)(o.Fragment,{children:(0,d.Z)(t,"P")})},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"});var Q=(0,a.Z)(I);Q.push({title:"Added",dataIndex:"timestamp",key:"timestamp",width:200,render:function(e){var t=new Date(e);return(0,o.jsx)(o.Fragment,{children:(0,d.Z)(t,"P")})},sorter:function(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Remove",dataIndex:null,key:null,render:function(e){return(0,o.jsx)(l.Z,{type:"primary",danger:!0,icon:(0,o.jsx)(w,{}),onClick:function(){D(e)}})},width:50});var q=(0,o.jsxs)("span",{children:["Followers ",x.length>0&&"(".concat(x.length,")")]}),H=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"The following accounts get notified when you go live or send a post."}),e(x,Q)," "]}),W=(0,o.jsxs)("span",{children:["Requests ",n.length>0&&"(".concat(n.length,")")]}),B=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("p",{children:["The following people are requesting to follow your Owncast server on the"," ",(0,o.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,F)]}),U=[{label:q,key:"1",children:H},N&&{label:W,key:"2",children:B},{label:(0,o.jsxs)("span",{children:["Blocked ",h.length>0&&"(".concat(h.length,")")]}),key:"3",children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"The following people were either rejected or blocked by you. You can approve them as a follower."}),(0,o.jsx)("p",{children:e(h,M)})]})}];return(0,o.jsx)("div",{className:"followers-section",children:(0,o.jsx)(f.Z,{defaultActiveKey:"1",items:U})})}},20943:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n||t<0||g&&e-p>=f}function _(){var e=i();if(y(e))return T(e);v=setTimeout(_,function(e){var t=n-(e-d);return g?a(t,f-(e-p)):t}(e))}function T(e){return v=void 0,x&&c?h(e):(c=s=void 0,l)}function E(){var e=i(),t=y(e);if(c=arguments,s=this,d=e,t){if(void 0===v)return w(d);if(g)return clearTimeout(v),v=setTimeout(_,n),h(d)}return void 0===v&&(v=setTimeout(_,n)),l}return n=o(n)||0,r(t)&&(m=!!t.leading,f=(g="maxWait"in t)?u(o(t.maxWait)||0,n):f,x="trailing"in t?!!t.trailing:x),E.cancel=function(){void 0!==v&&clearTimeout(v),p=0,c=d=s=v=void 0},E.flush=function(){return void 0===v?l:T(i())},E}},33448:function(e,n,t){var r=t(44239),i=t(37005);e.exports=function(e){return"symbol"==typeof e||i(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),i=t(13218),o=t(33448),u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=i(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=a.test(e);return t||c.test(e)?s(e.slice(2),t?2:8):u.test(e)?NaN:+e}},23426:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return t(65502)}])},38856:function(e,n,t){"use strict";t.d(n,{o:function(){return v}});var r=t(85893),i=(t(67294),t(84485)),o=t(20550),u=t(93626),a=t(53731),c=t(58091),s=i.Z.Title;function f(e,n){var t="black";return"warning"===n.level?t="orange":"error"===n.level&&(t="red"),(0,r.jsx)(o.Z,{color:t,children:e})}function l(e){return(0,r.jsx)(a.Z,{children:e})}var v=function(e){var n=e.logs,t=e.pageSize;if(!(null===n||void 0===n?void 0:n.length))return null;var i=[{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:f},{title:"Timestamp",dataIndex:"time",key:"time",render:function(e){var n=new Date(e);return(0,c.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:l}];return(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(s,{children:"Logs"}),(0,r.jsx)(u.Z,{size:"middle",dataSource:n,columns:i,rowKey:function(e){return e.time},pagination:{pageSize:t||20}})]})}},65502:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return s}});var r=t(47568),i=t(70655),o=t(85893),u=t(67294),a=t(38856),c=t(58827);function s(){var e=(0,u.useState)([]),n=e[0],t=e[1],s=function(){var e=(0,r.Z)((function(){var e,n;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,c.rQ)(c.sG)];case 1:return e=r.sent(),t(e),[3,3];case 2:return n=r.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,u.useEffect)((function(){var e;return setInterval(s,5e3),s(),e=setInterval(s,5e3),function(){clearInterval(e)}}),[]),(0,o.jsx)(a.o,{logs:n,pageSize:20})}}},function(e){e.O(0,[8939,3903,3698,3626,8091,2429,9774,2888,179],(function(){return n=23426,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{27561:function(e,n,t){var r=t(67990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):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),i=t(7771),o=t(14841),u=Math.max,a=Math.min;e.exports=function(e,n,t){var c,s,f,l,v,d,p=0,m=!1,g=!1,x=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(n){var t=c,r=s;return c=s=void 0,p=n,l=e.apply(r,t)}function w(e){return p=e,v=setTimeout(_,n),m?h(e):l}function y(e){var t=e-d;return void 0===d||t>=n||t<0||g&&e-p>=f}function _(){var e=i();if(y(e))return T(e);v=setTimeout(_,function(e){var t=n-(e-d);return g?a(t,f-(e-p)):t}(e))}function T(e){return v=void 0,x&&c?h(e):(c=s=void 0,l)}function E(){var e=i(),t=y(e);if(c=arguments,s=this,d=e,t){if(void 0===v)return w(d);if(g)return clearTimeout(v),v=setTimeout(_,n),h(d)}return void 0===v&&(v=setTimeout(_,n)),l}return n=o(n)||0,r(t)&&(m=!!t.leading,f=(g="maxWait"in t)?u(o(t.maxWait)||0,n):f,x="trailing"in t?!!t.trailing:x),E.cancel=function(){void 0!==v&&clearTimeout(v),p=0,c=d=s=v=void 0},E.flush=function(){return void 0===v?l:T(i())},E}},33448:function(e,n,t){var r=t(44239),i=t(37005);e.exports=function(e){return"symbol"==typeof e||i(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),i=t(13218),o=t(33448),u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=i(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=a.test(e);return t||c.test(e)?s(e.slice(2),t?2:8):u.test(e)?NaN:+e}},23426:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return t(65502)}])},38856:function(e,n,t){"use strict";t.d(n,{o:function(){return v}});var r=t(85893),i=(t(67294),t(84485)),o=t(20550),u=t(93626),a=t(53731),c=t(58091),s=i.Z.Title;function f(e,n){var t="black";return"warning"===n.level?t="orange":"error"===n.level&&(t="red"),(0,r.jsx)(o.Z,{color:t,children:e})}function l(e){return(0,r.jsx)(a.Z,{children:e})}var v=function(e){var n=e.logs,t=e.pageSize;if(!(null===n||void 0===n?void 0:n.length))return null;var i=[{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:f},{title:"Timestamp",dataIndex:"time",key:"time",render:function(e){var n=new Date(e);return(0,c.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:l}];return(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(s,{children:"Logs"}),(0,r.jsx)(u.Z,{size:"middle",dataSource:n,columns:i,rowKey:function(e){return e.time},pagination:{pageSize:t||20}})]})}},65502:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return s}});var r=t(47568),i=t(70655),o=t(85893),u=t(67294),a=t(38856),c=t(58827);function s(){var e=(0,u.useState)([]),n=e[0],t=e[1],s=function(){var e=(0,r.Z)((function(){var e,n;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,c.rQ)(c.sG)];case 1:return e=r.sent(),t(e),[3,3];case 2:return n=r.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,u.useEffect)((function(){var e;return setInterval(s,5e3),s(),e=setInterval(s,5e3),function(){clearInterval(e)}}),[]),(0,o.jsx)(a.o,{logs:n,pageSize:20})}}},function(e){e.O(0,[8939,3903,4267,3626,8091,2429,9774,2888,179],(function(){return n=23426,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/upgrade-a2690af66d4d3214.js b/static/web/_next/static/chunks/pages/admin/upgrade-20cbc2c681a2512f.js similarity index 92% rename from static/web/_next/static/chunks/pages/admin/upgrade-a2690af66d4d3214.js rename to static/web/_next/static/chunks/pages/admin/upgrade-20cbc2c681a2512f.js index cef8b4294..d7307b265 100644 --- a/static/web/_next/static/chunks/pages/admin/upgrade-a2690af66d4d3214.js +++ b/static/web/_next/static/chunks/pages/admin/upgrade-20cbc2c681a2512f.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return r(73143)}])},73143:function(e,n,r){"use strict";r.r(n);var t=r(47568),a=r(26042),u=r(70655),s=r(85893),i=r(67294),c=r(16153),l=r(84485),o=r(93626),d=r(58827),f=l.Z.Title,h=function(e){var n=Object.values(e),r=[{title:"Name",dataIndex:"name",key:"name",render:function(e,n){return(0,s.jsx)("a",{href:n.browser_download_url,children:e})}},{title:"Size",dataIndex:"size",key:"size",render:function(e){return"".concat((e/1024/1024).toFixed(2)," MB")}}];return(0,s.jsx)(o.Z,{dataSource:n,columns:r,rowKey:function(e){return e.id},size:"large",pagination:!1})};n.default=function(){var e=(0,i.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),n=e[0],r=e[1],l=function(){var e=(0,t.Z)((function(){var e,n;return(0,u.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,d.Kt)()];case 1:return e=t.sent(),r(e),[3,3];case 2:return n=t.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.useEffect)((function(){l()}),[]),n?(0,s.jsxs)("div",{className:"upgrade-page",children:[(0,s.jsx)(f,{level:2,children:(0,s.jsx)("a",{href:n.html_url,children:n.name})}),(0,s.jsx)(f,{level:5,children:new Date(n.created_at).toDateString()}),(0,s.jsx)(c.D,{children:n.body}),(0,s.jsx)("h3",{children:"Downloads"}),(0,s.jsx)(h,(0,a.Z)({},n.assets))]}):null}}},function(e){e.O(0,[8939,3903,3698,3626,3812,9774,2888,179],(function(){return n=70918,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return r(73143)}])},73143:function(e,n,r){"use strict";r.r(n);var t=r(47568),a=r(26042),u=r(70655),s=r(85893),i=r(67294),c=r(16153),l=r(84485),o=r(93626),d=r(58827),f=l.Z.Title,h=function(e){var n=Object.values(e),r=[{title:"Name",dataIndex:"name",key:"name",render:function(e,n){return(0,s.jsx)("a",{href:n.browser_download_url,children:e})}},{title:"Size",dataIndex:"size",key:"size",render:function(e){return"".concat((e/1024/1024).toFixed(2)," MB")}}];return(0,s.jsx)(o.Z,{dataSource:n,columns:r,rowKey:function(e){return e.id},size:"large",pagination:!1})};n.default=function(){var e=(0,i.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),n=e[0],r=e[1],l=function(){var e=(0,t.Z)((function(){var e,n;return(0,u.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,d.Kt)()];case 1:return e=t.sent(),r(e),[3,3];case 2:return n=t.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.useEffect)((function(){l()}),[]),n?(0,s.jsxs)("div",{className:"upgrade-page",children:[(0,s.jsx)(f,{level:2,children:(0,s.jsx)("a",{href:n.html_url,children:n.name})}),(0,s.jsx)(f,{level:5,children:new Date(n.created_at).toDateString()}),(0,s.jsx)(c.D,{children:n.body}),(0,s.jsx)("h3",{children:"Downloads"}),(0,s.jsx)(h,(0,a.Z)({},n.assets))]}):null}}},function(e){e.O(0,[8939,3903,4267,3626,3812,9774,2888,179],(function(){return n=70918,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/viewer-info-fcaef066e0a36623.js b/static/web/_next/static/chunks/pages/admin/viewer-info-b295d263f1fe0bd8.js similarity index 99% rename from static/web/_next/static/chunks/pages/admin/viewer-info-fcaef066e0a36623.js rename to static/web/_next/static/chunks/pages/admin/viewer-info-b295d263f1fe0bd8.js index 3ecffc9de..453796dea 100644 --- a/static/web/_next/static/chunks/pages/admin/viewer-info-fcaef066e0a36623.js +++ b/static/web/_next/static/chunks/pages/admin/viewer-info-b295d263f1fe0bd8.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6109],{87547:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(1413),a=r(67294),s={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"},i=r(42135),o=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:s}))};o.displayName="UserOutlined";var u=a.forwardRef(o)},77349:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(83946),a=r(19013),s=r(13882);function i(e,t){(0,s.Z)(2,arguments);var r=(0,a.Z)(e),i=(0,n.Z)(t);return isNaN(i)?new Date(NaN):i?(r.setDate(r.getDate()+i),r):r}},11640:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(83946),a=r(19013),s=r(13882);function i(e,t){(0,s.Z)(2,arguments);var r=(0,a.Z)(e),i=(0,n.Z)(t);if(isNaN(i))return new Date(NaN);if(!i)return r;var o=r.getDate(),u=new Date(r.getTime());u.setMonth(r.getMonth()+i+1,0);var c=u.getDate();return o>=c?u:(r.setFullYear(u.getFullYear(),u.getMonth(),o),r)}},92794:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/viewer-info",function(){return r(80961)}])},51222:function(e,t,r){"use strict";r.d(t,{k:function(){return l}});var n=r(85893),a=r(29217),s=r(92616),i=r.n(s),o=r(58091),u=r(60727);function c(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}i().use(a.Z);var l=function(e){var t=e.data,r=e.title,a=e.color,s=e.unit,i=e.dataCollections,o=e.yFlipped,l=e.yLogarithmic,f=[];t&&t.length>0&&f.push({name:r,color:a,data:c(t)}),i.forEach((function(e){f.push({name:e.name,data:c(e.data),color:e.color,dataset:e.options})}));var d={scales:{y:{reverse:!1,type:"linear"},x:{type:"time"}}};return d.scales.y.reverse=o,d.scales.y.type=l?"logarithmic":"linear",(0,n.jsx)("div",{className:"line-chart-container",children:(0,n.jsx)(u.wW,{xtitle:"Time",ytitle:r,suffix:s,legend:"bottom",color:a,data:f,download:r,library:d})})};l.defaultProps={dataCollections:[],data:[],title:"",yFlipped:!1,yLogarithmic:!1}},97206:function(e,t,r){"use strict";r.d(t,{m:function(){return h}});var n=r(26042),a=r(85893),s=r(84485),i=r(97910),o=r(74763),u=r(59652),c=s.Z.Text,l={title:"",value:0,prefix:null,suffix:null,color:"",progress:!1,centered:!1,formatter:null},f=function(e){var t=e.prefix,r=e.value,n=e.suffix,s=e.title;return(0,a.jsxs)("div",{children:[t,(0,a.jsx)("div",{children:(0,a.jsx)(c,{type:"secondary",children:s})}),(0,a.jsx)("div",{children:(0,a.jsxs)(c,{type:"secondary",children:[r,n||"%"]})})]})},d=function(e){var t=e.title,r=e.value,n=e.prefix,s=e.suffix,o=e.color,u=r>90?"red":o,c=(0,a.jsx)(f,{prefix:n,value:r,suffix:s,title:t});return(0,a.jsx)(i.Z,{type:"dashboard",percent:r,width:120,strokeColor:{"0%":o,"90%":u},format:function(){return c}})};d.defaultProps=l;var v=function(e){var t=e.title,r=e.value,n=e.prefix,s=e.formatter;return(0,a.jsx)(o.Z,{title:t,value:r,prefix:n,formatter:s})};v.defaultProps=l;var h=function(e){var t=e.progress,r=e.centered,s=t?d:v,i=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,a.jsx)(u.Z,{type:"inner",children:(0,a.jsx)("div",{style:i,children:(0,a.jsx)(s,(0,n.Z)({},e))})})};h.defaultProps=l},80961:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return L}});var n=r(47568),a=r(70655),s=r(85893),i=r(67294),o=r(66516),u=r(84485),c=r(25968),l=r(6226),f=r(14670),d=r(11382),v=r(38504),h=r(87547),m=r(80882),x=r(77349),p=r(13882),y=r(83946);function Z(e,t){(0,p.Z)(2,arguments);var r=(0,y.Z)(t);return(0,x.Z)(e,-r)}var g=r(11640);function w(e,t){(0,p.Z)(2,arguments);var r=(0,y.Z)(t);return(0,g.Z)(e,-r)}function j(e){return j="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function S(e,t){if((0,p.Z)(2,arguments),!t||"object"!==j(t))return new Date(NaN);var r=t.years?(0,y.Z)(t.years):0,n=t.months?(0,y.Z)(t.months):0,a=t.weeks?(0,y.Z)(t.weeks):0,s=t.days?(0,y.Z)(t.days):0,i=t.hours?(0,y.Z)(t.hours):0,o=t.minutes?(0,y.Z)(t.minutes):0,u=t.seconds?(0,y.Z)(t.seconds):0,c=w(e,n+12*r),l=Z(c,s+7*a),f=o+60*i,d=u+60*f,v=1e3*d,h=new Date(l.getTime()-v);return h}var b=r(19013);function D(e){(0,p.Z)(1,arguments);var t=(0,b.Z)(e),r=t.getTime();return r}var N=r(51222),k=r(97206),C=r(93626),_=r(45938),T=r(2766);var E=function(e){var t=e.data,r=[{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,T.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,_.Z)(new Date(e))},sorter:function(e,t){return new Date(e.firstSeen).getTime()-new Date(t.firstSeen).getTime()},sortDirections:["descend","ascend"]}];return(0,s.jsx)(C.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:r,dataSource:t,size:"small",rowKey:"id"})},P=r(35159),I=r(58827);function L(){var e,t=(0,i.useContext)(P.aC)||{},r=t.online,x=t.broadcaster,y=t.viewerCount,Z=t.overallPeakViewerCount,g=t.sessionPeakViewerCount;x&&x.time&&(e=new Date(x.time));var w=[{title:"Current stream",start:e},{title:"Last 12 hours",start:S(new Date,{hours:12})},{title:"Last 24 hours",start:S(new Date,{hours:24})},{title:"Last 7 days",start:S(new Date,{days:7})},{title:"Last 30 days",start:S(new Date,{days:30})},{title:"Last 3 months",start:S(new Date,{months:3})},{title:"Last 6 months",start:S(new Date,{months:6})}],j=(0,i.useState)(!0),b=j[0],C=j[1],_=(0,i.useState)([]),T=_[0],L=_[1],M=(0,i.useState)([]),A=M[0],F=M[1],O=(0,i.useState)(w[1]),V=O[0],z=O[1],B=function(){var e=(0,n.Z)((function(){var e,t,r,n,s;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),e="".concat(I.iV,"?windowStart=").concat(function(e){return(0,p.Z)(1,arguments),Math.floor(D(e)/1e3)}(V.start)),[4,(0,I.rQ)(e)];case 1:return t=a.sent(),L(t),C(!1),[3,3];case 2:return r=a.sent(),console.log("==== error",r),[3,3];case 3:return a.trys.push([3,5,,6]),[4,(0,I.rQ)(I.a_)];case 4:return n=a.sent(),F(n),[3,6];case 5:return s=a.sent(),console.log("==== error",s),[3,6];case 6:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,i.useEffect)((function(){var e=null;return B(),r?(e=setInterval(B,6e4),function(){clearInterval(e)}):function(){return[]}}),[r,V]);var Q=function(e){var t=e.key;z(w[t])},U=(0,s.jsxs)(o.Z,{children:[r&&e&&(0,s.jsx)(o.Z.Item,{onClick:Q,children:w[0].title},"0"),w.slice(1).map((function(e,t){return(0,s.jsx)(o.Z.Item,{onClick:Q,children:e.title},t+1)}))]});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.Z.Title,{children:"Viewer Info"}),(0,s.jsx)("br",{}),(0,s.jsxs)(c.Z,{gutter:[16,16],justify:"space-around",children:[r&&(0,s.jsx)(l.Z,{span:8,md:8,children:(0,s.jsx)(k.m,{title:"Current viewers",value:y.toString(),prefix:(0,s.jsx)(h.Z,{})})}),(0,s.jsx)(l.Z,{md:r?8:12,children:(0,s.jsx)(k.m,{title:r?"Max viewers this stream":"Max viewers last stream",value:g.toString(),prefix:(0,s.jsx)(h.Z,{})})}),(0,s.jsx)(l.Z,{md:r?8:12,children:(0,s.jsx)(k.m,{title:"All-time max viewers",value:Z.toString(),prefix:(0,s.jsx)(h.Z,{})})})]}),!T.length&&(0,s.jsx)(f.Z,{style:{marginTop:"10px"},banner:!0,message:"Please wait",description:"No viewer data has been collected yet.",type:"info"}),(0,s.jsxs)(d.Z,{spinning:!T.length||b,children:[(0,s.jsx)(v.Z,{overlay:U,trigger:["click"],children:(0,s.jsxs)("button",{type:"button",style:{float:"right",background:"transparent",border:"unset"},children:[V.title," ",(0,s.jsx)(m.Z,{})]})}),T.length>0&&(0,s.jsx)(N.k,{title:"Viewers",data:T,color:"#2087E2",unit:""}),(0,s.jsx)(E,{data:A})]})]})}}},function(e){e.O(0,[2757,8939,3903,3698,3626,8091,2944,9764,5315,4763,2139,7910,9774,2888,179],(function(){return t=92794,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([[6109],{87547:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(1413),a=r(67294),s={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"},i=r(42135),o=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:s}))};o.displayName="UserOutlined";var u=a.forwardRef(o)},77349:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(83946),a=r(19013),s=r(13882);function i(e,t){(0,s.Z)(2,arguments);var r=(0,a.Z)(e),i=(0,n.Z)(t);return isNaN(i)?new Date(NaN):i?(r.setDate(r.getDate()+i),r):r}},11640:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(83946),a=r(19013),s=r(13882);function i(e,t){(0,s.Z)(2,arguments);var r=(0,a.Z)(e),i=(0,n.Z)(t);if(isNaN(i))return new Date(NaN);if(!i)return r;var o=r.getDate(),u=new Date(r.getTime());u.setMonth(r.getMonth()+i+1,0);var c=u.getDate();return o>=c?u:(r.setFullYear(u.getFullYear(),u.getMonth(),o),r)}},92794:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/viewer-info",function(){return r(80961)}])},51222:function(e,t,r){"use strict";r.d(t,{k:function(){return l}});var n=r(85893),a=r(29217),s=r(92616),i=r.n(s),o=r(58091),u=r(60727);function c(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}i().use(a.Z);var l=function(e){var t=e.data,r=e.title,a=e.color,s=e.unit,i=e.dataCollections,o=e.yFlipped,l=e.yLogarithmic,f=[];t&&t.length>0&&f.push({name:r,color:a,data:c(t)}),i.forEach((function(e){f.push({name:e.name,data:c(e.data),color:e.color,dataset:e.options})}));var d={scales:{y:{reverse:!1,type:"linear"},x:{type:"time"}}};return d.scales.y.reverse=o,d.scales.y.type=l?"logarithmic":"linear",(0,n.jsx)("div",{className:"line-chart-container",children:(0,n.jsx)(u.wW,{xtitle:"Time",ytitle:r,suffix:s,legend:"bottom",color:a,data:f,download:r,library:d})})};l.defaultProps={dataCollections:[],data:[],title:"",yFlipped:!1,yLogarithmic:!1}},97206:function(e,t,r){"use strict";r.d(t,{m:function(){return h}});var n=r(26042),a=r(85893),s=r(84485),i=r(97910),o=r(74763),u=r(59652),c=s.Z.Text,l={title:"",value:0,prefix:null,suffix:null,color:"",progress:!1,centered:!1,formatter:null},f=function(e){var t=e.prefix,r=e.value,n=e.suffix,s=e.title;return(0,a.jsxs)("div",{children:[t,(0,a.jsx)("div",{children:(0,a.jsx)(c,{type:"secondary",children:s})}),(0,a.jsx)("div",{children:(0,a.jsxs)(c,{type:"secondary",children:[r,n||"%"]})})]})},d=function(e){var t=e.title,r=e.value,n=e.prefix,s=e.suffix,o=e.color,u=r>90?"red":o,c=(0,a.jsx)(f,{prefix:n,value:r,suffix:s,title:t});return(0,a.jsx)(i.Z,{type:"dashboard",percent:r,width:120,strokeColor:{"0%":o,"90%":u},format:function(){return c}})};d.defaultProps=l;var v=function(e){var t=e.title,r=e.value,n=e.prefix,s=e.formatter;return(0,a.jsx)(o.Z,{title:t,value:r,prefix:n,formatter:s})};v.defaultProps=l;var h=function(e){var t=e.progress,r=e.centered,s=t?d:v,i=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,a.jsx)(u.Z,{type:"inner",children:(0,a.jsx)("div",{style:i,children:(0,a.jsx)(s,(0,n.Z)({},e))})})};h.defaultProps=l},80961:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return L}});var n=r(47568),a=r(70655),s=r(85893),i=r(67294),o=r(66516),u=r(84485),c=r(25968),l=r(6226),f=r(14670),d=r(11382),v=r(38504),h=r(87547),m=r(80882),x=r(77349),p=r(13882),y=r(83946);function Z(e,t){(0,p.Z)(2,arguments);var r=(0,y.Z)(t);return(0,x.Z)(e,-r)}var g=r(11640);function w(e,t){(0,p.Z)(2,arguments);var r=(0,y.Z)(t);return(0,g.Z)(e,-r)}function j(e){return j="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function S(e,t){if((0,p.Z)(2,arguments),!t||"object"!==j(t))return new Date(NaN);var r=t.years?(0,y.Z)(t.years):0,n=t.months?(0,y.Z)(t.months):0,a=t.weeks?(0,y.Z)(t.weeks):0,s=t.days?(0,y.Z)(t.days):0,i=t.hours?(0,y.Z)(t.hours):0,o=t.minutes?(0,y.Z)(t.minutes):0,u=t.seconds?(0,y.Z)(t.seconds):0,c=w(e,n+12*r),l=Z(c,s+7*a),f=o+60*i,d=u+60*f,v=1e3*d,h=new Date(l.getTime()-v);return h}var b=r(19013);function D(e){(0,p.Z)(1,arguments);var t=(0,b.Z)(e),r=t.getTime();return r}var N=r(51222),k=r(97206),C=r(93626),_=r(45938),T=r(2766);var E=function(e){var t=e.data,r=[{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:function(e){return(0,T.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,_.Z)(new Date(e))},sorter:function(e,t){return new Date(e.firstSeen).getTime()-new Date(t.firstSeen).getTime()},sortDirections:["descend","ascend"]}];return(0,s.jsx)(C.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:r,dataSource:t,size:"small",rowKey:"id"})},P=r(35159),I=r(58827);function L(){var e,t=(0,i.useContext)(P.aC)||{},r=t.online,x=t.broadcaster,y=t.viewerCount,Z=t.overallPeakViewerCount,g=t.sessionPeakViewerCount;x&&x.time&&(e=new Date(x.time));var w=[{title:"Current stream",start:e},{title:"Last 12 hours",start:S(new Date,{hours:12})},{title:"Last 24 hours",start:S(new Date,{hours:24})},{title:"Last 7 days",start:S(new Date,{days:7})},{title:"Last 30 days",start:S(new Date,{days:30})},{title:"Last 3 months",start:S(new Date,{months:3})},{title:"Last 6 months",start:S(new Date,{months:6})}],j=(0,i.useState)(!0),b=j[0],C=j[1],_=(0,i.useState)([]),T=_[0],L=_[1],M=(0,i.useState)([]),A=M[0],F=M[1],O=(0,i.useState)(w[1]),V=O[0],z=O[1],B=function(){var e=(0,n.Z)((function(){var e,t,r,n,s;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),e="".concat(I.iV,"?windowStart=").concat(function(e){return(0,p.Z)(1,arguments),Math.floor(D(e)/1e3)}(V.start)),[4,(0,I.rQ)(e)];case 1:return t=a.sent(),L(t),C(!1),[3,3];case 2:return r=a.sent(),console.log("==== error",r),[3,3];case 3:return a.trys.push([3,5,,6]),[4,(0,I.rQ)(I.a_)];case 4:return n=a.sent(),F(n),[3,6];case 5:return s=a.sent(),console.log("==== error",s),[3,6];case 6:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,i.useEffect)((function(){var e=null;return B(),r?(e=setInterval(B,6e4),function(){clearInterval(e)}):function(){return[]}}),[r,V]);var Q=function(e){var t=e.key;z(w[t])},U=(0,s.jsxs)(o.Z,{children:[r&&e&&(0,s.jsx)(o.Z.Item,{onClick:Q,children:w[0].title},"0"),w.slice(1).map((function(e,t){return(0,s.jsx)(o.Z.Item,{onClick:Q,children:e.title},t+1)}))]});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.Z.Title,{children:"Viewer Info"}),(0,s.jsx)("br",{}),(0,s.jsxs)(c.Z,{gutter:[16,16],justify:"space-around",children:[r&&(0,s.jsx)(l.Z,{span:8,md:8,children:(0,s.jsx)(k.m,{title:"Current viewers",value:y.toString(),prefix:(0,s.jsx)(h.Z,{})})}),(0,s.jsx)(l.Z,{md:r?8:12,children:(0,s.jsx)(k.m,{title:r?"Max viewers this stream":"Max viewers last stream",value:g.toString(),prefix:(0,s.jsx)(h.Z,{})})}),(0,s.jsx)(l.Z,{md:r?8:12,children:(0,s.jsx)(k.m,{title:"All-time max viewers",value:Z.toString(),prefix:(0,s.jsx)(h.Z,{})})})]}),!T.length&&(0,s.jsx)(f.Z,{style:{marginTop:"10px"},banner:!0,message:"Please wait",description:"No viewer data has been collected yet.",type:"info"}),(0,s.jsxs)(d.Z,{spinning:!T.length||b,children:[(0,s.jsx)(v.Z,{overlay:U,trigger:["click"],children:(0,s.jsxs)("button",{type:"button",style:{float:"right",background:"transparent",border:"unset"},children:[V.title," ",(0,s.jsx)(m.Z,{})]})}),T.length>0&&(0,s.jsx)(N.k,{title:"Viewers",data:T,color:"#2087E2",unit:""}),(0,s.jsx)(E,{data:A})]})]})}}},function(e){e.O(0,[2757,8939,3903,4267,3626,8091,2944,9764,5315,4763,2139,7910,9774,2888,179],(function(){return t=92794,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/webhooks-31e1e30a1af46238.js b/static/web/_next/static/chunks/pages/admin/webhooks-66e239b373b061f0.js similarity index 99% rename from static/web/_next/static/chunks/pages/admin/webhooks-31e1e30a1af46238.js rename to static/web/_next/static/chunks/pages/admin/webhooks-66e239b373b061f0.js index b396a1326..091e5dac2 100644 --- a/static/web/_next/static/chunks/pages/admin/webhooks-31e1e30a1af46238.js +++ b/static/web/_next/static/chunks/pages/admin/webhooks-66e239b373b061f0.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1234],{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(42135),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 d}});var r=n(4942),o=n(87462),c=n(71002),a=n(94184),i=n.n(a),s=n(67294),l=n(53124),u=n(99134),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 I=m[0]/2;A.paddingLeft=I,A.paddingRight=I}if(m&&m[1]>0&&!b){var R=m[1]/2;A.paddingTop=R,A.paddingBottom=R}return k&&(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}(k),!1!==y||A.minWidth||(A.minWidth=0)),s.createElement("div",(0,o.Z)({},N,{style:(0,o.Z)((0,o.Z)({},A),P),className:T,ref:t}),E)}))},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 m}});var r=n(87462),o=n(4942),c=n(71002),a=n(97685),i=n(94184),s=n.n(i),l=n(67294),u=n(53124),f=n(98082),p=n(24308),d=n(93355),h=n(99134),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?I[0]/-2:void 0,D=null!=I[1]&&I[1]>0?I[1]/-2:void 0;if(M&&(W.marginLeft=M,W.marginRight=M),_){var G=(0,a.Z)(I,2);W.rowGap=G[1]}else D&&(W.marginTop=D,W.marginBottom=D);var H=(0,a.Z)(I,2),$=H[0],B=H[1],U=l.useMemo((function(){return{gutter:[$,B],wrap:j,supportFlexGap:_}}),[$,B,j,_]);return l.createElement(h.Z.Provider,{value:U},l.createElement("div",(0,r.Z)({},w,{className:R,style:(0,r.Z)((0,r.Z)({},W),b),ref:t}),x))}))},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(4942),o=n(87462),c=n(97685),a=n(97937),i=n(94184),s=n.n(i),l=n(98423),u=n(67294),f=n(53124),p=n(98787),d=n(68349),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 o=0;for(r=Object.getOwnPropertySymbols(e);o=t||n<0||m&&e-h>=u}function Z(){var e=o();if(g(e))return j(e);p=setTimeout(Z,function(e){var n=t-(e-d);return m?i(n,u-(e-h)):n}(e))}function j(e){return p=void 0,y&&s?b(e):(s=l=void 0,f)}function w(){var e=o(),n=g(e);if(s=arguments,l=this,d=e,n){if(void 0===p)return x(d);if(m)return clearTimeout(p),p=setTimeout(Z,t),b(d)}return void 0===p&&(p=setTimeout(Z,t)),f}return t=c(t)||0,r(n)&&(v=!!n.leading,u=(m="maxWait"in n)?a(c(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==p&&clearTimeout(p),h=0,s=d=l=p=void 0},w.flush=function(){return void 0===p?f:j(o())},w}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),o=n(13218),c=n(33448),a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(c(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=i.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},67742:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/webhooks",function(){return n(822)}])},822:function(e,t,n){"use strict";n.r(t);var r=n(47568),o=n(70655),c=n(85893),a=n(48689),i=n(84485),s=n(94199),l=n(20550),u=n(6226),f=n(32808),p=n(85402),d=n(69677),h=n(25968),v=n(71577),m=n(26713),y=n(93626),b=n(67294),x=n(58827),g=n(19411),Z=i.Z.Title,j=i.Z.Paragraph,w={CHAT:{name:"Chat messages",description:"When a user sends a chat message",color:"purple"},USER_JOINED:{name:"User joined",description:"When a user joins the chat",color:"green"},NAME_CHANGE:{name:"User name changed",description:"When a user changes their name",color:"blue"},"VISIBILITY-UPDATE":{name:"Message visibility changed",description:"When a message visibility changes, likely due to moderation",color:"red"},STREAM_STARTED:{name:"Stream started",description:"When a stream starts",color:"orange"},STREAM_STOPPED:{name:"Stream stopped",description:"When a stream stops",color:"cyan"}};var O=function(e){var t=e.onOk,n=e.onCancel,r=e.visible,o=(0,b.useState)([]),a=o[0],i=o[1],s=(0,b.useState)(""),l=s[0],m=s[1],y=Object.keys(w).map((function(e){return{value:e,label:w[e].description}})),x={disabled:0===(null===a||void 0===a?void 0:a.length)||!(0,g.Z)(l)},Z=y.map((function(e){return(0,c.jsx)(u.Z,{span:8,children:(0,c.jsx)(f.Z,{value:e.value,children:e.label})},e.value)}));return(0,c.jsxs)(p.Z,{title:"Create New Webhook",visible:r,onOk:function(){t(l,a),m(""),i(null)},onCancel:n,okButtonProps:x,children:[(0,c.jsx)("div",{children:(0,c.jsx)(d.Z,{value:l,placeholder:"https://myserver.com/webhook",onChange:function(e){return m(e.currentTarget.value.trim())},type:"url",pattern:g.a})}),(0,c.jsx)("p",{children:"Select the events that will be sent to this webhook."}),(0,c.jsx)(f.Z.Group,{style:{width:"100%"},value:a,onChange:function(e){i(e)},children:(0,c.jsx)(h.Z,{children:Z})}),(0,c.jsx)("p",{children:(0,c.jsx)(v.Z,{type:"primary",onClick:function(){i(Object.keys(w))},children:"Select all"})})]})};t.default=function(){var e=function(e){console.error("error",e)},t=(0,b.useState)([]),n=t[0],i=t[1],u=(0,b.useState)(!1),f=u[0],p=u[1];function d(){return h.apply(this,arguments)}function h(){return(h=(0,r.Z)((function(){var t,n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,x.rQ)(x.XA)];case 1:return t=r.sent(),i(t),[3,3];case 2:return n=r.sent(),e(n),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}function g(){return(g=(0,r.Z)((function(t){var n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,x.rQ)(x.M_,{method:"POST",data:{id:t}})];case 1:return r.sent(),d(),[3,3];case 2:return n=r.sent(),e(n),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}function C(){return(C=(0,r.Z)((function(t,r){var c,a;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(0,x.rQ)(x.iG,{method:"POST",data:{url:t,events:r}})];case 1:return c=o.sent(),i(n.concat(c)),[3,3];case 2:return a=o.sent(),e(a),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}(0,b.useEffect)((function(){d()}),[]);var E=[{title:"",key:"delete",render:function(e,t){return(0,c.jsx)(m.Z,{size:"middle",children:(0,c.jsx)(v.Z,{onClick:function(){return function(e){return g.apply(this,arguments)}(t.id)},icon:(0,c.jsx)(a.Z,{})})})}},{title:"URL",dataIndex:"url",key:"url"},{title:"Events",dataIndex:"events",key:"events",render:function(e){return(0,c.jsx)(c.Fragment,{children:e.map((function(e){return function(e){if(!e||!w[e])return null;var t=w[e];return(0,c.jsx)(s.Z,{title:t.description,children:(0,c.jsx)(l.Z,{color:t.color,children:t.name})},e)}(e)}))})}}];return(0,c.jsxs)("div",{children:[(0,c.jsx)(Z,{children:"Webhooks"}),(0,c.jsx)(j,{children:"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."}),(0,c.jsxs)(j,{children:["Read more about how to use webhooks, with examples, at"," ",(0,c.jsx)("a",{href:"https://owncast.online/docs/integrations/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"our documentation"}),"."]}),(0,c.jsx)(y.Z,{rowKey:function(e){return e.id},columns:E,dataSource:n,pagination:!1}),(0,c.jsx)("br",{}),(0,c.jsx)(v.Z,{type:"primary",onClick:function(){p(!0)},children:"Create Webhook"}),(0,c.jsx)(O,{visible:f,onOk:function(e,t){p(!1),function(e,t){C.apply(this,arguments)}(e,t)},onCancel:function(){p(!1)}})]})}}},function(e){e.O(0,[8939,3903,3698,3626,9774,2888,179],(function(){return t=67742,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([[1234],{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(42135),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 d}});var r=n(4942),o=n(87462),c=n(71002),a=n(94184),i=n.n(a),s=n(67294),l=n(53124),u=n(99134),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 I=m[0]/2;A.paddingLeft=I,A.paddingRight=I}if(m&&m[1]>0&&!b){var R=m[1]/2;A.paddingTop=R,A.paddingBottom=R}return k&&(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}(k),!1!==y||A.minWidth||(A.minWidth=0)),s.createElement("div",(0,o.Z)({},N,{style:(0,o.Z)((0,o.Z)({},A),P),className:T,ref:t}),E)}))},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 m}});var r=n(87462),o=n(4942),c=n(71002),a=n(97685),i=n(94184),s=n.n(i),l=n(67294),u=n(53124),f=n(98082),p=n(24308),d=n(93355),h=n(99134),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?I[0]/-2:void 0,D=null!=I[1]&&I[1]>0?I[1]/-2:void 0;if(M&&(W.marginLeft=M,W.marginRight=M),_){var G=(0,a.Z)(I,2);W.rowGap=G[1]}else D&&(W.marginTop=D,W.marginBottom=D);var H=(0,a.Z)(I,2),$=H[0],B=H[1],U=l.useMemo((function(){return{gutter:[$,B],wrap:j,supportFlexGap:_}}),[$,B,j,_]);return l.createElement(h.Z.Provider,{value:U},l.createElement("div",(0,r.Z)({},w,{className:R,style:(0,r.Z)((0,r.Z)({},W),b),ref:t}),x))}))},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(4942),o=n(87462),c=n(97685),a=n(97937),i=n(94184),s=n.n(i),l=n(98423),u=n(67294),f=n(53124),p=n(98787),d=n(68349),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 o=0;for(r=Object.getOwnPropertySymbols(e);o=t||n<0||m&&e-h>=u}function Z(){var e=o();if(g(e))return j(e);p=setTimeout(Z,function(e){var n=t-(e-d);return m?i(n,u-(e-h)):n}(e))}function j(e){return p=void 0,y&&s?b(e):(s=l=void 0,f)}function w(){var e=o(),n=g(e);if(s=arguments,l=this,d=e,n){if(void 0===p)return x(d);if(m)return clearTimeout(p),p=setTimeout(Z,t),b(d)}return void 0===p&&(p=setTimeout(Z,t)),f}return t=c(t)||0,r(n)&&(v=!!n.leading,u=(m="maxWait"in n)?a(c(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==p&&clearTimeout(p),h=0,s=d=l=p=void 0},w.flush=function(){return void 0===p?f:j(o())},w}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),o=n(13218),c=n(33448),a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(c(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=i.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},67742:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/webhooks",function(){return n(822)}])},822:function(e,t,n){"use strict";n.r(t);var r=n(47568),o=n(70655),c=n(85893),a=n(48689),i=n(84485),s=n(94199),l=n(20550),u=n(6226),f=n(32808),p=n(85402),d=n(69677),h=n(25968),v=n(71577),m=n(26713),y=n(93626),b=n(67294),x=n(58827),g=n(19411),Z=i.Z.Title,j=i.Z.Paragraph,w={CHAT:{name:"Chat messages",description:"When a user sends a chat message",color:"purple"},USER_JOINED:{name:"User joined",description:"When a user joins the chat",color:"green"},NAME_CHANGE:{name:"User name changed",description:"When a user changes their name",color:"blue"},"VISIBILITY-UPDATE":{name:"Message visibility changed",description:"When a message visibility changes, likely due to moderation",color:"red"},STREAM_STARTED:{name:"Stream started",description:"When a stream starts",color:"orange"},STREAM_STOPPED:{name:"Stream stopped",description:"When a stream stops",color:"cyan"}};var O=function(e){var t=e.onOk,n=e.onCancel,r=e.visible,o=(0,b.useState)([]),a=o[0],i=o[1],s=(0,b.useState)(""),l=s[0],m=s[1],y=Object.keys(w).map((function(e){return{value:e,label:w[e].description}})),x={disabled:0===(null===a||void 0===a?void 0:a.length)||!(0,g.Z)(l)},Z=y.map((function(e){return(0,c.jsx)(u.Z,{span:8,children:(0,c.jsx)(f.Z,{value:e.value,children:e.label})},e.value)}));return(0,c.jsxs)(p.Z,{title:"Create New Webhook",visible:r,onOk:function(){t(l,a),m(""),i(null)},onCancel:n,okButtonProps:x,children:[(0,c.jsx)("div",{children:(0,c.jsx)(d.Z,{value:l,placeholder:"https://myserver.com/webhook",onChange:function(e){return m(e.currentTarget.value.trim())},type:"url",pattern:g.a})}),(0,c.jsx)("p",{children:"Select the events that will be sent to this webhook."}),(0,c.jsx)(f.Z.Group,{style:{width:"100%"},value:a,onChange:function(e){i(e)},children:(0,c.jsx)(h.Z,{children:Z})}),(0,c.jsx)("p",{children:(0,c.jsx)(v.Z,{type:"primary",onClick:function(){i(Object.keys(w))},children:"Select all"})})]})};t.default=function(){var e=function(e){console.error("error",e)},t=(0,b.useState)([]),n=t[0],i=t[1],u=(0,b.useState)(!1),f=u[0],p=u[1];function d(){return h.apply(this,arguments)}function h(){return(h=(0,r.Z)((function(){var t,n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,x.rQ)(x.XA)];case 1:return t=r.sent(),i(t),[3,3];case 2:return n=r.sent(),e(n),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}function g(){return(g=(0,r.Z)((function(t){var n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,x.rQ)(x.M_,{method:"POST",data:{id:t}})];case 1:return r.sent(),d(),[3,3];case 2:return n=r.sent(),e(n),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}function C(){return(C=(0,r.Z)((function(t,r){var c,a;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(0,x.rQ)(x.iG,{method:"POST",data:{url:t,events:r}})];case 1:return c=o.sent(),i(n.concat(c)),[3,3];case 2:return a=o.sent(),e(a),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}(0,b.useEffect)((function(){d()}),[]);var E=[{title:"",key:"delete",render:function(e,t){return(0,c.jsx)(m.Z,{size:"middle",children:(0,c.jsx)(v.Z,{onClick:function(){return function(e){return g.apply(this,arguments)}(t.id)},icon:(0,c.jsx)(a.Z,{})})})}},{title:"URL",dataIndex:"url",key:"url"},{title:"Events",dataIndex:"events",key:"events",render:function(e){return(0,c.jsx)(c.Fragment,{children:e.map((function(e){return function(e){if(!e||!w[e])return null;var t=w[e];return(0,c.jsx)(s.Z,{title:t.description,children:(0,c.jsx)(l.Z,{color:t.color,children:t.name})},e)}(e)}))})}}];return(0,c.jsxs)("div",{children:[(0,c.jsx)(Z,{children:"Webhooks"}),(0,c.jsx)(j,{children:"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."}),(0,c.jsxs)(j,{children:["Read more about how to use webhooks, with examples, at"," ",(0,c.jsx)("a",{href:"https://owncast.online/docs/integrations/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"our documentation"}),"."]}),(0,c.jsx)(y.Z,{rowKey:function(e){return e.id},columns:E,dataSource:n,pagination:!1}),(0,c.jsx)("br",{}),(0,c.jsx)(v.Z,{type:"primary",onClick:function(){p(!0)},children:"Create Webhook"}),(0,c.jsx)(O,{visible:f,onOk:function(e,t){p(!1),function(e,t){C.apply(this,arguments)}(e,t)},onCancel:function(){p(!1)}})]})}}},function(e){e.O(0,[8939,3903,4267,3626,9774,2888,179],(function(){return t=67742,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/embed/video-767df07d35be7bcf.js b/static/web/_next/static/chunks/pages/embed/video-767df07d35be7bcf.js new file mode 100644 index 000000000..a3bc201bb --- /dev/null +++ b/static/web/_next/static/chunks/pages/embed/video-767df07d35be7bcf.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3126],{11382:function(n,e,t){"use strict";var i=t(87462),a=t(4942),s=t(15671),r=t(43144),c=t(60136),l=t(33643),o=t(94184),p=t.n(o),u=t(23279),d=t.n(u),m=t(98423),f=t(67294),g=t(53124),v=t(96159),N=t(93355),y=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(null!=n&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(n);a0&&a.map((function(e){return(0,r.jsxs)("span",{children:["#",e,"\xa0"]},e)}))}),(0,r.jsx)("div",{className:f()(K().socialLinks,K().row),children:(0,r.jsx)(W,{links:s})})]})]})})},ee=t(43125),ne=t(47568),te=t(70655),re=t(25968),oe=t(6226),ie=t(3698),ae=t(24093),se=t(40305),le=t.n(se),ce=function(e){var n=e.follower;return(0,r.jsx)("div",{className:le().follower,children:(0,r.jsx)("a",{href:n.link,target:"_blank",rel:"noreferrer",children:(0,r.jsxs)(re.Z,{wrap:!1,children:[(0,r.jsx)(oe.Z,{span:6,children:(0,r.jsx)(ae.C,{src:n.image,alt:"Avatar",className:le().avatar,children:(0,r.jsx)("img",{src:"/logo",alt:"Logo",className:le().placeholder})})}),(0,r.jsxs)(oe.Z,{children:[(0,r.jsx)(re.Z,{children:n.name}),(0,r.jsx)(re.Z,{className:le().account,children:n.username})]})]})})})},ue=t(12103),de=t.n(ue),me=function(e){var n=e.name,t=(0,l.useState)([]),o=t[0],i=t[1],a=(0,l.useState)(0),s=a[0],c=a[1],u=(0,l.useState)(1),d=u[0],m=u[1],h=Math.ceil(s/24),f=function(){var e=(0,ne.Z)((function(){var e,n,t,r;return(0,te.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,fetch("".concat("/api/followers","?page=").concat(d))];case 1:return[4,o.sent().json()];case 2:return e=o.sent(),n=e.results,t=e.total,i(n),c(t),[3,4];case 3:return r=o.sent(),console.error(r),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){f()}),[]),(0,l.useEffect)((function(){f()}),[d]);var p=(0,r.jsxs)("div",{className:de().noFollowers,children:[(0,r.jsx)("h2",{children:"Be the first follower!"}),(0,r.jsxs)("p",{children:["Owncast"!==n?n:"This server"," is a part of the"," ",(0,r.jsx)("a",{href:"https://owncast.online/join-fediverse",children:"Fediverse"}),", an interconnected network of independent users and servers."]}),(0,r.jsxs)("p",{children:["By following ","Owncast"!==n?n:"this server"," you'll be able to get updates from the stream, share it with others, and and show your appreciation when it goes live, all from your own Fediverse account."]}),(0,r.jsx)(D.e,{})]});return(null===o||void 0===o?void 0:o.length)?(0,r.jsxs)("div",{className:de().followers,children:[(0,r.jsx)(re.Z,{wrap:!0,gutter:[10,10],justify:"space-around",children:o.map((function(e){return(0,r.jsx)(oe.Z,{children:(0,r.jsx)(ce,{follower:e},e.link)})}))}),(0,r.jsx)(ie.Z,{current:d,pageSize:24,total:h||1,onChange:function(e){m(e)},hideOnSinglePage:!0})]}):p},he=o.Z.Content,fe=x()((function(){return Promise.resolve().then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),pe=x()((function(){return t.e(5135).then(t.bind(t,5135)).then((function(e){return e.BrowserNotifyModal}))}),{loadableGenerated:{webpack:function(){return[5135]}}}),xe=x()((function(){return t.e(7735).then(t.bind(t,57735)).then((function(e){return e.NotifyReminderPopup}))}),{loadableGenerated:{webpack:function(){return[57735]}}}),ge=x()((function(){return Promise.resolve().then(t.bind(t,28763)).then((function(e){return e.ChatContainer}))}),{loadableGenerated:{webpack:function(){return[28763]}}}),je=function(e){var n=e.name,t=e.streamTitle,o=e.summary,i=e.tags,a=e.socialHandles,s=e.extraPageContent,l=[{label:"About",key:"2",children:(0,r.jsx)(_,{content:s})},{label:"Followers",key:"3",children:(0,r.jsx)(me,{name:n})}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:C().lowerHalf,children:(0,r.jsx)($,{name:n,title:t,summary:o,tags:i,links:a,logo:"/logo"})}),(0,r.jsx)("div",{className:C().lowerSection,children:(0,r.jsx)(d.Z,{defaultActiveKey:"0",items:l})})]})},ve=function(e){var n=e.name,t=e.streamTitle,o=e.summary,i=e.tags,a=e.socialHandles,s=e.extraPageContent,l=e.messages,c=e.currentUser,u=e.showChat;if(!c)return null;var m=c.id,h=c.displayName,p=[{label:"Chat",key:"1",children:u&&(0,r.jsx)(ge,{messages:l,usernameToHighlight:h,chatUserId:m,isModerator:!1,height:"40vh"})},{label:"About",key:"2",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)($,{name:n,title:t,summary:o,tags:i,links:a,logo:"/logo"}),(0,r.jsx)(_,{content:s})]})},{label:"Followers",key:"3",children:(0,r.jsx)(me,{name:n})}];return(0,r.jsx)("div",{className:f()(C().lowerSectionMobile),children:(0,r.jsx)(d.Z,{defaultActiveKey:"0",items:p})})},_e=function(){var e=(0,i.sJ)(c.Q),n=(0,i.sJ)(c.g1),t=(0,i.sJ)(c.pT),o=(0,i.sJ)(c.di),a=(0,i.sJ)(c.db),s=(0,u.Z)((0,i.FV)(c.hz),2),d=s[0],h=s[1],f=(0,i.sJ)(c.j$),p=(0,i.sJ)(c.YW),x=(0,i.sJ)(c.RI),j=x.viewerCount,v=x.lastConnectTime,_=x.lastDisconnectTime,y=x.streamTitle,b=n.extraPageContent,N=n.version,k=n.name,S=n.summary,H=n.socialHandles,T=n.tags,A=n.externalActions,F=n.offlineMessage,M=n.chatDisabled,P=n.federation,J=n.notifications,U=(0,l.useState)(!1),G=U[0],O=U[1],q=(0,l.useState)(!1),B=q[0],V=q[1],Y=P.account,Q=J.browser.enabled,W=A.map((function(e){return(0,r.jsx)(z,{action:e},e.url)})),X=function(){V(!1),O(!1),(0,g.qQ)(g.dA.hasDisplayedNotificationModal,!0)},K=function(){var e=window.innerWidth;void 0===d&&h(e<=768),!d&&e<=768&&h(!0),d&&e>768&&h(!1)};(0,l.useEffect)((function(){!function(){var e=parseInt((0,g.$o)(g.dA.userVisitCount),10);Number.isNaN(e)&&(e=0),(0,g.qQ)(g.dA.userVisitCount,e+1),e>2&&!(0,g.$o)(g.dA.hasDisplayedNotificationModal)&&O(!0)}(),K(),window.addEventListener("resize",K)}),[]);var $=!M&&o&&t;return(0,r.jsx)("div",{children:(0,r.jsxs)(m.Z,{className:C().loadingSpinner,size:"large",spinning:e.appLoading,children:[(0,r.jsxs)(he,{className:C().root,children:[(0,r.jsxs)("div",{className:C().leftContent,children:[(0,r.jsxs)("div",{className:C().topSection,children:[p&&(0,r.jsx)(w.M,{source:"/hls/stream.m3u8",online:p}),!p&&!e.appLoading&&(0,r.jsx)(R.R,{streamName:k,customText:F,notificationsEnabled:Q,fediverseAccount:Y,lastLive:_,onNotifyClick:function(){return V(!0)}}),p&&(0,r.jsx)(ee.X,{online:p,lastConnectTime:v,lastDisconnectTime:_,viewerCount:j})]}),(0,r.jsx)("div",{className:C().midSection,children:(0,r.jsxs)("div",{className:C().buttonsLogoTitleSection,children:[(0,r.jsxs)(E,{children:[W,(0,r.jsx)(D.e,{size:"small"}),(0,r.jsx)(xe,{open:G,notificationClicked:function(){return V(!0)},notificationClosed:function(){return X()},children:(0,r.jsx)(I.E,{onClick:function(){return V(!0)}})})]}),(0,r.jsx)(fe,{title:"Notify",open:B,afterClose:function(){return X()},handleCancel:function(){return X()},children:(0,r.jsx)(pe,{})})]})}),d&&t?(0,r.jsx)(ve,{name:k,streamTitle:y,summary:S,tags:T,socialHandles:H,extraPageContent:b,messages:f,currentUser:a,showChat:$}):(0,r.jsx)(je,{name:k,streamTitle:y,summary:S,tags:T,socialHandles:H,extraPageContent:b})]}),$&&!d&&(0,r.jsx)(Z,{})]}),(!d||!$)&&(0,r.jsx)(L,{version:N})]})})},we=t(8119),ye=t(85402),Ce=function(e){var n=e.title,t=e.message;return(0,r.jsx)(ye.Z,{title:n,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,r.jsx)("p",{style:{fontSize:"1.3rem"},children:t})})},be=t(82670);var Ne=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:type",content:"video.other"}),(0,r.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,r.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:height",content:"315"}),(0,r.jsx)("meta",{property:"og:video:width",content:"560"}),(0,r.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,r.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"twitter:card",content:"player"}),(0,r.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,r.jsx)("meta",{property:"twitter:player:height",content:"315"})]})},ke=function(e){var n=e.hydrationScript;return(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:n}})},Se=function(){var e=(0,i.sJ)(c.g1),n=e.name,t=e.title,a=e.customStyles,u=(0,i.sJ)(c.di),d=(0,i.sJ)(c.ap),m=(0,l.useRef)(null),h=e.chatDisabled;(0,l.useEffect)((function(){!function(e){var n=function(e){e.setAttribute("rel","noopener noreferrer ")};e.querySelectorAll("a").forEach((function(e){return n(e)})),new MutationObserver((function(e){var t=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value,l=!0,c=!1,u=void 0;try{for(var d,m=s.addedNodes[Symbol.iterator]();!(l=(d=m.next()).done);l=!0){var h=d.value;(0,be.Z)(h,HTMLElement)&&"a"===h.tagName.toLowerCase()&&n(h)}}catch(f){c=!0,u=f}finally{try{l||null==m.return||m.return()}finally{if(c)throw u}}}}catch(f){r=!0,o=f}finally{try{t||null==a.return||a.return()}finally{if(r)throw o}}})).observe(e,{attributes:!1,childList:!0,subtree:!0})}(m.current)}),[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s(),{children:[(0,r.jsx)(Ne,{}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,r.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,r.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,r.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,r.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,r.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,r.jsx)("style",{children:a}),(0,r.jsx)(ke,{hydrationScript:"\n\twindow.statusHydration = {{.StatusJSON}};\n\twindow.configHydration = {{.ServerConfigJSON}};\n\t"})]}),(0,r.jsx)(c.me,{}),(0,r.jsxs)(o.Z,{ref:m,children:[(0,r.jsx)(we.h,{name:t||n,chatAvailable:u,chatDisabled:h}),(0,r.jsx)(_e,{}),d&&(0,r.jsx)(Ce,{title:d.title,message:d.message})]})]})};function Ze(){return(0,r.jsx)(Se,{})}},69767:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},74688:function(e){e.exports={root:"ContentHeader_root__HaUG0",row:"ContentHeader_row__9Q8gH",logoTitleSection:"ContentHeader_logoTitleSection__Z8pUc",logo:"ContentHeader_logo__wo_HN",titleSection:"ContentHeader_titleSection___6Y15",title:"ContentHeader_title__E_DsI",subtitle:"ContentHeader_subtitle__n1Wew",tagList:"ContentHeader_tagList__rx3jY"}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},63291:function(e){e.exports={root:"Content_root__h1mNK",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC"}},28105:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},35603:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV",item:"Footer_item__rXxSr"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},7918:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},75347:function(e){e.exports={root:"Sidebar_root__8HE0A"}},52740:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}},12103:function(e){e.exports={followers:"FollowerCollection_followers__e_EUS",noFollowers:"FollowerCollection_noFollowers__UaCVW"}},40305:function(e){e.exports={follower:"SingleFollower_follower__EyBDI",avatar:"SingleFollower_avatar__V9jHG",account:"SingleFollower_account__Z66vo",placeholder:"SingleFollower_placeholder__CgsfJ"}}},function(e){e.O(0,[1272,8700,2544,8939,3903,4267,2944,9764,9372,7364,2429,29,1082,8782,1899,8763,2854,9774,2888,179],(function(){return n=48312,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/index-4d76e82174dd5550.js b/static/web/_next/static/chunks/pages/index-4d76e82174dd5550.js deleted file mode 100644 index 8c58b54b5..000000000 --- a/static/web/_next/static/chunks/pages/index-4d76e82174dd5550.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(52924)}])},8119:function(e,n,t){"use strict";t.d(n,{h:function(){return P},Z:function(){return M}});var r=t(85893),o=t(97183),i=t(94199),a=t(20550),s=t(828),l=t(66516),c=t(38504),d=t(71577),u=t(26713),m=t(86548),h=t(94149),p=t(38545),x=t(87547),f=t(39398),g=t(4480),j=t(67294),v=t(49218),_=t(5152),y=t.n(_),b=t(1899),C=t(47093),w=t.n(C),N=y()((function(){return t.e(2365).then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),k=y()((function(){return Promise.all([t.e(8939),t.e(8225)]).then(t.bind(t,98225)).then((function(e){return e.NameChangeModal}))}),{loadableGenerated:{webpack:function(){return[98225]}}}),S=y()((function(){return Promise.all([t.e(2944),t.e(9674)]).then(t.bind(t,9674)).then((function(e){return e.AuthModal}))}),{loadableGenerated:{webpack:function(){return[9674]}}}),Z=function(e){var n=e.username,t=void 0===n?void 0:n,o=(0,j.useState)(!1),i=o[0],a=o[1],_=(0,j.useState)(!1),y=_[0],C=_[1],Z=(0,s.Z)((0,g.FV)(b.ZA),2),H=Z[0],T=Z[1],L=(0,g.sJ)(b.Q),A=function(){T(!H)};(0,v.y1)("c",A,{enableOnContentEditable:!1},[H]);var P=(0,g.sJ)(b.db);if(!P)return null;var M=P.displayName,J=t||M,z=(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(m.Z,{}),onClick:function(){a(!0)},children:"Change name"},"0"),(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(h.Z,{}),onClick:function(){return C(!0)},children:"Authenticate"},"1"),L.chatAvailable&&(0,r.jsx)(l.Z.Item,{icon:(0,r.jsx)(p.Z,{}),onClick:function(){return A()},children:"Toggle chat"},"3")]});return(0,r.jsxs)("div",{className:"".concat(w().root),children:[(0,r.jsx)(c.Z,{overlay:z,trigger:["click"],children:(0,r.jsx)(d.Z,{type:"primary",icon:(0,r.jsx)(x.Z,{style:{marginRight:".5rem"}}),children:(0,r.jsxs)(u.Z,{children:[J,(0,r.jsx)(f.Z,{})]})})}),(0,r.jsx)(N,{title:"Change Chat Display Name",open:i,handleCancel:function(){return a(!1)},children:(0,r.jsx)(k,{})}),(0,r.jsx)(N,{title:"Authenticate",open:y,handleCancel:function(){return C(!1)},children:(0,r.jsx)(S,{})})]})},H=t(60113),T=t(92910),L=t.n(T),A=o.Z.Header,P=function(e){var n=e.name,t=void 0===n?"Your stream title":n,o=e.chatAvailable,s=e.chatDisabled;return(0,r.jsxs)(A,{className:"".concat(L().header),children:[(0,r.jsxs)("div",{className:"".concat(L().logo),children:[(0,r.jsx)(H.C,{variant:"contrast"}),(0,r.jsx)("span",{children:t})]}),o&&!s&&(0,r.jsx)(Z,{}),!o&&!s&&(0,r.jsx)(i.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,r.jsx)(a.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})},M=P},52924:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ge}});var r=t(85893),o=t(97183),i=t(4480),a=t(9008),s=t.n(a),l=t(67294),c=t(1899),d=t(828),u=t(2944),m=t(11382),h=t(94184),p=t.n(h),x=t(5152),f=t.n(x),g=t(73682),j=t(28105),v=t.n(j),_=function(e){var n=e.content;return(0,r.jsx)("div",{className:v().pageContentContainer,children:(0,r.jsx)("div",{className:v().customPageContent,dangerouslySetInnerHTML:{__html:n}})})},y=t(83818),b=t(63291),C=t.n(b),w=t(87412),N=t(28763),k=t(75347),S=t.n(k),Z=function(){var e=(0,i.sJ)(c.db),n=(0,i.sJ)(c.pH);if(!e)return null;var t=e.id,o=e.isModerator,a=e.displayName;return(0,r.jsx)(w.ZP,{className:S().root,collapsedWidth:0,width:320,children:(0,r.jsx)(N.ChatContainer,{messages:n,usernameToHighlight:a,chatUserId:t,isModerator:o})})},H=t(35603),T=t.n(H),L=function(e){var n=e.version;return(0,r.jsxs)("div",{className:T().footer,children:[(0,r.jsxs)("div",{className:T().text,children:["Powered by ",(0,r.jsx)("a",{href:"https://owncast.online",children:n})]}),(0,r.jsxs)("div",{className:T().links,children:[(0,r.jsx)("div",{className:T().item,children:(0,r.jsx)("a",{href:"https://owncast.online/docs",target:"_blank",rel:"noreferrer",children:"Documentation"})}),(0,r.jsx)("div",{className:T().item,children:(0,r.jsx)("a",{href:"https://owncast.online/help",target:"_blank",rel:"noreferrer",children:"Contribute"})}),(0,r.jsx)("div",{className:T().item,children:(0,r.jsx)("a",{href:"https://github.com/owncast/owncast",target:"_blank",rel:"noreferrer",children:"Source"})})]})]})},A=t(69767),P=t.n(A),M=function(e){var n=e.children;return(0,r.jsx)("div",{className:"".concat(P().row),children:n})},J=t(71577),z=t(32365),E=t(36879),R=t.n(E),U=function(e){var n=e.action,t=n.url,o=n.title,i=n.description,a=n.icon,s=n.color,c=n.openExternally,d=e.primary,u=void 0===d||d,m=(0,l.useState)(!1),h=m[0],p=m[1];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(J.Z,{type:u?"primary":"default",className:"".concat(R().button),onClick:function(){c?window.open(t,"_blank"):p(!0)},style:{backgroundColor:s},children:[a&&(0,r.jsx)("img",{src:a,className:"".concat(R().icon),alt:i}),o]}),(0,r.jsx)(z.Modal,{title:i||o,url:t,open:h,height:"80vh",handleCancel:function(){return p(!1)}})]})},D=t(1698),I=t(30896),F=t(52437),G=t(53731),q=t(79216),O=t(7918),Y=t.n(O),Q=function(e){var n=e.src;return(0,r.jsx)("div",{className:Y().root,children:(0,r.jsx)("div",{className:Y().container,children:(0,r.jsx)(q.Z,{src:n,alt:"Logo",className:Y().image,rootClassName:Y().image})})})},V=t(52740),X=t.n(V),B=function(e){var n=e.links;return(0,r.jsx)("div",{className:X().links,children:n.map((function(e){return(0,r.jsx)("a",{href:e.url,className:X().link,target:"_blank",rel:"noreferrer",children:(0,r.jsx)("img",{src:e.icon,alt:e.platform,title:e.platform,className:X().link})},e.platform)}))})},K=t(74688),W=t.n(K),$=function(e){var n=e.name,t=e.title,o=e.summary,i=e.logo,a=e.tags,s=e.links;return(0,r.jsx)("div",{className:W().root,children:(0,r.jsxs)("div",{className:W().logoTitleSection,children:[(0,r.jsx)("div",{className:W().logo,children:(0,r.jsx)(Q,{src:i})}),(0,r.jsxs)("div",{className:W().titleSection,children:[(0,r.jsx)("div",{className:p()(W().title,W().row),children:n}),(0,r.jsx)("div",{className:p()(W().subtitle,W().row),children:(0,r.jsx)(G.Z,{children:t||o})}),(0,r.jsx)("div",{className:p()(W().tagList,W().row),children:a.length>0&&a.map((function(e){return(0,r.jsxs)("span",{children:["#",e,"\xa0"]},e)}))}),(0,r.jsx)("div",{className:p()(W().socialLinks,W().row),children:(0,r.jsx)(B,{links:s})})]})]})})},ee=t(43125),ne=o.Z.Content,te=f()((function(){return Promise.resolve().then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),re=f()((function(){return t.e(5135).then(t.bind(t,5135)).then((function(e){return e.BrowserNotifyModal}))}),{loadableGenerated:{webpack:function(){return[5135]}}}),oe=f()((function(){return t.e(7735).then(t.bind(t,57735)).then((function(e){return e.NotifyReminderPopup}))}),{loadableGenerated:{webpack:function(){return[57735]}}}),ie=f()((function(){return Promise.all([t.e(8939),t.e(3698),t.e(7373)]).then(t.bind(t,97373)).then((function(e){return e.FollowerCollection}))}),{loadableGenerated:{webpack:function(){return[97373]}}}),ae=f()((function(){return Promise.resolve().then(t.bind(t,28763)).then((function(e){return e.ChatContainer}))}),{loadableGenerated:{webpack:function(){return[28763]}}}),se=function(e){var n=e.name,t=e.streamTitle,o=e.summary,i=e.tags,a=e.socialHandles,s=e.extraPageContent,l=[{label:"About",key:"2",children:(0,r.jsx)(_,{content:s})},{label:"Followers",key:"3",children:(0,r.jsx)(ie,{name:n})}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:C().lowerHalf,children:(0,r.jsx)($,{name:n,title:t,summary:o,tags:i,links:a,logo:"/logo"})}),(0,r.jsx)("div",{className:C().lowerSection,children:(0,r.jsx)(u.Z,{defaultActiveKey:"0",items:l})})]})},le=function(e){var n=e.name,t=e.streamTitle,o=e.summary,i=e.tags,a=e.socialHandles,s=e.extraPageContent,l=e.messages,c=e.currentUser,d=e.showChat;if(!c)return null;var m=c.id,h=c.displayName,x=[{label:"Chat",key:"1",children:d&&(0,r.jsx)(ae,{messages:l,usernameToHighlight:h,chatUserId:m,isModerator:!1,height:"40vh"})},{label:"About",key:"2",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)($,{name:n,title:t,summary:o,tags:i,links:a,logo:"/logo"}),(0,r.jsx)(_,{content:s})]})},{label:"Followers",key:"3",children:(0,r.jsx)(ie,{name:n})}];return(0,r.jsx)("div",{className:p()(C().lowerSectionMobile),children:(0,r.jsx)(u.Z,{defaultActiveKey:"0",items:x})})},ce=function(){var e=(0,i.sJ)(c.Q),n=(0,i.sJ)(c.g1),t=(0,i.sJ)(c.pT),o=(0,i.sJ)(c.di),a=(0,i.sJ)(c.db),s=(0,d.Z)((0,i.FV)(c.hz),2),u=s[0],h=s[1],p=(0,i.sJ)(c.j$),x=(0,i.sJ)(c.YW),f=(0,i.sJ)(c.RI),j=f.viewerCount,v=f.lastConnectTime,_=f.lastDisconnectTime,b=f.streamTitle,w=n.extraPageContent,N=n.version,k=n.name,S=n.summary,H=n.socialHandles,T=n.tags,A=n.externalActions,P=n.offlineMessage,J=n.chatDisabled,z=n.federation,E=n.notifications,R=(0,l.useState)(!1),G=R[0],q=R[1],O=(0,l.useState)(!1),Y=O[0],Q=O[1],V=z.account,X=E.browser.enabled,B=A.map((function(e){return(0,r.jsx)(U,{action:e},e.url)})),K=function(){Q(!1),q(!1),(0,g.qQ)(g.dA.hasDisplayedNotificationModal,!0)},W=function(){var e=window.innerWidth;void 0===u&&h(e<=768),!u&&e<=768&&h(!0),u&&e>768&&h(!1)};(0,l.useEffect)((function(){!function(){var e=parseInt((0,g.$o)(g.dA.userVisitCount),10);Number.isNaN(e)&&(e=0),(0,g.qQ)(g.dA.userVisitCount,e+1),e>2&&!(0,g.$o)(g.dA.hasDisplayedNotificationModal)&&q(!0)}(),W(),window.addEventListener("resize",W)}),[]);var $=!J&&o&&t;return(0,r.jsx)("div",{children:(0,r.jsxs)(m.Z,{className:C().loadingSpinner,size:"large",spinning:e.appLoading,children:[(0,r.jsxs)(ne,{className:C().root,children:[(0,r.jsxs)("div",{className:C().leftContent,children:[(0,r.jsxs)("div",{className:C().topSection,children:[x&&(0,r.jsx)(y.M,{source:"/hls/stream.m3u8",online:x}),!x&&!e.appLoading&&(0,r.jsx)(D.R,{streamName:k,customText:P,notificationsEnabled:X,fediverseAccount:V,lastLive:_,onNotifyClick:function(){return Q(!0)}}),x&&(0,r.jsx)(ee.X,{online:x,lastConnectTime:v,lastDisconnectTime:_,viewerCount:j})]}),(0,r.jsx)("div",{className:C().midSection,children:(0,r.jsxs)("div",{className:C().buttonsLogoTitleSection,children:[(0,r.jsxs)(M,{children:[B,(0,r.jsx)(I.e,{size:"small"}),(0,r.jsx)(oe,{open:G,notificationClicked:function(){return Q(!0)},notificationClosed:function(){return K()},children:(0,r.jsx)(F.E,{onClick:function(){return Q(!0)}})})]}),(0,r.jsx)(te,{title:"Notify",open:Y,afterClose:function(){return K()},handleCancel:function(){return K()},children:(0,r.jsx)(re,{})})]})}),u&&t?(0,r.jsx)(le,{name:k,streamTitle:b,summary:S,tags:T,socialHandles:H,extraPageContent:w,messages:p,currentUser:a,showChat:$}):(0,r.jsx)(se,{name:k,streamTitle:b,summary:S,tags:T,socialHandles:H,extraPageContent:w})]}),$&&!u&&(0,r.jsx)(Z,{})]}),(!u||!$)&&(0,r.jsx)(L,{version:N})]})})},de=t(8119),ue=t(85402),me=function(e){var n=e.title,t=e.message;return(0,r.jsx)(ue.Z,{title:n,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,r.jsx)("p",{style:{fontSize:"1.3rem"},children:t})})},he=t(82670);var pe=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:type",content:"video.other"}),(0,r.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,r.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:height",content:"315"}),(0,r.jsx)("meta",{property:"og:video:width",content:"560"}),(0,r.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,r.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"twitter:card",content:"player"}),(0,r.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,r.jsx)("meta",{property:"twitter:player:height",content:"315"})]})},xe=function(e){var n=e.hydrationScript;return(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:n}})},fe=function(){var e=(0,i.sJ)(c.g1),n=e.name,t=e.title,a=e.customStyles,d=(0,i.sJ)(c.di),u=(0,i.sJ)(c.ap),m=(0,l.useRef)(null),h=e.chatDisabled;(0,l.useEffect)((function(){!function(e){var n=function(e){e.setAttribute("rel","noopener noreferrer ")};e.querySelectorAll("a").forEach((function(e){return n(e)})),new MutationObserver((function(e){var t=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value,l=!0,c=!1,d=void 0;try{for(var u,m=s.addedNodes[Symbol.iterator]();!(l=(u=m.next()).done);l=!0){var h=u.value;(0,he.Z)(h,HTMLElement)&&"a"===h.tagName.toLowerCase()&&n(h)}}catch(p){c=!0,d=p}finally{try{l||null==m.return||m.return()}finally{if(c)throw d}}}}catch(p){r=!0,o=p}finally{try{t||null==a.return||a.return()}finally{if(r)throw o}}})).observe(e,{attributes:!1,childList:!0,subtree:!0})}(m.current)}),[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s(),{children:[(0,r.jsx)(pe,{}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,r.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,r.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,r.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,r.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,r.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,r.jsx)("style",{children:a}),(0,r.jsx)(xe,{hydrationScript:"\n\twindow.statusHydration = {{.StatusJSON}};\n\twindow.configHydration = {{.ServerConfigJSON}};\n\t"})]}),(0,r.jsx)(c.me,{}),(0,r.jsxs)(o.Z,{ref:m,children:[(0,r.jsx)(de.h,{name:t||n,chatAvailable:d,chatDisabled:h}),(0,r.jsx)(ce,{}),u&&(0,r.jsx)(me,{title:u.title,message:u.message})]})]})};function ge(){return(0,r.jsx)(fe,{})}},69767:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},74688:function(e){e.exports={root:"ContentHeader_root__HaUG0",row:"ContentHeader_row__9Q8gH",logoTitleSection:"ContentHeader_logoTitleSection__Z8pUc",logo:"ContentHeader_logo__wo_HN",titleSection:"ContentHeader_titleSection___6Y15",title:"ContentHeader_title__E_DsI",subtitle:"ContentHeader_subtitle__n1Wew",tagList:"ContentHeader_tagList__rx3jY"}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},63291:function(e){e.exports={root:"Content_root__h1mNK",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC"}},28105:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},35603:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV",item:"Footer_item__rXxSr"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},7918:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},75347:function(e){e.exports={root:"Sidebar_root__8HE0A"}},52740:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}}},function(e){e.O(0,[1272,8700,2544,3903,2944,9764,9372,7364,2429,2860,1082,9358,1899,8763,2854,9774,2888,179],(function(){return n=48312,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/webpack-636e41224c6421b2.js b/static/web/_next/static/chunks/webpack-636e41224c6421b2.js new file mode 100644 index 000000000..61826de48 --- /dev/null +++ b/static/web/_next/static/chunks/webpack-636e41224c6421b2.js @@ -0,0 +1 @@ +!function(){"use strict";var e={},t={};function a(c){var n=t[c];if(void 0!==n)return n.exports;var f=t[c]={id:c,loaded:!1,exports:{}},r=!0;try{e[c].call(f.exports,f,f.exports,a),r=!1}finally{r&&delete t[c]}return f.loaded=!0,f.exports}a.m=e,a.amdO={},function(){var e=[];a.O=function(t,c,n,f){if(!c){var r=1/0;for(i=0;i=f)&&Object.keys(a.O).every((function(e){return a.O[e](c[b])}))?c.splice(b--,1):(d=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[c,n,f]}}(),a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};a.t=function(c,n){if(1&n&&(c=this(c)),8&n)return c;if("object"===typeof c&&c){if(4&n&&c.__esModule)return c;if(16&n&&"function"===typeof c.then)return c}var f=Object.create(null);a.r(f);var r={};e=e||[null,t({}),t([]),t(t)];for(var d=2&n&&c;"object"==typeof d&&!~e.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((function(e){r[e]=function(){return c[e]}}));return r.default=function(){return c},a.d(f,r),f}}(),a.d=function(e,t){for(var c in t)a.o(t,c)&&!a.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,c){return a.f[c](e,t),t}),[]))},a.u=function(e){return 8939===e?"static/chunks/8939-29079579e398192c.js":3903===e?"static/chunks/3903-97c724332d1a5798.js":4267===e?"static/chunks/4267-b54c540ce3a8eed5.js":3626===e?"static/chunks/3626-717f7ff16ee717f6.js":8091===e?"static/chunks/8091-d7457a988f3f1d54.js":2944===e?"static/chunks/2944-2a9b62dad629aca2.js":"static/chunks/"+e+"."+{177:"07e81c876c150d56",228:"7008583a6edcaf6f",305:"81addcdd22dac87e",370:"52e16b019e72e3e7",402:"d2b366579300ae3b",617:"933158da5fda9b65",673:"ece53c2daf22e93d",758:"4e6dace4695912fa",786:"bda6a234b010d76b",870:"2ed8d4e2260b0131",889:"ae582629b4ddeada",1053:"cadcccb1887d1655",1084:"5b7bb8501d49b84f",1300:"4b32175d5676e8df",1390:"d3320a2772ee1632",1446:"d4716947e754971e",1650:"8909ff4ee9be21d8",1660:"2e69d7651d99fffa",1770:"e9d167a359425734",1873:"a756dbdabb15f510",1920:"c33b94a1a93e947a",2040:"8c1f1efa3891bda8",2119:"33ee19dcc774b7b3",2136:"87902004824e59b3",2314:"0c7ba9cb309bbcae",2365:"e111da64ecd79b2c",2386:"7849afb31fdbcbe9",2406:"fdc2fd9471c9277c",2542:"d87f01354fa8625b",2602:"23ec287cba38919e",2675:"c188080c2b5d4a3d",2750:"64ce3f9e097bda01",3203:"4a03f08cc075a41a",3283:"508ea7a82a17eb6f",3314:"21f4d993f672bac4",3465:"3b01362997e94018",3482:"123b2f3fc81ff758",3509:"3932ae3634ee5b2e",3519:"7b44cdadfa3dccf8",3883:"2fb7f03e2ca3529a",3993:"128027dd7265a783",4144:"ac42c8b1f09df8f9",4163:"1b16f58fd432f4da",4212:"f665078601f914de",4293:"9a6146c4cd92c0ea",4323:"88655b5982d04133",4439:"4f04bf9f401b13af",4511:"c20b329de4a94d30",4732:"abe153cd9e74cf8c",4778:"fe124557ac27707c",4796:"59ffa2aa8de67c8d",4879:"ff6296c6446eb972",4920:"5562dd5144a4a0c6",5122:"c94bd6aa99c27f1e",5134:"8c40f920826939fb",5135:"6541163f583921e6",5372:"1cbe35d74e4ddd0e",5379:"aade0a3e0e516604",5648:"6417f99e99d45d4c",5753:"369aa818f4fa0dae",5815:"d2bce212c3134600",5819:"d24a858591bd5c3c",5879:"1b55d2b462afebf3",6062:"99b0d3c3b2722798",6092:"cb997822d5ad9a36",6121:"3d67c2fae8774daa",6395:"21f59417b457c6b2",6443:"dd7e5cd2e659f21f",6471:"a1b969913a20a449",6665:"9b4fa1f8176c8faf",6692:"4c47b40a842bfe37",6732:"a90326e23dac20d0",6991:"015225d9c5454e6b",7001:"e576736a60e3567b",7047:"7055375b97eebebc",7213:"0c5bd78e1f87e6ff",7315:"6f5ab7ef11af96d8",7365:"f54e467b2f4523d1",7370:"f49ab049acf16289",7421:"06e86f299b78a3d3",7475:"b1546a7ebfa28cbb",7525:"938d02cfd66dc876",7590:"efdde8b2997b09a1",7601:"5a327eee5530fbe2",7663:"b3b1c64004576939",7735:"df129ee8ae364d5e",7741:"177818bb3887216e",7762:"7bae3e40001587ab",7781:"f2e7d91aa07a4804",7917:"04781deb6d0da1e1",7988:"0a5a4bd779cbda3e",8007:"36e212ff50d5c34a",8029:"ca20148827905307",8088:"6b0d80ed9ff6ff22",8142:"fca9502f471ae841",8171:"97a5e3c90df36fc7",8225:"b1ad83c90140af1a",8283:"914dfaa8316d16d7",8393:"ac707cc39cd5aab8",8561:"281bc4ce77b8995a",8770:"719a9f10f1781d66",8910:"0be92050586e05f6",8915:"0a35c35fa8764138",9071:"d812295ab2a73c24",9121:"5c4711a92893fca9",9232:"400b581440faecc1",9296:"b186db185a29360d",9558:"cfa96280a9f9d439",9607:"ff46198deba68fd1",9674:"1c8a004662670f7a",9713:"0ca649eec80739b4",9781:"6915afce38fb4e27",9809:"b5973362b6234d26",9831:"a0808ada0e3f0bcc",9972:"dcde2a016a9a80ee"}[e]+".js"},a.miniCssF=function(e){return"static/css/"+{29:"7c735c05af084bb2",955:"38031c0e461b403f",2365:"19d74602c45ee60b",2888:"091d82c6a3e87800",3126:"50d4ea374f37f0f9",5135:"edb3f793b986286c",5405:"7307f45d4ef5f9e9",7735:"ffd83995160971e6",7781:"b92b45b3f2e03f44",8399:"87104b15c089124a",9674:"ed28f196ebbc4ea9"}[e]+".css"},a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";a.l=function(c,n,f,r){if(e[c])e[c].push(n);else{var d,b;if(void 0!==f)for(var o=document.getElementsByTagName("script"),i=0;i=f)&&Object.keys(a.O).every((function(e){return a.O[e](c[b])}))?c.splice(b--,1):(d=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[c,n,f]}}(),a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};a.t=function(c,n){if(1&n&&(c=this(c)),8&n)return c;if("object"===typeof c&&c){if(4&n&&c.__esModule)return c;if(16&n&&"function"===typeof c.then)return c}var f=Object.create(null);a.r(f);var r={};e=e||[null,t({}),t([]),t(t)];for(var d=2&n&&c;"object"==typeof d&&!~e.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((function(e){r[e]=function(){return c[e]}}));return r.default=function(){return c},a.d(f,r),f}}(),a.d=function(e,t){for(var c in t)a.o(t,c)&&!a.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,c){return a.f[c](e,t),t}),[]))},a.u=function(e){return 8939===e?"static/chunks/8939-29079579e398192c.js":3903===e?"static/chunks/3903-97c724332d1a5798.js":3698===e?"static/chunks/3698-68c12d00e813fbb1.js":3626===e?"static/chunks/3626-6e2d5f9ad5a28e5a.js":8091===e?"static/chunks/8091-d7457a988f3f1d54.js":2944===e?"static/chunks/2944-2a9b62dad629aca2.js":"static/chunks/"+e+"."+{177:"07e81c876c150d56",228:"7008583a6edcaf6f",305:"81addcdd22dac87e",370:"52e16b019e72e3e7",402:"d2b366579300ae3b",617:"933158da5fda9b65",673:"ece53c2daf22e93d",758:"4e6dace4695912fa",786:"bda6a234b010d76b",870:"2ed8d4e2260b0131",889:"ae582629b4ddeada",1053:"cadcccb1887d1655",1084:"5b7bb8501d49b84f",1300:"4b32175d5676e8df",1390:"d3320a2772ee1632",1446:"d4716947e754971e",1650:"8909ff4ee9be21d8",1660:"2e69d7651d99fffa",1770:"e9d167a359425734",1873:"a756dbdabb15f510",1920:"c33b94a1a93e947a",2040:"8c1f1efa3891bda8",2119:"33ee19dcc774b7b3",2136:"87902004824e59b3",2314:"0c7ba9cb309bbcae",2365:"e111da64ecd79b2c",2386:"7849afb31fdbcbe9",2406:"fdc2fd9471c9277c",2542:"d87f01354fa8625b",2602:"23ec287cba38919e",2675:"c188080c2b5d4a3d",2750:"64ce3f9e097bda01",3203:"4a03f08cc075a41a",3283:"508ea7a82a17eb6f",3314:"21f4d993f672bac4",3465:"3b01362997e94018",3482:"123b2f3fc81ff758",3509:"3932ae3634ee5b2e",3519:"7b44cdadfa3dccf8",3883:"2fb7f03e2ca3529a",3993:"128027dd7265a783",4144:"ac42c8b1f09df8f9",4163:"1b16f58fd432f4da",4212:"f665078601f914de",4293:"9a6146c4cd92c0ea",4323:"88655b5982d04133",4439:"4f04bf9f401b13af",4511:"c20b329de4a94d30",4732:"abe153cd9e74cf8c",4778:"fe124557ac27707c",4796:"59ffa2aa8de67c8d",4879:"ff6296c6446eb972",4920:"5562dd5144a4a0c6",5122:"c94bd6aa99c27f1e",5134:"8c40f920826939fb",5135:"53533171eca4a3fd",5372:"1cbe35d74e4ddd0e",5379:"aade0a3e0e516604",5648:"6417f99e99d45d4c",5753:"369aa818f4fa0dae",5815:"d2bce212c3134600",5819:"d24a858591bd5c3c",5879:"1b55d2b462afebf3",6062:"99b0d3c3b2722798",6092:"cb997822d5ad9a36",6121:"3d67c2fae8774daa",6395:"21f59417b457c6b2",6443:"dd7e5cd2e659f21f",6471:"a1b969913a20a449",6665:"9b4fa1f8176c8faf",6692:"4c47b40a842bfe37",6732:"a90326e23dac20d0",6991:"015225d9c5454e6b",7001:"e576736a60e3567b",7047:"7055375b97eebebc",7213:"0c5bd78e1f87e6ff",7315:"6f5ab7ef11af96d8",7365:"f54e467b2f4523d1",7370:"f49ab049acf16289",7373:"1edc9c455c71cb1e",7421:"06e86f299b78a3d3",7475:"b1546a7ebfa28cbb",7525:"938d02cfd66dc876",7590:"efdde8b2997b09a1",7601:"5a327eee5530fbe2",7663:"b3b1c64004576939",7735:"df129ee8ae364d5e",7741:"177818bb3887216e",7762:"7bae3e40001587ab",7781:"f2e7d91aa07a4804",7917:"04781deb6d0da1e1",7988:"0a5a4bd779cbda3e",8007:"36e212ff50d5c34a",8029:"ca20148827905307",8088:"6b0d80ed9ff6ff22",8142:"fca9502f471ae841",8171:"97a5e3c90df36fc7",8225:"b1ad83c90140af1a",8283:"914dfaa8316d16d7",8393:"ac707cc39cd5aab8",8561:"281bc4ce77b8995a",8770:"719a9f10f1781d66",8910:"0be92050586e05f6",8915:"0a35c35fa8764138",9071:"d812295ab2a73c24",9121:"5c4711a92893fca9",9232:"400b581440faecc1",9296:"b186db185a29360d",9558:"cfa96280a9f9d439",9607:"ff46198deba68fd1",9674:"1c8a004662670f7a",9713:"0ca649eec80739b4",9781:"6915afce38fb4e27",9809:"b5973362b6234d26",9831:"a0808ada0e3f0bcc",9972:"dcde2a016a9a80ee"}[e]+".js"},a.miniCssF=function(e){return"static/css/"+{955:"38031c0e461b403f",2365:"19d74602c45ee60b",2860:"7c735c05af084bb2",2888:"091d82c6a3e87800",3126:"50d4ea374f37f0f9",5135:"edb3f793b986286c",5405:"88e696b24c18d1ea",7373:"3de321ecac3cd01f",7735:"ffd83995160971e6",7781:"b92b45b3f2e03f44",8399:"87104b15c089124a",9674:"ed28f196ebbc4ea9"}[e]+".css"},a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";a.l=function(c,n,f,r){if(e[c])e[c].push(n);else{var d,b;if(void 0!==f)for(var o=document.getElementsByTagName("script"),i=0;ip{margin:0}.ChatTextField_emojiButton__ON_Cu,.ChatTextField_sendButton__MOmD4{border:none;background:none;cursor:pointer;padding:0 1rem}.ChatTextField_sendButton__MOmD4{display:none}@media(max-width:768px){.ChatTextField_sendButton__MOmD4{display:block}}.ChatModeratorNotification_chatModerationNotification__kgFWe{background-color:var(--theme-background-primary);margin:5px;border-radius:15px;border:1px solid rgba(0,0,0,.3);padding:10px;max-width:400px;display:flex;justify-content:center;align-items:center}.ChatModeratorNotification_chatModerationNotification__kgFWe .ChatModeratorNotification_icon__7FdGg{margin-right:10px;width:20px;height:20px}.ChatSystemMessage_chatSystemMessage__c6XEN{background:var(--theme-color-background-main);background:linear-gradient(70deg,#4e3672,#411c8b 40%,#534382 80%);margin:5px;border-radius:5px;border-width:1px;border-style:solid;padding:12px;max-width:400px}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_user__6yHSJ{display:flex;align-items:center;font-family:var(--theme-text-display-font-family);font-weight:700;color:#fff}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g{color:#fff}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g p{color:#fff;margin:unset}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g mark{padding-left:.35em;padding-right:.35em;background-color:var(--theme-color-palette-12)}.ChatJoinMessage_root__vuVXa{padding:10px 0;text-align:center;font-size:.8rem;font-style:italic}.ChatContainer_chatHeader__EJsYI{text-align:center;font-weight:700;padding:5px 0;color:var(--text-color-secondary);border-bottom:1px solid var(--color-owncast-gray-700);font-variant:small-caps}.ChatContainer_toBottomWrap__3V5wa{display:flex;width:100%;justify-content:center;position:absolute;bottom:50px;color:var(--text-color-secondary)}.ChatContainer_toBottomWrap__3V5wa .ChatContainer_toBottomWrap__3V5wa .ChatContainer_toBottomBtn__453AG{border:none;background-color:gray}.ChatContainer_nameChangeView__ziyXN{display:flex;font-size:.9rem;border-radius:var(--theme-rounded-corners);padding:5px 15px;color:var(--color-owncast-gray-300);background-color:var(--color-owncast-background)}.ChatContainer_nameChangeView__ziyXN .ChatContainer_nameChangeText__yXG__{font-weight:700;font-family:var(--theme-text-display-font-family)}.ChatContainer_nameChangeView__ziyXN .ChatContainer_nameChangeText__yXG__ .ChatContainer_plain__IPS19{font-weight:400;font-family:var(--theme-text-body-font-family)!important}.ChatContainer_chatContainer__O2lYN{display:flex;flex-direction:column;background-color:var(--theme-color-background-chat);height:100%}.ChatContainer_virtuoso__OS9Kz{width:auto;flex-grow:1;overflow-y:scroll;overflow-x:hidden}.Sidebar_root__8HE0A{background-color:var(--theme-color-background-chat);display:none;--header-h:64px}@media(min-width:768px){.Sidebar_root__8HE0A{position:sticky;top:var(--header-h);display:block;height:calc(100vh - var(--header-h));max-height:calc(100vh - var(--header-h))}}.Sidebar_root__8HE0A>div{display:flex;flex-flow:column nowrap;flex-grow:1!important;height:100%!important}.Footer_footer__mPuvf{display:flex;justify-content:space-between;flex-direction:row;background-color:var(--theme-color-background-header);width:100%;color:var(--theme-color-components-text-on-dark);font-family:var(--theme-text-body-font-family);padding:.6em;font-size:.8rem;font-weight:600;border-top:1px solid hsla(0,4%,83%,.5)}@media(max-width:600px){.Footer_footer__mPuvf{display:none}}.Footer_footer__mPuvf a{color:var(--theme-text-secondary)}.Footer_footer__mPuvf .Footer_links__7bBxV{display:flex;justify-content:space-between;flex-direction:row}.Footer_footer__mPuvf .Footer_links__7bBxV .Footer_item__rXxSr{margin-left:1.2em}.ActionButtonRow_row__SiEGe{padding:.3rem;display:flex;align-items:center;justify-content:flex-end}.ActionButtonRow_row__SiEGe button{margin-left:.3rem;margin-right:.3rem}.Modal_spinner__GiSS0{position:absolute;top:50%;left:50%}.Modal_content__h9my9{display:block;height:100%;padding:2vw;background-color:var(--theme-color-components-modal-content-background);color:var(--theme-color-components-modal-content-text)}.ActionButton_button__z5Z2c{margin:3px;font-weight:400;font-family:var(--theme-text-display-font-family)}.ActionButton_button__z5Z2c .ActionButton_icon__EPp7Q{width:20px;margin-right:3px}.FollowModal_header__la1ji{font-family:var(--theme-text-display-font-family);font-size:.8rem}.FollowModal_buttons__tt4Mc{display:flex;justify-content:flex-end;margin-top:10px}.FollowModal_instructions__HiKFF{font-family:var(--theme-text-display-font-family);font-size:.7rem;font-weight:600}.FollowModal_footer__AjucH{font-size:.5rem}.FollowModal_account__cmHkm{display:flex;flex-direction:row;margin-top:5px;margin-bottom:10px;font-size:.8rem}.FollowModal_account__cmHkm .FollowModal_logo__Ew8xK{border-radius:50%;width:4em;height:4em}.FollowModal_account__cmHkm .FollowModal_username__A_OTw{display:flex;flex-direction:column;margin-left:10px;margin-top:5px}.FollowModal_account__cmHkm .FollowModal_username__A_OTw .FollowModal_name__Sf_TP{font-weight:600}.OfflineBanner_outerContainer__3AbsB{display:flex;justify-content:center}.OfflineBanner_innerContainer__zTm13{width:clamp(0px,100%,600px);display:flex;flex-direction:column;color:var(--theme-color-components-text-on-light);background-color:var(--theme-color-background-main);margin:1rem auto;border-radius:var(--theme-rounded-corners);padding:1rem;font-size:1.2rem;border:1px solid #d3d3d3}.OfflineBanner_bodyText__nNNy0{line-height:1.5rem}.OfflineBanner_separator___j_Ss{margin-top:15px;margin-bottom:15px}.OfflineBanner_lastLiveDate___UZdO{margin-top:15px;font-size:1rem;opacity:.5}.OfflineBanner_lastLiveDate___UZdO .OfflineBanner_clockIcon__s0DB_{margin-right:5px}.OfflineBanner_header__Vu20o{font-weight:700}.OfflineBanner_footer__o3Zl5{margin-top:15px}.Logo_root__jKiJC{display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;margin-right:.5rem;width:96px;height:96px;border-radius:50%;border-width:5px;border-style:solid;border-color:var(--theme-color-palette-0);background-color:var(--theme-color-palette-4)}.Logo_container__A4UYT{width:90%;height:90%;border-radius:50%;overflow:hidden}.Logo_image__Ahkom{width:100%;height:100%;background-size:cover;background-position:50%;overflow:hidden}.SocialLinks_link___CcSm{width:1.8em;margin-right:16px}.SocialLinks_links__gOAb7{display:flex;align-items:center;justify-content:flex-start;margin-top:5px}.ContentHeader_root__HaUG0{position:relative;display:grid;padding:1.4rem}.ContentHeader_row__9Q8gH{margin-bottom:7px}.ContentHeader_logoTitleSection__Z8pUc{display:flex}@media(max-width:768px){.ContentHeader_logoTitleSection__Z8pUc{flex-direction:column}.ContentHeader_logoTitleSection__Z8pUc .ContentHeader_logo__wo_HN{margin:.6rem auto}}.ContentHeader_titleSection___6Y15{display:flex;flex-direction:column;margin-left:.6rem}.ContentHeader_titleSection___6Y15 .ContentHeader_title__E_DsI{font-family:var(--theme-text-display-font-family);color:var(--theme-color-palette-0);font-size:2rem;font-weight:700;line-height:30px}.ContentHeader_titleSection___6Y15 .ContentHeader_subtitle__n1Wew{font-size:1.5rem;font-weight:300;line-height:1.3;color:var(--theme-color-background-header);max-width:900px}.ContentHeader_tagList__rx3jY{color:var(--theme-color-palette-10)}.ContentHeader_tagList__rx3jY span{display:inline-block;margin-right:.5rem;font-size:.9rem;font-weight:500}.Statusbar_statusbar__AtVnB{display:flex;align-items:center;font-size:.8rem;justify-content:space-between;height:2rem;width:100%;padding:var(--content-padding);color:var(--theme-color-palette-5)}.Content_root__h1mNK{display:grid;grid-template-columns:1fr auto;height:100%;background-color:var(--theme-color-background-main)}.Content_root__h1mNK .Content_topSection__JIZi0{padding:0;background-color:var(--theme-color-components-video-background)}.Content_root__h1mNK .Content_lowerSection__BZHYI{padding:0 2%;margin-bottom:2em}.Content_root__h1mNK .Content_lowerSectionMobile__hRr0_{padding:.3em}.Content_leftCol__U2TDq{display:flex;flex-direction:column}.Content_loadingSpinner__mDlYC{position:fixed;left:50%;top:50%;z-index:999999}.UserDropdown_root__IdxfQ button{border:none}.UserDropdown_root__IdxfQ button .UserDropdown_ant-space__XJTZ3 .UserDropdown_ant-space-item__w4nC2{color:var(--theme-unknown-2)}.Header_header__U4Ro1{position:sticky;top:0;justify-content:space-between;z-index:20;padding:.4rem .7rem;box-shadow:0 1px 3px 1px rgba(0,0,0,.1);background-color:var(--theme-color-background-header)}.Header_header__U4Ro1,.Header_header__U4Ro1 .Header_logo__HLZ6Z{display:flex;align-items:center}.Header_header__U4Ro1 .Header_logo__HLZ6Z span{color:var(--theme-color-components-text-on-dark);font-family:var(--theme-text-display-font-family);margin-left:.5rem;font-size:1.5rem;font-weight:600}@media(max-width:768px){.Header_header__U4Ro1{line-height:5vh;height:5vh}} \ No newline at end of file +.CustomPageContent_pageContentContainer__EG4tU{display:flex;justify-content:center;align-items:center}.CustomPageContent_customPageContent__Mr981{font-size:1.1rem;line-height:1.6em;color:var(--theme-color-palette-0);padding:calc(2*var(--content-padding));border-radius:var(--theme-rounded-corners);width:100%;background-color:var(--theme-color-background-light)}.CustomPageContent_customPageContent__Mr981 hr{margin:1.35em 0;border:0;border-top:1px solid var(--theme-text-secondary)}.CustomPageContent_customPageContent__Mr981 div.CustomPageContent_summary___Zgps{font-size:1.1rem}.CustomPageContent_customPageContent__Mr981 p{margin:unset}.VideoJS_player__GT8FN{height:auto!important;width:100%}.VideoJS_player__GT8FN video{position:static!important}.VideoJS_poster__nlmqm{width:100%;height:100%}@media(max-width:768px){.VideoJS_player__GT8FN{height:30vh!important}}.VideoPoster_poster__RDkSk{background-color:#000;display:flex;justify-content:center;width:100%;height:100%}.ChatUserBadge_badge__1EdUp{font-family:var(--theme-text-display-font-family);font-weight:500;font-size:.6rem;text-transform:uppercase;padding:0 1px 1px;border-radius:3px;border-width:1px;border-style:solid;margin-left:3px}.ChatUserMessage_root__79heB{border-left:3px solid;position:relative;font-size:.9rem;padding:0 5px 5px}.ChatUserMessage_root__79heB *{z-index:100}.ChatUserMessage_root__79heB .ChatUserMessage_user__xUEp9{display:flex;align-items:center;font-family:var(--theme-text-display-font-family);font-weight:700}.ChatUserMessage_root__79heB .ChatUserMessage_message__MJ9LD{overflow:hidden;overflow-wrap:anywhere;font-weight:600}.ChatUserMessage_root__79heB .ChatUserMessage_message__MJ9LD mark{padding-left:.35em;padding-right:.35em;color:var(--theme-color-palette-12)}.ChatUserMessage_root__79heB.ChatUserMessage_ownMessage__d28A3{border-left:none;border-right:3px solid}.ChatUserMessage_root__79heB.ChatUserMessage_ownMessage__d28A3 .ChatUserMessage_background__Tfghp{position:absolute;z-index:-1;top:0;left:0;width:100%;height:100%;background-color:currentColor;opacity:.07;border-radius:.25rem;overflow:hidden}.ChatUserMessage_root__79heB .ChatUserMessage_modMenuWrapper__7fblv{position:absolute;display:none;top:0;right:10px}.ChatUserMessage_root__79heB .ChatUserMessage_modMenuWrapper__7fblv button:active,.ChatUserMessage_root__79heB .ChatUserMessage_modMenuWrapper__7fblv button:focus{display:block!important}.ChatUserMessage_root__79heB:hover .ChatUserMessage_modMenuWrapper__7fblv{display:block}.ChatUserMessage_messagePadding__Xp1F6{padding:.4rem 0 0}.ChatUserMessage_messagePaddingCollapsed__qxN0E{padding:0}.ChatTextField_root__4oUkJ{position:relative;display:flex;bottom:0;width:100%;padding:5px 1vw;overflow-x:hidden}.ChatTextField_root__4oUkJ .ChatTextField_inputWrap__1mAjD{position:relative;display:flex;color:var(--theme-color-components-form-field-text);background-color:var(--theme-color-palette-3);border-radius:var(--theme-rounded-corners);bottom:0;width:100%;padding:.3rem;overflow-x:hidden;transition:box-shadow 90ms ease-in-out}.ChatTextField_root__4oUkJ .ChatTextField_inputWrap__1mAjD:focus-within{background-color:var(--theme-color-components-form-field-background);box-shadow:inset 0 0 2px 2px var(--theme-color-palette-3)}.ChatTextField_root__4oUkJ .ChatTextField_maxCharacters__yGT4s{border:1px solid red}.ChatTextField_root__4oUkJ div[role=textbox]{font-size:.9rem;padding:.3rem;background-color:inherit;border-color:var(--theme-color-components-form-field-border);box-shadow:0;transition:box-shadow 50ms ease-in-out}.ChatTextField_root__4oUkJ div[role=textbox]:focus{outline:1px solid var(--color-owncast-gray-500)!important}.ChatTextField_root__4oUkJ div[role=textbox]>p{margin:0}.ChatTextField_emojiButton__ON_Cu,.ChatTextField_sendButton__MOmD4{border:none;background:none;cursor:pointer;padding:0 1rem}.ChatTextField_sendButton__MOmD4{display:none}@media(max-width:768px){.ChatTextField_sendButton__MOmD4{display:block}}.ChatModeratorNotification_chatModerationNotification__kgFWe{background-color:var(--theme-background-primary);margin:5px;border-radius:15px;border:1px solid rgba(0,0,0,.3);padding:10px;max-width:400px;display:flex;justify-content:center;align-items:center}.ChatModeratorNotification_chatModerationNotification__kgFWe .ChatModeratorNotification_icon__7FdGg{margin-right:10px;width:20px;height:20px}.ChatSystemMessage_chatSystemMessage__c6XEN{background:var(--theme-color-background-main);background:linear-gradient(70deg,#4e3672,#411c8b 40%,#534382 80%);margin:5px;border-radius:5px;border-width:1px;border-style:solid;padding:12px;max-width:400px}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_user__6yHSJ{display:flex;align-items:center;font-family:var(--theme-text-display-font-family);font-weight:700;color:#fff}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g{color:#fff}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g p{color:#fff;margin:unset}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g mark{padding-left:.35em;padding-right:.35em;background-color:var(--theme-color-palette-12)}.ChatJoinMessage_root__vuVXa{padding:10px 0;text-align:center;font-size:.8rem;font-style:italic}.ChatContainer_chatHeader__EJsYI{text-align:center;font-weight:700;padding:5px 0;color:var(--text-color-secondary);border-bottom:1px solid var(--color-owncast-gray-700);font-variant:small-caps}.ChatContainer_toBottomWrap__3V5wa{display:flex;width:100%;justify-content:center;position:absolute;bottom:50px;color:var(--text-color-secondary)}.ChatContainer_toBottomWrap__3V5wa .ChatContainer_toBottomWrap__3V5wa .ChatContainer_toBottomBtn__453AG{border:none;background-color:gray}.ChatContainer_nameChangeView__ziyXN{display:flex;font-size:.9rem;border-radius:var(--theme-rounded-corners);padding:5px 15px;color:var(--color-owncast-gray-300);background-color:var(--color-owncast-background)}.ChatContainer_nameChangeView__ziyXN .ChatContainer_nameChangeText__yXG__{font-weight:700;font-family:var(--theme-text-display-font-family)}.ChatContainer_nameChangeView__ziyXN .ChatContainer_nameChangeText__yXG__ .ChatContainer_plain__IPS19{font-weight:400;font-family:var(--theme-text-body-font-family)!important}.ChatContainer_chatContainer__O2lYN{display:flex;flex-direction:column;background-color:var(--theme-color-background-chat);height:100%}.ChatContainer_virtuoso__OS9Kz{width:auto;flex-grow:1;overflow-y:scroll;overflow-x:hidden}.Sidebar_root__8HE0A{background-color:var(--theme-color-background-chat);display:none;--header-h:64px}@media(min-width:768px){.Sidebar_root__8HE0A{position:sticky;top:var(--header-h);display:block;height:calc(100vh - var(--header-h));max-height:calc(100vh - var(--header-h))}}.Sidebar_root__8HE0A>div{display:flex;flex-flow:column nowrap;flex-grow:1!important;height:100%!important}.Footer_footer__mPuvf{display:flex;justify-content:space-between;flex-direction:row;background-color:var(--theme-color-background-header);width:100%;color:var(--theme-color-components-text-on-dark);font-family:var(--theme-text-body-font-family);padding:.6em;font-size:.8rem;font-weight:600;border-top:1px solid hsla(0,4%,83%,.5)}@media(max-width:600px){.Footer_footer__mPuvf{display:none}}.Footer_footer__mPuvf a{color:var(--theme-text-secondary)}.Footer_footer__mPuvf .Footer_links__7bBxV{display:flex;justify-content:space-between;flex-direction:row}.Footer_footer__mPuvf .Footer_links__7bBxV .Footer_item__rXxSr{margin-left:1.2em}.ActionButtonRow_row__SiEGe{padding:.3rem;display:flex;align-items:center;justify-content:flex-end}.ActionButtonRow_row__SiEGe button{margin-left:.3rem;margin-right:.3rem}.Modal_spinner__GiSS0{position:absolute;top:50%;left:50%}.Modal_content__h9my9{display:block;height:100%;padding:2vw;background-color:var(--theme-color-components-modal-content-background);color:var(--theme-color-components-modal-content-text)}.ActionButton_button__z5Z2c{margin:3px;font-weight:400;font-family:var(--theme-text-display-font-family)}.ActionButton_button__z5Z2c .ActionButton_icon__EPp7Q{width:20px;margin-right:3px}.FollowModal_header__la1ji{font-family:var(--theme-text-display-font-family);font-size:.8rem}.FollowModal_buttons__tt4Mc{display:flex;justify-content:flex-end;margin-top:10px}.FollowModal_instructions__HiKFF{font-family:var(--theme-text-display-font-family);font-size:.7rem;font-weight:600}.FollowModal_footer__AjucH{font-size:.5rem}.FollowModal_account__cmHkm{display:flex;flex-direction:row;margin-top:5px;margin-bottom:10px;font-size:.8rem}.FollowModal_account__cmHkm .FollowModal_logo__Ew8xK{border-radius:50%;width:4em;height:4em}.FollowModal_account__cmHkm .FollowModal_username__A_OTw{display:flex;flex-direction:column;margin-left:10px;margin-top:5px}.FollowModal_account__cmHkm .FollowModal_username__A_OTw .FollowModal_name__Sf_TP{font-weight:600}.OfflineBanner_outerContainer__3AbsB{display:flex;justify-content:center}.OfflineBanner_innerContainer__zTm13{width:clamp(0px,100%,600px);display:flex;flex-direction:column;color:var(--theme-color-components-text-on-light);background-color:var(--theme-color-background-main);margin:1rem auto;border-radius:var(--theme-rounded-corners);padding:1rem;font-size:1.2rem;border:1px solid #d3d3d3}.OfflineBanner_bodyText__nNNy0{line-height:1.5rem}.OfflineBanner_separator___j_Ss{margin-top:15px;margin-bottom:15px}.OfflineBanner_lastLiveDate___UZdO{margin-top:15px;font-size:1rem;opacity:.5}.OfflineBanner_lastLiveDate___UZdO .OfflineBanner_clockIcon__s0DB_{margin-right:5px}.OfflineBanner_header__Vu20o{font-weight:700}.OfflineBanner_footer__o3Zl5{margin-top:15px}.Logo_root__jKiJC{display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;margin-right:.5rem;width:96px;height:96px;border-radius:50%;border-width:5px;border-style:solid;border-color:var(--theme-color-palette-0);background-color:var(--theme-color-palette-4)}.Logo_container__A4UYT{width:90%;height:90%;border-radius:50%;overflow:hidden}.Logo_image__Ahkom{width:100%;height:100%;background-size:cover;background-position:50%;overflow:hidden}.SocialLinks_link___CcSm{width:1.8em;margin-right:16px}.SocialLinks_links__gOAb7{display:flex;align-items:center;justify-content:flex-start;margin-top:5px}.ContentHeader_root__HaUG0{position:relative;display:grid;padding:1.4rem}.ContentHeader_row__9Q8gH{margin-bottom:7px}.ContentHeader_logoTitleSection__Z8pUc{display:flex}@media(max-width:768px){.ContentHeader_logoTitleSection__Z8pUc{flex-direction:column}.ContentHeader_logoTitleSection__Z8pUc .ContentHeader_logo__wo_HN{margin:.6rem auto}}.ContentHeader_titleSection___6Y15{display:flex;flex-direction:column;margin-left:.6rem}.ContentHeader_titleSection___6Y15 .ContentHeader_title__E_DsI{font-family:var(--theme-text-display-font-family);color:var(--theme-color-palette-0);font-size:2rem;font-weight:700;line-height:30px}.ContentHeader_titleSection___6Y15 .ContentHeader_subtitle__n1Wew{font-size:1.5rem;font-weight:300;line-height:1.3;color:var(--theme-color-background-header);max-width:900px}.ContentHeader_tagList__rx3jY{color:var(--theme-color-palette-10)}.ContentHeader_tagList__rx3jY span{display:inline-block;margin-right:.5rem;font-size:.9rem;font-weight:500}.Statusbar_statusbar__AtVnB{display:flex;align-items:center;font-size:.8rem;justify-content:space-between;height:2rem;width:100%;padding:var(--content-padding);color:var(--theme-color-palette-5)}.SingleFollower_follower__EyBDI{border:1px solid rgba(0,0,0,.3);padding:10px;border-radius:15px;height:75px;width:250px;font-size:.8rem;overflow:hidden}.SingleFollower_follower__EyBDI:hover{border-color:var(--theme-text-link)}.SingleFollower_follower__EyBDI .SingleFollower_avatar__V9jHG{height:50px;width:50px;border:1px solid rgba(0,0,0,.3)}.SingleFollower_follower__EyBDI .SingleFollower_account__Z66vo{color:var(--theme-text-secondary);text-overflow:ellipsis}.SingleFollower_follower__EyBDI .SingleFollower_placeholder__CgsfJ{width:100%;height:100%}.FollowerCollection_followers__e_EUS,.FollowerCollection_noFollowers__UaCVW{width:100%;background-color:var(--theme-color-background-light)}.FollowerCollection_noFollowers__UaCVW{padding:calc(2*var(--content-padding));border-radius:var(--theme-rounded-corners)}.Content_root__h1mNK{display:grid;grid-template-columns:1fr auto;height:100%;background-color:var(--theme-color-background-main)}.Content_root__h1mNK .Content_topSection__JIZi0{padding:0;background-color:var(--theme-color-components-video-background)}.Content_root__h1mNK .Content_lowerSection__BZHYI{padding:0 2%;margin-bottom:2em}.Content_root__h1mNK .Content_lowerSectionMobile__hRr0_{padding:.3em}.Content_leftCol__U2TDq{display:flex;flex-direction:column}.Content_loadingSpinner__mDlYC{position:fixed;left:50%;top:50%;z-index:999999}.UserDropdown_root__IdxfQ button{border:none}.UserDropdown_root__IdxfQ button .UserDropdown_ant-space__XJTZ3 .UserDropdown_ant-space-item__w4nC2{color:var(--theme-unknown-2)}.Header_header__U4Ro1{position:sticky;top:0;justify-content:space-between;z-index:20;padding:.4rem .7rem;box-shadow:0 1px 3px 1px rgba(0,0,0,.1);background-color:var(--theme-color-background-header)}.Header_header__U4Ro1,.Header_header__U4Ro1 .Header_logo__HLZ6Z{display:flex;align-items:center}.Header_header__U4Ro1 .Header_logo__HLZ6Z span{color:var(--theme-color-components-text-on-dark);font-family:var(--theme-text-display-font-family);margin-left:.5rem;font-size:1.5rem;font-weight:600}@media(max-width:768px){.Header_header__U4Ro1{line-height:5vh;height:5vh}} \ No newline at end of file diff --git a/static/web/_next/static/kApTy-6oht6vuwMkUtMA9/_buildManifest.js b/static/web/_next/static/kApTy-6oht6vuwMkUtMA9/_buildManifest.js new file mode 100644 index 000000000..15e1a7a04 --- /dev/null +++ b/static/web/_next/static/kApTy-6oht6vuwMkUtMA9/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(a,s,c,e,i,t,n,d,f,h,o,b,m,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[b,m,l,s,a,c,t,n,f,u,k,_,w,v,"static/chunks/8782-f3854e33766b9b1f.js",h,r,y,"static/css/7307f45d4ef5f9e9.css","static/chunks/pages/index-2d490b2f1b451e9c.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[s,a,c,e,i,t,n,d,o,k,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-4b93901c94acbbd2.js"],"/admin/access-tokens":[s,a,c,e,i,"static/chunks/pages/admin/access-tokens-5f45e77ab2176f5b.js"],"/admin/actions":[s,a,c,e,"static/chunks/pages/admin/actions-118addb368d4ec1b.js"],"/admin/chat/messages":[I,s,a,c,e,i,n,B,F,"static/chunks/pages/admin/chat/messages-954bab3a08b52e63.js"],"/admin/chat/users":[I,s,a,c,e,i,t,n,B,F,"static/chunks/pages/admin/chat/users-47c7102aec07a1a6.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-60cf4efa879df43b.js"],"/admin/config-federation":["static/chunks/1829-b015b4e5cd814fc8.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-162a41a161f6bd5a.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-aee7dee7c0ddef1c.js",s,a,c,e,g,"static/chunks/9257-d713fc824ad40552.js",A,"static/chunks/pages/admin/config-public-details-e19f32415e69afa7.js"],"/admin/config-server-details":[D,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[s,a,c,e,A,"static/chunks/pages/admin/config-social-items-4259e7e71b649d89.js"],"/admin/config-storage":["static/chunks/5473-ecd3fd646bf241fd.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[s,a,c,e,D,"static/chunks/4812-9c96405be4c6ddd3.js","static/chunks/pages/admin/config-video-77be2acde5c474cb.js"],"/admin/federation/actions":[s,a,c,e,i,"static/chunks/pages/admin/federation/actions-7358c2d2b36cd0d3.js"],"/admin/federation/followers":[s,a,c,e,i,t,"static/chunks/pages/admin/federation/followers-7c6d59427a9c1b69.js"],"/admin/hardware-info":[j,i,t,d,o,p,g,"static/chunks/pages/admin/hardware-info-2cb40bf1c957de96.js"],"/admin/help":[t,d,v,"static/chunks/5566-d74e7fd6b2bc806a.js","static/chunks/pages/admin/help-635a866be914f510.js"],"/admin/logs":[s,a,c,e,i,k,"static/chunks/pages/admin/logs-edbab10327a430d5.js"],"/admin/stream-health":[j,i,t,d,o,p,"static/chunks/6610-d5a140d3395ae209.js","static/chunks/pages/admin/stream-health-897a4c79610a240c.js"],"/admin/upgrade":[s,a,c,e,"static/chunks/3812-73e73ff4fa8c15d9.js","static/chunks/pages/admin/upgrade-20cbc2c681a2512f.js"],"/admin/viewer-info":[j,s,a,c,e,i,t,n,d,o,p,g,"static/chunks/pages/admin/viewer-info-b295d263f1fe0bd8.js"],"/admin/webhooks":[s,a,c,e,"static/chunks/pages/admin/webhooks-66e239b373b061f0.js"],"/embed/chat/readonly":[b,m,f,u,h,r,"static/css/87104b15c089124a.css","static/chunks/pages/embed/chat/readonly-7d52555642af387d.js"],"/embed/chat/readwrite":[b,m,a,f,u,h,r,"static/css/38031c0e461b403f.css","static/chunks/pages/embed/chat/readwrite-b54f76d80455488b.js"],"/embed/video":[l,n,f,_,w,h,y,"static/css/50d4ea374f37f0f9.css","static/chunks/pages/embed/video-767df07d35be7bcf.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-97c724332d1a5798.js","static/chunks/8939-29079579e398192c.js","static/chunks/4267-b54c540ce3a8eed5.js","static/chunks/3626-717f7ff16ee717f6.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/2944-2a9b62dad629aca2.js","static/chunks/9764-3705d4c034a766fe.js","static/chunks/5315-0e7e74a6fb9533c3.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-18f6a7fa5034eeb3.js","static/chunks/4763-a050d4b408cb3260.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-579ef58c933db91c.js","static/chunks/7364-aaa393afe6bb8ebd.js","static/chunks/2429-38af9f180f370b65.js","static/chunks/8763-7d290efc89421849.js","static/chunks/7910-c80aab5f0058b5c3.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-e5a704c6afec0fd3.js","static/css/7c735c05af084bb2.css","static/chunks/29-2e97e484c972d352.js","static/chunks/1082-c86716156ee6f510.js","static/chunks/2854-adab6ebb159dfcfb.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9189-200a9342100c92dd.js","static/chunks/9640-e282810d6fb4f58d.js","static/chunks/2877-6ed259e27dba66ad.js","static/chunks/3286-a15aa91d3d2fc97f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/PXrLrLwN0xe5zsQnjdW_Y/_ssgManifest.js b/static/web/_next/static/kApTy-6oht6vuwMkUtMA9/_ssgManifest.js similarity index 100% rename from static/web/_next/static/PXrLrLwN0xe5zsQnjdW_Y/_ssgManifest.js rename to static/web/_next/static/kApTy-6oht6vuwMkUtMA9/_ssgManifest.js diff --git a/static/web/admin/access-tokens/index.html b/static/web/admin/access-tokens/index.html index 0b1a15c20..8506850c5 100644 --- a/static/web/admin/access-tokens/index.html +++ b/static/web/admin/access-tokens/index.html @@ -1 +1 @@ -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 +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/web/admin/actions/index.html b/static/web/admin/actions/index.html index 1dc2a5674..2f3572c4c 100644 --- a/static/web/admin/actions/index.html +++ b/static/web/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/web/admin/chat/messages/index.html b/static/web/admin/chat/messages/index.html index a33d56027..9ead8f698 100644 --- a/static/web/admin/chat/messages/index.html +++ b/static/web/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/web/admin/chat/users/index.html b/static/web/admin/chat/users/index.html index 2d2f25669..6343bf26b 100644 --- a/static/web/admin/chat/users/index.html +++ b/static/web/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/web/admin/config-chat/index.html b/static/web/admin/config-chat/index.html index 45318a331..a5f12540d 100644 --- a/static/web/admin/config-chat/index.html +++ b/static/web/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/web/admin/config-federation/index.html b/static/web/admin/config-federation/index.html index 5c3e2989a..de358cbc2 100644 --- a/static/web/admin/config-federation/index.html +++ b/static/web/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/web/admin/config-notify/index.html b/static/web/admin/config-notify/index.html index fa890c019..e9f15e9b2 100644 --- a/static/web/admin/config-notify/index.html +++ b/static/web/admin/config-notify/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file diff --git a/static/web/admin/config-public-details/index.html b/static/web/admin/config-public-details/index.html index a51bac715..f3af6a16d 100644 --- a/static/web/admin/config-public-details/index.html +++ b/static/web/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/web/admin/config-server-details/index.html b/static/web/admin/config-server-details/index.html index 57fc3e7ba..15da07507 100644 --- a/static/web/admin/config-server-details/index.html +++ b/static/web/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/web/admin/config-social-items/index.html b/static/web/admin/config-social-items/index.html index 8fe4299ae..eae155d42 100644 --- a/static/web/admin/config-social-items/index.html +++ b/static/web/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/web/admin/config-storage/index.html b/static/web/admin/config-storage/index.html index 8de995455..cf93ba2a8 100644 --- a/static/web/admin/config-storage/index.html +++ b/static/web/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/web/admin/config-video/index.html b/static/web/admin/config-video/index.html index dec1d2ebf..a2e97a618 100644 --- a/static/web/admin/config-video/index.html +++ b/static/web/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/web/admin/federation/actions/index.html b/static/web/admin/federation/actions/index.html index 9699e132d..74b6541b3 100644 --- a/static/web/admin/federation/actions/index.html +++ b/static/web/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/web/admin/federation/followers/index.html b/static/web/admin/federation/followers/index.html index a5e88cb0b..b07cf37c5 100644 --- a/static/web/admin/federation/followers/index.html +++ b/static/web/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/web/admin/hardware-info/index.html b/static/web/admin/hardware-info/index.html index 5045d5e24..7c032378d 100644 --- a/static/web/admin/hardware-info/index.html +++ b/static/web/admin/hardware-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file diff --git a/static/web/admin/help/index.html b/static/web/admin/help/index.html index 031166d1c..4a01e20e6 100644 --- a/static/web/admin/help/index.html +++ b/static/web/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/web/admin/index.html b/static/web/admin/index.html index 7a7d0b0ab..df46b32b9 100644 --- a/static/web/admin/index.html +++ b/static/web/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/web/admin/logs/index.html b/static/web/admin/logs/index.html index 684358b73..4263ada81 100644 --- a/static/web/admin/logs/index.html +++ b/static/web/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/web/admin/stream-health/index.html b/static/web/admin/stream-health/index.html index 444cdab2f..72d9ac051 100644 --- a/static/web/admin/stream-health/index.html +++ b/static/web/admin/stream-health/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file diff --git a/static/web/admin/upgrade/index.html b/static/web/admin/upgrade/index.html index 6c973a30a..da22006f3 100644 --- a/static/web/admin/upgrade/index.html +++ b/static/web/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/web/admin/viewer-info/index.html b/static/web/admin/viewer-info/index.html index 429649467..7a75fd73c 100644 --- a/static/web/admin/viewer-info/index.html +++ b/static/web/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 stream
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 stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file diff --git a/static/web/admin/webhooks/index.html b/static/web/admin/webhooks/index.html index 37275c0c6..6cf2bf9ed 100644 --- a/static/web/admin/webhooks/index.html +++ b/static/web/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 diff --git a/static/web/embed/chat/readonly/index.html b/static/web/embed/chat/readonly/index.html index 32e76544e..997ca7f5e 100644 --- a/static/web/embed/chat/readonly/index.html +++ b/static/web/embed/chat/readonly/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/chat/readwrite/index.html b/static/web/embed/chat/readwrite/index.html index 79154be34..d05f37667 100644 --- a/static/web/embed/chat/readwrite/index.html +++ b/static/web/embed/chat/readwrite/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/video/index.html b/static/web/embed/video/index.html index cc33ee101..efbece4d6 100644 --- a/static/web/embed/video/index.html +++ b/static/web/embed/video/index.html @@ -1 +1 @@ -
This stream is offline. Check back soon!
\ No newline at end of file +
This stream is offline. Check back soon!
\ No newline at end of file diff --git a/static/web/index.html b/static/web/index.html index cac9be36e..e03768643 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,4 +1,4 @@
Chat offline
Logo
Preview
\ No newline at end of file +
Chat offline
Logo
Preview
\ No newline at end of file