mirror of
https://github.com/owncast/owncast.git
synced 2024-12-28 20:18:37 +03:00
1 line
No EOL
19 KiB
JavaScript
Vendored
1 line
No EOL
19 KiB
JavaScript
Vendored
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6637],{50464:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(1413),i=n(67294),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},o=n(97902),a=i.forwardRef(function(e,t){return i.createElement(o.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:s}))})},52866:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(1413),i=n(67294),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},o=n(97902),a=i.forwardRef(function(e,t){return i.createElement(o.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:s}))})},14424:function(e,t,n){"use strict";n.d(t,{default:function(){return z}});var r=n(87462),i=n(4942),s=n(93967),o=n.n(s),a=n(67294),c=n(93565),l=n(30582),u=n(47485),d=n(97685),f=n(71002),p=n(1413),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},m=n(97902),_=a.forwardRef(function(e,t){return a.createElement(m.Z,(0,p.Z)((0,p.Z)({},e),{},{ref:t,icon:h}))}),v=n(50464),S=n(25084),E=n(91463),y=n(7695),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},g={click:"onClick",hover:"onMouseOver"},N=a.forwardRef(function(e,t){var n=e.visibilityToggle,s=void 0===n||n,l="object"===(0,f.Z)(s)&&void 0!==s.visible,p=(0,a.useState)(function(){return!!l&&s.visible}),h=(0,d.Z)(p,2),m=h[0],N=h[1],O=(0,a.useRef)(null);a.useEffect(function(){l&&N(s.visible)},[l,s]);var R=(0,y.Z)(O),A=function(){e.disabled||(m&&R(),N(function(e){var t,n=!e;return"object"===(0,f.Z)(s)&&(null===(t=s.onVisibleChange)||void 0===t||t.call(s,n)),n}))},M=function(t){var n=e.action,r=e.iconRender,s=g[void 0===n?"click":n]||"",o=(void 0===r?function(e){return e?a.createElement(v.Z,null):a.createElement(_,null)}:r)(m),c=(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},s,A),"className","".concat(t,"-icon")),"key","passwordIcon"),"onMouseDown",function(e){e.preventDefault()}),"onMouseUp",function(e){e.preventDefault()});return a.cloneElement(a.isValidElement(o)?o:a.createElement("span",null,o),c)};return a.createElement(c.C,null,function(n){var c=n.getPrefixCls,l=e.className,d=e.prefixCls,f=e.inputPrefixCls,p=e.size,h=C(e,["className","prefixCls","inputPrefixCls","size"]),_=c("input",f),v=c("input-password",d),y=s&&M(v),g=o()(v,l,(0,i.Z)({},"".concat(v,"-").concat(p),!!p)),N=(0,r.Z)((0,r.Z)({},(0,S.Z)(h,["suffix","iconRender","visibilityToggle"])),{type:m?"text":"password",className:g,prefixCls:_,suffix:y});return p&&(N.size=p),a.createElement(u.ZP,(0,r.Z)({ref:(0,E.sQ)(t,O)},N))})}),O=n(52866),R=n(51095),A=n(60474),M=n(59661),T=n(26901),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},x=a.forwardRef(function(e,t){var n,s=e.prefixCls,l=e.inputPrefixCls,d=e.className,f=e.size,p=e.suffix,h=e.enterButton,m=void 0!==h&&h,_=e.addonAfter,v=e.loading,S=e.disabled,y=e.onSearch,C=e.onChange,g=e.onCompositionStart,N=e.onCompositionEnd,x=b(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),F=a.useContext(c.E_),I=F.getPrefixCls,z=F.direction,Z=a.useContext(A.Z),P=a.useRef(!1),U=I("input-search",s),w=I("input",l),L=(0,M.ri)(U,z).compactSize||f||Z,j=a.useRef(null),k=function(e){var t;document.activeElement===(null===(t=j.current)||void 0===t?void 0:t.input)&&e.preventDefault()},B=function(e){var t,n;y&&y(null===(n=null===(t=j.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},D="boolean"==typeof m?a.createElement(O.Z,null):null,K="".concat(U,"-button"),H=m||{},G=H.type&&!0===H.type.__ANT_BUTTON;n=G||"button"===H.type?(0,T.Tm)(H,(0,r.Z)({onMouseDown:k,onClick:function(e){var t,n;null===(n=null===(t=null==H?void 0:H.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),B(e)},key:"enterButton"},G?{className:K,size:L}:{})):a.createElement(R.Z,{className:K,type:m?"primary":void 0,size:L,disabled:S,key:"enterButton",onMouseDown:k,onClick:B,loading:v,icon:D},m),_&&(n=[n,(0,T.Tm)(_,{key:"addonAfter"})]);var Q=o()(U,(0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(U,"-rtl"),"rtl"===z),"".concat(U,"-").concat(L),!!L),"".concat(U,"-with-button"),!!m),d);return a.createElement(u.ZP,(0,r.Z)({ref:(0,E.sQ)(j,t),onPressEnter:function(e){P.current||v||B(e)}},x,{size:L,onCompositionStart:function(e){P.current=!0,null==g||g(e)},onCompositionEnd:function(e){P.current=!1,null==N||N(e)},prefixCls:w,addonAfter:n,suffix:p,onChange:function(e){e&&e.target&&"click"===e.type&&y&&y(e.target.value,e),C&&C(e)},className:Q,disabled:S}))}),F=n(2016),I=u.ZP;I.Group=function(e){var t=(0,a.useContext)(c.E_),n=t.getPrefixCls,s=t.direction,u=e.prefixCls,d=e.className,f=n("input-group",u),p=o()(f,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(f,"-lg"),"large"===e.size),"".concat(f,"-sm"),"small"===e.size),"".concat(f,"-compact"),e.compact),"".concat(f,"-rtl"),"rtl"===s),void 0===d?"":d),h=(0,a.useContext)(l.aM),m=(0,a.useMemo)(function(){return(0,r.Z)((0,r.Z)({},h),{isFormItemInput:!1})},[h]);return a.createElement("span",{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},a.createElement(l.aM.Provider,{value:m},e.children))},I.Search=x,I.TextArea=F.Z,I.Password=N;var z=I},77889:function(e,t,n){"use strict";n.d(t,{u:function(){return m},Z:function(){return S}});var r=n(87462),i=n(4942),s=n(97685),o=n(93967),a=n.n(o),c=n(74533),l=n(67294),u=n(93565),d=n(47887);function f(e){var t=e.className,n=e.direction,s=e.index,o=e.marginDirection,a=e.children,c=e.split,u=e.wrap,d=l.useContext(m),f=d.horizontalSize,p=d.verticalSize,h=d.latestIndex,_=d.supportFlexGap,v={};return(!_&&("vertical"===n?s<h&&(v={marginBottom:f/(c?2:1)}):v=(0,r.Z)((0,r.Z)({},s<h&&(0,i.Z)({},o,f/(c?2:1))),u&&{paddingBottom:p})),null==a)?null:l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:v},a),s<h&&c&&l.createElement("span",{className:"".concat(t,"-split"),style:v},c))}var p=n(59661),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},m=l.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),_={small:8,middle:16,large:24},v=function(e){var t=l.useContext(u.E_),n=t.getPrefixCls,o=t.space,p=t.direction,v=e.size,S=void 0===v?(null==o?void 0:o.size)||"small":v,E=e.align,y=e.className,C=e.children,g=e.direction,N=void 0===g?"horizontal":g,O=e.prefixCls,R=e.split,A=e.style,M=e.wrap,T=void 0!==M&&M,b=h(e,["size","align","className","children","direction","prefixCls","split","style","wrap"]),x=(0,d.Z)(),F=l.useMemo(function(){return(Array.isArray(S)?S:[S,S]).map(function(e){return"string"==typeof e?_[e]:e||0})},[S]),I=(0,s.Z)(F,2),z=I[0],Z=I[1],P=(0,c.Z)(C,{keepEmpty:!0}),U=void 0===E&&"horizontal"===N?"center":E,w=n("space",O),L=a()(w,"".concat(w,"-").concat(N),(0,i.Z)((0,i.Z)({},"".concat(w,"-rtl"),"rtl"===p),"".concat(w,"-align-").concat(U),U),y),j="".concat(w,"-item"),k="rtl"===p?"marginLeft":"marginRight",B=0,D=P.map(function(e,t){null!=e&&(B=t);var n=e&&e.key||"".concat(j,"-").concat(t);return l.createElement(f,{className:j,key:n,direction:N,index:t,marginDirection:k,split:R,wrap:T},e)}),K=l.useMemo(function(){return{horizontalSize:z,verticalSize:Z,latestIndex:B,supportFlexGap:x}},[z,Z,B,x]);if(0===P.length)return null;var H={};return T&&(H.flexWrap="wrap",x||(H.marginBottom=-Z)),x&&(H.columnGap=z,H.rowGap=Z),l.createElement("div",(0,r.Z)({className:L,style:(0,r.Z)((0,r.Z)({},H),A)},b),l.createElement(m.Provider,{value:K},D))};v.Compact=p.ZP;var S=v},28778:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE||e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY||e>=n.A&&e<=n.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},10477:function(e,t,n){"use strict";var r=n(34155);n(91479);var i=n(67294),s=i&&"object"==typeof i&&"default"in i?i:{default:i},o=void 0!==r&&r.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},c=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,s=void 0===i?o:i;l(a(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",l("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var c=document.querySelector('meta[property="csp-nonce"]');this._nonce=c?c.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){l("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),l(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(l(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(l(a(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed){var n=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(r){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];l(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},t.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];l(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},t.cssRules=function(){var e=this;return this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,n){t&&l(a(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(r,n):i.appendChild(r),r},function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function l(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var u=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},d={};function f(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+u(e+"-"+n)),d[r]}function p(e,t){var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var h=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,s=void 0!==i&&i;this._sheet=r||new c({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),r&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var s=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=s,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=f(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return p(i,e)}):[p(i,t)]}}return{styleId:f(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var _=s.default.useInsertionEffect||s.default.useLayoutEffect,v=new h;function S(e){var t=v||i.useContext(m);return t&&_(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}S.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.style=S},1822:function(e,t,n){"use strict";e.exports=n(10477).style},91479:function(){},11163:function(e,t,n){e.exports=n(9090)}}]); |