performance.mark("js-parse-end:97601-9fb47efefec57c33.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["97601"],{45062(t,e,r){r.d(e,{s:()=>o});var n=r(70170);function o(t=0,e={}){return(r,o,i)=>{if(!i||"function"!=typeof i.value)throw Error("debounce can only decorate functions");let s=i.value;i.value=(0,n.s)(s,t,e),Object.defineProperty(r,o,i)}}},91385(t,e,r){r.d(e,{Xq:()=>a,ai:()=>o,fN:()=>s,qA:()=>u});var n=-1/0,o=1/0;function i(t,e,r,o){for(var i=t.length,s=e.length,a=t.toLowerCase(),u=e.toLowerCase(),l=function(t){for(var e=t.length,r=Array(e),n="/",o=0;o1024)return n;var a=Array(r),u=Array(r);return i(t,e,a,u),u[r-1][s-1]}function a(t,e){var r=t.length,o=e.length,s=Array(r);if(!r||!o)return s;if(r===o){for(var a=0;a1024)return s;var u=Array(r),l=Array(r);i(t,e,u,l);for(var c=!1,a=r-1,h=o-1;a>=0;a--)for(;h>=0;h--)if(u[a][h]!==n&&(c||u[a][h]===l[a][h])){c=a&&h&&l[a][h]===u[a-1][h-1]+1,s[a]=h--;break}return s}function u(t,e){t=t.toLowerCase(),e=e.toLowerCase();for(var r=t.length,n=0,o=0;np,bL:()=>h,oj:()=>c});var n,o=r(96540),i=r(40961),s=(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a="html",u=function(t,e){var r,n,o,i=null!=(r=t.ownerDocument)?r:document,s=null!=(o=null!=(n=i.defaultView)?n:i.parentWindow)?o:window;switch(e){case a:return t instanceof s.HTMLElement;case"svg":return t instanceof s.SVGElement;default:throw Error('Unrecognized element type "'.concat(e,'" for validateElementType.'))}},l=function(t,e){var r,n,o,i,s,l={};switch(t){case a:s=document.createElement(null!=(r=null==e?void 0:e.containerElement)?r:"div");break;case"svg":s=document.createElementNS("http://www.w3.org/2000/svg",null!=(n=null==e?void 0:e.containerElement)?n:"g");break;default:throw Error('Invalid element type "'.concat(t,'" for createPortalNode: must be "html" or "svg".'))}if(e&&"object"==typeof e&&e.attributes)for(var c=0,h=Object.entries(e.attributes);c."));e.replaceChild(m.element,r),o=e,i=r}},unmount:function(t){(!t||t===i)&&o&&i&&(o.replaceChild(i,m.element),o=void 0,i=void 0)}};return m},c=function(t){function e(e){var r=t.call(this,e)||this;return r.addPropsChannel=function(){Object.assign(r.props.node,{setPortalProps:function(t){r.setState({nodeProps:t})}})},r.state={nodeProps:r.props.node.getInitialPortalProps()},r}return s(e,t),e.prototype.componentDidMount=function(){this.addPropsChannel()},e.prototype.componentDidUpdate=function(){this.addPropsChannel()},e.prototype.render=function(){var t=this,e=this.props,r=e.children,n=e.node;return i.createPortal(o.Children.map(r,function(e){return o.isValidElement(e)?o.cloneElement(e,t.state.nodeProps):e}),n.element)},e}(o.PureComponent),h=function(t){function e(e){var r=t.call(this,e)||this;return r.placeholderNode=o.createRef(),r.passPropsThroughPortal(),r}return s(e,t),e.prototype.passPropsThroughPortal=function(){var t=Object.assign({},this.props,{node:void 0});this.props.node.setPortalProps(t)},e.prototype.componentDidMount=function(){var t=this.props.node;this.currentPortalNode=t;var e=this.placeholderNode.current,r=e.parentNode;t.mount(r,e),this.passPropsThroughPortal()},e.prototype.componentDidUpdate=function(){var t=this.props.node;this.currentPortalNode&&t!==this.currentPortalNode&&(this.currentPortalNode.unmount(this.placeholderNode.current),this.currentPortalNode.setPortalProps({}),this.currentPortalNode=t);var e=this.placeholderNode.current,r=e.parentNode;t.mount(r,e),this.passPropsThroughPortal()},e.prototype.componentWillUnmount=function(){var t=this.props.node;t.unmount(this.placeholderNode.current),t.setPortalProps({})},e.prototype.render=function(){var t=this.props.node.element.tagName,e=this.props.node.elementType===a?t.toLowerCase():t;return o.createElement(e,{ref:this.placeholderNode})},e}(o.PureComponent),p=l.bind(null,a);l.bind(null,"svg")},28926(t,e,r){r.d(e,{a:()=>s});let n=new Set(["children","localName","ref","style","className"]),o=new WeakMap,i=(t,e,r,n,i)=>{let s,a,u=null==i?void 0:i[e];void 0===u||r===n?null==r&&e in HTMLElement.prototype?t.removeAttribute(e):t[e]=r:(void 0===(s=o.get(t))&&o.set(t,s=new Map),a=s.get(u),void 0!==r?void 0===a?(s.set(u,a={handleEvent:r}),t.addEventListener(u,a)):a.handleEvent=r:void 0!==a&&(s.delete(u),t.removeEventListener(u,a)))};function s(t=window.React,e,r,o,a){let u,l,c;void 0===e?({tagName:l,elementClass:c,events:o,displayName:a}=t,u=t.react):(u=t,c=r,l=e);let h=u.Component,p=u.createElement,d=new Set(Object.keys(null!=o?o:{}));class f extends h{constructor(){super(...arguments),this.o=null}t(t){if(null!==this.o)for(let e in this.i)i(this.o,e,this.props[e],t?t[e]:void 0,o)}componentDidMount(){var t;this.t(),null==(t=this.o)||t.removeAttribute("defer-hydration")}componentDidUpdate(t){this.t(t)}render(){let{_$Gl:t,...e}=this.props;this.h!==t&&(this.u=e=>{null!==t&&("function"==typeof t?t(e):t.current=e),this.o=e,this.h=t}),this.i={};let r={ref:this.u};for(let[t,o]of Object.entries(e))n.has(t)?r["className"===t?"class":t]=o:d.has(t)||t in c.prototype?this.i[t]=o:r[t]=o;return r.suppressHydrationWarning=!0,p(l,r)}}f.displayName=null!=a?a:c.name;let m=u.forwardRef((t,e)=>p(f,{...t,_$Gl:e},null==t?void 0:t.children));return m.displayName=f.displayName,m}},61388(t,e,r){r.d(e,{_:()=>a});var n=r(36158),o=r(26261),i=r(66500),s=r(24880),a=class extends i.Q{#t;#e=void 0;#r;#n;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,s.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,s.EN)(e.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(t){this.#o(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#o(),this.#i()}mutate(t,e){return this.#n=e,this.#r?.removeObserver(this),this.#r=this.#t.getMutationCache().build(this.#t,this.options),this.#r.addObserver(this),this.#r.execute(t)}#o(){let t=this.#r?.state??(0,n.$)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#i(t){o.jG.batch(()=>{if(this.#n&&this.hasListeners()){let e=this.#e.variables,r=this.#e.context,n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#n.onSuccess?.(t.data,e,r,n)}catch(t){Promise.reject(t)}try{this.#n.onSettled?.(t.data,null,e,r,n)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#n.onError?.(t.error,e,r,n)}catch(t){Promise.reject(t)}try{this.#n.onSettled?.(void 0,t.error,e,r,n)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#e)})})}}},31993(t,e,r){r.d(e,{j:()=>n});function n(t){return t}},94747(t,e,r){r.d(e,{n:()=>u});var n=r(96540),o=r(61388),i=r(26261),s=r(24880),a=r(97665);function u(t,e){let r=(0,a.jE)(e),[u]=n.useState(()=>new o._(r,t));n.useEffect(()=>{u.setOptions(t)},[u,t]);let l=n.useSyncExternalStore(n.useCallback(t=>u.subscribe(i.jG.batchCalls(t)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),c=n.useCallback((t,e)=>{u.mutate(t,e).catch(s.lQ)},[u]);if(l.error&&(0,s.GU)(u.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}},25353(t,e,r){r.d(e,{A:()=>o});var n=/^(?:0|[1-9]\d*)$/;let o=function(t,e){var r=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&tn});let n=function(t,e){return t===e||t!=t&&e!=e}},38446(t,e,r){r.d(e,{A:()=>i});var n=r(89610),o=r(5254);let i=function(t){return null!=t&&(0,o.A)(t.length)&&!(0,n.A)(t)}},89610(t,e,r){r.d(e,{A:()=>i});var n=r(18348),o=r(23149);let i=function(t){if(!(0,o.A)(t))return!1;var e=(0,n.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5254(t,e,r){r.d(e,{A:()=>n});let n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}}}]); //# sourceMappingURL=97601-9fb47efefec57c33-ca3e80e26defd44d.js.map