@janus-idp/backstage-plugin-jfrog-artifactory
Version:
The Jfrog Artifactory plugin displays information about your container images within the Jfrog Artifactory registry.
2 lines • 43.7 kB
JavaScript
;(self.webpackChunkjanus_idp_backstage_plugin_jfrog_artifactory=self.webpackChunkjanus_idp_backstage_plugin_jfrog_artifactory||[]).push([[2925],{92925:(e,t,n)=>{n.r(t),n.d(t,{RealLogViewer:()=>sn});var i=n(77125),r=n(29365),s=n(99594),o=n(53373),l=n.n(o),a=n(95478),c=n.n(a),u=n(42469);let d;d="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let h=null,g=null;const f=d.clearTimeout,m=d.setTimeout,p=d.cancelAnimationFrame||d.mozCancelAnimationFrame||d.webkitCancelAnimationFrame,_=d.requestAnimationFrame||d.mozRequestAnimationFrame||d.webkitRequestAnimationFrame;null==p||null==_?(h=f,g=function(e){return m(e,20)}):(h=function([e,t]){p(e),f(t)},g=function(e){const t=_((function(){f(n),e()})),n=m((function(){p(t),e()}),20);return[t,n]});class y extends a.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},r=parseFloat(i.paddingLeft||"0"),s=parseFloat(i.paddingRight||"0"),o=parseFloat(i.paddingTop||"0"),l=parseFloat(i.paddingBottom||"0"),a=this._parentNode.getBoundingClientRect(),c=a.height-o-l,u=a.width-r-s,d=this._parentNode.offsetHeight-o-l,h=this._parentNode.offsetWidth-r-s;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===h&&this.state.scaledWidth===u)||(this.setState({height:d,width:h,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:h}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,i,r,s,o,l;const a="undefined"!=typeof document&&document.attachEvent;if(!a){o=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,r=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;o(this),this.__resizeRAF__&&h(this.__resizeRAF__),this.__resizeRAF__=g((function(){s(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,a="";i="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],a="-"+d.toLowerCase()+"-",i=u[n],e=!0;break}}n="resizeanim",t="@"+a+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",r=a+"animation: 1ms "+n+"; "}return{addResizeListener:function(s,c){if(a)s.attachEvent("onresize",c);else{if(!s.__resizeTriggers__){const a=s.ownerDocument,c=d.getComputedStyle(s);c&&"static"===c.position&&(s.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const i=(t||"")+".resize-triggers { "+(r||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',s=n.head||n.getElementsByTagName("head")[0],o=n.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=i:o.appendChild(n.createTextNode(i)),s.appendChild(o)}}(a),s.__resizeLast__={},s.__resizeListeners__=[],(s.__resizeTriggers__=a.createElement("div")).className="resize-triggers";const u=a.createElement("div");u.className="expand-trigger",u.appendChild(a.createElement("div"));const h=a.createElement("div");h.className="contract-trigger",s.__resizeTriggers__.appendChild(u),s.__resizeTriggers__.appendChild(h),s.appendChild(s.__resizeTriggers__),o(s),s.addEventListener("scroll",l,!0),i&&(s.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&o(s)},s.__resizeTriggers__.addEventListener(i,s.__resizeTriggers__.__animationListener__))}s.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(a)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:i=!1,disableWidth:r=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:o,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:h,scaledHeight:g,scaledWidth:f,width:m}=this.state,p={overflow:"visible"},_={};let y=!1;return i||(0===h&&(y=!0),p.height=0,_.height=h,_.scaledHeight=g),r||(0===m&&(y=!0),p.width=0,_.width=m,_.scaledWidth=f),s&&(y=!1),(0,a.createElement)(u,{ref:this._setRef,style:{...p,...c},...d},!y&&e(_))}}var v=n(89575),b=n(2474),k=n(79140),E=n(56840),S="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function x(e){cancelAnimationFrame(e.id)}var w=-1;function R(e){if(void 0===e&&(e=!1),-1===w||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),w=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return w}var A=null;function z(e){if(void 0===e&&(e=!1),null===A||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),r=i.style;return r.width="100px",r.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?A="positive-descending":(t.scrollLeft=1,A=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),A}return A}var T=function(e,t){return e};function C(e){var t,n=e.getItemOffset,i=e.getEstimatedTotalSize,r=e.getItemSize,s=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var i;return(i=e.call(this,t)||this)._instanceProps=c(i.props,(0,b.A)(i)),i._outerRef=void 0,i._resetIsScrollingTimeoutId=null,i.state={instance:(0,b.A)(i),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof i.props.initialScrollOffset?i.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},i._callOnItemsRendered=void 0,i._callOnItemsRendered=(0,E.A)((function(e,t,n,r){return i.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:r})})),i._callOnScroll=void 0,i._callOnScroll=(0,E.A)((function(e,t,n){return i.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),i._getItemStyle=void 0,i._getItemStyle=function(e){var t,s=i.props,o=s.direction,l=s.itemSize,a=s.layout,c=i._getItemStyleCache(u&&l,u&&a,u&&o);if(c.hasOwnProperty(e))t=c[e];else{var d=n(i.props,e,i._instanceProps),h=r(i.props,e,i._instanceProps),g="horizontal"===o||"horizontal"===a,f="rtl"===o,m=g?d:0;c[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:g?0:d,height:g?"100%":h,width:g?h:"100%"}}return t},i._getItemStyleCache=void 0,i._getItemStyleCache=(0,E.A)((function(e,t,n){return{}})),i._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,r=t.scrollLeft,s=t.scrollWidth;i.setState((function(e){if(e.scrollOffset===r)return null;var t=i.props.direction,o=r;if("rtl"===t)switch(z()){case"negative":o=-r;break;case"positive-descending":o=s-n-r}return o=Math.max(0,Math.min(o,s-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:o,scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,r=t.scrollHeight,s=t.scrollTop;i.setState((function(e){if(e.scrollOffset===s)return null;var t=Math.max(0,Math.min(s,r-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),i._resetIsScrollingDebounced)},i._outerRefSetter=function(e){var t=i.props.outerRef;i._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},i._resetIsScrollingDebounced=function(){var e,t,n,r;null!==i._resetIsScrollingTimeoutId&&x(i._resetIsScrollingTimeoutId),i._resetIsScrollingTimeoutId=(e=i._resetIsScrolling,t=150,n=S(),r={id:requestAnimationFrame((function i(){S()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))})},i._resetIsScrolling=function(){i._resetIsScrollingTimeoutId=null,i.setState({isScrolling:!1},(function(){i._getItemStyleCache(-1,null)}))},i}(0,k.A)(t,e),t.getDerivedStateFromProps=function(e,t){return L(e,t),d(e),null};var h=t.prototype;return h.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},h.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,i=n.itemCount,r=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var l=0;if(this._outerRef){var a=this._outerRef;l="vertical"===r?a.scrollWidth>a.clientWidth?R():0:a.scrollHeight>a.clientHeight?R():0}this.scrollTo(s(this.props,e,t,o,this._instanceProps,l))},h.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,i=e.layout;if("number"==typeof n&&null!=this._outerRef){var r=this._outerRef;"horizontal"===t||"horizontal"===i?r.scrollLeft=n:r.scrollTop=n}this._callPropsCallbacks()},h.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,i=this.state,r=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var s=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(z()){case"negative":s.scrollLeft=-r;break;case"positive-ascending":s.scrollLeft=r;break;default:var o=s.clientWidth,l=s.scrollWidth;s.scrollLeft=l-o-r}else s.scrollLeft=r;else s.scrollTop=r}this._callPropsCallbacks()},h.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&x(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,n=e.className,r=e.direction,s=e.height,o=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,h=e.itemKey,g=void 0===h?T:h,f=e.layout,m=e.outerElementType,p=e.outerTagName,_=e.style,y=e.useIsScrolling,b=e.width,k=this.state.isScrolling,E="horizontal"===r||"horizontal"===f,S=E?this._onScrollHorizontal:this._onScrollVertical,x=this._getRangeToRender(),w=x[0],R=x[1],A=[];if(u>0)for(var z=w;z<=R;z++)A.push((0,a.createElement)(t,{data:d,key:g(z,d),index:z,isScrolling:y?k:void 0,style:this._getItemStyle(z)}));var C=i(this.props,this._instanceProps);return(0,a.createElement)(m||p||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:(0,v.A)({position:"relative",height:s,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},_)},(0,a.createElement)(l||c||"div",{children:A,ref:o,style:{height:E?"100%":C,pointerEvents:k?"none":void 0,width:E?C:"100%"}}))},h._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],i=e[2],r=e[3];this._callOnItemsRendered(t,n,i,r)}if("function"==typeof this.props.onScroll){var s=this.state,o=s.scrollDirection,l=s.scrollOffset,a=s.scrollUpdateWasRequested;this._callOnScroll(o,l,a)}},h._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,r=i.isScrolling,s=i.scrollDirection,a=i.scrollOffset;if(0===t)return[0,0,0,0];var c=o(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=r&&"backward"!==s?1:Math.max(1,n),h=r&&"forward"!==s?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+h)),c,u]},t}(a.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var L=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},I=C({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,i,r,s){var o=e.direction,l=e.height,a=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,h="horizontal"===o||"horizontal"===u?d:l,g=Math.max(0,a*c-h),f=Math.min(g,t*c),m=Math.max(0,t*c-h+c+s);switch("smart"===n&&(n=i>=m-h&&i<=f+h?"auto":"center"),n){case"start":return f;case"end":return m;case"center":var p=Math.round(m+(f-m)/2);return p<Math.ceil(h/2)?0:p>g+Math.floor(h/2)?g:p;default:return i>=m&&i<=f?i:i<m?m:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,n){var i=e.direction,r=e.height,s=e.itemCount,o=e.itemSize,l=e.layout,a=e.width,c=t*o,u="horizontal"===i||"horizontal"===l?a:r,d=Math.ceil((u+n-c)/o);return Math.max(0,Math.min(s-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}}),O=n(95479),N=n.n(O);const H="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",j="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",M=(e,t)=>{for(const n in t)e[n]=t[n];return e},P="numeric",F="ascii",W="alpha",B="asciinumeric",D="alphanumeric",U="domain",K="emoji",q="scheme",G="slashscheme",Q="whitespace";function V(e,t){return e in t||(t[e]=[]),t[e]}function Y(e,t,n){t[P]&&(t[B]=!0,t[D]=!0),t[F]&&(t[B]=!0,t[W]=!0),t[B]&&(t[D]=!0),t[W]&&(t[D]=!0),t[D]&&(t[U]=!0),t[K]&&(t[U]=!0);for(const i in t){const t=V(i,n);t.indexOf(e)<0&&t.push(e)}}function $(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}$.groups={},$.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){const i=t.jr[n][0],r=t.jr[n][1];if(r&&i.test(e))return r}return t.jd},has(e,t){return void 0===t&&(t=!1),t?e in this.j:!!this.go(e)},ta(e,t,n,i){for(let r=0;r<e.length;r++)this.tt(e[r],t,n,i)},tr(e,t,n,i){let r;return i=i||$.groups,t&&t.j?r=t:(r=new $(t),n&&i&&Y(t,n,i)),this.jr.push([e,r]),r},ts(e,t,n,i){let r=this;const s=e.length;if(!s)return r;for(let t=0;t<s-1;t++)r=r.tt(e[t]);return r.tt(e[s-1],t,n,i)},tt(e,t,n,i){i=i||$.groups;const r=this;if(t&&t.j)return r.j[e]=t,t;const s=t;let o,l=r.go(e);if(l?(o=new $,M(o.j,l.j),o.jr.push.apply(o.jr,l.jr),o.jd=l.jd,o.t=l.t):o=new $,s){if(i)if(o.t&&"string"==typeof o.t){const e=M(function(e,t){const n={};for(const i in t)t[i].indexOf(e)>=0&&(n[i]=!0);return n}(o.t,i),n);Y(s,e,i)}else n&&Y(s,n,i);o.t=s}return r.j[e]=o,o}};const Z=(e,t,n,i,r)=>e.ta(t,n,i,r),J=(e,t,n,i,r)=>e.tr(t,n,i,r),X=(e,t,n,i,r)=>e.ts(t,n,i,r),ee=(e,t,n,i,r)=>e.tt(t,n,i,r),te="WORD",ne="UWORD",ie="LOCALHOST",re="TLD",se="UTLD",oe="SCHEME",le="SLASH_SCHEME",ae="NUM",ce="WS",ue="NL",de="OPENBRACE",he="CLOSEBRACE",ge="OPENBRACKET",fe="CLOSEBRACKET",me="OPENPAREN",pe="CLOSEPAREN",_e="OPENANGLEBRACKET",ye="CLOSEANGLEBRACKET",ve="FULLWIDTHLEFTPAREN",be="FULLWIDTHRIGHTPAREN",ke="LEFTCORNERBRACKET",Ee="RIGHTCORNERBRACKET",Se="LEFTWHITECORNERBRACKET",xe="RIGHTWHITECORNERBRACKET",we="FULLWIDTHLESSTHAN",Re="FULLWIDTHGREATERTHAN",Ae="AMPERSAND",ze="APOSTROPHE",Te="ASTERISK",Ce="AT",Le="BACKSLASH",Ie="BACKTICK",Oe="CARET",Ne="COLON",He="COMMA",je="DOLLAR",Me="DOT",Pe="EQUALS",Fe="EXCLAMATION",We="HYPHEN",Be="PERCENT",De="PIPE",Ue="PLUS",Ke="POUND",qe="QUERY",Ge="QUOTE",Qe="SEMI",Ve="SLASH",Ye="TILDE",$e="UNDERSCORE",Ze="EMOJI",Je="SYM";var Xe=Object.freeze({__proto__:null,WORD:te,UWORD:ne,LOCALHOST:ie,TLD:re,UTLD:se,SCHEME:oe,SLASH_SCHEME:le,NUM:ae,WS:ce,NL:ue,OPENBRACE:de,CLOSEBRACE:he,OPENBRACKET:ge,CLOSEBRACKET:fe,OPENPAREN:me,CLOSEPAREN:pe,OPENANGLEBRACKET:_e,CLOSEANGLEBRACKET:ye,FULLWIDTHLEFTPAREN:ve,FULLWIDTHRIGHTPAREN:be,LEFTCORNERBRACKET:ke,RIGHTCORNERBRACKET:Ee,LEFTWHITECORNERBRACKET:Se,RIGHTWHITECORNERBRACKET:xe,FULLWIDTHLESSTHAN:we,FULLWIDTHGREATERTHAN:Re,AMPERSAND:Ae,APOSTROPHE:ze,ASTERISK:Te,AT:Ce,BACKSLASH:Le,BACKTICK:Ie,CARET:Oe,COLON:Ne,COMMA:He,DOLLAR:je,DOT:Me,EQUALS:Pe,EXCLAMATION:Fe,HYPHEN:We,PERCENT:Be,PIPE:De,PLUS:Ue,POUND:Ke,QUERY:qe,QUOTE:Ge,SEMI:Qe,SLASH:Ve,TILDE:Ye,UNDERSCORE:$e,EMOJI:Ze,SYM:Je});const et=/[a-z]/,tt=/\p{L}/u,nt=/\p{Emoji}/u,it=/\d/,rt=/\s/,st="\n",ot="️",lt="";let at=null,ct=null;function ut(e,t,n,i,r){let s;const o=t.length;for(let n=0;n<o-1;n++){const o=t[n];e.j[o]?s=e.j[o]:(s=new $(i),s.jr=r.slice(),e.j[o]=s),e=s}return s=new $(n),s.jr=r.slice(),e.j[t[o-1]]=s,s}function dt(e){const t=[],n=[];let i=0;for(;i<e.length;){let r=0;for(;"0123456789".indexOf(e[i+r])>=0;)r++;if(r>0){t.push(n.join(""));for(let t=parseInt(e.substring(i,i+r),10);t>0;t--)n.pop();i+=r}else n.push(e[i]),i++}return t}const ht={defaultProtocol:"http",events:null,format:ft,formatHref:ft,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function gt(e,t){void 0===t&&(t=null);let n=M({},ht);e&&(n=M(n,e instanceof gt?e.o:e));const i=n.ignoreTags,r=[];for(let e=0;e<i.length;e++)r.push(i[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=r}function ft(e){return e}gt.prototype={o:ht,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const i=null!=t;let r=this.o[e];return r?("object"==typeof r?(r=n.t in r?r[n.t]:ht[e],"function"==typeof r&&i&&(r=r(t,n))):"function"==typeof r&&i&&(r=r(t,n.t,n)),r):r},getObj(e,t,n){let i=this.o[e];return"function"==typeof i&&null!=t&&(i=i(t,n.t,n)),i},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};var mt=Object.freeze({__proto__:null,defaults:ht,Options:gt,assign:M});function pt(e,t){this.t="token",this.v=e,this.tk=t}function _t(e,t){class n extends pt{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}pt.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),i=e.get("format",t,this);return n&&i.length>n?i.substring(0,n)+"…":i},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=ht.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",n,this),r=e.get("tagName",n,t),s=this.toFormattedString(e),o={},l=e.get("className",n,t),a=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return o.href=i,l&&(o.class=l),a&&(o.target=a),c&&(o.rel=c),u&&M(o,u),{tagName:r,attributes:o,content:s,eventListeners:d}}};const yt=_t("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),vt=_t("text"),bt=_t("nl"),kt=_t("url",{isLink:!0,toHref(e){return void 0===e&&(e=ht.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==ie&&e[1].t===Ne}}),Et=e=>new $(e);function St(e,t,n){const i=n[0].s,r=n[n.length-1].e;return new e(t.slice(i,r),n)}"undefined"!=typeof console&&console&&console.warn;const xt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function wt(e){return xt.initialized||function(){xt.scanner=function(e){void 0===e&&(e=[]);const t={};$.groups=t;const n=new $;null==at&&(at=dt(H)),null==ct&&(ct=dt(j)),ee(n,"'",ze),ee(n,"{",de),ee(n,"}",he),ee(n,"[",ge),ee(n,"]",fe),ee(n,"(",me),ee(n,")",pe),ee(n,"<",_e),ee(n,">",ye),ee(n,"(",ve),ee(n,")",be),ee(n,"「",ke),ee(n,"」",Ee),ee(n,"『",Se),ee(n,"』",xe),ee(n,"<",we),ee(n,">",Re),ee(n,"&",Ae),ee(n,"*",Te),ee(n,"@",Ce),ee(n,"`",Ie),ee(n,"^",Oe),ee(n,":",Ne),ee(n,",",He),ee(n,"$",je),ee(n,".",Me),ee(n,"=",Pe),ee(n,"!",Fe),ee(n,"-",We),ee(n,"%",Be),ee(n,"|",De),ee(n,"+",Ue),ee(n,"#",Ke),ee(n,"?",qe),ee(n,'"',Ge),ee(n,"/",Ve),ee(n,";",Qe),ee(n,"~",Ye),ee(n,"_",$e),ee(n,"\\",Le);const i=J(n,it,ae,{[P]:!0});J(i,it,i);const r=J(n,et,te,{[F]:!0});J(r,et,r);const s=J(n,tt,ne,{[W]:!0});J(s,et),J(s,tt,s);const o=J(n,rt,ce,{[Q]:!0});ee(n,st,ue,{[Q]:!0}),ee(o,st),J(o,rt,o);const l=J(n,nt,Ze,{[K]:!0});J(l,nt,l),ee(l,ot,l);const a=ee(l,lt);J(a,nt,l);const c=[[et,r]],u=[[et,null],[tt,s]];for(let e=0;e<at.length;e++)ut(n,at[e],re,te,c);for(let e=0;e<ct.length;e++)ut(n,ct[e],se,ne,u);Y(re,{tld:!0,ascii:!0},t),Y(se,{utld:!0,alpha:!0},t),ut(n,"file",oe,te,c),ut(n,"mailto",oe,te,c),ut(n,"http",le,te,c),ut(n,"https",le,te,c),ut(n,"ftp",le,te,c),ut(n,"ftps",le,te,c),Y(oe,{scheme:!0,ascii:!0},t),Y(le,{slashscheme:!0,ascii:!0},t),e=e.sort(((e,t)=>e[0]>t[0]?1:-1));for(let t=0;t<e.length;t++){const i=e[t][0],r=e[t][1]?{[q]:!0}:{[G]:!0};i.indexOf("-")>=0?r[U]=!0:et.test(i)?it.test(i)?r[B]=!0:r[F]=!0:r[P]=!0,X(n,i,i,r)}return X(n,"localhost",ie,{ascii:!0}),n.jd=new $(Je),{start:n,tokens:M({groups:t},Xe)}}(xt.customSchemes);for(let e=0;e<xt.tokenQueue.length;e++)xt.tokenQueue[e][1]({scanner:xt.scanner});xt.parser=function(e){let{groups:t}=e;const n=t.domain.concat([Ae,Te,Ce,Le,Ie,Oe,je,Pe,We,ae,Be,De,Ue,Ke,Ve,Je,Ye,$e]),i=[ze,Ne,He,Me,Fe,qe,Ge,Qe,_e,ye,de,he,fe,ge,me,pe,ve,be,ke,Ee,Se,xe,we,Re],r=[Ae,ze,Te,Le,Ie,Oe,je,Pe,We,de,he,Be,De,Ue,Ke,qe,Ve,Je,Ye,$e],s=Et(),o=ee(s,Ye);Z(o,r,o),Z(o,t.domain,o);const l=Et(),a=Et(),c=Et();Z(s,t.domain,l),Z(s,t.scheme,a),Z(s,t.slashscheme,c),Z(l,r,o),Z(l,t.domain,l);const u=ee(l,Ce);ee(o,Ce,u),ee(a,Ce,u),ee(c,Ce,u);const d=ee(o,Me);Z(d,r,o),Z(d,t.domain,o);const h=Et();Z(u,t.domain,h),Z(h,t.domain,h);const g=ee(h,Me);Z(g,t.domain,h);const f=Et(yt);Z(g,t.tld,f),Z(g,t.utld,f),ee(u,ie,f);const m=ee(h,We);Z(m,t.domain,h),Z(f,t.domain,h),ee(f,Me,g),ee(f,We,m);const p=ee(f,Ne);Z(p,t.numeric,yt);const _=ee(l,We),y=ee(l,Me);Z(_,t.domain,l),Z(y,r,o),Z(y,t.domain,l);const v=Et(kt);Z(y,t.tld,v),Z(y,t.utld,v),Z(v,t.domain,l),Z(v,r,o),ee(v,Me,y),ee(v,We,_),ee(v,Ce,u);const b=ee(v,Ne),k=Et(kt);Z(b,t.numeric,k);const E=Et(kt),S=Et();Z(E,n,E),Z(E,i,S),Z(S,n,E),Z(S,i,S),ee(v,Ve,E),ee(k,Ve,E);const x=ee(a,Ne),w=ee(c,Ne),R=ee(w,Ve),A=ee(R,Ve);Z(a,t.domain,l),ee(a,Me,y),ee(a,We,_),Z(c,t.domain,l),ee(c,Me,y),ee(c,We,_),Z(x,t.domain,E),ee(x,Ve,E),Z(A,t.domain,E),Z(A,n,E),ee(A,Ve,E);const z=[[de,he],[ge,fe],[me,pe],[_e,ye],[ve,be],[ke,Ee],[Se,xe],[we,Re]];for(let e=0;e<z.length;e++){const[t,r]=z[e],s=ee(E,t);ee(S,t,s),ee(s,r,E);const o=Et(kt);Z(s,n,o);const l=Et();Z(s,i),Z(o,n,o),Z(o,i,l),Z(l,n,o),Z(l,i,l),ee(o,r,E),ee(l,r,E)}return ee(s,ie,v),ee(s,ue,bt),{start:s,tokens:Xe}}(xt.scanner.tokens);for(let e=0;e<xt.pluginQueue.length;e++)xt.pluginQueue[e][1]({scanner:xt.scanner,parser:xt.parser});xt.initialized=!0}(),function(e,t,n){let i=n.length,r=0,s=[],o=[];for(;r<i;){let l=e,a=null,c=null,u=0,d=null,h=-1;for(;r<i&&!(a=l.go(n[r].t));)o.push(n[r++]);for(;r<i&&(c=a||l.go(n[r].t));)a=null,l=c,l.accepts()?(h=0,d=l):h>=0&&h++,r++,u++;if(h<0)r-=u,r<i&&(o.push(n[r]),r++);else{o.length>0&&(s.push(St(vt,t,o)),o=[]),r-=h,u-=h;const e=d.t,i=n.slice(r-u,r);s.push(St(e,t,i))}}return o.length>0&&s.push(St(vt,t,o)),s}(xt.parser.start,e,function(e,t){const n=function(e){const t=[],n=e.length;let i=0;for(;i<n;){let r,s=e.charCodeAt(i),o=s<55296||s>56319||i+1===n||(r=e.charCodeAt(i+1))<56320||r>57343?e[i]:e.slice(i,i+2);t.push(o),i+=o.length}return t}(t.replace(/[A-Z]/g,(e=>e.toLowerCase()))),i=n.length,r=[];let s=0,o=0;for(;o<i;){let l=e,a=null,c=0,u=null,d=-1,h=-1;for(;o<i&&(a=l.go(n[o]));)l=a,l.accepts()?(d=0,h=0,u=l):d>=0&&(d+=n[o].length,h++),c+=n[o].length,s+=n[o].length,o++;s-=d,o-=h,c-=d,r.push({t:u.t,v:t.slice(s-c,s),s:s-c,e:s})}return r}(xt.scanner.start,e))}function Rt(e,t,n){if(0===a.Children.count(e.props.children))return e;const i=[];a.Children.forEach(e.props.children,(e=>{"string"==typeof e?i.push.apply(i,function(e,t,n){const i=wt(e),r=[];for(let e=0;e<i.length;e++){const s=i[e];if("nl"===s.t&&t.get("nl2br")){const e="__linkify-el-"+n.elementId++;r.push(a.createElement("br",{key:e}))}else if(s.isLink&&t.check(s)){let e=t.render(s);if(!("key"in e.props)){const t="__linkify-el-"+n.elementId++,i=mt.assign({key:t},e.props);e=a.cloneElement(e,i)}r.push(e)}else r.push(s.toString())}return r}(e,t,n)):a.isValidElement(e)?"string"==typeof e.type&&t.ignoreTags.indexOf(e.type.toUpperCase())>=0?i.push(e):i.push(Rt(e,t,n)):i.push(e)}));const r="__linkify-el-"+n.elementId++,s=mt.assign({key:r},e.props);return a.cloneElement(e,s,i)}const At=e=>{let t=0;const n={key:"__linkify-wrapper"};for(const t in e)"options"!==t&&"as"!==t&&"tagName"!==t&&"children"!==t&&(n[t]=e[t]);const i=new gt(e.options,(e=>{let{tagName:n,attributes:i,content:r}=e;return i.key="__linkify-lnk-"+t++,i.class&&(i.className=i.class,delete i.class),a.createElement(n,i,r)})),r=e.as||e.tagName||a.Fragment||"span",s=e.children;return Rt(a.createElement(r,n,s),i,{elementId:0})};var zt=n(89357),Tt=n(16249),Ct=n(72501),Lt=n(68887),It=n(63798),Ot=n(65859),Nt=n(37976),Ht=n(95186),jt=n(38084),Mt=n(54024),Pt=n(40935),Ft=n(4499),Wt=n(85229),Bt=n(42020),Dt=n(6456);var Ut=n(9490),Kt=n(36338),qt=(n(18846),n(45250),n(90194),n(67991),n(12784),n(20644),n(40484),n(62220),n(90147),n(93285),n(25301),n(16975),n(64218),n(3514),Object.defineProperty),Gt=(e,t,n)=>(((e,t,n)=>{t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const Qt=function({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}(),Vt=/\n\r?/g,Yt=Object.fromEntries(Object.entries({1:e=>({...e,bold:!0}),3:e=>({...e,italic:!0}),4:e=>({...e,underline:!0}),22:({bold:e,...t})=>t,23:({italic:e,...t})=>t,24:({underline:e,...t})=>t,30:e=>({...e,foreground:"black"}),31:e=>({...e,foreground:"red"}),32:e=>({...e,foreground:"green"}),33:e=>({...e,foreground:"yellow"}),34:e=>({...e,foreground:"blue"}),35:e=>({...e,foreground:"magenta"}),36:e=>({...e,foreground:"cyan"}),37:e=>({...e,foreground:"white"}),39:({foreground:e,...t})=>t,90:e=>({...e,foreground:"grey"}),40:e=>({...e,background:"black"}),41:e=>({...e,background:"red"}),42:e=>({...e,background:"green"}),43:e=>({...e,background:"yellow"}),44:e=>({...e,background:"blue"}),45:e=>({...e,background:"magenta"}),46:e=>({...e,background:"cyan"}),47:e=>({...e,background:"white"}),49:({background:e,...t})=>t}).map((([e,t])=>[`[${e}m`,t])));class $t{constructor(e=1,t=[]){this.lineNumber=e,this.chunks=t,Gt(this,"text"),this.text=t.map((e=>e.text)).join("").toLocaleLowerCase("en-US")}lastChunk(){return this.chunks[this.chunks.length-1]}replaceLastChunk(e){e&&(this.chunks.splice(this.chunks.length-1,1,...e),this.text=this.chunks.map((e=>e.text)).join("").toLocaleLowerCase("en-US"))}}class Zt{constructor(){Gt(this,"text",""),Gt(this,"lines",[]),Gt(this,"processLines",((e,t={},n=1)=>{var i;const r=[];let s=t,o=n,l=0;for(Vt.lastIndex=0;;){const t=Vt.exec(e);if(!t){const t=this.processText(e.slice(l),s);return r.push(new $t(o,t)),r}const n=e.slice(l,t.index);l=t.index+t[0].length;const a=this.processText(n,s);r.push(new $t(o,a)),s=null!=(i=a[a.length-1].modifiers)?i:s,o+=1}})),Gt(this,"processText",((e,t)=>{const n=[];let i=t,r=0;for(Qt.lastIndex=0;;){const t=Qt.exec(e);if(!t)return n.push({text:e.slice(r),modifiers:i}),n;const s=e.slice(r,t.index);n.push({text:s,modifiers:i}),r=t.index+t[0].length,i=this.processCode(t[0],i)}})),Gt(this,"processCode",((e,t)=>{var n,i;return null!=(i=null==(n=Yt[e])?void 0:n.call(Yt,t))?i:t}))}process(e){var t,n,i;if(this.text===e)return this.lines;if(this.text&&e.startsWith(this.text)){const r=this.lines.length>0?this.lines.length-1:0,s=null!=(t=this.lines[r])?t:new $t,o=s.lastChunk(),l=this.processLines((null!=(n=null==o?void 0:o.text)?n:"")+e.slice(this.text.length),null==o?void 0:o.modifiers,null==s?void 0:s.lineNumber);s.replaceLastChunk(null==(i=l[0])?void 0:i.chunks),this.lines[r]=s,this.lines=this.lines.concat(l.slice(1))}else this.lines=this.processLines(e);return this.text=e,this.lines}}function Jt(e,t){const n=new Array;if(t.bold&&n.push(e.modifierBold),t.italic&&n.push(e.modifierItalic),t.underline&&n.push(e.modifierUnderline),t.foreground){const i=`modifierForeground${N()(t.foreground)}`;n.push(e[i])}if(t.background){const i=`modifierBackground${N()(t.background)}`;n.push(e[i])}return n.length>0?n.join(" "):void 0}const Xt=({attributes:e,content:t})=>{const{href:n,...i}=e;return c().createElement(zt.N_,{to:n,...i},t)};function en({line:e,classes:t,searchText:n,highlightResultIndex:i}){const r=(0,a.useMemo)((()=>function(e,t){const n=function(e,t){if(!t||!e.includes(t))return;const n=new Array;let i=0;for(;;){const r=e.indexOf(t,i);if(-1===r)break;const s=r+t.length;n.push({start:r,end:s}),i=s}return n}(e.text,t);if(!n)return e.chunks;const i=new Array;let r=0,s=0,o=n[s];for(const t of e.chunks){const{text:e,modifiers:l}=t;if(!o||r+e.length<o.start){i.push(t),r+=e.length;continue}let a=0;for(;o;){const t=Math.max(o.start-r,0);if(t>e.length)break;const c=Math.min(o.end-r,e.length);if(t>a&&i.push({text:e.slice(a,t),modifiers:l}),c>t&&i.push({modifiers:l,highlight:s,text:e.slice(t,c)}),a=c,o.end-r!==c)break;s+=1,o=n[s]}a<e.length&&i.push({text:e.slice(a),modifiers:l}),r+=e.length}return i}(e,n)),[e,n]),s=(0,a.useMemo)((()=>r.map((({text:e,modifiers:n,highlight:r},s)=>c().createElement("span",{key:s,className:l()(Jt(t,n),void 0!==r&&(r===i?t.textSelectedHighlight:t.textHighlight))},c().createElement(At,{options:{render:Xt}},e))))),[r,i,t]);return c().createElement(c().Fragment,null,s)}function tn(e){var t;const{resultCount:n,resultIndexStep:i,toggleShouldFilter:s}=e,o=null!=(t=e.resultIndex)?t:0;return c().createElement(c().Fragment,null,void 0!==n&&c().createElement(c().Fragment,null,c().createElement(r.A,{size:"small",onClick:()=>i(!0)},c().createElement(Lt.A,null)),c().createElement(Ct.A,null,Math.min(o+1,n),"/",n),c().createElement(r.A,{size:"small",onClick:()=>i()},c().createElement(It.A,null))),c().createElement(Tt.A,{size:"small",variant:"standard",placeholder:"Search",value:e.searchInput,onKeyPress:e=>{"Enter"===e.key&&(e.metaKey||e.ctrlKey||e.altKey?s():i(e.shiftKey))},onChange:t=>e.setSearchInput(t.target.value)}),c().createElement(r.A,{size:"small",onClick:s},e.shouldFilter?c().createElement(Ot.A,{color:"primary"}):c().createElement(Ot.A,{color:"disabled"})))}const nn=40,rn=(0,Nt.makeStyles)((e=>({root:{background:e.palette.background.paper},header:{height:nn,display:"flex",alignItems:"center",justifyContent:"flex-end"},log:{fontFamily:'"Monaco", monospace',fontSize:e.typography.pxToRem(12)},line:{position:"relative",whiteSpace:"pre","&:hover":{background:e.palette.action.hover}},lineSelected:{background:e.palette.action.selected,"&:hover":{background:e.palette.action.selected}},lineCopyButton:{position:"absolute",paddingTop:0,paddingBottom:0},lineNumber:{display:"inline-block",textAlign:"end",width:60,marginRight:e.spacing(1),cursor:"pointer"},textHighlight:{background:(0,Nt.alpha)(e.palette.info.main,.15)},textSelectedHighlight:{background:(0,Nt.alpha)(e.palette.info.main,.4)},modifierBold:{fontWeight:e.typography.fontWeightBold},modifierItalic:{fontStyle:"italic"},modifierUnderline:{textDecoration:"underline"},modifierForegroundBlack:{color:Ht.A.black},modifierForegroundRed:{color:jt.A[500]},modifierForegroundGreen:{color:Mt.A[500]},modifierForegroundYellow:{color:Pt.A[500]},modifierForegroundBlue:{color:Ft.A[500]},modifierForegroundMagenta:{color:Wt.A[500]},modifierForegroundCyan:{color:Bt.A[500]},modifierForegroundWhite:{color:Ht.A.white},modifierForegroundGrey:{color:Dt.A[500]},modifierBackgroundBlack:{background:Ht.A.black},modifierBackgroundRed:{background:jt.A[500]},modifierBackgroundGreen:{background:Mt.A[500]},modifierBackgroundYellow:{background:Pt.A[500]},modifierBackgroundBlue:{background:Ft.A[500]},modifierBackgroundMagenta:{background:Wt.A[500]},modifierBackgroundCyan:{background:Bt.A[500]},modifierBackgroundWhite:{background:Ht.A.white},modifierBackgroundGrey:{background:Dt.A[500]}})),{name:"BackstageLogViewer"});function sn(e){const t=rn({classes:e.classes}),n=(0,a.useRef)(null),o=(0,a.useMemo)((()=>new Zt),[]).process(e.text),d=function(e){var t;const[n,i]=(0,a.useState)(""),r=n.toLocaleLowerCase("en-US"),[s,o]=(0,a.useState)(0),[l,c]=function(e=!1,t=!0){const[n,i]=(0,a.useState)(e),r=function(e){const t=(0,a.useRef)(e);return t.current=e,(0,a.useMemo)((()=>Object.freeze({get current(){return t.current}})),[])}(t);return[n,(0,a.useCallback)((e=>{i((t=>void 0===e||r.current&&"object"==typeof e&&("SyntheticBaseEvent"===e.constructor.name||"string"==typeof e._reactName)?!t:Boolean(function(e,t){return"function"==typeof e?e(t):e}(e,t))))}),[])]}(!1),u=(0,a.useMemo)((()=>function(e,t){if(!t)return{lines:e};const n=[],i=[];for(const r of e)if(r.text.includes(t)){n.push(r);let e=0,s=0;for(;;){const n=r.text.indexOf(t,e);if(-1===n)break;i.push({lineNumber:r.lineNumber,lineIndex:s++}),e=n+t.length}}return{lines:n,results:i}}(e,r)),[e,r]),d=u.results?u.results[Math.min(s,u.results.length-1)]:void 0,h=null==(t=u.results)?void 0:t.length;return{lines:l?u.lines:e,searchText:r,searchInput:n,setSearchInput:i,shouldFilter:l,toggleShouldFilter:c,resultCount:h,resultIndex:s,resultIndexStep:e=>{if(e){if(void 0!==h){const e=Math.min(s-1,h-2);o(e<0?h-1:e)}}else if(void 0!==h){const e=s+1;o(e>=h?0:e)}},resultLine:null==d?void 0:d.lineNumber,resultLineIndex:null==d?void 0:d.lineIndex}}(o),h=function(e){const t=(0,Ut.useApi)(Ut.errorApiRef),[n,i]=(0,a.useState)(),r=n?Math.min(n.start,n.end):void 0,s=n?Math.max(n.start,n.end):void 0,[{error:o},l]=(0,Kt.A)();return(0,a.useEffect)((()=>{o&&t.post(o)}),[o,t]),{shouldShowButton:e=>r===e||s===e,isSelected:e=>!!n&&r<=e&&e<=s,setSelection(e,t){i(t?t=>t?{start:t.start,end:e}:{start:e,end:e}:t=>(null==t?void 0:t.start)===e&&(null==t?void 0:t.end)===e?void 0:{start:e,end:e})},copySelection(){if(n){const t=e.slice(Math.min(n.start,n.end)-1,Math.max(n.start,n.end)).map((e=>e.chunks.map((e=>e.text)).join(""))).join("\n");l(t),i(void 0)}}}}(o),g=(0,u.useLocation)();(0,a.useEffect)((()=>{void 0!==d.resultLine&&n.current&&n.current.scrollToItem(d.resultLine-1,"center")}),[d.resultLine]),(0,a.useEffect)((()=>{if(g.hash){const e=parseInt(g.hash.replace(/\D/g,""),10);h.setSelection(e,!1)}}),[]);const f=(e,t)=>{h.setSelection(e,t.shiftKey)};return c().createElement(y,null,(({height:e,width:o})=>c().createElement(i.A,{style:{width:o,height:e},className:t.root},c().createElement(i.A,{className:t.header},c().createElement(tn,{...d})),c().createElement(I,{ref:n,className:t.log,height:(e||480)-nn,width:o||640,itemData:d.lines,itemSize:20,itemCount:d.lines.length},(({index:e,style:n,data:o})=>{const a=o[e],{lineNumber:u}=a;return c().createElement(i.A,{style:{...n},className:l()(t.line,{[t.lineSelected]:h.isSelected(u)})},h.shouldShowButton(u)&&c().createElement(r.A,{"data-testid":"copy-button",size:"small",className:t.lineCopyButton,onClick:()=>h.copySelection()},c().createElement(s.A,{fontSize:"inherit"})),c().createElement("a",{role:"row",target:"_self",href:`#line-${u}`,className:t.lineNumber,onClick:e=>f(u,e),onKeyPress:e=>f(u,e)},u),c().createElement(en,{line:a,classes:t,searchText:d.searchText,highlightResultIndex:d.resultLine===u?d.resultLineIndex:void 0}))})))))}}}]);
//# sourceMappingURL=2925.1e418353.chunk.js.map